c54691471b77dc55688398c8ef67115e96831bcb
[deliverable/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="as.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-bfd-assembler use BFD back end for writing object files
860 targets alternative target configurations besides the primary
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings Enable build-time compiler warnings
864 --disable-nls do not use Native Language Support
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-included-gettext use the GNU gettext library included here
874
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
883
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
886
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd $ac_popdir
976 done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
982
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
996
997 $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113 {
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 ;;
1121 *)
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ;;
1125 esac;
1126 }
1127 echo
1128
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 ac_aux_dir=
1324 for ac_dir in .. $srcdir/..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338 done
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1342 { (exit 1); exit 1; }; }
1343 fi
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371 fi
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393 fi
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415 fi
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 fi
1472 if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 CC=$ac_ct_CC
1510 else
1511 CC="$ac_cv_prog_CC"
1512 fi
1513
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1592 fi
1593
1594 fi
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622 done
1623 done
1624
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636 fi
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688 test -n "$CC" && break
1689 done
1690 fi
1691 if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694 do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 test -n "$ac_ct_CC" && break
1731 done
1732
1733 CC=$ac_ct_CC
1734 fi
1735
1736 fi
1737
1738
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h. */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1771
1772 int
1773 main ()
1774 {
1775
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1796
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 ;;
1807 conftest.$ac_ext )
1808 # This is the source file.
1809 ;;
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1821 * )
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834 fi
1835
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1839
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867 fi
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1879
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900 done
1901 else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1927
1928 int
1929 main ()
1930 {
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948 done
1949 else
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958 fi
1959
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1977
1978 int
1979 main ()
1980 {
1981 #ifndef __GNUC__
1982 choke me
1983 #endif
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_compiler_gnu=no
2017 fi
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h. */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2039
2040 int
2041 main ()
2042 {
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_cv_prog_cc_g=no
2076 fi
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095 fi
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2119 {
2120 return p[i];
2121 }
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2123 {
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130 }
2131
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2147 int
2148 main ()
2149 {
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.err conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2198
2199 fi
2200
2201 case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2210
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217 choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249 do
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 #include <stdlib.h>
2258 int
2259 main ()
2260 {
2261 exit (42);
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 continue
2294 fi
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307 ;
2308 return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 fi
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 rm -f conftest*
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346 fi
2347
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 fi
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char strerror ();
2382 int
2383 main ()
2384 {
2385 strerror ();
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 fi
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2429
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char strerror ();
2437 int
2438 main ()
2439 {
2440 strerror ();
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468 break
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 fi
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2477 fi
2478 LIBS=$ac_func_search_save_LIBS
2479 fi
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2484
2485 fi
2486
2487
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.9"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2496 # AIX /bin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2520 *)
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2530 :
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2534 :
2535 else
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2538 fi
2539 fi
2540 done
2541 done
2542 ;;
2543 esac
2544 done
2545
2546
2547 fi
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2556 fi
2557 fi
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2560
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2582 # -L didn't work.
2583 set X `ls -t $srcdir/configure conftest.file`
2584 fi
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2588
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2598 fi
2599
2600 test "$2" = conftest.file
2601 )
2602 then
2603 # Ok.
2604 :
2605 else
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2611 fi
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2623 _ACEOF
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625 rm conftest.sed
2626
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638 fi
2639
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2662 do
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2670 fi
2671 fi
2672
2673 for ac_prog in gawk mawk nawk awk
2674 do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2708 fi
2709
2710 test -n "$AWK" && break
2711 done
2712
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2729 fi
2730 rm -f conftest.make
2731 fi
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2748 fi
2749 rmdir .tst 2>/dev/null
2750
2751 DEPDIR="${am__leading_dot}deps"
2752
2753 ac_config_commands="$ac_config_commands depfiles"
2754
2755
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2761 END
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2779 fi
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2787 fi
2788 fi
2789
2790
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2794
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2798
2799 fi;
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2803 fi
2804
2805
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2812 fi
2813
2814
2815
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2830 fi
2831 fi
2832
2833
2834 # Define the identity of the package.
2835 PACKAGE=gas
2836 VERSION=${BFD_VERSION}
2837
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2847
2848 # Some tools Automake needs.
2849
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895
2896 fi
2897 fi
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907 fi
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2935 fi
2936 fi
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944 fi
2945
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2949 fi
2950
2951 fi
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2953
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2957
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2959
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2961
2962
2963
2964
2965 depcc="$CC" am_compiler_list=
2966
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2990
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 fi
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
2999 #
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3020 fi
3021 ;;
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3046 fi
3047 fi
3048 done
3049
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3054 fi
3055
3056 fi
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3060
3061
3062
3063 if
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3071 fi
3072
3073
3074
3075
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3083 *)
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3090 fi
3091 done
3092 IFS="$ac_save_ifs"
3093 ;;
3094 esac
3095 else
3096 enable_shared=yes
3097 fi;
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3105 *)
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3112 fi
3113 done
3114 IFS="$ac_save_ifs"
3115 ;;
3116 esac
3117 else
3118 enable_static=yes
3119 fi;
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3127 *)
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3134 fi
3135 done
3136 IFS="$ac_save_ifs"
3137 ;;
3138 esac
3139 else
3140 enable_fast_install=yes
3141 fi;
3142
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3149 fi;
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 *)
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3172 ;;
3173 "")
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3176 ;;
3177 *)
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3180 ;;
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188 fi
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3205 fi
3206 fi
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3211 fi
3212 fi
3213
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3235 fi
3236 fi
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3240
3241
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3248 fi
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3253
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3281 fi
3282 fi
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3286 fi
3287 fi
3288
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3292
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3302 fi
3303
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3322
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3326 ;;
3327
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3336 ;;
3337
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3341 ;;
3342
3343 darwin* | rhapsody*)
3344 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345 lt_cv_file_magic_cmd='/usr/bin/file -L'
3346 case "$host_os" in
3347 rhapsody* | darwin1.012)
3348 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349 ;;
3350 *) # Darwin 1.3 on
3351 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352 ;;
3353 esac
3354 ;;
3355
3356 freebsd* | kfreebsd*-gnu)
3357 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358 case $host_cpu in
3359 i*86 )
3360 # Not sure whether the presence of OpenBSD here was a mistake.
3361 # Let's accept both of them until this is cleared up.
3362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363 lt_cv_file_magic_cmd=/usr/bin/file
3364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365 ;;
3366 esac
3367 else
3368 lt_cv_deplibs_check_method=pass_all
3369 fi
3370 ;;
3371
3372 gnu*)
3373 lt_cv_deplibs_check_method=pass_all
3374 ;;
3375
3376 hpux10.20*|hpux11*)
3377 case $host_cpu in
3378 hppa*)
3379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380 lt_cv_file_magic_cmd=/usr/bin/file
3381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382 ;;
3383 ia64*)
3384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385 lt_cv_file_magic_cmd=/usr/bin/file
3386 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387 ;;
3388 esac
3389 ;;
3390
3391 irix5* | irix6*)
3392 case $host_os in
3393 irix5*)
3394 # this will be overridden with pass_all, but let us keep it just in case
3395 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396 ;;
3397 *)
3398 case $LD in
3399 *-32|*"-32 ") libmagic=32-bit;;
3400 *-n32|*"-n32 ") libmagic=N32;;
3401 *-64|*"-64 ") libmagic=64-bit;;
3402 *) libmagic=never-match;;
3403 esac
3404 # this will be overridden with pass_all, but let us keep it just in case
3405 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406 ;;
3407 esac
3408 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409 lt_cv_deplibs_check_method=pass_all
3410 ;;
3411
3412 # This must be Linux ELF.
3413 linux-gnu*)
3414 case $host_cpu in
3415 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3416 lt_cv_deplibs_check_method=pass_all ;;
3417 *)
3418 # glibc up to 2.1.1 does not perform some relocations on ARM
3419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3420 esac
3421 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3422 ;;
3423
3424 netbsd* | knetbsd*-gnu)
3425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3426 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3427 else
3428 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3429 fi
3430 ;;
3431
3432 newsos6)
3433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3434 lt_cv_file_magic_cmd=/usr/bin/file
3435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3436 ;;
3437
3438 osf3* | osf4* | osf5*)
3439 # this will be overridden with pass_all, but let us keep it just in case
3440 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441 lt_cv_file_magic_test_file=/shlib/libc.so
3442 lt_cv_deplibs_check_method=pass_all
3443 ;;
3444
3445 sco3.2v5*)
3446 lt_cv_deplibs_check_method=pass_all
3447 ;;
3448
3449 solaris*)
3450 lt_cv_deplibs_check_method=pass_all
3451 lt_cv_file_magic_test_file=/lib/libc.so
3452 ;;
3453
3454 sysv5uw[78]* | sysv4*uw2*)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457
3458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3459 case $host_vendor in
3460 ncr)
3461 lt_cv_deplibs_check_method=pass_all
3462 ;;
3463 motorola)
3464 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]'
3465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3466 ;;
3467 esac
3468 ;;
3469 esac
3470
3471 fi
3472 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3473 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3474 file_magic_cmd=$lt_cv_file_magic_cmd
3475 deplibs_check_method=$lt_cv_deplibs_check_method
3476
3477
3478
3479
3480 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3481
3482 # Only perform the check for file, if the check method requires it
3483 case $deplibs_check_method in
3484 file_magic*)
3485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 case $MAGIC_CMD in
3492 /*)
3493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3494 ;;
3495 ?:/*)
3496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3497 ;;
3498 *)
3499 ac_save_MAGIC_CMD="$MAGIC_CMD"
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="/usr/bin:$PATH"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/${ac_tool_prefix}file; then
3505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3506 if test -n "$file_magic_test_file"; then
3507 case $deplibs_check_method in
3508 "file_magic "*)
3509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3512 egrep "$file_magic_regex" > /dev/null; then
3513 :
3514 else
3515 cat <<EOF 1>&2
3516
3517 *** Warning: the command libtool uses to detect shared libraries,
3518 *** $file_magic_cmd, produces output that libtool cannot recognize.
3519 *** The result is that libtool may fail to recognize shared libraries
3520 *** as such. This will affect the creation of libtool libraries that
3521 *** depend on shared libraries, but programs linked with such libtool
3522 *** libraries will work regardless of this problem. Nevertheless, you
3523 *** may want to report the problem to your system manager and/or to
3524 *** bug-libtool@gnu.org
3525
3526 EOF
3527 fi ;;
3528 esac
3529 fi
3530 break
3531 fi
3532 done
3533 IFS="$ac_save_ifs"
3534 MAGIC_CMD="$ac_save_MAGIC_CMD"
3535 ;;
3536 esac
3537 fi
3538
3539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3540 if test -n "$MAGIC_CMD"; then
3541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3542 echo "${ECHO_T}$MAGIC_CMD" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 if test -z "$lt_cv_path_MAGIC_CMD"; then
3549 if test -n "$ac_tool_prefix"; then
3550 echo "$as_me:$LINENO: checking for file" >&5
3551 echo $ECHO_N "checking for file... $ECHO_C" >&6
3552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 case $MAGIC_CMD in
3556 /*)
3557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3558 ;;
3559 ?:/*)
3560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3561 ;;
3562 *)
3563 ac_save_MAGIC_CMD="$MAGIC_CMD"
3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3565 ac_dummy="/usr/bin:$PATH"
3566 for ac_dir in $ac_dummy; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/file; then
3569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3570 if test -n "$file_magic_test_file"; then
3571 case $deplibs_check_method in
3572 "file_magic "*)
3573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3576 egrep "$file_magic_regex" > /dev/null; then
3577 :
3578 else
3579 cat <<EOF 1>&2
3580
3581 *** Warning: the command libtool uses to detect shared libraries,
3582 *** $file_magic_cmd, produces output that libtool cannot recognize.
3583 *** The result is that libtool may fail to recognize shared libraries
3584 *** as such. This will affect the creation of libtool libraries that
3585 *** depend on shared libraries, but programs linked with such libtool
3586 *** libraries will work regardless of this problem. Nevertheless, you
3587 *** may want to report the problem to your system manager and/or to
3588 *** bug-libtool@gnu.org
3589
3590 EOF
3591 fi ;;
3592 esac
3593 fi
3594 break
3595 fi
3596 done
3597 IFS="$ac_save_ifs"
3598 MAGIC_CMD="$ac_save_MAGIC_CMD"
3599 ;;
3600 esac
3601 fi
3602
3603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3604 if test -n "$MAGIC_CMD"; then
3605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3606 echo "${ECHO_T}$MAGIC_CMD" >&6
3607 else
3608 echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3610 fi
3611
3612 else
3613 MAGIC_CMD=:
3614 fi
3615 fi
3616
3617 fi
3618 ;;
3619 esac
3620
3621 if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3624 echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626 if test "${ac_cv_prog_RANLIB+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 if test -n "$RANLIB"; then
3630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645
3646 fi
3647 fi
3648 RANLIB=$ac_cv_prog_RANLIB
3649 if test -n "$RANLIB"; then
3650 echo "$as_me:$LINENO: result: $RANLIB" >&5
3651 echo "${ECHO_T}$RANLIB" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3655 fi
3656
3657 fi
3658 if test -z "$ac_cv_prog_RANLIB"; then
3659 ac_ct_RANLIB=$RANLIB
3660 # Extract the first word of "ranlib", so it can be a program name with args.
3661 set dummy ranlib; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 if test -n "$ac_ct_RANLIB"; then
3668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_RANLIB="ranlib"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683
3684 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3685 fi
3686 fi
3687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3688 if test -n "$ac_ct_RANLIB"; then
3689 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3690 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3691 else
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 fi
3695
3696 RANLIB=$ac_ct_RANLIB
3697 else
3698 RANLIB="$ac_cv_prog_RANLIB"
3699 fi
3700
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}strip; ac_word=$2
3704 echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706 if test "${ac_cv_prog_STRIP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -n "$STRIP"; then
3710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725
3726 fi
3727 fi
3728 STRIP=$ac_cv_prog_STRIP
3729 if test -n "$STRIP"; then
3730 echo "$as_me:$LINENO: result: $STRIP" >&5
3731 echo "${ECHO_T}$STRIP" >&6
3732 else
3733 echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3735 fi
3736
3737 fi
3738 if test -z "$ac_cv_prog_STRIP"; then
3739 ac_ct_STRIP=$STRIP
3740 # Extract the first word of "strip", so it can be a program name with args.
3741 set dummy strip; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 if test -n "$ac_ct_STRIP"; then
3748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_STRIP="strip"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763
3764 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3765 fi
3766 fi
3767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3768 if test -n "$ac_ct_STRIP"; then
3769 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3770 echo "${ECHO_T}$ac_ct_STRIP" >&6
3771 else
3772 echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3774 fi
3775
3776 STRIP=$ac_ct_STRIP
3777 else
3778 STRIP="$ac_cv_prog_STRIP"
3779 fi
3780
3781
3782 # Check for any special flags to pass to ltconfig.
3783 libtool_flags="--cache-file=$cache_file"
3784 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3785 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3786 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3787 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3788 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3789
3790
3791 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3792 if test "${enable_libtool_lock+set}" = set; then
3793 enableval="$enable_libtool_lock"
3794
3795 fi;
3796 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3797 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3798
3799
3800 # Check whether --with-pic or --without-pic was given.
3801 if test "${with_pic+set}" = set; then
3802 withval="$with_pic"
3803 pic_mode="$withval"
3804 else
3805 pic_mode=default
3806 fi;
3807 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3808 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3809
3810 # Some flags need to be propagated to the compiler or linker for good
3811 # libtool support.
3812 case $host in
3813 *-*-irix6*)
3814 # Find out which ABI we are using.
3815 echo '#line 3815 "configure"' > conftest.$ac_ext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; then
3821 if test "$lt_cv_prog_gnu_ld" = yes; then
3822 case `/usr/bin/file conftest.$ac_objext` in
3823 *32-bit*)
3824 LD="${LD-ld} -melf32bsmip"
3825 ;;
3826 *N32*)
3827 LD="${LD-ld} -melf32bmipn32"
3828 ;;
3829 *64-bit*)
3830 LD="${LD-ld} -melf64bmip"
3831 ;;
3832 esac
3833 else
3834 case `/usr/bin/file conftest.$ac_objext` in
3835 *32-bit*)
3836 LD="${LD-ld} -32"
3837 ;;
3838 *N32*)
3839 LD="${LD-ld} -n32"
3840 ;;
3841 *64-bit*)
3842 LD="${LD-ld} -64"
3843 ;;
3844 esac
3845 fi
3846 fi
3847 rm -rf conftest*
3848 ;;
3849
3850 ia64-*-hpux*)
3851 # Find out which ABI we are using.
3852 echo 'int i;' > conftest.$ac_ext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 case "`/usr/bin/file conftest.o`" in
3859 *ELF-32*)
3860 HPUX_IA64_MODE="32"
3861 ;;
3862 *ELF-64*)
3863 HPUX_IA64_MODE="64"
3864 ;;
3865 esac
3866 fi
3867 rm -rf conftest*
3868 ;;
3869
3870 *-*-sco3.2v5*)
3871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3872 SAVE_CFLAGS="$CFLAGS"
3873 CFLAGS="$CFLAGS -belf"
3874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3876 if test "${lt_cv_cc_needs_belf+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
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
3894 int
3895 main ()
3896 {
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 rm -f conftest.$ac_objext conftest$ac_exeext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 lt_cv_cc_needs_belf=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 lt_cv_cc_needs_belf=no
3930 fi
3931 rm -f conftest.err conftest.$ac_objext \
3932 conftest$ac_exeext conftest.$ac_ext
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939 fi
3940 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3941 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3944 CFLAGS="$SAVE_CFLAGS"
3945 fi
3946 ;;
3947
3948
3949 esac
3950
3951
3952 # Save cache, so that ltconfig can load it
3953 cat >confcache <<\_ACEOF
3954 # This file is a shell script that caches the results of configure
3955 # tests run on this system so they can be shared between configure
3956 # scripts and configure runs, see configure's option --config-cache.
3957 # It is not useful on other systems. If it contains results you don't
3958 # want to keep, you may remove or edit it.
3959 #
3960 # config.status only pays attention to the cache file if you give it
3961 # the --recheck option to rerun configure.
3962 #
3963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3965 # following values.
3966
3967 _ACEOF
3968
3969 # The following way of writing the cache mishandles newlines in values,
3970 # but we know of no workaround that is simple, portable, and efficient.
3971 # So, don't put newlines in cache variables' values.
3972 # Ultrix sh set writes to stderr and can't be redirected directly,
3973 # and sets the high bit in the cache file unless we assign to the vars.
3974 {
3975 (set) 2>&1 |
3976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3977 *ac_space=\ *)
3978 # `set' does not quote correctly, so add quotes (double-quote
3979 # substitution turns \\\\ into \\, and sed turns \\ into \).
3980 sed -n \
3981 "s/'/'\\\\''/g;
3982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3983 ;;
3984 *)
3985 # `set' quotes correctly as required by POSIX, so do not add quotes.
3986 sed -n \
3987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3988 ;;
3989 esac;
3990 } |
3991 sed '
3992 t clear
3993 : clear
3994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3995 t end
3996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3997 : end' >>confcache
3998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3999 if test -w $cache_file; then
4000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4001 cat confcache >$cache_file
4002 else
4003 echo "not updating unwritable cache $cache_file"
4004 fi
4005 fi
4006 rm -f confcache
4007
4008 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4009 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4010 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4011 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4012 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4013 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4014 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4015 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4016 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4017 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4018 echo "$as_me: error: libtool configure failed" >&2;}
4019 { (exit 1); exit 1; }; }
4020
4021 # Reload cache, that may have been modified by ltconfig
4022 if test -r "$cache_file"; then
4023 # Some versions of bash will fail to source /dev/null (special
4024 # files actually), so we avoid doing that.
4025 if test -f "$cache_file"; then
4026 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4027 echo "$as_me: loading cache $cache_file" >&6;}
4028 case $cache_file in
4029 [\\/]* | ?:[\\/]* ) . $cache_file;;
4030 *) . ./$cache_file;;
4031 esac
4032 fi
4033 else
4034 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4035 echo "$as_me: creating cache $cache_file" >&6;}
4036 >$cache_file
4037 fi
4038
4039
4040 # This can be used to rebuild libtool when needed
4041 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4042
4043 # Always use our own libtool.
4044 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4045
4046 # Redirect the config.log output again, so that the ltconfig log is not
4047 # clobbered by the next message.
4048 exec 5>>./config.log
4049
4050
4051
4052
4053
4054
4055
4056 user_bfd_gas=
4057 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4058 if test "${enable_bfd_assembler+set}" = set; then
4059 enableval="$enable_bfd_assembler"
4060 case "${enableval}" in
4061 yes) need_bfd=yes user_bfd_gas=yes ;;
4062 no) user_bfd_gas=no ;;
4063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4064 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4065 { (exit 1); exit 1; }; } ;;
4066 esac
4067 fi; # Check whether --enable-targets or --disable-targets was given.
4068 if test "${enable_targets+set}" = set; then
4069 enableval="$enable_targets"
4070 case "${enableval}" in
4071 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4072 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4073 { (exit 1); exit 1; }; }
4074 ;;
4075 no) enable_targets= ;;
4076 *) enable_targets=$enableval ;;
4077 esac
4078 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4079 if test "${enable_commonbfdlib+set}" = set; then
4080 enableval="$enable_commonbfdlib"
4081 case "${enableval}" in
4082 yes) commonbfdlib=true ;;
4083 no) commonbfdlib=false ;;
4084 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4085 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4086 { (exit 1); exit 1; }; } ;;
4087 esac
4088 fi;
4089 using_cgen=no
4090
4091
4092 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4093
4094 # Check whether --enable-werror or --disable-werror was given.
4095 if test "${enable_werror+set}" = set; then
4096 enableval="$enable_werror"
4097 case "${enableval}" in
4098 yes | y) ERROR_ON_WARNING="yes" ;;
4099 no | n) ERROR_ON_WARNING="no" ;;
4100 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4101 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4102 { (exit 1); exit 1; }; } ;;
4103 esac
4104 fi;
4105
4106 # Enable -Werror by default when using gcc
4107 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4108 ERROR_ON_WARNING=yes
4109 fi
4110
4111 NO_WERROR=
4112 if test "${ERROR_ON_WARNING}" = yes ; then
4113 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4114 NO_WERROR="-Wno-error"
4115 fi
4116
4117 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4118 if test "${enable_build_warnings+set}" = set; then
4119 enableval="$enable_build_warnings"
4120 case "${enableval}" in
4121 yes) ;;
4122 no) WARN_CFLAGS="-w";;
4123 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4124 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4125 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4126 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4127 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4128 esac
4129 fi;
4130
4131 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4132 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4133 fi
4134
4135
4136
4137
4138
4139 # Generate a header file
4140 ac_config_headers="$ac_config_headers config.h:config.in"
4141
4142
4143 # If we are on a DOS filesystem, we must use gdb.ini rather than
4144 # .gdbinit.
4145 case "${host}" in
4146 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4147 GDBINIT="gdb.ini"
4148 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4149
4150 ;;
4151 *)
4152 GDBINIT=".gdbinit"
4153 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4154
4155 ;;
4156 esac
4157
4158
4159 #We need this for the host. BOUT header is in host order.
4160 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4161 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4162 if test "${ac_cv_c_bigendian+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 # See if sys/param.h defines the BYTE_ORDER macro.
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 #include <sys/param.h>
4174
4175 int
4176 main ()
4177 {
4178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4179 bogus endian macros
4180 #endif
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 # It does; now see whether it defined to BIG_ENDIAN or not.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 #include <sys/param.h>
4217
4218 int
4219 main ()
4220 {
4221 #if BYTE_ORDER != BIG_ENDIAN
4222 not big endian
4223 #endif
4224
4225 ;
4226 return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_c_bigendian=yes
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ac_cv_c_bigendian=no
4257 fi
4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4279 int
4280 main ()
4281 {
4282 _ascii (); _ebcdic ();
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4310 ac_cv_c_bigendian=yes
4311 fi
4312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4313 if test "$ac_cv_c_bigendian" = unknown; then
4314 ac_cv_c_bigendian=no
4315 else
4316 # finding both strings is unlikely to happen, but who knows?
4317 ac_cv_c_bigendian=unknown
4318 fi
4319 fi
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 fi
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 else
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 int
4334 main ()
4335 {
4336 /* Are we little or big endian? From Harbison&Steele. */
4337 union
4338 {
4339 long l;
4340 char c[sizeof (long)];
4341 } u;
4342 u.l = 1;
4343 exit (u.c[sizeof (long) - 1] == 1);
4344 }
4345 _ACEOF
4346 rm -f conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_c_bigendian=no
4358 else
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ( exit $ac_status )
4364 ac_cv_c_bigendian=yes
4365 fi
4366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367 fi
4368 fi
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4373 case $ac_cv_c_bigendian in
4374 yes)
4375
4376 cat >>confdefs.h <<\_ACEOF
4377 #define WORDS_BIGENDIAN 1
4378 _ACEOF
4379 ;;
4380 no)
4381 ;;
4382 *)
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388 esac
4389
4390
4391 te_file=generic
4392
4393 # Makefile target for installing gas in $(tooldir)/bin.
4394 install_tooldir=install-exec-tooldir
4395
4396 canon_targets=""
4397 all_targets=no
4398 if test -n "$enable_targets" ; then
4399 for t in `echo $enable_targets | sed 's/,/ /g'`; do
4400 if test $t = "all"; then
4401 all_targets=yes
4402 continue
4403 fi
4404 result=`$ac_config_sub $t 2>/dev/null`
4405 if test -n "$result" ; then
4406 canon_targets="$canon_targets $result"
4407 # else
4408 # # Permit "all", etc. We don't support it yet though.
4409 # canon_targets="$canon_targets $t"
4410 fi
4411 done
4412 _gas_uniq_list="$canon_targets"
4413 _gas_uniq_newlist=""
4414 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4415 case $_gas_uniq_i in
4416 _gas_uniq_dummy) ;;
4417 *) case " $_gas_uniq_newlist " in
4418 *" $_gas_uniq_i "*) ;;
4419 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4420 esac ;;
4421 esac
4422 done
4423 canon_targets=$_gas_uniq_newlist
4424
4425 fi
4426
4427 emulations=""
4428
4429 for this_target in $target $canon_targets ; do
4430
4431 targ=${this_target}
4432 . ${srcdir}/configure.tgt
4433
4434 case ${target_cpu} in
4435 crisv32)
4436
4437 cat >>confdefs.h <<_ACEOF
4438 #define DEFAULT_CRIS_ARCH $arch
4439 _ACEOF
4440
4441 ;;
4442 esac
4443
4444 if test ${this_target} = $target ; then
4445 target_cpu_type=${cpu_type}
4446 elif test ${target_cpu_type} != ${cpu_type} ; then
4447 continue
4448 fi
4449
4450 generic_target=${cpu_type}-${target_vendor}-${target_os}
4451 case ${generic_target} in
4452 i386-*-sco3.2v5*)
4453 if test ${this_target} = $target; then
4454
4455 cat >>confdefs.h <<\_ACEOF
4456 #define SCO_ELF 1
4457 _ACEOF
4458
4459 fi
4460 ;;
4461
4462 i386-*-msdosdjgpp* \
4463 | i386-*-go32* \
4464 | i386-go32-rtems*)
4465
4466 cat >>confdefs.h <<\_ACEOF
4467 #define STRICTCOFF 1
4468 _ACEOF
4469
4470 ;;
4471
4472 i860-*-*)
4473 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4474 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4475 ;;
4476
4477 mips-sony-bsd*)
4478 ;;
4479 mips-*-bsd*)
4480 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4481 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4482 { (exit 1); exit 1; }; }
4483 ;;
4484
4485 ppc-*-aix5.*)
4486
4487 cat >>confdefs.h <<\_ACEOF
4488 #define AIX_WEAK_SUPPORT 1
4489 _ACEOF
4490
4491 ;;
4492 ppc-*-linux-*)
4493 case "$endian" in
4494 big) ;;
4495 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4496 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4497 { (exit 1); exit 1; }; } ;;
4498 esac
4499 ;;
4500 ppc-*-solaris*)
4501 if test ${this_target} = $target; then
4502
4503 cat >>confdefs.h <<\_ACEOF
4504 #define TARGET_SOLARIS_COMMENT 1
4505 _ACEOF
4506
4507 fi
4508 if test x${endian} = xbig; then
4509 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4510 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4511 { (exit 1); exit 1; }; }
4512 fi
4513 ;;
4514
4515 sh*-*-symbianelf*)
4516
4517 cat >>confdefs.h <<\_ACEOF
4518 #define TARGET_SYMBIAN 1
4519 _ACEOF
4520
4521 ;;
4522 esac
4523
4524 if test ${this_target} = $target ; then
4525 endian_def=
4526 if test x${endian} = xbig; then
4527 endian_def=1
4528 elif test x${endian} = xlittle; then
4529 endian_def=0
4530 fi
4531 if test x${endian_def} != x; then
4532
4533 cat >>confdefs.h <<_ACEOF
4534 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4535 _ACEOF
4536
4537 fi
4538 fi
4539
4540 # Other random stuff.
4541
4542 case ${cpu_type} in
4543 mips)
4544 # Set mips_cpu to the name of the default CPU.
4545 case ${target_cpu} in
4546 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4547 mips_cpu=from-abi
4548 ;;
4549 mipsisa32 | mipsisa32el)
4550 mips_cpu=mips32
4551 ;;
4552 mipsisa32r2 | mipsisa32r2el)
4553 mips_cpu=mips32r2
4554 ;;
4555 mipsisa64 | mipsisa64el)
4556 mips_cpu=mips64
4557 ;;
4558 mipsisa64r2 | mipsisa64r2el)
4559 mips_cpu=mips64r2
4560 ;;
4561 mipstx39 | mipstx39el)
4562 mips_cpu=r3900
4563 ;;
4564 mips64vr | mips64vrel)
4565 mips_cpu=vr4100
4566 ;;
4567 mipsisa32r2* | mipsisa64r2*)
4568 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4569 ;;
4570 mips64* | mipsisa64* | mipsisa32*)
4571 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4572 ;;
4573 *)
4574 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4575 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4576 { (exit 1); exit 1; }; }
4577 ;;
4578 esac
4579 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4580 # binaries. It's a GNU extension that some OSes don't understand.
4581 # The value only matters on ELF targets.
4582 case ${target} in
4583 *-*-irix*)
4584 use_e_mips_abi_o32=0
4585 ;;
4586 *)
4587 use_e_mips_abi_o32=1
4588 ;;
4589 esac
4590 # Decide whether to generate 32-bit or 64-bit code by default.
4591 # Used to resolve -march=from-abi when an embedded ABI is selected.
4592 case ${target} in
4593 mips64*-*-* | mipsisa64*-*-*)
4594 mips_default_64bit=1
4595 ;;
4596 *)
4597 mips_default_64bit=0
4598 ;;
4599 esac
4600 # Decide which ABI to target by default.
4601 case ${target} in
4602 mips64*-linux* | mips-sgi-irix6*)
4603 mips_default_abi=N32_ABI
4604 ;;
4605 mips*-linux*)
4606 mips_default_abi=O32_ABI
4607 ;;
4608 *)
4609 mips_default_abi=NO_ABI
4610 ;;
4611 esac
4612
4613 cat >>confdefs.h <<_ACEOF
4614 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4615 _ACEOF
4616
4617
4618 cat >>confdefs.h <<_ACEOF
4619 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4620 _ACEOF
4621
4622
4623 cat >>confdefs.h <<_ACEOF
4624 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4625 _ACEOF
4626
4627
4628 cat >>confdefs.h <<_ACEOF
4629 #define MIPS_DEFAULT_ABI $mips_default_abi
4630 _ACEOF
4631
4632 ;;
4633 esac
4634
4635 # Do we need the opcodes library?
4636 case ${cpu_type} in
4637 vax | i386 | tic30)
4638 ;;
4639
4640 *)
4641 need_opcodes=yes
4642
4643 case "${enable_shared}" in
4644 yes) shared_opcodes=true ;;
4645 *opcodes*) shared_opcodes=true ;;
4646 *) shared_opcodes=false ;;
4647 esac
4648 if test "${shared_opcodes}" = "true"; then
4649 # A shared libopcodes must be linked against libbfd.
4650 need_bfd=yes
4651 fi
4652 ;;
4653 esac
4654
4655 # Any other special object files needed ?
4656 case ${cpu_type} in
4657 fr30 | ip2k | iq2000 | m32r | openrisc)
4658 using_cgen=yes
4659 ;;
4660
4661 frv)
4662 using_cgen=yes
4663 ;;
4664 m68k)
4665 case ${extra_objects} in
4666 *m68k-parse.o*) ;;
4667 *) extra_objects="$extra_objects m68k-parse.o" ;;
4668 esac
4669 ;;
4670
4671 mips)
4672 echo ${extra_objects} | grep -s "itbl-parse.o"
4673 if test $? -ne 0 ; then
4674 extra_objects="$extra_objects itbl-parse.o"
4675 fi
4676
4677 echo ${extra_objects} | grep -s "itbl-lex.o"
4678 if test $? -ne 0 ; then
4679 extra_objects="$extra_objects itbl-lex.o"
4680 fi
4681
4682 echo ${extra_objects} | grep -s "itbl-ops.o"
4683 if test $? -ne 0 ; then
4684 extra_objects="$extra_objects itbl-ops.o"
4685 fi
4686 ;;
4687
4688 i386 | s390 | sparc)
4689 if test $this_target = $target ; then
4690
4691 cat >>confdefs.h <<_ACEOF
4692 #define DEFAULT_ARCH "${arch}"
4693 _ACEOF
4694
4695 fi
4696 ;;
4697
4698 xstormy16)
4699 using_cgen=yes
4700 ;;
4701
4702 xtensa)
4703 echo ${extra_objects} | grep -s "xtensa-relax.o"
4704 if test $? -ne 0 ; then
4705 extra_objects="$extra_objects xtensa-relax.o"
4706 fi
4707 ;;
4708
4709 *)
4710 ;;
4711 esac
4712
4713 if test $using_cgen = yes ; then
4714 case "x${extra_objects}" in
4715 *cgen.o*) ;;
4716 *) extra_objects="$extra_objects cgen.o" ;;
4717 esac
4718 fi
4719
4720 # See if we really can support this configuration with the emulation code.
4721
4722 if test $this_target = $target ; then
4723 primary_bfd_gas=$bfd_gas
4724 obj_format=$fmt
4725 te_file=$em
4726
4727 if test $bfd_gas = no ; then
4728 # Can't support other configurations this way.
4729 break
4730 fi
4731 elif test $bfd_gas = no ; then
4732 # Can't support this configuration.
4733 break
4734 fi
4735
4736 # From target name and format, produce a list of supported emulations.
4737
4738 case ${generic_target}-${fmt} in
4739 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4740 mips*-*-linux*-*) case "$endian" in
4741 big) emulation="mipsbelf mipslelf mipself" ;;
4742 *) emulation="mipslelf mipsbelf mipself" ;;
4743 esac ;;
4744 mips-*-lnews*-ecoff) ;;
4745 mips-*-*-ecoff) case "$endian" in
4746 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
4747 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
4748 esac ;;
4749 mips-*-*-elf) case "$endian" in
4750 big) emulation="mipsbelf mipslelf mipself" ;;
4751 *) emulation="mipslelf mipsbelf mipself" ;;
4752 esac ;;
4753 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4754 # i386-pc-pe-coff != i386-pc-coff.
4755 i386-*-pe-coff) ;;
4756 # Uncommenting the next line will turn on support for i386 AOUT
4757 # for the default linux configuration
4758 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4759 #
4760 i386-*-aout) emulation="i386aout" ;;
4761 i386-*-coff) emulation="i386coff" ;;
4762 i386-*-elf) emulation="i386elf" ;;
4763
4764 # Always all formats. The first stated emulation becomes the default.
4765 cris-*-*aout*) emulation="crisaout criself" ;;
4766 cris-*-*) emulation="criself crisaout" ;;
4767 esac
4768
4769 emulations="$emulations $emulation"
4770
4771 done
4772
4773 # Turn on all targets if possible
4774 if test ${all_targets} = "yes"; then
4775 case ${target_cpu_type} in
4776 i386)
4777 case ${obj_format} in
4778 aout)
4779 emulations="$emulations i386coff i386elf"
4780 ;;
4781 coff)
4782 emulations="$emulations i386aout i386elf"
4783 ;;
4784 elf)
4785 emulations="$emulations i386aout i386coff"
4786 ;;
4787 esac
4788 ;;
4789 esac
4790 fi
4791
4792 # Assign floating point type. Most processors with FP support
4793 # IEEE FP. On those that don't support FP at all, usually IEEE
4794 # is emulated.
4795 case ${target_cpu} in
4796 vax | tahoe ) atof=${target_cpu} ;;
4797 pdp11) atof=vax ;;
4798 *) atof=ieee ;;
4799 esac
4800
4801 case "${obj_format}" in
4802 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4803 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4805 esac
4806
4807 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4808 cgen_cpu_prefix=""
4809 if test $using_cgen = yes ; then
4810 case ${target_cpu} in
4811 *) cgen_cpu_prefix=${target_cpu} ;;
4812 esac
4813
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define USING_CGEN 1
4817 _ACEOF
4818
4819 fi
4820
4821
4822 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4823 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4824 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4825 { (exit 1); exit 1; }; }
4826 fi
4827
4828 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4829 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4830 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4831 { (exit 1); exit 1; }; }
4832 fi
4833
4834 case ${user_bfd_gas}-${primary_bfd_gas} in
4835 yes-yes | no-no)
4836 # We didn't override user's choice.
4837 ;;
4838 no-yes)
4839 { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4840 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4841 ;;
4842 no-preferred)
4843 primary_bfd_gas=no
4844 ;;
4845 *-preferred)
4846 primary_bfd_gas=yes
4847 ;;
4848 yes-*)
4849 primary_bfd_gas=yes
4850 ;;
4851 -*)
4852 # User specified nothing.
4853 ;;
4854 esac
4855
4856 # Some COFF configurations want these random other flags set.
4857 case ${obj_format} in
4858 coff)
4859 case ${target_cpu_type} in
4860 i386)
4861 cat >>confdefs.h <<\_ACEOF
4862 #define I386COFF 1
4863 _ACEOF
4864 ;;
4865 m68k)
4866 cat >>confdefs.h <<\_ACEOF
4867 #define M68KCOFF 1
4868 _ACEOF
4869 ;;
4870 m88k)
4871 cat >>confdefs.h <<\_ACEOF
4872 #define M88KCOFF 1
4873 _ACEOF
4874 ;;
4875 esac
4876 ;;
4877 esac
4878
4879 # Getting this done right is going to be a bitch. Each configuration specified
4880 # with --enable-targets=... should be checked for environment, format, cpu, and
4881 # bfd_gas setting.
4882 #
4883 # For each configuration, the necessary object file support code must be linked
4884 # in. This might be only one, it might be up to four. The necessary emulation
4885 # code needs to be provided, too.
4886 #
4887 # And then there's "--enable-targets=all"....
4888 #
4889 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
4890
4891 formats="${obj_format}"
4892 emfiles=""
4893 EMULATIONS=""
4894 _gas_uniq_list="$emulations"
4895 _gas_uniq_newlist=""
4896 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4897 case $_gas_uniq_i in
4898 _gas_uniq_dummy) ;;
4899 *) case " $_gas_uniq_newlist " in
4900 *" $_gas_uniq_i "*) ;;
4901 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4902 esac ;;
4903 esac
4904 done
4905 emulations=$_gas_uniq_newlist
4906
4907 for em in . $emulations ; do
4908 case $em in
4909 .) continue ;;
4910 mipsbelf | mipslelf | mipself)
4911 fmt=elf file=mipself ;;
4912 mipsbecoff | mipslecoff | mipsecoff)
4913 fmt=ecoff file=mipsecoff ;;
4914 *coff)
4915 fmt=coff file=$em ;;
4916 *aout)
4917 fmt=aout file=$em ;;
4918 *elf)
4919 fmt=elf file=$em ;;
4920 esac
4921 formats="$formats $fmt"
4922 emfiles="$emfiles e-$file.o"
4923 EMULATIONS="$EMULATIONS &$em,"
4924 done
4925 _gas_uniq_list="$formats"
4926 _gas_uniq_newlist=""
4927 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4928 case $_gas_uniq_i in
4929 _gas_uniq_dummy) ;;
4930 *) case " $_gas_uniq_newlist " in
4931 *" $_gas_uniq_i "*) ;;
4932 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4933 esac ;;
4934 esac
4935 done
4936 formats=$_gas_uniq_newlist
4937
4938 _gas_uniq_list="$emfiles"
4939 _gas_uniq_newlist=""
4940 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4941 case $_gas_uniq_i in
4942 _gas_uniq_dummy) ;;
4943 *) case " $_gas_uniq_newlist " in
4944 *" $_gas_uniq_i "*) ;;
4945 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4946 esac ;;
4947 esac
4948 done
4949 emfiles=$_gas_uniq_newlist
4950
4951 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4952 for fmt in $formats ; do
4953 case $fmt in
4954 aout)
4955 cat >>confdefs.h <<\_ACEOF
4956 #define OBJ_MAYBE_AOUT 1
4957 _ACEOF
4958 ;;
4959 bout)
4960 cat >>confdefs.h <<\_ACEOF
4961 #define OBJ_MAYBE_BOUT 1
4962 _ACEOF
4963 ;;
4964 coff)
4965 cat >>confdefs.h <<\_ACEOF
4966 #define OBJ_MAYBE_COFF 1
4967 _ACEOF
4968 ;;
4969 ecoff)
4970 cat >>confdefs.h <<\_ACEOF
4971 #define OBJ_MAYBE_ECOFF 1
4972 _ACEOF
4973 ;;
4974 elf)
4975 cat >>confdefs.h <<\_ACEOF
4976 #define OBJ_MAYBE_ELF 1
4977 _ACEOF
4978 ;;
4979 generic)
4980 cat >>confdefs.h <<\_ACEOF
4981 #define OBJ_MAYBE_GENERIC 1
4982 _ACEOF
4983 ;;
4984 hp300)
4985 cat >>confdefs.h <<\_ACEOF
4986 #define OBJ_MAYBE_HP300 1
4987 _ACEOF
4988 ;;
4989 ieee)
4990 cat >>confdefs.h <<\_ACEOF
4991 #define OBJ_MAYBE_IEEE 1
4992 _ACEOF
4993 ;;
4994 som)
4995 cat >>confdefs.h <<\_ACEOF
4996 #define OBJ_MAYBE_SOM 1
4997 _ACEOF
4998 ;;
4999 esac
5000 extra_objects="$extra_objects obj-$fmt.o"
5001 done
5002 obj_format=multi
5003 fi
5004 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5005 DEFAULT_EMULATION=`set . $emulations ; echo $2`
5006 # e-mips* has more than one emulation per file, e-i386* has just one at the
5007 # moment. If only one emulation is specified, then don't define
5008 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5009 case "${obj_format}${emfiles}" in
5010 multi* | *mips*)
5011 extra_objects="$extra_objects $emfiles"
5012
5013 cat >>confdefs.h <<\_ACEOF
5014 #define USE_EMULATIONS 1
5015 _ACEOF
5016 ;;
5017 esac
5018 fi
5019
5020
5021 cat >>confdefs.h <<_ACEOF
5022 #define EMULATIONS $EMULATIONS
5023 _ACEOF
5024
5025
5026 cat >>confdefs.h <<_ACEOF
5027 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5028 _ACEOF
5029
5030
5031 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
5032 yes-*-coff) need_bfd=yes ;;
5033 no-*-coff) need_bfd=yes
5034
5035 cat >>confdefs.h <<\_ACEOF
5036 #define MANY_SEGMENTS 1
5037 _ACEOF
5038 ;;
5039 esac
5040
5041 reject_dev_configs=yes
5042
5043 case ${reject_dev_configs}-${dev} in
5044 yes-yes) # Oops.
5045 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5046 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5047 { (exit 1); exit 1; }; }
5048 ;;
5049 esac
5050
5051
5052
5053
5054
5055
5056
5057 case "${primary_bfd_gas}" in
5058 yes)
5059 cat >>confdefs.h <<\_ACEOF
5060 #define BFD_ASSEMBLER 1
5061 _ACEOF
5062
5063 need_bfd=yes ;;
5064 esac
5065
5066 # do we need the opcodes library?
5067 case "${need_opcodes}" in
5068 yes)
5069 OPCODES_LIB=../opcodes/libopcodes.la
5070 ;;
5071 esac
5072
5073 case "${need_bfd}" in
5074 yes)
5075 BFDLIB=../bfd/libbfd.la
5076 BFDVER_H=../bfd/bfdver.h
5077 ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5078 ;;
5079 esac
5080
5081
5082
5083
5084
5085
5086
5087
5088 cat >>confdefs.h <<_ACEOF
5089 #define TARGET_ALIAS "${target_alias}"
5090 _ACEOF
5091
5092
5093 cat >>confdefs.h <<_ACEOF
5094 #define TARGET_CANONICAL "${target}"
5095 _ACEOF
5096
5097
5098 cat >>confdefs.h <<_ACEOF
5099 #define TARGET_CPU "${target_cpu}"
5100 _ACEOF
5101
5102
5103 cat >>confdefs.h <<_ACEOF
5104 #define TARGET_VENDOR "${target_vendor}"
5105 _ACEOF
5106
5107
5108 cat >>confdefs.h <<_ACEOF
5109 #define TARGET_OS "${target_os}"
5110 _ACEOF
5111
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_CC+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test -n "$CC"; then
5127 ac_cv_prog_CC="$CC" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142
5143 fi
5144 fi
5145 CC=$ac_cv_prog_CC
5146 if test -n "$CC"; then
5147 echo "$as_me:$LINENO: result: $CC" >&5
5148 echo "${ECHO_T}$CC" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5152 fi
5153
5154 fi
5155 if test -z "$ac_cv_prog_CC"; then
5156 ac_ct_CC=$CC
5157 # Extract the first word of "gcc", so it can be a program name with args.
5158 set dummy gcc; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_CC"; then
5165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_CC="gcc"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180
5181 fi
5182 fi
5183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5184 if test -n "$ac_ct_CC"; then
5185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5186 echo "${ECHO_T}$ac_ct_CC" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190 fi
5191
5192 CC=$ac_ct_CC
5193 else
5194 CC="$ac_cv_prog_CC"
5195 fi
5196
5197 if test -z "$CC"; then
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}cc; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_CC+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$CC"; then
5207 ac_cv_prog_CC="$CC" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_CC="${ac_tool_prefix}cc"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222
5223 fi
5224 fi
5225 CC=$ac_cv_prog_CC
5226 if test -n "$CC"; then
5227 echo "$as_me:$LINENO: result: $CC" >&5
5228 echo "${ECHO_T}$CC" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5232 fi
5233
5234 fi
5235 if test -z "$ac_cv_prog_CC"; then
5236 ac_ct_CC=$CC
5237 # Extract the first word of "cc", so it can be a program name with args.
5238 set dummy cc; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_CC"; then
5245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_CC="cc"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258 done
5259 done
5260
5261 fi
5262 fi
5263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5264 if test -n "$ac_ct_CC"; then
5265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5266 echo "${ECHO_T}$ac_ct_CC" >&6
5267 else
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271
5272 CC=$ac_ct_CC
5273 else
5274 CC="$ac_cv_prog_CC"
5275 fi
5276
5277 fi
5278 if test -z "$CC"; then
5279 # Extract the first word of "cc", so it can be a program name with args.
5280 set dummy cc; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_prog_CC+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test -n "$CC"; then
5287 ac_cv_prog_CC="$CC" # Let the user override the test.
5288 else
5289 ac_prog_rejected=no
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5298 ac_prog_rejected=yes
5299 continue
5300 fi
5301 ac_cv_prog_CC="cc"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307
5308 if test $ac_prog_rejected = yes; then
5309 # We found a bogon in the path, so make sure we never use it.
5310 set dummy $ac_cv_prog_CC
5311 shift
5312 if test $# != 0; then
5313 # We chose a different compiler from the bogus one.
5314 # However, it has the same basename, so the bogon will be chosen
5315 # first if we set CC to just the basename; use the full file name.
5316 shift
5317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5318 fi
5319 fi
5320 fi
5321 fi
5322 CC=$ac_cv_prog_CC
5323 if test -n "$CC"; then
5324 echo "$as_me:$LINENO: result: $CC" >&5
5325 echo "${ECHO_T}$CC" >&6
5326 else
5327 echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6
5329 fi
5330
5331 fi
5332 if test -z "$CC"; then
5333 if test -n "$ac_tool_prefix"; then
5334 for ac_prog in cl
5335 do
5336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_CC+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 if test -n "$CC"; then
5344 ac_cv_prog_CC="$CC" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357 done
5358 done
5359
5360 fi
5361 fi
5362 CC=$ac_cv_prog_CC
5363 if test -n "$CC"; then
5364 echo "$as_me:$LINENO: result: $CC" >&5
5365 echo "${ECHO_T}$CC" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371 test -n "$CC" && break
5372 done
5373 fi
5374 if test -z "$CC"; then
5375 ac_ct_CC=$CC
5376 for ac_prog in cl
5377 do
5378 # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 if test -n "$ac_ct_CC"; then
5386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_prog_ac_ct_CC="$ac_prog"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401
5402 fi
5403 fi
5404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5405 if test -n "$ac_ct_CC"; then
5406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5407 echo "${ECHO_T}$ac_ct_CC" >&6
5408 else
5409 echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6
5411 fi
5412
5413 test -n "$ac_ct_CC" && break
5414 done
5415
5416 CC=$ac_ct_CC
5417 fi
5418
5419 fi
5420
5421
5422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5423 See \`config.log' for more details." >&5
5424 echo "$as_me: error: no acceptable C compiler found in \$PATH
5425 See \`config.log' for more details." >&2;}
5426 { (exit 1); exit 1; }; }
5427
5428 # Provide some information about the compiler.
5429 echo "$as_me:$LINENO:" \
5430 "checking for C compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433 (eval $ac_compiler --version </dev/null >&5) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438 (eval $ac_compiler -v </dev/null >&5) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443 (eval $ac_compiler -V </dev/null >&5) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447
5448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459
5460 int
5461 main ()
5462 {
5463 #ifndef __GNUC__
5464 choke me
5465 #endif
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_compiler_gnu=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_compiler_gnu=no
5499 fi
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5502
5503 fi
5504 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5506 GCC=`test $ac_compiler_gnu = yes && echo yes`
5507 ac_test_CFLAGS=${CFLAGS+set}
5508 ac_save_CFLAGS=$CFLAGS
5509 CFLAGS="-g"
5510 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5512 if test "${ac_cv_prog_cc_g+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag"
5540 || test ! -s conftest.err'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_prog_cc_g=yes
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ac_cv_prog_cc_g=no
5558 fi
5559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5562 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5563 if test "$ac_test_CFLAGS" = set; then
5564 CFLAGS=$ac_save_CFLAGS
5565 elif test $ac_cv_prog_cc_g = yes; then
5566 if test "$GCC" = yes; then
5567 CFLAGS="-g -O2"
5568 else
5569 CFLAGS="-g"
5570 fi
5571 else
5572 if test "$GCC" = yes; then
5573 CFLAGS="-O2"
5574 else
5575 CFLAGS=
5576 fi
5577 fi
5578 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5579 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5580 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 ac_cv_prog_cc_stdc=no
5584 ac_save_CC=$CC
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <stdarg.h>
5592 #include <stdio.h>
5593 #include <sys/types.h>
5594 #include <sys/stat.h>
5595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5596 struct buf { int x; };
5597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5598 static char *e (p, i)
5599 char **p;
5600 int i;
5601 {
5602 return p[i];
5603 }
5604 static char *f (char * (*g) (char **, int), char **p, ...)
5605 {
5606 char *s;
5607 va_list v;
5608 va_start (v,p);
5609 s = g (p, va_arg (v,int));
5610 va_end (v);
5611 return s;
5612 }
5613
5614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5615 function prototypes and stuff, but not '\xHH' hex character constants.
5616 These don't provoke an error unfortunately, instead are silently treated
5617 as 'x'. The following induces an error, until -std1 is added to get
5618 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5619 array size at least. It's necessary to write '\x00'==0 to get something
5620 that's true only with -std1. */
5621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5622
5623 int test (int i, double x);
5624 struct s1 {int (*f) (int a);};
5625 struct s2 {int (*f) (double a);};
5626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5627 int argc;
5628 char **argv;
5629 int
5630 main ()
5631 {
5632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 # Don't try gcc -ansi; that turns off useful extensions and
5638 # breaks some systems' header files.
5639 # AIX -qlanglvl=ansi
5640 # Ultrix and OSF/1 -std1
5641 # HP-UX 10.20 and later -Ae
5642 # HP-UX older versions -Aa -D_HPUX_SOURCE
5643 # SVR4 -Xc -D__EXTENSIONS__
5644 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5645 do
5646 CC="$ac_save_CC $ac_arg"
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_prog_cc_stdc=$ac_arg
5670 break
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 fi
5676 rm -f conftest.err conftest.$ac_objext
5677 done
5678 rm -f conftest.$ac_ext conftest.$ac_objext
5679 CC=$ac_save_CC
5680
5681 fi
5682
5683 case "x$ac_cv_prog_cc_stdc" in
5684 x|xno)
5685 echo "$as_me:$LINENO: result: none needed" >&5
5686 echo "${ECHO_T}none needed" >&6 ;;
5687 *)
5688 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5689 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5690 CC="$CC $ac_cv_prog_cc_stdc" ;;
5691 esac
5692
5693 # Some people use a C++ compiler to compile C. Since we use `exit',
5694 # in C++ we need to declare it. In case someone uses the same compiler
5695 # for both compiling C and C++ we need to have the C++ compiler decide
5696 # the declaration of exit, since it's the most demanding environment.
5697 cat >conftest.$ac_ext <<_ACEOF
5698 #ifndef __cplusplus
5699 choke me
5700 #endif
5701 _ACEOF
5702 rm -f conftest.$ac_objext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag"
5712 || test ! -s conftest.err'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; } &&
5718 { ac_try='test -s conftest.$ac_objext'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 for ac_declaration in \
5725 '' \
5726 'extern "C" void std::exit (int) throw (); using std::exit;' \
5727 'extern "C" void std::exit (int); using std::exit;' \
5728 'extern "C" void exit (int) throw ();' \
5729 'extern "C" void exit (int);' \
5730 'void exit (int);'
5731 do
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 $ac_declaration
5739 #include <stdlib.h>
5740 int
5741 main ()
5742 {
5743 exit (42);
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 :
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 continue
5776 fi
5777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_declaration
5785 int
5786 main ()
5787 {
5788 exit (42);
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 break
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 fi
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 done
5823 rm -f conftest*
5824 if test -n "$ac_declaration"; then
5825 echo '#ifdef __cplusplus' >>confdefs.h
5826 echo $ac_declaration >>confdefs.h
5827 echo '#endif' >>confdefs.h
5828 fi
5829
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_ext=c
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
5842
5843 for ac_prog in 'bison -y' byacc
5844 do
5845 # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_YACC+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 if test -n "$YACC"; then
5853 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_YACC="$ac_prog"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868
5869 fi
5870 fi
5871 YACC=$ac_cv_prog_YACC
5872 if test -n "$YACC"; then
5873 echo "$as_me:$LINENO: result: $YACC" >&5
5874 echo "${ECHO_T}$YACC" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878 fi
5879
5880 test -n "$YACC" && break
5881 done
5882 test -n "$YACC" || YACC="yacc"
5883
5884 for ac_prog in flex lex
5885 do
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_LEX+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 if test -n "$LEX"; then
5894 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_LEX="$ac_prog"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909
5910 fi
5911 fi
5912 LEX=$ac_cv_prog_LEX
5913 if test -n "$LEX"; then
5914 echo "$as_me:$LINENO: result: $LEX" >&5
5915 echo "${ECHO_T}$LEX" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921 test -n "$LEX" && break
5922 done
5923 test -n "$LEX" || LEX=":"
5924
5925 if test -z "$LEXLIB"
5926 then
5927 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5928 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5929 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 ac_check_lib_save_LIBS=$LIBS
5933 LIBS="-lfl $LIBS"
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940
5941 /* Override any gcc2 internal prototype to avoid an error. */
5942 #ifdef __cplusplus
5943 extern "C"
5944 #endif
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5947 char yywrap ();
5948 int
5949 main ()
5950 {
5951 yywrap ();
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_cv_lib_fl_yywrap=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_cv_lib_fl_yywrap=no
5984 fi
5985 rm -f conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5987 LIBS=$ac_check_lib_save_LIBS
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5990 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5991 if test $ac_cv_lib_fl_yywrap = yes; then
5992 LEXLIB="-lfl"
5993 else
5994 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5995 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5996 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 ac_check_lib_save_LIBS=$LIBS
6000 LIBS="-ll $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6014 char yywrap ();
6015 int
6016 main ()
6017 {
6018 yywrap ();
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag"
6033 || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_lib_l_yywrap=yes
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_cv_lib_l_yywrap=no
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 LIBS=$ac_check_lib_save_LIBS
6055 fi
6056 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6057 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6058 if test $ac_cv_lib_l_yywrap = yes; then
6059 LEXLIB="-ll"
6060 fi
6061
6062 fi
6063
6064 fi
6065
6066 if test "x$LEX" != "x:"; then
6067 echo "$as_me:$LINENO: checking lex output file root" >&5
6068 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6069 if test "${ac_cv_prog_lex_root+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 # The minimal lex program is just a single line: %%. But some broken lexes
6073 # (Solaris, I think it was) want two %% lines, so accommodate them.
6074 cat >conftest.l <<_ACEOF
6075 %%
6076 %%
6077 _ACEOF
6078 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6079 (eval $LEX conftest.l) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }
6083 if test -f lex.yy.c; then
6084 ac_cv_prog_lex_root=lex.yy
6085 elif test -f lexyy.c; then
6086 ac_cv_prog_lex_root=lexyy
6087 else
6088 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6089 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6090 { (exit 1); exit 1; }; }
6091 fi
6092 fi
6093 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6094 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6095 rm -f conftest.l
6096 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6097
6098 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6099 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6100 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 # POSIX says lex can declare yytext either as a pointer or an array; the
6104 # default is implementation-dependent. Figure out which it is, since
6105 # not all implementations provide the %pointer and %array declarations.
6106 ac_cv_prog_lex_yytext_pointer=no
6107 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6108 ac_save_LIBS=$LIBS
6109 LIBS="$LIBS $LEXLIB"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 `cat $LEX_OUTPUT_ROOT.c`
6112 _ACEOF
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115 (eval $ac_link) 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -z "$ac_c_werror_flag"
6123 || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_prog_lex_yytext_pointer=yes
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140 fi
6141 rm -f conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6143 LIBS=$ac_save_LIBS
6144 rm -f "${LEX_OUTPUT_ROOT}.c"
6145
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6148 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6149 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6150
6151 cat >>confdefs.h <<\_ACEOF
6152 #define YYTEXT_POINTER 1
6153 _ACEOF
6154
6155 fi
6156
6157 fi
6158 if test "$LEX" = :; then
6159 LEX=${am_missing_run}flex
6160 fi
6161
6162 ALL_LINGUAS="fr tr es rw"
6163 if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6166 echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168 if test "${ac_cv_prog_RANLIB+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 if test -n "$RANLIB"; then
6172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187
6188 fi
6189 fi
6190 RANLIB=$ac_cv_prog_RANLIB
6191 if test -n "$RANLIB"; then
6192 echo "$as_me:$LINENO: result: $RANLIB" >&5
6193 echo "${ECHO_T}$RANLIB" >&6
6194 else
6195 echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6
6197 fi
6198
6199 fi
6200 if test -z "$ac_cv_prog_RANLIB"; then
6201 ac_ct_RANLIB=$RANLIB
6202 # Extract the first word of "ranlib", so it can be a program name with args.
6203 set dummy ranlib; ac_word=$2
6204 echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test -n "$ac_ct_RANLIB"; then
6210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_RANLIB="ranlib"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225
6226 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6227 fi
6228 fi
6229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6230 if test -n "$ac_ct_RANLIB"; then
6231 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6232 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6233 else
6234 echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6236 fi
6237
6238 RANLIB=$ac_ct_RANLIB
6239 else
6240 RANLIB="$ac_cv_prog_RANLIB"
6241 fi
6242
6243 ac_ext=c
6244 ac_cpp='$CPP $CPPFLAGS'
6245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6249 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6250 # On Suns, sometimes $CPP names a directory.
6251 if test -n "$CPP" && test -d "$CPP"; then
6252 CPP=
6253 fi
6254 if test -z "$CPP"; then
6255 if test "${ac_cv_prog_CPP+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 # Double quotes because CPP needs to be expanded
6259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6260 do
6261 ac_preproc_ok=false
6262 for ac_c_preproc_warn_flag in '' yes
6263 do
6264 # Use a header file that comes with gcc, so configuring glibc
6265 # with a fresh cross-compiler works.
6266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 # <limits.h> exists even on freestanding compilers.
6268 # On the NeXT, cc -E runs the code through the compiler's parser,
6269 # not just through cpp. "Syntax error" is here to catch this case.
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #ifdef __STDC__
6277 # include <limits.h>
6278 #else
6279 # include <assert.h>
6280 #endif
6281 Syntax error
6282 _ACEOF
6283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null; then
6291 if test -s conftest.err; then
6292 ac_cpp_err=$ac_c_preproc_warn_flag
6293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294 else
6295 ac_cpp_err=
6296 fi
6297 else
6298 ac_cpp_err=yes
6299 fi
6300 if test -z "$ac_cpp_err"; then
6301 :
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 # Broken: fails on valid input.
6307 continue
6308 fi
6309 rm -f conftest.err conftest.$ac_ext
6310
6311 # OK, works on sane cases. Now check whether non-existent headers
6312 # can be detected and how.
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <ac_nonexistent.h>
6320 _ACEOF
6321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } >/dev/null; then
6329 if test -s conftest.err; then
6330 ac_cpp_err=$ac_c_preproc_warn_flag
6331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332 else
6333 ac_cpp_err=
6334 fi
6335 else
6336 ac_cpp_err=yes
6337 fi
6338 if test -z "$ac_cpp_err"; then
6339 # Broken: success on invalid input.
6340 continue
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 # Passes both tests.
6346 ac_preproc_ok=:
6347 break
6348 fi
6349 rm -f conftest.err conftest.$ac_ext
6350
6351 done
6352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353 rm -f conftest.err conftest.$ac_ext
6354 if $ac_preproc_ok; then
6355 break
6356 fi
6357
6358 done
6359 ac_cv_prog_CPP=$CPP
6360
6361 fi
6362 CPP=$ac_cv_prog_CPP
6363 else
6364 ac_cv_prog_CPP=$CPP
6365 fi
6366 echo "$as_me:$LINENO: result: $CPP" >&5
6367 echo "${ECHO_T}$CPP" >&6
6368 ac_preproc_ok=false
6369 for ac_c_preproc_warn_flag in '' yes
6370 do
6371 # Use a header file that comes with gcc, so configuring glibc
6372 # with a fresh cross-compiler works.
6373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374 # <limits.h> exists even on freestanding compilers.
6375 # On the NeXT, cc -E runs the code through the compiler's parser,
6376 # not just through cpp. "Syntax error" is here to catch this case.
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #ifdef __STDC__
6384 # include <limits.h>
6385 #else
6386 # include <assert.h>
6387 #endif
6388 Syntax error
6389 _ACEOF
6390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } >/dev/null; then
6398 if test -s conftest.err; then
6399 ac_cpp_err=$ac_c_preproc_warn_flag
6400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6401 else
6402 ac_cpp_err=
6403 fi
6404 else
6405 ac_cpp_err=yes
6406 fi
6407 if test -z "$ac_cpp_err"; then
6408 :
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 # Broken: fails on valid input.
6414 continue
6415 fi
6416 rm -f conftest.err conftest.$ac_ext
6417
6418 # OK, works on sane cases. Now check whether non-existent headers
6419 # can be detected and how.
6420 cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h. */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <ac_nonexistent.h>
6427 _ACEOF
6428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } >/dev/null; then
6436 if test -s conftest.err; then
6437 ac_cpp_err=$ac_c_preproc_warn_flag
6438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6439 else
6440 ac_cpp_err=
6441 fi
6442 else
6443 ac_cpp_err=yes
6444 fi
6445 if test -z "$ac_cpp_err"; then
6446 # Broken: success on invalid input.
6447 continue
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 # Passes both tests.
6453 ac_preproc_ok=:
6454 break
6455 fi
6456 rm -f conftest.err conftest.$ac_ext
6457
6458 done
6459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6460 rm -f conftest.err conftest.$ac_ext
6461 if $ac_preproc_ok; then
6462 :
6463 else
6464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6465 See \`config.log' for more details." >&5
6466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6467 See \`config.log' for more details." >&2;}
6468 { (exit 1); exit 1; }; }
6469 fi
6470
6471 ac_ext=c
6472 ac_cpp='$CPP $CPPFLAGS'
6473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476
6477
6478 echo "$as_me:$LINENO: checking for egrep" >&5
6479 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6480 if test "${ac_cv_prog_egrep+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6484 then ac_cv_prog_egrep='grep -E'
6485 else ac_cv_prog_egrep='egrep'
6486 fi
6487 fi
6488 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6489 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6490 EGREP=$ac_cv_prog_egrep
6491
6492
6493 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6494 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6495 if test "${ac_cv_header_stdc+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 #include <stdlib.h>
6505 #include <stdarg.h>
6506 #include <string.h>
6507 #include <float.h>
6508
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519 (eval $ac_compile) 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_header_stdc=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_cv_header_stdc=no
6545 fi
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547
6548 if test $ac_cv_header_stdc = yes; then
6549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <string.h>
6557
6558 _ACEOF
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "memchr" >/dev/null 2>&1; then
6561 :
6562 else
6563 ac_cv_header_stdc=no
6564 fi
6565 rm -f conftest*
6566
6567 fi
6568
6569 if test $ac_cv_header_stdc = yes; then
6570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <stdlib.h>
6578
6579 _ACEOF
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "free" >/dev/null 2>&1; then
6582 :
6583 else
6584 ac_cv_header_stdc=no
6585 fi
6586 rm -f conftest*
6587
6588 fi
6589
6590 if test $ac_cv_header_stdc = yes; then
6591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6592 if test "$cross_compiling" = yes; then
6593 :
6594 else
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <ctype.h>
6602 #if ((' ' & 0x0FF) == 0x020)
6603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 #else
6606 # define ISLOWER(c) \
6607 (('a' <= (c) && (c) <= 'i') \
6608 || ('j' <= (c) && (c) <= 'r') \
6609 || ('s' <= (c) && (c) <= 'z'))
6610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6611 #endif
6612
6613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6614 int
6615 main ()
6616 {
6617 int i;
6618 for (i = 0; i < 256; i++)
6619 if (XOR (islower (i), ISLOWER (i))
6620 || toupper (i) != TOUPPER (i))
6621 exit(2);
6622 exit (0);
6623 }
6624 _ACEOF
6625 rm -f conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627 (eval $ac_link) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 :
6637 else
6638 echo "$as_me: program exited with status $ac_status" >&5
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ( exit $ac_status )
6643 ac_cv_header_stdc=no
6644 fi
6645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 fi
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6651 if test $ac_cv_header_stdc = yes; then
6652
6653 cat >>confdefs.h <<\_ACEOF
6654 #define STDC_HEADERS 1
6655 _ACEOF
6656
6657 fi
6658
6659 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6661 if test "${ac_cv_c_const+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670
6671 int
6672 main ()
6673 {
6674 /* FIXME: Include the comments suggested by Paul. */
6675 #ifndef __cplusplus
6676 /* Ultrix mips cc rejects this. */
6677 typedef int charset[2];
6678 const charset x;
6679 /* SunOS 4.1.1 cc rejects this. */
6680 char const *const *ccp;
6681 char **p;
6682 /* NEC SVR4.0.2 mips cc rejects this. */
6683 struct point {int x, y;};
6684 static struct point const zero = {0,0};
6685 /* AIX XL C 1.02.0.0 rejects this.
6686 It does not let you subtract one const X* pointer from another in
6687 an arm of an if-expression whose if-part is not a constant
6688 expression */
6689 const char *g = "string";
6690 ccp = &g + (g ? g-g : 0);
6691 /* HPUX 7.0 cc rejects these. */
6692 ++ccp;
6693 p = (char**) ccp;
6694 ccp = (char const *const *) p;
6695 { /* SCO 3.2v4 cc rejects this. */
6696 char *t;
6697 char const *s = 0 ? (char *) 0 : (char const *) 0;
6698
6699 *t++ = 0;
6700 }
6701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6702 int x[] = {25, 17};
6703 const int *foo = &x[0];
6704 ++foo;
6705 }
6706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6707 typedef const int *iptr;
6708 iptr p = 0;
6709 ++p;
6710 }
6711 { /* AIX XL C 1.02.0.0 rejects this saying
6712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6713 struct s { int j; const int *ap[3]; };
6714 struct s *b; b->j = 5;
6715 }
6716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6717 const int foo = 10;
6718 }
6719 #endif
6720
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 (eval $ac_compile) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_c_const=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ac_cv_c_const=no
6753 fi
6754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6755 fi
6756 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6757 echo "${ECHO_T}$ac_cv_c_const" >&6
6758 if test $ac_cv_c_const = no; then
6759
6760 cat >>confdefs.h <<\_ACEOF
6761 #define const
6762 _ACEOF
6763
6764 fi
6765
6766 echo "$as_me:$LINENO: checking for inline" >&5
6767 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6768 if test "${ac_cv_c_inline+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 ac_cv_c_inline=no
6772 for ac_kw in inline __inline__ __inline; do
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 #ifndef __cplusplus
6780 typedef int foo_t;
6781 static $ac_kw foo_t static_foo () {return 0; }
6782 $ac_kw foo_t foo () {return 0; }
6783 #endif
6784
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_c_inline=$ac_kw; break
6809 else
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 fi
6814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6815 done
6816
6817 fi
6818 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6819 echo "${ECHO_T}$ac_cv_c_inline" >&6
6820
6821
6822 case $ac_cv_c_inline in
6823 inline | yes) ;;
6824 *)
6825 case $ac_cv_c_inline in
6826 no) ac_val=;;
6827 *) ac_val=$ac_cv_c_inline;;
6828 esac
6829 cat >>confdefs.h <<_ACEOF
6830 #ifndef __cplusplus
6831 #define inline $ac_val
6832 #endif
6833 _ACEOF
6834 ;;
6835 esac
6836
6837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6848 inttypes.h stdint.h unistd.h
6849 do
6850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6851 echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6863
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_c_werror_flag"
6876 || test ! -s conftest.err'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; } &&
6882 { ac_try='test -s conftest.$ac_objext'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6888 eval "$as_ac_Header=yes"
6889 else
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 eval "$as_ac_Header=no"
6894 fi
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6900 cat >>confdefs.h <<_ACEOF
6901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 _ACEOF
6903
6904 fi
6905
6906 done
6907
6908
6909 echo "$as_me:$LINENO: checking for off_t" >&5
6910 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6911 if test "${ac_cv_type_off_t+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 $ac_includes_default
6921 int
6922 main ()
6923 {
6924 if ((off_t *) 0)
6925 return 0;
6926 if (sizeof (off_t))
6927 return 0;
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -z "$ac_c_werror_flag"
6942 || test ! -s conftest.err'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; } &&
6948 { ac_try='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_type_off_t=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 ac_cv_type_off_t=no
6960 fi
6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6964 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6965 if test $ac_cv_type_off_t = yes; then
6966 :
6967 else
6968
6969 cat >>confdefs.h <<_ACEOF
6970 #define off_t long
6971 _ACEOF
6972
6973 fi
6974
6975 echo "$as_me:$LINENO: checking for size_t" >&5
6976 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6977 if test "${ac_cv_type_size_t+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 $ac_includes_default
6987 int
6988 main ()
6989 {
6990 if ((size_t *) 0)
6991 return 0;
6992 if (sizeof (size_t))
6993 return 0;
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 ac_cv_type_size_t=yes
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ac_cv_type_size_t=no
7026 fi
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7030 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7031 if test $ac_cv_type_size_t = yes; then
7032 :
7033 else
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define size_t unsigned
7037 _ACEOF
7038
7039 fi
7040
7041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7042 # for constant arguments. Useless!
7043 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7044 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7045 if test "${ac_cv_working_alloca_h+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 #include <alloca.h>
7055 int
7056 main ()
7057 {
7058 char *p = (char *) alloca (2 * sizeof (int));
7059 ;
7060 return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_working_alloca_h=yes
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 ac_cv_working_alloca_h=no
7091 fi
7092 rm -f conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7094 fi
7095 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7096 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7097 if test $ac_cv_working_alloca_h = yes; then
7098
7099 cat >>confdefs.h <<\_ACEOF
7100 #define HAVE_ALLOCA_H 1
7101 _ACEOF
7102
7103 fi
7104
7105 echo "$as_me:$LINENO: checking for alloca" >&5
7106 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7107 if test "${ac_cv_func_alloca_works+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 #ifdef __GNUC__
7117 # define alloca __builtin_alloca
7118 #else
7119 # ifdef _MSC_VER
7120 # include <malloc.h>
7121 # define alloca _alloca
7122 # else
7123 # if HAVE_ALLOCA_H
7124 # include <alloca.h>
7125 # else
7126 # ifdef _AIX
7127 #pragma alloca
7128 # else
7129 # ifndef alloca /* predefined by HP cc +Olibcalls */
7130 char *alloca ();
7131 # endif
7132 # endif
7133 # endif
7134 # endif
7135 #endif
7136
7137 int
7138 main ()
7139 {
7140 char *p = (char *) alloca (1);
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_func_alloca_works=yes
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ac_cv_func_alloca_works=no
7173 fi
7174 rm -f conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176 fi
7177 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7178 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7179
7180 if test $ac_cv_func_alloca_works = yes; then
7181
7182 cat >>confdefs.h <<\_ACEOF
7183 #define HAVE_ALLOCA 1
7184 _ACEOF
7185
7186 else
7187 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7188 # that cause trouble. Some versions do not even contain alloca or
7189 # contain a buggy version. If you still want to use their alloca,
7190 # use ar to extract alloca.o from them instead of compiling alloca.c.
7191
7192 ALLOCA=alloca.$ac_objext
7193
7194 cat >>confdefs.h <<\_ACEOF
7195 #define C_ALLOCA 1
7196 _ACEOF
7197
7198
7199 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7200 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7201 if test "${ac_cv_os_cray+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #if defined(CRAY) && ! defined(CRAY2)
7211 webecray
7212 #else
7213 wenotbecray
7214 #endif
7215
7216 _ACEOF
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 $EGREP "webecray" >/dev/null 2>&1; then
7219 ac_cv_os_cray=yes
7220 else
7221 ac_cv_os_cray=no
7222 fi
7223 rm -f conftest*
7224
7225 fi
7226 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7227 echo "${ECHO_T}$ac_cv_os_cray" >&6
7228 if test $ac_cv_os_cray = yes; then
7229 for ac_func in _getb67 GETB67 getb67; do
7230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7231 echo "$as_me:$LINENO: checking for $ac_func" >&5
7232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7233 if eval "test \"\${$as_ac_var+set}\" = set"; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7244 #define $ac_func innocuous_$ac_func
7245
7246 /* System header to define __stub macros and hopefully few prototypes,
7247 which can conflict with char $ac_func (); below.
7248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249 <limits.h> exists even on freestanding compilers. */
7250
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256
7257 #undef $ac_func
7258
7259 /* Override any gcc2 internal prototype to avoid an error. */
7260 #ifdef __cplusplus
7261 extern "C"
7262 {
7263 #endif
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7266 char $ac_func ();
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7271 choke me
7272 #else
7273 char (*f) () = $ac_func;
7274 #endif
7275 #ifdef __cplusplus
7276 }
7277 #endif
7278
7279 int
7280 main ()
7281 {
7282 return f != $ac_func;
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289 (eval $ac_link) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag"
7297 || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_var=yes"
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 eval "$as_ac_var=no"
7315 fi
7316 rm -f conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7318 fi
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322
7323 cat >>confdefs.h <<_ACEOF
7324 #define CRAY_STACKSEG_END $ac_func
7325 _ACEOF
7326
7327 break
7328 fi
7329
7330 done
7331 fi
7332
7333 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7334 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7335 if test "${ac_cv_c_stack_direction+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 if test "$cross_compiling" = yes; then
7339 ac_cv_c_stack_direction=0
7340 else
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 int
7348 find_stack_direction ()
7349 {
7350 static char *addr = 0;
7351 auto char dummy;
7352 if (addr == 0)
7353 {
7354 addr = &dummy;
7355 return find_stack_direction ();
7356 }
7357 else
7358 return (&dummy > addr) ? 1 : -1;
7359 }
7360
7361 int
7362 main ()
7363 {
7364 exit (find_stack_direction () < 0);
7365 }
7366 _ACEOF
7367 rm -f conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_c_stack_direction=1
7379 else
7380 echo "$as_me: program exited with status $ac_status" >&5
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ( exit $ac_status )
7385 ac_cv_c_stack_direction=-1
7386 fi
7387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7388 fi
7389 fi
7390 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7391 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7392
7393 cat >>confdefs.h <<_ACEOF
7394 #define STACK_DIRECTION $ac_cv_c_stack_direction
7395 _ACEOF
7396
7397
7398 fi
7399
7400
7401
7402 for ac_header in stdlib.h unistd.h
7403 do
7404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo "$as_me:$LINENO: checking for $ac_header" >&5
7407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 fi
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7413 else
7414 # Is the header compilable?
7415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7424 #include <$ac_header>
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest.$ac_objext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_header_compiler=yes
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_header_compiler=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7458
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <$ac_header>
7469 _ACEOF
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } >/dev/null; then
7478 if test -s conftest.err; then
7479 ac_cpp_err=$ac_c_preproc_warn_flag
7480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7481 else
7482 ac_cpp_err=
7483 fi
7484 else
7485 ac_cpp_err=yes
7486 fi
7487 if test -z "$ac_cpp_err"; then
7488 ac_header_preproc=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493 ac_header_preproc=no
7494 fi
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7498
7499 # So? What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7501 yes:no: )
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7506 ac_header_preproc=yes
7507 ;;
7508 no:yes:* )
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7521 (
7522 cat <<\_ASBOX
7523 ## ------------------------------------------ ##
7524 ## Report this to the AC_PACKAGE_NAME lists. ##
7525 ## ------------------------------------------ ##
7526 _ASBOX
7527 ) |
7528 sed "s/^/$as_me: WARNING: /" >&2
7529 ;;
7530 esac
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 eval "$as_ac_Header=\$ac_header_preproc"
7537 fi
7538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7540
7541 fi
7542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543 cat >>confdefs.h <<_ACEOF
7544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 _ACEOF
7546
7547 fi
7548
7549 done
7550
7551
7552 for ac_func in getpagesize
7553 do
7554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7555 echo "$as_me:$LINENO: checking for $ac_func" >&5
7556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7557 if eval "test \"\${$as_ac_var+set}\" = set"; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7568 #define $ac_func innocuous_$ac_func
7569
7570 /* System header to define __stub macros and hopefully few prototypes,
7571 which can conflict with char $ac_func (); below.
7572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573 <limits.h> exists even on freestanding compilers. */
7574
7575 #ifdef __STDC__
7576 # include <limits.h>
7577 #else
7578 # include <assert.h>
7579 #endif
7580
7581 #undef $ac_func
7582
7583 /* Override any gcc2 internal prototype to avoid an error. */
7584 #ifdef __cplusplus
7585 extern "C"
7586 {
7587 #endif
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590 char $ac_func ();
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7595 choke me
7596 #else
7597 char (*f) () = $ac_func;
7598 #endif
7599 #ifdef __cplusplus
7600 }
7601 #endif
7602
7603 int
7604 main ()
7605 {
7606 return f != $ac_func;
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -z "$ac_c_werror_flag"
7621 || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 eval "$as_ac_var=yes"
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 eval "$as_ac_var=no"
7639 fi
7640 rm -f conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642 fi
7643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7645 if test `eval echo '${'$as_ac_var'}'` = yes; then
7646 cat >>confdefs.h <<_ACEOF
7647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7648 _ACEOF
7649
7650 fi
7651 done
7652
7653 echo "$as_me:$LINENO: checking for working mmap" >&5
7654 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7655 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 if test "$cross_compiling" = yes; then
7659 ac_cv_func_mmap_fixed_mapped=no
7660 else
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h. */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667 $ac_includes_default
7668 /* malloc might have been renamed as rpl_malloc. */
7669 #undef malloc
7670
7671 /* Thanks to Mike Haertel and Jim Avera for this test.
7672 Here is a matrix of mmap possibilities:
7673 mmap private not fixed
7674 mmap private fixed at somewhere currently unmapped
7675 mmap private fixed at somewhere already mapped
7676 mmap shared not fixed
7677 mmap shared fixed at somewhere currently unmapped
7678 mmap shared fixed at somewhere already mapped
7679 For private mappings, we should verify that changes cannot be read()
7680 back from the file, nor mmap's back from the file at a different
7681 address. (There have been systems where private was not correctly
7682 implemented like the infamous i386 svr4.0, and systems where the
7683 VM page cache was not coherent with the file system buffer cache
7684 like early versions of FreeBSD and possibly contemporary NetBSD.)
7685 For shared mappings, we should conversely verify that changes get
7686 propagated back to all the places they're supposed to be.
7687
7688 Grep wants private fixed already mapped.
7689 The main things grep needs to know about mmap are:
7690 * does it exist and is it safe to write into the mmap'd area
7691 * how to use it (BSD variants) */
7692
7693 #include <fcntl.h>
7694 #include <sys/mman.h>
7695
7696 #if !STDC_HEADERS && !HAVE_STDLIB_H
7697 char *malloc ();
7698 #endif
7699
7700 /* This mess was copied from the GNU getpagesize.h. */
7701 #if !HAVE_GETPAGESIZE
7702 /* Assume that all systems that can run configure have sys/param.h. */
7703 # if !HAVE_SYS_PARAM_H
7704 # define HAVE_SYS_PARAM_H 1
7705 # endif
7706
7707 # ifdef _SC_PAGESIZE
7708 # define getpagesize() sysconf(_SC_PAGESIZE)
7709 # else /* no _SC_PAGESIZE */
7710 # if HAVE_SYS_PARAM_H
7711 # include <sys/param.h>
7712 # ifdef EXEC_PAGESIZE
7713 # define getpagesize() EXEC_PAGESIZE
7714 # else /* no EXEC_PAGESIZE */
7715 # ifdef NBPG
7716 # define getpagesize() NBPG * CLSIZE
7717 # ifndef CLSIZE
7718 # define CLSIZE 1
7719 # endif /* no CLSIZE */
7720 # else /* no NBPG */
7721 # ifdef NBPC
7722 # define getpagesize() NBPC
7723 # else /* no NBPC */
7724 # ifdef PAGESIZE
7725 # define getpagesize() PAGESIZE
7726 # endif /* PAGESIZE */
7727 # endif /* no NBPC */
7728 # endif /* no NBPG */
7729 # endif /* no EXEC_PAGESIZE */
7730 # else /* no HAVE_SYS_PARAM_H */
7731 # define getpagesize() 8192 /* punt totally */
7732 # endif /* no HAVE_SYS_PARAM_H */
7733 # endif /* no _SC_PAGESIZE */
7734
7735 #endif /* no HAVE_GETPAGESIZE */
7736
7737 int
7738 main ()
7739 {
7740 char *data, *data2, *data3;
7741 int i, pagesize;
7742 int fd;
7743
7744 pagesize = getpagesize ();
7745
7746 /* First, make a file with some known garbage in it. */
7747 data = (char *) malloc (pagesize);
7748 if (!data)
7749 exit (1);
7750 for (i = 0; i < pagesize; ++i)
7751 *(data + i) = rand ();
7752 umask (0);
7753 fd = creat ("conftest.mmap", 0600);
7754 if (fd < 0)
7755 exit (1);
7756 if (write (fd, data, pagesize) != pagesize)
7757 exit (1);
7758 close (fd);
7759
7760 /* Next, try to mmap the file at a fixed address which already has
7761 something else allocated at it. If we can, also make sure that
7762 we see the same garbage. */
7763 fd = open ("conftest.mmap", O_RDWR);
7764 if (fd < 0)
7765 exit (1);
7766 data2 = (char *) malloc (2 * pagesize);
7767 if (!data2)
7768 exit (1);
7769 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7770 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7771 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7772 exit (1);
7773 for (i = 0; i < pagesize; ++i)
7774 if (*(data + i) != *(data2 + i))
7775 exit (1);
7776
7777 /* Finally, make sure that changes to the mapped area do not
7778 percolate back to the file as seen by read(). (This is a bug on
7779 some variants of i386 svr4.0.) */
7780 for (i = 0; i < pagesize; ++i)
7781 *(data2 + i) = *(data2 + i) + 1;
7782 data3 = (char *) malloc (pagesize);
7783 if (!data3)
7784 exit (1);
7785 if (read (fd, data3, pagesize) != pagesize)
7786 exit (1);
7787 for (i = 0; i < pagesize; ++i)
7788 if (*(data + i) != *(data3 + i))
7789 exit (1);
7790 close (fd);
7791 exit (0);
7792 }
7793 _ACEOF
7794 rm -f conftest$ac_exeext
7795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7796 (eval $ac_link) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_func_mmap_fixed_mapped=yes
7806 else
7807 echo "$as_me: program exited with status $ac_status" >&5
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 ( exit $ac_status )
7812 ac_cv_func_mmap_fixed_mapped=no
7813 fi
7814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7815 fi
7816 fi
7817 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7818 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7819 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7820
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_MMAP 1
7823 _ACEOF
7824
7825 fi
7826 rm -f conftest.mmap
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7839 unistd.h values.h sys/param.h
7840 do
7841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7843 echo "$as_me:$LINENO: checking for $ac_header" >&5
7844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 fi
7848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7850 else
7851 # Is the header compilable?
7852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 $ac_includes_default
7861 #include <$ac_header>
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_header_compiler=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_header_compiler=no
7891 fi
7892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7895
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <$ac_header>
7906 _ACEOF
7907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } >/dev/null; then
7915 if test -s conftest.err; then
7916 ac_cpp_err=$ac_c_preproc_warn_flag
7917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7918 else
7919 ac_cpp_err=
7920 fi
7921 else
7922 ac_cpp_err=yes
7923 fi
7924 if test -z "$ac_cpp_err"; then
7925 ac_header_preproc=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 ac_header_preproc=no
7931 fi
7932 rm -f conftest.err conftest.$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7934 echo "${ECHO_T}$ac_header_preproc" >&6
7935
7936 # So? What about this header?
7937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7938 yes:no: )
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7943 ac_header_preproc=yes
7944 ;;
7945 no:yes:* )
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7958 (
7959 cat <<\_ASBOX
7960 ## ------------------------------------------ ##
7961 ## Report this to the AC_PACKAGE_NAME lists. ##
7962 ## ------------------------------------------ ##
7963 _ASBOX
7964 ) |
7965 sed "s/^/$as_me: WARNING: /" >&2
7966 ;;
7967 esac
7968 echo "$as_me:$LINENO: checking for $ac_header" >&5
7969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 eval "$as_ac_Header=\$ac_header_preproc"
7974 fi
7975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7977
7978 fi
7979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7980 cat >>confdefs.h <<_ACEOF
7981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7982 _ACEOF
7983
7984 fi
7985
7986 done
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7999 __argz_count __argz_stringify __argz_next
8000 do
8001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8002 echo "$as_me:$LINENO: checking for $ac_func" >&5
8003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8004 if eval "test \"\${$as_ac_var+set}\" = set"; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8015 #define $ac_func innocuous_$ac_func
8016
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func (); below.
8019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8020 <limits.h> exists even on freestanding compilers. */
8021
8022 #ifdef __STDC__
8023 # include <limits.h>
8024 #else
8025 # include <assert.h>
8026 #endif
8027
8028 #undef $ac_func
8029
8030 /* Override any gcc2 internal prototype to avoid an error. */
8031 #ifdef __cplusplus
8032 extern "C"
8033 {
8034 #endif
8035 /* We use char because int might match the return type of a gcc2
8036 builtin and then its argument prototype would still apply. */
8037 char $ac_func ();
8038 /* The GNU C library defines this for functions which it implements
8039 to always fail with ENOSYS. Some functions are actually named
8040 something starting with __ and the normal name is an alias. */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 choke me
8043 #else
8044 char (*f) () = $ac_func;
8045 #endif
8046 #ifdef __cplusplus
8047 }
8048 #endif
8049
8050 int
8051 main ()
8052 {
8053 return f != $ac_func;
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag"
8068 || test ! -s conftest.err'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; } &&
8074 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 eval "$as_ac_var=yes"
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 eval "$as_ac_var=no"
8086 fi
8087 rm -f conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089 fi
8090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8092 if test `eval echo '${'$as_ac_var'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 fi
8098 done
8099
8100
8101 if test "${ac_cv_func_stpcpy+set}" != "set"; then
8102
8103 for ac_func in stpcpy
8104 do
8105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8106 echo "$as_me:$LINENO: checking for $ac_func" >&5
8107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_var+set}\" = set"; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8119 #define $ac_func innocuous_$ac_func
8120
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func (); below.
8123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8124 <limits.h> exists even on freestanding compilers. */
8125
8126 #ifdef __STDC__
8127 # include <limits.h>
8128 #else
8129 # include <assert.h>
8130 #endif
8131
8132 #undef $ac_func
8133
8134 /* Override any gcc2 internal prototype to avoid an error. */
8135 #ifdef __cplusplus
8136 extern "C"
8137 {
8138 #endif
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8141 char $ac_func ();
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 char (*f) () = $ac_func;
8149 #endif
8150 #ifdef __cplusplus
8151 }
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return f != $ac_func;
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 eval "$as_ac_var=yes"
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 eval "$as_ac_var=no"
8190 fi
8191 rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 fi
8194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8196 if test `eval echo '${'$as_ac_var'}'` = yes; then
8197 cat >>confdefs.h <<_ACEOF
8198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8199 _ACEOF
8200
8201 fi
8202 done
8203
8204 fi
8205 if test "${ac_cv_func_stpcpy}" = "yes"; then
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_STPCPY 1
8209 _ACEOF
8210
8211 fi
8212
8213 if test $ac_cv_header_locale_h = yes; then
8214 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8215 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8216 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 #include <locale.h>
8226 int
8227 main ()
8228 {
8229 return LC_MESSAGES
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 am_cv_val_LC_MESSAGES=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 am_cv_val_LC_MESSAGES=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 fi
8266 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8267 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8268 if test $am_cv_val_LC_MESSAGES = yes; then
8269
8270 cat >>confdefs.h <<\_ACEOF
8271 #define HAVE_LC_MESSAGES 1
8272 _ACEOF
8273
8274 fi
8275 fi
8276 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8277 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8278 # Check whether --enable-nls or --disable-nls was given.
8279 if test "${enable_nls+set}" = set; then
8280 enableval="$enable_nls"
8281 USE_NLS=$enableval
8282 else
8283 USE_NLS=yes
8284 fi;
8285 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8286 echo "${ECHO_T}$USE_NLS" >&6
8287
8288
8289 USE_INCLUDED_LIBINTL=no
8290
8291 if test "$USE_NLS" = "yes"; then
8292 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8293 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8294
8295 # Check whether --with-included-gettext or --without-included-gettext was given.
8296 if test "${with_included_gettext+set}" = set; then
8297 withval="$with_included_gettext"
8298 nls_cv_force_use_gnu_gettext=$withval
8299 else
8300 nls_cv_force_use_gnu_gettext=no
8301 fi;
8302 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8303 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8304
8305 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8306 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8307 nls_cv_header_intl=
8308 nls_cv_header_libgt=
8309 CATOBJEXT=
8310
8311 if test "${ac_cv_header_libintl_h+set}" = set; then
8312 echo "$as_me:$LINENO: checking for libintl.h" >&5
8313 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8314 if test "${ac_cv_header_libintl_h+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8318 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8319 else
8320 # Is the header compilable?
8321 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8322 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #include <libintl.h>
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_header_compiler=yes
8355 else
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ac_header_compiler=no
8360 fi
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8363 echo "${ECHO_T}$ac_header_compiler" >&6
8364
8365 # Is the header present?
8366 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8367 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #include <libintl.h>
8375 _ACEOF
8376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } >/dev/null; then
8384 if test -s conftest.err; then
8385 ac_cpp_err=$ac_c_preproc_warn_flag
8386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8387 else
8388 ac_cpp_err=
8389 fi
8390 else
8391 ac_cpp_err=yes
8392 fi
8393 if test -z "$ac_cpp_err"; then
8394 ac_header_preproc=yes
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_header_preproc=no
8400 fi
8401 rm -f conftest.err conftest.$ac_ext
8402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8403 echo "${ECHO_T}$ac_header_preproc" >&6
8404
8405 # So? What about this header?
8406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8407 yes:no: )
8408 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8409 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8411 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8412 ac_header_preproc=yes
8413 ;;
8414 no:yes:* )
8415 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8416 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8418 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8420 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8422 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8424 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8426 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8427 (
8428 cat <<\_ASBOX
8429 ## ------------------------------------------ ##
8430 ## Report this to the AC_PACKAGE_NAME lists. ##
8431 ## ------------------------------------------ ##
8432 _ASBOX
8433 ) |
8434 sed "s/^/$as_me: WARNING: /" >&2
8435 ;;
8436 esac
8437 echo "$as_me:$LINENO: checking for libintl.h" >&5
8438 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8439 if test "${ac_cv_header_libintl_h+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 ac_cv_header_libintl_h=$ac_header_preproc
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8445 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8446
8447 fi
8448 if test $ac_cv_header_libintl_h = yes; then
8449 echo "$as_me:$LINENO: checking for gettext in libc" >&5
8450 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8451 if test "${gt_cv_func_gettext_libc+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 #include <libintl.h>
8461 int
8462 main ()
8463 {
8464 return (int) gettext ("")
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag"
8479 || test ! -s conftest.err'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 gt_cv_func_gettext_libc=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 gt_cv_func_gettext_libc=no
8497 fi
8498 rm -f conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 fi
8501 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8502 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8503
8504 if test "$gt_cv_func_gettext_libc" != "yes"; then
8505 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8506 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8507 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 ac_check_lib_save_LIBS=$LIBS
8511 LIBS="-lintl $LIBS"
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 #ifdef __cplusplus
8521 extern "C"
8522 #endif
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8525 char bindtextdomain ();
8526 int
8527 main ()
8528 {
8529 bindtextdomain ();
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8536 (eval $ac_link) 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag"
8544 || test ! -s conftest.err'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_intl_bindtextdomain=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_lib_intl_bindtextdomain=no
8562 fi
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 LIBS=$ac_check_lib_save_LIBS
8566 fi
8567 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8568 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8569 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8570 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8571 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8572 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581
8582 int
8583 main ()
8584 {
8585 return (int) gettext ("")
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_c_werror_flag"
8600 || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 gt_cv_func_gettext_libintl=yes
8613 else
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 gt_cv_func_gettext_libintl=no
8618 fi
8619 rm -f conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 fi
8622 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8623 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8624 fi
8625
8626 fi
8627
8628 if test "$gt_cv_func_gettext_libc" = "yes" \
8629 || test "$gt_cv_func_gettext_libintl" = "yes"; then
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_GETTEXT 1
8633 _ACEOF
8634
8635 # Extract the first word of "msgfmt", so it can be a program name with args.
8636 set dummy msgfmt; ac_word=$2
8637 echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639 if test "${ac_cv_path_MSGFMT+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 case "$MSGFMT" in
8643 /*)
8644 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8648 for ac_dir in $PATH; do
8649 test -z "$ac_dir" && ac_dir=.
8650 if test -f $ac_dir/$ac_word; then
8651 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8652 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8653 break
8654 fi
8655 fi
8656 done
8657 IFS="$ac_save_ifs"
8658 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8659 ;;
8660 esac
8661 fi
8662 MSGFMT="$ac_cv_path_MSGFMT"
8663 if test -n "$MSGFMT"; then
8664 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8665 echo "${ECHO_T}$MSGFMT" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8669 fi
8670 if test "$MSGFMT" != "no"; then
8671
8672 for ac_func in dcgettext
8673 do
8674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8675 echo "$as_me:$LINENO: checking for $ac_func" >&5
8676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8677 if eval "test \"\${$as_ac_var+set}\" = set"; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8688 #define $ac_func innocuous_$ac_func
8689
8690 /* System header to define __stub macros and hopefully few prototypes,
8691 which can conflict with char $ac_func (); below.
8692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8693 <limits.h> exists even on freestanding compilers. */
8694
8695 #ifdef __STDC__
8696 # include <limits.h>
8697 #else
8698 # include <assert.h>
8699 #endif
8700
8701 #undef $ac_func
8702
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 #ifdef __cplusplus
8705 extern "C"
8706 {
8707 #endif
8708 /* We use char because int might match the return type of a gcc2
8709 builtin and then its argument prototype would still apply. */
8710 char $ac_func ();
8711 /* The GNU C library defines this for functions which it implements
8712 to always fail with ENOSYS. Some functions are actually named
8713 something starting with __ and the normal name is an alias. */
8714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8715 choke me
8716 #else
8717 char (*f) () = $ac_func;
8718 #endif
8719 #ifdef __cplusplus
8720 }
8721 #endif
8722
8723 int
8724 main ()
8725 {
8726 return f != $ac_func;
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 eval "$as_ac_var=yes"
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 eval "$as_ac_var=no"
8759 fi
8760 rm -f conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 fi
8763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8765 if test `eval echo '${'$as_ac_var'}'` = yes; then
8766 cat >>confdefs.h <<_ACEOF
8767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8768 _ACEOF
8769
8770 fi
8771 done
8772
8773 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8774 set dummy gmsgfmt; ac_word=$2
8775 echo "$as_me:$LINENO: checking for $ac_word" >&5
8776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8777 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 case $GMSGFMT in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8783 ;;
8784 *)
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8792 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796 done
8797 done
8798
8799 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8800 ;;
8801 esac
8802 fi
8803 GMSGFMT=$ac_cv_path_GMSGFMT
8804
8805 if test -n "$GMSGFMT"; then
8806 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8807 echo "${ECHO_T}$GMSGFMT" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8811 fi
8812
8813 # Extract the first word of "xgettext", so it can be a program name with args.
8814 set dummy xgettext; ac_word=$2
8815 echo "$as_me:$LINENO: checking for $ac_word" >&5
8816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 case "$XGETTEXT" in
8821 /*)
8822 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8823 ;;
8824 *)
8825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8826 for ac_dir in $PATH; do
8827 test -z "$ac_dir" && ac_dir=.
8828 if test -f $ac_dir/$ac_word; then
8829 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8830 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8831 break
8832 fi
8833 fi
8834 done
8835 IFS="$ac_save_ifs"
8836 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8837 ;;
8838 esac
8839 fi
8840 XGETTEXT="$ac_cv_path_XGETTEXT"
8841 if test -n "$XGETTEXT"; then
8842 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8843 echo "${ECHO_T}$XGETTEXT" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8847 fi
8848
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855
8856 int
8857 main ()
8858 {
8859 extern int _nl_msg_cat_cntr;
8860 return _nl_msg_cat_cntr
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -z "$ac_c_werror_flag"
8875 || test ! -s conftest.err'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 CATOBJEXT=.gmo
8888 DATADIRNAME=share
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 CATOBJEXT=.mo
8894 DATADIRNAME=lib
8895 fi
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 INSTOBJEXT=.mo
8899 fi
8900 fi
8901
8902 fi
8903
8904
8905
8906
8907 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8908 # Neither gettext nor catgets in included in the C library.
8909 # Fall back on GNU gettext library (assuming it is present).
8910 nls_cv_use_gnu_gettext=yes
8911 fi
8912 fi
8913
8914 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8915 INTLOBJS="\$(GETTOBJS)"
8916 # Extract the first word of "msgfmt", so it can be a program name with args.
8917 set dummy msgfmt; ac_word=$2
8918 echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920 if test "${ac_cv_path_MSGFMT+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 case "$MSGFMT" in
8924 /*)
8925 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8926 ;;
8927 *)
8928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8929 for ac_dir in $PATH; do
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/$ac_word; then
8932 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8933 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8934 break
8935 fi
8936 fi
8937 done
8938 IFS="$ac_save_ifs"
8939 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8940 ;;
8941 esac
8942 fi
8943 MSGFMT="$ac_cv_path_MSGFMT"
8944 if test -n "$MSGFMT"; then
8945 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8946 echo "${ECHO_T}$MSGFMT" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6
8950 fi
8951
8952 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8953 set dummy gmsgfmt; ac_word=$2
8954 echo "$as_me:$LINENO: checking for $ac_word" >&5
8955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8956 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 case $GMSGFMT in
8960 [\\/]* | ?:[\\/]*)
8961 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8962 ;;
8963 *)
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977
8978 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8979 ;;
8980 esac
8981 fi
8982 GMSGFMT=$ac_cv_path_GMSGFMT
8983
8984 if test -n "$GMSGFMT"; then
8985 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8986 echo "${ECHO_T}$GMSGFMT" >&6
8987 else
8988 echo "$as_me:$LINENO: result: no" >&5
8989 echo "${ECHO_T}no" >&6
8990 fi
8991
8992 # Extract the first word of "xgettext", so it can be a program name with args.
8993 set dummy xgettext; ac_word=$2
8994 echo "$as_me:$LINENO: checking for $ac_word" >&5
8995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8996 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 case "$XGETTEXT" in
9000 /*)
9001 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9002 ;;
9003 *)
9004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9005 for ac_dir in $PATH; do
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f $ac_dir/$ac_word; then
9008 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9009 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9010 break
9011 fi
9012 fi
9013 done
9014 IFS="$ac_save_ifs"
9015 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9016 ;;
9017 esac
9018 fi
9019 XGETTEXT="$ac_cv_path_XGETTEXT"
9020 if test -n "$XGETTEXT"; then
9021 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9022 echo "${ECHO_T}$XGETTEXT" >&6
9023 else
9024 echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6
9026 fi
9027
9028
9029 USE_INCLUDED_LIBINTL=yes
9030 CATOBJEXT=.gmo
9031 INSTOBJEXT=.mo
9032 DATADIRNAME=share
9033 INTLDEPS='$(top_builddir)/../intl/libintl.a'
9034 INTLLIBS=$INTLDEPS
9035 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9036 nls_cv_header_intl=libintl.h
9037 nls_cv_header_libgt=libgettext.h
9038 fi
9039
9040 if test "$XGETTEXT" != ":"; then
9041 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9042 : ;
9043 else
9044 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
9045 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
9046 XGETTEXT=":"
9047 fi
9048 fi
9049
9050 # We need to process the po/ directory.
9051 POSUB=po
9052 else
9053 DATADIRNAME=share
9054 nls_cv_header_intl=libintl.h
9055 nls_cv_header_libgt=libgettext.h
9056 fi
9057
9058 # If this is used in GNU gettext we have to set USE_NLS to `yes'
9059 # because some of the sources are only built for this goal.
9060 if test "$PACKAGE" = gettext; then
9061 USE_NLS=yes
9062 USE_INCLUDED_LIBINTL=yes
9063 fi
9064
9065 for lang in $ALL_LINGUAS; do
9066 GMOFILES="$GMOFILES $lang.gmo"
9067 POFILES="$POFILES $lang.po"
9068 done
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 if test "x$CATOBJEXT" != "x"; then
9082
9083 cat >>confdefs.h <<\_ACEOF
9084 #define ENABLE_NLS 1
9085 _ACEOF
9086
9087 fi
9088
9089
9090 if test "x$CATOBJEXT" != "x"; then
9091 if test "x$ALL_LINGUAS" = "x"; then
9092 LINGUAS=
9093 else
9094 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9095 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9096 NEW_LINGUAS=
9097 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9098 case "$ALL_LINGUAS" in
9099 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9100 esac
9101 done
9102 LINGUAS=$NEW_LINGUAS
9103 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9104 echo "${ECHO_T}$LINGUAS" >&6
9105 fi
9106
9107 if test -n "$LINGUAS"; then
9108 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9109 fi
9110 fi
9111
9112 if test $ac_cv_header_locale_h = yes; then
9113 INCLUDE_LOCALE_H="#include <locale.h>"
9114 else
9115 INCLUDE_LOCALE_H="\
9116 /* The system does not provide the header <locale.h>. Take care yourself. */"
9117 fi
9118
9119
9120 if test -f $srcdir/po2tbl.sed.in; then
9121 if test "$CATOBJEXT" = ".cat"; then
9122 if test "${ac_cv_header_linux_version_h+set}" = set; then
9123 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9124 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9125 if test "${ac_cv_header_linux_version_h+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 fi
9128 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9129 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9130 else
9131 # Is the header compilable?
9132 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9133 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 $ac_includes_default
9141 #include <linux/version.h>
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_header_compiler=yes
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 ac_header_compiler=no
9171 fi
9172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9174 echo "${ECHO_T}$ac_header_compiler" >&6
9175
9176 # Is the header present?
9177 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9178 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <linux/version.h>
9186 _ACEOF
9187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } >/dev/null; then
9195 if test -s conftest.err; then
9196 ac_cpp_err=$ac_c_preproc_warn_flag
9197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9198 else
9199 ac_cpp_err=
9200 fi
9201 else
9202 ac_cpp_err=yes
9203 fi
9204 if test -z "$ac_cpp_err"; then
9205 ac_header_preproc=yes
9206 else
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 ac_header_preproc=no
9211 fi
9212 rm -f conftest.err conftest.$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9214 echo "${ECHO_T}$ac_header_preproc" >&6
9215
9216 # So? What about this header?
9217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9218 yes:no: )
9219 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9220 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9222 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9223 ac_header_preproc=yes
9224 ;;
9225 no:yes:* )
9226 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9227 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9229 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9231 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9233 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9235 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9237 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9238 (
9239 cat <<\_ASBOX
9240 ## ------------------------------------------ ##
9241 ## Report this to the AC_PACKAGE_NAME lists. ##
9242 ## ------------------------------------------ ##
9243 _ASBOX
9244 ) |
9245 sed "s/^/$as_me: WARNING: /" >&2
9246 ;;
9247 esac
9248 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9249 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9250 if test "${ac_cv_header_linux_version_h+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 ac_cv_header_linux_version_h=$ac_header_preproc
9254 fi
9255 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9256 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9257
9258 fi
9259 if test $ac_cv_header_linux_version_h = yes; then
9260 msgformat=linux
9261 else
9262 msgformat=xopen
9263 fi
9264
9265
9266
9267 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9268 fi
9269 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9270 $srcdir/po2tbl.sed.in > po2tbl.sed
9271 fi
9272
9273 if test "$PACKAGE" = "gettext"; then
9274 GT_NO="#NO#"
9275 GT_YES=
9276 else
9277 GT_NO=
9278 GT_YES="#YES#"
9279 fi
9280
9281
9282
9283 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9284
9285
9286 l=
9287
9288
9289 if test -f $srcdir/po/POTFILES.in; then
9290 test -d po || mkdir po
9291 if test "x$srcdir" != "x."; then
9292 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9293 posrcprefix="$srcdir/"
9294 else
9295 posrcprefix="../$srcdir/"
9296 fi
9297 else
9298 posrcprefix="../"
9299 fi
9300 rm -f po/POTFILES
9301 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9302 < $srcdir/po/POTFILES.in > po/POTFILES
9303 fi
9304
9305
9306 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9307 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9308 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9309 if test "${enable_maintainer_mode+set}" = set; then
9310 enableval="$enable_maintainer_mode"
9311 USE_MAINTAINER_MODE=$enableval
9312 else
9313 USE_MAINTAINER_MODE=no
9314 fi;
9315 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9316 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9317
9318
9319 if test $USE_MAINTAINER_MODE = yes; then
9320 MAINTAINER_MODE_TRUE=
9321 MAINTAINER_MODE_FALSE='#'
9322 else
9323 MAINTAINER_MODE_TRUE='#'
9324 MAINTAINER_MODE_FALSE=
9325 fi
9326
9327 MAINT=$MAINTAINER_MODE_TRUE
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9342 do
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 fi
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_header_compiler=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392 ac_header_compiler=no
9393 fi
9394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9397
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <$ac_header>
9408 _ACEOF
9409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null; then
9417 if test -s conftest.err; then
9418 ac_cpp_err=$ac_c_preproc_warn_flag
9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9420 else
9421 ac_cpp_err=
9422 fi
9423 else
9424 ac_cpp_err=yes
9425 fi
9426 if test -z "$ac_cpp_err"; then
9427 ac_header_preproc=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_preproc=no
9433 fi
9434 rm -f conftest.err conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436 echo "${ECHO_T}$ac_header_preproc" >&6
9437
9438 # So? What about this header?
9439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9440 yes:no: )
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445 ac_header_preproc=yes
9446 ;;
9447 no:yes:* )
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 (
9461 cat <<\_ASBOX
9462 ## ------------------------------------------ ##
9463 ## Report this to the AC_PACKAGE_NAME lists. ##
9464 ## ------------------------------------------ ##
9465 _ASBOX
9466 ) |
9467 sed "s/^/$as_me: WARNING: /" >&2
9468 ;;
9469 esac
9470 echo "$as_me:$LINENO: checking for $ac_header" >&5
9471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 eval "$as_ac_Header=\$ac_header_preproc"
9476 fi
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9479
9480 fi
9481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9484 _ACEOF
9485
9486 fi
9487
9488 done
9489
9490
9491 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9492 # people who are not cross-compiling but are compiling cross-assemblers.
9493 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9494 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9495 if test "${host}" = "${target}"; then
9496 cross_gas=no
9497 else
9498 cross_gas=yes
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define CROSS_COMPILE 1
9502 _ACEOF
9503
9504 fi
9505 echo "$as_me:$LINENO: result: $cross_gas" >&5
9506 echo "${ECHO_T}$cross_gas" >&6
9507
9508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9509 # for constant arguments. Useless!
9510 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9511 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9512 if test "${ac_cv_working_alloca_h+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 #include <alloca.h>
9522 int
9523 main ()
9524 {
9525 char *p = (char *) alloca (2 * sizeof (int));
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest$ac_exeext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_working_alloca_h=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 ac_cv_working_alloca_h=no
9558 fi
9559 rm -f conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 fi
9562 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9563 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9564 if test $ac_cv_working_alloca_h = yes; then
9565
9566 cat >>confdefs.h <<\_ACEOF
9567 #define HAVE_ALLOCA_H 1
9568 _ACEOF
9569
9570 fi
9571
9572 echo "$as_me:$LINENO: checking for alloca" >&5
9573 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9574 if test "${ac_cv_func_alloca_works+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 #ifdef __GNUC__
9584 # define alloca __builtin_alloca
9585 #else
9586 # ifdef _MSC_VER
9587 # include <malloc.h>
9588 # define alloca _alloca
9589 # else
9590 # if HAVE_ALLOCA_H
9591 # include <alloca.h>
9592 # else
9593 # ifdef _AIX
9594 #pragma alloca
9595 # else
9596 # ifndef alloca /* predefined by HP cc +Olibcalls */
9597 char *alloca ();
9598 # endif
9599 # endif
9600 # endif
9601 # endif
9602 #endif
9603
9604 int
9605 main ()
9606 {
9607 char *p = (char *) alloca (1);
9608 ;
9609 return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_func_alloca_works=yes
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 ac_cv_func_alloca_works=no
9640 fi
9641 rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 fi
9644 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9645 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9646
9647 if test $ac_cv_func_alloca_works = yes; then
9648
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_ALLOCA 1
9651 _ACEOF
9652
9653 else
9654 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9655 # that cause trouble. Some versions do not even contain alloca or
9656 # contain a buggy version. If you still want to use their alloca,
9657 # use ar to extract alloca.o from them instead of compiling alloca.c.
9658
9659 ALLOCA=alloca.$ac_objext
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define C_ALLOCA 1
9663 _ACEOF
9664
9665
9666 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9667 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9668 if test "${ac_cv_os_cray+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 #if defined(CRAY) && ! defined(CRAY2)
9678 webecray
9679 #else
9680 wenotbecray
9681 #endif
9682
9683 _ACEOF
9684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9685 $EGREP "webecray" >/dev/null 2>&1; then
9686 ac_cv_os_cray=yes
9687 else
9688 ac_cv_os_cray=no
9689 fi
9690 rm -f conftest*
9691
9692 fi
9693 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9694 echo "${ECHO_T}$ac_cv_os_cray" >&6
9695 if test $ac_cv_os_cray = yes; then
9696 for ac_func in _getb67 GETB67 getb67; do
9697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698 echo "$as_me:$LINENO: checking for $ac_func" >&5
9699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_var+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711 #define $ac_func innocuous_$ac_func
9712
9713 /* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char $ac_func (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9717
9718 #ifdef __STDC__
9719 # include <limits.h>
9720 #else
9721 # include <assert.h>
9722 #endif
9723
9724 #undef $ac_func
9725
9726 /* Override any gcc2 internal prototype to avoid an error. */
9727 #ifdef __cplusplus
9728 extern "C"
9729 {
9730 #endif
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733 char $ac_func ();
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9738 choke me
9739 #else
9740 char (*f) () = $ac_func;
9741 #endif
9742 #ifdef __cplusplus
9743 }
9744 #endif
9745
9746 int
9747 main ()
9748 {
9749 return f != $ac_func;
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 eval "$as_ac_var=yes"
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 eval "$as_ac_var=no"
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788 if test `eval echo '${'$as_ac_var'}'` = yes; then
9789
9790 cat >>confdefs.h <<_ACEOF
9791 #define CRAY_STACKSEG_END $ac_func
9792 _ACEOF
9793
9794 break
9795 fi
9796
9797 done
9798 fi
9799
9800 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9801 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9802 if test "${ac_cv_c_stack_direction+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 if test "$cross_compiling" = yes; then
9806 ac_cv_c_stack_direction=0
9807 else
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 int
9815 find_stack_direction ()
9816 {
9817 static char *addr = 0;
9818 auto char dummy;
9819 if (addr == 0)
9820 {
9821 addr = &dummy;
9822 return find_stack_direction ();
9823 }
9824 else
9825 return (&dummy > addr) ? 1 : -1;
9826 }
9827
9828 int
9829 main ()
9830 {
9831 exit (find_stack_direction () < 0);
9832 }
9833 _ACEOF
9834 rm -f conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_c_stack_direction=1
9846 else
9847 echo "$as_me: program exited with status $ac_status" >&5
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ( exit $ac_status )
9852 ac_cv_c_stack_direction=-1
9853 fi
9854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9855 fi
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9858 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define STACK_DIRECTION $ac_cv_c_stack_direction
9862 _ACEOF
9863
9864
9865 fi
9866
9867 echo "$as_me:$LINENO: checking for inline" >&5
9868 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9869 if test "${ac_cv_c_inline+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 ac_cv_c_inline=no
9873 for ac_kw in inline __inline__ __inline; do
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 #ifndef __cplusplus
9881 typedef int foo_t;
9882 static $ac_kw foo_t static_foo () {return 0; }
9883 $ac_kw foo_t foo () {return 0; }
9884 #endif
9885
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest.$ac_objext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_c_inline=$ac_kw; break
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 fi
9915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 done
9917
9918 fi
9919 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9920 echo "${ECHO_T}$ac_cv_c_inline" >&6
9921
9922
9923 case $ac_cv_c_inline in
9924 inline | yes) ;;
9925 *)
9926 case $ac_cv_c_inline in
9927 no) ac_val=;;
9928 *) ac_val=$ac_cv_c_inline;;
9929 esac
9930 cat >>confdefs.h <<_ACEOF
9931 #ifndef __cplusplus
9932 #define inline $ac_val
9933 #endif
9934 _ACEOF
9935 ;;
9936 esac
9937
9938
9939 # VMS doesn't have unlink.
9940
9941
9942 for ac_func in unlink remove
9943 do
9944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9945 echo "$as_me:$LINENO: checking for $ac_func" >&5
9946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9947 if eval "test \"\${$as_ac_var+set}\" = set"; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958 #define $ac_func innocuous_$ac_func
9959
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9964
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970
9971 #undef $ac_func
9972
9973 /* Override any gcc2 internal prototype to avoid an error. */
9974 #ifdef __cplusplus
9975 extern "C"
9976 {
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980 char $ac_func ();
9981 /* The GNU C library defines this for functions which it implements
9982 to always fail with ENOSYS. Some functions are actually named
9983 something starting with __ and the normal name is an alias. */
9984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9985 choke me
9986 #else
9987 char (*f) () = $ac_func;
9988 #endif
9989 #ifdef __cplusplus
9990 }
9991 #endif
9992
9993 int
9994 main ()
9995 {
9996 return f != $ac_func;
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 eval "$as_ac_var=yes"
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 eval "$as_ac_var=no"
10029 fi
10030 rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 fi
10033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10035 if test `eval echo '${'$as_ac_var'}'` = yes; then
10036 cat >>confdefs.h <<_ACEOF
10037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10038 _ACEOF
10039 break
10040 fi
10041 done
10042
10043
10044 # Some systems don't have sbrk().
10045
10046 for ac_func in sbrk
10047 do
10048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10049 echo "$as_me:$LINENO: checking for $ac_func" >&5
10050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10051 if eval "test \"\${$as_ac_var+set}\" = set"; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10062 #define $ac_func innocuous_$ac_func
10063
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char $ac_func (); below.
10066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067 <limits.h> exists even on freestanding compilers. */
10068
10069 #ifdef __STDC__
10070 # include <limits.h>
10071 #else
10072 # include <assert.h>
10073 #endif
10074
10075 #undef $ac_func
10076
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 {
10081 #endif
10082 /* We use char because int might match the return type of a gcc2
10083 builtin and then its argument prototype would still apply. */
10084 char $ac_func ();
10085 /* The GNU C library defines this for functions which it implements
10086 to always fail with ENOSYS. Some functions are actually named
10087 something starting with __ and the normal name is an alias. */
10088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10089 choke me
10090 #else
10091 char (*f) () = $ac_func;
10092 #endif
10093 #ifdef __cplusplus
10094 }
10095 #endif
10096
10097 int
10098 main ()
10099 {
10100 return f != $ac_func;
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10107 (eval $ac_link) 2>conftest.er1
10108 ac_status=$?
10109 grep -v '^ *+' conftest.er1 >conftest.err
10110 rm -f conftest.er1
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag"
10115 || test ! -s conftest.err'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 eval "$as_ac_var=yes"
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 eval "$as_ac_var=no"
10133 fi
10134 rm -f conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 fi
10137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10139 if test `eval echo '${'$as_ac_var'}'` = yes; then
10140 cat >>confdefs.h <<_ACEOF
10141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10142 _ACEOF
10143
10144 fi
10145 done
10146
10147
10148 # do we need the math library?
10149 case "${need_libm}" in
10150 yes)
10151 LIBM=
10152 case $host in
10153 *-*-beos* | *-*-cygwin* | *-*-pw32*)
10154 # These system don't have libm
10155 ;;
10156 *-ncr-sysv4.3*)
10157 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10158 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10159 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lmw $LIBS"
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170
10171 /* Override any gcc2 internal prototype to avoid an error. */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10177 char _mwvalidcheckl ();
10178 int
10179 main ()
10180 {
10181 _mwvalidcheckl ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_mw__mwvalidcheckl=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_lib_mw__mwvalidcheckl=no
10214 fi
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10220 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10221 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10222 LIBM="-lmw"
10223 fi
10224
10225 echo "$as_me:$LINENO: checking for main in -lm" >&5
10226 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10227 if test "${ac_cv_lib_m_main+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lm $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238
10239
10240 int
10241 main ()
10242 {
10243 main ();
10244 ;
10245 return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_lib_m_main=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_cv_lib_m_main=no
10276 fi
10277 rm -f conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10280 fi
10281 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10282 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10283 if test $ac_cv_lib_m_main = yes; then
10284 LIBM="$LIBM -lm"
10285 fi
10286
10287 ;;
10288 *)
10289 echo "$as_me:$LINENO: checking for main in -lm" >&5
10290 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10291 if test "${ac_cv_lib_m_main+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 ac_check_lib_save_LIBS=$LIBS
10295 LIBS="-lm $LIBS"
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302
10303
10304 int
10305 main ()
10306 {
10307 main ();
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag"
10322 || test ! -s conftest.err'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_m_main=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 ac_cv_lib_m_main=no
10340 fi
10341 rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 LIBS=$ac_check_lib_save_LIBS
10344 fi
10345 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10346 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10347 if test $ac_cv_lib_m_main = yes; then
10348 LIBM="-lm"
10349 fi
10350
10351 ;;
10352 esac
10353
10354
10355 ;;
10356 esac
10357
10358 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
10359 # enough, but on some of those systems, the assert macro relies on requoting
10360 # working properly!
10361 echo "$as_me:$LINENO: checking for working assert macro" >&5
10362 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10363 if test "${gas_cv_assert_ok+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 #include <assert.h>
10373 #include <stdio.h>
10374 int
10375 main ()
10376 {
10377
10378 /* check for requoting problems */
10379 static int a, b, c, d;
10380 static char *s;
10381 assert (!strcmp(s, "foo bar baz quux"));
10382 /* check for newline handling */
10383 assert (a == b
10384 || c == d);
10385
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 gas_cv_assert_ok=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 gas_cv_assert_ok=no
10418 fi
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 fi
10422 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10423 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10424 test $gas_cv_assert_ok = yes ||
10425 cat >>confdefs.h <<\_ACEOF
10426 #define BROKEN_ASSERT 1
10427 _ACEOF
10428
10429
10430
10431 # On some systems, the system header files may not declare malloc, realloc,
10432 # and free. There are places where gas needs these functions to have been
10433 # declared -- such as when taking their addresses.
10434 gas_test_headers="
10435 #ifdef HAVE_MEMORY_H
10436 #include <memory.h>
10437 #endif
10438 #ifdef HAVE_STRING_H
10439 #include <string.h>
10440 #else
10441 #ifdef HAVE_STRINGS_H
10442 #include <strings.h>
10443 #endif
10444 #endif
10445 #ifdef HAVE_STDLIB_H
10446 #include <stdlib.h>
10447 #endif
10448 #ifdef HAVE_UNISTD_H
10449 #include <unistd.h>
10450 #endif
10451 "
10452
10453 # Does errno.h declare errno, or do we have to add a separate declaration
10454 # for it?
10455
10456 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10457 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10458 if test "${gas_cv_decl_needed_errno+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h. */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467
10468 #ifdef HAVE_ERRNO_H
10469 #include <errno.h>
10470 #endif
10471
10472 int
10473 main ()
10474 {
10475
10476 typedef int f;
10477 f x;
10478 x = (f) errno;
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 gas_cv_decl_needed_errno=no
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 gas_cv_decl_needed_errno=yes
10512 fi
10513 rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 fi
10516 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10517 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10518 if test $gas_cv_decl_needed_errno = yes; then
10519
10520 cat >>confdefs.h <<\_ACEOF
10521 #define NEED_DECLARATION_ERRNO 1
10522 _ACEOF
10523
10524 fi
10525
10526
10527 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
10528 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
10529 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 #include <unistd.h>
10539 int
10540 main ()
10541 {
10542 extern int getopt (int, char *const*, const char *);
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest.$ac_objext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 gas_cv_decl_getopt_unistd_h=yes
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 gas_cv_decl_getopt_unistd_h=no
10575 fi
10576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10577 fi
10578
10579 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
10580 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
10581 if test $gas_cv_decl_getopt_unistd_h = yes; then
10582
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_DECL_GETOPT 1
10585 _ACEOF
10586
10587 fi
10588
10589
10590 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10591 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10592 if test "${gas_cv_decl_needed_environ+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $gas_test_headers
10602 int
10603 main ()
10604 {
10605
10606 typedef char **f;
10607 f x;
10608 x = (f) environ;
10609
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_c_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 gas_cv_decl_needed_environ=no
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 gas_cv_decl_needed_environ=yes
10642 fi
10643 rm -f conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 fi
10646 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10647 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10648 if test $gas_cv_decl_needed_environ = yes; then
10649
10650 cat >>confdefs.h <<\_ACEOF
10651 #define NEED_DECLARATION_ENVIRON 1
10652 _ACEOF
10653
10654 fi
10655
10656
10657 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
10658 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
10659 if test "${gas_cv_decl_needed_ffs+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h. */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 $gas_test_headers
10669 int
10670 main ()
10671 {
10672
10673 typedef int (*f)(int);
10674 f x;
10675 x = (f) ffs;
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest$ac_exeext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 gas_cv_decl_needed_ffs=no
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 gas_cv_decl_needed_ffs=yes
10709 fi
10710 rm -f conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 fi
10713 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
10714 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
10715 if test $gas_cv_decl_needed_ffs = yes; then
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 #define NEED_DECLARATION_FFS 1
10719 _ACEOF
10720
10721 fi
10722
10723
10724 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10725 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10726 if test "${gas_cv_decl_needed_free+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 $gas_test_headers
10736 int
10737 main ()
10738 {
10739
10740 typedef void (*f)();
10741 f x;
10742 x = (f) free;
10743
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 gas_cv_decl_needed_free=no
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 gas_cv_decl_needed_free=yes
10776 fi
10777 rm -f conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 fi
10780 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10781 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10782 if test $gas_cv_decl_needed_free = yes; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define NEED_DECLARATION_FREE 1
10786 _ACEOF
10787
10788 fi
10789
10790
10791 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10792 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10793 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $gas_test_headers
10803 int
10804 main ()
10805 {
10806
10807 typedef char *(*f)();
10808 f x;
10809 x = (f) malloc;
10810
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
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); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 gas_cv_decl_needed_malloc=no
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842 gas_cv_decl_needed_malloc=yes
10843 fi
10844 rm -f conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 fi
10847 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10848 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10849 if test $gas_cv_decl_needed_malloc = yes; then
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define NEED_DECLARATION_MALLOC 1
10853 _ACEOF
10854
10855 fi
10856
10857
10858 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10859 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10860 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 $gas_test_headers
10870 int
10871 main ()
10872 {
10873
10874 typedef char *(*f)();
10875 f x;
10876 x = (f) sbrk;
10877
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 gas_cv_decl_needed_sbrk=no
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 gas_cv_decl_needed_sbrk=yes
10910 fi
10911 rm -f conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 fi
10914 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10915 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10916 if test $gas_cv_decl_needed_sbrk = yes; then
10917
10918 cat >>confdefs.h <<\_ACEOF
10919 #define NEED_DECLARATION_SBRK 1
10920 _ACEOF
10921
10922 fi
10923
10924
10925 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10926 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10927 if test "${gas_cv_decl_needed_strstr+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $gas_test_headers
10937 int
10938 main ()
10939 {
10940
10941 typedef char *(*f)();
10942 f x;
10943 x = (f) strstr;
10944
10945 ;
10946 return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag"
10959 || test ! -s conftest.err'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; } &&
10965 { ac_try='test -s conftest$ac_exeext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 gas_cv_decl_needed_strstr=no
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 gas_cv_decl_needed_strstr=yes
10977 fi
10978 rm -f conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 fi
10981 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10982 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10983 if test $gas_cv_decl_needed_strstr = yes; then
10984
10985 cat >>confdefs.h <<\_ACEOF
10986 #define NEED_DECLARATION_STRSTR 1
10987 _ACEOF
10988
10989 fi
10990
10991
10992
10993
10994 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10995
10996 ac_config_commands="$ac_config_commands default"
10997
10998
10999 cat >confcache <<\_ACEOF
11000 # This file is a shell script that caches the results of configure
11001 # tests run on this system so they can be shared between configure
11002 # scripts and configure runs, see configure's option --config-cache.
11003 # It is not useful on other systems. If it contains results you don't
11004 # want to keep, you may remove or edit it.
11005 #
11006 # config.status only pays attention to the cache file if you give it
11007 # the --recheck option to rerun configure.
11008 #
11009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11011 # following values.
11012
11013 _ACEOF
11014
11015 # The following way of writing the cache mishandles newlines in values,
11016 # but we know of no workaround that is simple, portable, and efficient.
11017 # So, don't put newlines in cache variables' values.
11018 # Ultrix sh set writes to stderr and can't be redirected directly,
11019 # and sets the high bit in the cache file unless we assign to the vars.
11020 {
11021 (set) 2>&1 |
11022 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11023 *ac_space=\ *)
11024 # `set' does not quote correctly, so add quotes (double-quote
11025 # substitution turns \\\\ into \\, and sed turns \\ into \).
11026 sed -n \
11027 "s/'/'\\\\''/g;
11028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11029 ;;
11030 *)
11031 # `set' quotes correctly as required by POSIX, so do not add quotes.
11032 sed -n \
11033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11034 ;;
11035 esac;
11036 } |
11037 sed '
11038 t clear
11039 : clear
11040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11041 t end
11042 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11043 : end' >>confcache
11044 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11045 if test -w $cache_file; then
11046 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11047 cat confcache >$cache_file
11048 else
11049 echo "not updating unwritable cache $cache_file"
11050 fi
11051 fi
11052 rm -f confcache
11053
11054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11055 # Let make expand exec_prefix.
11056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11057
11058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11060 # trailing colons and then remove the whole line if VPATH becomes empty
11061 # (actually we leave an empty line to preserve line numbers).
11062 if test "x$srcdir" = x.; then
11063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11064 s/:*\$(srcdir):*/:/;
11065 s/:*\${srcdir}:*/:/;
11066 s/:*@srcdir@:*/:/;
11067 s/^\([^=]*=[ ]*\):*/\1/;
11068 s/:*$//;
11069 s/^[^=]*=[ ]*$//;
11070 }'
11071 fi
11072
11073 DEFS=-DHAVE_CONFIG_H
11074
11075 ac_libobjs=
11076 ac_ltlibobjs=
11077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11078 # 1. Remove the extension, and $U if already installed.
11079 ac_i=`echo "$ac_i" |
11080 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11081 # 2. Add them.
11082 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11083 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11084 done
11085 LIBOBJS=$ac_libobjs
11086
11087 LTLIBOBJS=$ac_ltlibobjs
11088
11089
11090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11091 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11092 Usually this means the macro was only invoked conditionally." >&5
11093 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11094 Usually this means the macro was only invoked conditionally." >&2;}
11095 { (exit 1); exit 1; }; }
11096 fi
11097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11098 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11099 Usually this means the macro was only invoked conditionally." >&5
11100 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11101 Usually this means the macro was only invoked conditionally." >&2;}
11102 { (exit 1); exit 1; }; }
11103 fi
11104 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11105 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11106 Usually this means the macro was only invoked conditionally." >&5
11107 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11108 Usually this means the macro was only invoked conditionally." >&2;}
11109 { (exit 1); exit 1; }; }
11110 fi
11111
11112 : ${CONFIG_STATUS=./config.status}
11113 ac_clean_files_save=$ac_clean_files
11114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11115 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11116 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11117 cat >$CONFIG_STATUS <<_ACEOF
11118 #! $SHELL
11119 # Generated by $as_me.
11120 # Run this file to recreate the current configuration.
11121 # Compiler output produced by configure, useful for debugging
11122 # configure, is in config.log if it exists.
11123
11124 debug=false
11125 ac_cs_recheck=false
11126 ac_cs_silent=false
11127 SHELL=\${CONFIG_SHELL-$SHELL}
11128 _ACEOF
11129
11130 cat >>$CONFIG_STATUS <<\_ACEOF
11131 ## --------------------- ##
11132 ## M4sh Initialization. ##
11133 ## --------------------- ##
11134
11135 # Be Bourne compatible
11136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11137 emulate sh
11138 NULLCMD=:
11139 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11140 # is contrary to our usage. Disable this feature.
11141 alias -g '${1+"$@"}'='"$@"'
11142 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11143 set -o posix
11144 fi
11145 DUALCASE=1; export DUALCASE # for MKS sh
11146
11147 # Support unset when possible.
11148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11149 as_unset=unset
11150 else
11151 as_unset=false
11152 fi
11153
11154
11155 # Work around bugs in pre-3.0 UWIN ksh.
11156 $as_unset ENV MAIL MAILPATH
11157 PS1='$ '
11158 PS2='> '
11159 PS4='+ '
11160
11161 # NLS nuisances.
11162 for as_var in \
11163 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11164 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11165 LC_TELEPHONE LC_TIME
11166 do
11167 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11168 eval $as_var=C; export $as_var
11169 else
11170 $as_unset $as_var
11171 fi
11172 done
11173
11174 # Required to use basename.
11175 if expr a : '\(a\)' >/dev/null 2>&1; then
11176 as_expr=expr
11177 else
11178 as_expr=false
11179 fi
11180
11181 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11182 as_basename=basename
11183 else
11184 as_basename=false
11185 fi
11186
11187
11188 # Name of the executable.
11189 as_me=`$as_basename "$0" ||
11190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11191 X"$0" : 'X\(//\)$' \| \
11192 X"$0" : 'X\(/\)$' \| \
11193 . : '\(.\)' 2>/dev/null ||
11194 echo X/"$0" |
11195 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11196 /^X\/\(\/\/\)$/{ s//\1/; q; }
11197 /^X\/\(\/\).*/{ s//\1/; q; }
11198 s/.*/./; q'`
11199
11200
11201 # PATH needs CR, and LINENO needs CR and PATH.
11202 # Avoid depending upon Character Ranges.
11203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11206 as_cr_digits='0123456789'
11207 as_cr_alnum=$as_cr_Letters$as_cr_digits
11208
11209 # The user is always right.
11210 if test "${PATH_SEPARATOR+set}" != set; then
11211 echo "#! /bin/sh" >conf$$.sh
11212 echo "exit 0" >>conf$$.sh
11213 chmod +x conf$$.sh
11214 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11215 PATH_SEPARATOR=';'
11216 else
11217 PATH_SEPARATOR=:
11218 fi
11219 rm -f conf$$.sh
11220 fi
11221
11222
11223 as_lineno_1=$LINENO
11224 as_lineno_2=$LINENO
11225 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11226 test "x$as_lineno_1" != "x$as_lineno_2" &&
11227 test "x$as_lineno_3" = "x$as_lineno_2" || {
11228 # Find who we are. Look in the path if we contain no path at all
11229 # relative or not.
11230 case $0 in
11231 *[\\/]* ) as_myself=$0 ;;
11232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11238 done
11239
11240 ;;
11241 esac
11242 # We did not find ourselves, most probably we were run as `sh COMMAND'
11243 # in which case we are not to be found in the path.
11244 if test "x$as_myself" = x; then
11245 as_myself=$0
11246 fi
11247 if test ! -f "$as_myself"; then
11248 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11249 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11250 { (exit 1); exit 1; }; }
11251 fi
11252 case $CONFIG_SHELL in
11253 '')
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11256 do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for as_base in sh bash ksh sh5; do
11260 case $as_dir in
11261 /*)
11262 if ("$as_dir/$as_base" -c '
11263 as_lineno_1=$LINENO
11264 as_lineno_2=$LINENO
11265 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11266 test "x$as_lineno_1" != "x$as_lineno_2" &&
11267 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11268 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11269 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11270 CONFIG_SHELL=$as_dir/$as_base
11271 export CONFIG_SHELL
11272 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11273 fi;;
11274 esac
11275 done
11276 done
11277 ;;
11278 esac
11279
11280 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11281 # uniformly replaced by the line number. The first 'sed' inserts a
11282 # line-number line before each line; the second 'sed' does the real
11283 # work. The second script uses 'N' to pair each line-number line
11284 # with the numbered line, and appends trailing '-' during
11285 # substitution so that $LINENO is not a special case at line end.
11286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11287 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11288 sed '=' <$as_myself |
11289 sed '
11290 N
11291 s,$,-,
11292 : loop
11293 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11294 t loop
11295 s,-$,,
11296 s,^['$as_cr_digits']*\n,,
11297 ' >$as_me.lineno &&
11298 chmod +x $as_me.lineno ||
11299 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11300 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11301 { (exit 1); exit 1; }; }
11302
11303 # Don't try to exec as it changes $[0], causing all sort of problems
11304 # (the dirname of $[0] is not the place where we might find the
11305 # original and so on. Autoconf is especially sensible to this).
11306 . ./$as_me.lineno
11307 # Exit status is that of the last command.
11308 exit
11309 }
11310
11311
11312 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11313 *c*,-n*) ECHO_N= ECHO_C='
11314 ' ECHO_T=' ' ;;
11315 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11316 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11317 esac
11318
11319 if expr a : '\(a\)' >/dev/null 2>&1; then
11320 as_expr=expr
11321 else
11322 as_expr=false
11323 fi
11324
11325 rm -f conf$$ conf$$.exe conf$$.file
11326 echo >conf$$.file
11327 if ln -s conf$$.file conf$$ 2>/dev/null; then
11328 # We could just check for DJGPP; but this test a) works b) is more generic
11329 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11330 if test -f conf$$.exe; then
11331 # Don't use ln at all; we don't have any links
11332 as_ln_s='cp -p'
11333 else
11334 as_ln_s='ln -s'
11335 fi
11336 elif ln conf$$.file conf$$ 2>/dev/null; then
11337 as_ln_s=ln
11338 else
11339 as_ln_s='cp -p'
11340 fi
11341 rm -f conf$$ conf$$.exe conf$$.file
11342
11343 if mkdir -p . 2>/dev/null; then
11344 as_mkdir_p=:
11345 else
11346 test -d ./-p && rmdir ./-p
11347 as_mkdir_p=false
11348 fi
11349
11350 as_executable_p="test -f"
11351
11352 # Sed expression to map a string onto a valid CPP name.
11353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11354
11355 # Sed expression to map a string onto a valid variable name.
11356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11357
11358
11359 # IFS
11360 # We need space, tab and new line, in precisely that order.
11361 as_nl='
11362 '
11363 IFS=" $as_nl"
11364
11365 # CDPATH.
11366 $as_unset CDPATH
11367
11368 exec 6>&1
11369
11370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11371 # report actual input values of CONFIG_FILES etc. instead of their
11372 # values after options handling. Logging --version etc. is OK.
11373 exec 5>>config.log
11374 {
11375 echo
11376 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11377 ## Running $as_me. ##
11378 _ASBOX
11379 } >&5
11380 cat >&5 <<_CSEOF
11381
11382 This file was extended by $as_me, which was
11383 generated by GNU Autoconf 2.59. Invocation command line was
11384
11385 CONFIG_FILES = $CONFIG_FILES
11386 CONFIG_HEADERS = $CONFIG_HEADERS
11387 CONFIG_LINKS = $CONFIG_LINKS
11388 CONFIG_COMMANDS = $CONFIG_COMMANDS
11389 $ $0 $@
11390
11391 _CSEOF
11392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11393 echo >&5
11394 _ACEOF
11395
11396 # Files that config.status was made for.
11397 if test -n "$ac_config_files"; then
11398 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11399 fi
11400
11401 if test -n "$ac_config_headers"; then
11402 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11403 fi
11404
11405 if test -n "$ac_config_links"; then
11406 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11407 fi
11408
11409 if test -n "$ac_config_commands"; then
11410 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11411 fi
11412
11413 cat >>$CONFIG_STATUS <<\_ACEOF
11414
11415 ac_cs_usage="\
11416 \`$as_me' instantiates files from templates according to the
11417 current configuration.
11418
11419 Usage: $0 [OPTIONS] [FILE]...
11420
11421 -h, --help print this help, then exit
11422 -V, --version print version number, then exit
11423 -q, --quiet do not print progress messages
11424 -d, --debug don't remove temporary files
11425 --recheck update $as_me by reconfiguring in the same conditions
11426 --file=FILE[:TEMPLATE]
11427 instantiate the configuration file FILE
11428 --header=FILE[:TEMPLATE]
11429 instantiate the configuration header FILE
11430
11431 Configuration files:
11432 $config_files
11433
11434 Configuration headers:
11435 $config_headers
11436
11437 Configuration commands:
11438 $config_commands
11439
11440 Report bugs to <bug-autoconf@gnu.org>."
11441 _ACEOF
11442
11443 cat >>$CONFIG_STATUS <<_ACEOF
11444 ac_cs_version="\\
11445 config.status
11446 configured by $0, generated by GNU Autoconf 2.59,
11447 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11448
11449 Copyright (C) 2003 Free Software Foundation, Inc.
11450 This config.status script is free software; the Free Software Foundation
11451 gives unlimited permission to copy, distribute and modify it."
11452 srcdir=$srcdir
11453 INSTALL="$INSTALL"
11454 _ACEOF
11455
11456 cat >>$CONFIG_STATUS <<\_ACEOF
11457 # If no file are specified by the user, then we need to provide default
11458 # value. By we need to know if files were specified by the user.
11459 ac_need_defaults=:
11460 while test $# != 0
11461 do
11462 case $1 in
11463 --*=*)
11464 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11465 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11466 ac_shift=:
11467 ;;
11468 -*)
11469 ac_option=$1
11470 ac_optarg=$2
11471 ac_shift=shift
11472 ;;
11473 *) # This is not an option, so the user has probably given explicit
11474 # arguments.
11475 ac_option=$1
11476 ac_need_defaults=false;;
11477 esac
11478
11479 case $ac_option in
11480 # Handling of the options.
11481 _ACEOF
11482 cat >>$CONFIG_STATUS <<\_ACEOF
11483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11484 ac_cs_recheck=: ;;
11485 --version | --vers* | -V )
11486 echo "$ac_cs_version"; exit 0 ;;
11487 --he | --h)
11488 # Conflict between --help and --header
11489 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11490 Try \`$0 --help' for more information." >&5
11491 echo "$as_me: error: ambiguous option: $1
11492 Try \`$0 --help' for more information." >&2;}
11493 { (exit 1); exit 1; }; };;
11494 --help | --hel | -h )
11495 echo "$ac_cs_usage"; exit 0 ;;
11496 --debug | --d* | -d )
11497 debug=: ;;
11498 --file | --fil | --fi | --f )
11499 $ac_shift
11500 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11501 ac_need_defaults=false;;
11502 --header | --heade | --head | --hea )
11503 $ac_shift
11504 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11505 ac_need_defaults=false;;
11506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11508 ac_cs_silent=: ;;
11509
11510 # This is an error.
11511 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11512 Try \`$0 --help' for more information." >&5
11513 echo "$as_me: error: unrecognized option: $1
11514 Try \`$0 --help' for more information." >&2;}
11515 { (exit 1); exit 1; }; } ;;
11516
11517 *) ac_config_targets="$ac_config_targets $1" ;;
11518
11519 esac
11520 shift
11521 done
11522
11523 ac_configure_extra_args=
11524
11525 if $ac_cs_silent; then
11526 exec 6>/dev/null
11527 ac_configure_extra_args="$ac_configure_extra_args --silent"
11528 fi
11529
11530 _ACEOF
11531 cat >>$CONFIG_STATUS <<_ACEOF
11532 if \$ac_cs_recheck; then
11533 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11534 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11535 fi
11536
11537 _ACEOF
11538
11539 cat >>$CONFIG_STATUS <<_ACEOF
11540 #
11541 # INIT-COMMANDS section.
11542 #
11543
11544 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11545 target_cpu_type=${target_cpu_type}
11546 cgen_cpu_prefix=${cgen_cpu_prefix}
11547 obj_format=${obj_format}
11548 te_file=${te_file}
11549
11550 _ACEOF
11551
11552
11553
11554 cat >>$CONFIG_STATUS <<\_ACEOF
11555 for ac_config_target in $ac_config_targets
11556 do
11557 case "$ac_config_target" in
11558 # Handling of arguments.
11559 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11560 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11561 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11562 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11563 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11564 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11565 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11566 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11567 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11568 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11569 { (exit 1); exit 1; }; };;
11570 esac
11571 done
11572
11573 # If the user did not use the arguments to specify the items to instantiate,
11574 # then the envvar interface is used. Set only those that are not.
11575 # We use the long form for the default assignment because of an extremely
11576 # bizarre bug on SunOS 4.1.3.
11577 if $ac_need_defaults; then
11578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11581 fi
11582
11583 # Have a temporary directory for convenience. Make it in the build tree
11584 # simply because there is no reason to put it here, and in addition,
11585 # creating and moving files from /tmp can sometimes cause problems.
11586 # Create a temporary directory, and hook for its removal unless debugging.
11587 $debug ||
11588 {
11589 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11590 trap '{ (exit 1); exit 1; }' 1 2 13 15
11591 }
11592
11593 # Create a (secure) tmp directory for tmp files.
11594
11595 {
11596 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11597 test -n "$tmp" && test -d "$tmp"
11598 } ||
11599 {
11600 tmp=./confstat$$-$RANDOM
11601 (umask 077 && mkdir $tmp)
11602 } ||
11603 {
11604 echo "$me: cannot create a temporary directory in ." >&2
11605 { (exit 1); exit 1; }
11606 }
11607
11608 _ACEOF
11609
11610 cat >>$CONFIG_STATUS <<_ACEOF
11611
11612 #
11613 # CONFIG_FILES section.
11614 #
11615
11616 # No need to generate the scripts if there are no CONFIG_FILES.
11617 # This happens for instance when ./config.status config.h
11618 if test -n "\$CONFIG_FILES"; then
11619 # Protect against being on the right side of a sed subst in config.status.
11620 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11621 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11622 s,@SHELL@,$SHELL,;t t
11623 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11624 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11625 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11626 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11627 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11628 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11629 s,@exec_prefix@,$exec_prefix,;t t
11630 s,@prefix@,$prefix,;t t
11631 s,@program_transform_name@,$program_transform_name,;t t
11632 s,@bindir@,$bindir,;t t
11633 s,@sbindir@,$sbindir,;t t
11634 s,@libexecdir@,$libexecdir,;t t
11635 s,@datadir@,$datadir,;t t
11636 s,@sysconfdir@,$sysconfdir,;t t
11637 s,@sharedstatedir@,$sharedstatedir,;t t
11638 s,@localstatedir@,$localstatedir,;t t
11639 s,@libdir@,$libdir,;t t
11640 s,@includedir@,$includedir,;t t
11641 s,@oldincludedir@,$oldincludedir,;t t
11642 s,@infodir@,$infodir,;t t
11643 s,@mandir@,$mandir,;t t
11644 s,@build_alias@,$build_alias,;t t
11645 s,@host_alias@,$host_alias,;t t
11646 s,@target_alias@,$target_alias,;t t
11647 s,@DEFS@,$DEFS,;t t
11648 s,@ECHO_C@,$ECHO_C,;t t
11649 s,@ECHO_N@,$ECHO_N,;t t
11650 s,@ECHO_T@,$ECHO_T,;t t
11651 s,@LIBS@,$LIBS,;t t
11652 s,@build@,$build,;t t
11653 s,@build_cpu@,$build_cpu,;t t
11654 s,@build_vendor@,$build_vendor,;t t
11655 s,@build_os@,$build_os,;t t
11656 s,@host@,$host,;t t
11657 s,@host_cpu@,$host_cpu,;t t
11658 s,@host_vendor@,$host_vendor,;t t
11659 s,@host_os@,$host_os,;t t
11660 s,@target@,$target,;t t
11661 s,@target_cpu@,$target_cpu,;t t
11662 s,@target_vendor@,$target_vendor,;t t
11663 s,@target_os@,$target_os,;t t
11664 s,@CC@,$CC,;t t
11665 s,@CFLAGS@,$CFLAGS,;t t
11666 s,@LDFLAGS@,$LDFLAGS,;t t
11667 s,@CPPFLAGS@,$CPPFLAGS,;t t
11668 s,@ac_ct_CC@,$ac_ct_CC,;t t
11669 s,@EXEEXT@,$EXEEXT,;t t
11670 s,@OBJEXT@,$OBJEXT,;t t
11671 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11672 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11673 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11674 s,@CYGPATH_W@,$CYGPATH_W,;t t
11675 s,@PACKAGE@,$PACKAGE,;t t
11676 s,@VERSION@,$VERSION,;t t
11677 s,@ACLOCAL@,$ACLOCAL,;t t
11678 s,@AUTOCONF@,$AUTOCONF,;t t
11679 s,@AUTOMAKE@,$AUTOMAKE,;t t
11680 s,@AUTOHEADER@,$AUTOHEADER,;t t
11681 s,@MAKEINFO@,$MAKEINFO,;t t
11682 s,@install_sh@,$install_sh,;t t
11683 s,@STRIP@,$STRIP,;t t
11684 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11685 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11686 s,@mkdir_p@,$mkdir_p,;t t
11687 s,@AWK@,$AWK,;t t
11688 s,@SET_MAKE@,$SET_MAKE,;t t
11689 s,@am__leading_dot@,$am__leading_dot,;t t
11690 s,@AMTAR@,$AMTAR,;t t
11691 s,@am__tar@,$am__tar,;t t
11692 s,@am__untar@,$am__untar,;t t
11693 s,@DEPDIR@,$DEPDIR,;t t
11694 s,@am__include@,$am__include,;t t
11695 s,@am__quote@,$am__quote,;t t
11696 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11697 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11698 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11699 s,@CCDEPMODE@,$CCDEPMODE,;t t
11700 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11701 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11702 s,@LN_S@,$LN_S,;t t
11703 s,@RANLIB@,$RANLIB,;t t
11704 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11705 s,@LIBTOOL@,$LIBTOOL,;t t
11706 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11707 s,@NO_WERROR@,$NO_WERROR,;t t
11708 s,@GDBINIT@,$GDBINIT,;t t
11709 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11710 s,@extra_objects@,$extra_objects,;t t
11711 s,@target_cpu_type@,$target_cpu_type,;t t
11712 s,@obj_format@,$obj_format,;t t
11713 s,@te_file@,$te_file,;t t
11714 s,@install_tooldir@,$install_tooldir,;t t
11715 s,@atof@,$atof,;t t
11716 s,@BFDLIB@,$BFDLIB,;t t
11717 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11718 s,@BFDVER_H@,$BFDVER_H,;t t
11719 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11720 s,@YACC@,$YACC,;t t
11721 s,@LEX@,$LEX,;t t
11722 s,@LEXLIB@,$LEXLIB,;t t
11723 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11724 s,@CPP@,$CPP,;t t
11725 s,@EGREP@,$EGREP,;t t
11726 s,@ALLOCA@,$ALLOCA,;t t
11727 s,@USE_NLS@,$USE_NLS,;t t
11728 s,@MSGFMT@,$MSGFMT,;t t
11729 s,@GMSGFMT@,$GMSGFMT,;t t
11730 s,@XGETTEXT@,$XGETTEXT,;t t
11731 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11732 s,@CATALOGS@,$CATALOGS,;t t
11733 s,@CATOBJEXT@,$CATOBJEXT,;t t
11734 s,@DATADIRNAME@,$DATADIRNAME,;t t
11735 s,@GMOFILES@,$GMOFILES,;t t
11736 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11737 s,@INTLDEPS@,$INTLDEPS,;t t
11738 s,@INTLLIBS@,$INTLLIBS,;t t
11739 s,@INTLOBJS@,$INTLOBJS,;t t
11740 s,@POFILES@,$POFILES,;t t
11741 s,@POSUB@,$POSUB,;t t
11742 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11743 s,@GT_NO@,$GT_NO,;t t
11744 s,@GT_YES@,$GT_YES,;t t
11745 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11746 s,@l@,$l,;t t
11747 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11748 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11749 s,@MAINT@,$MAINT,;t t
11750 s,@LIBM@,$LIBM,;t t
11751 s,@LIBOBJS@,$LIBOBJS,;t t
11752 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11753 CEOF
11754
11755 _ACEOF
11756
11757 cat >>$CONFIG_STATUS <<\_ACEOF
11758 # Split the substitutions into bite-sized pieces for seds with
11759 # small command number limits, like on Digital OSF/1 and HP-UX.
11760 ac_max_sed_lines=48
11761 ac_sed_frag=1 # Number of current file.
11762 ac_beg=1 # First line for current file.
11763 ac_end=$ac_max_sed_lines # Line after last line for current file.
11764 ac_more_lines=:
11765 ac_sed_cmds=
11766 while $ac_more_lines; do
11767 if test $ac_beg -gt 1; then
11768 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11769 else
11770 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11771 fi
11772 if test ! -s $tmp/subs.frag; then
11773 ac_more_lines=false
11774 else
11775 # The purpose of the label and of the branching condition is to
11776 # speed up the sed processing (if there are no `@' at all, there
11777 # is no need to browse any of the substitutions).
11778 # These are the two extra sed commands mentioned above.
11779 (echo ':t
11780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11781 if test -z "$ac_sed_cmds"; then
11782 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11783 else
11784 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11785 fi
11786 ac_sed_frag=`expr $ac_sed_frag + 1`
11787 ac_beg=$ac_end
11788 ac_end=`expr $ac_end + $ac_max_sed_lines`
11789 fi
11790 done
11791 if test -z "$ac_sed_cmds"; then
11792 ac_sed_cmds=cat
11793 fi
11794 fi # test -n "$CONFIG_FILES"
11795
11796 _ACEOF
11797 cat >>$CONFIG_STATUS <<\_ACEOF
11798 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11799 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11800 case $ac_file in
11801 - | *:- | *:-:* ) # input from stdin
11802 cat >$tmp/stdin
11803 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11805 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11807 * ) ac_file_in=$ac_file.in ;;
11808 esac
11809
11810 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11811 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11813 X"$ac_file" : 'X\(//\)[^/]' \| \
11814 X"$ac_file" : 'X\(//\)$' \| \
11815 X"$ac_file" : 'X\(/\)' \| \
11816 . : '\(.\)' 2>/dev/null ||
11817 echo X"$ac_file" |
11818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11820 /^X\(\/\/\)$/{ s//\1/; q; }
11821 /^X\(\/\).*/{ s//\1/; q; }
11822 s/.*/./; q'`
11823 { if $as_mkdir_p; then
11824 mkdir -p "$ac_dir"
11825 else
11826 as_dir="$ac_dir"
11827 as_dirs=
11828 while test ! -d "$as_dir"; do
11829 as_dirs="$as_dir $as_dirs"
11830 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11832 X"$as_dir" : 'X\(//\)[^/]' \| \
11833 X"$as_dir" : 'X\(//\)$' \| \
11834 X"$as_dir" : 'X\(/\)' \| \
11835 . : '\(.\)' 2>/dev/null ||
11836 echo X"$as_dir" |
11837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11839 /^X\(\/\/\)$/{ s//\1/; q; }
11840 /^X\(\/\).*/{ s//\1/; q; }
11841 s/.*/./; q'`
11842 done
11843 test ! -n "$as_dirs" || mkdir $as_dirs
11844 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11845 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11846 { (exit 1); exit 1; }; }; }
11847
11848 ac_builddir=.
11849
11850 if test "$ac_dir" != .; then
11851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11852 # A "../" for each directory in $ac_dir_suffix.
11853 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11854 else
11855 ac_dir_suffix= ac_top_builddir=
11856 fi
11857
11858 case $srcdir in
11859 .) # No --srcdir option. We are building in place.
11860 ac_srcdir=.
11861 if test -z "$ac_top_builddir"; then
11862 ac_top_srcdir=.
11863 else
11864 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11865 fi ;;
11866 [\\/]* | ?:[\\/]* ) # Absolute path.
11867 ac_srcdir=$srcdir$ac_dir_suffix;
11868 ac_top_srcdir=$srcdir ;;
11869 *) # Relative path.
11870 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11871 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11872 esac
11873
11874 # Do not use `cd foo && pwd` to compute absolute paths, because
11875 # the directories may not exist.
11876 case `pwd` in
11877 .) ac_abs_builddir="$ac_dir";;
11878 *)
11879 case "$ac_dir" in
11880 .) ac_abs_builddir=`pwd`;;
11881 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11882 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11883 esac;;
11884 esac
11885 case $ac_abs_builddir in
11886 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11887 *)
11888 case ${ac_top_builddir}. in
11889 .) ac_abs_top_builddir=$ac_abs_builddir;;
11890 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11891 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11892 esac;;
11893 esac
11894 case $ac_abs_builddir in
11895 .) ac_abs_srcdir=$ac_srcdir;;
11896 *)
11897 case $ac_srcdir in
11898 .) ac_abs_srcdir=$ac_abs_builddir;;
11899 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11900 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11901 esac;;
11902 esac
11903 case $ac_abs_builddir in
11904 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11905 *)
11906 case $ac_top_srcdir in
11907 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11908 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11909 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11910 esac;;
11911 esac
11912
11913
11914 case $INSTALL in
11915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11916 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11917 esac
11918
11919 if test x"$ac_file" != x-; then
11920 { echo "$as_me:$LINENO: creating $ac_file" >&5
11921 echo "$as_me: creating $ac_file" >&6;}
11922 rm -f "$ac_file"
11923 fi
11924 # Let's still pretend it is `configure' which instantiates (i.e., don't
11925 # use $as_me), people would be surprised to read:
11926 # /* config.h. Generated by config.status. */
11927 if test x"$ac_file" = x-; then
11928 configure_input=
11929 else
11930 configure_input="$ac_file. "
11931 fi
11932 configure_input=$configure_input"Generated from `echo $ac_file_in |
11933 sed 's,.*/,,'` by configure."
11934
11935 # First look for the input files in the build tree, otherwise in the
11936 # src tree.
11937 ac_file_inputs=`IFS=:
11938 for f in $ac_file_in; do
11939 case $f in
11940 -) echo $tmp/stdin ;;
11941 [\\/$]*)
11942 # Absolute (can't be DOS-style, as IFS=:)
11943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11944 echo "$as_me: error: cannot find input file: $f" >&2;}
11945 { (exit 1); exit 1; }; }
11946 echo "$f";;
11947 *) # Relative
11948 if test -f "$f"; then
11949 # Build tree
11950 echo "$f"
11951 elif test -f "$srcdir/$f"; then
11952 # Source tree
11953 echo "$srcdir/$f"
11954 else
11955 # /dev/null tree
11956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11957 echo "$as_me: error: cannot find input file: $f" >&2;}
11958 { (exit 1); exit 1; }; }
11959 fi;;
11960 esac
11961 done` || { (exit 1); exit 1; }
11962 _ACEOF
11963 cat >>$CONFIG_STATUS <<_ACEOF
11964 sed "$ac_vpsub
11965 $extrasub
11966 _ACEOF
11967 cat >>$CONFIG_STATUS <<\_ACEOF
11968 :t
11969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11970 s,@configure_input@,$configure_input,;t t
11971 s,@srcdir@,$ac_srcdir,;t t
11972 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11973 s,@top_srcdir@,$ac_top_srcdir,;t t
11974 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11975 s,@builddir@,$ac_builddir,;t t
11976 s,@abs_builddir@,$ac_abs_builddir,;t t
11977 s,@top_builddir@,$ac_top_builddir,;t t
11978 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11979 s,@INSTALL@,$ac_INSTALL,;t t
11980 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11981 rm -f $tmp/stdin
11982 if test x"$ac_file" != x-; then
11983 mv $tmp/out $ac_file
11984 else
11985 cat $tmp/out
11986 rm -f $tmp/out
11987 fi
11988
11989 done
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<\_ACEOF
11992
11993 #
11994 # CONFIG_HEADER section.
11995 #
11996
11997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11999 #
12000 # ac_d sets the value in "#define NAME VALUE" lines.
12001 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12002 ac_dB='[ ].*$,\1#\2'
12003 ac_dC=' '
12004 ac_dD=',;t'
12005 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12006 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12007 ac_uB='$,\1#\2define\3'
12008 ac_uC=' '
12009 ac_uD=',;t'
12010
12011 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12012 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12013 case $ac_file in
12014 - | *:- | *:-:* ) # input from stdin
12015 cat >$tmp/stdin
12016 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12018 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12020 * ) ac_file_in=$ac_file.in ;;
12021 esac
12022
12023 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12024 echo "$as_me: creating $ac_file" >&6;}
12025
12026 # First look for the input files in the build tree, otherwise in the
12027 # src tree.
12028 ac_file_inputs=`IFS=:
12029 for f in $ac_file_in; do
12030 case $f in
12031 -) echo $tmp/stdin ;;
12032 [\\/$]*)
12033 # Absolute (can't be DOS-style, as IFS=:)
12034 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12035 echo "$as_me: error: cannot find input file: $f" >&2;}
12036 { (exit 1); exit 1; }; }
12037 # Do quote $f, to prevent DOS paths from being IFS'd.
12038 echo "$f";;
12039 *) # Relative
12040 if test -f "$f"; then
12041 # Build tree
12042 echo "$f"
12043 elif test -f "$srcdir/$f"; then
12044 # Source tree
12045 echo "$srcdir/$f"
12046 else
12047 # /dev/null tree
12048 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12049 echo "$as_me: error: cannot find input file: $f" >&2;}
12050 { (exit 1); exit 1; }; }
12051 fi;;
12052 esac
12053 done` || { (exit 1); exit 1; }
12054 # Remove the trailing spaces.
12055 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12056
12057 _ACEOF
12058
12059 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12060 # `conftest.undefs', that substitutes the proper values into
12061 # config.h.in to produce config.h. The first handles `#define'
12062 # templates, and the second `#undef' templates.
12063 # And first: Protect against being on the right side of a sed subst in
12064 # config.status. Protect against being in an unquoted here document
12065 # in config.status.
12066 rm -f conftest.defines conftest.undefs
12067 # Using a here document instead of a string reduces the quoting nightmare.
12068 # Putting comments in sed scripts is not portable.
12069 #
12070 # `end' is used to avoid that the second main sed command (meant for
12071 # 0-ary CPP macros) applies to n-ary macro definitions.
12072 # See the Autoconf documentation for `clear'.
12073 cat >confdef2sed.sed <<\_ACEOF
12074 s/[\\&,]/\\&/g
12075 s,[\\$`],\\&,g
12076 t clear
12077 : clear
12078 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12079 t end
12080 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12081 : end
12082 _ACEOF
12083 # If some macros were called several times there might be several times
12084 # the same #defines, which is useless. Nevertheless, we may not want to
12085 # sort them, since we want the *last* AC-DEFINE to be honored.
12086 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12087 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12088 rm -f confdef2sed.sed
12089
12090 # This sed command replaces #undef with comments. This is necessary, for
12091 # example, in the case of _POSIX_SOURCE, which is predefined and required
12092 # on some systems where configure will not decide to define it.
12093 cat >>conftest.undefs <<\_ACEOF
12094 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12095 _ACEOF
12096
12097 # Break up conftest.defines because some shells have a limit on the size
12098 # of here documents, and old seds have small limits too (100 cmds).
12099 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12100 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12101 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12102 echo ' :' >>$CONFIG_STATUS
12103 rm -f conftest.tail
12104 while grep . conftest.defines >/dev/null
12105 do
12106 # Write a limited-size here document to $tmp/defines.sed.
12107 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12108 # Speed up: don't consider the non `#define' lines.
12109 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12110 # Work around the forget-to-reset-the-flag bug.
12111 echo 't clr' >>$CONFIG_STATUS
12112 echo ': clr' >>$CONFIG_STATUS
12113 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12114 echo 'CEOF
12115 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12116 rm -f $tmp/in
12117 mv $tmp/out $tmp/in
12118 ' >>$CONFIG_STATUS
12119 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12120 rm -f conftest.defines
12121 mv conftest.tail conftest.defines
12122 done
12123 rm -f conftest.defines
12124 echo ' fi # grep' >>$CONFIG_STATUS
12125 echo >>$CONFIG_STATUS
12126
12127 # Break up conftest.undefs because some shells have a limit on the size
12128 # of here documents, and old seds have small limits too (100 cmds).
12129 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12130 rm -f conftest.tail
12131 while grep . conftest.undefs >/dev/null
12132 do
12133 # Write a limited-size here document to $tmp/undefs.sed.
12134 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12135 # Speed up: don't consider the non `#undef'
12136 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12137 # Work around the forget-to-reset-the-flag bug.
12138 echo 't clr' >>$CONFIG_STATUS
12139 echo ': clr' >>$CONFIG_STATUS
12140 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12141 echo 'CEOF
12142 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12143 rm -f $tmp/in
12144 mv $tmp/out $tmp/in
12145 ' >>$CONFIG_STATUS
12146 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12147 rm -f conftest.undefs
12148 mv conftest.tail conftest.undefs
12149 done
12150 rm -f conftest.undefs
12151
12152 cat >>$CONFIG_STATUS <<\_ACEOF
12153 # Let's still pretend it is `configure' which instantiates (i.e., don't
12154 # use $as_me), people would be surprised to read:
12155 # /* config.h. Generated by config.status. */
12156 if test x"$ac_file" = x-; then
12157 echo "/* Generated by configure. */" >$tmp/config.h
12158 else
12159 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12160 fi
12161 cat $tmp/in >>$tmp/config.h
12162 rm -f $tmp/in
12163 if test x"$ac_file" != x-; then
12164 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12165 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12166 echo "$as_me: $ac_file is unchanged" >&6;}
12167 else
12168 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12170 X"$ac_file" : 'X\(//\)[^/]' \| \
12171 X"$ac_file" : 'X\(//\)$' \| \
12172 X"$ac_file" : 'X\(/\)' \| \
12173 . : '\(.\)' 2>/dev/null ||
12174 echo X"$ac_file" |
12175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12177 /^X\(\/\/\)$/{ s//\1/; q; }
12178 /^X\(\/\).*/{ s//\1/; q; }
12179 s/.*/./; q'`
12180 { if $as_mkdir_p; then
12181 mkdir -p "$ac_dir"
12182 else
12183 as_dir="$ac_dir"
12184 as_dirs=
12185 while test ! -d "$as_dir"; do
12186 as_dirs="$as_dir $as_dirs"
12187 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12189 X"$as_dir" : 'X\(//\)[^/]' \| \
12190 X"$as_dir" : 'X\(//\)$' \| \
12191 X"$as_dir" : 'X\(/\)' \| \
12192 . : '\(.\)' 2>/dev/null ||
12193 echo X"$as_dir" |
12194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12196 /^X\(\/\/\)$/{ s//\1/; q; }
12197 /^X\(\/\).*/{ s//\1/; q; }
12198 s/.*/./; q'`
12199 done
12200 test ! -n "$as_dirs" || mkdir $as_dirs
12201 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12202 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12203 { (exit 1); exit 1; }; }; }
12204
12205 rm -f $ac_file
12206 mv $tmp/config.h $ac_file
12207 fi
12208 else
12209 cat $tmp/config.h
12210 rm -f $tmp/config.h
12211 fi
12212 # Compute $ac_file's index in $config_headers.
12213 _am_stamp_count=1
12214 for _am_header in $config_headers :; do
12215 case $_am_header in
12216 $ac_file | $ac_file:* )
12217 break ;;
12218 * )
12219 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12220 esac
12221 done
12222 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12223 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12224 X$ac_file : 'X\(//\)[^/]' \| \
12225 X$ac_file : 'X\(//\)$' \| \
12226 X$ac_file : 'X\(/\)' \| \
12227 . : '\(.\)' 2>/dev/null ||
12228 echo X$ac_file |
12229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12231 /^X\(\/\/\)$/{ s//\1/; q; }
12232 /^X\(\/\).*/{ s//\1/; q; }
12233 s/.*/./; q'`/stamp-h$_am_stamp_count
12234 done
12235 _ACEOF
12236 cat >>$CONFIG_STATUS <<\_ACEOF
12237
12238 #
12239 # CONFIG_COMMANDS section.
12240 #
12241 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12242 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12243 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12244 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12245 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12246 X"$ac_dest" : 'X\(//\)[^/]' \| \
12247 X"$ac_dest" : 'X\(//\)$' \| \
12248 X"$ac_dest" : 'X\(/\)' \| \
12249 . : '\(.\)' 2>/dev/null ||
12250 echo X"$ac_dest" |
12251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12253 /^X\(\/\/\)$/{ s//\1/; q; }
12254 /^X\(\/\).*/{ s//\1/; q; }
12255 s/.*/./; q'`
12256 { if $as_mkdir_p; then
12257 mkdir -p "$ac_dir"
12258 else
12259 as_dir="$ac_dir"
12260 as_dirs=
12261 while test ! -d "$as_dir"; do
12262 as_dirs="$as_dir $as_dirs"
12263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265 X"$as_dir" : 'X\(//\)[^/]' \| \
12266 X"$as_dir" : 'X\(//\)$' \| \
12267 X"$as_dir" : 'X\(/\)' \| \
12268 . : '\(.\)' 2>/dev/null ||
12269 echo X"$as_dir" |
12270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12272 /^X\(\/\/\)$/{ s//\1/; q; }
12273 /^X\(\/\).*/{ s//\1/; q; }
12274 s/.*/./; q'`
12275 done
12276 test ! -n "$as_dirs" || mkdir $as_dirs
12277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12279 { (exit 1); exit 1; }; }; }
12280
12281 ac_builddir=.
12282
12283 if test "$ac_dir" != .; then
12284 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12285 # A "../" for each directory in $ac_dir_suffix.
12286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12287 else
12288 ac_dir_suffix= ac_top_builddir=
12289 fi
12290
12291 case $srcdir in
12292 .) # No --srcdir option. We are building in place.
12293 ac_srcdir=.
12294 if test -z "$ac_top_builddir"; then
12295 ac_top_srcdir=.
12296 else
12297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12298 fi ;;
12299 [\\/]* | ?:[\\/]* ) # Absolute path.
12300 ac_srcdir=$srcdir$ac_dir_suffix;
12301 ac_top_srcdir=$srcdir ;;
12302 *) # Relative path.
12303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12305 esac
12306
12307 # Do not use `cd foo && pwd` to compute absolute paths, because
12308 # the directories may not exist.
12309 case `pwd` in
12310 .) ac_abs_builddir="$ac_dir";;
12311 *)
12312 case "$ac_dir" in
12313 .) ac_abs_builddir=`pwd`;;
12314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12315 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12316 esac;;
12317 esac
12318 case $ac_abs_builddir in
12319 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12320 *)
12321 case ${ac_top_builddir}. in
12322 .) ac_abs_top_builddir=$ac_abs_builddir;;
12323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12325 esac;;
12326 esac
12327 case $ac_abs_builddir in
12328 .) ac_abs_srcdir=$ac_srcdir;;
12329 *)
12330 case $ac_srcdir in
12331 .) ac_abs_srcdir=$ac_abs_builddir;;
12332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12334 esac;;
12335 esac
12336 case $ac_abs_builddir in
12337 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12338 *)
12339 case $ac_top_srcdir in
12340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12343 esac;;
12344 esac
12345
12346
12347 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12348 echo "$as_me: executing $ac_dest commands" >&6;}
12349 case $ac_dest in
12350 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12351 # Strip MF so we end up with the name of the file.
12352 mf=`echo "$mf" | sed -e 's/:.*$//'`
12353 # Check whether this is an Automake generated Makefile or not.
12354 # We used to match only the files named `Makefile.in', but
12355 # some people rename them; so instead we look at the file content.
12356 # Grep'ing the first line is not enough: some people post-process
12357 # each Makefile.in and add a new line on top of each file to say so.
12358 # So let's grep whole file.
12359 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12360 dirpart=`(dirname "$mf") 2>/dev/null ||
12361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12362 X"$mf" : 'X\(//\)[^/]' \| \
12363 X"$mf" : 'X\(//\)$' \| \
12364 X"$mf" : 'X\(/\)' \| \
12365 . : '\(.\)' 2>/dev/null ||
12366 echo X"$mf" |
12367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12369 /^X\(\/\/\)$/{ s//\1/; q; }
12370 /^X\(\/\).*/{ s//\1/; q; }
12371 s/.*/./; q'`
12372 else
12373 continue
12374 fi
12375 # Extract the definition of DEPDIR, am__include, and am__quote
12376 # from the Makefile without running `make'.
12377 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12378 test -z "$DEPDIR" && continue
12379 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12380 test -z "am__include" && continue
12381 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12382 # When using ansi2knr, U may be empty or an underscore; expand it
12383 U=`sed -n 's/^U = //p' < "$mf"`
12384 # Find all dependency output files, they are included files with
12385 # $(DEPDIR) in their names. We invoke sed twice because it is the
12386 # simplest approach to changing $(DEPDIR) to its actual value in the
12387 # expansion.
12388 for file in `sed -n "
12389 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12390 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12391 # Make sure the directory exists.
12392 test -f "$dirpart/$file" && continue
12393 fdir=`(dirname "$file") 2>/dev/null ||
12394 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12395 X"$file" : 'X\(//\)[^/]' \| \
12396 X"$file" : 'X\(//\)$' \| \
12397 X"$file" : 'X\(/\)' \| \
12398 . : '\(.\)' 2>/dev/null ||
12399 echo X"$file" |
12400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12402 /^X\(\/\/\)$/{ s//\1/; q; }
12403 /^X\(\/\).*/{ s//\1/; q; }
12404 s/.*/./; q'`
12405 { if $as_mkdir_p; then
12406 mkdir -p $dirpart/$fdir
12407 else
12408 as_dir=$dirpart/$fdir
12409 as_dirs=
12410 while test ! -d "$as_dir"; do
12411 as_dirs="$as_dir $as_dirs"
12412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12414 X"$as_dir" : 'X\(//\)[^/]' \| \
12415 X"$as_dir" : 'X\(//\)$' \| \
12416 X"$as_dir" : 'X\(/\)' \| \
12417 . : '\(.\)' 2>/dev/null ||
12418 echo X"$as_dir" |
12419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12421 /^X\(\/\/\)$/{ s//\1/; q; }
12422 /^X\(\/\).*/{ s//\1/; q; }
12423 s/.*/./; q'`
12424 done
12425 test ! -n "$as_dirs" || mkdir $as_dirs
12426 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12427 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12428 { (exit 1); exit 1; }; }; }
12429
12430 # echo "creating $dirpart/$file"
12431 echo '# dummy' > "$dirpart/$file"
12432 done
12433 done
12434 ;;
12435 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12436 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12437 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12438 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12439 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12440 if test "x$cgen_cpu_prefix" != x ; then
12441 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12442 fi
12443
12444 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12445 esac
12446 done
12447 _ACEOF
12448
12449 cat >>$CONFIG_STATUS <<\_ACEOF
12450
12451 { (exit 0); exit 0; }
12452 _ACEOF
12453 chmod +x $CONFIG_STATUS
12454 ac_clean_files=$ac_clean_files_save
12455
12456
12457 # configure is writing to config.log, and then calls config.status.
12458 # config.status does its own redirection, appending to config.log.
12459 # Unfortunately, on DOS this fails, as config.log is still kept open
12460 # by configure, so config.status won't be able to write to it; its
12461 # output is simply discarded. So we exec the FD to /dev/null,
12462 # effectively closing config.log, so it can be properly (re)opened and
12463 # appended to by config.status. When coming back to configure, we
12464 # need to make the FD available again.
12465 if test "$no_create" != yes; then
12466 ac_cs_success=:
12467 ac_config_status_args=
12468 test "$silent" = yes &&
12469 ac_config_status_args="$ac_config_status_args --quiet"
12470 exec 5>/dev/null
12471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12472 exec 5>>config.log
12473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12474 # would make configure fail if this is the last instruction.
12475 $ac_cs_success || { (exit 1); exit 1; }
12476 fi
12477
This page took 0.341306 seconds and 3 git commands to generate.