No empty .Rs/.Re
[netbsd-mini2440.git] / external / gpl3 / binutils / dist / gas / configure
bloba1594dd21a3e030f91fa7cc37c8f37e06b396719
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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations besides the primary
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-checking enable run-time checks
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1040 _ACEOF
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 cd $ac_popdir
1129 done
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1150 $ $0 $@
1152 _ACEOF
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176 _ASUNAME
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1186 } >&5
1188 cat >&5 <<_ACEOF
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1195 _ACEOF
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1210 for ac_arg
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1257 echo
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 esac;
1280 echo
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1381 done
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1451 done
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 ac_aux_dir=
1492 for ac_dir in .. $srcdir/..; do
1493 if test -f $ac_dir/install-sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 break
1497 elif test -f $ac_dir/install.sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 break
1501 elif test -f $ac_dir/shtool; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 break
1506 done
1507 if test -z "$ac_aux_dir"; then
1508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1509 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1510 { (exit 1); exit 1; }; }
1512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516 # Make sure we can run config.sub.
1517 $ac_config_sub sun4 >/dev/null 2>&1 ||
1518 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520 { (exit 1); exit 1; }; }
1522 echo "$as_me:$LINENO: checking build system type" >&5
1523 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524 if test "${ac_cv_build+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 ac_cv_build_alias=$build_alias
1528 test -z "$ac_cv_build_alias" &&
1529 ac_cv_build_alias=`$ac_config_guess`
1530 test -z "$ac_cv_build_alias" &&
1531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533 { (exit 1); exit 1; }; }
1534 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1540 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541 echo "${ECHO_T}$ac_cv_build" >&6
1542 build=$ac_cv_build
1543 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548 echo "$as_me:$LINENO: checking host system type" >&5
1549 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550 if test "${ac_cv_host+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 ac_cv_host_alias=$host_alias
1554 test -z "$ac_cv_host_alias" &&
1555 ac_cv_host_alias=$ac_cv_build_alias
1556 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1562 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563 echo "${ECHO_T}$ac_cv_host" >&6
1564 host=$ac_cv_host
1565 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 echo "$as_me:$LINENO: checking target system type" >&5
1571 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572 if test "${ac_cv_target+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 ac_cv_target_alias=$target_alias
1576 test "x$ac_cv_target_alias" = "x" &&
1577 ac_cv_target_alias=$ac_cv_host_alias
1578 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1584 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585 echo "${ECHO_T}$ac_cv_target" >&6
1586 target=$ac_cv_target
1587 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592 # The aliases save the names the user supplied, while $host etc.
1593 # will get canonicalized.
1594 test -n "$target_alias" &&
1595 test "$program_prefix$program_suffix$program_transform_name" = \
1596 NONENONEs,x,x, &&
1597 program_prefix=${target_alias}-
1598 ac_ext=c
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1625 done
1626 done
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1663 done
1664 done
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 CC=$ac_ct_CC
1678 else
1679 CC="$ac_cv_prog_CC"
1682 if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1705 done
1706 done
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 CC=$ac_ct_CC
1758 else
1759 CC="$ac_cv_prog_CC"
1763 if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 ac_prog_rejected=no
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783 ac_prog_rejected=yes
1784 continue
1786 ac_cv_prog_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1790 done
1791 done
1793 if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1796 shift
1797 if test $# != 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1801 shift
1802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 CC=$ac_cv_prog_CC
1808 if test -n "$CC"; then
1809 echo "$as_me:$LINENO: result: $CC" >&5
1810 echo "${ECHO_T}$CC" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1817 if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 for ac_prog in cl
1821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1842 done
1843 done
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1856 test -n "$CC" && break
1857 done
1859 if test -z "$CC"; then
1860 ac_ct_CC=$CC
1861 for ac_prog in cl
1863 # Extract the first word of "$ac_prog", so it can be a program name with args.
1864 set dummy $ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1884 done
1885 done
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1898 test -n "$ac_ct_CC" && break
1899 done
1901 CC=$ac_ct_CC
1907 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&2;}
1913 { (exit 1); exit 1; }; }; }
1915 # Provide some information about the compiler.
1916 echo "$as_me:$LINENO:" \
1917 "checking for C compiler version" >&5
1918 ac_compiler=`set X $ac_compile; echo $2`
1919 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1935 cat >conftest.$ac_ext <<_ACEOF
1936 /* confdefs.h. */
1937 _ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1943 main ()
1947 return 0;
1949 _ACEOF
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1954 # of exeext.
1955 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965 # resort.
1967 # Be careful to initialize this variable, since it used to be cached.
1968 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 ac_cv_exeext=
1970 # b.out is created by i960 compilers.
1971 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 conftest.$ac_ext )
1978 # This is the source file.
1980 [ab].out )
1981 # We found the default executable, but exeext='' is most
1982 # certainly right.
1983 break;;
1984 *.* )
1985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986 # FIXME: I believe we export ac_cv_exeext for Libtool,
1987 # but it would be cool to find out if it's true. Does anybody
1988 # maintain Libtool? --akim.
1989 export ac_cv_exeext
1990 break;;
1992 break;;
1993 esac
1994 done
1995 else
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1999 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }; }
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot run C compiled programs.
2036 If you meant to cross compile, use \`--host'.
2037 See \`config.log' for more details." >&2;}
2038 { (exit 1); exit 1; }; }; }
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2045 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046 ac_clean_files=$ac_clean_files_save
2047 # Check the compiler produces executables we can run. If not, either
2048 # the compiler is broken, or we cross compile.
2049 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052 echo "${ECHO_T}$cross_compiling" >&6
2054 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057 (eval $ac_link) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2063 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 # `rm'.
2065 for ac_file in conftest.exe conftest conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070 export ac_cv_exeext
2071 break;;
2072 * ) break;;
2073 esac
2074 done
2075 else
2076 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&2;}
2082 { (exit 1); exit 1; }; }; }
2085 rm -f conftest$ac_cv_exeext
2086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087 echo "${ECHO_T}$ac_cv_exeext" >&6
2089 rm -f conftest.$ac_ext
2090 EXEEXT=$ac_cv_exeext
2091 ac_exeext=$EXEEXT
2092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094 if test "${ac_cv_objext+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h. */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2105 main ()
2109 return 0;
2111 _ACEOF
2112 rm -f conftest.o conftest.obj
2113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122 break;;
2123 esac
2124 done
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2129 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }; }
2138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141 echo "${ECHO_T}$ac_cv_objext" >&6
2142 OBJEXT=$ac_cv_objext
2143 ac_objext=$OBJEXT
2144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2157 main ()
2159 #ifndef __GNUC__
2160 choke me
2161 #endif
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_compiler_gnu=yes
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 ac_compiler_gnu=no
2196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202 GCC=`test $ac_compiler_gnu = yes && echo yes`
2203 ac_test_CFLAGS=${CFLAGS+set}
2204 ac_save_CFLAGS=$CFLAGS
2205 CFLAGS="-g"
2206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_g+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2219 main ()
2223 return 0;
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 ac_cv_prog_cc_g=no
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2267 else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295 char **p;
2296 int i;
2298 return p[i];
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2326 main ()
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 return 0;
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag"
2353 || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366 break
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.err conftest.$ac_objext
2373 done
2374 rm -f conftest.$ac_ext conftest.$ac_objext
2375 CC=$ac_save_CC
2379 case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382 echo "${ECHO_T}none needed" >&6 ;;
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387 esac
2389 # Some people use a C++ compiler to compile C. Since we use `exit',
2390 # in C++ we need to declare it. In case someone uses the same compiler
2391 # for both compiling C and C++ we need to have the C++ compiler decide
2392 # the declaration of exit, since it's the most demanding environment.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #ifndef __cplusplus
2395 choke me
2396 #endif
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 for ac_declaration in \
2421 '' \
2422 'extern "C" void std::exit (int) throw (); using std::exit;' \
2423 'extern "C" void std::exit (int); using std::exit;' \
2424 'extern "C" void exit (int) throw ();' \
2425 'extern "C" void exit (int);' \
2426 'void exit (int);'
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434 $ac_declaration
2435 #include <stdlib.h>
2437 main ()
2439 exit (42);
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 continue
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 $ac_declaration
2482 main ()
2484 exit (42);
2486 return 0;
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 break
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 done
2519 rm -f conftest*
2520 if test -n "$ac_declaration"; then
2521 echo '#ifdef __cplusplus' >>confdefs.h
2522 echo $ac_declaration >>confdefs.h
2523 echo '#endif' >>confdefs.h
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541 if test "${ac_cv_search_strerror+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 ac_func_search_save_LIBS=$LIBS
2545 ac_cv_search_strerror=no
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 #ifdef __cplusplus
2555 extern "C"
2556 #endif
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char strerror ();
2561 main ()
2563 strerror ();
2565 return 0;
2567 _ACEOF
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest$ac_exeext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_search_strerror="none required"
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.err conftest.$ac_objext \
2597 conftest$ac_exeext conftest.$ac_ext
2598 if test "$ac_cv_search_strerror" = no; then
2599 for ac_lib in cposix; do
2600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2608 /* Override any gcc2 internal prototype to avoid an error. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 /* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614 char strerror ();
2616 main ()
2618 strerror ();
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="-l$ac_lib"
2646 break
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f conftest.err conftest.$ac_objext \
2653 conftest$ac_exeext conftest.$ac_ext
2654 done
2656 LIBS=$ac_func_search_save_LIBS
2658 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660 if test "$ac_cv_search_strerror" != no; then
2661 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2667 am__api_version="1.9"
2668 # Find a good install program. We prefer a C program (faster),
2669 # so one script is as good as another. But avoid the broken or
2670 # incompatible versions:
2671 # SysV /etc/install, /usr/sbin/install
2672 # SunOS /usr/etc/install
2673 # IRIX /sbin/install
2674 # AIX /bin/install
2675 # AmigaOS /C/install, which installs bootblocks on floppy discs
2676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679 # OS/2's system install, which has a completely different semantic
2680 # ./install, which can be erroneously created by make from ./install.sh.
2681 # Reject install programs that cannot install multiple files.
2682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2684 if test -z "$INSTALL"; then
2685 if test "${ac_cv_path_install+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694 case $as_dir/ in
2695 ./ | .// | /cC/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2698 /usr/ucb/* ) ;;
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2729 done
2730 done
2732 esac
2733 done
2735 rm -rf conftest.one conftest.two conftest.dir
2738 if test "${ac_cv_path_install+set}" = set; then
2739 INSTALL=$ac_cv_path_install
2740 else
2741 # As a last resort, use the slow shell script. Don't cache a
2742 # value for INSTALL within a source directory, because that will
2743 # break other packages using the cache if that directory is
2744 # removed, or if the value is a relative name.
2745 INSTALL=$ac_install_sh
2748 echo "$as_me:$LINENO: result: $INSTALL" >&5
2749 echo "${ECHO_T}$INSTALL" >&6
2751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752 # It thinks the first close brace ends the variable substitution.
2753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2760 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2761 # Just in case
2762 sleep 1
2763 echo timestamp > conftest.file
2764 # Do `set' in a subshell so we don't clobber the current shell's
2765 # arguments. Must try -L first in case configure is actually a
2766 # symlink; some systems play weird games with the mod time of symlinks
2767 # (eg FreeBSD returns the mod time of the symlink's containing
2768 # directory).
2769 if (
2770 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2771 if test "$*" = "X"; then
2772 # -L didn't work.
2773 set X `ls -t $srcdir/configure conftest.file`
2775 rm -f conftest.file
2776 if test "$*" != "X $srcdir/configure conftest.file" \
2777 && test "$*" != "X conftest.file $srcdir/configure"; then
2779 # If neither matched, then we have a broken ls. This can happen
2780 # if, for instance, CONFIG_SHELL is bash and it inherits a
2781 # broken ls alias from the environment. This has actually
2782 # happened. Such a system could not be considered "sane".
2783 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2784 alias in your environment" >&5
2785 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2786 alias in your environment" >&2;}
2787 { (exit 1); exit 1; }; }
2790 test "$2" = conftest.file
2792 then
2793 # Ok.
2795 else
2796 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2797 Check your system clock" >&5
2798 echo "$as_me: error: newly created file is older than distributed files!
2799 Check your system clock" >&2;}
2800 { (exit 1); exit 1; }; }
2802 echo "$as_me:$LINENO: result: yes" >&5
2803 echo "${ECHO_T}yes" >&6
2804 test "$program_prefix" != NONE &&
2805 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE &&
2808 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2809 # Double any \ or $. echo might interpret backslashes.
2810 # By default was `s,x,x', remove it if useless.
2811 cat <<\_ACEOF >conftest.sed
2812 s/[\\$]/&&/g;s/;s,x,x,$//
2813 _ACEOF
2814 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2815 rm conftest.sed
2817 # expand $ac_aux_dir to an absolute path
2818 am_aux_dir=`cd $ac_aux_dir && pwd`
2820 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2821 # Use eval to expand $SHELL
2822 if eval "$MISSING --run true"; then
2823 am_missing_run="$MISSING --run "
2824 else
2825 am_missing_run=
2826 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2827 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2830 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2831 # We used to keeping the `.' as first argument, in order to
2832 # allow $(mkdir_p) to be used without argument. As in
2833 # $(mkdir_p) $(somedir)
2834 # where $(somedir) is conditionally defined. However this is wrong
2835 # for two reasons:
2836 # 1. if the package is installed by a user who cannot write `.'
2837 # make install will fail,
2838 # 2. the above comment should most certainly read
2839 # $(mkdir_p) $(DESTDIR)$(somedir)
2840 # so it does not work when $(somedir) is undefined and
2841 # $(DESTDIR) is not.
2842 # To support the latter case, we have to write
2843 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2844 # so the `.' trick is pointless.
2845 mkdir_p='mkdir -p --'
2846 else
2847 # On NextStep and OpenStep, the `mkdir' command does not
2848 # recognize any option. It will interpret all options as
2849 # directories to create, and then abort because `.' already
2850 # exists.
2851 for d in ./-p ./--version;
2853 test -d $d && rmdir $d
2854 done
2855 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2856 if test -f "$ac_aux_dir/mkinstalldirs"; then
2857 mkdir_p='$(mkinstalldirs)'
2858 else
2859 mkdir_p='$(install_sh) -d'
2863 for ac_prog in gawk mawk nawk awk
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_AWK+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$AWK"; then
2873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_AWK="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2891 AWK=$ac_cv_prog_AWK
2892 if test -n "$AWK"; then
2893 echo "$as_me:$LINENO: result: $AWK" >&5
2894 echo "${ECHO_T}$AWK" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2900 test -n "$AWK" && break
2901 done
2903 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2906 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 all:
2911 @echo 'ac_maketemp="$(MAKE)"'
2912 _ACEOF
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2915 if test -n "$ac_maketemp"; then
2916 eval ac_cv_prog_make_${ac_make}_set=yes
2917 else
2918 eval ac_cv_prog_make_${ac_make}_set=no
2920 rm -f conftest.make
2922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924 echo "${ECHO_T}yes" >&6
2925 SET_MAKE=
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2929 SET_MAKE="MAKE=${MAKE-make}"
2932 rm -rf .tst 2>/dev/null
2933 mkdir .tst 2>/dev/null
2934 if test -d .tst; then
2935 am__leading_dot=.
2936 else
2937 am__leading_dot=_
2939 rmdir .tst 2>/dev/null
2941 DEPDIR="${am__leading_dot}deps"
2943 ac_config_commands="$ac_config_commands depfiles"
2946 am_make=${MAKE-make}
2947 cat > confinc << 'END'
2948 am__doit:
2949 @echo done
2950 .PHONY: am__doit
2952 # If we don't find an include directive, just comment out the code.
2953 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2954 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2955 am__include="#"
2956 am__quote=
2957 _am_result=none
2958 # First try GNU make style include.
2959 echo "include confinc" > confmf
2960 # We grep out `Entering directory' and `Leaving directory'
2961 # messages which can occur if `w' ends up in MAKEFLAGS.
2962 # In particular we don't look at `^make:' because GNU make might
2963 # be invoked under some other name (usually "gmake"), in which
2964 # case it prints its new name instead of `make'.
2965 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2966 am__include=include
2967 am__quote=
2968 _am_result=GNU
2970 # Now try BSD make style include.
2971 if test "$am__include" = "#"; then
2972 echo '.include "confinc"' > confmf
2973 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2974 am__include=.include
2975 am__quote="\""
2976 _am_result=BSD
2981 echo "$as_me:$LINENO: result: $_am_result" >&5
2982 echo "${ECHO_T}$_am_result" >&6
2983 rm -f confinc confmf
2985 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2986 if test "${enable_dependency_tracking+set}" = set; then
2987 enableval="$enable_dependency_tracking"
2990 if test "x$enable_dependency_tracking" != xno; then
2991 am_depcomp="$ac_aux_dir/depcomp"
2992 AMDEPBACKSLASH='\'
2996 if test "x$enable_dependency_tracking" != xno; then
2997 AMDEP_TRUE=
2998 AMDEP_FALSE='#'
2999 else
3000 AMDEP_TRUE='#'
3001 AMDEP_FALSE=
3006 # test to see if srcdir already configured
3007 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008 test -f $srcdir/config.status; then
3009 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011 { (exit 1); exit 1; }; }
3014 # test whether we have cygpath
3015 if test -z "$CYGPATH_W"; then
3016 if (cygpath --version) >/dev/null 2>/dev/null; then
3017 CYGPATH_W='cygpath -w'
3018 else
3019 CYGPATH_W=echo
3024 # Define the identity of the package.
3025 PACKAGE=gas
3026 VERSION=${BFD_VERSION}
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE "$PACKAGE"
3031 _ACEOF
3034 cat >>confdefs.h <<_ACEOF
3035 #define VERSION "$VERSION"
3036 _ACEOF
3038 # Some tools Automake needs.
3040 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3054 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3056 # Installed binaries are usually stripped using `strip' when the user
3057 # run `make install-strip'. However `strip' might not be the right
3058 # tool to use in cross-compilation environments, therefore Automake
3059 # will honor the `STRIP' environment variable to overrule this program.
3060 if test "$cross_compiling" != no; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3063 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 if test -n "$STRIP"; then
3070 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 echo "$as_me:$LINENO: result: $STRIP" >&5
3091 echo "${ECHO_T}$STRIP" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3098 if test -z "$ac_cv_prog_STRIP"; then
3099 ac_ct_STRIP=$STRIP
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP="strip"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3124 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3127 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3130 echo "${ECHO_T}$ac_ct_STRIP" >&6
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3136 STRIP=$ac_ct_STRIP
3137 else
3138 STRIP="$ac_cv_prog_STRIP"
3142 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3144 # We need awk for the "check" target. The system "awk" is bad on
3145 # some platforms.
3146 # Always define AMTAR for backward compatibility.
3148 AMTAR=${AMTAR-"${am_missing_run}tar"}
3150 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155 depcc="$CC" am_compiler_list=
3157 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3163 # We make a subdir and do the tests there. Otherwise we can end up
3164 # making bogus files that we don't know about and never remove. For
3165 # instance it was reported that on HP-UX the gcc test will end up
3166 # making a dummy file named `D' -- because `-MD' means `put the output
3167 # in D'.
3168 mkdir conftest.dir
3169 # Copy depcomp to subdir because otherwise we won't find it if we're
3170 # using a relative directory.
3171 cp "$am_depcomp" conftest.dir
3172 cd conftest.dir
3173 # We will build objects and dependencies in a subdirectory because
3174 # it helps to detect inapplicable dependency modes. For instance
3175 # both Tru64's cc and ICC support -MD to output dependencies as a
3176 # side effect of compilation, but ICC will put the dependencies in
3177 # the current directory while Tru64 will put them in the object
3178 # directory.
3179 mkdir sub
3181 am_cv_CC_dependencies_compiler_type=none
3182 if test "$am_compiler_list" = ""; then
3183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3185 for depmode in $am_compiler_list; do
3186 # Setup a source with many dependencies, because some compilers
3187 # like to wrap large dependency lists on column 80 (with \), and
3188 # we should not choose a depcomp mode which is confused by this.
3190 # We need to recreate these files for each test, as the compiler may
3191 # overwrite some of them when testing with obscure command lines.
3192 # This happens at least with the AIX C compiler.
3193 : > sub/conftest.c
3194 for i in 1 2 3 4 5 6; do
3195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3197 # Solaris 8's {/usr,}/bin/sh.
3198 touch sub/conftst$i.h
3199 done
3200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3202 case $depmode in
3203 nosideeffect)
3204 # after this tag, mechanisms are not by side-effect, so they'll
3205 # only be used when explicitly requested
3206 if test "x$enable_dependency_tracking" = xyes; then
3207 continue
3208 else
3209 break
3212 none) break ;;
3213 esac
3214 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3215 # mode. It turns out that the SunPro C++ compiler does not properly
3216 # handle `-M -o', and we need to detect this.
3217 if depmode=$depmode \
3218 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3220 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3221 >/dev/null 2>conftest.err &&
3222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3223 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3225 # icc doesn't choke on unknown options, it will just issue warnings
3226 # or remarks (even with -Werror). So we grep stderr for any message
3227 # that says an option was ignored or not supported.
3228 # When given -MP, icc 7.0 and 7.1 complain thusly:
3229 # icc: Command line warning: ignoring option '-M'; no argument required
3230 # The diagnosis changed in icc 8.0:
3231 # icc: Command line remark: option '-MP' not supported
3232 if (grep 'ignoring option' conftest.err ||
3233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3234 am_cv_CC_dependencies_compiler_type=$depmode
3235 break
3238 done
3240 cd ..
3241 rm -rf conftest.dir
3242 else
3243 am_cv_CC_dependencies_compiler_type=none
3247 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3248 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254 test "x$enable_dependency_tracking" != xno \
3255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256 am__fastdepCC_TRUE=
3257 am__fastdepCC_FALSE='#'
3258 else
3259 am__fastdepCC_TRUE='#'
3260 am__fastdepCC_FALSE=
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 CC=$ac_ct_CC
3346 else
3347 CC="$ac_cv_prog_CC"
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="cc"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6
3420 else
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 CC=$ac_ct_CC
3426 else
3427 CC="$ac_cv_prog_CC"
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3524 test -n "$CC" && break
3525 done
3527 if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560 echo "${ECHO_T}$ac_ct_CC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 test -n "$ac_ct_CC" && break
3567 done
3569 CC=$ac_ct_CC
3575 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3578 See \`config.log' for more details." >&5
3579 echo "$as_me: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&2;}
3581 { (exit 1); exit 1; }; }; }
3583 # Provide some information about the compiler.
3584 echo "$as_me:$LINENO:" \
3585 "checking for C compiler version" >&5
3586 ac_compiler=`set X $ac_compile; echo $2`
3587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3588 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3593 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3598 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3603 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 main ()
3618 #ifndef __GNUC__
3619 choke me
3620 #endif
3623 return 0;
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_compiler_gnu=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_compiler_gnu=no
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661 GCC=`test $ac_compiler_gnu = yes && echo yes`
3662 ac_test_CFLAGS=${CFLAGS+set}
3663 ac_save_CFLAGS=$CFLAGS
3664 CFLAGS="-g"
3665 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667 if test "${ac_cv_prog_cc_g+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3678 main ()
3682 return 0;
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_g=yes
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ac_cv_prog_cc_g=no
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3733 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_cv_prog_cc_stdc=no
3739 ac_save_CC=$CC
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3757 return p[i];
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std1 is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std1. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3785 main ()
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 return 0;
3791 _ACEOF
3792 # Don't try gcc -ansi; that turns off useful extensions and
3793 # breaks some systems' header files.
3794 # AIX -qlanglvl=ansi
3795 # Ultrix and OSF/1 -std1
3796 # HP-UX 10.20 and later -Ae
3797 # HP-UX older versions -Aa -D_HPUX_SOURCE
3798 # SVR4 -Xc -D__EXTENSIONS__
3799 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801 CC="$ac_save_CC $ac_arg"
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_prog_cc_stdc=$ac_arg
3825 break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f conftest.err conftest.$ac_objext
3832 done
3833 rm -f conftest.$ac_ext conftest.$ac_objext
3834 CC=$ac_save_CC
3838 case "x$ac_cv_prog_cc_stdc" in
3839 x|xno)
3840 echo "$as_me:$LINENO: result: none needed" >&5
3841 echo "${ECHO_T}none needed" >&6 ;;
3843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845 CC="$CC $ac_cv_prog_cc_stdc" ;;
3846 esac
3848 # Some people use a C++ compiler to compile C. Since we use `exit',
3849 # in C++ we need to declare it. In case someone uses the same compiler
3850 # for both compiling C and C++ we need to have the C++ compiler decide
3851 # the declaration of exit, since it's the most demanding environment.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 #ifndef __cplusplus
3854 choke me
3855 #endif
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 for ac_declaration in \
3880 '' \
3881 'extern "C" void std::exit (int) throw (); using std::exit;' \
3882 'extern "C" void std::exit (int); using std::exit;' \
3883 'extern "C" void exit (int) throw ();' \
3884 'extern "C" void exit (int);' \
3885 'void exit (int);'
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_declaration
3894 #include <stdlib.h>
3896 main ()
3898 exit (42);
3900 return 0;
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 continue
3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_declaration
3941 main ()
3943 exit (42);
3945 return 0;
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 break
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 done
3978 rm -f conftest*
3979 if test -n "$ac_declaration"; then
3980 echo '#ifdef __cplusplus' >>confdefs.h
3981 echo $ac_declaration >>confdefs.h
3982 echo '#endif' >>confdefs.h
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _GNU_SOURCE 1
4000 _ACEOF
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4014 if test -z "$CPP"; then
4015 if test "${ac_cv_prog_CPP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041 Syntax error
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054 else
4055 ac_cpp_err=
4057 else
4058 ac_cpp_err=yes
4060 if test -z "$ac_cpp_err"; then
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 # Broken: fails on valid input.
4067 continue
4069 rm -f conftest.err conftest.$ac_ext
4071 # OK, works on sane cases. Now check whether non-existent headers
4072 # can be detected and how.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092 else
4093 ac_cpp_err=
4095 else
4096 ac_cpp_err=yes
4098 if test -z "$ac_cpp_err"; then
4099 # Broken: success on invalid input.
4100 continue
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4109 rm -f conftest.err conftest.$ac_ext
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4115 break
4118 done
4119 ac_cv_prog_CPP=$CPP
4122 CPP=$ac_cv_prog_CPP
4123 else
4124 ac_cv_prog_CPP=$CPP
4126 echo "$as_me:$LINENO: result: $CPP" >&5
4127 echo "${ECHO_T}$CPP" >&6
4128 ac_preproc_ok=false
4129 for ac_c_preproc_warn_flag in '' yes
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148 Syntax error
4149 _ACEOF
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_c_preproc_warn_flag
4160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161 else
4162 ac_cpp_err=
4164 else
4165 ac_cpp_err=yes
4167 if test -z "$ac_cpp_err"; then
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 # Broken: fails on valid input.
4174 continue
4176 rm -f conftest.err conftest.$ac_ext
4178 # OK, works on sane cases. Now check whether non-existent headers
4179 # can be detected and how.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4187 _ACEOF
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 else
4200 ac_cpp_err=
4202 else
4203 ac_cpp_err=yes
4205 if test -z "$ac_cpp_err"; then
4206 # Broken: success on invalid input.
4207 continue
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 # Passes both tests.
4213 ac_preproc_ok=:
4214 break
4216 rm -f conftest.err conftest.$ac_ext
4218 done
4219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220 rm -f conftest.err conftest.$ac_ext
4221 if $ac_preproc_ok; then
4223 else
4224 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4225 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4227 See \`config.log' for more details." >&5
4228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }; }
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242 if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4250 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
4255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4257 if test "${ac_cv_header_stdc+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdlib.h>
4267 #include <stdarg.h>
4268 #include <string.h>
4269 #include <float.h>
4272 main ()
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_header_stdc=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 ac_cv_header_stdc=no
4308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <string.h>
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4324 else
4325 ac_cv_header_stdc=no
4327 rm -f conftest*
4331 if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <stdlib.h>
4341 _ACEOF
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4345 else
4346 ac_cv_header_stdc=no
4348 rm -f conftest*
4352 if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ctype.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377 main ()
4379 int i;
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4383 exit(2);
4384 exit (0);
4386 _ACEOF
4387 rm -f conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4399 else
4400 echo "$as_me: program exited with status $ac_status" >&5
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ( exit $ac_status )
4405 ac_cv_header_stdc=no
4407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4413 if test $ac_cv_header_stdc = yes; then
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4417 _ACEOF
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 eval "$as_ac_Header=yes"
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 eval "$as_ac_Header=no"
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484 cat >>confdefs.h <<_ACEOF
4485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 _ACEOF
4490 done
4494 if test "${ac_cv_header_minix_config_h+set}" = set; then
4495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4496 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4501 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502 else
4503 # Is the header compilable?
4504 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4505 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 $ac_includes_default
4513 #include <minix/config.h>
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_header_compiler=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_header_compiler=no
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546 echo "${ECHO_T}$ac_header_compiler" >&6
4548 # Is the header present?
4549 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4550 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <minix/config.h>
4558 _ACEOF
4559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } >/dev/null; then
4567 if test -s conftest.err; then
4568 ac_cpp_err=$ac_c_preproc_warn_flag
4569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570 else
4571 ac_cpp_err=
4573 else
4574 ac_cpp_err=yes
4576 if test -z "$ac_cpp_err"; then
4577 ac_header_preproc=yes
4578 else
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 ac_header_preproc=no
4584 rm -f conftest.err conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586 echo "${ECHO_T}$ac_header_preproc" >&6
4588 # So? What about this header?
4589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590 yes:no: )
4591 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4594 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4595 ac_header_preproc=yes
4597 no:yes:* )
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4599 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4601 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4603 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4605 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4607 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4609 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 cat <<\_ASBOX
4612 ## ------------------------------------------ ##
4613 ## Report this to the AC_PACKAGE_NAME lists. ##
4614 ## ------------------------------------------ ##
4615 _ASBOX
4617 sed "s/^/$as_me: WARNING: /" >&2
4619 esac
4620 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4621 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4622 if test "${ac_cv_header_minix_config_h+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_cv_header_minix_config_h=$ac_header_preproc
4627 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4628 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4631 if test $ac_cv_header_minix_config_h = yes; then
4632 MINIX=yes
4633 else
4634 MINIX=
4638 if test "$MINIX" = yes; then
4640 cat >>confdefs.h <<\_ACEOF
4641 #define _POSIX_SOURCE 1
4642 _ACEOF
4645 cat >>confdefs.h <<\_ACEOF
4646 #define _POSIX_1_SOURCE 2
4647 _ACEOF
4650 cat >>confdefs.h <<\_ACEOF
4651 #define _MINIX 1
4652 _ACEOF
4658 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4659 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4660 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 # define __EXTENSIONS__ 1
4671 $ac_includes_default
4673 main ()
4677 return 0;
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_safe_to_define___extensions__=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 ac_cv_safe_to_define___extensions__=no
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4712 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 cat >>confdefs.h <<\_ACEOF
4715 #define __EXTENSIONS__ 1
4716 _ACEOF
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _ALL_SOURCE 1
4720 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _GNU_SOURCE 1
4724 _ACEOF
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _POSIX_PTHREAD_SEMANTICS 1
4728 _ACEOF
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _TANDEM_SOURCE 1
4732 _ACEOF
4738 macro_version='2.1a'
4739 macro_revision='1.2435'
4752 ltmain="$ac_aux_dir/ltmain.sh"
4754 # Set options
4756 enable_dlopen=no
4759 enable_win32_dll=no
4762 # Check whether --enable-shared or --disable-shared was given.
4763 if test "${enable_shared+set}" = set; then
4764 enableval="$enable_shared"
4765 p=${PACKAGE-default}
4766 case $enableval in
4767 yes) enable_shared=yes ;;
4768 no) enable_shared=no ;;
4770 enable_shared=no
4771 # Look at the argument we got. We use all the common list separators.
4772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4773 for pkg in $enableval; do
4774 IFS="$lt_save_ifs"
4775 if test "X$pkg" = "X$p"; then
4776 enable_shared=yes
4778 done
4779 IFS="$lt_save_ifs"
4781 esac
4782 else
4783 enable_shared=yes
4793 # Check whether --enable-static or --disable-static was given.
4794 if test "${enable_static+set}" = set; then
4795 enableval="$enable_static"
4796 p=${PACKAGE-default}
4797 case $enableval in
4798 yes) enable_static=yes ;;
4799 no) enable_static=no ;;
4801 enable_static=no
4802 # Look at the argument we got. We use all the common list separators.
4803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804 for pkg in $enableval; do
4805 IFS="$lt_save_ifs"
4806 if test "X$pkg" = "X$p"; then
4807 enable_static=yes
4809 done
4810 IFS="$lt_save_ifs"
4812 esac
4813 else
4814 enable_static=yes
4825 # Check whether --with-pic or --without-pic was given.
4826 if test "${with_pic+set}" = set; then
4827 withval="$with_pic"
4828 pic_mode="$withval"
4829 else
4830 pic_mode=default
4833 test -z "$pic_mode" && pic_mode=default
4841 # Check whether --enable-fast-install or --disable-fast-install was given.
4842 if test "${enable_fast_install+set}" = set; then
4843 enableval="$enable_fast_install"
4844 p=${PACKAGE-default}
4845 case $enableval in
4846 yes) enable_fast_install=yes ;;
4847 no) enable_fast_install=no ;;
4849 enable_fast_install=no
4850 # Look at the argument we got. We use all the common list separators.
4851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4852 for pkg in $enableval; do
4853 IFS="$lt_save_ifs"
4854 if test "X$pkg" = "X$p"; then
4855 enable_fast_install=yes
4857 done
4858 IFS="$lt_save_ifs"
4860 esac
4861 else
4862 enable_fast_install=yes
4872 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4873 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4874 if test "${lt_cv_path_SED+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 # Loop through the user's path and test for sed and gsed.
4878 # Then use that list of sed's as ones to test for truncation.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for lt_ac_prog in sed gsed; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4887 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4889 done
4890 done
4891 done
4892 IFS=$as_save_IFS
4893 lt_ac_max=0
4894 lt_ac_count=0
4895 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4896 # along with /bin/sed that truncates output.
4897 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4898 test ! -f $lt_ac_sed && continue
4899 cat /dev/null > conftest.in
4900 lt_ac_count=0
4901 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4902 # Check for GNU sed and select it if it is found.
4903 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4904 lt_cv_path_SED=$lt_ac_sed
4905 break
4907 while true; do
4908 cat conftest.in conftest.in >conftest.tmp
4909 mv conftest.tmp conftest.in
4910 cp conftest.in conftest.nl
4911 echo >>conftest.nl
4912 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4913 cmp -s conftest.out conftest.nl || break
4914 # 10000 chars as input seems more than enough
4915 test $lt_ac_count -gt 10 && break
4916 lt_ac_count=`expr $lt_ac_count + 1`
4917 if test $lt_ac_count -gt $lt_ac_max; then
4918 lt_ac_max=$lt_ac_count
4919 lt_cv_path_SED=$lt_ac_sed
4921 done
4922 done
4926 SED=$lt_cv_path_SED
4928 echo "$as_me:$LINENO: result: $SED" >&5
4929 echo "${ECHO_T}$SED" >&6
4931 test -z "$SED" && SED=sed
4932 Xsed="$SED -e 1s/^X//"
4944 echo "$as_me:$LINENO: checking for fgrep" >&5
4945 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4946 if test "${ac_cv_prog_fgrep+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4950 then ac_cv_prog_fgrep='grep -F'
4951 else ac_cv_prog_fgrep='fgrep'
4954 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4955 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4956 FGREP=$ac_cv_prog_fgrep
4959 test -z "$GREP" && GREP=grep
4979 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4980 if test "${with_gnu_ld+set}" = set; then
4981 withval="$with_gnu_ld"
4982 test "$withval" = no || with_gnu_ld=yes
4983 else
4984 with_gnu_ld=no
4986 ac_prog=ld
4987 if test "$GCC" = yes; then
4988 # Check if gcc -print-prog-name=ld gives a path.
4989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4991 case $host in
4992 *-*-mingw*)
4993 # gcc leaves a trailing carriage return which upsets mingw
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997 esac
4998 case $ac_prog in
4999 # Accept absolute paths.
5000 [\\/]* | ?:[\\/]*)
5001 re_direlt='/[^/][^/]*/\.\./'
5002 # Canonicalize the pathname of ld
5003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006 done
5007 test -z "$LD" && LD="$ac_prog"
5010 # If it fails, then pretend we aren't using GCC.
5011 ac_prog=ld
5014 # If it is relative, then search for the first ld in PATH.
5015 with_gnu_ld=unknown
5017 esac
5018 elif test "$with_gnu_ld" = yes; then
5019 echo "$as_me:$LINENO: checking for GNU ld" >&5
5020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5021 else
5022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5025 if test "${lt_cv_path_LD+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 if test -z "$LD"; then
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH; do
5031 IFS="$lt_save_ifs"
5032 test -z "$ac_dir" && ac_dir=.
5033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034 lt_cv_path_LD="$ac_dir/$ac_prog"
5035 # Check to see if the program is GNU ld. I'd rather use --version,
5036 # but apparently some variants of GNU ld only accept -v.
5037 # Break only if it was the GNU/non-GNU ld that we prefer.
5038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039 *GNU* | *'with BFD'*)
5040 test "$with_gnu_ld" != no && break
5043 test "$with_gnu_ld" != yes && break
5045 esac
5047 done
5048 IFS="$lt_save_ifs"
5049 else
5050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5054 LD="$lt_cv_path_LD"
5055 if test -n "$LD"; then
5056 echo "$as_me:$LINENO: result: $LD" >&5
5057 echo "${ECHO_T}$LD" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5064 { (exit 1); exit 1; }; }
5065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5071 case `$LD -v 2>&1 </dev/null` in
5072 *GNU* | *'with BFD'*)
5073 lt_cv_prog_gnu_ld=yes
5076 lt_cv_prog_gnu_ld=no
5078 esac
5080 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5082 with_gnu_ld=$lt_cv_prog_gnu_ld
5093 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5094 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5095 if test "${lt_cv_path_NM+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$NM"; then
5099 # Let the user override the test.
5100 lt_cv_path_NM="$NM"
5101 else
5102 lt_nm_to_check="${ac_tool_prefix}nm"
5103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104 lt_nm_to_check="$lt_nm_to_check nm"
5106 for lt_tmp_nm in $lt_nm_to_check; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 tmp_nm="$ac_dir/$lt_tmp_nm"
5112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113 # Check to see if the nm accepts a BSD-compat flag.
5114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115 # nm: unknown option "B" ignored
5116 # Tru64's nm complains that /dev/null is an invalid object file
5117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118 */dev/null* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break
5123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5132 esac
5134 esac
5136 done
5137 IFS="$lt_save_ifs"
5138 done
5139 : ${lt_cv_path_NM=no}
5142 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5143 echo "${ECHO_T}$lt_cv_path_NM" >&6
5144 if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146 else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if test -n "$DUMPBIN"; then
5159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5177 DUMPBIN=$ac_cv_prog_DUMPBIN
5178 if test -n "$DUMPBIN"; then
5179 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5180 echo "${ECHO_T}$DUMPBIN" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5186 test -n "$DUMPBIN" && break
5187 done
5189 if test -z "$DUMPBIN"; then
5190 ac_ct_DUMPBIN=$DUMPBIN
5191 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5193 # Extract the first word of "$ac_prog", so it can be a program name with args.
5194 set dummy $ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$ac_ct_DUMPBIN"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5219 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220 if test -n "$ac_ct_DUMPBIN"; then
5221 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5222 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 test -n "$ac_ct_DUMPBIN" && break
5229 done
5230 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5232 DUMPBIN=$ac_ct_DUMPBIN
5236 if test "$DUMPBIN" != ":"; then
5237 NM="$DUMPBIN"
5240 test -z "$NM" && NM=nm
5247 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5248 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5249 if test "${lt_cv_nm_interface+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 lt_cv_nm_interface="BSD nm"
5253 echo "int some_variable = 0;" > conftest.$ac_ext
5254 (eval echo "\"\$as_me:5254: $ac_compile\"" >&5)
5255 (eval "$ac_compile" 2>conftest.err)
5256 cat conftest.err >&5
5257 (eval echo "\"\$as_me:5257: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5258 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5259 cat conftest.err >&5
5260 (eval echo "\"\$as_me:5260: output\"" >&5)
5261 cat conftest.out >&5
5262 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5263 lt_cv_nm_interface="MS dumpbin"
5265 rm -f conftest*
5267 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5268 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5270 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5272 LN_S=$as_ln_s
5273 if test "$LN_S" = "ln -s"; then
5274 echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5278 echo "${ECHO_T}no, using $LN_S" >&6
5281 # find the maximum length of command line arguments
5282 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5283 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5284 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5288 teststring="ABCD"
5290 case $build_os in
5291 msdosdjgpp*)
5292 # On DJGPP, this test can blow up pretty badly due to problems in libc
5293 # (any single argument exceeding 2000 bytes causes a buffer overrun
5294 # during glob expansion). Even if it were fixed, the result of this
5295 # check would be larger than it should be.
5296 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5299 gnu*)
5300 # Under GNU Hurd, this test is not required because there is
5301 # no limit to the length of command line arguments.
5302 # Libtool will interpret -1 as no limit whatsoever
5303 lt_cv_sys_max_cmd_len=-1;
5306 cygwin* | mingw*)
5307 # On Win9x/ME, this test blows up -- it succeeds, but takes
5308 # about 5 minutes as the teststring grows exponentially.
5309 # Worse, since 9x/ME are not pre-emptively multitasking,
5310 # you end up with a "frozen" computer, even though with patience
5311 # the test eventually succeeds (with a max line length of 256k).
5312 # Instead, let's just punt: use the minimum linelength reported by
5313 # all of the supported platforms: 8192 (on NT/2K/XP).
5314 lt_cv_sys_max_cmd_len=8192;
5317 amigaos*)
5318 # On AmigaOS with pdksh, this test takes hours, literally.
5319 # So we just punt and use a minimum line length of 8192.
5320 lt_cv_sys_max_cmd_len=8192;
5323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 # This has been around since 386BSD, at least. Likely further.
5325 if test -x /sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327 elif test -x /usr/sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 else
5330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5332 # And add a safety zone
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 interix*)
5338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339 lt_cv_sys_max_cmd_len=196608
5342 osf*)
5343 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345 # nice to cause kernel panics so lets avoid the loop below.
5346 # First set a reasonable default.
5347 lt_cv_sys_max_cmd_len=16384
5349 if test -x /sbin/sysconfig; then
5350 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 esac
5355 sco3.2v5*)
5356 lt_cv_sys_max_cmd_len=102400
5358 sysv5* | sco5v6* | sysv4.2uw2*)
5359 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360 if test -n "$kargmax"; then
5361 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 else
5363 lt_cv_sys_max_cmd_len=32768
5367 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5368 if test -n $lt_cv_sys_max_cmd_len; then
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371 else
5372 # Make teststring a little bigger before we do anything with it.
5373 # a 1K string should be a reasonable start.
5374 for i in 1 2 3 4 5 6 7 8 ; do
5375 teststring=$teststring$teststring
5376 done
5377 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5378 # If test is not a shell built-in, we'll probably end up computing a
5379 # maximum length that is only half of the actual maximum length, but
5380 # we can't tell.
5381 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5382 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5383 test $i != 17 # 1/2 MB should be enough
5385 i=`expr $i + 1`
5386 teststring=$teststring$teststring
5387 done
5388 # Only check the string length outside the loop.
5389 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390 teststring=
5391 # Add a significant safety factor because C++ compilers can tack on
5392 # massive amounts of additional arguments before passing them to the
5393 # linker. It appears as though 1/2 is a usable value.
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397 esac
5401 if test -n $lt_cv_sys_max_cmd_len ; then
5402 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5403 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5404 else
5405 echo "$as_me:$LINENO: result: none" >&5
5406 echo "${ECHO_T}none" >&6
5408 max_cmd_len=$lt_cv_sys_max_cmd_len
5416 : ${CP="cp -f"}
5417 : ${MV="mv -f"}
5418 : ${RM="rm -f"}
5420 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5421 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5422 # Try some XSI features
5423 xsi_shell=no
5424 ( _lt_dummy="a/b/c"
5425 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5426 = c,a/b,, ) >/dev/null 2>&1 \
5427 && xsi_shell=yes
5428 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5429 echo "${ECHO_T}$xsi_shell" >&6
5432 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5433 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5434 lt_shell_append=no
5435 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436 >/dev/null 2>&1 \
5437 && lt_shell_append=yes
5438 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5439 echo "${ECHO_T}$lt_shell_append" >&6
5442 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443 lt_unset=unset
5444 else
5445 lt_unset=false
5452 # test EBCDIC or ASCII
5453 case `echo X|tr X '\101'` in
5454 A) # ASCII based system
5455 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5456 lt_SP2NL='tr \040 \012'
5457 lt_NL2SP='tr \015\012 \040\040'
5459 *) # EBCDIC based system
5460 lt_SP2NL='tr \100 \n'
5461 lt_NL2SP='tr \r\n \100\100'
5463 esac
5473 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5474 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5475 if test "${lt_cv_ld_reload_flag+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 lt_cv_ld_reload_flag='-r'
5480 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5481 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5482 reload_flag=$lt_cv_ld_reload_flag
5483 case $reload_flag in
5484 "" | " "*) ;;
5485 *) reload_flag=" $reload_flag" ;;
5486 esac
5487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488 case $host_os in
5489 darwin*)
5490 if test "$GCC" = yes; then
5491 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492 else
5493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5496 esac
5507 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5508 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5509 if test "${lt_cv_deplibs_check_method+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 lt_cv_file_magic_cmd='$MAGIC_CMD'
5513 lt_cv_file_magic_test_file=
5514 lt_cv_deplibs_check_method='unknown'
5515 # Need to set the preceding variable on all platforms that support
5516 # interlibrary dependencies.
5517 # 'none' -- dependencies not supported.
5518 # `unknown' -- same as none, but documents that we really don't know.
5519 # 'pass_all' -- all dependencies passed with no checks.
5520 # 'test_compile' -- check by making test program.
5521 # 'file_magic [[regex]]' -- check by looking for files in library path
5522 # which responds to the $file_magic_cmd with a given extended regex.
5523 # If you have `file' or equivalent on your system and you're not sure
5524 # whether `pass_all' will *always* work, you probably want this one.
5526 case $host_os in
5527 aix[4-9]*)
5528 lt_cv_deplibs_check_method=pass_all
5531 beos*)
5532 lt_cv_deplibs_check_method=pass_all
5535 bsdi[45]*)
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537 lt_cv_file_magic_cmd='/usr/bin/file -L'
5538 lt_cv_file_magic_test_file=/shlib/libc.so
5541 cygwin*)
5542 # func_win32_libid is a shell function defined in ltmain.sh
5543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544 lt_cv_file_magic_cmd='func_win32_libid'
5547 mingw* | pw32*)
5548 # Base MSYS/MinGW do not provide the 'file' command needed by
5549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550 # unless we find 'file', for example because we are cross-compiling.
5551 if ( file / ) >/dev/null 2>&1; then
5552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553 lt_cv_file_magic_cmd='func_win32_libid'
5554 else
5555 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5556 lt_cv_file_magic_cmd='$OBJDUMP -f'
5560 darwin* | rhapsody*)
5561 lt_cv_deplibs_check_method=pass_all
5564 freebsd* | dragonfly*)
5565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566 case $host_cpu in
5567 i*86 )
5568 # Not sure whether the presence of OpenBSD here was a mistake.
5569 # Let's accept both of them until this is cleared up.
5570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574 esac
5575 else
5576 lt_cv_deplibs_check_method=pass_all
5580 gnu*)
5581 lt_cv_deplibs_check_method=pass_all
5584 hpux10.20* | hpux11*)
5585 lt_cv_file_magic_cmd=/usr/bin/file
5586 case $host_cpu in
5587 ia64*)
5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591 hppa*64*)
5592 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]'
5593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5599 esac
5602 interix[3-9]*)
5603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5607 irix5* | irix6* | nonstopux*)
5608 case $LD in
5609 *-32|*"-32 ") libmagic=32-bit;;
5610 *-n32|*"-n32 ") libmagic=N32;;
5611 *-64|*"-64 ") libmagic=64-bit;;
5612 *) libmagic=never-match;;
5613 esac
5614 lt_cv_deplibs_check_method=pass_all
5617 # This must be Linux ELF.
5618 linux* | k*bsd*-gnu)
5619 lt_cv_deplibs_check_method=pass_all
5622 netbsd*)
5623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 else
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5630 newos6*)
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5632 lt_cv_file_magic_cmd=/usr/bin/file
5633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636 *nto* | *qnx*)
5637 lt_cv_deplibs_check_method=pass_all
5640 openbsd*)
5641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643 else
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5648 osf3* | osf4* | osf5*)
5649 lt_cv_deplibs_check_method=pass_all
5652 rdos*)
5653 lt_cv_deplibs_check_method=pass_all
5656 solaris*)
5657 lt_cv_deplibs_check_method=pass_all
5660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5661 lt_cv_deplibs_check_method=pass_all
5664 sysv4 | sysv4.3*)
5665 case $host_vendor in
5666 motorola)
5667 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]'
5668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670 ncr)
5671 lt_cv_deplibs_check_method=pass_all
5673 sequent)
5674 lt_cv_file_magic_cmd='/bin/file'
5675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677 sni)
5678 lt_cv_file_magic_cmd='/bin/file'
5679 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5680 lt_cv_file_magic_test_file=/lib/libc.so
5682 siemens)
5683 lt_cv_deplibs_check_method=pass_all
5686 lt_cv_deplibs_check_method=pass_all
5688 esac
5691 tpf*)
5692 lt_cv_deplibs_check_method=pass_all
5694 esac
5697 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699 file_magic_cmd=$lt_cv_file_magic_cmd
5700 deplibs_check_method=$lt_cv_deplibs_check_method
5701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}ar; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_AR+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 if test -n "$AR"; then
5723 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_AR="${ac_tool_prefix}ar"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5741 AR=$ac_cv_prog_AR
5742 if test -n "$AR"; then
5743 echo "$as_me:$LINENO: result: $AR" >&5
5744 echo "${ECHO_T}$AR" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5751 if test -z "$ac_cv_prog_AR"; then
5752 ac_ct_AR=$AR
5753 # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5774 done
5775 done
5777 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783 echo "${ECHO_T}$ac_ct_AR" >&6
5784 else
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5789 AR=$ac_ct_AR
5790 else
5791 AR="$ac_cv_prog_AR"
5794 test -z "$AR" && AR=ar
5795 test -z "$AR_FLAGS" && AR_FLAGS=cru
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_STRIP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5829 done
5830 done
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836 echo "$as_me:$LINENO: result: $STRIP" >&5
5837 echo "${ECHO_T}$STRIP" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5844 if test -z "$ac_cv_prog_STRIP"; then
5845 ac_ct_STRIP=$STRIP
5846 # Extract the first word of "strip", so it can be a program name with args.
5847 set dummy strip; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 if test -n "$ac_ct_STRIP"; then
5854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_STRIP="strip"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5873 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874 if test -n "$ac_ct_STRIP"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876 echo "${ECHO_T}$ac_ct_STRIP" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5882 STRIP=$ac_ct_STRIP
5883 else
5884 STRIP="$ac_cv_prog_STRIP"
5887 test -z "$STRIP" && STRIP=:
5894 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897 echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899 if test "${ac_cv_prog_RANLIB+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5916 done
5917 done
5921 RANLIB=$ac_cv_prog_RANLIB
5922 if test -n "$RANLIB"; then
5923 echo "$as_me:$LINENO: result: $RANLIB" >&5
5924 echo "${ECHO_T}$RANLIB" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5931 if test -z "$ac_cv_prog_RANLIB"; then
5932 ac_ct_RANLIB=$RANLIB
5933 # Extract the first word of "ranlib", so it can be a program name with args.
5934 set dummy ranlib; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 if test -n "$ac_ct_RANLIB"; then
5941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_RANLIB="ranlib"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5957 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5960 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961 if test -n "$ac_ct_RANLIB"; then
5962 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5963 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5969 RANLIB=$ac_ct_RANLIB
5970 else
5971 RANLIB="$ac_cv_prog_RANLIB"
5974 test -z "$RANLIB" && RANLIB=:
5981 # Determine commands to create old-style static archives.
5982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983 old_postinstall_cmds='chmod 644 $oldlib'
5984 old_postuninstall_cmds=
5986 if test -n "$RANLIB"; then
5987 case $host_os in
5988 openbsd*)
5989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5994 esac
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6031 # If no C compiler was specified, use CC.
6032 LTCC=${LTCC-"$CC"}
6034 # If no C compiler flags were specified, use CFLAGS.
6035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6037 # Allow CC to be a program name with arguments.
6038 compiler=$CC
6041 # Check for command to grab the raw symbol name followed by C symbol from nm.
6042 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6043 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6044 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6048 # These are sane defaults that work on at least a few old systems.
6049 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6051 # Character class describing NM global symbol codes.
6052 symcode='[BCDEGRST]'
6054 # Regexp to match symbols that can be accessed directly from C.
6055 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6057 # Define system-specific variables.
6058 case $host_os in
6059 aix*)
6060 symcode='[BCDT]'
6062 cygwin* | mingw* | pw32*)
6063 symcode='[ABCDGISTW]'
6065 hpux*)
6066 if test "$host_cpu" = ia64; then
6067 symcode='[ABCDEGRST]'
6070 irix* | nonstopux*)
6071 symcode='[BCDEGRST]'
6073 osf*)
6074 symcode='[BCDEGQRST]'
6076 solaris*)
6077 symcode='[BDRT]'
6079 sco3.2v5*)
6080 symcode='[DT]'
6082 sysv4.2uw2*)
6083 symcode='[DT]'
6085 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6086 symcode='[ABDT]'
6088 sysv4)
6089 symcode='[DFNSTU]'
6091 esac
6093 # If we're using GNU nm, then use its standard symbol codes.
6094 case `$NM -V 2>&1` in
6095 *GNU* | *'with BFD'*)
6096 symcode='[ABCDGIRSTW]' ;;
6097 esac
6099 # Transform an extracted symbol line into a proper C declaration.
6100 # Some systems (esp. on ia64) link data and code symbols differently,
6101 # so use this general approach.
6102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104 # Transform an extracted symbol line into symbol name and symbol address
6105 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6107 # Handle CRLF in mingw tool chain
6108 opt_cr=
6109 case $build_os in
6110 mingw*)
6111 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6113 esac
6115 # Try without a prefix underscore, then with it.
6116 for ac_symprfx in "" "_"; do
6118 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6119 symxfrm="\\1 $ac_symprfx\\2 \\2"
6121 # Write the raw and C identifiers.
6122 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6123 # Fake it for dumpbin and say T for any non-static function
6124 # and D for any global variable.
6125 # Also find C++ and __fastcall symbols from MSVC++,
6126 # which start with @ or ?.
6127 lt_cv_sys_global_symbol_pipe="$AWK '"\
6128 " {last_section=section; section=\$ 3};"\
6129 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6130 " \$ 0!~/External *\|/{next};"\
6131 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6132 " {if(hide[section]) next};"\
6133 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6134 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6135 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6136 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6137 " ' prfx=^$ac_symprfx"
6138 else
6139 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6142 # Check to see that the pipe works correctly.
6143 pipe_works=no
6145 rm -f conftest*
6146 cat > conftest.$ac_ext <<_LT_EOF
6147 #ifdef __cplusplus
6148 extern "C" {
6149 #endif
6150 char nm_test_var;
6151 void nm_test_func(void);
6152 void nm_test_func(void){}
6153 #ifdef __cplusplus
6155 #endif
6156 int main(){nm_test_var='a';nm_test_func();return(0);}
6157 _LT_EOF
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; then
6164 # Now try to grab the symbols.
6165 nlist=conftest.nm
6166 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6167 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && test -s "$nlist"; then
6171 # Try sorting and uniquifying the output.
6172 if sort "$nlist" | uniq > "$nlist"T; then
6173 mv -f "$nlist"T "$nlist"
6174 else
6175 rm -f "$nlist"T
6178 # Make sure that we snagged all the symbols we need.
6179 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6180 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6181 cat <<_LT_EOF > conftest.$ac_ext
6182 #ifdef __cplusplus
6183 extern "C" {
6184 #endif
6186 _LT_EOF
6187 # Now generate the symbol file.
6188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6190 cat <<_LT_EOF >> conftest.$ac_ext
6192 /* The mapping between symbol names and symbols. */
6193 const struct {
6194 const char *name;
6195 void *address;
6197 lt__PROGRAM__LTX_preloaded_symbols[] =
6199 { "@PROGRAM@", (void *) 0 },
6200 _LT_EOF
6201 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202 cat <<\_LT_EOF >> conftest.$ac_ext
6203 {0, (void *) 0}
6206 /* This works around a problem in FreeBSD linker */
6207 #ifdef FREEBSD_WORKAROUND
6208 static const void *lt_preloaded_setup() {
6209 return lt__PROGRAM__LTX_preloaded_symbols;
6211 #endif
6213 #ifdef __cplusplus
6215 #endif
6216 _LT_EOF
6217 # Now try linking the two files.
6218 mv conftest.$ac_objext conftstm.$ac_objext
6219 lt_save_LIBS="$LIBS"
6220 lt_save_CFLAGS="$CFLAGS"
6221 LIBS="conftstm.$ac_objext"
6222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6228 pipe_works=yes
6230 LIBS="$lt_save_LIBS"
6231 CFLAGS="$lt_save_CFLAGS"
6232 else
6233 echo "cannot find nm_test_func in $nlist" >&5
6235 else
6236 echo "cannot find nm_test_var in $nlist" >&5
6238 else
6239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241 else
6242 echo "$progname: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 rm -f conftest* conftst*
6247 # Do not use the global_symbol_pipe unless it works.
6248 if test "$pipe_works" = yes; then
6249 break
6250 else
6251 lt_cv_sys_global_symbol_pipe=
6253 done
6257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258 lt_cv_sys_global_symbol_to_cdecl=
6260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261 echo "$as_me:$LINENO: result: failed" >&5
6262 echo "${ECHO_T}failed" >&6
6263 else
6264 echo "$as_me:$LINENO: result: ok" >&5
6265 echo "${ECHO_T}ok" >&6
6284 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6285 if test "${enable_libtool_lock+set}" = set; then
6286 enableval="$enable_libtool_lock"
6289 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6291 # Some flags need to be propagated to the compiler or linker for good
6292 # libtool support.
6293 case $host in
6294 ia64-*-hpux*)
6295 # Find out which ABI we are using.
6296 echo 'int i;' > conftest.$ac_ext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; then
6302 case `/usr/bin/file conftest.$ac_objext` in
6303 *ELF-32*)
6304 HPUX_IA64_MODE="32"
6306 *ELF-64*)
6307 HPUX_IA64_MODE="64"
6309 esac
6311 rm -rf conftest*
6313 *-*-irix6*)
6314 # Find out which ABI we are using.
6315 echo '#line 6315 "configure"' > conftest.$ac_ext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; then
6321 if test "$lt_cv_prog_gnu_ld" = yes; then
6322 case `/usr/bin/file conftest.$ac_objext` in
6323 *32-bit*)
6324 LD="${LD-ld} -melf32bsmip"
6326 *N32*)
6327 LD="${LD-ld} -melf32bmipn32"
6329 *64-bit*)
6330 LD="${LD-ld} -melf64bmip"
6332 esac
6333 else
6334 case `/usr/bin/file conftest.$ac_objext` in
6335 *32-bit*)
6336 LD="${LD-ld} -32"
6338 *N32*)
6339 LD="${LD-ld} -n32"
6341 *64-bit*)
6342 LD="${LD-ld} -64"
6344 esac
6347 rm -rf conftest*
6350 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6351 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6352 # Find out which ABI we are using.
6353 echo 'int i;' > conftest.$ac_ext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 case `/usr/bin/file conftest.o` in
6360 *32-bit*)
6361 case $host in
6362 x86_64-*kfreebsd*-gnu)
6363 LD="${LD-ld} -m elf_i386_fbsd"
6365 x86_64-*linux*)
6366 LD="${LD-ld} -m elf_i386"
6368 ppc64-*linux*|powerpc64-*linux*)
6369 LD="${LD-ld} -m elf32ppclinux"
6371 s390x-*linux*)
6372 LD="${LD-ld} -m elf_s390"
6374 sparc64-*linux*)
6375 LD="${LD-ld} -m elf32_sparc"
6377 esac
6379 *64-bit*)
6380 case $host in
6381 x86_64-*kfreebsd*-gnu)
6382 LD="${LD-ld} -m elf_x86_64_fbsd"
6384 x86_64-*linux*)
6385 LD="${LD-ld} -m elf_x86_64"
6387 ppc*-*linux*|powerpc*-*linux*)
6388 LD="${LD-ld} -m elf64ppc"
6390 s390*-*linux*|s390*-*tpf*)
6391 LD="${LD-ld} -m elf64_s390"
6393 sparc*-*linux*)
6394 LD="${LD-ld} -m elf64_sparc"
6396 esac
6398 esac
6400 rm -rf conftest*
6403 *-*-sco3.2v5*)
6404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6405 SAVE_CFLAGS="$CFLAGS"
6406 CFLAGS="$CFLAGS -belf"
6407 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6408 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6409 if test "${lt_cv_cc_needs_belf+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 ac_ext=c
6413 ac_cpp='$CPP $CPPFLAGS'
6414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6426 main ()
6430 return 0;
6432 _ACEOF
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 lt_cv_cc_needs_belf=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 lt_cv_cc_needs_belf=no
6462 rm -f conftest.err conftest.$ac_objext \
6463 conftest$ac_exeext conftest.$ac_ext
6464 ac_ext=c
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6472 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6475 CFLAGS="$SAVE_CFLAGS"
6478 sparc*-*solaris*)
6479 # Find out which ABI we are using.
6480 echo 'int i;' > conftest.$ac_ext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; then
6486 case `/usr/bin/file conftest.o` in
6487 *64-bit*)
6488 case $lt_cv_prog_gnu_ld in
6489 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6490 *) LD="${LD-ld} -64" ;;
6491 esac
6493 esac
6495 rm -rf conftest*
6497 esac
6499 need_locks="$enable_libtool_lock"
6502 for ac_header in dlfcn.h
6504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505 echo "$as_me:$LINENO: checking for $ac_header" >&5
6506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6518 #include <$ac_header>
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 eval "$as_ac_Header=yes"
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 eval "$as_ac_Header=no"
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6554 cat >>confdefs.h <<_ACEOF
6555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556 _ACEOF
6560 done
6564 # This can be used to rebuild libtool when needed
6565 LIBTOOL_DEPS="$ltmain"
6567 # Always use our own libtool.
6568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6594 test -z "$LN_S" && LN_S="ln -s"
6609 if test -n "${ZSH_VERSION+set}" ; then
6610 setopt NO_GLOB_SUBST
6613 echo "$as_me:$LINENO: checking for objdir" >&5
6614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6615 if test "${lt_cv_objdir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 rm -f .libs 2>/dev/null
6619 mkdir .libs 2>/dev/null
6620 if test -d .libs; then
6621 lt_cv_objdir=.libs
6622 else
6623 # MS-DOS does not allow filenames that begin with a dot.
6624 lt_cv_objdir=_libs
6626 rmdir .libs 2>/dev/null
6628 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629 echo "${ECHO_T}$lt_cv_objdir" >&6
6630 objdir=$lt_cv_objdir
6636 cat >>confdefs.h <<_ACEOF
6637 #define LT_OBJDIR "$lt_cv_objdir/"
6638 _ACEOF
6656 case $host_os in
6657 aix3*)
6658 # AIX sometimes has problems with the GCC collect2 program. For some
6659 # reason, if we set the COLLECT_NAMES environment variable, the problems
6660 # vanish in a puff of smoke.
6661 if test "X${COLLECT_NAMES+set}" != Xset; then
6662 COLLECT_NAMES=
6663 export COLLECT_NAMES
6666 esac
6668 # Sed substitution that helps us do robust quoting. It backslashifies
6669 # metacharacters that are still active within double-quoted strings.
6670 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6672 # Same as above, but do not quote variable references.
6673 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6675 # Sed substitution to delay expansion of an escaped shell variable in a
6676 # double_quote_subst'ed string.
6677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6679 # Sed substitution to delay expansion of an escaped single quote.
6680 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6682 # Sed substitution to avoid accidental globbing in evaled expressions
6683 no_glob_subst='s/\*/\\\*/g'
6685 # Global variables:
6686 ofile=libtool
6687 can_build_shared=yes
6689 # All known linkers require a `.a' archive for static linking (except MSVC,
6690 # which needs '.lib').
6691 libext=a
6693 with_gnu_ld="$lt_cv_prog_gnu_ld"
6695 old_CC="$CC"
6696 old_CFLAGS="$CFLAGS"
6698 # Set sane defaults for various variables
6699 test -z "$CC" && CC=cc
6700 test -z "$LTCC" && LTCC=$CC
6701 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6702 test -z "$LD" && LD=ld
6703 test -z "$ac_objext" && ac_objext=o
6705 for cc_temp in $compiler""; do
6706 case $cc_temp in
6707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6709 \-*) ;;
6710 *) break;;
6711 esac
6712 done
6713 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6716 # Only perform the check for file, if the check method requires it
6717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718 case $deplibs_check_method in
6719 file_magic*)
6720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6721 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6722 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6723 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 case $MAGIC_CMD in
6727 [\\/*] | ?:[\\/]*)
6728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6731 lt_save_MAGIC_CMD="$MAGIC_CMD"
6732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6734 for ac_dir in $ac_dummy; do
6735 IFS="$lt_save_ifs"
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f $ac_dir/${ac_tool_prefix}file; then
6738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6739 if test -n "$file_magic_test_file"; then
6740 case $deplibs_check_method in
6741 "file_magic "*)
6742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6745 $EGREP "$file_magic_regex" > /dev/null; then
6747 else
6748 cat <<_LT_EOF 1>&2
6750 *** Warning: the command libtool uses to detect shared libraries,
6751 *** $file_magic_cmd, produces output that libtool cannot recognize.
6752 *** The result is that libtool may fail to recognize shared libraries
6753 *** as such. This will affect the creation of libtool libraries that
6754 *** depend on shared libraries, but programs linked with such libtool
6755 *** libraries will work regardless of this problem. Nevertheless, you
6756 *** may want to report the problem to your system manager and/or to
6757 *** bug-libtool@gnu.org
6759 _LT_EOF
6760 fi ;;
6761 esac
6763 break
6765 done
6766 IFS="$lt_save_ifs"
6767 MAGIC_CMD="$lt_save_MAGIC_CMD"
6769 esac
6772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773 if test -n "$MAGIC_CMD"; then
6774 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6775 echo "${ECHO_T}$MAGIC_CMD" >&6
6776 else
6777 echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6
6785 if test -z "$lt_cv_path_MAGIC_CMD"; then
6786 if test -n "$ac_tool_prefix"; then
6787 echo "$as_me:$LINENO: checking for file" >&5
6788 echo $ECHO_N "checking for file... $ECHO_C" >&6
6789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 case $MAGIC_CMD in
6793 [\\/*] | ?:[\\/]*)
6794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6797 lt_save_MAGIC_CMD="$MAGIC_CMD"
6798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6800 for ac_dir in $ac_dummy; do
6801 IFS="$lt_save_ifs"
6802 test -z "$ac_dir" && ac_dir=.
6803 if test -f $ac_dir/file; then
6804 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6805 if test -n "$file_magic_test_file"; then
6806 case $deplibs_check_method in
6807 "file_magic "*)
6808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6811 $EGREP "$file_magic_regex" > /dev/null; then
6813 else
6814 cat <<_LT_EOF 1>&2
6816 *** Warning: the command libtool uses to detect shared libraries,
6817 *** $file_magic_cmd, produces output that libtool cannot recognize.
6818 *** The result is that libtool may fail to recognize shared libraries
6819 *** as such. This will affect the creation of libtool libraries that
6820 *** depend on shared libraries, but programs linked with such libtool
6821 *** libraries will work regardless of this problem. Nevertheless, you
6822 *** may want to report the problem to your system manager and/or to
6823 *** bug-libtool@gnu.org
6825 _LT_EOF
6826 fi ;;
6827 esac
6829 break
6831 done
6832 IFS="$lt_save_ifs"
6833 MAGIC_CMD="$lt_save_MAGIC_CMD"
6835 esac
6838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839 if test -n "$MAGIC_CMD"; then
6840 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6841 echo "${ECHO_T}$MAGIC_CMD" >&6
6842 else
6843 echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6
6848 else
6849 MAGIC_CMD=:
6855 esac
6857 # Use C for the default configuration in the libtool script
6859 lt_save_CC="$CC"
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867 # Source file extension for C test sources.
6868 ac_ext=c
6870 # Object file extension for compiled C test sources.
6871 objext=o
6872 objext=$objext
6874 # Code to be used in simple compile tests
6875 lt_simple_compile_test_code="int some_variable = 0;"
6877 # Code to be used in simple link tests
6878 lt_simple_link_test_code='int main(){return(0);}'
6886 # If no C compiler was specified, use CC.
6887 LTCC=${LTCC-"$CC"}
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6892 # Allow CC to be a program name with arguments.
6893 compiler=$CC
6895 # Save the default compiler, since it gets overwritten when the other
6896 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6897 compiler_DEFAULT=$CC
6899 # save warnings/boilerplate of simple test code
6900 ac_outfile=conftest.$ac_objext
6901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6903 _lt_compiler_boilerplate=`cat conftest.err`
6904 $RM conftest*
6906 ac_outfile=conftest.$ac_objext
6907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6909 _lt_linker_boilerplate=`cat conftest.err`
6910 $RM conftest*
6913 ## CAVEAT EMPTOR:
6914 ## There is no encapsulation within the following macros, do not change
6915 ## the running order or otherwise move them around unless you know exactly
6916 ## what you are doing...
6917 if test -n "$compiler"; then
6919 lt_prog_compiler_no_builtin_flag=
6921 if test "$GCC" = yes; then
6922 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6924 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6925 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6926 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 lt_cv_prog_compiler_rtti_exceptions=no
6930 ac_outfile=conftest.$ac_objext
6931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6932 lt_compiler_flag="-fno-rtti -fno-exceptions"
6933 # Insert the option either (1) after the last *FLAGS variable, or
6934 # (2) before a word containing "conftest.", or (3) at the end.
6935 # Note that $ac_compile itself does not contain backslashes and begins
6936 # with a dollar sign (not a hyphen), so the echo should work correctly.
6937 # The option is referenced via a variable to avoid confusing sed.
6938 lt_compile=`echo "$ac_compile" | $SED \
6939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6941 -e 's:$: $lt_compiler_flag:'`
6942 (eval echo "\"\$as_me:6942: $lt_compile\"" >&5)
6943 (eval "$lt_compile" 2>conftest.err)
6944 ac_status=$?
6945 cat conftest.err >&5
6946 echo "$as_me:6946: \$? = $ac_status" >&5
6947 if (exit $ac_status) && test -s "$ac_outfile"; then
6948 # The compiler can only warn and ignore the option if not recognized
6949 # So say no if there are warnings other than the usual output.
6950 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6953 lt_cv_prog_compiler_rtti_exceptions=yes
6956 $RM conftest*
6959 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6960 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6962 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6964 else
6975 lt_prog_compiler_wl=
6976 lt_prog_compiler_pic=
6977 lt_prog_compiler_static=
6979 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6982 if test "$GCC" = yes; then
6983 lt_prog_compiler_wl='-Wl,'
6984 lt_prog_compiler_static='-static'
6986 case $host_os in
6987 aix*)
6988 # All AIX code is PIC.
6989 if test "$host_cpu" = ia64; then
6990 # AIX 5 now supports IA64 processor
6991 lt_prog_compiler_static='-Bstatic'
6995 amigaos*)
6996 if test "$host_cpu" = m68k; then
6997 # FIXME: we need at least 68020 code to build shared libraries, but
6998 # adding the `-m68020' flag to GCC prevents building anything better,
6999 # like `-m68040'.
7000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7004 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7005 # PIC is the default for these OSes.
7008 mingw* | cygwin* | pw32* | os2*)
7009 # This hack is so that the source file can tell whether it is being
7010 # built for inclusion in a dll (and should export symbols for example).
7011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7012 # (--disable-auto-import) libraries
7013 lt_prog_compiler_pic='-DDLL_EXPORT'
7016 darwin* | rhapsody*)
7017 # PIC is the default on this platform
7018 # Common symbols not allowed in MH_DYLIB files
7019 lt_prog_compiler_pic='-fno-common'
7022 hpux*)
7023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7024 # not for PA HP-UX.
7025 case $host_cpu in
7026 hppa*64*|ia64*)
7027 # +Z the default
7030 lt_prog_compiler_pic='-fPIC'
7032 esac
7035 interix[3-9]*)
7036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7037 # Instead, we relocate shared libraries at runtime.
7040 msdosdjgpp*)
7041 # Just because we use GCC doesn't mean we suddenly get shared libraries
7042 # on systems that don't support them.
7043 lt_prog_compiler_can_build_shared=no
7044 enable_shared=no
7047 *nto* | *qnx*)
7048 # QNX uses GNU C++, but need to define -shared option too, otherwise
7049 # it will coredump.
7050 lt_prog_compiler_pic='-fPIC -shared'
7053 sysv4*MP*)
7054 if test -d /usr/nec; then
7055 lt_prog_compiler_pic=-Kconform_pic
7060 lt_prog_compiler_pic='-fPIC'
7062 esac
7063 else
7064 # PORTME Check for flag to pass linker flags through the system compiler.
7065 case $host_os in
7066 aix*)
7067 lt_prog_compiler_wl='-Wl,'
7068 if test "$host_cpu" = ia64; then
7069 # AIX 5 now supports IA64 processor
7070 lt_prog_compiler_static='-Bstatic'
7071 else
7072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7075 darwin*)
7076 # PIC is the default on this platform
7077 # Common symbols not allowed in MH_DYLIB files
7078 case $cc_basename in
7079 xlc*)
7080 lt_prog_compiler_pic='-qnocommon'
7081 lt_prog_compiler_wl='-Wl,'
7083 esac
7086 mingw* | cygwin* | pw32* | os2*)
7087 # This hack is so that the source file can tell whether it is being
7088 # built for inclusion in a dll (and should export symbols for example).
7089 lt_prog_compiler_pic='-DDLL_EXPORT'
7092 hpux9* | hpux10* | hpux11*)
7093 lt_prog_compiler_wl='-Wl,'
7094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7095 # not for PA HP-UX.
7096 case $host_cpu in
7097 hppa*64*|ia64*)
7098 # +Z the default
7101 lt_prog_compiler_pic='+Z'
7103 esac
7104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7105 lt_prog_compiler_static='${wl}-a ${wl}archive'
7108 irix5* | irix6* | nonstopux*)
7109 lt_prog_compiler_wl='-Wl,'
7110 # PIC (with -KPIC) is the default.
7111 lt_prog_compiler_static='-non_shared'
7114 linux* | k*bsd*-gnu)
7115 case $cc_basename in
7116 icc* | ecc*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-static'
7121 pgcc* | pgf77* | pgf90* | pgf95*)
7122 # Portland Group compilers (*not* the Pentium gcc compiler,
7123 # which looks to be a dead project)
7124 lt_prog_compiler_wl='-Wl,'
7125 lt_prog_compiler_pic='-fpic'
7126 lt_prog_compiler_static='-Bstatic'
7128 ccc*)
7129 lt_prog_compiler_wl='-Wl,'
7130 # All Alpha code is PIC.
7131 lt_prog_compiler_static='-non_shared'
7134 case `$CC -V 2>&1 | sed 5q` in
7135 *Sun\ C*)
7136 # Sun C 5.9
7137 lt_prog_compiler_pic='-KPIC'
7138 lt_prog_compiler_static='-Bstatic'
7139 lt_prog_compiler_wl='-Wl,'
7141 *Sun\ F*)
7142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7143 lt_prog_compiler_pic='-KPIC'
7144 lt_prog_compiler_static='-Bstatic'
7145 lt_prog_compiler_wl=''
7147 esac
7149 esac
7152 newsos6)
7153 lt_prog_compiler_pic='-KPIC'
7154 lt_prog_compiler_static='-Bstatic'
7157 *nto* | *qnx*)
7158 # QNX uses GNU C++, but need to define -shared option too, otherwise
7159 # it will coredump.
7160 lt_prog_compiler_pic='-fPIC -shared'
7163 osf3* | osf4* | osf5*)
7164 lt_prog_compiler_wl='-Wl,'
7165 # All OSF/1 code is PIC.
7166 lt_prog_compiler_static='-non_shared'
7169 rdos*)
7170 lt_prog_compiler_static='-non_shared'
7173 solaris*)
7174 lt_prog_compiler_pic='-KPIC'
7175 lt_prog_compiler_static='-Bstatic'
7176 case $cc_basename in
7177 f77* | f90* | f95*)
7178 lt_prog_compiler_wl='-Qoption ld ';;
7180 lt_prog_compiler_wl='-Wl,';;
7181 esac
7184 sunos4*)
7185 lt_prog_compiler_wl='-Qoption ld '
7186 lt_prog_compiler_pic='-PIC'
7187 lt_prog_compiler_static='-Bstatic'
7190 sysv4 | sysv4.2uw2* | sysv4.3*)
7191 lt_prog_compiler_wl='-Wl,'
7192 lt_prog_compiler_pic='-KPIC'
7193 lt_prog_compiler_static='-Bstatic'
7196 sysv4*MP*)
7197 if test -d /usr/nec ;then
7198 lt_prog_compiler_pic='-Kconform_pic'
7199 lt_prog_compiler_static='-Bstatic'
7203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7204 lt_prog_compiler_wl='-Wl,'
7205 lt_prog_compiler_pic='-KPIC'
7206 lt_prog_compiler_static='-Bstatic'
7209 unicos*)
7210 lt_prog_compiler_wl='-Wl,'
7211 lt_prog_compiler_can_build_shared=no
7214 uts4*)
7215 lt_prog_compiler_pic='-pic'
7216 lt_prog_compiler_static='-Bstatic'
7220 lt_prog_compiler_can_build_shared=no
7222 esac
7225 case $host_os in
7226 # For platforms which do not support PIC, -DPIC is meaningless:
7227 *djgpp*)
7228 lt_prog_compiler_pic=
7231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7233 esac
7234 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7235 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7243 # Check to make sure the PIC flag actually works.
7245 if test -n "$lt_prog_compiler_pic"; then
7246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7248 if test "${lt_prog_compiler_pic_works+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 lt_prog_compiler_pic_works=no
7252 ac_outfile=conftest.$ac_objext
7253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7255 # Insert the option either (1) after the last *FLAGS variable, or
7256 # (2) before a word containing "conftest.", or (3) at the end.
7257 # Note that $ac_compile itself does not contain backslashes and begins
7258 # with a dollar sign (not a hyphen), so the echo should work correctly.
7259 # The option is referenced via a variable to avoid confusing sed.
7260 lt_compile=`echo "$ac_compile" | $SED \
7261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7263 -e 's:$: $lt_compiler_flag:'`
7264 (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
7265 (eval "$lt_compile" 2>conftest.err)
7266 ac_status=$?
7267 cat conftest.err >&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 if (exit $ac_status) && test -s "$ac_outfile"; then
7270 # The compiler can only warn and ignore the option if not recognized
7271 # So say no if there are warnings other than the usual output.
7272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7275 lt_prog_compiler_pic_works=yes
7278 $RM conftest*
7281 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7282 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7284 if test x"$lt_prog_compiler_pic_works" = xyes; then
7285 case $lt_prog_compiler_pic in
7286 "" | " "*) ;;
7287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7288 esac
7289 else
7290 lt_prog_compiler_pic=
7291 lt_prog_compiler_can_build_shared=no
7302 # Check to make sure the static flag actually works.
7304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7305 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7306 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7307 if test "${lt_prog_compiler_static_works+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 lt_prog_compiler_static_works=no
7311 save_LDFLAGS="$LDFLAGS"
7312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7315 # The linker can only warn and ignore the option if not recognized
7316 # So say no if there are warnings
7317 if test -s conftest.err; then
7318 # Append any errors to the config.log.
7319 cat conftest.err 1>&5
7320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322 if diff conftest.exp conftest.er2 >/dev/null; then
7323 lt_prog_compiler_static_works=yes
7325 else
7326 lt_prog_compiler_static_works=yes
7329 $RM conftest*
7330 LDFLAGS="$save_LDFLAGS"
7333 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7334 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7336 if test x"$lt_prog_compiler_static_works" = xyes; then
7338 else
7339 lt_prog_compiler_static=
7348 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 lt_cv_prog_compiler_c_o=no
7354 $RM -r conftest 2>/dev/null
7355 mkdir conftest
7356 cd conftest
7357 mkdir out
7358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7360 lt_compiler_flag="-o out/conftest2.$ac_objext"
7361 # Insert the option either (1) after the last *FLAGS variable, or
7362 # (2) before a word containing "conftest.", or (3) at the end.
7363 # Note that $ac_compile itself does not contain backslashes and begins
7364 # with a dollar sign (not a hyphen), so the echo should work correctly.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>out/conftest.err)
7371 ac_status=$?
7372 cat out/conftest.err >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375 then
7376 # The compiler can only warn and ignore the option if not recognized
7377 # So say no if there are warnings
7378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7381 lt_cv_prog_compiler_c_o=yes
7384 chmod u+w . 2>&5
7385 $RM conftest*
7386 # SGI C++ compiler will create directory out/ii_files/ for
7387 # template instantiation
7388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7389 $RM out/* && rmdir out
7390 cd ..
7391 $RM -r conftest
7392 $RM conftest*
7395 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7404 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 lt_cv_prog_compiler_c_o=no
7409 $RM -r conftest 2>/dev/null
7410 mkdir conftest
7411 cd conftest
7412 mkdir out
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7415 lt_compiler_flag="-o out/conftest2.$ac_objext"
7416 # Insert the option either (1) after the last *FLAGS variable, or
7417 # (2) before a word containing "conftest.", or (3) at the end.
7418 # Note that $ac_compile itself does not contain backslashes and begins
7419 # with a dollar sign (not a hyphen), so the echo should work correctly.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425 (eval "$lt_compile" 2>out/conftest.err)
7426 ac_status=$?
7427 cat out/conftest.err >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7430 then
7431 # The compiler can only warn and ignore the option if not recognized
7432 # So say no if there are warnings
7433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7436 lt_cv_prog_compiler_c_o=yes
7439 chmod u+w . 2>&5
7440 $RM conftest*
7441 # SGI C++ compiler will create directory out/ii_files/ for
7442 # template instantiation
7443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7444 $RM out/* && rmdir out
7445 cd ..
7446 $RM -r conftest
7447 $RM conftest*
7450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7456 hard_links="nottested"
7457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7458 # do not overwrite the value of need_locks provided by the user
7459 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7460 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7461 hard_links=yes
7462 $RM conftest*
7463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464 touch conftest.a
7465 ln conftest.a conftest.b 2>&5 || hard_links=no
7466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7467 echo "$as_me:$LINENO: result: $hard_links" >&5
7468 echo "${ECHO_T}$hard_links" >&6
7469 if test "$hard_links" = no; then
7470 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7471 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7472 need_locks=warn
7474 else
7475 need_locks=no
7483 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7484 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7486 runpath_var=
7487 allow_undefined_flag=
7488 always_export_symbols=no
7489 archive_cmds=
7490 archive_expsym_cmds=
7491 compiler_needs_object=no
7492 enable_shared_with_static_runtimes=no
7493 export_dynamic_flag_spec=
7494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7495 hardcode_automatic=no
7496 hardcode_direct=no
7497 hardcode_direct_absolute=no
7498 hardcode_libdir_flag_spec=
7499 hardcode_libdir_flag_spec_ld=
7500 hardcode_libdir_separator=
7501 hardcode_minus_L=no
7502 hardcode_shlibpath_var=unsupported
7503 inherit_rpath=no
7504 link_all_deplibs=unknown
7505 module_cmds=
7506 module_expsym_cmds=
7507 old_archive_from_new_cmds=
7508 old_archive_from_expsyms_cmds=
7509 thread_safe_flag_spec=
7510 whole_archive_flag_spec=
7511 # include_expsyms should be a list of space-separated symbols to be *always*
7512 # included in the symbol list
7513 include_expsyms=
7514 # exclude_expsyms can be an extended regexp of symbols to exclude
7515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7517 # as well as any symbol that contains `d'.
7518 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7520 # platforms (ab)use it in PIC code, but their linkers get confused if
7521 # the symbol is explicitly referenced. Since portable code cannot
7522 # rely on this symbol name, it's probably fine to never include it in
7523 # preloaded symbol tables.
7524 extract_expsyms_cmds=
7526 case $host_os in
7527 cygwin* | mingw* | pw32*)
7528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7529 # When not using gcc, we currently assume that we are using
7530 # Microsoft Visual C++.
7531 if test "$GCC" != yes; then
7532 with_gnu_ld=no
7535 interix*)
7536 # we just hope/assume this is gcc and not c89 (= MSVC++)
7537 with_gnu_ld=yes
7539 openbsd*)
7540 with_gnu_ld=no
7542 esac
7544 ld_shlibs=yes
7545 if test "$with_gnu_ld" = yes; then
7546 # If archive_cmds runs LD, not CC, wlarc should be empty
7547 wlarc='${wl}'
7549 # Set some defaults for GNU ld with shared library support. These
7550 # are reset later if shared libraries are not supported. Putting them
7551 # here allows them to be overridden if necessary.
7552 runpath_var=LD_RUN_PATH
7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554 export_dynamic_flag_spec='${wl}--export-dynamic'
7555 # ancient GNU ld didn't support --whole-archive et. al.
7556 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7557 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7558 else
7559 whole_archive_flag_spec=
7561 supports_anon_versioning=no
7562 case `$LD -v 2>&1` in
7563 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7564 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7565 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7566 *\ 2.11.*) ;; # other 2.11 versions
7567 *) supports_anon_versioning=yes ;;
7568 esac
7570 # See if GNU ld supports shared libraries.
7571 case $host_os in
7572 aix[3-9]*)
7573 # On AIX/PPC, the GNU linker is very broken
7574 if test "$host_cpu" != ia64; then
7575 ld_shlibs=no
7576 cat <<_LT_EOF 1>&2
7578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7579 *** to be unable to reliably create shared libraries on AIX.
7580 *** Therefore, libtool is disabling shared libraries support. If you
7581 *** really care for shared libraries, you may want to modify your PATH
7582 *** so that a non-GNU linker is found, and then restart.
7584 _LT_EOF
7588 amigaos*)
7589 if test "$host_cpu" = m68k; then
7590 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)'
7591 hardcode_libdir_flag_spec='-L$libdir'
7592 hardcode_minus_L=yes
7595 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7596 # that the semantics of dynamic libraries on AmigaOS, at least up
7597 # to version 4, is to share data among multiple programs linked
7598 # with the same dynamic library. Since this doesn't match the
7599 # behavior of shared libraries on other platforms, we can't use
7600 # them.
7601 ld_shlibs=no
7604 beos*)
7605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 allow_undefined_flag=unsupported
7607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7608 # support --undefined. This deserves some investigation. FIXME
7609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610 else
7611 ld_shlibs=no
7615 cygwin* | mingw* | pw32*)
7616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617 # as there is no search path for DLLs.
7618 hardcode_libdir_flag_spec='-L$libdir'
7619 allow_undefined_flag=unsupported
7620 always_export_symbols=no
7621 enable_shared_with_static_runtimes=yes
7622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7626 # If the export-symbols file already is a .def file (1st line
7627 # is EXPORTS), use it as is; otherwise, prepend...
7628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629 cp $export_symbols $output_objdir/$soname.def;
7630 else
7631 echo EXPORTS > $output_objdir/$soname.def;
7632 cat $export_symbols >> $output_objdir/$soname.def;
7634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7635 else
7636 ld_shlibs=no
7640 interix[3-9]*)
7641 hardcode_direct=no
7642 hardcode_shlibpath_var=no
7643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7644 export_dynamic_flag_spec='${wl}-E'
7645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7646 # Instead, shared libraries are loaded at an image base (0x10000000 by
7647 # default) and relocated if they conflict, which is a slow very memory
7648 # consuming and fragmenting process. To avoid this, we pick a random,
7649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7652 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'
7655 gnu* | linux* | tpf* | k*bsd*-gnu)
7656 tmp_diet=no
7657 if test "$host_os" = linux-dietlibc; then
7658 case $cc_basename in
7659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7660 esac
7662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7663 && test "$tmp_diet" = no
7664 then
7665 tmp_addflag=
7666 case $cc_basename,$host_cpu in
7667 pgcc*) # Portland Group C compiler
7668 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'
7669 tmp_addflag=' $pic_flag'
7671 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7672 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'
7673 tmp_addflag=' $pic_flag -Mnomain' ;;
7674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7675 tmp_addflag=' -i_dynamic' ;;
7676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7677 tmp_addflag=' -i_dynamic -nofor_main' ;;
7678 ifc* | ifort*) # Intel Fortran compiler
7679 tmp_addflag=' -nofor_main' ;;
7680 esac
7681 case `$CC -V 2>&1 | sed 5q` in
7682 *Sun\ C*) # Sun C 5.9
7683 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'
7684 compiler_needs_object=yes
7685 tmp_sharedflag='-G' ;;
7686 *Sun\ F*) # Sun Fortran 8.3
7687 tmp_sharedflag='-G' ;;
7689 tmp_sharedflag='-shared' ;;
7690 esac
7691 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693 if test "x$supports_anon_versioning" = xyes; then
7694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696 echo "local: *; };" >> $output_objdir/$libname.ver~
7697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7699 else
7700 ld_shlibs=no
7704 netbsd*)
7705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707 wlarc=
7708 else
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714 solaris*)
7715 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7716 ld_shlibs=no
7717 cat <<_LT_EOF 1>&2
7719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720 *** create shared libraries on Solaris systems. Therefore, libtool
7721 *** is disabling shared libraries support. We urge you to upgrade GNU
7722 *** binutils to release 2.9.1 or newer. Another option is to modify
7723 *** your PATH or compiler configuration so that the native linker is
7724 *** used, and then restart.
7726 _LT_EOF
7727 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730 else
7731 ld_shlibs=no
7735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736 case `$LD -v 2>&1` in
7737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738 ld_shlibs=no
7739 cat <<_LT_EOF 1>&2
7741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742 *** reliably create shared libraries on SCO systems. Therefore, libtool
7743 *** is disabling shared libraries support. We urge you to upgrade GNU
7744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7745 *** your PATH or compiler configuration so that the native linker is
7746 *** used, and then restart.
7748 _LT_EOF
7751 # For security reasons, it is highly recommended that you always
7752 # use absolute paths for naming shared libraries, and exclude the
7753 # DT_RUNPATH tag from executables and libraries. But doing so
7754 # requires that you compile everything twice, which is a pain.
7755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759 else
7760 ld_shlibs=no
7763 esac
7766 sunos4*)
7767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768 wlarc=
7769 hardcode_direct=yes
7770 hardcode_shlibpath_var=no
7774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777 else
7778 ld_shlibs=no
7781 esac
7783 if test "$ld_shlibs" = no; then
7784 runpath_var=
7785 hardcode_libdir_flag_spec=
7786 export_dynamic_flag_spec=
7787 whole_archive_flag_spec=
7789 else
7790 # PORTME fill in a description of your system's linker (not GNU ld)
7791 case $host_os in
7792 aix3*)
7793 allow_undefined_flag=unsupported
7794 always_export_symbols=yes
7795 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'
7796 # Note: this linker hardcodes the directories in LIBPATH if there
7797 # are no directories specified by -L.
7798 hardcode_minus_L=yes
7799 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7800 # Neither direct hardcoding nor static linking is supported with a
7801 # broken collect2.
7802 hardcode_direct=unsupported
7806 aix[4-9]*)
7807 if test "$host_cpu" = ia64; then
7808 # On IA64, the linker does run time linking by default, so we don't
7809 # have to do anything special.
7810 aix_use_runtimelinking=no
7811 exp_sym_flag='-Bexport'
7812 no_entry_flag=""
7813 else
7814 # If we're using GNU nm, then we don't want the "-C" option.
7815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7817 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'
7818 else
7819 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'
7821 aix_use_runtimelinking=no
7823 # Test if we are trying to use run time linking or normal
7824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7825 # need to do runtime linking.
7826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7827 for ld_flag in $LDFLAGS; do
7828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7829 aix_use_runtimelinking=yes
7830 break
7832 done
7834 esac
7836 exp_sym_flag='-bexport'
7837 no_entry_flag='-bnoentry'
7840 # When large executables or shared objects are built, AIX ld can
7841 # have problems creating the table of contents. If linking a library
7842 # or program results in "error TOC overflow" add -mminimal-toc to
7843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7846 archive_cmds=''
7847 hardcode_direct=yes
7848 hardcode_direct_absolute=yes
7849 hardcode_libdir_separator=':'
7850 link_all_deplibs=yes
7851 file_list_spec='${wl}-f,'
7853 if test "$GCC" = yes; then
7854 case $host_os in aix4.[012]|aix4.[012].*)
7855 # We only want to do this on AIX 4.2 and lower, the check
7856 # below for broken collect2 doesn't work under 4.3+
7857 collect2name=`${CC} -print-prog-name=collect2`
7858 if test -f "$collect2name" &&
7859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860 then
7861 # We have reworked collect2
7863 else
7864 # We have old collect2
7865 hardcode_direct=unsupported
7866 # It fails to find uninstalled libraries when the uninstalled
7867 # path is not listed in the libpath. Setting hardcode_minus_L
7868 # to unsupported forces relinking
7869 hardcode_minus_L=yes
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_libdir_separator=
7874 esac
7875 shared_flag='-shared'
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag="$shared_flag "'${wl}-G'
7879 else
7880 # not using gcc
7881 if test "$host_cpu" = ia64; then
7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883 # chokes on -Wl,-G. The following line is correct:
7884 shared_flag='-G'
7885 else
7886 if test "$aix_use_runtimelinking" = yes; then
7887 shared_flag='${wl}-G'
7888 else
7889 shared_flag='${wl}-bM:SRE'
7894 # It seems that -bexpall does not export symbols beginning with
7895 # underscore (_), so it is better to generate a list of symbols to export.
7896 always_export_symbols=yes
7897 if test "$aix_use_runtimelinking" = yes; then
7898 # Warning - without using the other runtime loading flags (-brtl),
7899 # -berok will link without error, but may produce a broken library.
7900 allow_undefined_flag='-berok'
7901 # Determine the default libpath from the value encoded in an
7902 # empty executable.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7941 lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949 # Check for a 64-bit object if we didn't find anything.
7950 if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7958 rm -f conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7963 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"
7964 else
7965 if test "$host_cpu" = ia64; then
7966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7967 allow_undefined_flag="-z nodefs"
7968 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"
7969 else
7970 # Determine the default libpath from the value encoded in an
7971 # empty executable.
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8010 lt_aix_libpath_sed='
8011 /Import File Strings/,/^$/ {
8012 /^0/ {
8013 s/^0 *\(.*\)$/\1/
8017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018 # Check for a 64-bit object if we didn't find anything.
8019 if test -z "$aix_libpath"; then
8020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8027 rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032 # Warning - without using the other run time loading flags,
8033 # -berok will link without error, but may produce a broken library.
8034 no_undefined_flag=' ${wl}-bernotok'
8035 allow_undefined_flag=' ${wl}-berok'
8036 # Exported symbols can be pulled into shared objects from archives
8037 whole_archive_flag_spec='$convenience'
8038 archive_cmds_need_lc=yes
8039 # This is similar to how AIX traditionally builds its shared libraries.
8040 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'
8045 amigaos*)
8046 if test "$host_cpu" = m68k; then
8047 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)'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_minus_L=yes
8051 # see comment about different semantics on the GNU ld section
8052 ld_shlibs=no
8055 bsdi[45]*)
8056 export_dynamic_flag_spec=-rdynamic
8059 cygwin* | mingw* | pw32*)
8060 # When not using gcc, we currently assume that we are using
8061 # Microsoft Visual C++.
8062 # hardcode_libdir_flag_spec is actually meaningless, as there is
8063 # no search path for DLLs.
8064 hardcode_libdir_flag_spec=' '
8065 allow_undefined_flag=unsupported
8066 # Tell ltmain to make .lib files, not .a files.
8067 libext=lib
8068 # Tell ltmain to make .dll files, not .so files.
8069 shrext_cmds=".dll"
8070 # FIXME: Setting linknames here is a bad hack.
8071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8072 # The linker will automatically build a .lib file if we build a DLL.
8073 old_archive_from_new_cmds='true'
8074 # FIXME: Should let the user specify the lib program.
8075 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8076 fix_srcfile_path='`cygpath -w "$srcfile"`'
8077 enable_shared_with_static_runtimes=yes
8080 darwin* | rhapsody*)
8081 case $host_os in
8082 rhapsody* | darwin1.[012])
8083 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8085 *) # Darwin 1.3 on
8086 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8087 10.[012])
8088 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8090 10.*)
8091 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8093 esac
8095 esac
8096 archive_cmds_need_lc=no
8097 hardcode_direct=no
8098 hardcode_automatic=yes
8099 hardcode_shlibpath_var=unsupported
8100 whole_archive_flag_spec=''
8101 link_all_deplibs=yes
8102 if test "$GCC" = yes ; then
8103 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi-module to the
8111 # link flags.
8112 echo "int foo(void){return 1;}" > conftest.c
8113 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114 -dynamiclib ${wl}-single_module conftest.c
8115 if test -f libconftest.dylib; then
8116 lt_cv_apple_cc_single_mod=yes
8117 rm libconftest.dylib
8119 rm conftest.$ac_ext
8123 output_verbose_link_cmd=echo
8124 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8125 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8126 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}'
8127 else
8128 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8129 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}'
8131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8132 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}'
8133 else
8134 case $cc_basename in
8135 xlc*)
8136 output_verbose_link_cmd=echo
8137 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8138 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8140 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}'
8141 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}'
8144 ld_shlibs=no
8146 esac
8150 dgux*)
8151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_libdir_flag_spec='-L$libdir'
8153 hardcode_shlibpath_var=no
8156 freebsd1*)
8157 ld_shlibs=no
8160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8161 # support. Future versions do this automatically, but an explicit c++rt0.o
8162 # does not break anything, and helps significantly (at the cost of a little
8163 # extra space).
8164 freebsd2.2*)
8165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8166 hardcode_libdir_flag_spec='-R$libdir'
8167 hardcode_direct=yes
8168 hardcode_shlibpath_var=no
8171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8172 freebsd2*)
8173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8174 hardcode_direct=yes
8175 hardcode_minus_L=yes
8176 hardcode_shlibpath_var=no
8179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8180 freebsd* | dragonfly*)
8181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8182 hardcode_libdir_flag_spec='-R$libdir'
8183 hardcode_direct=yes
8184 hardcode_shlibpath_var=no
8187 hpux9*)
8188 if test "$GCC" = yes; then
8189 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'
8190 else
8191 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'
8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194 hardcode_libdir_separator=:
8195 hardcode_direct=yes
8197 # hardcode_minus_L: Not really in the search PATH,
8198 # but as the default location of the library.
8199 hardcode_minus_L=yes
8200 export_dynamic_flag_spec='${wl}-E'
8203 hpux10*)
8204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8206 else
8207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8209 if test "$with_gnu_ld" = no; then
8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211 hardcode_libdir_flag_spec_ld='+b $libdir'
8212 hardcode_libdir_separator=:
8213 hardcode_direct=yes
8214 hardcode_direct_absolute=yes
8215 export_dynamic_flag_spec='${wl}-E'
8216 # hardcode_minus_L: Not really in the search PATH,
8217 # but as the default location of the library.
8218 hardcode_minus_L=yes
8222 hpux11*)
8223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8224 case $host_cpu in
8225 hppa*64*)
8226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228 ia64*)
8229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 esac
8235 else
8236 case $host_cpu in
8237 hppa*64*)
8238 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 ia64*)
8241 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8246 esac
8248 if test "$with_gnu_ld" = no; then
8249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8250 hardcode_libdir_separator=:
8252 case $host_cpu in
8253 hppa*64*|ia64*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8258 hardcode_direct=yes
8259 hardcode_direct_absolute=yes
8260 export_dynamic_flag_spec='${wl}-E'
8262 # hardcode_minus_L: Not really in the search PATH,
8263 # but as the default location of the library.
8264 hardcode_minus_L=yes
8266 esac
8270 irix5* | irix6* | nonstopux*)
8271 if test "$GCC" = yes; then
8272 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'
8273 # Try to use the -exported_symbol ld option, if it does not
8274 # work, assume that -exports_file does not work either and
8275 # implicitly export all symbols.
8276 save_LDFLAGS="$LDFLAGS"
8277 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 int foo(void) {}
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 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'
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LDFLAGS="$save_LDFLAGS"
8313 else
8314 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'
8315 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'
8317 archive_cmds_need_lc='no'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 inherit_rpath=yes
8321 link_all_deplibs=yes
8324 netbsd*)
8325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8327 else
8328 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8330 hardcode_libdir_flag_spec='-R$libdir'
8331 hardcode_direct=yes
8332 hardcode_shlibpath_var=no
8335 newsos6)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8339 hardcode_libdir_separator=:
8340 hardcode_shlibpath_var=no
8343 *nto* | *qnx*)
8346 openbsd*)
8347 hardcode_direct=yes
8348 hardcode_shlibpath_var=no
8349 hardcode_direct_absolute=yes
8350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354 export_dynamic_flag_spec='${wl}-E'
8355 else
8356 case $host_os in
8357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-R$libdir'
8362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8365 esac
8369 os2*)
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_minus_L=yes
8372 allow_undefined_flag=unsupported
8373 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'
8374 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 osf3*)
8378 if test "$GCC" = yes; then
8379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8381 else
8382 allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8385 archive_cmds_need_lc='no'
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8390 osf4* | osf5*) # as osf3* with the addition of -msym flag
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 else
8396 allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398 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~
8399 $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'
8401 # Both c and cxx compiler support -rpath directly
8402 hardcode_libdir_flag_spec='-rpath $libdir'
8404 archive_cmds_need_lc='no'
8405 hardcode_libdir_separator=:
8408 solaris*)
8409 no_undefined_flag=' -z defs'
8410 if test "$GCC" = yes; then
8411 wlarc='${wl}'
8412 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 else
8416 case `$CC -V 2>&1` in
8417 *"Compilers 5.0"*)
8418 wlarc=''
8419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8424 wlarc='${wl}'
8425 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8429 esac
8431 hardcode_libdir_flag_spec='-R$libdir'
8432 hardcode_shlibpath_var=no
8433 case $host_os in
8434 solaris2.[0-5] | solaris2.[0-5].*) ;;
8436 # The compiler driver will combine and reorder linker options,
8437 # but understands `-z linker_flag'. GCC discards it without `$wl',
8438 # but is careful enough not to reorder.
8439 # Supported since Solaris 2.6 (maybe 2.5.1?)
8440 if test "$GCC" = yes; then
8441 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442 else
8443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8446 esac
8447 link_all_deplibs=yes
8450 sunos4*)
8451 if test "x$host_vendor" = xsequent; then
8452 # Use $CC to link under sequent, because it throws in some extra .o
8453 # files that make .init and .fini sections work.
8454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455 else
8456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_direct=yes
8460 hardcode_minus_L=yes
8461 hardcode_shlibpath_var=no
8464 sysv4)
8465 case $host_vendor in
8466 sni)
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_direct=yes # is this really true???
8470 siemens)
8471 ## LD is ld it makes a PLAMLIB
8472 ## CC just makes a GrossModule.
8473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474 reload_cmds='$CC -r -o $output$reload_objs'
8475 hardcode_direct=no
8477 motorola)
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8481 esac
8482 runpath_var='LD_RUN_PATH'
8483 hardcode_shlibpath_var=no
8486 sysv4.3*)
8487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_shlibpath_var=no
8489 export_dynamic_flag_spec='-Bexport'
8492 sysv4*MP*)
8493 if test -d /usr/nec; then
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_shlibpath_var=no
8496 runpath_var=LD_RUN_PATH
8497 hardcode_runpath_var=yes
8498 ld_shlibs=yes
8502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503 no_undefined_flag='${wl}-z,text'
8504 archive_cmds_need_lc=no
8505 hardcode_shlibpath_var=no
8506 runpath_var='LD_RUN_PATH'
8508 if test "$GCC" = yes; then
8509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 else
8512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 sysv5* | sco3.2v5* | sco5v6*)
8518 # Note: We can NOT use -z defs as we might desire, because we do not
8519 # link with -lc, and that would cause any symbols used from libc to
8520 # always be unresolved, which means just about no library would
8521 # ever link correctly. If we're not using GNU ld we use -z text
8522 # though, which does catch some bad symbols but isn't as heavy-handed
8523 # as -z defs.
8524 no_undefined_flag='${wl}-z,text'
8525 allow_undefined_flag='${wl}-z,nodefs'
8526 archive_cmds_need_lc=no
8527 hardcode_shlibpath_var=no
8528 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529 hardcode_libdir_separator=':'
8530 link_all_deplibs=yes
8531 export_dynamic_flag_spec='${wl}-Bexport'
8532 runpath_var='LD_RUN_PATH'
8534 if test "$GCC" = yes; then
8535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 else
8538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8543 uts4*)
8544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_libdir_flag_spec='-L$libdir'
8546 hardcode_shlibpath_var=no
8550 ld_shlibs=no
8552 esac
8554 if test x$host_vendor = xsni; then
8555 case $host in
8556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557 export_dynamic_flag_spec='${wl}-Blargedynsym'
8559 esac
8563 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8564 echo "${ECHO_T}$ld_shlibs" >&6
8565 test "$ld_shlibs" = no && can_build_shared=no
8567 with_gnu_ld=$with_gnu_ld
8584 # Do we need to explicitly link libc?
8586 case "x$archive_cmds_need_lc" in
8587 x|xyes)
8588 # Assume -lc should be added
8589 archive_cmds_need_lc=yes
8591 if test "$enable_shared" = yes && test "$GCC" = yes; then
8592 case $archive_cmds in
8593 *'~'*)
8594 # FIXME: we may have to deal with multi-command sequences.
8596 '$CC '*)
8597 # Test whether the compiler implicitly links with -lc since on some
8598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599 # to ld, don't add -lc before -lgcc.
8600 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8601 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8602 $RM conftest*
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } 2>conftest.err; then
8610 soname=conftest
8611 lib=conftest
8612 libobjs=conftest.$ac_objext
8613 deplibs=
8614 wl=$lt_prog_compiler_wl
8615 pic_flag=$lt_prog_compiler_pic
8616 compiler_flags=-v
8617 linker_flags=-v
8618 verstring=
8619 output_objdir=.
8620 libname=conftest
8621 lt_save_allow_undefined_flag=$allow_undefined_flag
8622 allow_undefined_flag=
8623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }
8628 then
8629 archive_cmds_need_lc=no
8630 else
8631 archive_cmds_need_lc=yes
8633 allow_undefined_flag=$lt_save_allow_undefined_flag
8634 else
8635 cat conftest.err 1>&5
8637 $RM conftest*
8638 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8639 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8641 esac
8644 esac
8802 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8804 withGCC=$GCC
8805 if test "$withGCC" = yes; then
8806 case $host_os in
8807 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808 *) lt_awk_arg="/^libraries:/" ;;
8809 esac
8810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812 # if the path contains ";" then we assume it to be the separator
8813 # otherwise default to the standard path separator (i.e. ":") - it is
8814 # assumed that no part of a normal pathname contains ";" but that should
8815 # okay in the real world where ";" in dirpaths is itself problematic.
8816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 else
8818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8820 # Ok, now we have the path, separated by spaces, we can step through it
8821 # and add multilib dir if necessary.
8822 lt_tmp_lt_search_path_spec=
8823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824 for lt_sys_path in $lt_search_path_spec; do
8825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827 else
8828 test -d "$lt_sys_path" && \
8829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8831 done
8832 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833 BEGIN {RS=" "; FS="/|\n";} {
8834 lt_foo="";
8835 lt_count=0;
8836 for (lt_i = NF; lt_i > 0; lt_i--) {
8837 if ($lt_i != "" && $lt_i != ".") {
8838 if ($lt_i == "..") {
8839 lt_count++;
8840 } else {
8841 if (lt_count == 0) {
8842 lt_foo="/" $lt_i lt_foo;
8843 } else {
8844 lt_count--;
8849 if (lt_foo != "") { lt_freq[lt_foo]++; }
8850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8852 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853 else
8854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8856 library_names_spec=
8857 libname_spec='lib$name'
8858 soname_spec=
8859 shrext_cmds=".so"
8860 postinstall_cmds=
8861 postuninstall_cmds=
8862 finish_cmds=
8863 finish_eval=
8864 shlibpath_var=
8865 shlibpath_overrides_runpath=unknown
8866 version_type=none
8867 dynamic_linker="$host_os ld.so"
8868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 need_lib_prefix=unknown
8870 hardcode_into_libs=no
8872 # when you set need_version to no, make sure it does not cause -set_version
8873 # flags to be left without arguments
8874 need_version=unknown
8876 case $host_os in
8877 aix3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880 shlibpath_var=LIBPATH
8882 # AIX 3 has no versioning support, so we append a major version to the name.
8883 soname_spec='${libname}${release}${shared_ext}$major'
8886 aix[4-9]*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 hardcode_into_libs=yes
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 supports IA64
8893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 else
8896 # With GCC up to 2.95.x, collect2 would create an import file
8897 # for dependence libraries. The import file would start with
8898 # the line `#! .'. This would cause the generated library to
8899 # depend on `.', always an invalid library. This was fixed in
8900 # development snapshots of GCC prior to 3.0.
8901 case $host_os in
8902 aix4 | aix4.[01] | aix4.[01].*)
8903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo ' yes '
8905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8907 else
8908 can_build_shared=no
8911 esac
8912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913 # soname into executable. Probably we can add versioning support to
8914 # collect2, so additional links can be useful in future.
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917 # instead of lib<name>.a to let people know that these are not
8918 # typical AIX shared libraries.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 else
8921 # We preserve .a as extension for shared libraries through AIX4.2
8922 # and later when we are not doing run time linking.
8923 library_names_spec='${libname}${release}.a $libname.a'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LIBPATH
8930 amigaos*)
8931 if test "$host_cpu" = m68k; then
8932 library_names_spec='$libname.ixlibrary $libname.a'
8933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934 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'
8935 else
8936 dynamic_linker=no
8940 beos*)
8941 library_names_spec='${libname}${shared_ext}'
8942 dynamic_linker="$host_os ld.so"
8943 shlibpath_var=LIBRARY_PATH
8946 bsdi[45]*)
8947 version_type=linux
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8955 # the default ld.so.conf also contains /usr/contrib/lib and
8956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8957 # libtool to hard-code these into programs
8960 cygwin* | mingw* | pw32*)
8961 version_type=windows
8962 shrext_cmds=".dll"
8963 need_version=no
8964 need_lib_prefix=no
8966 case $withGCC,$host_os in
8967 yes,cygwin* | yes,mingw* | yes,pw32*)
8968 library_names_spec='$libname.dll.a'
8969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8970 postinstall_cmds='base_file=`basename \${file}`~
8971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8972 dldir=$destdir/`dirname \$dlpath`~
8973 test -d \$dldir || mkdir -p \$dldir~
8974 $install_prog $dir/$dlname \$dldir/$dlname~
8975 chmod a+x \$dldir/$dlname~
8976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8980 dlpath=$dir/\$dldll~
8981 $RM \$dlpath'
8982 shlibpath_overrides_runpath=yes
8984 case $host_os in
8985 cygwin*)
8986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8990 mingw*)
8991 # MinGW DLLs use traditional 'lib' prefix
8992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8995 # It is most probably a Windows format PATH printed by
8996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8997 # path with ; separators, and with drive letters. We can handle the
8998 # drive letters (cygwin fileutils understands them), so leave them,
8999 # especially as we might pass files found there to a mingw objdump,
9000 # which wouldn't understand a cygwinified path. Ahh.
9001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9002 else
9003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9006 pw32*)
9007 # pw32 DLLs use 'pw' prefix rather than 'lib'
9008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010 esac
9014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9016 esac
9017 dynamic_linker='Win32 ld.exe'
9018 # FIXME: first we should search . and the directory the executable is in
9019 shlibpath_var=PATH
9022 darwin* | rhapsody*)
9023 dynamic_linker="$host_os dyld"
9024 version_type=darwin
9025 need_lib_prefix=no
9026 need_version=no
9027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9028 soname_spec='${libname}${release}${major}$shared_ext'
9029 shlibpath_overrides_runpath=yes
9030 shlibpath_var=DYLD_LIBRARY_PATH
9031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9037 dgux*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9046 freebsd1*)
9047 dynamic_linker=no
9050 freebsd* | dragonfly*)
9051 # DragonFly does not have aout. When/if they implement a new
9052 # versioning mechanism, adjust this.
9053 if test -x /usr/bin/objformat; then
9054 objformat=`/usr/bin/objformat`
9055 else
9056 case $host_os in
9057 freebsd[123]*) objformat=aout ;;
9058 *) objformat=elf ;;
9059 esac
9061 version_type=freebsd-$objformat
9062 case $version_type in
9063 freebsd-elf*)
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9065 need_version=no
9066 need_lib_prefix=no
9068 freebsd-*)
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070 need_version=yes
9072 esac
9073 shlibpath_var=LD_LIBRARY_PATH
9074 case $host_os in
9075 freebsd2*)
9076 shlibpath_overrides_runpath=yes
9078 freebsd3.[01]* | freebsdelf3.[01]*)
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084 shlibpath_overrides_runpath=no
9085 hardcode_into_libs=yes
9087 *) # from 4.6 on, and DragonFly
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9091 esac
9094 gnu*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 hardcode_into_libs=yes
9104 hpux9* | hpux10* | hpux11*)
9105 # Give a soname corresponding to the major version so that dld.sl refuses to
9106 # link against other versions.
9107 version_type=sunos
9108 need_lib_prefix=no
9109 need_version=no
9110 case $host_cpu in
9111 ia64*)
9112 shrext_cmds='.so'
9113 hardcode_into_libs=yes
9114 dynamic_linker="$host_os dld.so"
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 if test "X$HPUX_IA64_MODE" = X32; then
9120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121 else
9122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9126 hppa*64*)
9127 shrext_cmds='.sl'
9128 hardcode_into_libs=yes
9129 dynamic_linker="$host_os dld.sl"
9130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138 shrext_cmds='.sl'
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=SHLIB_PATH
9141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9145 esac
9146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147 postinstall_cmds='chmod 555 $lib'
9150 interix[3-9]*)
9151 version_type=linux
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=no
9159 hardcode_into_libs=yes
9162 irix5* | irix6* | nonstopux*)
9163 case $host_os in
9164 nonstopux*) version_type=nonstopux ;;
9166 if test "$lt_cv_prog_gnu_ld" = yes; then
9167 version_type=linux
9168 else
9169 version_type=irix
9170 fi ;;
9171 esac
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 case $host_os in
9177 irix5* | nonstopux*)
9178 libsuff= shlibsuff=
9181 case $LD in # libtool.m4 will add one of these switches to LD
9182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183 libsuff= shlibsuff= libmagic=32-bit;;
9184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185 libsuff=32 shlibsuff=N32 libmagic=N32;;
9186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188 *) libsuff= shlibsuff= libmagic=never-match;;
9189 esac
9191 esac
9192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196 hardcode_into_libs=yes
9199 # No shared lib support for Linux oldld, aout, or coff.
9200 linux*oldld* | linux*aout* | linux*coff*)
9201 dynamic_linker=no
9204 # This must be Linux ELF.
9205 linux* | k*bsd*-gnu)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 # Some binutils ld are patched to set DT_RUNPATH
9215 save_LDFLAGS=$LDFLAGS
9216 save_libdir=$libdir
9217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9227 main ()
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9257 shlibpath_overrides_runpath=yes
9260 else
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9265 rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LDFLAGS=$save_LDFLAGS
9268 libdir=$save_libdir
9270 # This implies no fast_install, which is unacceptable.
9271 # Some rework will be needed to allow for fast_install
9272 # before this can be enabled.
9273 hardcode_into_libs=yes
9275 # Append ld.so.conf contents to the search path
9276 if test -f /etc/ld.so.conf; then
9277 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' ' '`
9278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9281 # We used to test for /lib/ld.so.1 and disable shared libraries on
9282 # powerpc, because MkLinux only supported shared libraries with the
9283 # GNU dynamic linker. Since this was broken with cross compilers,
9284 # most powerpc-linux boxes support dynamic linking these days and
9285 # people can always --disable-shared, the test was removed, and we
9286 # assume the GNU/Linux dynamic linker is in use.
9287 dynamic_linker='GNU/Linux ld.so'
9290 netbsd*)
9291 version_type=sunos
9292 need_lib_prefix=no
9293 need_version=no
9294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297 dynamic_linker='NetBSD (a.out) ld.so'
9298 else
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 dynamic_linker='NetBSD ld.elf_so'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9308 newsos6)
9309 version_type=linux
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9315 *nto* | *qnx*)
9316 version_type=qnx
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=no
9323 hardcode_into_libs=yes
9324 dynamic_linker='ldqnx.so'
9327 openbsd*)
9328 version_type=sunos
9329 sys_lib_dlsearch_path_spec="/usr/lib"
9330 need_lib_prefix=no
9331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332 case $host_os in
9333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9334 *) need_version=no ;;
9335 esac
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 case $host_os in
9341 openbsd2.[89] | openbsd2.[89].*)
9342 shlibpath_overrides_runpath=no
9345 shlibpath_overrides_runpath=yes
9347 esac
9348 else
9349 shlibpath_overrides_runpath=yes
9353 os2*)
9354 libname_spec='$name'
9355 shrext_cmds=".dll"
9356 need_lib_prefix=no
9357 library_names_spec='$libname${shared_ext} $libname.a'
9358 dynamic_linker='OS/2 ld.exe'
9359 shlibpath_var=LIBPATH
9362 osf3* | osf4* | osf5*)
9363 version_type=osf
9364 need_lib_prefix=no
9365 need_version=no
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373 rdos*)
9374 dynamic_linker=no
9377 solaris*)
9378 version_type=linux
9379 need_lib_prefix=no
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9386 # ldd complains unless libraries are executable
9387 postinstall_cmds='chmod +x $lib'
9390 sunos4*)
9391 version_type=sunos
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 if test "$with_gnu_ld" = yes; then
9397 need_lib_prefix=no
9399 need_version=yes
9402 sysv4 | sysv4.3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_vendor in
9408 sni)
9409 shlibpath_overrides_runpath=no
9410 need_lib_prefix=no
9411 runpath_var=LD_RUN_PATH
9413 siemens)
9414 need_lib_prefix=no
9416 motorola)
9417 need_lib_prefix=no
9418 need_version=no
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9422 esac
9425 sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 version_type=linux
9428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9429 soname_spec='$libname${shared_ext}.$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9435 version_type=freebsd-elf
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9443 if test "$with_gnu_ld" = yes; then
9444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 else
9446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9447 case $host_os in
9448 sco3.2v5*)
9449 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9451 esac
9453 sys_lib_dlsearch_path_spec='/usr/lib'
9456 tpf*)
9457 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=no
9464 hardcode_into_libs=yes
9467 uts4*)
9468 version_type=linux
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 shlibpath_var=LD_LIBRARY_PATH
9475 dynamic_linker=no
9477 esac
9478 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9479 echo "${ECHO_T}$dynamic_linker" >&6
9480 test "$dynamic_linker" = no && can_build_shared=no
9482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9483 if test "$GCC" = yes; then
9484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575 hardcode_action=
9576 if test -n "$hardcode_libdir_flag_spec" ||
9577 test -n "$runpath_var" ||
9578 test "X$hardcode_automatic" = "Xyes" ; then
9580 # We can hardcode non-existent directories.
9581 if test "$hardcode_direct" != no &&
9582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9583 # have to relink, otherwise we might link with an installed library
9584 # when we should be linking with a yet-to-be-installed one
9585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9586 test "$hardcode_minus_L" != no; then
9587 # Linking always hardcodes the temporary library directory.
9588 hardcode_action=relink
9589 else
9590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9591 hardcode_action=immediate
9593 else
9594 # We cannot hardcode anything, or else we can only hardcode existing
9595 # directories.
9596 hardcode_action=unsupported
9598 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9599 echo "${ECHO_T}$hardcode_action" >&6
9601 if test "$hardcode_action" = relink ||
9602 test "$inherit_rpath" = yes; then
9603 # Fast installation is not supported
9604 enable_fast_install=no
9605 elif test "$shlibpath_overrides_runpath" = yes ||
9606 test "$enable_shared" = no; then
9607 # Fast installation is not necessary
9608 enable_fast_install=needless
9616 if test "x$enable_dlopen" != xyes; then
9617 enable_dlopen=unknown
9618 enable_dlopen_self=unknown
9619 enable_dlopen_self_static=unknown
9620 else
9621 lt_cv_dlopen=no
9622 lt_cv_dlopen_libs=
9624 case $host_os in
9625 beos*)
9626 lt_cv_dlopen="load_add_on"
9627 lt_cv_dlopen_libs=
9628 lt_cv_dlopen_self=yes
9631 mingw* | pw32*)
9632 lt_cv_dlopen="LoadLibrary"
9633 lt_cv_dlopen_libs=
9636 cygwin*)
9637 lt_cv_dlopen="dlopen"
9638 lt_cv_dlopen_libs=
9641 darwin*)
9642 # if libdl is installed we need to link against it
9643 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-ldl $LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 /* Override any gcc2 internal prototype to avoid an error. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663 char dlopen ();
9665 main ()
9667 dlopen ();
9669 return 0;
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9694 ac_cv_lib_dl_dlopen=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_cv_lib_dl_dlopen=no
9701 rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709 else
9711 lt_cv_dlopen="dyld"
9712 lt_cv_dlopen_libs=
9713 lt_cv_dlopen_self=yes
9720 echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define shl_load innocuous_shl_load
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char shl_load (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9746 #undef shl_load
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9752 #endif
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char shl_load ();
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9760 choke me
9761 #else
9762 char (*f) () = shl_load;
9763 #endif
9764 #ifdef __cplusplus
9766 #endif
9769 main ()
9771 return f != shl_load;
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_shl_load=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_cv_func_shl_load=no
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9810 if test $ac_cv_func_shl_load = yes; then
9811 lt_cv_dlopen="shl_load"
9812 else
9813 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-ldld $LIBS"
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 /* Override any gcc2 internal prototype to avoid an error. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char shl_load ();
9835 main ()
9837 shl_load ();
9839 return 0;
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_dld_shl_load=yes
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_lib_dld_shl_load=no
9871 rm -f conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9875 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9879 else
9880 echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define dlopen innocuous_dlopen
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char dlopen (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9906 #undef dlopen
9908 /* Override any gcc2 internal prototype to avoid an error. */
9909 #ifdef __cplusplus
9910 extern "C"
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char dlopen ();
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9920 choke me
9921 #else
9922 char (*f) () = dlopen;
9923 #endif
9924 #ifdef __cplusplus
9926 #endif
9929 main ()
9931 return f != dlopen;
9933 return 0;
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_func_dlopen=yes
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_func_dlopen=no
9965 rm -f conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9968 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9970 if test $ac_cv_func_dlopen = yes; then
9971 lt_cv_dlopen="dlopen"
9972 else
9973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-ldl $LIBS"
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char dlopen ();
9995 main ()
9997 dlopen ();
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_cv_lib_dl_dlopen=yes
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ac_cv_lib_dl_dlopen=no
10031 rm -f conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10037 if test $ac_cv_lib_dl_dlopen = yes; then
10038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039 else
10040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045 ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-lsvld $LIBS"
10047 cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h. */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10054 /* Override any gcc2 internal prototype to avoid an error. */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 /* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060 char dlopen ();
10062 main ()
10064 dlopen ();
10066 return 0;
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_lib_svld_dlopen=yes
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_lib_svld_dlopen=no
10098 rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 LIBS=$ac_check_lib_save_LIBS
10102 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10103 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10104 if test $ac_cv_lib_svld_dlopen = yes; then
10105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10106 else
10107 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10109 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 ac_check_lib_save_LIBS=$LIBS
10113 LIBS="-ldld $LIBS"
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10121 /* Override any gcc2 internal prototype to avoid an error. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char dld_link ();
10129 main ()
10131 dld_link ();
10133 return 0;
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag"
10146 || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_lib_dld_dld_link=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_cv_lib_dld_dld_link=no
10165 rm -f conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10172 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10191 esac
10193 if test "x$lt_cv_dlopen" != xno; then
10194 enable_dlopen=yes
10195 else
10196 enable_dlopen=no
10199 case $lt_cv_dlopen in
10200 dlopen)
10201 save_CPPFLAGS="$CPPFLAGS"
10202 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10204 save_LDFLAGS="$LDFLAGS"
10205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10207 save_LIBS="$LIBS"
10208 LIBS="$lt_cv_dlopen_libs $LIBS"
10210 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10211 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10212 if test "${lt_cv_dlopen_self+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215 if test "$cross_compiling" = yes; then :
10216 lt_cv_dlopen_self=cross
10217 else
10218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10219 lt_status=$lt_dlunknown
10220 cat > conftest.$ac_ext <<_LT_EOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10224 #if HAVE_DLFCN_H
10225 #include <dlfcn.h>
10226 #endif
10228 #include <stdio.h>
10230 #ifdef RTLD_GLOBAL
10231 # define LT_DLGLOBAL RTLD_GLOBAL
10232 #else
10233 # ifdef DL_GLOBAL
10234 # define LT_DLGLOBAL DL_GLOBAL
10235 # else
10236 # define LT_DLGLOBAL 0
10237 # endif
10238 #endif
10240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10241 find out it does not work in some platform. */
10242 #ifndef LT_DLLAZY_OR_NOW
10243 # ifdef RTLD_LAZY
10244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10245 # else
10246 # ifdef DL_LAZY
10247 # define LT_DLLAZY_OR_NOW DL_LAZY
10248 # else
10249 # ifdef RTLD_NOW
10250 # define LT_DLLAZY_OR_NOW RTLD_NOW
10251 # else
10252 # ifdef DL_NOW
10253 # define LT_DLLAZY_OR_NOW DL_NOW
10254 # else
10255 # define LT_DLLAZY_OR_NOW 0
10256 # endif
10257 # endif
10258 # endif
10259 # endif
10260 #endif
10262 #ifdef __cplusplus
10263 extern "C" void exit (int);
10264 #endif
10266 void fnord() { int i=42;}
10267 int main ()
10269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10270 int status = $lt_dlunknown;
10272 if (self)
10274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10276 /* dlclose (self); */
10278 else
10279 puts (dlerror ());
10281 exit (status);
10283 _LT_EOF
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10289 (./conftest; exit; ) >&5 2>/dev/null
10290 lt_status=$?
10291 case x$lt_status in
10292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10295 esac
10296 else :
10297 # compilation failed
10298 lt_cv_dlopen_self=no
10301 rm -fr conftest*
10305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10306 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10308 if test "x$lt_cv_dlopen_self" = xyes; then
10309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10311 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10312 if test "${lt_cv_dlopen_self_static+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 if test "$cross_compiling" = yes; then :
10316 lt_cv_dlopen_self_static=cross
10317 else
10318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10319 lt_status=$lt_dlunknown
10320 cat > conftest.$ac_ext <<_LT_EOF
10321 #line 10321 "configure"
10322 #include "confdefs.h"
10324 #if HAVE_DLFCN_H
10325 #include <dlfcn.h>
10326 #endif
10328 #include <stdio.h>
10330 #ifdef RTLD_GLOBAL
10331 # define LT_DLGLOBAL RTLD_GLOBAL
10332 #else
10333 # ifdef DL_GLOBAL
10334 # define LT_DLGLOBAL DL_GLOBAL
10335 # else
10336 # define LT_DLGLOBAL 0
10337 # endif
10338 #endif
10340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10341 find out it does not work in some platform. */
10342 #ifndef LT_DLLAZY_OR_NOW
10343 # ifdef RTLD_LAZY
10344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10345 # else
10346 # ifdef DL_LAZY
10347 # define LT_DLLAZY_OR_NOW DL_LAZY
10348 # else
10349 # ifdef RTLD_NOW
10350 # define LT_DLLAZY_OR_NOW RTLD_NOW
10351 # else
10352 # ifdef DL_NOW
10353 # define LT_DLLAZY_OR_NOW DL_NOW
10354 # else
10355 # define LT_DLLAZY_OR_NOW 0
10356 # endif
10357 # endif
10358 # endif
10359 # endif
10360 #endif
10362 #ifdef __cplusplus
10363 extern "C" void exit (int);
10364 #endif
10366 void fnord() { int i=42;}
10367 int main ()
10369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10370 int status = $lt_dlunknown;
10372 if (self)
10374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10376 /* dlclose (self); */
10378 else
10379 puts (dlerror ());
10381 exit (status);
10383 _LT_EOF
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10389 (./conftest; exit; ) >&5 2>/dev/null
10390 lt_status=$?
10391 case x$lt_status in
10392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10395 esac
10396 else :
10397 # compilation failed
10398 lt_cv_dlopen_self_static=no
10401 rm -fr conftest*
10405 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10406 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10409 CPPFLAGS="$save_CPPFLAGS"
10410 LDFLAGS="$save_LDFLAGS"
10411 LIBS="$save_LIBS"
10413 esac
10415 case $lt_cv_dlopen_self in
10416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10417 *) enable_dlopen_self=unknown ;;
10418 esac
10420 case $lt_cv_dlopen_self_static in
10421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10422 *) enable_dlopen_self_static=unknown ;;
10423 esac
10442 striplib=
10443 old_striplib=
10444 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449 echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6
10451 else
10452 # FIXME - insert some real tests, host_os isn't really good enough
10453 case $host_os in
10454 darwin*)
10455 if test -n "$STRIP" ; then
10456 striplib="$STRIP -x"
10457 old_striplib="$STRIP -S"
10458 echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6
10460 else
10461 echo "$as_me:$LINENO: result: no" >&5
10462 echo "${ECHO_T}no" >&6
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10469 esac
10483 # Report which library types will actually be built
10484 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10485 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10486 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10487 echo "${ECHO_T}$can_build_shared" >&6
10489 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10490 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10491 test "$can_build_shared" = "no" && enable_shared=no
10493 # On AIX, shared libraries and static libraries use the same namespace, and
10494 # are all built from PIC.
10495 case $host_os in
10496 aix3*)
10497 test "$enable_shared" = yes && enable_static=no
10498 if test -n "$RANLIB"; then
10499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10500 postinstall_cmds='$RANLIB $lib'
10504 aix[4-9]*)
10505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10506 test "$enable_shared" = yes && enable_static=no
10509 esac
10510 echo "$as_me:$LINENO: result: $enable_shared" >&5
10511 echo "${ECHO_T}$enable_shared" >&6
10513 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10514 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10515 # Make sure either enable_shared or enable_static is yes.
10516 test "$enable_shared" = yes || enable_static=yes
10517 echo "$as_me:$LINENO: result: $enable_static" >&5
10518 echo "${ECHO_T}$enable_static" >&6
10524 ac_ext=c
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530 CC="$lt_save_CC"
10544 ac_config_commands="$ac_config_commands libtool"
10549 # Only expand once:
10553 # Check whether --enable-targets or --disable-targets was given.
10554 if test "${enable_targets+set}" = set; then
10555 enableval="$enable_targets"
10556 case "${enableval}" in
10557 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10558 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10559 { (exit 1); exit 1; }; }
10561 no) enable_targets= ;;
10562 *) enable_targets=$enableval ;;
10563 esac
10565 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566 if test "${enable_commonbfdlib+set}" = set; then
10567 enableval="$enable_commonbfdlib"
10568 case "${enableval}" in
10569 yes) commonbfdlib=true ;;
10570 no) commonbfdlib=false ;;
10571 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10574 esac
10576 ac_checking=yes
10577 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10578 ac_checking=
10580 # Check whether --enable-checking or --disable-checking was given.
10581 if test "${enable_checking+set}" = set; then
10582 enableval="$enable_checking"
10583 case "${enableval}" in
10584 no|none) ac_checking= ;;
10585 *) ac_checking=yes ;;
10586 esac
10587 fi; if test x$ac_checking != x ; then
10589 cat >>confdefs.h <<\_ACEOF
10590 #define ENABLE_CHECKING 1
10591 _ACEOF
10595 using_cgen=no
10598 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10600 # Check whether --enable-werror or --disable-werror was given.
10601 if test "${enable_werror+set}" = set; then
10602 enableval="$enable_werror"
10603 case "${enableval}" in
10604 yes | y) ERROR_ON_WARNING="yes" ;;
10605 no | n) ERROR_ON_WARNING="no" ;;
10606 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609 esac
10612 # Enable -Wno-format by default when using gcc on mingw
10613 case "${host}" in
10614 *-*-mingw32*)
10615 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10619 *) ;;
10620 esac
10622 # Enable -Werror by default when using gcc
10623 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10624 ERROR_ON_WARNING=yes
10627 NO_WERROR=
10628 if test "${ERROR_ON_WARNING}" = yes ; then
10629 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10630 NO_WERROR="-Wno-error"
10633 if test "${GCC}" = yes ; then
10634 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10637 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10638 if test "${enable_build_warnings+set}" = set; then
10639 enableval="$enable_build_warnings"
10640 case "${enableval}" in
10641 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10642 no) if test "${GCC}" = yes ; then
10643 WARN_CFLAGS="-w"
10644 fi;;
10645 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10646 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10647 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10648 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10649 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10650 esac
10653 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10654 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10661 # Generate a header file
10662 ac_config_headers="$ac_config_headers config.h:config.in"
10665 # If we are on a DOS filesystem, we must use gdb.ini rather than
10666 # .gdbinit.
10667 case "${host}" in
10668 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10669 GDBINIT="gdb.ini"
10670 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10674 GDBINIT=".gdbinit"
10675 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10678 esac
10681 #We need this for the host. BOUT header is in host order.
10682 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10683 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10684 if test "${ac_cv_c_bigendian+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 # See if sys/param.h defines the BYTE_ORDER macro.
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <sys/types.h>
10695 #include <sys/param.h>
10698 main ()
10700 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10701 bogus endian macros
10702 #endif
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 # It does; now see whether it defined to BIG_ENDIAN or not.
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <sys/types.h>
10738 #include <sys/param.h>
10741 main ()
10743 #if BYTE_ORDER != BIG_ENDIAN
10744 not big endian
10745 #endif
10748 return 0;
10750 _ACEOF
10751 rm -f conftest.$ac_objext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_c_bigendian=yes
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 ac_cv_c_bigendian=no
10780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 # It does not; compile a test program.
10786 if test "$cross_compiling" = yes; then
10787 # try to guess the endianness by grepping values into an object file
10788 ac_cv_c_bigendian=unknown
10789 cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h. */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10796 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10797 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10798 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10799 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10802 main ()
10804 _ascii (); _ebcdic ();
10806 return 0;
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10832 ac_cv_c_bigendian=yes
10834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10835 if test "$ac_cv_c_bigendian" = unknown; then
10836 ac_cv_c_bigendian=no
10837 else
10838 # finding both strings is unlikely to happen, but who knows?
10839 ac_cv_c_bigendian=unknown
10842 else
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848 else
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10856 main ()
10858 /* Are we little or big endian? From Harbison&Steele. */
10859 union
10861 long l;
10862 char c[sizeof (long)];
10863 } u;
10864 u.l = 1;
10865 exit (u.c[sizeof (long) - 1] == 1);
10867 _ACEOF
10868 rm -f conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_c_bigendian=no
10880 else
10881 echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 ( exit $ac_status )
10886 ac_cv_c_bigendian=yes
10888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10894 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10895 case $ac_cv_c_bigendian in
10896 yes)
10898 cat >>confdefs.h <<\_ACEOF
10899 #define WORDS_BIGENDIAN 1
10900 _ACEOF
10905 { { echo "$as_me:$LINENO: error: unknown endianness
10906 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10907 echo "$as_me: error: unknown endianness
10908 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10909 { (exit 1); exit 1; }; } ;;
10910 esac
10913 te_file=generic
10915 # Makefile target for installing gas in $(tooldir)/bin.
10916 install_tooldir=install-exec-tooldir
10918 canon_targets=""
10919 all_targets=no
10920 if test -n "$enable_targets" ; then
10921 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10922 if test $t = "all"; then
10923 all_targets=yes
10924 continue
10926 result=`$ac_config_sub $t 2>/dev/null`
10927 if test -n "$result" ; then
10928 canon_targets="$canon_targets $result"
10929 # else
10930 # # Permit "all", etc. We don't support it yet though.
10931 # canon_targets="$canon_targets $t"
10933 done
10934 _gas_uniq_list="$canon_targets"
10935 _gas_uniq_newlist=""
10936 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10937 case $_gas_uniq_i in
10938 _gas_uniq_dummy) ;;
10939 *) case " $_gas_uniq_newlist " in
10940 *" $_gas_uniq_i "*) ;;
10941 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10942 esac ;;
10943 esac
10944 done
10945 canon_targets=$_gas_uniq_newlist
10949 emulations=""
10951 for this_target in $target $canon_targets ; do
10953 targ=${this_target}
10954 . ${srcdir}/configure.tgt
10956 case ${target_cpu} in
10957 crisv32)
10959 cat >>confdefs.h <<_ACEOF
10960 #define DEFAULT_CRIS_ARCH $arch
10961 _ACEOF
10964 esac
10966 if test ${this_target} = $target ; then
10967 target_cpu_type=${cpu_type}
10968 elif test ${target_cpu_type} != ${cpu_type} ; then
10969 continue
10972 generic_target=${cpu_type}-${target_vendor}-${target_os}
10973 case ${generic_target} in
10974 i386-*-sco3.2v5*)
10975 if test ${this_target} = $target; then
10977 cat >>confdefs.h <<\_ACEOF
10978 #define SCO_ELF 1
10979 _ACEOF
10984 i386-*-msdosdjgpp* \
10985 | i386-*-go32* \
10986 | i386-go32-rtems*)
10988 cat >>confdefs.h <<\_ACEOF
10989 #define STRICTCOFF 1
10990 _ACEOF
10994 i860-*-*)
10995 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10996 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10999 mips-sony-bsd*)
11001 mips-*-bsd*)
11002 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11003 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11004 { (exit 1); exit 1; }; }
11007 ppc-*-aix5.*)
11009 cat >>confdefs.h <<\_ACEOF
11010 #define AIX_WEAK_SUPPORT 1
11011 _ACEOF
11014 ppc-*-linux-*)
11015 case "$endian" in
11016 big) ;;
11017 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11018 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11019 { (exit 1); exit 1; }; } ;;
11020 esac
11022 ppc-*-solaris*)
11023 if test ${this_target} = $target; then
11025 cat >>confdefs.h <<\_ACEOF
11026 #define TARGET_SOLARIS_COMMENT 1
11027 _ACEOF
11030 if test x${endian} = xbig; then
11031 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11032 echo "$as_me: error: Solaris must be configured little endian" >&2;}
11033 { (exit 1); exit 1; }; }
11037 sh*-*-symbianelf*)
11039 cat >>confdefs.h <<\_ACEOF
11040 #define TARGET_SYMBIAN 1
11041 _ACEOF
11044 esac
11046 if test ${this_target} = $target ; then
11047 endian_def=
11048 if test x${endian} = xbig; then
11049 endian_def=1
11050 elif test x${endian} = xlittle; then
11051 endian_def=0
11053 if test x${endian_def} != x; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define TARGET_BYTES_BIG_ENDIAN $endian_def
11057 _ACEOF
11062 # Other random stuff.
11064 case ${cpu_type} in
11065 mips)
11066 # Set mips_cpu to the name of the default CPU.
11067 case ${target_cpu} in
11068 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11069 mips_cpu=from-abi
11071 mipsisa32 | mipsisa32el)
11072 mips_cpu=mips32
11074 mipsisa32r2 | mipsisa32r2el)
11075 mips_cpu=mips32r2
11077 mipsisa64 | mipsisa64el)
11078 mips_cpu=mips64
11080 mipsisa64r2 | mipsisa64r2el)
11081 mips_cpu=mips64r2
11083 mipstx39 | mipstx39el)
11084 mips_cpu=r3900
11086 mips64vr | mips64vrel)
11087 mips_cpu=vr4100
11089 mipsisa32r2* | mipsisa64r2*)
11090 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11092 mips64* | mipsisa64* | mipsisa32*)
11093 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11096 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11097 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11098 { (exit 1); exit 1; }; }
11100 esac
11101 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11102 # binaries. It's a GNU extension that some OSes don't understand.
11103 # The value only matters on ELF targets.
11104 case ${target} in
11105 *-*-irix*)
11106 use_e_mips_abi_o32=0
11109 use_e_mips_abi_o32=1
11111 esac
11112 # Decide whether to generate 32-bit or 64-bit code by default.
11113 # Used to resolve -march=from-abi when an embedded ABI is selected.
11114 case ${target} in
11115 mips64*-*-* | mipsisa64*-*-*)
11116 mips_default_64bit=1
11119 mips_default_64bit=0
11121 esac
11122 # Decide which ABI to target by default.
11123 case ${target} in
11124 mips64*-linux* | mips-sgi-irix6*)
11125 mips_default_abi=N32_ABI
11127 mips*-linux*)
11128 mips_default_abi=O32_ABI
11130 mips64*-openbsd*)
11131 mips_default_abi=N64_ABI
11134 mips_default_abi=NO_ABI
11136 esac
11138 cat >>confdefs.h <<_ACEOF
11139 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11140 _ACEOF
11143 cat >>confdefs.h <<_ACEOF
11144 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11145 _ACEOF
11148 cat >>confdefs.h <<_ACEOF
11149 #define MIPS_DEFAULT_64BIT $mips_default_64bit
11150 _ACEOF
11153 cat >>confdefs.h <<_ACEOF
11154 #define MIPS_DEFAULT_ABI $mips_default_abi
11155 _ACEOF
11158 esac
11160 # Do we need the opcodes library?
11161 case ${cpu_type} in
11162 vax | tic30)
11166 need_opcodes=yes
11168 case "${enable_shared}" in
11169 yes) shared_opcodes=true ;;
11170 *opcodes*) shared_opcodes=true ;;
11171 *) shared_opcodes=false ;;
11172 esac
11174 esac
11176 # Any other special object files needed ?
11177 case ${cpu_type} in
11179 bfin)
11180 echo ${extra_objects} | grep -s "bfin-parse.o"
11181 if test $? -ne 0 ; then
11182 extra_objects="$extra_objects bfin-parse.o"
11185 echo ${extra_objects} | grep -s "bfin-lex.o"
11186 if test $? -ne 0 ; then
11187 extra_objects="$extra_objects bfin-lex.o"
11191 fr30 | ip2k | iq2000 | m32r | openrisc)
11192 using_cgen=yes
11195 m32c)
11196 using_cgen=yes
11198 frv)
11199 using_cgen=yes
11201 m68k)
11202 case ${extra_objects} in
11203 *m68k-parse.o*) ;;
11204 *) extra_objects="$extra_objects m68k-parse.o" ;;
11205 esac
11208 mep)
11209 using_cgen=yes
11212 mips)
11213 echo ${extra_objects} | grep -s "itbl-parse.o"
11214 if test $? -ne 0 ; then
11215 extra_objects="$extra_objects itbl-parse.o"
11218 echo ${extra_objects} | grep -s "itbl-lex.o"
11219 if test $? -ne 0 ; then
11220 extra_objects="$extra_objects itbl-lex.o"
11223 echo ${extra_objects} | grep -s "itbl-ops.o"
11224 if test $? -ne 0 ; then
11225 extra_objects="$extra_objects itbl-ops.o"
11230 using_cgen=yes
11233 i386 | s390 | sparc)
11234 if test $this_target = $target ; then
11236 cat >>confdefs.h <<_ACEOF
11237 #define DEFAULT_ARCH "${arch}"
11238 _ACEOF
11243 xstormy16)
11244 using_cgen=yes
11247 xc16x)
11248 using_cgen=yes
11251 xtensa)
11252 echo ${extra_objects} | grep -s "xtensa-relax.o"
11253 if test $? -ne 0 ; then
11254 extra_objects="$extra_objects xtensa-relax.o"
11260 esac
11262 if test $using_cgen = yes ; then
11263 case "x${extra_objects}" in
11264 *cgen.o*) ;;
11265 *) extra_objects="$extra_objects cgen.o" ;;
11266 esac
11269 # See if we really can support this configuration with the emulation code.
11271 if test $this_target = $target ; then
11272 obj_format=$fmt
11273 te_file=$em
11276 # From target name and format, produce a list of supported emulations.
11278 case ${generic_target}-${fmt} in
11279 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11280 mips*-*-linux*-*) case "$endian" in
11281 big) emulation="mipsbelf mipslelf mipself" ;;
11282 *) emulation="mipslelf mipsbelf mipself" ;;
11283 esac ;;
11284 mips-*-lnews*-ecoff) ;;
11285 mips-*-*-ecoff) case "$endian" in
11286 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11287 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11288 esac ;;
11289 mips-*-*-elf) case "$endian" in
11290 big) emulation="mipsbelf mipslelf mipself" ;;
11291 *) emulation="mipslelf mipsbelf mipself" ;;
11292 esac ;;
11293 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11294 # i386-pc-pe-coff != i386-pc-coff.
11295 i386-*-pe-coff) ;;
11296 # Uncommenting the next line will turn on support for i386 AOUT
11297 # for the default linux configuration
11298 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11300 i386-*-aout) emulation="i386aout" ;;
11301 i386-*-coff) emulation="i386coff" ;;
11302 i386-*-elf) emulation="i386elf" ;;
11304 # Always all formats. The first stated emulation becomes the default.
11305 cris-*-*aout*) emulation="crisaout criself" ;;
11306 cris-*-*) emulation="criself crisaout" ;;
11307 esac
11309 emulations="$emulations $emulation"
11311 done
11313 # Turn on all targets if possible
11314 if test ${all_targets} = "yes"; then
11315 case ${target_cpu_type} in
11316 i386)
11317 case ${obj_format} in
11318 aout)
11319 emulations="$emulations i386coff i386elf"
11321 coff)
11322 emulations="$emulations i386aout i386elf"
11324 elf)
11325 emulations="$emulations i386aout i386coff"
11327 esac
11329 x86_64)
11330 case ${obj_format} in
11331 aout)
11332 emulations="$emulations i386coff i386elf"
11334 coff)
11335 emulations="$emulations i386aout i386elf"
11337 elf)
11338 emulations="$emulations i386aout i386coff"
11340 esac
11342 esac
11345 # Assign floating point type. Most processors with FP support
11346 # IEEE FP. On those that don't support FP at all, usually IEEE
11347 # is emulated.
11348 case ${target_cpu} in
11349 vax | pdp11 ) atof=vax ;;
11350 *) atof=ieee ;;
11351 esac
11353 case "${obj_format}" in
11354 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11355 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11356 { (exit 1); exit 1; }; } ;;
11357 esac
11359 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11360 cgen_cpu_prefix=""
11361 if test $using_cgen = yes ; then
11362 case ${target_cpu} in
11363 *) cgen_cpu_prefix=${target_cpu} ;;
11364 esac
11367 cat >>confdefs.h <<\_ACEOF
11368 #define USING_CGEN 1
11369 _ACEOF
11374 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11375 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11376 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11377 { (exit 1); exit 1; }; }
11380 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11381 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11382 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11383 { (exit 1); exit 1; }; }
11386 # Some COFF configurations want these random other flags set.
11387 case ${obj_format} in
11388 coff)
11389 case ${target_cpu_type} in
11390 i386)
11391 cat >>confdefs.h <<\_ACEOF
11392 #define I386COFF 1
11393 _ACEOF
11395 m68k)
11396 cat >>confdefs.h <<\_ACEOF
11397 #define M68KCOFF 1
11398 _ACEOF
11400 m88k)
11401 cat >>confdefs.h <<\_ACEOF
11402 #define M88KCOFF 1
11403 _ACEOF
11405 x86_64)
11406 cat >>confdefs.h <<\_ACEOF
11407 #define I386COFF 1
11408 _ACEOF
11410 esac
11412 esac
11414 # Getting this done right is going to be a bitch. Each configuration specified
11415 # with --enable-targets=... should be checked for environment, format, cpu
11416 # setting.
11418 # For each configuration, the necessary object file support code must be linked
11419 # in. This might be only one, it might be up to four. The necessary emulation
11420 # code needs to be provided, too.
11422 # And then there's "--enable-targets=all"....
11424 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11426 formats="${obj_format}"
11427 emfiles=""
11428 EMULATIONS=""
11429 _gas_uniq_list="$emulations"
11430 _gas_uniq_newlist=""
11431 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11432 case $_gas_uniq_i in
11433 _gas_uniq_dummy) ;;
11434 *) case " $_gas_uniq_newlist " in
11435 *" $_gas_uniq_i "*) ;;
11436 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11437 esac ;;
11438 esac
11439 done
11440 emulations=$_gas_uniq_newlist
11442 for em in . $emulations ; do
11443 case $em in
11444 .) continue ;;
11445 mipsbelf | mipslelf | mipself)
11446 fmt=elf file=mipself ;;
11447 mipsbecoff | mipslecoff | mipsecoff)
11448 fmt=ecoff file=mipsecoff ;;
11449 *coff)
11450 fmt=coff file=$em ;;
11451 *aout)
11452 fmt=aout file=$em ;;
11453 *elf)
11454 fmt=elf file=$em ;;
11455 esac
11456 formats="$formats $fmt"
11457 emfiles="$emfiles e-$file.o"
11458 EMULATIONS="$EMULATIONS &$em,"
11459 done
11460 _gas_uniq_list="$formats"
11461 _gas_uniq_newlist=""
11462 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11463 case $_gas_uniq_i in
11464 _gas_uniq_dummy) ;;
11465 *) case " $_gas_uniq_newlist " in
11466 *" $_gas_uniq_i "*) ;;
11467 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11468 esac ;;
11469 esac
11470 done
11471 formats=$_gas_uniq_newlist
11473 _gas_uniq_list="$emfiles"
11474 _gas_uniq_newlist=""
11475 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11476 case $_gas_uniq_i in
11477 _gas_uniq_dummy) ;;
11478 *) case " $_gas_uniq_newlist " in
11479 *" $_gas_uniq_i "*) ;;
11480 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11481 esac ;;
11482 esac
11483 done
11484 emfiles=$_gas_uniq_newlist
11486 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11487 for fmt in $formats ; do
11488 case $fmt in
11489 aout)
11490 cat >>confdefs.h <<\_ACEOF
11491 #define OBJ_MAYBE_AOUT 1
11492 _ACEOF
11494 bout)
11495 cat >>confdefs.h <<\_ACEOF
11496 #define OBJ_MAYBE_BOUT 1
11497 _ACEOF
11499 coff)
11500 cat >>confdefs.h <<\_ACEOF
11501 #define OBJ_MAYBE_COFF 1
11502 _ACEOF
11504 ecoff)
11505 cat >>confdefs.h <<\_ACEOF
11506 #define OBJ_MAYBE_ECOFF 1
11507 _ACEOF
11509 elf)
11510 cat >>confdefs.h <<\_ACEOF
11511 #define OBJ_MAYBE_ELF 1
11512 _ACEOF
11514 generic)
11515 cat >>confdefs.h <<\_ACEOF
11516 #define OBJ_MAYBE_GENERIC 1
11517 _ACEOF
11519 som)
11520 cat >>confdefs.h <<\_ACEOF
11521 #define OBJ_MAYBE_SOM 1
11522 _ACEOF
11524 esac
11525 extra_objects="$extra_objects obj-$fmt.o"
11526 done
11527 obj_format=multi
11529 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11530 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11531 # e-mips* has more than one emulation per file, e-i386* has just one at the
11532 # moment. If only one emulation is specified, then don't define
11533 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11534 case "${obj_format}${emfiles}" in
11535 multi* | *mips*)
11536 extra_objects="$extra_objects $emfiles"
11538 cat >>confdefs.h <<\_ACEOF
11539 #define USE_EMULATIONS 1
11540 _ACEOF
11542 esac
11546 cat >>confdefs.h <<_ACEOF
11547 #define EMULATIONS $EMULATIONS
11548 _ACEOF
11551 cat >>confdefs.h <<_ACEOF
11552 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11553 _ACEOF
11556 reject_dev_configs=yes
11558 case ${reject_dev_configs}-${dev} in
11559 yes-yes) # Oops.
11560 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11561 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11562 { (exit 1); exit 1; }; }
11564 esac
11572 # do we need the opcodes library?
11573 case "${need_opcodes}" in
11574 yes)
11575 OPCODES_LIB=../opcodes/libopcodes.la
11577 esac
11582 cat >>confdefs.h <<_ACEOF
11583 #define TARGET_ALIAS "${target_alias}"
11584 _ACEOF
11587 cat >>confdefs.h <<_ACEOF
11588 #define TARGET_CANONICAL "${target}"
11589 _ACEOF
11592 cat >>confdefs.h <<_ACEOF
11593 #define TARGET_CPU "${target_cpu}"
11594 _ACEOF
11597 cat >>confdefs.h <<_ACEOF
11598 #define TARGET_VENDOR "${target_vendor}"
11599 _ACEOF
11602 cat >>confdefs.h <<_ACEOF
11603 #define TARGET_OS "${target_os}"
11604 _ACEOF
11607 for ac_prog in 'bison -y' byacc
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613 if test "${ac_cv_prog_YACC+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 if test -n "$YACC"; then
11617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_YACC="$ac_prog"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11630 done
11631 done
11635 YACC=$ac_cv_prog_YACC
11636 if test -n "$YACC"; then
11637 echo "$as_me:$LINENO: result: $YACC" >&5
11638 echo "${ECHO_T}$YACC" >&6
11639 else
11640 echo "$as_me:$LINENO: result: no" >&5
11641 echo "${ECHO_T}no" >&6
11644 test -n "$YACC" && break
11645 done
11646 test -n "$YACC" || YACC="yacc"
11648 for ac_prog in flex lex
11650 # Extract the first word of "$ac_prog", so it can be a program name with args.
11651 set dummy $ac_prog; ac_word=$2
11652 echo "$as_me:$LINENO: checking for $ac_word" >&5
11653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11654 if test "${ac_cv_prog_LEX+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 if test -n "$LEX"; then
11658 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_LEX="$ac_prog"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11676 LEX=$ac_cv_prog_LEX
11677 if test -n "$LEX"; then
11678 echo "$as_me:$LINENO: result: $LEX" >&5
11679 echo "${ECHO_T}$LEX" >&6
11680 else
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11685 test -n "$LEX" && break
11686 done
11687 test -n "$LEX" || LEX=":"
11689 if test -z "$LEXLIB"
11690 then
11691 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11692 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11693 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-lfl $LIBS"
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 /* Override any gcc2 internal prototype to avoid an error. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711 char yywrap ();
11713 main ()
11715 yywrap ();
11717 return 0;
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_lib_fl_yywrap=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_lib_fl_yywrap=no
11749 rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11753 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11754 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11755 if test $ac_cv_lib_fl_yywrap = yes; then
11756 LEXLIB="-lfl"
11757 else
11758 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11759 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11760 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-ll $LIBS"
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 /* Override any gcc2 internal prototype to avoid an error. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778 char yywrap ();
11780 main ()
11782 yywrap ();
11784 return 0;
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_l_yywrap=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_cv_lib_l_yywrap=no
11816 rm -f conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 LIBS=$ac_check_lib_save_LIBS
11820 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11821 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11822 if test $ac_cv_lib_l_yywrap = yes; then
11823 LEXLIB="-ll"
11830 if test "x$LEX" != "x:"; then
11831 echo "$as_me:$LINENO: checking lex output file root" >&5
11832 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11833 if test "${ac_cv_prog_lex_root+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 # The minimal lex program is just a single line: %%. But some broken lexes
11837 # (Solaris, I think it was) want two %% lines, so accommodate them.
11838 cat >conftest.l <<_ACEOF
11841 _ACEOF
11842 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11843 (eval $LEX conftest.l) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }
11847 if test -f lex.yy.c; then
11848 ac_cv_prog_lex_root=lex.yy
11849 elif test -f lexyy.c; then
11850 ac_cv_prog_lex_root=lexyy
11851 else
11852 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11853 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11854 { (exit 1); exit 1; }; }
11857 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11858 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11859 rm -f conftest.l
11860 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11862 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11863 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11864 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 # POSIX says lex can declare yytext either as a pointer or an array; the
11868 # default is implementation-dependent. Figure out which it is, since
11869 # not all implementations provide the %pointer and %array declarations.
11870 ac_cv_prog_lex_yytext_pointer=no
11871 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11872 ac_save_LIBS=$LIBS
11873 LIBS="$LIBS $LEXLIB"
11874 cat >conftest.$ac_ext <<_ACEOF
11875 `cat $LEX_OUTPUT_ROOT.c`
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_prog_lex_yytext_pointer=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_save_LIBS
11908 rm -f "${LEX_OUTPUT_ROOT}.c"
11911 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11912 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11913 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define YYTEXT_POINTER 1
11917 _ACEOF
11922 if test "$LEX" = :; then
11923 LEX=${am_missing_run}flex
11926 ALL_LINGUAS="fr tr es rw"
11927 # If we haven't got the data from the intl directory,
11928 # assume NLS is disabled.
11929 USE_NLS=no
11930 LIBINTL=
11931 LIBINTL_DEP=
11932 INCINTL=
11933 XGETTEXT=
11934 GMSGFMT=
11935 POSUB=
11937 if test -f ../intl/config.intl; then
11938 . ../intl/config.intl
11940 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11941 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11942 if test x"$USE_NLS" != xyes; then
11943 echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6
11945 else
11946 echo "$as_me:$LINENO: result: yes" >&5
11947 echo "${ECHO_T}yes" >&6
11949 cat >>confdefs.h <<\_ACEOF
11950 #define ENABLE_NLS 1
11951 _ACEOF
11954 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11955 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11956 # Look for .po and .gmo files in the source directory.
11957 CATALOGS=
11958 XLINGUAS=
11959 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11960 # If there aren't any .gmo files the shell will give us the
11961 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11962 # weeded out.
11963 case "$cat" in *\**)
11964 continue;;
11965 esac
11966 # The quadruple backslash is collapsed to a double backslash
11967 # by the backticks, then collapsed again by the double quotes,
11968 # leaving us with one backslash in the sed expression (right
11969 # before the dot that mustn't act as a wildcard).
11970 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11971 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11972 # The user is allowed to set LINGUAS to a list of languages to
11973 # install catalogs for. If it's empty that means "all of them."
11974 if test "x$LINGUAS" = x; then
11975 CATALOGS="$CATALOGS $cat"
11976 XLINGUAS="$XLINGUAS $lang"
11977 else
11978 case "$LINGUAS" in *$lang*)
11979 CATALOGS="$CATALOGS $cat"
11980 XLINGUAS="$XLINGUAS $lang"
11982 esac
11984 done
11985 LINGUAS="$XLINGUAS"
11986 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11987 echo "${ECHO_T}$LINGUAS" >&6
11990 DATADIRNAME=share
11992 INSTOBJEXT=.mo
11994 GENCAT=gencat
11996 CATOBJEXT=.gmo
12000 MKINSTALLDIRS=
12001 if test -n "$ac_aux_dir"; then
12002 case "$ac_aux_dir" in
12003 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12004 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12005 esac
12007 if test -z "$MKINSTALLDIRS"; then
12008 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12013 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12014 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12015 # Check whether --enable-nls or --disable-nls was given.
12016 if test "${enable_nls+set}" = set; then
12017 enableval="$enable_nls"
12018 USE_NLS=$enableval
12019 else
12020 USE_NLS=yes
12022 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12023 echo "${ECHO_T}$USE_NLS" >&6
12030 # Prepare PATH_SEPARATOR.
12031 # The user is always right.
12032 if test "${PATH_SEPARATOR+set}" != set; then
12033 echo "#! /bin/sh" >conf$$.sh
12034 echo "exit 0" >>conf$$.sh
12035 chmod +x conf$$.sh
12036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12037 PATH_SEPARATOR=';'
12038 else
12039 PATH_SEPARATOR=:
12041 rm -f conf$$.sh
12044 # Find out how to test for executable files. Don't use a zero-byte file,
12045 # as systems may use methods other than mode bits to determine executability.
12046 cat >conf$$.file <<_ASEOF
12047 #! /bin/sh
12048 exit 0
12049 _ASEOF
12050 chmod +x conf$$.file
12051 if test -x conf$$.file >/dev/null 2>&1; then
12052 ac_executable_p="test -x"
12053 else
12054 ac_executable_p="test -f"
12056 rm -f conf$$.file
12058 # Extract the first word of "msgfmt", so it can be a program name with args.
12059 set dummy msgfmt; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_path_MSGFMT+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 case "$MSGFMT" in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12070 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12071 for ac_dir in $PATH; do
12072 IFS="$ac_save_IFS"
12073 test -z "$ac_dir" && ac_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12076 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12077 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12078 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12079 break 2
12082 done
12083 done
12084 IFS="$ac_save_IFS"
12085 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12087 esac
12089 MSGFMT="$ac_cv_path_MSGFMT"
12090 if test "$MSGFMT" != ":"; then
12091 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12092 echo "${ECHO_T}$MSGFMT" >&6
12093 else
12094 echo "$as_me:$LINENO: result: no" >&5
12095 echo "${ECHO_T}no" >&6
12098 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12099 set dummy gmsgfmt; ac_word=$2
12100 echo "$as_me:$LINENO: checking for $ac_word" >&5
12101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12102 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 case $GMSGFMT in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12124 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12126 esac
12128 GMSGFMT=$ac_cv_path_GMSGFMT
12130 if test -n "$GMSGFMT"; then
12131 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12132 echo "${ECHO_T}$GMSGFMT" >&6
12133 else
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12140 # Prepare PATH_SEPARATOR.
12141 # The user is always right.
12142 if test "${PATH_SEPARATOR+set}" != set; then
12143 echo "#! /bin/sh" >conf$$.sh
12144 echo "exit 0" >>conf$$.sh
12145 chmod +x conf$$.sh
12146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12147 PATH_SEPARATOR=';'
12148 else
12149 PATH_SEPARATOR=:
12151 rm -f conf$$.sh
12154 # Find out how to test for executable files. Don't use a zero-byte file,
12155 # as systems may use methods other than mode bits to determine executability.
12156 cat >conf$$.file <<_ASEOF
12157 #! /bin/sh
12158 exit 0
12159 _ASEOF
12160 chmod +x conf$$.file
12161 if test -x conf$$.file >/dev/null 2>&1; then
12162 ac_executable_p="test -x"
12163 else
12164 ac_executable_p="test -f"
12166 rm -f conf$$.file
12168 # Extract the first word of "xgettext", so it can be a program name with args.
12169 set dummy xgettext; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 case "$XGETTEXT" in
12176 [\\/]* | ?:[\\/]*)
12177 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12180 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12181 for ac_dir in $PATH; do
12182 IFS="$ac_save_IFS"
12183 test -z "$ac_dir" && ac_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12186 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12187 (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
12188 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12189 break 2
12192 done
12193 done
12194 IFS="$ac_save_IFS"
12195 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12197 esac
12199 XGETTEXT="$ac_cv_path_XGETTEXT"
12200 if test "$XGETTEXT" != ":"; then
12201 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12202 echo "${ECHO_T}$XGETTEXT" >&6
12203 else
12204 echo "$as_me:$LINENO: result: no" >&5
12205 echo "${ECHO_T}no" >&6
12208 rm -f messages.po
12211 # Prepare PATH_SEPARATOR.
12212 # The user is always right.
12213 if test "${PATH_SEPARATOR+set}" != set; then
12214 echo "#! /bin/sh" >conf$$.sh
12215 echo "exit 0" >>conf$$.sh
12216 chmod +x conf$$.sh
12217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12218 PATH_SEPARATOR=';'
12219 else
12220 PATH_SEPARATOR=:
12222 rm -f conf$$.sh
12225 # Find out how to test for executable files. Don't use a zero-byte file,
12226 # as systems may use methods other than mode bits to determine executability.
12227 cat >conf$$.file <<_ASEOF
12228 #! /bin/sh
12229 exit 0
12230 _ASEOF
12231 chmod +x conf$$.file
12232 if test -x conf$$.file >/dev/null 2>&1; then
12233 ac_executable_p="test -x"
12234 else
12235 ac_executable_p="test -f"
12237 rm -f conf$$.file
12239 # Extract the first word of "msgmerge", so it can be a program name with args.
12240 set dummy msgmerge; ac_word=$2
12241 echo "$as_me:$LINENO: checking for $ac_word" >&5
12242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12243 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 case "$MSGMERGE" in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12252 for ac_dir in $PATH; do
12253 IFS="$ac_save_IFS"
12254 test -z "$ac_dir" && ac_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12257 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12258 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12259 break 2
12262 done
12263 done
12264 IFS="$ac_save_IFS"
12265 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12267 esac
12269 MSGMERGE="$ac_cv_path_MSGMERGE"
12270 if test "$MSGMERGE" != ":"; then
12271 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12272 echo "${ECHO_T}$MSGMERGE" >&6
12273 else
12274 echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6
12279 if test "$GMSGFMT" != ":"; then
12280 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12281 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12283 else
12284 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12285 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12286 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12287 GMSGFMT=":"
12291 if test "$XGETTEXT" != ":"; then
12292 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12293 (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
12295 else
12296 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12297 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12298 XGETTEXT=":"
12300 rm -f messages.po
12303 ac_config_commands="$ac_config_commands default-1"
12307 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12308 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12309 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12310 if test "${enable_maintainer_mode+set}" = set; then
12311 enableval="$enable_maintainer_mode"
12312 USE_MAINTAINER_MODE=$enableval
12313 else
12314 USE_MAINTAINER_MODE=no
12316 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12317 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12320 if test $USE_MAINTAINER_MODE = yes; then
12321 MAINTAINER_MODE_TRUE=
12322 MAINTAINER_MODE_FALSE='#'
12323 else
12324 MAINTAINER_MODE_TRUE='#'
12325 MAINTAINER_MODE_FALSE=
12328 MAINT=$MAINTAINER_MODE_TRUE
12333 if false; then
12334 GENINSRC_NEVER_TRUE=
12335 GENINSRC_NEVER_FALSE='#'
12336 else
12337 GENINSRC_NEVER_TRUE='#'
12338 GENINSRC_NEVER_FALSE=
12353 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
12355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 else
12365 # Is the header compilable?
12366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 $ac_includes_default
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_header_compiler=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_header_compiler=no
12406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12408 echo "${ECHO_T}$ac_header_compiler" >&6
12410 # Is the header present?
12411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <$ac_header>
12420 _ACEOF
12421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null; then
12429 if test -s conftest.err; then
12430 ac_cpp_err=$ac_c_preproc_warn_flag
12431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12432 else
12433 ac_cpp_err=
12435 else
12436 ac_cpp_err=yes
12438 if test -z "$ac_cpp_err"; then
12439 ac_header_preproc=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_header_preproc=no
12446 rm -f conftest.err conftest.$ac_ext
12447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448 echo "${ECHO_T}$ac_header_preproc" >&6
12450 # So? What about this header?
12451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452 yes:no: )
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457 ac_header_preproc=yes
12459 no:yes:* )
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12473 cat <<\_ASBOX
12474 ## ------------------------------------------ ##
12475 ## Report this to the AC_PACKAGE_NAME lists. ##
12476 ## ------------------------------------------ ##
12477 _ASBOX
12479 sed "s/^/$as_me: WARNING: /" >&2
12481 esac
12482 echo "$as_me:$LINENO: checking for $ac_header" >&5
12483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 eval "$as_ac_Header=\$ac_header_preproc"
12489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12494 cat >>confdefs.h <<_ACEOF
12495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12496 _ACEOF
12500 done
12503 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12504 # people who are not cross-compiling but are compiling cross-assemblers.
12505 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12506 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12507 if test "${host}" = "${target}"; then
12508 cross_gas=no
12509 else
12510 cross_gas=yes
12512 cat >>confdefs.h <<\_ACEOF
12513 #define CROSS_COMPILE 1
12514 _ACEOF
12517 echo "$as_me:$LINENO: result: $cross_gas" >&5
12518 echo "${ECHO_T}$cross_gas" >&6
12520 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12521 # for constant arguments. Useless!
12522 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12523 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12524 if test "${ac_cv_working_alloca_h+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <alloca.h>
12535 main ()
12537 char *p = (char *) alloca (2 * sizeof (int));
12539 return 0;
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_working_alloca_h=yes
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_working_alloca_h=no
12571 rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12574 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12575 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12576 if test $ac_cv_working_alloca_h = yes; then
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_ALLOCA_H 1
12580 _ACEOF
12584 echo "$as_me:$LINENO: checking for alloca" >&5
12585 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12586 if test "${ac_cv_func_alloca_works+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #ifdef __GNUC__
12596 # define alloca __builtin_alloca
12597 #else
12598 # ifdef _MSC_VER
12599 # include <malloc.h>
12600 # define alloca _alloca
12601 # else
12602 # if HAVE_ALLOCA_H
12603 # include <alloca.h>
12604 # else
12605 # ifdef _AIX
12606 #pragma alloca
12607 # else
12608 # ifndef alloca /* predefined by HP cc +Olibcalls */
12609 char *alloca ();
12610 # endif
12611 # endif
12612 # endif
12613 # endif
12614 #endif
12617 main ()
12619 char *p = (char *) alloca (1);
12621 return 0;
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_func_alloca_works=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_func_alloca_works=no
12653 rm -f conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12656 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12657 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12659 if test $ac_cv_func_alloca_works = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_ALLOCA 1
12663 _ACEOF
12665 else
12666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12667 # that cause trouble. Some versions do not even contain alloca or
12668 # contain a buggy version. If you still want to use their alloca,
12669 # use ar to extract alloca.o from them instead of compiling alloca.c.
12671 ALLOCA=alloca.$ac_objext
12673 cat >>confdefs.h <<\_ACEOF
12674 #define C_ALLOCA 1
12675 _ACEOF
12678 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12679 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12680 if test "${ac_cv_os_cray+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 #if defined(CRAY) && ! defined(CRAY2)
12690 webecray
12691 #else
12692 wenotbecray
12693 #endif
12695 _ACEOF
12696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12697 $EGREP "webecray" >/dev/null 2>&1; then
12698 ac_cv_os_cray=yes
12699 else
12700 ac_cv_os_cray=no
12702 rm -f conftest*
12705 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12706 echo "${ECHO_T}$ac_cv_os_cray" >&6
12707 if test $ac_cv_os_cray = yes; then
12708 for ac_func in _getb67 GETB67 getb67; do
12709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 echo "$as_me:$LINENO: checking for $ac_func" >&5
12711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12712 if eval "test \"\${$as_ac_var+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723 #define $ac_func innocuous_$ac_func
12725 /* System header to define __stub macros and hopefully few prototypes,
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12730 #ifdef __STDC__
12731 # include <limits.h>
12732 #else
12733 # include <assert.h>
12734 #endif
12736 #undef $ac_func
12738 /* Override any gcc2 internal prototype to avoid an error. */
12739 #ifdef __cplusplus
12740 extern "C"
12742 #endif
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12745 char $ac_func ();
12746 /* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12750 choke me
12751 #else
12752 char (*f) () = $ac_func;
12753 #endif
12754 #ifdef __cplusplus
12756 #endif
12759 main ()
12761 return f != $ac_func;
12763 return 0;
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 eval "$as_ac_var=no"
12795 rm -f conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800 if test `eval echo '${'$as_ac_var'}'` = yes; then
12802 cat >>confdefs.h <<_ACEOF
12803 #define CRAY_STACKSEG_END $ac_func
12804 _ACEOF
12806 break
12809 done
12812 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12813 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12814 if test "${ac_cv_c_stack_direction+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 if test "$cross_compiling" = yes; then
12818 ac_cv_c_stack_direction=0
12819 else
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 find_stack_direction ()
12829 static char *addr = 0;
12830 auto char dummy;
12831 if (addr == 0)
12833 addr = &dummy;
12834 return find_stack_direction ();
12836 else
12837 return (&dummy > addr) ? 1 : -1;
12841 main ()
12843 exit (find_stack_direction () < 0);
12845 _ACEOF
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_c_stack_direction=1
12858 else
12859 echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ( exit $ac_status )
12864 ac_cv_c_stack_direction=-1
12866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12872 cat >>confdefs.h <<_ACEOF
12873 #define STACK_DIRECTION $ac_cv_c_stack_direction
12874 _ACEOF
12879 echo "$as_me:$LINENO: checking for inline" >&5
12880 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12881 if test "${ac_cv_c_inline+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 ac_cv_c_inline=no
12885 for ac_kw in inline __inline__ __inline; do
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 #ifndef __cplusplus
12893 typedef int foo_t;
12894 static $ac_kw foo_t static_foo () {return 0; }
12895 $ac_kw foo_t foo () {return 0; }
12896 #endif
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_c_inline=$ac_kw; break
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12928 done
12931 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12932 echo "${ECHO_T}$ac_cv_c_inline" >&6
12935 case $ac_cv_c_inline in
12936 inline | yes) ;;
12938 case $ac_cv_c_inline in
12939 no) ac_val=;;
12940 *) ac_val=$ac_cv_c_inline;;
12941 esac
12942 cat >>confdefs.h <<_ACEOF
12943 #ifndef __cplusplus
12944 #define inline $ac_val
12945 #endif
12946 _ACEOF
12948 esac
12951 # VMS doesn't have unlink.
12954 for ac_func in unlink remove
12956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12957 echo "$as_me:$LINENO: checking for $ac_func" >&5
12958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12959 if eval "test \"\${$as_ac_var+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12970 #define $ac_func innocuous_$ac_func
12972 /* System header to define __stub macros and hopefully few prototypes,
12973 which can conflict with char $ac_func (); below.
12974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 <limits.h> exists even on freestanding compilers. */
12977 #ifdef __STDC__
12978 # include <limits.h>
12979 #else
12980 # include <assert.h>
12981 #endif
12983 #undef $ac_func
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 #ifdef __cplusplus
12987 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char $ac_func ();
12993 /* The GNU C library defines this for functions which it implements
12994 to always fail with ENOSYS. Some functions are actually named
12995 something starting with __ and the normal name is an alias. */
12996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12997 choke me
12998 #else
12999 char (*f) () = $ac_func;
13000 #endif
13001 #ifdef __cplusplus
13003 #endif
13006 main ()
13008 return f != $ac_func;
13010 return 0;
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 eval "$as_ac_var=yes"
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 eval "$as_ac_var=no"
13042 rm -f conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 _ACEOF
13051 break
13053 done
13056 # Some systems don't have sbrk().
13058 for ac_func in sbrk
13060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061 echo "$as_me:$LINENO: checking for $ac_func" >&5
13062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13063 if eval "test \"\${$as_ac_var+set}\" = set"; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13074 #define $ac_func innocuous_$ac_func
13076 /* System header to define __stub macros and hopefully few prototypes,
13077 which can conflict with char $ac_func (); below.
13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079 <limits.h> exists even on freestanding compilers. */
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13087 #undef $ac_func
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 #ifdef __cplusplus
13091 extern "C"
13093 #endif
13094 /* We use char because int might match the return type of a gcc2
13095 builtin and then its argument prototype would still apply. */
13096 char $ac_func ();
13097 /* The GNU C library defines this for functions which it implements
13098 to always fail with ENOSYS. Some functions are actually named
13099 something starting with __ and the normal name is an alias. */
13100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13101 choke me
13102 #else
13103 char (*f) () = $ac_func;
13104 #endif
13105 #ifdef __cplusplus
13107 #endif
13110 main ()
13112 return f != $ac_func;
13114 return 0;
13116 _ACEOF
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13119 (eval $ac_link) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 eval "$as_ac_var=no"
13146 rm -f conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13151 if test `eval echo '${'$as_ac_var'}'` = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 _ACEOF
13157 done
13160 # do we need the math library?
13161 case "${need_libm}" in
13162 yes)
13163 LIBM=
13164 case $host in
13165 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13166 # These system don't have libm, or don't need it
13168 *-ncr-sysv4.3*)
13169 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13170 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13171 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174 ac_check_lib_save_LIBS=$LIBS
13175 LIBS="-lmw $LIBS"
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any gcc2 internal prototype to avoid an error. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 /* We use char because int might match the return type of a gcc2
13188 builtin and then its argument prototype would still apply. */
13189 char _mwvalidcheckl ();
13191 main ()
13193 _mwvalidcheckl ();
13195 return 0;
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200 (eval $ac_link) 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag"
13208 || test ! -s conftest.err'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_mw__mwvalidcheckl=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_cv_lib_mw__mwvalidcheckl=no
13227 rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13232 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13233 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
13234 LIBM="-lmw"
13237 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13238 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13239 if test "${ac_cv_lib_m_cos+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-lm $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any gcc2 internal prototype to avoid an error. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 /* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257 char cos ();
13259 main ()
13261 cos ();
13263 return 0;
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13288 ac_cv_lib_m_cos=yes
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_cv_lib_m_cos=no
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13300 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13301 if test $ac_cv_lib_m_cos = yes; then
13302 LIBM="$LIBM -lm"
13307 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13308 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13309 if test "${ac_cv_lib_m_cos+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-lm $LIBS"
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13321 /* Override any gcc2 internal prototype to avoid an error. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13327 char cos ();
13329 main ()
13331 cos ();
13333 return 0;
13335 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13338 (eval $ac_link) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -z "$ac_c_werror_flag"
13346 || test ! -s conftest.err'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_lib_m_cos=yes
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13363 ac_cv_lib_m_cos=no
13365 rm -f conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13370 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13371 if test $ac_cv_lib_m_cos = yes; then
13372 LIBM="-lm"
13376 esac
13381 esac
13383 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13384 # enough, but on some of those systems, the assert macro relies on requoting
13385 # working properly!
13386 echo "$as_me:$LINENO: checking for working assert macro" >&5
13387 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13388 if test "${gas_cv_assert_ok+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <assert.h>
13398 #include <stdio.h>
13400 main ()
13403 /* check for requoting problems */
13404 static int a, b, c, d;
13405 static char *s;
13406 assert (!strcmp(s, "foo bar baz quux"));
13407 /* check for newline handling */
13408 assert (a == b
13409 || c == d);
13412 return 0;
13414 _ACEOF
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417 (eval $ac_link) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag"
13425 || test ! -s conftest.err'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 gas_cv_assert_ok=yes
13438 else
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 gas_cv_assert_ok=no
13444 rm -f conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13447 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13448 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13449 test $gas_cv_assert_ok = yes ||
13450 cat >>confdefs.h <<\_ACEOF
13451 #define BROKEN_ASSERT 1
13452 _ACEOF
13456 # On some systems, the system header files may not declare malloc, realloc,
13457 # and free. There are places where gas needs these functions to have been
13458 # declared -- such as when taking their addresses.
13459 gas_test_headers="
13460 #ifdef HAVE_MEMORY_H
13461 #include <memory.h>
13462 #endif
13463 #ifdef HAVE_STRING_H
13464 #include <string.h>
13465 #else
13466 #ifdef HAVE_STRINGS_H
13467 #include <strings.h>
13468 #endif
13469 #endif
13470 #ifdef HAVE_STDLIB_H
13471 #include <stdlib.h>
13472 #endif
13473 #ifdef HAVE_UNISTD_H
13474 #include <unistd.h>
13475 #endif
13478 # Does errno.h declare errno, or do we have to add a separate declaration
13479 # for it?
13481 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13482 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13483 if test "${gas_cv_decl_needed_errno+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 #ifdef HAVE_ERRNO_H
13494 #include <errno.h>
13495 #endif
13498 main ()
13501 typedef int f;
13502 f x;
13503 x = (f) errno;
13506 return 0;
13508 _ACEOF
13509 rm -f conftest.$ac_objext conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 gas_cv_decl_needed_errno=no
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 gas_cv_decl_needed_errno=yes
13538 rm -f conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13541 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13542 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13543 if test $gas_cv_decl_needed_errno = yes; then
13545 cat >>confdefs.h <<\_ACEOF
13546 #define NEED_DECLARATION_ERRNO 1
13547 _ACEOF
13552 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13553 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13554 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 #include <unistd.h>
13565 main ()
13567 extern int getopt (int, char *const*, const char *);
13569 return 0;
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 gas_cv_decl_getopt_unistd_h=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 gas_cv_decl_getopt_unistd_h=no
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13605 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13606 if test $gas_cv_decl_getopt_unistd_h = yes; then
13608 cat >>confdefs.h <<\_ACEOF
13609 #define HAVE_DECL_GETOPT 1
13610 _ACEOF
13615 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13616 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13617 if test "${gas_cv_decl_needed_environ+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $gas_test_headers
13628 main ()
13631 typedef char **f;
13632 f x;
13633 x = (f) environ;
13636 return 0;
13638 _ACEOF
13639 rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 gas_cv_decl_needed_environ=no
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 gas_cv_decl_needed_environ=yes
13668 rm -f conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13671 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13672 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13673 if test $gas_cv_decl_needed_environ = yes; then
13675 cat >>confdefs.h <<\_ACEOF
13676 #define NEED_DECLARATION_ENVIRON 1
13677 _ACEOF
13682 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13683 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13684 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $gas_test_headers
13695 main ()
13698 typedef int (*f)(int);
13699 f x;
13700 x = (f) ffs;
13703 return 0;
13705 _ACEOF
13706 rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13708 (eval $ac_link) 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag"
13716 || test ! -s conftest.err'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest$ac_exeext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 gas_cv_decl_needed_ffs=no
13729 else
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 gas_cv_decl_needed_ffs=yes
13735 rm -f conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13739 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13740 if test $gas_cv_decl_needed_ffs = yes; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define NEED_DECLARATION_FFS 1
13744 _ACEOF
13749 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13750 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13751 if test "${gas_cv_decl_needed_free+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $gas_test_headers
13762 main ()
13765 typedef void (*f)();
13766 f x;
13767 x = (f) free;
13770 return 0;
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag"
13783 || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 gas_cv_decl_needed_free=no
13796 else
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 gas_cv_decl_needed_free=yes
13802 rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13805 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13806 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13807 if test $gas_cv_decl_needed_free = yes; then
13809 cat >>confdefs.h <<\_ACEOF
13810 #define NEED_DECLARATION_FREE 1
13811 _ACEOF
13816 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13817 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13818 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $gas_test_headers
13829 main ()
13832 typedef char *(*f)();
13833 f x;
13834 x = (f) malloc;
13837 return 0;
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 gas_cv_decl_needed_malloc=no
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 gas_cv_decl_needed_malloc=yes
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13873 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13874 if test $gas_cv_decl_needed_malloc = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define NEED_DECLARATION_MALLOC 1
13878 _ACEOF
13883 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13884 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13885 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $gas_test_headers
13896 main ()
13899 typedef char *(*f)();
13900 f x;
13901 x = (f) sbrk;
13904 return 0;
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 gas_cv_decl_needed_sbrk=no
13930 else
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13934 gas_cv_decl_needed_sbrk=yes
13936 rm -f conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13939 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13940 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13941 if test $gas_cv_decl_needed_sbrk = yes; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define NEED_DECLARATION_SBRK 1
13945 _ACEOF
13950 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13951 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13952 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 $gas_test_headers
13963 main ()
13966 typedef char *(*f)();
13967 f x;
13968 x = (f) strstr;
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 gas_cv_decl_needed_strstr=no
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 gas_cv_decl_needed_strstr=yes
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14007 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14008 if test $gas_cv_decl_needed_strstr = yes; then
14010 cat >>confdefs.h <<\_ACEOF
14011 #define NEED_DECLARATION_STRSTR 1
14012 _ACEOF
14017 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14018 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14019 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14030 main ()
14032 #ifndef vsnprintf
14033 char *p = (char *) vsnprintf;
14034 #endif
14037 return 0;
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_have_decl_vsnprintf=yes
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_have_decl_vsnprintf=no
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14072 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14073 if test $ac_cv_have_decl_vsnprintf = yes; then
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_DECL_VSNPRINTF 1
14077 _ACEOF
14080 else
14081 cat >>confdefs.h <<_ACEOF
14082 #define HAVE_DECL_VSNPRINTF 0
14083 _ACEOF
14091 case "${host}" in
14092 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14094 cat >>confdefs.h <<\_ACEOF
14095 #define USE_BINARY_FOPEN 1
14096 _ACEOF
14098 esac
14106 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14108 ac_config_commands="$ac_config_commands default"
14111 cat >confcache <<\_ACEOF
14112 # This file is a shell script that caches the results of configure
14113 # tests run on this system so they can be shared between configure
14114 # scripts and configure runs, see configure's option --config-cache.
14115 # It is not useful on other systems. If it contains results you don't
14116 # want to keep, you may remove or edit it.
14118 # config.status only pays attention to the cache file if you give it
14119 # the --recheck option to rerun configure.
14121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14123 # following values.
14125 _ACEOF
14127 # The following way of writing the cache mishandles newlines in values,
14128 # but we know of no workaround that is simple, portable, and efficient.
14129 # So, don't put newlines in cache variables' values.
14130 # Ultrix sh set writes to stderr and can't be redirected directly,
14131 # and sets the high bit in the cache file unless we assign to the vars.
14133 (set) 2>&1 |
14134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14135 *ac_space=\ *)
14136 # `set' does not quote correctly, so add quotes (double-quote
14137 # substitution turns \\\\ into \\, and sed turns \\ into \).
14138 sed -n \
14139 "s/'/'\\\\''/g;
14140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14143 # `set' quotes correctly as required by POSIX, so do not add quotes.
14144 sed -n \
14145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14147 esac;
14149 sed '
14150 t clear
14151 : clear
14152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14153 t end
14154 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14155 : end' >>confcache
14156 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14157 if test -w $cache_file; then
14158 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14159 cat confcache >$cache_file
14160 else
14161 echo "not updating unwritable cache $cache_file"
14164 rm -f confcache
14166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14167 # Let make expand exec_prefix.
14168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14172 # trailing colons and then remove the whole line if VPATH becomes empty
14173 # (actually we leave an empty line to preserve line numbers).
14174 if test "x$srcdir" = x.; then
14175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14176 s/:*\$(srcdir):*/:/;
14177 s/:*\${srcdir}:*/:/;
14178 s/:*@srcdir@:*/:/;
14179 s/^\([^=]*=[ ]*\):*/\1/;
14180 s/:*$//;
14181 s/^[^=]*=[ ]*$//;
14185 DEFS=-DHAVE_CONFIG_H
14187 ac_libobjs=
14188 ac_ltlibobjs=
14189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14190 # 1. Remove the extension, and $U if already installed.
14191 ac_i=`echo "$ac_i" |
14192 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14193 # 2. Add them.
14194 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14195 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14196 done
14197 LIBOBJS=$ac_libobjs
14199 LTLIBOBJS=$ac_ltlibobjs
14202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14203 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14204 Usually this means the macro was only invoked conditionally." >&5
14205 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14206 Usually this means the macro was only invoked conditionally." >&2;}
14207 { (exit 1); exit 1; }; }
14209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14210 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14211 Usually this means the macro was only invoked conditionally." >&5
14212 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14213 Usually this means the macro was only invoked conditionally." >&2;}
14214 { (exit 1); exit 1; }; }
14216 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14217 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14218 Usually this means the macro was only invoked conditionally." >&5
14219 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14220 Usually this means the macro was only invoked conditionally." >&2;}
14221 { (exit 1); exit 1; }; }
14223 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14224 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14225 Usually this means the macro was only invoked conditionally." >&5
14226 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14227 Usually this means the macro was only invoked conditionally." >&2;}
14228 { (exit 1); exit 1; }; }
14231 : ${CONFIG_STATUS=./config.status}
14232 ac_clean_files_save=$ac_clean_files
14233 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14234 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14235 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14236 cat >$CONFIG_STATUS <<_ACEOF
14237 #! $SHELL
14238 # Generated by $as_me.
14239 # Run this file to recreate the current configuration.
14240 # Compiler output produced by configure, useful for debugging
14241 # configure, is in config.log if it exists.
14243 debug=false
14244 ac_cs_recheck=false
14245 ac_cs_silent=false
14246 SHELL=\${CONFIG_SHELL-$SHELL}
14247 _ACEOF
14249 cat >>$CONFIG_STATUS <<\_ACEOF
14250 ## --------------------- ##
14251 ## M4sh Initialization. ##
14252 ## --------------------- ##
14254 # Be Bourne compatible
14255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14256 emulate sh
14257 NULLCMD=:
14258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14259 # is contrary to our usage. Disable this feature.
14260 alias -g '${1+"$@"}'='"$@"'
14261 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14262 set -o posix
14264 DUALCASE=1; export DUALCASE # for MKS sh
14266 # Support unset when possible.
14267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14268 as_unset=unset
14269 else
14270 as_unset=false
14274 # Work around bugs in pre-3.0 UWIN ksh.
14275 $as_unset ENV MAIL MAILPATH
14276 PS1='$ '
14277 PS2='> '
14278 PS4='+ '
14280 # NLS nuisances.
14281 for as_var in \
14282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14284 LC_TELEPHONE LC_TIME
14286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14287 eval $as_var=C; export $as_var
14288 else
14289 $as_unset $as_var
14291 done
14293 # Required to use basename.
14294 if expr a : '\(a\)' >/dev/null 2>&1; then
14295 as_expr=expr
14296 else
14297 as_expr=false
14300 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14301 as_basename=basename
14302 else
14303 as_basename=false
14307 # Name of the executable.
14308 as_me=`$as_basename "$0" ||
14309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14310 X"$0" : 'X\(//\)$' \| \
14311 X"$0" : 'X\(/\)$' \| \
14312 . : '\(.\)' 2>/dev/null ||
14313 echo X/"$0" |
14314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14315 /^X\/\(\/\/\)$/{ s//\1/; q; }
14316 /^X\/\(\/\).*/{ s//\1/; q; }
14317 s/.*/./; q'`
14320 # PATH needs CR, and LINENO needs CR and PATH.
14321 # Avoid depending upon Character Ranges.
14322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14325 as_cr_digits='0123456789'
14326 as_cr_alnum=$as_cr_Letters$as_cr_digits
14328 # The user is always right.
14329 if test "${PATH_SEPARATOR+set}" != set; then
14330 echo "#! /bin/sh" >conf$$.sh
14331 echo "exit 0" >>conf$$.sh
14332 chmod +x conf$$.sh
14333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14334 PATH_SEPARATOR=';'
14335 else
14336 PATH_SEPARATOR=:
14338 rm -f conf$$.sh
14342 as_lineno_1=$LINENO
14343 as_lineno_2=$LINENO
14344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14345 test "x$as_lineno_1" != "x$as_lineno_2" &&
14346 test "x$as_lineno_3" = "x$as_lineno_2" || {
14347 # Find who we are. Look in the path if we contain no path at all
14348 # relative or not.
14349 case $0 in
14350 *[\\/]* ) as_myself=$0 ;;
14351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14357 done
14360 esac
14361 # We did not find ourselves, most probably we were run as `sh COMMAND'
14362 # in which case we are not to be found in the path.
14363 if test "x$as_myself" = x; then
14364 as_myself=$0
14366 if test ! -f "$as_myself"; then
14367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14368 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14369 { (exit 1); exit 1; }; }
14371 case $CONFIG_SHELL in
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
14378 for as_base in sh bash ksh sh5; do
14379 case $as_dir in
14381 if ("$as_dir/$as_base" -c '
14382 as_lineno_1=$LINENO
14383 as_lineno_2=$LINENO
14384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14385 test "x$as_lineno_1" != "x$as_lineno_2" &&
14386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14389 CONFIG_SHELL=$as_dir/$as_base
14390 export CONFIG_SHELL
14391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14392 fi;;
14393 esac
14394 done
14395 done
14397 esac
14399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14400 # uniformly replaced by the line number. The first 'sed' inserts a
14401 # line-number line before each line; the second 'sed' does the real
14402 # work. The second script uses 'N' to pair each line-number line
14403 # with the numbered line, and appends trailing '-' during
14404 # substitution so that $LINENO is not a special case at line end.
14405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14407 sed '=' <$as_myself |
14408 sed '
14410 s,$,-,
14411 : loop
14412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14413 t loop
14414 s,-$,,
14415 s,^['$as_cr_digits']*\n,,
14416 ' >$as_me.lineno &&
14417 chmod +x $as_me.lineno ||
14418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14419 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14420 { (exit 1); exit 1; }; }
14422 # Don't try to exec as it changes $[0], causing all sort of problems
14423 # (the dirname of $[0] is not the place where we might find the
14424 # original and so on. Autoconf is especially sensible to this).
14425 . ./$as_me.lineno
14426 # Exit status is that of the last command.
14427 exit
14431 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14432 *c*,-n*) ECHO_N= ECHO_C='
14433 ' ECHO_T=' ' ;;
14434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14436 esac
14438 if expr a : '\(a\)' >/dev/null 2>&1; then
14439 as_expr=expr
14440 else
14441 as_expr=false
14444 rm -f conf$$ conf$$.exe conf$$.file
14445 echo >conf$$.file
14446 if ln -s conf$$.file conf$$ 2>/dev/null; then
14447 # We could just check for DJGPP; but this test a) works b) is more generic
14448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14449 if test -f conf$$.exe; then
14450 # Don't use ln at all; we don't have any links
14451 as_ln_s='cp -p'
14452 else
14453 as_ln_s='ln -s'
14455 elif ln conf$$.file conf$$ 2>/dev/null; then
14456 as_ln_s=ln
14457 else
14458 as_ln_s='cp -p'
14460 rm -f conf$$ conf$$.exe conf$$.file
14462 if mkdir -p . 2>/dev/null; then
14463 as_mkdir_p=:
14464 else
14465 test -d ./-p && rmdir ./-p
14466 as_mkdir_p=false
14469 as_executable_p="test -f"
14471 # Sed expression to map a string onto a valid CPP name.
14472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14474 # Sed expression to map a string onto a valid variable name.
14475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14478 # IFS
14479 # We need space, tab and new line, in precisely that order.
14480 as_nl='
14482 IFS=" $as_nl"
14484 # CDPATH.
14485 $as_unset CDPATH
14487 exec 6>&1
14489 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14490 # report actual input values of CONFIG_FILES etc. instead of their
14491 # values after options handling. Logging --version etc. is OK.
14492 exec 5>>config.log
14494 echo
14495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14496 ## Running $as_me. ##
14497 _ASBOX
14498 } >&5
14499 cat >&5 <<_CSEOF
14501 This file was extended by $as_me, which was
14502 generated by GNU Autoconf 2.59. Invocation command line was
14504 CONFIG_FILES = $CONFIG_FILES
14505 CONFIG_HEADERS = $CONFIG_HEADERS
14506 CONFIG_LINKS = $CONFIG_LINKS
14507 CONFIG_COMMANDS = $CONFIG_COMMANDS
14508 $ $0 $@
14510 _CSEOF
14511 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14512 echo >&5
14513 _ACEOF
14515 # Files that config.status was made for.
14516 if test -n "$ac_config_files"; then
14517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14520 if test -n "$ac_config_headers"; then
14521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14524 if test -n "$ac_config_links"; then
14525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14528 if test -n "$ac_config_commands"; then
14529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14532 cat >>$CONFIG_STATUS <<\_ACEOF
14534 ac_cs_usage="\
14535 \`$as_me' instantiates files from templates according to the
14536 current configuration.
14538 Usage: $0 [OPTIONS] [FILE]...
14540 -h, --help print this help, then exit
14541 -V, --version print version number, then exit
14542 -q, --quiet do not print progress messages
14543 -d, --debug don't remove temporary files
14544 --recheck update $as_me by reconfiguring in the same conditions
14545 --file=FILE[:TEMPLATE]
14546 instantiate the configuration file FILE
14547 --header=FILE[:TEMPLATE]
14548 instantiate the configuration header FILE
14550 Configuration files:
14551 $config_files
14553 Configuration headers:
14554 $config_headers
14556 Configuration commands:
14557 $config_commands
14559 Report bugs to <bug-autoconf@gnu.org>."
14560 _ACEOF
14562 cat >>$CONFIG_STATUS <<_ACEOF
14563 ac_cs_version="\\
14564 config.status
14565 configured by $0, generated by GNU Autoconf 2.59,
14566 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14568 Copyright (C) 2003 Free Software Foundation, Inc.
14569 This config.status script is free software; the Free Software Foundation
14570 gives unlimited permission to copy, distribute and modify it."
14571 srcdir=$srcdir
14572 INSTALL="$INSTALL"
14573 _ACEOF
14575 cat >>$CONFIG_STATUS <<\_ACEOF
14576 # If no file are specified by the user, then we need to provide default
14577 # value. By we need to know if files were specified by the user.
14578 ac_need_defaults=:
14579 while test $# != 0
14581 case $1 in
14582 --*=*)
14583 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14584 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14585 ac_shift=:
14588 ac_option=$1
14589 ac_optarg=$2
14590 ac_shift=shift
14592 *) # This is not an option, so the user has probably given explicit
14593 # arguments.
14594 ac_option=$1
14595 ac_need_defaults=false;;
14596 esac
14598 case $ac_option in
14599 # Handling of the options.
14600 _ACEOF
14601 cat >>$CONFIG_STATUS <<\_ACEOF
14602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14603 ac_cs_recheck=: ;;
14604 --version | --vers* | -V )
14605 echo "$ac_cs_version"; exit 0 ;;
14606 --he | --h)
14607 # Conflict between --help and --header
14608 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14609 Try \`$0 --help' for more information." >&5
14610 echo "$as_me: error: ambiguous option: $1
14611 Try \`$0 --help' for more information." >&2;}
14612 { (exit 1); exit 1; }; };;
14613 --help | --hel | -h )
14614 echo "$ac_cs_usage"; exit 0 ;;
14615 --debug | --d* | -d )
14616 debug=: ;;
14617 --file | --fil | --fi | --f )
14618 $ac_shift
14619 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14620 ac_need_defaults=false;;
14621 --header | --heade | --head | --hea )
14622 $ac_shift
14623 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14624 ac_need_defaults=false;;
14625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14627 ac_cs_silent=: ;;
14629 # This is an error.
14630 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14631 Try \`$0 --help' for more information." >&5
14632 echo "$as_me: error: unrecognized option: $1
14633 Try \`$0 --help' for more information." >&2;}
14634 { (exit 1); exit 1; }; } ;;
14636 *) ac_config_targets="$ac_config_targets $1" ;;
14638 esac
14639 shift
14640 done
14642 ac_configure_extra_args=
14644 if $ac_cs_silent; then
14645 exec 6>/dev/null
14646 ac_configure_extra_args="$ac_configure_extra_args --silent"
14649 _ACEOF
14650 cat >>$CONFIG_STATUS <<_ACEOF
14651 if \$ac_cs_recheck; then
14652 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14653 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14656 _ACEOF
14658 cat >>$CONFIG_STATUS <<_ACEOF
14660 # INIT-COMMANDS section.
14663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14666 # The HP-UX ksh and POSIX shell print the target directory to stdout
14667 # if CDPATH is set.
14668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14670 sed_quote_subst='$sed_quote_subst'
14671 double_quote_subst='$double_quote_subst'
14672 delay_variable_subst='$delay_variable_subst'
14673 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14674 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14675 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14676 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14677 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14678 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14679 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14680 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14681 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14682 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14683 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14684 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14685 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14686 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14687 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14688 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14690 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14691 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14692 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14693 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14694 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14695 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14696 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14697 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14698 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14699 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14700 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14701 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14702 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14703 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14704 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14705 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14706 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14707 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14710 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14711 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14712 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14713 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14714 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14716 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"`'
14717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14727 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14728 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14730 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14731 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14732 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14734 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14735 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14741 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14742 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14744 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14745 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14746 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14747 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14748 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14749 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14750 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14751 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14752 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14753 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14754 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14755 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14756 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14757 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14759 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14760 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14761 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14762 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14763 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14764 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14765 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14767 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14768 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14771 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14774 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14775 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14776 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14778 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14779 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14780 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14781 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14782 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14783 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14785 LTCC='$LTCC'
14786 LTCFLAGS='$LTCFLAGS'
14787 compiler='$compiler_DEFAULT'
14789 # Quote evaled strings.
14790 for var in SED \
14791 GREP \
14792 EGREP \
14793 FGREP \
14794 LD \
14795 NM \
14796 LN_S \
14797 lt_SP2NL \
14798 lt_NL2SP \
14799 reload_flag \
14800 deplibs_check_method \
14801 file_magic_cmd \
14802 AR \
14803 AR_FLAGS \
14804 STRIP \
14805 RANLIB \
14806 CC \
14807 CFLAGS \
14808 compiler \
14809 lt_cv_sys_global_symbol_pipe \
14810 lt_cv_sys_global_symbol_to_cdecl \
14811 lt_cv_sys_global_symbol_to_c_name_address \
14812 SHELL \
14813 ECHO \
14814 lt_prog_compiler_no_builtin_flag \
14815 lt_prog_compiler_wl \
14816 lt_prog_compiler_pic \
14817 lt_prog_compiler_static \
14818 lt_cv_prog_compiler_c_o \
14819 need_locks \
14820 shrext_cmds \
14821 export_dynamic_flag_spec \
14822 whole_archive_flag_spec \
14823 compiler_needs_object \
14824 with_gnu_ld \
14825 allow_undefined_flag \
14826 no_undefined_flag \
14827 hardcode_libdir_flag_spec \
14828 hardcode_libdir_flag_spec_ld \
14829 hardcode_libdir_separator \
14830 fix_srcfile_path \
14831 exclude_expsyms \
14832 include_expsyms \
14833 file_list_spec \
14834 variables_saved_for_relink \
14835 libname_spec \
14836 library_names_spec \
14837 soname_spec \
14838 finish_eval \
14839 old_striplib \
14840 striplib; do
14841 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14842 *[\\\\\\\`\\"\\\$]*)
14843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14848 esac
14849 done
14851 # Double-quote double-evaled strings.
14852 for var in reload_cmds \
14853 old_postinstall_cmds \
14854 old_postuninstall_cmds \
14855 old_archive_cmds \
14856 extract_expsyms_cmds \
14857 old_archive_from_new_cmds \
14858 old_archive_from_expsyms_cmds \
14859 archive_cmds \
14860 archive_expsym_cmds \
14861 module_cmds \
14862 module_expsym_cmds \
14863 export_symbols_cmds \
14864 prelink_cmds \
14865 postinstall_cmds \
14866 postuninstall_cmds \
14867 finish_cmds \
14868 sys_lib_search_path_spec \
14869 sys_lib_dlsearch_path_spec; do
14870 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14871 *[\\\\\\\`\\"\\\$]*)
14872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14877 esac
14878 done
14880 # Fix-up fallback echo if it was mangled by the above quoting rules.
14881 case \$lt_ECHO in
14882 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14884 esac
14886 ac_aux_dir='$ac_aux_dir'
14887 xsi_shell='$xsi_shell'
14888 lt_shell_append='$lt_shell_append'
14890 # See if we are running on zsh, and set the options which allow our
14891 # commands through without removal of \ escapes INIT.
14892 if test -n "\${ZSH_VERSION+set}" ; then
14893 setopt NO_GLOB_SUBST
14897 PACKAGE='$PACKAGE'
14898 VERSION='$VERSION'
14899 TIMESTAMP='$TIMESTAMP'
14900 RM='$RM'
14901 ofile='$ofile'
14905 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14906 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14907 # from automake.
14908 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14909 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14910 LINGUAS="${LINGUAS-%UNSET%}"
14912 target_cpu_type=${target_cpu_type}
14913 cgen_cpu_prefix=${cgen_cpu_prefix}
14914 obj_format=${obj_format}
14915 te_file=${te_file}
14917 _ACEOF
14921 cat >>$CONFIG_STATUS <<\_ACEOF
14922 for ac_config_target in $ac_config_targets
14924 case "$ac_config_target" in
14925 # Handling of arguments.
14926 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14927 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14928 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14929 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14930 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14931 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14932 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14933 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14934 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14935 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14938 { (exit 1); exit 1; }; };;
14939 esac
14940 done
14942 # If the user did not use the arguments to specify the items to instantiate,
14943 # then the envvar interface is used. Set only those that are not.
14944 # We use the long form for the default assignment because of an extremely
14945 # bizarre bug on SunOS 4.1.3.
14946 if $ac_need_defaults; then
14947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14952 # Have a temporary directory for convenience. Make it in the build tree
14953 # simply because there is no reason to put it here, and in addition,
14954 # creating and moving files from /tmp can sometimes cause problems.
14955 # Create a temporary directory, and hook for its removal unless debugging.
14956 $debug ||
14958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14959 trap '{ (exit 1); exit 1; }' 1 2 13 15
14962 # Create a (secure) tmp directory for tmp files.
14965 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14966 test -n "$tmp" && test -d "$tmp"
14967 } ||
14969 tmp=./confstat$$-$RANDOM
14970 (umask 077 && mkdir $tmp)
14971 } ||
14973 echo "$me: cannot create a temporary directory in ." >&2
14974 { (exit 1); exit 1; }
14977 _ACEOF
14979 cat >>$CONFIG_STATUS <<_ACEOF
14982 # CONFIG_FILES section.
14985 # No need to generate the scripts if there are no CONFIG_FILES.
14986 # This happens for instance when ./config.status config.h
14987 if test -n "\$CONFIG_FILES"; then
14988 # Protect against being on the right side of a sed subst in config.status.
14989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14991 s,@SHELL@,$SHELL,;t t
14992 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14993 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14994 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14995 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14996 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14997 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14998 s,@exec_prefix@,$exec_prefix,;t t
14999 s,@prefix@,$prefix,;t t
15000 s,@program_transform_name@,$program_transform_name,;t t
15001 s,@bindir@,$bindir,;t t
15002 s,@sbindir@,$sbindir,;t t
15003 s,@libexecdir@,$libexecdir,;t t
15004 s,@datadir@,$datadir,;t t
15005 s,@sysconfdir@,$sysconfdir,;t t
15006 s,@sharedstatedir@,$sharedstatedir,;t t
15007 s,@localstatedir@,$localstatedir,;t t
15008 s,@libdir@,$libdir,;t t
15009 s,@includedir@,$includedir,;t t
15010 s,@oldincludedir@,$oldincludedir,;t t
15011 s,@infodir@,$infodir,;t t
15012 s,@mandir@,$mandir,;t t
15013 s,@build_alias@,$build_alias,;t t
15014 s,@host_alias@,$host_alias,;t t
15015 s,@target_alias@,$target_alias,;t t
15016 s,@DEFS@,$DEFS,;t t
15017 s,@ECHO_C@,$ECHO_C,;t t
15018 s,@ECHO_N@,$ECHO_N,;t t
15019 s,@ECHO_T@,$ECHO_T,;t t
15020 s,@LIBS@,$LIBS,;t t
15021 s,@build@,$build,;t t
15022 s,@build_cpu@,$build_cpu,;t t
15023 s,@build_vendor@,$build_vendor,;t t
15024 s,@build_os@,$build_os,;t t
15025 s,@host@,$host,;t t
15026 s,@host_cpu@,$host_cpu,;t t
15027 s,@host_vendor@,$host_vendor,;t t
15028 s,@host_os@,$host_os,;t t
15029 s,@target@,$target,;t t
15030 s,@target_cpu@,$target_cpu,;t t
15031 s,@target_vendor@,$target_vendor,;t t
15032 s,@target_os@,$target_os,;t t
15033 s,@CC@,$CC,;t t
15034 s,@CFLAGS@,$CFLAGS,;t t
15035 s,@LDFLAGS@,$LDFLAGS,;t t
15036 s,@CPPFLAGS@,$CPPFLAGS,;t t
15037 s,@ac_ct_CC@,$ac_ct_CC,;t t
15038 s,@EXEEXT@,$EXEEXT,;t t
15039 s,@OBJEXT@,$OBJEXT,;t t
15040 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15041 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15042 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15043 s,@CYGPATH_W@,$CYGPATH_W,;t t
15044 s,@PACKAGE@,$PACKAGE,;t t
15045 s,@VERSION@,$VERSION,;t t
15046 s,@ACLOCAL@,$ACLOCAL,;t t
15047 s,@AUTOCONF@,$AUTOCONF,;t t
15048 s,@AUTOMAKE@,$AUTOMAKE,;t t
15049 s,@AUTOHEADER@,$AUTOHEADER,;t t
15050 s,@MAKEINFO@,$MAKEINFO,;t t
15051 s,@install_sh@,$install_sh,;t t
15052 s,@STRIP@,$STRIP,;t t
15053 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15054 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15055 s,@mkdir_p@,$mkdir_p,;t t
15056 s,@AWK@,$AWK,;t t
15057 s,@SET_MAKE@,$SET_MAKE,;t t
15058 s,@am__leading_dot@,$am__leading_dot,;t t
15059 s,@AMTAR@,$AMTAR,;t t
15060 s,@am__tar@,$am__tar,;t t
15061 s,@am__untar@,$am__untar,;t t
15062 s,@DEPDIR@,$DEPDIR,;t t
15063 s,@am__include@,$am__include,;t t
15064 s,@am__quote@,$am__quote,;t t
15065 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15066 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15067 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15068 s,@CCDEPMODE@,$CCDEPMODE,;t t
15069 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15070 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15071 s,@CPP@,$CPP,;t t
15072 s,@EGREP@,$EGREP,;t t
15073 s,@LIBTOOL@,$LIBTOOL,;t t
15074 s,@SED@,$SED,;t t
15075 s,@FGREP@,$FGREP,;t t
15076 s,@GREP@,$GREP,;t t
15077 s,@LD@,$LD,;t t
15078 s,@DUMPBIN@,$DUMPBIN,;t t
15079 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15080 s,@NM@,$NM,;t t
15081 s,@LN_S@,$LN_S,;t t
15082 s,@AR@,$AR,;t t
15083 s,@ac_ct_AR@,$ac_ct_AR,;t t
15084 s,@RANLIB@,$RANLIB,;t t
15085 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15086 s,@lt_ECHO@,$lt_ECHO,;t t
15087 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15088 s,@NO_WERROR@,$NO_WERROR,;t t
15089 s,@GDBINIT@,$GDBINIT,;t t
15090 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15091 s,@extra_objects@,$extra_objects,;t t
15092 s,@target_cpu_type@,$target_cpu_type,;t t
15093 s,@obj_format@,$obj_format,;t t
15094 s,@te_file@,$te_file,;t t
15095 s,@install_tooldir@,$install_tooldir,;t t
15096 s,@atof@,$atof,;t t
15097 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
15098 s,@YACC@,$YACC,;t t
15099 s,@LEX@,$LEX,;t t
15100 s,@LEXLIB@,$LEXLIB,;t t
15101 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15102 s,@USE_NLS@,$USE_NLS,;t t
15103 s,@LIBINTL@,$LIBINTL,;t t
15104 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15105 s,@INCINTL@,$INCINTL,;t t
15106 s,@XGETTEXT@,$XGETTEXT,;t t
15107 s,@GMSGFMT@,$GMSGFMT,;t t
15108 s,@POSUB@,$POSUB,;t t
15109 s,@CATALOGS@,$CATALOGS,;t t
15110 s,@DATADIRNAME@,$DATADIRNAME,;t t
15111 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15112 s,@GENCAT@,$GENCAT,;t t
15113 s,@CATOBJEXT@,$CATOBJEXT,;t t
15114 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15115 s,@MSGFMT@,$MSGFMT,;t t
15116 s,@MSGMERGE@,$MSGMERGE,;t t
15117 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15118 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15119 s,@MAINT@,$MAINT,;t t
15120 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15121 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15122 s,@ALLOCA@,$ALLOCA,;t t
15123 s,@LIBM@,$LIBM,;t t
15124 s,@datarootdir@,$datarootdir,;t t
15125 s,@docdir@,$docdir,;t t
15126 s,@htmldir@,$htmldir,;t t
15127 s,@LIBOBJS@,$LIBOBJS,;t t
15128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15129 CEOF
15131 _ACEOF
15133 cat >>$CONFIG_STATUS <<\_ACEOF
15134 # Split the substitutions into bite-sized pieces for seds with
15135 # small command number limits, like on Digital OSF/1 and HP-UX.
15136 ac_max_sed_lines=48
15137 ac_sed_frag=1 # Number of current file.
15138 ac_beg=1 # First line for current file.
15139 ac_end=$ac_max_sed_lines # Line after last line for current file.
15140 ac_more_lines=:
15141 ac_sed_cmds=
15142 while $ac_more_lines; do
15143 if test $ac_beg -gt 1; then
15144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15145 else
15146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15148 if test ! -s $tmp/subs.frag; then
15149 ac_more_lines=false
15150 else
15151 # The purpose of the label and of the branching condition is to
15152 # speed up the sed processing (if there are no `@' at all, there
15153 # is no need to browse any of the substitutions).
15154 # These are the two extra sed commands mentioned above.
15155 (echo ':t
15156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15157 if test -z "$ac_sed_cmds"; then
15158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15159 else
15160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15162 ac_sed_frag=`expr $ac_sed_frag + 1`
15163 ac_beg=$ac_end
15164 ac_end=`expr $ac_end + $ac_max_sed_lines`
15166 done
15167 if test -z "$ac_sed_cmds"; then
15168 ac_sed_cmds=cat
15170 fi # test -n "$CONFIG_FILES"
15172 _ACEOF
15173 cat >>$CONFIG_STATUS <<\_ACEOF
15174 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15176 case $ac_file in
15177 - | *:- | *:-:* ) # input from stdin
15178 cat >$tmp/stdin
15179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15183 * ) ac_file_in=$ac_file.in ;;
15184 esac
15186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15189 X"$ac_file" : 'X\(//\)[^/]' \| \
15190 X"$ac_file" : 'X\(//\)$' \| \
15191 X"$ac_file" : 'X\(/\)' \| \
15192 . : '\(.\)' 2>/dev/null ||
15193 echo X"$ac_file" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15196 /^X\(\/\/\)$/{ s//\1/; q; }
15197 /^X\(\/\).*/{ s//\1/; q; }
15198 s/.*/./; q'`
15199 { if $as_mkdir_p; then
15200 mkdir -p "$ac_dir"
15201 else
15202 as_dir="$ac_dir"
15203 as_dirs=
15204 while test ! -d "$as_dir"; do
15205 as_dirs="$as_dir $as_dirs"
15206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15208 X"$as_dir" : 'X\(//\)[^/]' \| \
15209 X"$as_dir" : 'X\(//\)$' \| \
15210 X"$as_dir" : 'X\(/\)' \| \
15211 . : '\(.\)' 2>/dev/null ||
15212 echo X"$as_dir" |
15213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15215 /^X\(\/\/\)$/{ s//\1/; q; }
15216 /^X\(\/\).*/{ s//\1/; q; }
15217 s/.*/./; q'`
15218 done
15219 test ! -n "$as_dirs" || mkdir $as_dirs
15220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15222 { (exit 1); exit 1; }; }; }
15224 ac_builddir=.
15226 if test "$ac_dir" != .; then
15227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15228 # A "../" for each directory in $ac_dir_suffix.
15229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15230 else
15231 ac_dir_suffix= ac_top_builddir=
15234 case $srcdir in
15235 .) # No --srcdir option. We are building in place.
15236 ac_srcdir=.
15237 if test -z "$ac_top_builddir"; then
15238 ac_top_srcdir=.
15239 else
15240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15241 fi ;;
15242 [\\/]* | ?:[\\/]* ) # Absolute path.
15243 ac_srcdir=$srcdir$ac_dir_suffix;
15244 ac_top_srcdir=$srcdir ;;
15245 *) # Relative path.
15246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15248 esac
15250 # Do not use `cd foo && pwd` to compute absolute paths, because
15251 # the directories may not exist.
15252 case `pwd` in
15253 .) ac_abs_builddir="$ac_dir";;
15255 case "$ac_dir" in
15256 .) ac_abs_builddir=`pwd`;;
15257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15259 esac;;
15260 esac
15261 case $ac_abs_builddir in
15262 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15264 case ${ac_top_builddir}. in
15265 .) ac_abs_top_builddir=$ac_abs_builddir;;
15266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15268 esac;;
15269 esac
15270 case $ac_abs_builddir in
15271 .) ac_abs_srcdir=$ac_srcdir;;
15273 case $ac_srcdir in
15274 .) ac_abs_srcdir=$ac_abs_builddir;;
15275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15277 esac;;
15278 esac
15279 case $ac_abs_builddir in
15280 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15282 case $ac_top_srcdir in
15283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15286 esac;;
15287 esac
15290 case $INSTALL in
15291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15293 esac
15295 if test x"$ac_file" != x-; then
15296 { echo "$as_me:$LINENO: creating $ac_file" >&5
15297 echo "$as_me: creating $ac_file" >&6;}
15298 rm -f "$ac_file"
15300 # Let's still pretend it is `configure' which instantiates (i.e., don't
15301 # use $as_me), people would be surprised to read:
15302 # /* config.h. Generated by config.status. */
15303 if test x"$ac_file" = x-; then
15304 configure_input=
15305 else
15306 configure_input="$ac_file. "
15308 configure_input=$configure_input"Generated from `echo $ac_file_in |
15309 sed 's,.*/,,'` by configure."
15311 # First look for the input files in the build tree, otherwise in the
15312 # src tree.
15313 ac_file_inputs=`IFS=:
15314 for f in $ac_file_in; do
15315 case $f in
15316 -) echo $tmp/stdin ;;
15317 [\\/$]*)
15318 # Absolute (can't be DOS-style, as IFS=:)
15319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15320 echo "$as_me: error: cannot find input file: $f" >&2;}
15321 { (exit 1); exit 1; }; }
15322 echo "$f";;
15323 *) # Relative
15324 if test -f "$f"; then
15325 # Build tree
15326 echo "$f"
15327 elif test -f "$srcdir/$f"; then
15328 # Source tree
15329 echo "$srcdir/$f"
15330 else
15331 # /dev/null tree
15332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15333 echo "$as_me: error: cannot find input file: $f" >&2;}
15334 { (exit 1); exit 1; }; }
15335 fi;;
15336 esac
15337 done` || { (exit 1); exit 1; }
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<_ACEOF
15340 sed "$ac_vpsub
15341 $extrasub
15342 _ACEOF
15343 cat >>$CONFIG_STATUS <<\_ACEOF
15345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15346 s,@configure_input@,$configure_input,;t t
15347 s,@srcdir@,$ac_srcdir,;t t
15348 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15349 s,@top_srcdir@,$ac_top_srcdir,;t t
15350 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15351 s,@builddir@,$ac_builddir,;t t
15352 s,@abs_builddir@,$ac_abs_builddir,;t t
15353 s,@top_builddir@,$ac_top_builddir,;t t
15354 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15355 s,@INSTALL@,$ac_INSTALL,;t t
15356 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15357 rm -f $tmp/stdin
15358 if test x"$ac_file" != x-; then
15359 mv $tmp/out $ac_file
15360 else
15361 cat $tmp/out
15362 rm -f $tmp/out
15365 done
15366 _ACEOF
15367 cat >>$CONFIG_STATUS <<\_ACEOF
15370 # CONFIG_HEADER section.
15373 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15374 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15376 # ac_d sets the value in "#define NAME VALUE" lines.
15377 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15378 ac_dB='[ ].*$,\1#\2'
15379 ac_dC=' '
15380 ac_dD=',;t'
15381 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15382 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15383 ac_uB='$,\1#\2define\3'
15384 ac_uC=' '
15385 ac_uD=',;t'
15387 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15389 case $ac_file in
15390 - | *:- | *:-:* ) # input from stdin
15391 cat >$tmp/stdin
15392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15396 * ) ac_file_in=$ac_file.in ;;
15397 esac
15399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15400 echo "$as_me: creating $ac_file" >&6;}
15402 # First look for the input files in the build tree, otherwise in the
15403 # src tree.
15404 ac_file_inputs=`IFS=:
15405 for f in $ac_file_in; do
15406 case $f in
15407 -) echo $tmp/stdin ;;
15408 [\\/$]*)
15409 # Absolute (can't be DOS-style, as IFS=:)
15410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15411 echo "$as_me: error: cannot find input file: $f" >&2;}
15412 { (exit 1); exit 1; }; }
15413 # Do quote $f, to prevent DOS paths from being IFS'd.
15414 echo "$f";;
15415 *) # Relative
15416 if test -f "$f"; then
15417 # Build tree
15418 echo "$f"
15419 elif test -f "$srcdir/$f"; then
15420 # Source tree
15421 echo "$srcdir/$f"
15422 else
15423 # /dev/null tree
15424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15425 echo "$as_me: error: cannot find input file: $f" >&2;}
15426 { (exit 1); exit 1; }; }
15427 fi;;
15428 esac
15429 done` || { (exit 1); exit 1; }
15430 # Remove the trailing spaces.
15431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15433 _ACEOF
15435 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15436 # `conftest.undefs', that substitutes the proper values into
15437 # config.h.in to produce config.h. The first handles `#define'
15438 # templates, and the second `#undef' templates.
15439 # And first: Protect against being on the right side of a sed subst in
15440 # config.status. Protect against being in an unquoted here document
15441 # in config.status.
15442 rm -f conftest.defines conftest.undefs
15443 # Using a here document instead of a string reduces the quoting nightmare.
15444 # Putting comments in sed scripts is not portable.
15446 # `end' is used to avoid that the second main sed command (meant for
15447 # 0-ary CPP macros) applies to n-ary macro definitions.
15448 # See the Autoconf documentation for `clear'.
15449 cat >confdef2sed.sed <<\_ACEOF
15450 s/[\\&,]/\\&/g
15451 s,[\\$`],\\&,g
15452 t clear
15453 : clear
15454 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15455 t end
15456 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15457 : end
15458 _ACEOF
15459 # If some macros were called several times there might be several times
15460 # the same #defines, which is useless. Nevertheless, we may not want to
15461 # sort them, since we want the *last* AC-DEFINE to be honored.
15462 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15463 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15464 rm -f confdef2sed.sed
15466 # This sed command replaces #undef with comments. This is necessary, for
15467 # example, in the case of _POSIX_SOURCE, which is predefined and required
15468 # on some systems where configure will not decide to define it.
15469 cat >>conftest.undefs <<\_ACEOF
15470 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15471 _ACEOF
15473 # Break up conftest.defines because some shells have a limit on the size
15474 # of here documents, and old seds have small limits too (100 cmds).
15475 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15476 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15477 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15478 echo ' :' >>$CONFIG_STATUS
15479 rm -f conftest.tail
15480 while grep . conftest.defines >/dev/null
15482 # Write a limited-size here document to $tmp/defines.sed.
15483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15484 # Speed up: don't consider the non `#define' lines.
15485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15486 # Work around the forget-to-reset-the-flag bug.
15487 echo 't clr' >>$CONFIG_STATUS
15488 echo ': clr' >>$CONFIG_STATUS
15489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15490 echo 'CEOF
15491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15492 rm -f $tmp/in
15493 mv $tmp/out $tmp/in
15494 ' >>$CONFIG_STATUS
15495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15496 rm -f conftest.defines
15497 mv conftest.tail conftest.defines
15498 done
15499 rm -f conftest.defines
15500 echo ' fi # grep' >>$CONFIG_STATUS
15501 echo >>$CONFIG_STATUS
15503 # Break up conftest.undefs because some shells have a limit on the size
15504 # of here documents, and old seds have small limits too (100 cmds).
15505 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15506 rm -f conftest.tail
15507 while grep . conftest.undefs >/dev/null
15509 # Write a limited-size here document to $tmp/undefs.sed.
15510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15511 # Speed up: don't consider the non `#undef'
15512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15513 # Work around the forget-to-reset-the-flag bug.
15514 echo 't clr' >>$CONFIG_STATUS
15515 echo ': clr' >>$CONFIG_STATUS
15516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15517 echo 'CEOF
15518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15519 rm -f $tmp/in
15520 mv $tmp/out $tmp/in
15521 ' >>$CONFIG_STATUS
15522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15523 rm -f conftest.undefs
15524 mv conftest.tail conftest.undefs
15525 done
15526 rm -f conftest.undefs
15528 cat >>$CONFIG_STATUS <<\_ACEOF
15529 # Let's still pretend it is `configure' which instantiates (i.e., don't
15530 # use $as_me), people would be surprised to read:
15531 # /* config.h. Generated by config.status. */
15532 if test x"$ac_file" = x-; then
15533 echo "/* Generated by configure. */" >$tmp/config.h
15534 else
15535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15537 cat $tmp/in >>$tmp/config.h
15538 rm -f $tmp/in
15539 if test x"$ac_file" != x-; then
15540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15542 echo "$as_me: $ac_file is unchanged" >&6;}
15543 else
15544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15546 X"$ac_file" : 'X\(//\)[^/]' \| \
15547 X"$ac_file" : 'X\(//\)$' \| \
15548 X"$ac_file" : 'X\(/\)' \| \
15549 . : '\(.\)' 2>/dev/null ||
15550 echo X"$ac_file" |
15551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15553 /^X\(\/\/\)$/{ s//\1/; q; }
15554 /^X\(\/\).*/{ s//\1/; q; }
15555 s/.*/./; q'`
15556 { if $as_mkdir_p; then
15557 mkdir -p "$ac_dir"
15558 else
15559 as_dir="$ac_dir"
15560 as_dirs=
15561 while test ! -d "$as_dir"; do
15562 as_dirs="$as_dir $as_dirs"
15563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15565 X"$as_dir" : 'X\(//\)[^/]' \| \
15566 X"$as_dir" : 'X\(//\)$' \| \
15567 X"$as_dir" : 'X\(/\)' \| \
15568 . : '\(.\)' 2>/dev/null ||
15569 echo X"$as_dir" |
15570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15572 /^X\(\/\/\)$/{ s//\1/; q; }
15573 /^X\(\/\).*/{ s//\1/; q; }
15574 s/.*/./; q'`
15575 done
15576 test ! -n "$as_dirs" || mkdir $as_dirs
15577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15578 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15579 { (exit 1); exit 1; }; }; }
15581 rm -f $ac_file
15582 mv $tmp/config.h $ac_file
15584 else
15585 cat $tmp/config.h
15586 rm -f $tmp/config.h
15588 # Compute $ac_file's index in $config_headers.
15589 _am_stamp_count=1
15590 for _am_header in $config_headers :; do
15591 case $_am_header in
15592 $ac_file | $ac_file:* )
15593 break ;;
15595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15596 esac
15597 done
15598 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15599 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15600 X$ac_file : 'X\(//\)[^/]' \| \
15601 X$ac_file : 'X\(//\)$' \| \
15602 X$ac_file : 'X\(/\)' \| \
15603 . : '\(.\)' 2>/dev/null ||
15604 echo X$ac_file |
15605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15607 /^X\(\/\/\)$/{ s//\1/; q; }
15608 /^X\(\/\).*/{ s//\1/; q; }
15609 s/.*/./; q'`/stamp-h$_am_stamp_count
15610 done
15611 _ACEOF
15612 cat >>$CONFIG_STATUS <<\_ACEOF
15615 # CONFIG_COMMANDS section.
15617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15622 X"$ac_dest" : 'X\(//\)[^/]' \| \
15623 X"$ac_dest" : 'X\(//\)$' \| \
15624 X"$ac_dest" : 'X\(/\)' \| \
15625 . : '\(.\)' 2>/dev/null ||
15626 echo X"$ac_dest" |
15627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15629 /^X\(\/\/\)$/{ s//\1/; q; }
15630 /^X\(\/\).*/{ s//\1/; q; }
15631 s/.*/./; q'`
15632 { if $as_mkdir_p; then
15633 mkdir -p "$ac_dir"
15634 else
15635 as_dir="$ac_dir"
15636 as_dirs=
15637 while test ! -d "$as_dir"; do
15638 as_dirs="$as_dir $as_dirs"
15639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15641 X"$as_dir" : 'X\(//\)[^/]' \| \
15642 X"$as_dir" : 'X\(//\)$' \| \
15643 X"$as_dir" : 'X\(/\)' \| \
15644 . : '\(.\)' 2>/dev/null ||
15645 echo X"$as_dir" |
15646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15648 /^X\(\/\/\)$/{ s//\1/; q; }
15649 /^X\(\/\).*/{ s//\1/; q; }
15650 s/.*/./; q'`
15651 done
15652 test ! -n "$as_dirs" || mkdir $as_dirs
15653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15655 { (exit 1); exit 1; }; }; }
15657 ac_builddir=.
15659 if test "$ac_dir" != .; then
15660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15661 # A "../" for each directory in $ac_dir_suffix.
15662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15663 else
15664 ac_dir_suffix= ac_top_builddir=
15667 case $srcdir in
15668 .) # No --srcdir option. We are building in place.
15669 ac_srcdir=.
15670 if test -z "$ac_top_builddir"; then
15671 ac_top_srcdir=.
15672 else
15673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15674 fi ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute path.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir ;;
15678 *) # Relative path.
15679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15681 esac
15683 # Do not use `cd foo && pwd` to compute absolute paths, because
15684 # the directories may not exist.
15685 case `pwd` in
15686 .) ac_abs_builddir="$ac_dir";;
15688 case "$ac_dir" in
15689 .) ac_abs_builddir=`pwd`;;
15690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15692 esac;;
15693 esac
15694 case $ac_abs_builddir in
15695 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15697 case ${ac_top_builddir}. in
15698 .) ac_abs_top_builddir=$ac_abs_builddir;;
15699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15701 esac;;
15702 esac
15703 case $ac_abs_builddir in
15704 .) ac_abs_srcdir=$ac_srcdir;;
15706 case $ac_srcdir in
15707 .) ac_abs_srcdir=$ac_abs_builddir;;
15708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15710 esac;;
15711 esac
15712 case $ac_abs_builddir in
15713 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15715 case $ac_top_srcdir in
15716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15719 esac;;
15720 esac
15723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15724 echo "$as_me: executing $ac_dest commands" >&6;}
15725 case $ac_dest in
15726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15727 # Strip MF so we end up with the name of the file.
15728 mf=`echo "$mf" | sed -e 's/:.*$//'`
15729 # Check whether this is an Automake generated Makefile or not.
15730 # We used to match only the files named `Makefile.in', but
15731 # some people rename them; so instead we look at the file content.
15732 # Grep'ing the first line is not enough: some people post-process
15733 # each Makefile.in and add a new line on top of each file to say so.
15734 # So let's grep whole file.
15735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15736 dirpart=`(dirname "$mf") 2>/dev/null ||
15737 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15738 X"$mf" : 'X\(//\)[^/]' \| \
15739 X"$mf" : 'X\(//\)$' \| \
15740 X"$mf" : 'X\(/\)' \| \
15741 . : '\(.\)' 2>/dev/null ||
15742 echo X"$mf" |
15743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15745 /^X\(\/\/\)$/{ s//\1/; q; }
15746 /^X\(\/\).*/{ s//\1/; q; }
15747 s/.*/./; q'`
15748 else
15749 continue
15751 # Extract the definition of DEPDIR, am__include, and am__quote
15752 # from the Makefile without running `make'.
15753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15754 test -z "$DEPDIR" && continue
15755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15756 test -z "am__include" && continue
15757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15758 # When using ansi2knr, U may be empty or an underscore; expand it
15759 U=`sed -n 's/^U = //p' < "$mf"`
15760 # Find all dependency output files, they are included files with
15761 # $(DEPDIR) in their names. We invoke sed twice because it is the
15762 # simplest approach to changing $(DEPDIR) to its actual value in the
15763 # expansion.
15764 for file in `sed -n "
15765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15767 # Make sure the directory exists.
15768 test -f "$dirpart/$file" && continue
15769 fdir=`(dirname "$file") 2>/dev/null ||
15770 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15771 X"$file" : 'X\(//\)[^/]' \| \
15772 X"$file" : 'X\(//\)$' \| \
15773 X"$file" : 'X\(/\)' \| \
15774 . : '\(.\)' 2>/dev/null ||
15775 echo X"$file" |
15776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15778 /^X\(\/\/\)$/{ s//\1/; q; }
15779 /^X\(\/\).*/{ s//\1/; q; }
15780 s/.*/./; q'`
15781 { if $as_mkdir_p; then
15782 mkdir -p $dirpart/$fdir
15783 else
15784 as_dir=$dirpart/$fdir
15785 as_dirs=
15786 while test ! -d "$as_dir"; do
15787 as_dirs="$as_dir $as_dirs"
15788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15790 X"$as_dir" : 'X\(//\)[^/]' \| \
15791 X"$as_dir" : 'X\(//\)$' \| \
15792 X"$as_dir" : 'X\(/\)' \| \
15793 . : '\(.\)' 2>/dev/null ||
15794 echo X"$as_dir" |
15795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15797 /^X\(\/\/\)$/{ s//\1/; q; }
15798 /^X\(\/\).*/{ s//\1/; q; }
15799 s/.*/./; q'`
15800 done
15801 test ! -n "$as_dirs" || mkdir $as_dirs
15802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15803 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15804 { (exit 1); exit 1; }; }; }
15806 # echo "creating $dirpart/$file"
15807 echo '# dummy' > "$dirpart/$file"
15808 done
15809 done
15811 libtool )
15813 # See if we are running on zsh, and set the options which allow our
15814 # commands through without removal of \ escapes.
15815 if test -n "${ZSH_VERSION+set}" ; then
15816 setopt NO_GLOB_SUBST
15819 cfgfile="${ofile}T"
15820 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15821 $RM "$cfgfile"
15823 cat <<_LT_EOF >> "$cfgfile"
15824 #! $SHELL
15826 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15827 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15831 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15832 # 2006, 2007 Free Software Foundation, Inc.
15834 # This file is part of GNU Libtool:
15835 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15837 # This program is free software; you can redistribute it and/or modify
15838 # it under the terms of the GNU General Public License as published by
15839 # the Free Software Foundation; either version 2 of the License, or
15840 # (at your option) any later version.
15842 # This program is distributed in the hope that it will be useful, but
15843 # WITHOUT ANY WARRANTY; without even the implied warranty of
15844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15845 # General Public License for more details.
15847 # You should have received a copy of the GNU General Public License
15848 # along with this program; if not, a copy can be downloaded from
15849 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15850 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15851 # MA 02110-1301, USA.
15853 # As a special exception to the GNU General Public License, if you
15854 # distribute this file as part of a program that contains a
15855 # configuration script generated by Autoconf, you may include it under
15856 # the same distribution terms that you use for the rest of that program.
15859 # The names of the tagged configurations supported by this script.
15860 available_tags=""
15862 # ### BEGIN LIBTOOL CONFIG
15864 # Which release of libtool.m4 was used?
15865 macro_version=$macro_version
15866 macro_revision=$macro_revision
15868 # Whether or not to build shared libraries.
15869 build_libtool_libs=$enable_shared
15871 # Whether or not to build static libraries.
15872 build_old_libs=$enable_static
15874 # What type of objects to build.
15875 pic_mode=$pic_mode
15877 # Whether or not to optimize for fast installation.
15878 fast_install=$enable_fast_install
15880 # The host system.
15881 host_alias=$host_alias
15882 host=$host
15883 host_os=$host_os
15885 # The build system.
15886 build_alias=$build_alias
15887 build=$build
15888 build_os=$build_os
15890 # A sed program that does not truncate output.
15891 SED=$lt_SED
15893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15894 Xsed="\$SED -e 1s/^X//"
15896 # A grep program that handles long lines.
15897 GREP=$lt_GREP
15899 # An ERE matcher.
15900 EGREP=$lt_EGREP
15902 # A literal string matcher.
15903 FGREP=$lt_FGREP
15905 # A BSD- or MS-compatible name lister.
15906 NM=$lt_NM
15908 # Whether we need soft or hard links.
15909 LN_S=$lt_LN_S
15911 # What is the maximum length of a command?
15912 max_cmd_len=$max_cmd_len
15914 # Object file suffix (normally "o").
15915 objext=$ac_objext
15917 # Executable file suffix (normally "").
15918 exeext=$exeext
15920 # whether the shell understands "unset".
15921 lt_unset=$lt_unset
15923 # turn spaces into newlines.
15924 SP2NL=$lt_lt_SP2NL
15926 # turn newlines into spaces.
15927 NL2SP=$lt_lt_NL2SP
15929 # How to create reloadable object files.
15930 reload_flag=$lt_reload_flag
15931 reload_cmds=$lt_reload_cmds
15933 # Method to check whether dependent libraries are shared objects.
15934 deplibs_check_method=$lt_deplibs_check_method
15936 # Command to use when deplibs_check_method == "file_magic".
15937 file_magic_cmd=$lt_file_magic_cmd
15939 # The archiver.
15940 AR=$lt_AR
15941 AR_FLAGS=$lt_AR_FLAGS
15943 # A symbol stripping program.
15944 STRIP=$lt_STRIP
15946 # Commands used to install an old-style archive.
15947 RANLIB=$lt_RANLIB
15948 old_postinstall_cmds=$lt_old_postinstall_cmds
15949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15951 # A C compiler.
15952 LTCC=$lt_CC
15954 # LTCC compiler flags.
15955 LTCFLAGS=$lt_CFLAGS
15957 # Take the output of nm and produce a listing of raw symbols and C names.
15958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15960 # Transform the output of nm in a proper C declaration.
15961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15963 # Transform the output of nm in a C name address pair.
15964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15966 # The name of the directory that contains temporary libtool files.
15967 objdir=$objdir
15969 # Shell to use when invoking shell scripts.
15970 SHELL=$lt_SHELL
15972 # An echo program that does not interpret backslashes.
15973 ECHO=$lt_ECHO
15975 # Used to examine libraries when file_magic_cmd begins with "file".
15976 MAGIC_CMD=$MAGIC_CMD
15978 # Must we lock files when doing compilation?
15979 need_locks=$lt_need_locks
15981 # Old archive suffix (normally "a").
15982 libext=$libext
15984 # Shared library suffix (normally ".so").
15985 shrext_cmds=$lt_shrext_cmds
15987 # The commands to extract the exported symbol list from a shared archive.
15988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15990 # Variables whose values should be saved in libtool wrapper scripts and
15991 # restored at link time.
15992 variables_saved_for_relink=$lt_variables_saved_for_relink
15994 # Do we need the "lib" prefix for modules?
15995 need_lib_prefix=$need_lib_prefix
15997 # Do we need a version for libraries?
15998 need_version=$need_version
16000 # Library versioning type.
16001 version_type=$version_type
16003 # Shared library runtime path variable.
16004 runpath_var=$runpath_var
16006 # Shared library path variable.
16007 shlibpath_var=$shlibpath_var
16009 # Is shlibpath searched before the hard-coded library search path?
16010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16012 # Format of library name prefix.
16013 libname_spec=$lt_libname_spec
16015 # List of archive names. First name is the real one, the rest are links.
16016 # The last name is the one that the linker finds with -lNAME
16017 library_names_spec=$lt_library_names_spec
16019 # The coded name of the library, if different from the real name.
16020 soname_spec=$lt_soname_spec
16022 # Command to use after installation of a shared archive.
16023 postinstall_cmds=$lt_postinstall_cmds
16025 # Command to use after uninstallation of a shared archive.
16026 postuninstall_cmds=$lt_postuninstall_cmds
16028 # Commands used to finish a libtool library installation in a directory.
16029 finish_cmds=$lt_finish_cmds
16031 # As "finish_cmds", except a single script fragment to be evaled but
16032 # not shown.
16033 finish_eval=$lt_finish_eval
16035 # Whether we should hardcode library paths into libraries.
16036 hardcode_into_libs=$hardcode_into_libs
16038 # Compile-time system search path for libraries.
16039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16041 # Run-time system search path for libraries.
16042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16044 # Whether dlopen is supported.
16045 dlopen_support=$enable_dlopen
16047 # Whether dlopen of programs is supported.
16048 dlopen_self=$enable_dlopen_self
16050 # Whether dlopen of statically linked programs is supported.
16051 dlopen_self_static=$enable_dlopen_self_static
16053 # Commands to strip libraries.
16054 old_striplib=$lt_old_striplib
16055 striplib=$lt_striplib
16058 # The linker used to build libraries.
16059 LD=$lt_LD
16061 # Commands used to build an old-style archive.
16062 old_archive_cmds=$lt_old_archive_cmds
16064 # A language specific compiler.
16065 CC=$lt_compiler
16067 # Is the compiler the GNU compiler?
16068 with_gcc=$GCC
16070 # Compiler flag to turn off builtin functions.
16071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16073 # How to pass a linker flag through the compiler.
16074 wl=$lt_lt_prog_compiler_wl
16076 # Additional compiler flags for building library objects.
16077 pic_flag=$lt_lt_prog_compiler_pic
16079 # Compiler flag to prevent dynamic linking.
16080 link_static_flag=$lt_lt_prog_compiler_static
16082 # Does compiler simultaneously support -c and -o options?
16083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16085 # Whether or not to add -lc for building shared libraries.
16086 build_libtool_need_lc=$archive_cmds_need_lc
16088 # Whether or not to disallow shared libs when runtime libs are static.
16089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16091 # Compiler flag to allow reflexive dlopens.
16092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16094 # Compiler flag to generate shared objects directly from archives.
16095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16097 # Whether the compiler copes with passing no objects directly.
16098 compiler_needs_object=$lt_compiler_needs_object
16100 # Create an old-style archive from a shared archive.
16101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16103 # Create a temporary old-style archive to link instead of a shared archive.
16104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16106 # Commands used to build a shared archive.
16107 archive_cmds=$lt_archive_cmds
16108 archive_expsym_cmds=$lt_archive_expsym_cmds
16110 # Commands used to build a loadable module if different from building
16111 # a shared archive.
16112 module_cmds=$lt_module_cmds
16113 module_expsym_cmds=$lt_module_expsym_cmds
16115 # Whether we are building with GNU ld or not.
16116 with_gnu_ld=$lt_with_gnu_ld
16118 # Flag that allows shared libraries with undefined symbols to be built.
16119 allow_undefined_flag=$lt_allow_undefined_flag
16121 # Flag that enforces no undefined symbols.
16122 no_undefined_flag=$lt_no_undefined_flag
16124 # Flag to hardcode \$libdir into a binary during linking.
16125 # This must work even if \$libdir does not exist
16126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16128 # If ld is used when linking, flag to hardcode \$libdir into a binary
16129 # during linking. This must work even if \$libdir does not exist.
16130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16132 # Whether we need a single "-rpath" flag with a separated argument.
16133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16136 # DIR into the resulting binary.
16137 hardcode_direct=$hardcode_direct
16139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16140 # DIR into the resulting binary and the resulting library dependency is
16141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16142 # library is relocated.
16143 hardcode_direct_absolute=$hardcode_direct_absolute
16145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16146 # into the resulting binary.
16147 hardcode_minus_L=$hardcode_minus_L
16149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16150 # into the resulting binary.
16151 hardcode_shlibpath_var=$hardcode_shlibpath_var
16153 # Set to "yes" if building a shared library automatically hardcodes DIR
16154 # into the library and all subsequent libraries and executables linked
16155 # against it.
16156 hardcode_automatic=$hardcode_automatic
16158 # Set to yes if linker adds runtime paths of dependent libraries
16159 # to runtime path list.
16160 inherit_rpath=$inherit_rpath
16162 # Whether libtool must link a program against all its dependency libraries.
16163 link_all_deplibs=$link_all_deplibs
16165 # Fix the shell variable \$srcfile for the compiler.
16166 fix_srcfile_path=$lt_fix_srcfile_path
16168 # Set to "yes" if exported symbols are required.
16169 always_export_symbols=$always_export_symbols
16171 # The commands to list exported symbols.
16172 export_symbols_cmds=$lt_export_symbols_cmds
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms
16180 # Commands necessary for linking programs (against libraries) with templates.
16181 prelink_cmds=$lt_prelink_cmds
16183 # Specify filename containing input files.
16184 file_list_spec=$lt_file_list_spec
16186 # How to hardcode a shared library path into an executable.
16187 hardcode_action=$hardcode_action
16189 # ### END LIBTOOL CONFIG
16191 _LT_EOF
16193 case $host_os in
16194 aix3*)
16195 cat <<\_LT_EOF >> "$cfgfile"
16196 # AIX sometimes has problems with the GCC collect2 program. For some
16197 # reason, if we set the COLLECT_NAMES environment variable, the problems
16198 # vanish in a puff of smoke.
16199 if test "X${COLLECT_NAMES+set}" != Xset; then
16200 COLLECT_NAMES=
16201 export COLLECT_NAMES
16203 _LT_EOF
16205 esac
16208 ltmain="$ac_aux_dir/ltmain.sh"
16211 # We use sed instead of cat because bash on DJGPP gets confused if
16212 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16213 # text mode, it properly converts lines to CR/LF. This bash problem
16214 # is reportedly fixed, but why not run on old versions too?
16215 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16216 || (rm -f "$cfgfile"; exit 1)
16218 case $xsi_shell in
16219 yes)
16220 cat << \_LT_EOF >> "$cfgfile"
16221 # func_dirname file append nondir_replacement
16222 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16223 # otherwise set result to NONDIR_REPLACEMENT.
16224 func_dirname ()
16226 case ${1} in
16227 */*) func_dirname_result="${1%/*}${2}" ;;
16228 * ) func_dirname_result="${3}" ;;
16229 esac
16232 # func_basename file
16233 func_basename ()
16235 func_basename_result="${1##*/}"
16238 # func_stripname prefix suffix name
16239 # strip PREFIX and SUFFIX off of NAME.
16240 # PREFIX and SUFFIX must not contain globbing or regex special
16241 # characters, hashes, percent signs, but SUFFIX may contain a leading
16242 # dot (in which case that matches only a dot).
16243 func_stripname ()
16245 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16246 # positional parameters, so assign one to ordinary parameter first.
16247 func_stripname_result=${3}
16248 func_stripname_result=${func_stripname_result#"${1}"}
16249 func_stripname_result=${func_stripname_result%"${2}"}
16252 # func_opt_split
16253 func_opt_split ()
16255 func_opt_split_opt=${1%%=*}
16256 func_opt_split_arg=${1#*=}
16259 # func_lo2o object
16260 func_lo2o ()
16262 case ${1} in
16263 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16264 *) func_lo2o_result=${1} ;;
16265 esac
16267 _LT_EOF
16269 *) # Bourne compatible functions.
16270 cat << \_LT_EOF >> "$cfgfile"
16271 # func_dirname file append nondir_replacement
16272 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16273 # otherwise set result to NONDIR_REPLACEMENT.
16274 func_dirname ()
16276 # Extract subdirectory from the argument.
16277 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16278 if test "X$func_dirname_result" = "X${1}"; then
16279 func_dirname_result="${3}"
16280 else
16281 func_dirname_result="$func_dirname_result${2}"
16285 # func_basename file
16286 func_basename ()
16288 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16291 # func_stripname prefix suffix name
16292 # strip PREFIX and SUFFIX off of NAME.
16293 # PREFIX and SUFFIX must not contain globbing or regex special
16294 # characters, hashes, percent signs, but SUFFIX may contain a leading
16295 # dot (in which case that matches only a dot).
16296 # func_strip_suffix prefix name
16297 func_stripname ()
16299 case ${2} in
16300 .*) func_stripname_result=`$ECHO "X${3}" \
16301 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16302 *) func_stripname_result=`$ECHO "X${3}" \
16303 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16304 esac
16307 # sed scripts:
16308 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16309 my_sed_long_arg='1s/^-[^=]*=//'
16311 # func_opt_split
16312 func_opt_split ()
16314 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16315 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16318 # func_lo2o object
16319 func_lo2o ()
16321 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16323 _LT_EOF
16324 esac
16326 case $lt_shell_append in
16327 yes)
16328 cat << \_LT_EOF >> "$cfgfile"
16330 # func_append var value
16331 # Append VALUE to the end of shell variable VAR.
16332 func_append ()
16334 eval "$1+=\$2"
16336 _LT_EOF
16339 cat << \_LT_EOF >> "$cfgfile"
16341 # func_append var value
16342 # Append VALUE to the end of shell variable VAR.
16343 func_append ()
16345 eval "$1=\$$1\$2"
16347 _LT_EOF
16349 esac
16352 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16353 || (rm -f "$cfgfile"; exit 1)
16355 mv -f "$cfgfile" "$ofile" ||
16356 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16357 chmod +x "$ofile"
16360 default-1 )
16361 for ac_file in $CONFIG_FILES; do
16362 # Support "outfile[:infile[:infile...]]"
16363 case "$ac_file" in
16364 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16365 esac
16366 # PO directories have a Makefile.in generated from Makefile.in.in.
16367 case "$ac_file" in */Makefile.in)
16368 # Adjust a relative srcdir.
16369 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16370 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16371 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16372 # In autoconf-2.13 it is called $ac_given_srcdir.
16373 # In autoconf-2.50 it is called $srcdir.
16374 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16375 case "$ac_given_srcdir" in
16376 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16377 /*) top_srcdir="$ac_given_srcdir" ;;
16378 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16379 esac
16380 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16381 rm -f "$ac_dir/POTFILES"
16382 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16383 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16384 POMAKEFILEDEPS="POTFILES.in"
16385 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16386 # on $ac_dir but don't depend on user-specified configuration
16387 # parameters.
16388 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16389 # The LINGUAS file contains the set of available languages.
16390 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16391 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16393 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16394 # Hide the ALL_LINGUAS assigment from automake.
16395 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16396 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16397 else
16398 # The set of available languages was given in configure.in.
16399 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16401 case "$ac_given_srcdir" in
16402 .) srcdirpre= ;;
16403 *) srcdirpre='$(srcdir)/' ;;
16404 esac
16405 POFILES=
16406 GMOFILES=
16407 UPDATEPOFILES=
16408 DUMMYPOFILES=
16409 for lang in $ALL_LINGUAS; do
16410 POFILES="$POFILES $srcdirpre$lang.po"
16411 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16412 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16413 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16414 done
16415 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16416 # environment variable.
16417 INST_LINGUAS=
16418 if test -n "$ALL_LINGUAS"; then
16419 for presentlang in $ALL_LINGUAS; do
16420 useit=no
16421 if test "%UNSET%" != "$LINGUAS"; then
16422 desiredlanguages="$LINGUAS"
16423 else
16424 desiredlanguages="$ALL_LINGUAS"
16426 for desiredlang in $desiredlanguages; do
16427 # Use the presentlang catalog if desiredlang is
16428 # a. equal to presentlang, or
16429 # b. a variant of presentlang (because in this case,
16430 # presentlang can be used as a fallback for messages
16431 # which are not translated in the desiredlang catalog).
16432 case "$desiredlang" in
16433 "$presentlang"*) useit=yes;;
16434 esac
16435 done
16436 if test $useit = yes; then
16437 INST_LINGUAS="$INST_LINGUAS $presentlang"
16439 done
16441 CATALOGS=
16442 if test -n "$INST_LINGUAS"; then
16443 for lang in $INST_LINGUAS; do
16444 CATALOGS="$CATALOGS $lang.gmo"
16445 done
16447 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16448 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"
16449 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16450 if test -f "$f"; then
16451 case "$f" in
16452 *.orig | *.bak | *~) ;;
16453 *) cat "$f" >> "$ac_dir/Makefile" ;;
16454 esac
16456 done
16459 esac
16460 done ;;
16461 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16462 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16463 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16464 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16465 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16466 if test "x$cgen_cpu_prefix" != x ; then
16467 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16468 fi ;;
16469 esac
16470 done
16471 _ACEOF
16473 cat >>$CONFIG_STATUS <<\_ACEOF
16475 { (exit 0); exit 0; }
16476 _ACEOF
16477 chmod +x $CONFIG_STATUS
16478 ac_clean_files=$ac_clean_files_save
16481 # configure is writing to config.log, and then calls config.status.
16482 # config.status does its own redirection, appending to config.log.
16483 # Unfortunately, on DOS this fails, as config.log is still kept open
16484 # by configure, so config.status won't be able to write to it; its
16485 # output is simply discarded. So we exec the FD to /dev/null,
16486 # effectively closing config.log, so it can be properly (re)opened and
16487 # appended to by config.status. When coming back to configure, we
16488 # need to make the FD available again.
16489 if test "$no_create" != yes; then
16490 ac_cs_success=:
16491 ac_config_status_args=
16492 test "$silent" = yes &&
16493 ac_config_status_args="$ac_config_status_args --quiet"
16494 exec 5>/dev/null
16495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16496 exec 5>>config.log
16497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16498 # would make configure fail if this is the last instruction.
16499 $ac_cs_success || { (exit 1); exit 1; }