* frame.c (frame_pop): Check to see whether there's a frame to
[deliverable/binutils-gdb.git] / binutils / 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="ar.c"
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 REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME CPP EGREP ALLOCA NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir 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-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-bugurl=URL Direct users to URL to report a bug
873
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd $ac_popdir
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
995
996 $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112 {
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125 }
1126 echo
1127
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508 CC=$ac_ct_CC
1509 else
1510 CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 CC=$ac_ct_CC
1589 else
1590 CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621 done
1622 done
1623
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 test -n "$CC" && break
1688 done
1689 fi
1690 if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693 do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 test -n "$ac_ct_CC" && break
1730 done
1731
1732 CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h. */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1770
1771 int
1772 main ()
1773 {
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 ;;
1806 conftest.$ac_ext )
1807 # This is the source file.
1808 ;;
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1820 * )
1821 break;;
1822 esac
1823 done
1824 else
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1838
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899 done
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1926
1927 int
1928 main ()
1929 {
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947 done
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981 choke me
1982 #endif
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011 else
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_compiler_gnu=no
2016 fi
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020 fi
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2026 CFLAGS="-g"
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h. */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2038
2039 int
2040 main ()
2041 {
2042
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_cv_prog_cc_g=no
2075 fi
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2087 fi
2088 else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2093 fi
2094 fi
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2108 #include <stdarg.h>
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116 char **p;
2117 int i;
2118 {
2119 return p[i];
2120 }
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2122 {
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2129 }
2130
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2146 int
2147 main ()
2148 {
2149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX -qlanglvl=ansi
2157 # Ultrix and OSF/1 -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions -Aa -D_HPUX_SOURCE
2160 # SVR4 -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 do
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 fi
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2197
2198 fi
2199
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2209
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2248 do
2249 cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h. */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2255 $ac_declaration
2256 #include <stdlib.h>
2257 int
2258 main ()
2259 {
2260 exit (42);
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 :
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301 $ac_declaration
2302 int
2303 main ()
2304 {
2305 exit (42);
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 fi
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 rm -f conftest*
2341 if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2345 fi
2346
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 if test "${ac_cv_search_strerror+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 ac_func_search_save_LIBS=$LIBS
2366 ac_cv_search_strerror=no
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2373
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 #ifdef __cplusplus
2376 extern "C"
2377 #endif
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380 char strerror ();
2381 int
2382 main ()
2383 {
2384 strerror ();
2385 ;
2386 return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext conftest$ac_exeext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_search_strerror="none required"
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 fi
2417 rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419 if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 #ifdef __cplusplus
2431 extern "C"
2432 #endif
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435 char strerror ();
2436 int
2437 main ()
2438 {
2439 strerror ();
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467 break
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 fi
2473 rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
2476 fi
2477 LIBS=$ac_func_search_save_LIBS
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481 if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483
2484 fi
2485
2486
2487 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488 am__api_version="1.9"
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504 if test -z "$INSTALL"; then
2505 if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
2537 fi
2538 fi
2539 done
2540 done
2541 ;;
2542 esac
2543 done
2544
2545
2546 fi
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
2554 INSTALL=$ac_install_sh
2555 fi
2556 fi
2557 echo "$as_me:$LINENO: result: $INSTALL" >&5
2558 echo "${ECHO_T}$INSTALL" >&6
2559
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2570 # Just in case
2571 sleep 1
2572 echo timestamp > conftest.file
2573 # Do `set' in a subshell so we don't clobber the current shell's
2574 # arguments. Must try -L first in case configure is actually a
2575 # symlink; some systems play weird games with the mod time of symlinks
2576 # (eg FreeBSD returns the mod time of the symlink's containing
2577 # directory).
2578 if (
2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2580 if test "$*" = "X"; then
2581 # -L didn't work.
2582 set X `ls -t $srcdir/configure conftest.file`
2583 fi
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
2587
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593 alias in your environment" >&5
2594 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
2597 fi
2598
2599 test "$2" = conftest.file
2600 )
2601 then
2602 # Ok.
2603 :
2604 else
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606 Check your system clock" >&5
2607 echo "$as_me: error: newly created file is older than distributed files!
2608 Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613 test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618 # Double any \ or $. echo might interpret backslashes.
2619 # By default was `s,x,x', remove it if useless.
2620 cat <<\_ACEOF >conftest.sed
2621 s/[\\$]/&&/g;s/;s,x,x,$//
2622 _ACEOF
2623 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624 rm conftest.sed
2625
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633 else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637 fi
2638
2639 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
2642 # $(mkdir_p) $(somedir)
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
2655 else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
2660 for d in ./-p ./--version;
2661 do
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2669 fi
2670 fi
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703 echo "${ECHO_T}$AWK" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709 test -n "$AWK" && break
2710 done
2711
2712 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721 _ACEOF
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724 if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726 else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2728 fi
2729 rm -f conftest.make
2730 fi
2731 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2739 fi
2740
2741 rm -rf .tst 2>/dev/null
2742 mkdir .tst 2>/dev/null
2743 if test -d .tst; then
2744 am__leading_dot=.
2745 else
2746 am__leading_dot=_
2747 fi
2748 rmdir .tst 2>/dev/null
2749
2750 DEPDIR="${am__leading_dot}deps"
2751
2752 ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755 am_make=${MAKE-make}
2756 cat > confinc << 'END'
2757 am__doit:
2758 @echo done
2759 .PHONY: am__doit
2760 END
2761 # If we don't find an include directive, just comment out the code.
2762 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764 am__include="#"
2765 am__quote=
2766 _am_result=none
2767 # First try GNU make style include.
2768 echo "include confinc" > confmf
2769 # We grep out `Entering directory' and `Leaving directory'
2770 # messages which can occur if `w' ends up in MAKEFLAGS.
2771 # In particular we don't look at `^make:' because GNU make might
2772 # be invoked under some other name (usually "gmake"), in which
2773 # case it prints its new name instead of `make'.
2774 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2778 fi
2779 # Now try BSD make style include.
2780 if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2786 fi
2787 fi
2788
2789
2790 echo "$as_me:$LINENO: result: $_am_result" >&5
2791 echo "${ECHO_T}$_am_result" >&6
2792 rm -f confinc confmf
2793
2794 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795 if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2797
2798 fi;
2799 if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2802 fi
2803
2804
2805 if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808 else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2811 fi
2812
2813
2814
2815 # test to see if srcdir already configured
2816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2821 fi
2822
2823 # test whether we have cygpath
2824 if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2829 fi
2830 fi
2831
2832
2833 # Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2836
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE "$PACKAGE"
2840 _ACEOF
2841
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define VERSION "$VERSION"
2845 _ACEOF
2846
2847 # Some tools Automake needs.
2848
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
2863 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864
2865 # Installed binaries are usually stripped using `strip' when the user
2866 # run `make install-strip'. However `strip' might not be the right
2867 # tool to use in cross-compilation environments, therefore Automake
2868 # will honor the `STRIP' environment variable to overrule this program.
2869 if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}strip; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894
2895 fi
2896 fi
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900 echo "${ECHO_T}$STRIP" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2904 fi
2905
2906 fi
2907 if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910 set dummy strip; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2934 fi
2935 fi
2936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937 if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939 echo "${ECHO_T}$ac_ct_STRIP" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2943 fi
2944
2945 STRIP=$ac_ct_STRIP
2946 else
2947 STRIP="$ac_cv_prog_STRIP"
2948 fi
2949
2950 fi
2951 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2952
2953 # We need awk for the "check" target. The system "awk" is bad on
2954 # some platforms.
2955 # Always define AMTAR for backward compatibility.
2956
2957 AMTAR=${AMTAR-"${am_missing_run}tar"}
2958
2959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960
2961
2962
2963
2964 depcc="$CC" am_compiler_list=
2965
2966 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
2989
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 fi
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2998 #
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3019 fi
3020 ;;
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3045 fi
3046 fi
3047 done
3048
3049 cd ..
3050 rm -rf conftest.dir
3051 else
3052 am_cv_CC_dependencies_compiler_type=none
3053 fi
3054
3055 fi
3056 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
3060
3061
3062 if
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
3067 else
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
3070 fi
3071
3072
3073
3074
3075 # Check whether --enable-shared or --disable-shared was given.
3076 if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
3079 case $enableval in
3080 yes) enable_shared=yes ;;
3081 no) enable_shared=no ;;
3082 *)
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3089 fi
3090 done
3091 IFS="$ac_save_ifs"
3092 ;;
3093 esac
3094 else
3095 enable_shared=yes
3096 fi;
3097 # Check whether --enable-static or --disable-static was given.
3098 if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_static=yes ;;
3103 no) enable_static=no ;;
3104 *)
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3111 fi
3112 done
3113 IFS="$ac_save_ifs"
3114 ;;
3115 esac
3116 else
3117 enable_static=yes
3118 fi;
3119 # Check whether --enable-fast-install or --disable-fast-install was given.
3120 if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
3123 case $enableval in
3124 yes) enable_fast_install=yes ;;
3125 no) enable_fast_install=no ;;
3126 *)
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
3133 fi
3134 done
3135 IFS="$ac_save_ifs"
3136 ;;
3137 esac
3138 else
3139 enable_fast_install=yes
3140 fi;
3141
3142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3143 if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146 else
3147 with_gnu_ld=no
3148 fi;
3149 ac_prog=ld
3150 if test "$GCC" = yes; then
3151 # Check if gcc -print-prog-name=ld gives a path.
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 *)
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
3161 case $ac_prog in
3162 # Accept absolute paths.
3163 [\\/]* | [A-Za-z]:[\\/]*)
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3171 ;;
3172 "")
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3175 ;;
3176 *)
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3179 ;;
3180 esac
3181 elif test "$with_gnu_ld" = yes; then
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184 else
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187 fi
3188 if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -z "$LD"; then
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3196 lt_cv_path_LD="$ac_dir/$ac_prog"
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3201 test "$with_gnu_ld" != no && break
3202 else
3203 test "$with_gnu_ld" != yes && break
3204 fi
3205 fi
3206 done
3207 IFS="$ac_save_ifs"
3208 else
3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3210 fi
3211 fi
3212
3213 LD="$lt_cv_path_LD"
3214 if test -n "$LD"; then
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216 echo "${ECHO_T}$LD" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3231 lt_cv_prog_gnu_ld=yes
3232 else
3233 lt_cv_prog_gnu_ld=no
3234 fi
3235 fi
3236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3238 with_gnu_ld=$lt_cv_prog_gnu_ld
3239
3240
3241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243 if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 lt_cv_ld_reload_flag='-r'
3247 fi
3248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3250 reload_flag=$lt_cv_ld_reload_flag
3251 test -n "$reload_flag" && reload_flag=" $reload_flag"
3252
3253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255 if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
3260 lt_cv_path_NM="$NM"
3261 else
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264 test -z "$ac_dir" && ac_dir=.
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3272 lt_cv_path_NM="$tmp_nm -B"
3273 break
3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3275 lt_cv_path_NM="$tmp_nm -p"
3276 break
3277 else
3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3279 continue # so that we can try to find one that supports BSD flags
3280 fi
3281 fi
3282 done
3283 IFS="$ac_save_ifs"
3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3285 fi
3286 fi
3287
3288 NM="$lt_cv_path_NM"
3289 echo "$as_me:$LINENO: result: $NM" >&5
3290 echo "${ECHO_T}$NM" >&6
3291
3292 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294 LN_S=$as_ln_s
3295 if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297 echo "${ECHO_T}yes" >&6
3298 else
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300 echo "${ECHO_T}no, using $LN_S" >&6
3301 fi
3302
3303 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305 if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
3309 lt_cv_file_magic_test_file=
3310 lt_cv_deplibs_check_method='unknown'
3311 # Need to set the preceding variable on all platforms that support
3312 # interlibrary dependencies.
3313 # 'none' -- dependencies not supported.
3314 # `unknown' -- same as none, but documents that we really don't know.
3315 # 'pass_all' -- all dependencies passed with no checks.
3316 # 'test_compile' -- check by making test program.
3317 # 'file_magic [regex]' -- check by looking for files in library path
3318 # which responds to the $file_magic_cmd with a given egrep regex.
3319 # If you have `file' or equivalent on your system and you're not sure
3320 # whether `pass_all' will *always* work, you probably want this one.
3321
3322 case $host_os in
3323 aix*)
3324 lt_cv_deplibs_check_method=pass_all
3325 ;;
3326
3327 beos*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 bsdi4*)
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3335 ;;
3336
3337 cygwin* | mingw* |pw32*)
3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
3340 ;;
3341
3342 darwin* | rhapsody*)
3343 # this will be overwritten by pass_all, but leave it in just in case
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 lt_cv_deplibs_check_method=pass_all
3355 ;;
3356
3357 freebsd* | kfreebsd*-gnu)
3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359 case $host_cpu in
3360 i*86 )
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 ;;
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3370 fi
3371 ;;
3372
3373 gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
3377 hpux10.20*|hpux11*)
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ;;
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 ;;
3389 esac
3390 ;;
3391
3392 irix5* | irix6*)
3393 case $host_os in
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 ;;
3398 *)
3399 case $LD in
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 ;;
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3411 ;;
3412
3413 # This must be Linux ELF.
3414 linux-gnu*)
3415 lt_cv_deplibs_check_method=pass_all
3416 ;;
3417
3418 netbsd* | knetbsd*-gnu)
3419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3421 else
3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3423 fi
3424 ;;
3425
3426 newsos6)
3427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3430 ;;
3431
3432 osf3* | osf4* | osf5*)
3433 # this will be overridden with pass_all, but let us keep it just in case
3434 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435 lt_cv_file_magic_test_file=/shlib/libc.so
3436 lt_cv_deplibs_check_method=pass_all
3437 ;;
3438
3439 sco3.2v5*)
3440 lt_cv_deplibs_check_method=pass_all
3441 ;;
3442
3443 solaris*)
3444 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_file_magic_test_file=/lib/libc.so
3446 ;;
3447
3448 sysv5uw[78]* | sysv4*uw2*)
3449 lt_cv_deplibs_check_method=pass_all
3450 ;;
3451
3452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3453 case $host_vendor in
3454 ncr)
3455 lt_cv_deplibs_check_method=pass_all
3456 ;;
3457 motorola)
3458 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]'
3459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3460 ;;
3461 esac
3462 ;;
3463 esac
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3468 file_magic_cmd=$lt_cv_file_magic_cmd
3469 deplibs_check_method=$lt_cv_deplibs_check_method
3470
3471
3472
3473
3474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475
3476 # find the maximum length of command line arguments
3477 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 i=0
3483 teststring="ABCD"
3484
3485 case $build_os in
3486 msdosdjgpp*)
3487 # On DJGPP, this test can blow up pretty badly due to problems in libc
3488 # (any single argument exceeding 2000 bytes causes a buffer overrun
3489 # during glob expansion). Even if it were fixed, the result of this
3490 # check would be larger than it should be.
3491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3492 ;;
3493
3494 cygwin* | mingw*)
3495 # On Win9x/ME, this test blows up -- it succeeds, but takes
3496 # about 5 minutes as the teststring grows exponentially.
3497 # Worse, since 9x/ME are not pre-emptively multitasking,
3498 # you end up with a "frozen" computer, even though with patience
3499 # the test eventually succeeds (with a max line length of 256k).
3500 # Instead, let's just punt: use the minimum linelength reported by
3501 # all of the supported platforms: 8192 (on NT/2K/XP).
3502 lt_cv_sys_max_cmd_len=8192;
3503 ;;
3504
3505 amigaos*)
3506 # On AmigaOS with pdksh, this test takes hours, literally.
3507 # So we just punt and use a minimum line length of 8192.
3508 lt_cv_sys_max_cmd_len=8192;
3509 ;;
3510
3511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512 # This has been around since 386BSD, at least. Likely further.
3513 if test -x /sbin/sysctl; then
3514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515 elif test -x /usr/sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517 else
3518 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519 fi
3520 # And add a safety zone
3521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523 ;;
3524 esac
3525
3526 fi
3527
3528 if test -n "$lt_cv_sys_max_cmd_len" ; then
3529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531 else
3532 echo "$as_me:$LINENO: result: none" >&5
3533 echo "${ECHO_T}none" >&6
3534 fi
3535
3536
3537 # Only perform the check for file, if the check method requires it
3538 case $deplibs_check_method in
3539 file_magic*)
3540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3541 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 case $MAGIC_CMD in
3547 /*)
3548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3549 ;;
3550 ?:/*)
3551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3552 ;;
3553 *)
3554 ac_save_MAGIC_CMD="$MAGIC_CMD"
3555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 ac_dummy="/usr/bin:$PATH"
3557 for ac_dir in $ac_dummy; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f $ac_dir/${ac_tool_prefix}file; then
3560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3561 if test -n "$file_magic_test_file"; then
3562 case $deplibs_check_method in
3563 "file_magic "*)
3564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567 egrep "$file_magic_regex" > /dev/null; then
3568 :
3569 else
3570 cat <<EOF 1>&2
3571
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such. This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem. Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3580
3581 EOF
3582 fi ;;
3583 esac
3584 fi
3585 break
3586 fi
3587 done
3588 IFS="$ac_save_ifs"
3589 MAGIC_CMD="$ac_save_MAGIC_CMD"
3590 ;;
3591 esac
3592 fi
3593
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3598 else
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603 if test -z "$lt_cv_path_MAGIC_CMD"; then
3604 if test -n "$ac_tool_prefix"; then
3605 echo "$as_me:$LINENO: checking for file" >&5
3606 echo $ECHO_N "checking for file... $ECHO_C" >&6
3607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 case $MAGIC_CMD in
3611 /*)
3612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3613 ;;
3614 ?:/*)
3615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3616 ;;
3617 *)
3618 ac_save_MAGIC_CMD="$MAGIC_CMD"
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="/usr/bin:$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/file; then
3624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3625 if test -n "$file_magic_test_file"; then
3626 case $deplibs_check_method in
3627 "file_magic "*)
3628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631 egrep "$file_magic_regex" > /dev/null; then
3632 :
3633 else
3634 cat <<EOF 1>&2
3635
3636 *** Warning: the command libtool uses to detect shared libraries,
3637 *** $file_magic_cmd, produces output that libtool cannot recognize.
3638 *** The result is that libtool may fail to recognize shared libraries
3639 *** as such. This will affect the creation of libtool libraries that
3640 *** depend on shared libraries, but programs linked with such libtool
3641 *** libraries will work regardless of this problem. Nevertheless, you
3642 *** may want to report the problem to your system manager and/or to
3643 *** bug-libtool@gnu.org
3644
3645 EOF
3646 fi ;;
3647 esac
3648 fi
3649 break
3650 fi
3651 done
3652 IFS="$ac_save_ifs"
3653 MAGIC_CMD="$ac_save_MAGIC_CMD"
3654 ;;
3655 esac
3656 fi
3657
3658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659 if test -n "$MAGIC_CMD"; then
3660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661 echo "${ECHO_T}$MAGIC_CMD" >&6
3662 else
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3665 fi
3666
3667 else
3668 MAGIC_CMD=:
3669 fi
3670 fi
3671
3672 fi
3673 ;;
3674 esac
3675
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700
3701 fi
3702 fi
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705 echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 echo "${ECHO_T}$RANLIB" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3710 fi
3711
3712 fi
3713 if test -z "$ac_cv_prog_RANLIB"; then
3714 ac_ct_RANLIB=$RANLIB
3715 # Extract the first word of "ranlib", so it can be a program name with args.
3716 set dummy ranlib; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$ac_ct_RANLIB"; then
3723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_RANLIB="ranlib"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738
3739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3740 fi
3741 fi
3742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743 if test -n "$ac_ct_RANLIB"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3746 else
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749 fi
3750
3751 RANLIB=$ac_ct_RANLIB
3752 else
3753 RANLIB="$ac_cv_prog_RANLIB"
3754 fi
3755
3756 if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_STRIP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778 done
3779 done
3780
3781 fi
3782 fi
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785 echo "$as_me:$LINENO: result: $STRIP" >&5
3786 echo "${ECHO_T}$STRIP" >&6
3787 else
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792 fi
3793 if test -z "$ac_cv_prog_STRIP"; then
3794 ac_ct_STRIP=$STRIP
3795 # Extract the first word of "strip", so it can be a program name with args.
3796 set dummy strip; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$ac_ct_STRIP"; then
3803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_STRIP="strip"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818
3819 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3820 fi
3821 fi
3822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823 if test -n "$ac_ct_STRIP"; then
3824 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825 echo "${ECHO_T}$ac_ct_STRIP" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829 fi
3830
3831 STRIP=$ac_ct_STRIP
3832 else
3833 STRIP="$ac_cv_prog_STRIP"
3834 fi
3835
3836
3837 # Check for any special flags to pass to ltconfig.
3838 libtool_flags="--cache-file=$cache_file"
3839 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3841 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3842 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3844
3845
3846 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847 if test "${enable_libtool_lock+set}" = set; then
3848 enableval="$enable_libtool_lock"
3849
3850 fi;
3851 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3853
3854
3855 # Check whether --with-pic or --without-pic was given.
3856 if test "${with_pic+set}" = set; then
3857 withval="$with_pic"
3858 pic_mode="$withval"
3859 else
3860 pic_mode=default
3861 fi;
3862 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864
3865 # Some flags need to be propagated to the compiler or linker for good
3866 # libtool support.
3867 case $host in
3868 *-*-irix6*)
3869 # Find out which ABI we are using.
3870 echo '#line 3870 "configure"' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
3876 if test "$lt_cv_prog_gnu_ld" = yes; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3878 *32-bit*)
3879 LD="${LD-ld} -melf32bsmip"
3880 ;;
3881 *N32*)
3882 LD="${LD-ld} -melf32bmipn32"
3883 ;;
3884 *64-bit*)
3885 LD="${LD-ld} -melf64bmip"
3886 ;;
3887 esac
3888 else
3889 case `/usr/bin/file conftest.$ac_objext` in
3890 *32-bit*)
3891 LD="${LD-ld} -32"
3892 ;;
3893 *N32*)
3894 LD="${LD-ld} -n32"
3895 ;;
3896 *64-bit*)
3897 LD="${LD-ld} -64"
3898 ;;
3899 esac
3900 fi
3901 fi
3902 rm -rf conftest*
3903 ;;
3904
3905 ia64-*-hpux*)
3906 # Find out which ABI we are using.
3907 echo 'int i;' > conftest.$ac_ext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then
3913 case "`/usr/bin/file conftest.o`" in
3914 *ELF-32*)
3915 HPUX_IA64_MODE="32"
3916 ;;
3917 *ELF-64*)
3918 HPUX_IA64_MODE="64"
3919 ;;
3920 esac
3921 fi
3922 rm -rf conftest*
3923 ;;
3924
3925 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3926 # Find out which ABI we are using.
3927 echo 'int i;' > conftest.$ac_ext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; then
3933 case "`/usr/bin/file conftest.o`" in
3934 *32-bit*)
3935 case $host in
3936 x86_64-*linux*)
3937 LD="${LD-ld} -m elf_i386"
3938 ;;
3939 ppc64-*linux*|powerpc64-*linux*)
3940 LD="${LD-ld} -m elf32ppclinux"
3941 ;;
3942 s390x-*linux*)
3943 LD="${LD-ld} -m elf_s390"
3944 ;;
3945 sparc64-*linux*)
3946 LD="${LD-ld} -m elf32_sparc"
3947 ;;
3948 esac
3949 ;;
3950 *64-bit*)
3951 case $host in
3952 x86_64-*linux*)
3953 LD="${LD-ld} -m elf_x86_64"
3954 ;;
3955 ppc*-*linux*|powerpc*-*linux*)
3956 LD="${LD-ld} -m elf64ppc"
3957 ;;
3958 s390*-*linux*)
3959 LD="${LD-ld} -m elf64_s390"
3960 ;;
3961 sparc*-*linux*)
3962 LD="${LD-ld} -m elf64_sparc"
3963 ;;
3964 esac
3965 ;;
3966 esac
3967 fi
3968 rm -rf conftest*
3969 ;;
3970
3971 *-*-sco3.2v5*)
3972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3973 SAVE_CFLAGS="$CFLAGS"
3974 CFLAGS="$CFLAGS -belf"
3975 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977 if test "${lt_cv_cc_needs_belf+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980
3981
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994
3995 int
3996 main ()
3997 {
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 lt_cv_cc_needs_belf=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 lt_cv_cc_needs_belf=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 fi
4041 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045 CFLAGS="$SAVE_CFLAGS"
4046 fi
4047 ;;
4048
4049
4050 esac
4051
4052
4053 # Save cache, so that ltconfig can load it
4054 cat >confcache <<\_ACEOF
4055 # This file is a shell script that caches the results of configure
4056 # tests run on this system so they can be shared between configure
4057 # scripts and configure runs, see configure's option --config-cache.
4058 # It is not useful on other systems. If it contains results you don't
4059 # want to keep, you may remove or edit it.
4060 #
4061 # config.status only pays attention to the cache file if you give it
4062 # the --recheck option to rerun configure.
4063 #
4064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4066 # following values.
4067
4068 _ACEOF
4069
4070 # The following way of writing the cache mishandles newlines in values,
4071 # but we know of no workaround that is simple, portable, and efficient.
4072 # So, don't put newlines in cache variables' values.
4073 # Ultrix sh set writes to stderr and can't be redirected directly,
4074 # and sets the high bit in the cache file unless we assign to the vars.
4075 {
4076 (set) 2>&1 |
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078 *ac_space=\ *)
4079 # `set' does not quote correctly, so add quotes (double-quote
4080 # substitution turns \\\\ into \\, and sed turns \\ into \).
4081 sed -n \
4082 "s/'/'\\\\''/g;
4083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4084 ;;
4085 *)
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n \
4088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4089 ;;
4090 esac;
4091 } |
4092 sed '
4093 t clear
4094 : clear
4095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096 t end
4097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098 : end' >>confcache
4099 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4100 if test -w $cache_file; then
4101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102 cat confcache >$cache_file
4103 else
4104 echo "not updating unwritable cache $cache_file"
4105 fi
4106 fi
4107 rm -f confcache
4108
4109 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4110 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4111 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4112 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4116 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4117 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4118 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119 echo "$as_me: error: libtool configure failed" >&2;}
4120 { (exit 1); exit 1; }; }
4121
4122 # Reload cache, that may have been modified by ltconfig
4123 if test -r "$cache_file"; then
4124 # Some versions of bash will fail to source /dev/null (special
4125 # files actually), so we avoid doing that.
4126 if test -f "$cache_file"; then
4127 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128 echo "$as_me: loading cache $cache_file" >&6;}
4129 case $cache_file in
4130 [\\/]* | ?:[\\/]* ) . $cache_file;;
4131 *) . ./$cache_file;;
4132 esac
4133 fi
4134 else
4135 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136 echo "$as_me: creating cache $cache_file" >&6;}
4137 >$cache_file
4138 fi
4139
4140
4141 # This can be used to rebuild libtool when needed
4142 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4143
4144 # Always use our own libtool.
4145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146
4147 # Redirect the config.log output again, so that the ltconfig log is not
4148 # clobbered by the next message.
4149 exec 5>>./config.log
4150
4151
4152
4153
4154
4155
4156
4157 # Check whether --enable-targets or --disable-targets was given.
4158 if test "${enable_targets+set}" = set; then
4159 enableval="$enable_targets"
4160 case "${enableval}" in
4161 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163 { (exit 1); exit 1; }; }
4164 ;;
4165 no) enable_targets= ;;
4166 *) enable_targets=$enableval ;;
4167 esac
4168 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4169 if test "${enable_commonbfdlib+set}" = set; then
4170 enableval="$enable_commonbfdlib"
4171 case "${enableval}" in
4172 yes) commonbfdlib=true ;;
4173 no) commonbfdlib=false ;;
4174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176 { (exit 1); exit 1; }; } ;;
4177 esac
4178 fi;
4179 # The location to which bugs should be reported.
4180
4181 # Check whether --with-bugurl or --without-bugurl was given.
4182 if test "${with_bugurl+set}" = set; then
4183 withval="$with_bugurl"
4184 case "$withval" in
4185 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4186 echo "$as_me: error: bug URL not specified" >&2;}
4187 { (exit 1); exit 1; }; } ;;
4188 no) REPORT_BUGS_TO="";
4189 REPORT_BUGS_TEXI=""
4190 ;;
4191 *) REPORT_BUGS_TO="<URL:$withval>"
4192 REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}"
4193 ;;
4194 esac
4195 else
4196 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
4197 REPORT_BUGS_TEXI="@uref{http://www.sourceware.org/bugzilla/}"
4198
4199 fi;
4200
4201
4202
4203
4204 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4205
4206 # Check whether --enable-werror or --disable-werror was given.
4207 if test "${enable_werror+set}" = set; then
4208 enableval="$enable_werror"
4209 case "${enableval}" in
4210 yes | y) ERROR_ON_WARNING="yes" ;;
4211 no | n) ERROR_ON_WARNING="no" ;;
4212 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4213 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4214 { (exit 1); exit 1; }; } ;;
4215 esac
4216 fi;
4217
4218 # Enable -Werror by default when using gcc
4219 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4220 ERROR_ON_WARNING=yes
4221 fi
4222
4223 NO_WERROR=
4224 if test "${ERROR_ON_WARNING}" = yes ; then
4225 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4226 NO_WERROR="-Wno-error"
4227 fi
4228
4229 if test "${GCC}" = yes ; then
4230 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4231 fi
4232
4233 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4234 if test "${enable_build_warnings+set}" = set; then
4235 enableval="$enable_build_warnings"
4236 case "${enableval}" in
4237 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4238 no) if test "${GCC}" = yes ; then
4239 WARN_CFLAGS="-w"
4240 fi;;
4241 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4242 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4243 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4244 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4245 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4246 esac
4247 fi;
4248
4249 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4250 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4251 fi
4252
4253
4254
4255
4256
4257 ac_config_headers="$ac_config_headers config.h:config.in"
4258
4259
4260 if test -z "$target" ; then
4261 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4262 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4263 { (exit 1); exit 1; }; }
4264 fi
4265 if test -z "$host" ; then
4266 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4267 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4268 { (exit 1); exit 1; }; }
4269 fi
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 CC=$ac_cv_prog_CC
4304 if test -n "$CC"; then
4305 echo "$as_me:$LINENO: result: $CC" >&5
4306 echo "${ECHO_T}$CC" >&6
4307 else
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312 fi
4313 if test -z "$ac_cv_prog_CC"; then
4314 ac_ct_CC=$CC
4315 # Extract the first word of "gcc", so it can be a program name with args.
4316 set dummy gcc; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="gcc"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338
4339 fi
4340 fi
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4344 echo "${ECHO_T}$ac_ct_CC" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 fi
4349
4350 CC=$ac_ct_CC
4351 else
4352 CC="$ac_cv_prog_CC"
4353 fi
4354
4355 if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}cc; ac_word=$2
4359 echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4361 if test "${ac_cv_prog_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_CC="${ac_tool_prefix}cc"
4375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380
4381 fi
4382 fi
4383 CC=$ac_cv_prog_CC
4384 if test -n "$CC"; then
4385 echo "$as_me:$LINENO: result: $CC" >&5
4386 echo "${ECHO_T}$CC" >&6
4387 else
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4390 fi
4391
4392 fi
4393 if test -z "$ac_cv_prog_CC"; then
4394 ac_ct_CC=$CC
4395 # Extract the first word of "cc", so it can be a program name with args.
4396 set dummy cc; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_ac_ct_CC="cc"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418
4419 fi
4420 fi
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4424 echo "${ECHO_T}$ac_ct_CC" >&6
4425 else
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430 CC=$ac_ct_CC
4431 else
4432 CC="$ac_cv_prog_CC"
4433 fi
4434
4435 fi
4436 if test -z "$CC"; then
4437 # Extract the first word of "cc", so it can be a program name with args.
4438 set dummy cc; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4446 else
4447 ac_prog_rejected=no
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4456 ac_prog_rejected=yes
4457 continue
4458 fi
4459 ac_cv_prog_CC="cc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463 done
4464 done
4465
4466 if test $ac_prog_rejected = yes; then
4467 # We found a bogon in the path, so make sure we never use it.
4468 set dummy $ac_cv_prog_CC
4469 shift
4470 if test $# != 0; then
4471 # We chose a different compiler from the bogus one.
4472 # However, it has the same basename, so the bogon will be chosen
4473 # first if we set CC to just the basename; use the full file name.
4474 shift
4475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4476 fi
4477 fi
4478 fi
4479 fi
4480 CC=$ac_cv_prog_CC
4481 if test -n "$CC"; then
4482 echo "$as_me:$LINENO: result: $CC" >&5
4483 echo "${ECHO_T}$CC" >&6
4484 else
4485 echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4487 fi
4488
4489 fi
4490 if test -z "$CC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in cl
4493 do
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496 echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498 if test "${ac_cv_prog_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517
4518 fi
4519 fi
4520 CC=$ac_cv_prog_CC
4521 if test -n "$CC"; then
4522 echo "$as_me:$LINENO: result: $CC" >&5
4523 echo "${ECHO_T}$CC" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4527 fi
4528
4529 test -n "$CC" && break
4530 done
4531 fi
4532 if test -z "$CC"; then
4533 ac_ct_CC=$CC
4534 for ac_prog in cl
4535 do
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537 set dummy $ac_prog; ac_word=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 if test -n "$ac_ct_CC"; then
4544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_ac_ct_CC="$ac_prog"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557 done
4558 done
4559
4560 fi
4561 fi
4562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563 if test -n "$ac_ct_CC"; then
4564 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4565 echo "${ECHO_T}$ac_ct_CC" >&6
4566 else
4567 echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6
4569 fi
4570
4571 test -n "$ac_ct_CC" && break
4572 done
4573
4574 CC=$ac_ct_CC
4575 fi
4576
4577 fi
4578
4579
4580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4581 See \`config.log' for more details." >&5
4582 echo "$as_me: error: no acceptable C compiler found in \$PATH
4583 See \`config.log' for more details." >&2;}
4584 { (exit 1); exit 1; }; }
4585
4586 # Provide some information about the compiler.
4587 echo "$as_me:$LINENO:" \
4588 "checking for C compiler version" >&5
4589 ac_compiler=`set X $ac_compile; echo $2`
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4591 (eval $ac_compiler --version </dev/null >&5) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4596 (eval $ac_compiler -v </dev/null >&5) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4601 (eval $ac_compiler -V </dev/null >&5) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605
4606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617
4618 int
4619 main ()
4620 {
4621 #ifndef __GNUC__
4622 choke me
4623 #endif
4624
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag"
4639 || test ! -s conftest.err'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_compiler_gnu=yes
4652 else
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 ac_compiler_gnu=no
4657 fi
4658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4660
4661 fi
4662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4664 GCC=`test $ac_compiler_gnu = yes && echo yes`
4665 ac_test_CFLAGS=${CFLAGS+set}
4666 ac_save_CFLAGS=$CFLAGS
4667 CFLAGS="-g"
4668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4670 if test "${ac_cv_prog_cc_g+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_prog_cc_g=yes
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ac_cv_prog_cc_g=no
4716 fi
4717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718 fi
4719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4721 if test "$ac_test_CFLAGS" = set; then
4722 CFLAGS=$ac_save_CFLAGS
4723 elif test $ac_cv_prog_cc_g = yes; then
4724 if test "$GCC" = yes; then
4725 CFLAGS="-g -O2"
4726 else
4727 CFLAGS="-g"
4728 fi
4729 else
4730 if test "$GCC" = yes; then
4731 CFLAGS="-O2"
4732 else
4733 CFLAGS=
4734 fi
4735 fi
4736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 ac_cv_prog_cc_stdc=no
4742 ac_save_CC=$CC
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <stdarg.h>
4750 #include <stdio.h>
4751 #include <sys/types.h>
4752 #include <sys/stat.h>
4753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4754 struct buf { int x; };
4755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756 static char *e (p, i)
4757 char **p;
4758 int i;
4759 {
4760 return p[i];
4761 }
4762 static char *f (char * (*g) (char **, int), char **p, ...)
4763 {
4764 char *s;
4765 va_list v;
4766 va_start (v,p);
4767 s = g (p, va_arg (v,int));
4768 va_end (v);
4769 return s;
4770 }
4771
4772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4773 function prototypes and stuff, but not '\xHH' hex character constants.
4774 These don't provoke an error unfortunately, instead are silently treated
4775 as 'x'. The following induces an error, until -std1 is added to get
4776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4777 array size at least. It's necessary to write '\x00'==0 to get something
4778 that's true only with -std1. */
4779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4780
4781 int test (int i, double x);
4782 struct s1 {int (*f) (int a);};
4783 struct s2 {int (*f) (double a);};
4784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4785 int argc;
4786 char **argv;
4787 int
4788 main ()
4789 {
4790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 # Don't try gcc -ansi; that turns off useful extensions and
4796 # breaks some systems' header files.
4797 # AIX -qlanglvl=ansi
4798 # Ultrix and OSF/1 -std1
4799 # HP-UX 10.20 and later -Ae
4800 # HP-UX older versions -Aa -D_HPUX_SOURCE
4801 # SVR4 -Xc -D__EXTENSIONS__
4802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4803 do
4804 CC="$ac_save_CC $ac_arg"
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_prog_cc_stdc=$ac_arg
4828 break
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 fi
4834 rm -f conftest.err conftest.$ac_objext
4835 done
4836 rm -f conftest.$ac_ext conftest.$ac_objext
4837 CC=$ac_save_CC
4838
4839 fi
4840
4841 case "x$ac_cv_prog_cc_stdc" in
4842 x|xno)
4843 echo "$as_me:$LINENO: result: none needed" >&5
4844 echo "${ECHO_T}none needed" >&6 ;;
4845 *)
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4848 CC="$CC $ac_cv_prog_cc_stdc" ;;
4849 esac
4850
4851 # Some people use a C++ compiler to compile C. Since we use `exit',
4852 # in C++ we need to declare it. In case someone uses the same compiler
4853 # for both compiling C and C++ we need to have the C++ compiler decide
4854 # the declaration of exit, since it's the most demanding environment.
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #ifndef __cplusplus
4857 choke me
4858 #endif
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 for ac_declaration in \
4883 '' \
4884 'extern "C" void std::exit (int) throw (); using std::exit;' \
4885 'extern "C" void std::exit (int); using std::exit;' \
4886 'extern "C" void exit (int) throw ();' \
4887 'extern "C" void exit (int);' \
4888 'void exit (int);'
4889 do
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_declaration
4897 #include <stdlib.h>
4898 int
4899 main ()
4900 {
4901 exit (42);
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 :
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 continue
4934 fi
4935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_declaration
4943 int
4944 main ()
4945 {
4946 exit (42);
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 break
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 fi
4979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4980 done
4981 rm -f conftest*
4982 if test -n "$ac_declaration"; then
4983 echo '#ifdef __cplusplus' >>confdefs.h
4984 echo $ac_declaration >>confdefs.h
4985 echo '#endif' >>confdefs.h
4986 fi
4987
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 fi
4993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
5001 cat >>confdefs.h <<\_ACEOF
5002 #define _GNU_SOURCE 1
5003 _ACEOF
5004
5005
5006
5007 for ac_prog in 'bison -y' byacc
5008 do
5009 # Extract the first word of "$ac_prog", so it can be a program name with args.
5010 set dummy $ac_prog; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_YACC+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$YACC"; then
5017 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_YACC="$ac_prog"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032
5033 fi
5034 fi
5035 YACC=$ac_cv_prog_YACC
5036 if test -n "$YACC"; then
5037 echo "$as_me:$LINENO: result: $YACC" >&5
5038 echo "${ECHO_T}$YACC" >&6
5039 else
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5042 fi
5043
5044 test -n "$YACC" && break
5045 done
5046 test -n "$YACC" || YACC="yacc"
5047
5048 for ac_prog in flex lex
5049 do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054 if test "${ac_cv_prog_LEX+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 if test -n "$LEX"; then
5058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_LEX="$ac_prog"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073
5074 fi
5075 fi
5076 LEX=$ac_cv_prog_LEX
5077 if test -n "$LEX"; then
5078 echo "$as_me:$LINENO: result: $LEX" >&5
5079 echo "${ECHO_T}$LEX" >&6
5080 else
5081 echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5083 fi
5084
5085 test -n "$LEX" && break
5086 done
5087 test -n "$LEX" || LEX=":"
5088
5089 if test -z "$LEXLIB"
5090 then
5091 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5092 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5093 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 ac_check_lib_save_LIBS=$LIBS
5097 LIBS="-lfl $LIBS"
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 #ifdef __cplusplus
5107 extern "C"
5108 #endif
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5111 char yywrap ();
5112 int
5113 main ()
5114 {
5115 yywrap ();
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext conftest$ac_exeext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5122 (eval $ac_link) 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_cv_lib_fl_yywrap=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_lib_fl_yywrap=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext \
5150 conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5154 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5155 if test $ac_cv_lib_fl_yywrap = yes; then
5156 LEXLIB="-lfl"
5157 else
5158 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5159 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5160 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-ll $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171
5172 /* Override any gcc2 internal prototype to avoid an error. */
5173 #ifdef __cplusplus
5174 extern "C"
5175 #endif
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5178 char yywrap ();
5179 int
5180 main ()
5181 {
5182 yywrap ();
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_lib_l_yywrap=yes
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_cv_lib_l_yywrap=no
5215 fi
5216 rm -f conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5221 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5222 if test $ac_cv_lib_l_yywrap = yes; then
5223 LEXLIB="-ll"
5224 fi
5225
5226 fi
5227
5228 fi
5229
5230 if test "x$LEX" != "x:"; then
5231 echo "$as_me:$LINENO: checking lex output file root" >&5
5232 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5233 if test "${ac_cv_prog_lex_root+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 # The minimal lex program is just a single line: %%. But some broken lexes
5237 # (Solaris, I think it was) want two %% lines, so accommodate them.
5238 cat >conftest.l <<_ACEOF
5239 %%
5240 %%
5241 _ACEOF
5242 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5243 (eval $LEX conftest.l) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5247 if test -f lex.yy.c; then
5248 ac_cv_prog_lex_root=lex.yy
5249 elif test -f lexyy.c; then
5250 ac_cv_prog_lex_root=lexyy
5251 else
5252 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5253 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5254 { (exit 1); exit 1; }; }
5255 fi
5256 fi
5257 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5258 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5259 rm -f conftest.l
5260 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5261
5262 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5263 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5264 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 # POSIX says lex can declare yytext either as a pointer or an array; the
5268 # default is implementation-dependent. Figure out which it is, since
5269 # not all implementations provide the %pointer and %array declarations.
5270 ac_cv_prog_lex_yytext_pointer=no
5271 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5272 ac_save_LIBS=$LIBS
5273 LIBS="$LIBS $LEXLIB"
5274 cat >conftest.$ac_ext <<_ACEOF
5275 `cat $LEX_OUTPUT_ROOT.c`
5276 _ACEOF
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_prog_lex_yytext_pointer=yes
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304 fi
5305 rm -f conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307 LIBS=$ac_save_LIBS
5308 rm -f "${LEX_OUTPUT_ROOT}.c"
5309
5310 fi
5311 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5312 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5313 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5314
5315 cat >>confdefs.h <<\_ACEOF
5316 #define YYTEXT_POINTER 1
5317 _ACEOF
5318
5319 fi
5320
5321 fi
5322 if test "$LEX" = :; then
5323 LEX=${am_missing_run}flex
5324 fi
5325
5326 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5327 # If we haven't got the data from the intl directory,
5328 # assume NLS is disabled.
5329 USE_NLS=no
5330 LIBINTL=
5331 LIBINTL_DEP=
5332 INCINTL=
5333 XGETTEXT=
5334 GMSGFMT=
5335 POSUB=
5336
5337 if test -f ../intl/config.intl; then
5338 . ../intl/config.intl
5339 fi
5340 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5341 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5342 if test x"$USE_NLS" != xyes; then
5343 echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5345 else
5346 echo "$as_me:$LINENO: result: yes" >&5
5347 echo "${ECHO_T}yes" >&6
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define ENABLE_NLS 1
5351 _ACEOF
5352
5353
5354 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5355 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5356 # Look for .po and .gmo files in the source directory.
5357 CATALOGS=
5358 XLINGUAS=
5359 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5360 # If there aren't any .gmo files the shell will give us the
5361 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5362 # weeded out.
5363 case "$cat" in *\**)
5364 continue;;
5365 esac
5366 # The quadruple backslash is collapsed to a double backslash
5367 # by the backticks, then collapsed again by the double quotes,
5368 # leaving us with one backslash in the sed expression (right
5369 # before the dot that mustn't act as a wildcard).
5370 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5371 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5372 # The user is allowed to set LINGUAS to a list of languages to
5373 # install catalogs for. If it's empty that means "all of them."
5374 if test "x$LINGUAS" = x; then
5375 CATALOGS="$CATALOGS $cat"
5376 XLINGUAS="$XLINGUAS $lang"
5377 else
5378 case "$LINGUAS" in *$lang*)
5379 CATALOGS="$CATALOGS $cat"
5380 XLINGUAS="$XLINGUAS $lang"
5381 ;;
5382 esac
5383 fi
5384 done
5385 LINGUAS="$XLINGUAS"
5386 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5387 echo "${ECHO_T}$LINGUAS" >&6
5388
5389
5390 DATADIRNAME=share
5391
5392 INSTOBJEXT=.mo
5393
5394 GENCAT=gencat
5395
5396 CATOBJEXT=.gmo
5397
5398 fi
5399
5400 MKINSTALLDIRS=
5401 if test -n "$ac_aux_dir"; then
5402 case "$ac_aux_dir" in
5403 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5404 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5405 esac
5406 fi
5407 if test -z "$MKINSTALLDIRS"; then
5408 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5409 fi
5410
5411
5412
5413 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5414 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5415 # Check whether --enable-nls or --disable-nls was given.
5416 if test "${enable_nls+set}" = set; then
5417 enableval="$enable_nls"
5418 USE_NLS=$enableval
5419 else
5420 USE_NLS=yes
5421 fi;
5422 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5423 echo "${ECHO_T}$USE_NLS" >&6
5424
5425
5426
5427
5428
5429
5430 # Prepare PATH_SEPARATOR.
5431 # The user is always right.
5432 if test "${PATH_SEPARATOR+set}" != set; then
5433 echo "#! /bin/sh" >conf$$.sh
5434 echo "exit 0" >>conf$$.sh
5435 chmod +x conf$$.sh
5436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5437 PATH_SEPARATOR=';'
5438 else
5439 PATH_SEPARATOR=:
5440 fi
5441 rm -f conf$$.sh
5442 fi
5443
5444 # Find out how to test for executable files. Don't use a zero-byte file,
5445 # as systems may use methods other than mode bits to determine executability.
5446 cat >conf$$.file <<_ASEOF
5447 #! /bin/sh
5448 exit 0
5449 _ASEOF
5450 chmod +x conf$$.file
5451 if test -x conf$$.file >/dev/null 2>&1; then
5452 ac_executable_p="test -x"
5453 else
5454 ac_executable_p="test -f"
5455 fi
5456 rm -f conf$$.file
5457
5458 # Extract the first word of "msgfmt", so it can be a program name with args.
5459 set dummy msgfmt; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_path_MSGFMT+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 case "$MSGFMT" in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5468 ;;
5469 *)
5470 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5471 for ac_dir in $PATH; do
5472 IFS="$ac_save_IFS"
5473 test -z "$ac_dir" && ac_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5476 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5477 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5478 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5479 break 2
5480 fi
5481 fi
5482 done
5483 done
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5486 ;;
5487 esac
5488 fi
5489 MSGFMT="$ac_cv_path_MSGFMT"
5490 if test "$MSGFMT" != ":"; then
5491 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5492 echo "${ECHO_T}$MSGFMT" >&6
5493 else
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5499 set dummy gmsgfmt; ac_word=$2
5500 echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505 case $GMSGFMT in
5506 [\\/]* | ?:[\\/]*)
5507 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5508 ;;
5509 *)
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523
5524 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5525 ;;
5526 esac
5527 fi
5528 GMSGFMT=$ac_cv_path_GMSGFMT
5529
5530 if test -n "$GMSGFMT"; then
5531 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5532 echo "${ECHO_T}$GMSGFMT" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
5538
5539
5540 # Prepare PATH_SEPARATOR.
5541 # The user is always right.
5542 if test "${PATH_SEPARATOR+set}" != set; then
5543 echo "#! /bin/sh" >conf$$.sh
5544 echo "exit 0" >>conf$$.sh
5545 chmod +x conf$$.sh
5546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5547 PATH_SEPARATOR=';'
5548 else
5549 PATH_SEPARATOR=:
5550 fi
5551 rm -f conf$$.sh
5552 fi
5553
5554 # Find out how to test for executable files. Don't use a zero-byte file,
5555 # as systems may use methods other than mode bits to determine executability.
5556 cat >conf$$.file <<_ASEOF
5557 #! /bin/sh
5558 exit 0
5559 _ASEOF
5560 chmod +x conf$$.file
5561 if test -x conf$$.file >/dev/null 2>&1; then
5562 ac_executable_p="test -x"
5563 else
5564 ac_executable_p="test -f"
5565 fi
5566 rm -f conf$$.file
5567
5568 # Extract the first word of "xgettext", so it can be a program name with args.
5569 set dummy xgettext; ac_word=$2
5570 echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 case "$XGETTEXT" in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5581 for ac_dir in $PATH; do
5582 IFS="$ac_save_IFS"
5583 test -z "$ac_dir" && ac_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5586 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5587 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5588 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5589 break 2
5590 fi
5591 fi
5592 done
5593 done
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5596 ;;
5597 esac
5598 fi
5599 XGETTEXT="$ac_cv_path_XGETTEXT"
5600 if test "$XGETTEXT" != ":"; then
5601 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5602 echo "${ECHO_T}$XGETTEXT" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6
5606 fi
5607
5608 rm -f messages.po
5609
5610
5611 # Prepare PATH_SEPARATOR.
5612 # The user is always right.
5613 if test "${PATH_SEPARATOR+set}" != set; then
5614 echo "#! /bin/sh" >conf$$.sh
5615 echo "exit 0" >>conf$$.sh
5616 chmod +x conf$$.sh
5617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5618 PATH_SEPARATOR=';'
5619 else
5620 PATH_SEPARATOR=:
5621 fi
5622 rm -f conf$$.sh
5623 fi
5624
5625 # Find out how to test for executable files. Don't use a zero-byte file,
5626 # as systems may use methods other than mode bits to determine executability.
5627 cat >conf$$.file <<_ASEOF
5628 #! /bin/sh
5629 exit 0
5630 _ASEOF
5631 chmod +x conf$$.file
5632 if test -x conf$$.file >/dev/null 2>&1; then
5633 ac_executable_p="test -x"
5634 else
5635 ac_executable_p="test -f"
5636 fi
5637 rm -f conf$$.file
5638
5639 # Extract the first word of "msgmerge", so it can be a program name with args.
5640 set dummy msgmerge; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 case "$MSGMERGE" in
5647 [\\/]* | ?:[\\/]*)
5648 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5649 ;;
5650 *)
5651 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5652 for ac_dir in $PATH; do
5653 IFS="$ac_save_IFS"
5654 test -z "$ac_dir" && ac_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5657 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5658 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5659 break 2
5660 fi
5661 fi
5662 done
5663 done
5664 IFS="$ac_save_IFS"
5665 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5666 ;;
5667 esac
5668 fi
5669 MSGMERGE="$ac_cv_path_MSGMERGE"
5670 if test "$MSGMERGE" != ":"; then
5671 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5672 echo "${ECHO_T}$MSGMERGE" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 if test "$GMSGFMT" != ":"; then
5680 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5681 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5682 : ;
5683 else
5684 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5685 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5686 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5687 GMSGFMT=":"
5688 fi
5689 fi
5690
5691 if test "$XGETTEXT" != ":"; then
5692 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5693 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5694 : ;
5695 else
5696 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5697 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5698 XGETTEXT=":"
5699 fi
5700 rm -f messages.po
5701 fi
5702
5703 ac_config_commands="$ac_config_commands default-1"
5704
5705
5706
5707 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5708 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5709 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5710 if test "${enable_maintainer_mode+set}" = set; then
5711 enableval="$enable_maintainer_mode"
5712 USE_MAINTAINER_MODE=$enableval
5713 else
5714 USE_MAINTAINER_MODE=no
5715 fi;
5716 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5717 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5718
5719
5720 if test $USE_MAINTAINER_MODE = yes; then
5721 MAINTAINER_MODE_TRUE=
5722 MAINTAINER_MODE_FALSE='#'
5723 else
5724 MAINTAINER_MODE_TRUE='#'
5725 MAINTAINER_MODE_FALSE=
5726 fi
5727
5728 MAINT=$MAINTAINER_MODE_TRUE
5729
5730
5731
5732
5733 if false; then
5734 GENINSRC_NEVER_TRUE=
5735 GENINSRC_NEVER_FALSE='#'
5736 else
5737 GENINSRC_NEVER_TRUE='#'
5738 GENINSRC_NEVER_FALSE=
5739 fi
5740
5741
5742 if test -n "$EXEEXT"; then
5743
5744 cat >>confdefs.h <<\_ACEOF
5745 #define HAVE_EXECUTABLE_SUFFIX 1
5746 _ACEOF
5747
5748 fi
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define EXECUTABLE_SUFFIX "${EXEEXT}"
5752 _ACEOF
5753
5754
5755 # host-specific stuff:
5756
5757 HDEFINES=
5758
5759 . ${srcdir}/../bfd/configure.host
5760
5761
5762 AR=${AR-ar}
5763
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_RANLIB+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 if test -n "$RANLIB"; then
5773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788
5789 fi
5790 fi
5791 RANLIB=$ac_cv_prog_RANLIB
5792 if test -n "$RANLIB"; then
5793 echo "$as_me:$LINENO: result: $RANLIB" >&5
5794 echo "${ECHO_T}$RANLIB" >&6
5795 else
5796 echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800 fi
5801 if test -z "$ac_cv_prog_RANLIB"; then
5802 ac_ct_RANLIB=$RANLIB
5803 # Extract the first word of "ranlib", so it can be a program name with args.
5804 set dummy ranlib; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 if test -n "$ac_ct_RANLIB"; then
5811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_RANLIB="ranlib"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826
5827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5828 fi
5829 fi
5830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5831 if test -n "$ac_ct_RANLIB"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5833 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839 RANLIB=$ac_ct_RANLIB
5840 else
5841 RANLIB="$ac_cv_prog_RANLIB"
5842 fi
5843
5844 # Find a good install program. We prefer a C program (faster),
5845 # so one script is as good as another. But avoid the broken or
5846 # incompatible versions:
5847 # SysV /etc/install, /usr/sbin/install
5848 # SunOS /usr/etc/install
5849 # IRIX /sbin/install
5850 # AIX /bin/install
5851 # AmigaOS /C/install, which installs bootblocks on floppy discs
5852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5855 # OS/2's system install, which has a completely different semantic
5856 # ./install, which can be erroneously created by make from ./install.sh.
5857 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5858 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5859 if test -z "$INSTALL"; then
5860 if test "${ac_cv_path_install+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 # Account for people who put trailing slashes in PATH elements.
5869 case $as_dir/ in
5870 ./ | .// | /cC/* | \
5871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5872 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5873 /usr/ucb/* ) ;;
5874 *)
5875 # OSF1 and SCO ODT 3.0 have their own names for install.
5876 # Don't use installbsd from OSF since it installs stuff as root
5877 # by default.
5878 for ac_prog in ginstall scoinst install; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5881 if test $ac_prog = install &&
5882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5883 # AIX install. It has an incompatible calling convention.
5884 :
5885 elif test $ac_prog = install &&
5886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5887 # program-specific install script used by HP pwplus--don't use.
5888 :
5889 else
5890 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5891 break 3
5892 fi
5893 fi
5894 done
5895 done
5896 ;;
5897 esac
5898 done
5899
5900
5901 fi
5902 if test "${ac_cv_path_install+set}" = set; then
5903 INSTALL=$ac_cv_path_install
5904 else
5905 # As a last resort, use the slow shell script. We don't cache a
5906 # path for INSTALL within a source directory, because that will
5907 # break other packages using the cache if that directory is
5908 # removed, or if the path is relative.
5909 INSTALL=$ac_install_sh
5910 fi
5911 fi
5912 echo "$as_me:$LINENO: result: $INSTALL" >&5
5913 echo "${ECHO_T}$INSTALL" >&6
5914
5915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5916 # It thinks the first close brace ends the variable substitution.
5917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5918
5919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5920
5921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5922
5923
5924 # Put a plausible default for CC_FOR_BUILD in Makefile.
5925 if test -z "$CC_FOR_BUILD"; then
5926 if test "x$cross_compiling" = "xno"; then
5927 CC_FOR_BUILD='$(CC)'
5928 else
5929 CC_FOR_BUILD=gcc
5930 fi
5931 fi
5932
5933 # Also set EXEEXT_FOR_BUILD.
5934 if test "x$cross_compiling" = "xno"; then
5935 EXEEXT_FOR_BUILD='$(EXEEXT)'
5936 else
5937 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
5938 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
5939 if test "${bfd_cv_build_exeext+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 rm -f conftest*
5943 echo 'int main () { return 0; }' > conftest.c
5944 bfd_cv_build_exeext=
5945 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5946 for file in conftest.*; do
5947 case $file in
5948 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5949 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5950 esac
5951 done
5952 rm -f conftest*
5953 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5954 fi
5955 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
5956 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
5957 EXEEXT_FOR_BUILD=""
5958 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5959 fi
5960
5961
5962 DEMANGLER_NAME=c++filt
5963 case "${host}" in
5964 *-*-go32* | *-*-msdos*)
5965 DEMANGLER_NAME=cxxfilt
5966 esac
5967
5968
5969 ac_ext=c
5970 ac_cpp='$CPP $CPPFLAGS'
5971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5974 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5976 # On Suns, sometimes $CPP names a directory.
5977 if test -n "$CPP" && test -d "$CPP"; then
5978 CPP=
5979 fi
5980 if test -z "$CPP"; then
5981 if test "${ac_cv_prog_CPP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 # Double quotes because CPP needs to be expanded
5985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5986 do
5987 ac_preproc_ok=false
5988 for ac_c_preproc_warn_flag in '' yes
5989 do
5990 # Use a header file that comes with gcc, so configuring glibc
5991 # with a fresh cross-compiler works.
5992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5993 # <limits.h> exists even on freestanding compilers.
5994 # On the NeXT, cc -E runs the code through the compiler's parser,
5995 # not just through cpp. "Syntax error" is here to catch this case.
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #ifdef __STDC__
6003 # include <limits.h>
6004 #else
6005 # include <assert.h>
6006 #endif
6007 Syntax error
6008 _ACEOF
6009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null; then
6017 if test -s conftest.err; then
6018 ac_cpp_err=$ac_c_preproc_warn_flag
6019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6020 else
6021 ac_cpp_err=
6022 fi
6023 else
6024 ac_cpp_err=yes
6025 fi
6026 if test -z "$ac_cpp_err"; then
6027 :
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 # Broken: fails on valid input.
6033 continue
6034 fi
6035 rm -f conftest.err conftest.$ac_ext
6036
6037 # OK, works on sane cases. Now check whether non-existent headers
6038 # can be detected and how.
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 #include <ac_nonexistent.h>
6046 _ACEOF
6047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null; then
6055 if test -s conftest.err; then
6056 ac_cpp_err=$ac_c_preproc_warn_flag
6057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6058 else
6059 ac_cpp_err=
6060 fi
6061 else
6062 ac_cpp_err=yes
6063 fi
6064 if test -z "$ac_cpp_err"; then
6065 # Broken: success on invalid input.
6066 continue
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 # Passes both tests.
6072 ac_preproc_ok=:
6073 break
6074 fi
6075 rm -f conftest.err conftest.$ac_ext
6076
6077 done
6078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6079 rm -f conftest.err conftest.$ac_ext
6080 if $ac_preproc_ok; then
6081 break
6082 fi
6083
6084 done
6085 ac_cv_prog_CPP=$CPP
6086
6087 fi
6088 CPP=$ac_cv_prog_CPP
6089 else
6090 ac_cv_prog_CPP=$CPP
6091 fi
6092 echo "$as_me:$LINENO: result: $CPP" >&5
6093 echo "${ECHO_T}$CPP" >&6
6094 ac_preproc_ok=false
6095 for ac_c_preproc_warn_flag in '' yes
6096 do
6097 # Use a header file that comes with gcc, so configuring glibc
6098 # with a fresh cross-compiler works.
6099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6100 # <limits.h> exists even on freestanding compilers.
6101 # On the NeXT, cc -E runs the code through the compiler's parser,
6102 # not just through cpp. "Syntax error" is here to catch this case.
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #ifdef __STDC__
6110 # include <limits.h>
6111 #else
6112 # include <assert.h>
6113 #endif
6114 Syntax error
6115 _ACEOF
6116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null; then
6124 if test -s conftest.err; then
6125 ac_cpp_err=$ac_c_preproc_warn_flag
6126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6127 else
6128 ac_cpp_err=
6129 fi
6130 else
6131 ac_cpp_err=yes
6132 fi
6133 if test -z "$ac_cpp_err"; then
6134 :
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139 # Broken: fails on valid input.
6140 continue
6141 fi
6142 rm -f conftest.err conftest.$ac_ext
6143
6144 # OK, works on sane cases. Now check whether non-existent headers
6145 # can be detected and how.
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <ac_nonexistent.h>
6153 _ACEOF
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6165 else
6166 ac_cpp_err=
6167 fi
6168 else
6169 ac_cpp_err=yes
6170 fi
6171 if test -z "$ac_cpp_err"; then
6172 # Broken: success on invalid input.
6173 continue
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 # Passes both tests.
6179 ac_preproc_ok=:
6180 break
6181 fi
6182 rm -f conftest.err conftest.$ac_ext
6183
6184 done
6185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6186 rm -f conftest.err conftest.$ac_ext
6187 if $ac_preproc_ok; then
6188 :
6189 else
6190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6191 See \`config.log' for more details." >&5
6192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&2;}
6194 { (exit 1); exit 1; }; }
6195 fi
6196
6197 ac_ext=c
6198 ac_cpp='$CPP $CPPFLAGS'
6199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202
6203
6204 echo "$as_me:$LINENO: checking for egrep" >&5
6205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6206 if test "${ac_cv_prog_egrep+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6210 then ac_cv_prog_egrep='grep -E'
6211 else ac_cv_prog_egrep='egrep'
6212 fi
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6215 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6216 EGREP=$ac_cv_prog_egrep
6217
6218
6219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6221 if test "${ac_cv_header_stdc+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <stdlib.h>
6231 #include <stdarg.h>
6232 #include <string.h>
6233 #include <float.h>
6234
6235 int
6236 main ()
6237 {
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -z "$ac_c_werror_flag"
6253 || test ! -s conftest.err'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_header_stdc=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_header_stdc=no
6271 fi
6272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273
6274 if test $ac_cv_header_stdc = yes; then
6275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <string.h>
6283
6284 _ACEOF
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 $EGREP "memchr" >/dev/null 2>&1; then
6287 :
6288 else
6289 ac_cv_header_stdc=no
6290 fi
6291 rm -f conftest*
6292
6293 fi
6294
6295 if test $ac_cv_header_stdc = yes; then
6296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <stdlib.h>
6304
6305 _ACEOF
6306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 $EGREP "free" >/dev/null 2>&1; then
6308 :
6309 else
6310 ac_cv_header_stdc=no
6311 fi
6312 rm -f conftest*
6313
6314 fi
6315
6316 if test $ac_cv_header_stdc = yes; then
6317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6318 if test "$cross_compiling" = yes; then
6319 :
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <ctype.h>
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331 #else
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337 #endif
6338
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6340 int
6341 main ()
6342 {
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 exit(2);
6348 exit (0);
6349 }
6350 _ACEOF
6351 rm -f conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 :
6363 else
6364 echo "$as_me: program exited with status $ac_status" >&5
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 ( exit $ac_status )
6369 ac_cv_header_stdc=no
6370 fi
6371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 fi
6374 fi
6375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6377 if test $ac_cv_header_stdc = yes; then
6378
6379 cat >>confdefs.h <<\_ACEOF
6380 #define STDC_HEADERS 1
6381 _ACEOF
6382
6383 fi
6384
6385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6396 inttypes.h stdint.h unistd.h
6397 do
6398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 $ac_includes_default
6411
6412 #include <$ac_header>
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_c_werror_flag"
6424 || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 eval "$as_ac_Header=yes"
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 eval "$as_ac_Header=no"
6442 fi
6443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450 _ACEOF
6451
6452 fi
6453
6454 done
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
6466 do
6467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6469 echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 fi
6474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6476 else
6477 # Is the header compilable?
6478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6487 #include <$ac_header>
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_header_compiler=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_header_compiler=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6
6521
6522 # Is the header present?
6523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null; then
6541 if test -s conftest.err; then
6542 ac_cpp_err=$ac_c_preproc_warn_flag
6543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6544 else
6545 ac_cpp_err=
6546 fi
6547 else
6548 ac_cpp_err=yes
6549 fi
6550 if test -z "$ac_cpp_err"; then
6551 ac_header_preproc=yes
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_header_preproc=no
6557 fi
6558 rm -f conftest.err conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560 echo "${ECHO_T}$ac_header_preproc" >&6
6561
6562 # So? What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 yes:no: )
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6570 ;;
6571 no:yes:* )
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6584 (
6585 cat <<\_ASBOX
6586 ## ------------------------------------------ ##
6587 ## Report this to the AC_PACKAGE_NAME lists. ##
6588 ## ------------------------------------------ ##
6589 _ASBOX
6590 ) |
6591 sed "s/^/$as_me: WARNING: /" >&2
6592 ;;
6593 esac
6594 echo "$as_me:$LINENO: checking for $ac_header" >&5
6595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 eval "$as_ac_Header=\$ac_header_preproc"
6600 fi
6601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6603
6604 fi
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611
6612 done
6613
6614 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <sys/types.h>
6626 #include <sys/wait.h>
6627 #ifndef WEXITSTATUS
6628 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6629 #endif
6630 #ifndef WIFEXITED
6631 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6632 #endif
6633
6634 int
6635 main ()
6636 {
6637 int s;
6638 wait (&s);
6639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_c_werror_flag"
6654 || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_header_sys_wait_h=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 ac_cv_header_sys_wait_h=no
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6676 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6677 if test $ac_cv_header_sys_wait_h = yes; then
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_SYS_WAIT_H 1
6681 _ACEOF
6682
6683 fi
6684
6685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6686 # for constant arguments. Useless!
6687 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6688 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6689 if test "${ac_cv_working_alloca_h+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <alloca.h>
6699 int
6700 main ()
6701 {
6702 char *p = (char *) alloca (2 * sizeof (int));
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -z "$ac_c_werror_flag"
6717 || test ! -s conftest.err'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_working_alloca_h=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 ac_cv_working_alloca_h=no
6735 fi
6736 rm -f conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 fi
6739 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6740 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6741 if test $ac_cv_working_alloca_h = yes; then
6742
6743 cat >>confdefs.h <<\_ACEOF
6744 #define HAVE_ALLOCA_H 1
6745 _ACEOF
6746
6747 fi
6748
6749 echo "$as_me:$LINENO: checking for alloca" >&5
6750 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6751 if test "${ac_cv_func_alloca_works+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #ifdef __GNUC__
6761 # define alloca __builtin_alloca
6762 #else
6763 # ifdef _MSC_VER
6764 # include <malloc.h>
6765 # define alloca _alloca
6766 # else
6767 # if HAVE_ALLOCA_H
6768 # include <alloca.h>
6769 # else
6770 # ifdef _AIX
6771 #pragma alloca
6772 # else
6773 # ifndef alloca /* predefined by HP cc +Olibcalls */
6774 char *alloca ();
6775 # endif
6776 # endif
6777 # endif
6778 # endif
6779 #endif
6780
6781 int
6782 main ()
6783 {
6784 char *p = (char *) alloca (1);
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_func_alloca_works=yes
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816 ac_cv_func_alloca_works=no
6817 fi
6818 rm -f conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 fi
6821 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6822 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6823
6824 if test $ac_cv_func_alloca_works = yes; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_ALLOCA 1
6828 _ACEOF
6829
6830 else
6831 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6832 # that cause trouble. Some versions do not even contain alloca or
6833 # contain a buggy version. If you still want to use their alloca,
6834 # use ar to extract alloca.o from them instead of compiling alloca.c.
6835
6836 ALLOCA=alloca.$ac_objext
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define C_ALLOCA 1
6840 _ACEOF
6841
6842
6843 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6844 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6845 if test "${ac_cv_os_cray+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #if defined(CRAY) && ! defined(CRAY2)
6855 webecray
6856 #else
6857 wenotbecray
6858 #endif
6859
6860 _ACEOF
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "webecray" >/dev/null 2>&1; then
6863 ac_cv_os_cray=yes
6864 else
6865 ac_cv_os_cray=no
6866 fi
6867 rm -f conftest*
6868
6869 fi
6870 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6871 echo "${ECHO_T}$ac_cv_os_cray" >&6
6872 if test $ac_cv_os_cray = yes; then
6873 for ac_func in _getb67 GETB67 getb67; do
6874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875 echo "$as_me:$LINENO: checking for $ac_func" >&5
6876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6877 if eval "test \"\${$as_ac_var+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6888 #define $ac_func innocuous_$ac_func
6889
6890 /* System header to define __stub macros and hopefully few prototypes,
6891 which can conflict with char $ac_func (); below.
6892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 <limits.h> exists even on freestanding compilers. */
6894
6895 #ifdef __STDC__
6896 # include <limits.h>
6897 #else
6898 # include <assert.h>
6899 #endif
6900
6901 #undef $ac_func
6902
6903 /* Override any gcc2 internal prototype to avoid an error. */
6904 #ifdef __cplusplus
6905 extern "C"
6906 {
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6910 char $ac_func ();
6911 /* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915 choke me
6916 #else
6917 char (*f) () = $ac_func;
6918 #endif
6919 #ifdef __cplusplus
6920 }
6921 #endif
6922
6923 int
6924 main ()
6925 {
6926 return f != $ac_func;
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 eval "$as_ac_var=yes"
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 eval "$as_ac_var=no"
6959 fi
6960 rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965 if test `eval echo '${'$as_ac_var'}'` = yes; then
6966
6967 cat >>confdefs.h <<_ACEOF
6968 #define CRAY_STACKSEG_END $ac_func
6969 _ACEOF
6970
6971 break
6972 fi
6973
6974 done
6975 fi
6976
6977 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6978 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6979 if test "${ac_cv_c_stack_direction+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 if test "$cross_compiling" = yes; then
6983 ac_cv_c_stack_direction=0
6984 else
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 int
6992 find_stack_direction ()
6993 {
6994 static char *addr = 0;
6995 auto char dummy;
6996 if (addr == 0)
6997 {
6998 addr = &dummy;
6999 return find_stack_direction ();
7000 }
7001 else
7002 return (&dummy > addr) ? 1 : -1;
7003 }
7004
7005 int
7006 main ()
7007 {
7008 exit (find_stack_direction () < 0);
7009 }
7010 _ACEOF
7011 rm -f conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_c_stack_direction=1
7023 else
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 ( exit $ac_status )
7029 ac_cv_c_stack_direction=-1
7030 fi
7031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 fi
7034 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7035 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7036
7037 cat >>confdefs.h <<_ACEOF
7038 #define STACK_DIRECTION $ac_cv_c_stack_direction
7039 _ACEOF
7040
7041
7042 fi
7043
7044
7045
7046
7047
7048
7049 for ac_func in sbrk utimes setmode getc_unlocked strcoll
7050 do
7051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7052 echo "$as_me:$LINENO: checking for $ac_func" >&5
7053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7054 if eval "test \"\${$as_ac_var+set}\" = set"; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7065 #define $ac_func innocuous_$ac_func
7066
7067 /* System header to define __stub macros and hopefully few prototypes,
7068 which can conflict with char $ac_func (); below.
7069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070 <limits.h> exists even on freestanding compilers. */
7071
7072 #ifdef __STDC__
7073 # include <limits.h>
7074 #else
7075 # include <assert.h>
7076 #endif
7077
7078 #undef $ac_func
7079
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 #ifdef __cplusplus
7082 extern "C"
7083 {
7084 #endif
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7087 char $ac_func ();
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7092 choke me
7093 #else
7094 char (*f) () = $ac_func;
7095 #endif
7096 #ifdef __cplusplus
7097 }
7098 #endif
7099
7100 int
7101 main ()
7102 {
7103 return f != $ac_func;
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -z "$ac_c_werror_flag"
7118 || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 eval "$as_ac_var=yes"
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 eval "$as_ac_var=no"
7136 fi
7137 rm -f conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 fi
7140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7142 if test `eval echo '${'$as_ac_var'}'` = yes; then
7143 cat >>confdefs.h <<_ACEOF
7144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7145 _ACEOF
7146
7147 fi
7148 done
7149
7150 echo "$as_me:$LINENO: checking for mkstemp" >&5
7151 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7152 if test "${ac_cv_func_mkstemp+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
7162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7163 #define mkstemp innocuous_mkstemp
7164
7165 /* System header to define __stub macros and hopefully few prototypes,
7166 which can conflict with char mkstemp (); below.
7167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 <limits.h> exists even on freestanding compilers. */
7169
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175
7176 #undef mkstemp
7177
7178 /* Override any gcc2 internal prototype to avoid an error. */
7179 #ifdef __cplusplus
7180 extern "C"
7181 {
7182 #endif
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7185 char mkstemp ();
7186 /* The GNU C library defines this for functions which it implements
7187 to always fail with ENOSYS. Some functions are actually named
7188 something starting with __ and the normal name is an alias. */
7189 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
7190 choke me
7191 #else
7192 char (*f) () = mkstemp;
7193 #endif
7194 #ifdef __cplusplus
7195 }
7196 #endif
7197
7198 int
7199 main ()
7200 {
7201 return f != mkstemp;
7202 ;
7203 return 0;
7204 }
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -z "$ac_c_werror_flag"
7216 || test ! -s conftest.err'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_cv_func_mkstemp=yes
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_cv_func_mkstemp=no
7234 fi
7235 rm -f conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 fi
7238 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
7239 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
7240 if test $ac_cv_func_mkstemp = yes; then
7241
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_MKSTEMP 1
7244 _ACEOF
7245
7246 fi
7247
7248 echo "$as_me:$LINENO: checking for mkdtemp" >&5
7249 echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
7250 if test "${ac_cv_func_mkdtemp+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
7260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7261 #define mkdtemp innocuous_mkdtemp
7262
7263 /* System header to define __stub macros and hopefully few prototypes,
7264 which can conflict with char mkdtemp (); below.
7265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7266 <limits.h> exists even on freestanding compilers. */
7267
7268 #ifdef __STDC__
7269 # include <limits.h>
7270 #else
7271 # include <assert.h>
7272 #endif
7273
7274 #undef mkdtemp
7275
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 #ifdef __cplusplus
7278 extern "C"
7279 {
7280 #endif
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char mkdtemp ();
7284 /* The GNU C library defines this for functions which it implements
7285 to always fail with ENOSYS. Some functions are actually named
7286 something starting with __ and the normal name is an alias. */
7287 #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
7288 choke me
7289 #else
7290 char (*f) () = mkdtemp;
7291 #endif
7292 #ifdef __cplusplus
7293 }
7294 #endif
7295
7296 int
7297 main ()
7298 {
7299 return f != mkdtemp;
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 rm -f conftest.$ac_objext conftest$ac_exeext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_cv_func_mkdtemp=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_cv_func_mkdtemp=no
7332 fi
7333 rm -f conftest.err conftest.$ac_objext \
7334 conftest$ac_exeext conftest.$ac_ext
7335 fi
7336 echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
7337 echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
7338 if test $ac_cv_func_mkdtemp = yes; then
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_MKDTEMP 1
7342 _ACEOF
7343
7344 fi
7345
7346
7347 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
7348 # needs to be defined for it
7349 echo "$as_me:$LINENO: checking for fopen64" >&5
7350 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
7351 if test "${bu_cv_have_fopen64+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 #include <stdio.h>
7361 int
7362 main ()
7363 {
7364 FILE *f = fopen64 ("/tmp/foo","r");
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 bu_cv_have_fopen64=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 saved_CPPFLAGS=$CPPFLAGS
7397 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <stdio.h>
7405 int
7406 main ()
7407 {
7408 FILE *f = fopen64 ("/tmp/foo","r");
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 bu_cv_have_fopen64=no
7441 fi
7442 rm -f conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
7444 CPPFLAGS=$saved_CPPFLAGS
7445 fi
7446 rm -f conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
7448 fi
7449
7450 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
7451 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
7452 if test "$bu_cv_have_fopen64" != no; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_FOPEN64 1
7456 _ACEOF
7457
7458 fi
7459 echo "$as_me:$LINENO: checking for stat64" >&5
7460 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
7461 if test "${bu_cv_have_stat64+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h. */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <sys/stat.h>
7471 int
7472 main ()
7473 {
7474 struct stat64 st; stat64 ("/tmp/foo", &st);
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext conftest$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 bu_cv_have_stat64=yes
7502 else
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 saved_CPPFLAGS=$CPPFLAGS
7507 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 #include <sys/stat.h>
7515 int
7516 main ()
7517 {
7518 struct stat64 st; stat64 ("/tmp/foo", &st);
7519 ;
7520 return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest$ac_exeext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 bu_cv_have_stat64=no
7551 fi
7552 rm -f conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
7554 CPPFLAGS=$saved_CPPFLAGS
7555 fi
7556 rm -f conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 fi
7559
7560 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
7561 echo "${ECHO_T}$bu_cv_have_stat64" >&6
7562 if test "$bu_cv_have_stat64" != no; then
7563
7564 cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_STAT64 1
7566 _ACEOF
7567
7568 fi
7569 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
7570 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define _LARGEFILE64_SOURCE 1
7574 _ACEOF
7575
7576 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
7577 fi
7578
7579 # Some systems have frexp only in -lm, not in -lc.
7580 echo "$as_me:$LINENO: checking for library containing frexp" >&5
7581 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
7582 if test "${ac_cv_search_frexp+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 ac_func_search_save_LIBS=$LIBS
7586 ac_cv_search_frexp=no
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593
7594 /* Override any gcc2 internal prototype to avoid an error. */
7595 #ifdef __cplusplus
7596 extern "C"
7597 #endif
7598 /* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7600 char frexp ();
7601 int
7602 main ()
7603 {
7604 frexp ();
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_search_frexp="none required"
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 fi
7637 rm -f conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 if test "$ac_cv_search_frexp" = no; then
7640 for ac_lib in m; do
7641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655 char frexp ();
7656 int
7657 main ()
7658 {
7659 frexp ();
7660 ;
7661 return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag"
7674 || test ! -s conftest.err'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; } &&
7680 { ac_try='test -s conftest$ac_exeext'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 ac_cv_search_frexp="-l$ac_lib"
7687 break
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7691
7692 fi
7693 rm -f conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7695 done
7696 fi
7697 LIBS=$ac_func_search_save_LIBS
7698 fi
7699 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
7700 echo "${ECHO_T}$ac_cv_search_frexp" >&6
7701 if test "$ac_cv_search_frexp" != no; then
7702 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
7703
7704 fi
7705
7706
7707 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7708 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
7709 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #include <time.h>
7719 int
7720 main ()
7721 {
7722 time_t i;
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 bu_cv_decl_time_t_time_h=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 bu_cv_decl_time_t_time_h=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758
7759 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
7760 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
7761 if test $bu_cv_decl_time_t_time_h = yes; then
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_TIME_T_IN_TIME_H 1
7765 _ACEOF
7766
7767 fi
7768
7769 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
7770 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
7771 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 int
7782 main ()
7783 {
7784 time_t i;
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
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); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 bu_cv_decl_time_t_types_h=yes
7812 else
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 bu_cv_decl_time_t_types_h=no
7817 fi
7818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 fi
7820
7821 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
7822 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
7823 if test $bu_cv_decl_time_t_types_h = yes; then
7824
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_TIME_T_IN_TYPES_H 1
7827 _ACEOF
7828
7829 fi
7830
7831 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
7832 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
7833 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <unistd.h>
7843 int
7844 main ()
7845 {
7846 extern int getopt (int, char *const*, const char *);
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853 (eval $ac_compile) 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -z "$ac_c_werror_flag"
7861 || test ! -s conftest.err'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest.$ac_objext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 (eval $ac_try) 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 bu_cv_decl_getopt_unistd_h=yes
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 bu_cv_decl_getopt_unistd_h=no
7879 fi
7880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 fi
7882
7883 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
7884 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
7885 if test $bu_cv_decl_getopt_unistd_h = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_DECL_GETOPT 1
7889 _ACEOF
7890
7891 fi
7892
7893 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
7894 # by default.
7895 echo "$as_me:$LINENO: checking for utime.h" >&5
7896 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
7897 if test "${bu_cv_header_utime_h+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <sys/types.h>
7907 #ifdef HAVE_TIME_H
7908 #include <time.h>
7909 #endif
7910 #include <utime.h>
7911 int
7912 main ()
7913 {
7914 struct utimbuf s;
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7921 (eval $ac_compile) 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest.$ac_objext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 bu_cv_header_utime_h=yes
7942 else
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 bu_cv_header_utime_h=no
7947 fi
7948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949 fi
7950
7951 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
7952 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
7953 if test $bu_cv_header_utime_h = yes; then
7954
7955 cat >>confdefs.h <<\_ACEOF
7956 #define HAVE_GOOD_UTIME_H 1
7957 _ACEOF
7958
7959 fi
7960
7961 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
7962 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
7963 if test "${ac_cv_have_decl_fprintf+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 int
7974 main ()
7975 {
7976 #ifndef fprintf
7977 char *p = (char *) fprintf;
7978 #endif
7979
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7986 (eval $ac_compile) 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -z "$ac_c_werror_flag"
7994 || test ! -s conftest.err'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 (eval $ac_try) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest.$ac_objext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_have_decl_fprintf=yes
8007 else
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011 ac_cv_have_decl_fprintf=no
8012 fi
8013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014 fi
8015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
8016 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
8017 if test $ac_cv_have_decl_fprintf = yes; then
8018
8019 cat >>confdefs.h <<_ACEOF
8020 #define HAVE_DECL_FPRINTF 1
8021 _ACEOF
8022
8023
8024 else
8025 cat >>confdefs.h <<_ACEOF
8026 #define HAVE_DECL_FPRINTF 0
8027 _ACEOF
8028
8029
8030 fi
8031 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8032 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8033 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 $ac_includes_default
8043 int
8044 main ()
8045 {
8046 #ifndef stpcpy
8047 char *p = (char *) stpcpy;
8048 #endif
8049
8050 ;
8051 return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_have_decl_stpcpy=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_cv_have_decl_stpcpy=no
8082 fi
8083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8086 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8087 if test $ac_cv_have_decl_stpcpy = yes; then
8088
8089 cat >>confdefs.h <<_ACEOF
8090 #define HAVE_DECL_STPCPY 1
8091 _ACEOF
8092
8093
8094 else
8095 cat >>confdefs.h <<_ACEOF
8096 #define HAVE_DECL_STPCPY 0
8097 _ACEOF
8098
8099
8100 fi
8101 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8102 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8103 if test "${ac_cv_have_decl_strstr+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 int
8114 main ()
8115 {
8116 #ifndef strstr
8117 char *p = (char *) strstr;
8118 #endif
8119
8120 ;
8121 return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_have_decl_strstr=yes
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_cv_have_decl_strstr=no
8152 fi
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8156 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8157 if test $ac_cv_have_decl_strstr = yes; then
8158
8159 cat >>confdefs.h <<_ACEOF
8160 #define HAVE_DECL_STRSTR 1
8161 _ACEOF
8162
8163
8164 else
8165 cat >>confdefs.h <<_ACEOF
8166 #define HAVE_DECL_STRSTR 0
8167 _ACEOF
8168
8169
8170 fi
8171 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8172 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8173 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 int
8184 main ()
8185 {
8186 #ifndef sbrk
8187 char *p = (char *) sbrk;
8188 #endif
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_have_decl_sbrk=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 ac_cv_have_decl_sbrk=no
8222 fi
8223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8226 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8227 if test $ac_cv_have_decl_sbrk = yes; then
8228
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_DECL_SBRK 1
8231 _ACEOF
8232
8233
8234 else
8235 cat >>confdefs.h <<_ACEOF
8236 #define HAVE_DECL_SBRK 0
8237 _ACEOF
8238
8239
8240 fi
8241 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8242 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8243 if test "${ac_cv_have_decl_getenv+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 int
8254 main ()
8255 {
8256 #ifndef getenv
8257 char *p = (char *) getenv;
8258 #endif
8259
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266 (eval $ac_compile) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest.$ac_objext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_have_decl_getenv=yes
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 ac_cv_have_decl_getenv=no
8292 fi
8293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8296 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8297 if test $ac_cv_have_decl_getenv = yes; then
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define HAVE_DECL_GETENV 1
8301 _ACEOF
8302
8303
8304 else
8305 cat >>confdefs.h <<_ACEOF
8306 #define HAVE_DECL_GETENV 0
8307 _ACEOF
8308
8309
8310 fi
8311 echo "$as_me:$LINENO: checking whether environ is declared" >&5
8312 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
8313 if test "${ac_cv_have_decl_environ+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h. */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 $ac_includes_default
8323 int
8324 main ()
8325 {
8326 #ifndef environ
8327 char *p = (char *) environ;
8328 #endif
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_have_decl_environ=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_cv_have_decl_environ=no
8362 fi
8363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
8366 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
8367 if test $ac_cv_have_decl_environ = yes; then
8368
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_DECL_ENVIRON 1
8371 _ACEOF
8372
8373
8374 else
8375 cat >>confdefs.h <<_ACEOF
8376 #define HAVE_DECL_ENVIRON 0
8377 _ACEOF
8378
8379
8380 fi
8381 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8382 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8383 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 int
8394 main ()
8395 {
8396 #ifndef getc_unlocked
8397 char *p = (char *) getc_unlocked;
8398 #endif
8399
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_have_decl_getc_unlocked=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_have_decl_getc_unlocked=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8436 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8437 if test $ac_cv_have_decl_getc_unlocked = yes; then
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_GETC_UNLOCKED 1
8441 _ACEOF
8442
8443
8444 else
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_GETC_UNLOCKED 0
8447 _ACEOF
8448
8449
8450 fi
8451 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8452 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
8453 if test "${ac_cv_have_decl_snprintf+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8463 int
8464 main ()
8465 {
8466 #ifndef snprintf
8467 char *p = (char *) snprintf;
8468 #endif
8469
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest.$ac_objext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_have_decl_snprintf=yes
8497 else
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_have_decl_snprintf=no
8502 fi
8503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8506 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
8507 if test $ac_cv_have_decl_snprintf = yes; then
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_DECL_SNPRINTF 1
8511 _ACEOF
8512
8513
8514 else
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_SNPRINTF 0
8517 _ACEOF
8518
8519
8520 fi
8521 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8522 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8523 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 int
8534 main ()
8535 {
8536 #ifndef vsnprintf
8537 char *p = (char *) vsnprintf;
8538 #endif
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_have_decl_vsnprintf=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_have_decl_vsnprintf=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8576 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8577 if test $ac_cv_have_decl_vsnprintf = yes; then
8578
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_DECL_VSNPRINTF 1
8581 _ACEOF
8582
8583
8584 else
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_DECL_VSNPRINTF 0
8587 _ACEOF
8588
8589
8590 fi
8591
8592
8593
8594
8595 case "${host}" in
8596 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8597
8598 cat >>confdefs.h <<\_ACEOF
8599 #define USE_BINARY_FOPEN 1
8600 _ACEOF
8601 ;;
8602 esac
8603
8604 # target-specific stuff:
8605
8606 # Canonicalize the secondary target names.
8607 if test -n "$enable_targets"; then
8608 for targ in `echo $enable_targets | sed 's/,/ /g'`
8609 do
8610 result=`$ac_config_sub $targ 2>/dev/null`
8611 if test -n "$result"; then
8612 canon_targets="$canon_targets $result"
8613 else
8614 # Allow targets that config.sub doesn't recognize, like "all".
8615 canon_targets="$canon_targets $targ"
8616 fi
8617 done
8618 fi
8619
8620 all_targets=false
8621 BUILD_NLMCONV=
8622 NLMCONV_DEFS=
8623 BUILD_SRCONV=
8624 BUILD_DLLTOOL=
8625 DLLTOOL_DEFS=
8626 DLLTOOL_DEFAULT=
8627 BUILD_WINDRES=
8628 BUILD_DLLWRAP=
8629 BUILD_MISC=
8630 BUILD_INSTALL_MISC=
8631 OBJDUMP_DEFS=
8632
8633 for targ in $target $canon_targets
8634 do
8635 if test "x$targ" = "xall"; then
8636 all_targets=true
8637 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8638 BUILD_SRCONV='$(SRCONV_PROG)'
8639 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
8640 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
8641 else
8642 case $targ in
8643 i[3-7]86*-*-netware*)
8644 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8645 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
8646 ;;
8647 alpha*-*-netware*)
8648 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8649 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
8650 ;;
8651 powerpc*-*-netware*)
8652 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8653 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
8654 ;;
8655 sparc*-*-netware*)
8656 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
8657 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
8658 ;;
8659 esac
8660 case $targ in
8661 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
8662 esac
8663 case $targ in
8664 arm-epoc-pe*)
8665 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8666 if test -z "$DLLTOOL_DEFAULT"; then
8667 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
8668 fi
8669 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
8670 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8671 ;;
8672 arm-wince-pe* | arm-*-wince)
8673 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8674 if test -z "$DLLTOOL_DEFAULT"; then
8675 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
8676 fi
8677 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
8678 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8679 ;;
8680 arm-*-pe*)
8681 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8682 if test -z "$DLLTOOL_DEFAULT"; then
8683 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8684 fi
8685 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8686 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8687 ;;
8688 thumb-*-pe*)
8689 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8690 if test -z "$DLLTOOL_DEFAULT"; then
8691 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
8692 fi
8693 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
8694 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8695 ;;
8696 x86_64-*-mingw*)
8697 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8698 if test -z "$DLLTOOL_DEFAULT"; then
8699 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
8700 fi
8701 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
8702 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8703 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8704 ;;
8705 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
8706 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8707 if test -z "$DLLTOOL_DEFAULT"; then
8708 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8709 fi
8710 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8711 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8712 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
8713 ;;
8714 i[3-7]86-*-interix)
8715 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
8716 if test -z "$DLLTOOL_DEFAULT"; then
8717 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
8718 fi
8719 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
8720 ;;
8721 powerpc*-aix5.[01])
8722 ;;
8723 powerpc*-aix5.*)
8724 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
8725 ;;
8726 powerpc*-*-pe* | powerpc*-*-cygwin*)
8727 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8728 if test -z "$DLLTOOL_DEFAULT"; then
8729 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
8730 fi
8731 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
8732 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8733 ;;
8734 powerpc*-*-linux* | powerpc*-*-elf*)
8735 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
8736 ;;
8737 sh*-*-pe)
8738 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8739 if test -z "$DLLTOOL_DEFAULT"; then
8740 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
8741 fi
8742 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
8743 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8744 ;;
8745 spu-*-*)
8746 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
8747 ;;
8748 mips*-*-pe)
8749 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8750 if test -z "$DLLTOOL_DEFAULT"; then
8751 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
8752 fi
8753 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
8754 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8755 ;;
8756 mcore-*-pe)
8757 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8758 if test -z "$DLLTOOL_DEFAULT"; then
8759 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
8760 fi
8761 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
8762 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8763 ;;
8764 mcore-*-elf)
8765 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
8766 if test -z "$DLLTOOL_DEFAULT"; then
8767 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
8768 fi
8769 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
8770 ;;
8771 mep-*)
8772 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
8773 ;;
8774 esac
8775 fi
8776 done
8777
8778 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
8779
8780 if test "${with_windres+set}" = set; then
8781 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8782 fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 cat >>confdefs.h <<_ACEOF
8797 #define TARGET "${target}"
8798 _ACEOF
8799
8800
8801 targ=$target
8802 . $srcdir/../bfd/config.bfd
8803 if test "x$targ_underscore" = "xyes"; then
8804 UNDERSCORE=1
8805 else
8806 UNDERSCORE=0
8807 fi
8808
8809 cat >>confdefs.h <<_ACEOF
8810 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
8811 _ACEOF
8812
8813
8814 # Emulation
8815 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8816 do
8817 # Canonicalize the secondary target names.
8818 result=`$ac_config_sub $targ_alias 2>/dev/null`
8819 if test -n "$result"; then
8820 targ=$result
8821 else
8822 targ=$targ_alias
8823 fi
8824
8825 . ${srcdir}/configure.tgt
8826
8827 EMULATION=$targ_emul
8828 EMULATION_VECTOR=$targ_emul_vector
8829 done
8830
8831
8832
8833
8834 # Required for html and install-html
8835
8836
8837
8838
8839 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8840 cat >confcache <<\_ACEOF
8841 # This file is a shell script that caches the results of configure
8842 # tests run on this system so they can be shared between configure
8843 # scripts and configure runs, see configure's option --config-cache.
8844 # It is not useful on other systems. If it contains results you don't
8845 # want to keep, you may remove or edit it.
8846 #
8847 # config.status only pays attention to the cache file if you give it
8848 # the --recheck option to rerun configure.
8849 #
8850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8852 # following values.
8853
8854 _ACEOF
8855
8856 # The following way of writing the cache mishandles newlines in values,
8857 # but we know of no workaround that is simple, portable, and efficient.
8858 # So, don't put newlines in cache variables' values.
8859 # Ultrix sh set writes to stderr and can't be redirected directly,
8860 # and sets the high bit in the cache file unless we assign to the vars.
8861 {
8862 (set) 2>&1 |
8863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8864 *ac_space=\ *)
8865 # `set' does not quote correctly, so add quotes (double-quote
8866 # substitution turns \\\\ into \\, and sed turns \\ into \).
8867 sed -n \
8868 "s/'/'\\\\''/g;
8869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8870 ;;
8871 *)
8872 # `set' quotes correctly as required by POSIX, so do not add quotes.
8873 sed -n \
8874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8875 ;;
8876 esac;
8877 } |
8878 sed '
8879 t clear
8880 : clear
8881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8882 t end
8883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8884 : end' >>confcache
8885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8886 if test -w $cache_file; then
8887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8888 cat confcache >$cache_file
8889 else
8890 echo "not updating unwritable cache $cache_file"
8891 fi
8892 fi
8893 rm -f confcache
8894
8895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8896 # Let make expand exec_prefix.
8897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8898
8899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8901 # trailing colons and then remove the whole line if VPATH becomes empty
8902 # (actually we leave an empty line to preserve line numbers).
8903 if test "x$srcdir" = x.; then
8904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8905 s/:*\$(srcdir):*/:/;
8906 s/:*\${srcdir}:*/:/;
8907 s/:*@srcdir@:*/:/;
8908 s/^\([^=]*=[ ]*\):*/\1/;
8909 s/:*$//;
8910 s/^[^=]*=[ ]*$//;
8911 }'
8912 fi
8913
8914 DEFS=-DHAVE_CONFIG_H
8915
8916 ac_libobjs=
8917 ac_ltlibobjs=
8918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8919 # 1. Remove the extension, and $U if already installed.
8920 ac_i=`echo "$ac_i" |
8921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8922 # 2. Add them.
8923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8925 done
8926 LIBOBJS=$ac_libobjs
8927
8928 LTLIBOBJS=$ac_ltlibobjs
8929
8930
8931 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8932 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8933 Usually this means the macro was only invoked conditionally." >&5
8934 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8935 Usually this means the macro was only invoked conditionally." >&2;}
8936 { (exit 1); exit 1; }; }
8937 fi
8938 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8939 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8940 Usually this means the macro was only invoked conditionally." >&5
8941 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8942 Usually this means the macro was only invoked conditionally." >&2;}
8943 { (exit 1); exit 1; }; }
8944 fi
8945 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8946 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8947 Usually this means the macro was only invoked conditionally." >&5
8948 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8949 Usually this means the macro was only invoked conditionally." >&2;}
8950 { (exit 1); exit 1; }; }
8951 fi
8952 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
8953 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
8954 Usually this means the macro was only invoked conditionally." >&5
8955 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
8956 Usually this means the macro was only invoked conditionally." >&2;}
8957 { (exit 1); exit 1; }; }
8958 fi
8959
8960 : ${CONFIG_STATUS=./config.status}
8961 ac_clean_files_save=$ac_clean_files
8962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8965 cat >$CONFIG_STATUS <<_ACEOF
8966 #! $SHELL
8967 # Generated by $as_me.
8968 # Run this file to recreate the current configuration.
8969 # Compiler output produced by configure, useful for debugging
8970 # configure, is in config.log if it exists.
8971
8972 debug=false
8973 ac_cs_recheck=false
8974 ac_cs_silent=false
8975 SHELL=\${CONFIG_SHELL-$SHELL}
8976 _ACEOF
8977
8978 cat >>$CONFIG_STATUS <<\_ACEOF
8979 ## --------------------- ##
8980 ## M4sh Initialization. ##
8981 ## --------------------- ##
8982
8983 # Be Bourne compatible
8984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8985 emulate sh
8986 NULLCMD=:
8987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8988 # is contrary to our usage. Disable this feature.
8989 alias -g '${1+"$@"}'='"$@"'
8990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8991 set -o posix
8992 fi
8993 DUALCASE=1; export DUALCASE # for MKS sh
8994
8995 # Support unset when possible.
8996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8997 as_unset=unset
8998 else
8999 as_unset=false
9000 fi
9001
9002
9003 # Work around bugs in pre-3.0 UWIN ksh.
9004 $as_unset ENV MAIL MAILPATH
9005 PS1='$ '
9006 PS2='> '
9007 PS4='+ '
9008
9009 # NLS nuisances.
9010 for as_var in \
9011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9013 LC_TELEPHONE LC_TIME
9014 do
9015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9016 eval $as_var=C; export $as_var
9017 else
9018 $as_unset $as_var
9019 fi
9020 done
9021
9022 # Required to use basename.
9023 if expr a : '\(a\)' >/dev/null 2>&1; then
9024 as_expr=expr
9025 else
9026 as_expr=false
9027 fi
9028
9029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9030 as_basename=basename
9031 else
9032 as_basename=false
9033 fi
9034
9035
9036 # Name of the executable.
9037 as_me=`$as_basename "$0" ||
9038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9039 X"$0" : 'X\(//\)$' \| \
9040 X"$0" : 'X\(/\)$' \| \
9041 . : '\(.\)' 2>/dev/null ||
9042 echo X/"$0" |
9043 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9044 /^X\/\(\/\/\)$/{ s//\1/; q; }
9045 /^X\/\(\/\).*/{ s//\1/; q; }
9046 s/.*/./; q'`
9047
9048
9049 # PATH needs CR, and LINENO needs CR and PATH.
9050 # Avoid depending upon Character Ranges.
9051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9054 as_cr_digits='0123456789'
9055 as_cr_alnum=$as_cr_Letters$as_cr_digits
9056
9057 # The user is always right.
9058 if test "${PATH_SEPARATOR+set}" != set; then
9059 echo "#! /bin/sh" >conf$$.sh
9060 echo "exit 0" >>conf$$.sh
9061 chmod +x conf$$.sh
9062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9063 PATH_SEPARATOR=';'
9064 else
9065 PATH_SEPARATOR=:
9066 fi
9067 rm -f conf$$.sh
9068 fi
9069
9070
9071 as_lineno_1=$LINENO
9072 as_lineno_2=$LINENO
9073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9074 test "x$as_lineno_1" != "x$as_lineno_2" &&
9075 test "x$as_lineno_3" = "x$as_lineno_2" || {
9076 # Find who we are. Look in the path if we contain no path at all
9077 # relative or not.
9078 case $0 in
9079 *[\\/]* ) as_myself=$0 ;;
9080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9086 done
9087
9088 ;;
9089 esac
9090 # We did not find ourselves, most probably we were run as `sh COMMAND'
9091 # in which case we are not to be found in the path.
9092 if test "x$as_myself" = x; then
9093 as_myself=$0
9094 fi
9095 if test ! -f "$as_myself"; then
9096 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9098 { (exit 1); exit 1; }; }
9099 fi
9100 case $CONFIG_SHELL in
9101 '')
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9104 do
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for as_base in sh bash ksh sh5; do
9108 case $as_dir in
9109 /*)
9110 if ("$as_dir/$as_base" -c '
9111 as_lineno_1=$LINENO
9112 as_lineno_2=$LINENO
9113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9114 test "x$as_lineno_1" != "x$as_lineno_2" &&
9115 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9116 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9117 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9118 CONFIG_SHELL=$as_dir/$as_base
9119 export CONFIG_SHELL
9120 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9121 fi;;
9122 esac
9123 done
9124 done
9125 ;;
9126 esac
9127
9128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9129 # uniformly replaced by the line number. The first 'sed' inserts a
9130 # line-number line before each line; the second 'sed' does the real
9131 # work. The second script uses 'N' to pair each line-number line
9132 # with the numbered line, and appends trailing '-' during
9133 # substitution so that $LINENO is not a special case at line end.
9134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9135 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9136 sed '=' <$as_myself |
9137 sed '
9138 N
9139 s,$,-,
9140 : loop
9141 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9142 t loop
9143 s,-$,,
9144 s,^['$as_cr_digits']*\n,,
9145 ' >$as_me.lineno &&
9146 chmod +x $as_me.lineno ||
9147 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9149 { (exit 1); exit 1; }; }
9150
9151 # Don't try to exec as it changes $[0], causing all sort of problems
9152 # (the dirname of $[0] is not the place where we might find the
9153 # original and so on. Autoconf is especially sensible to this).
9154 . ./$as_me.lineno
9155 # Exit status is that of the last command.
9156 exit
9157 }
9158
9159
9160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9161 *c*,-n*) ECHO_N= ECHO_C='
9162 ' ECHO_T=' ' ;;
9163 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9164 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9165 esac
9166
9167 if expr a : '\(a\)' >/dev/null 2>&1; then
9168 as_expr=expr
9169 else
9170 as_expr=false
9171 fi
9172
9173 rm -f conf$$ conf$$.exe conf$$.file
9174 echo >conf$$.file
9175 if ln -s conf$$.file conf$$ 2>/dev/null; then
9176 # We could just check for DJGPP; but this test a) works b) is more generic
9177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9178 if test -f conf$$.exe; then
9179 # Don't use ln at all; we don't have any links
9180 as_ln_s='cp -p'
9181 else
9182 as_ln_s='ln -s'
9183 fi
9184 elif ln conf$$.file conf$$ 2>/dev/null; then
9185 as_ln_s=ln
9186 else
9187 as_ln_s='cp -p'
9188 fi
9189 rm -f conf$$ conf$$.exe conf$$.file
9190
9191 if mkdir -p . 2>/dev/null; then
9192 as_mkdir_p=:
9193 else
9194 test -d ./-p && rmdir ./-p
9195 as_mkdir_p=false
9196 fi
9197
9198 as_executable_p="test -f"
9199
9200 # Sed expression to map a string onto a valid CPP name.
9201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9202
9203 # Sed expression to map a string onto a valid variable name.
9204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9205
9206
9207 # IFS
9208 # We need space, tab and new line, in precisely that order.
9209 as_nl='
9210 '
9211 IFS=" $as_nl"
9212
9213 # CDPATH.
9214 $as_unset CDPATH
9215
9216 exec 6>&1
9217
9218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9219 # report actual input values of CONFIG_FILES etc. instead of their
9220 # values after options handling. Logging --version etc. is OK.
9221 exec 5>>config.log
9222 {
9223 echo
9224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9225 ## Running $as_me. ##
9226 _ASBOX
9227 } >&5
9228 cat >&5 <<_CSEOF
9229
9230 This file was extended by $as_me, which was
9231 generated by GNU Autoconf 2.59. Invocation command line was
9232
9233 CONFIG_FILES = $CONFIG_FILES
9234 CONFIG_HEADERS = $CONFIG_HEADERS
9235 CONFIG_LINKS = $CONFIG_LINKS
9236 CONFIG_COMMANDS = $CONFIG_COMMANDS
9237 $ $0 $@
9238
9239 _CSEOF
9240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9241 echo >&5
9242 _ACEOF
9243
9244 # Files that config.status was made for.
9245 if test -n "$ac_config_files"; then
9246 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9247 fi
9248
9249 if test -n "$ac_config_headers"; then
9250 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9251 fi
9252
9253 if test -n "$ac_config_links"; then
9254 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9255 fi
9256
9257 if test -n "$ac_config_commands"; then
9258 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9259 fi
9260
9261 cat >>$CONFIG_STATUS <<\_ACEOF
9262
9263 ac_cs_usage="\
9264 \`$as_me' instantiates files from templates according to the
9265 current configuration.
9266
9267 Usage: $0 [OPTIONS] [FILE]...
9268
9269 -h, --help print this help, then exit
9270 -V, --version print version number, then exit
9271 -q, --quiet do not print progress messages
9272 -d, --debug don't remove temporary files
9273 --recheck update $as_me by reconfiguring in the same conditions
9274 --file=FILE[:TEMPLATE]
9275 instantiate the configuration file FILE
9276 --header=FILE[:TEMPLATE]
9277 instantiate the configuration header FILE
9278
9279 Configuration files:
9280 $config_files
9281
9282 Configuration headers:
9283 $config_headers
9284
9285 Configuration commands:
9286 $config_commands
9287
9288 Report bugs to <bug-autoconf@gnu.org>."
9289 _ACEOF
9290
9291 cat >>$CONFIG_STATUS <<_ACEOF
9292 ac_cs_version="\\
9293 config.status
9294 configured by $0, generated by GNU Autoconf 2.59,
9295 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9296
9297 Copyright (C) 2003 Free Software Foundation, Inc.
9298 This config.status script is free software; the Free Software Foundation
9299 gives unlimited permission to copy, distribute and modify it."
9300 srcdir=$srcdir
9301 INSTALL="$INSTALL"
9302 _ACEOF
9303
9304 cat >>$CONFIG_STATUS <<\_ACEOF
9305 # If no file are specified by the user, then we need to provide default
9306 # value. By we need to know if files were specified by the user.
9307 ac_need_defaults=:
9308 while test $# != 0
9309 do
9310 case $1 in
9311 --*=*)
9312 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9313 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9314 ac_shift=:
9315 ;;
9316 -*)
9317 ac_option=$1
9318 ac_optarg=$2
9319 ac_shift=shift
9320 ;;
9321 *) # This is not an option, so the user has probably given explicit
9322 # arguments.
9323 ac_option=$1
9324 ac_need_defaults=false;;
9325 esac
9326
9327 case $ac_option in
9328 # Handling of the options.
9329 _ACEOF
9330 cat >>$CONFIG_STATUS <<\_ACEOF
9331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9332 ac_cs_recheck=: ;;
9333 --version | --vers* | -V )
9334 echo "$ac_cs_version"; exit 0 ;;
9335 --he | --h)
9336 # Conflict between --help and --header
9337 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9338 Try \`$0 --help' for more information." >&5
9339 echo "$as_me: error: ambiguous option: $1
9340 Try \`$0 --help' for more information." >&2;}
9341 { (exit 1); exit 1; }; };;
9342 --help | --hel | -h )
9343 echo "$ac_cs_usage"; exit 0 ;;
9344 --debug | --d* | -d )
9345 debug=: ;;
9346 --file | --fil | --fi | --f )
9347 $ac_shift
9348 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9349 ac_need_defaults=false;;
9350 --header | --heade | --head | --hea )
9351 $ac_shift
9352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9353 ac_need_defaults=false;;
9354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9356 ac_cs_silent=: ;;
9357
9358 # This is an error.
9359 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9360 Try \`$0 --help' for more information." >&5
9361 echo "$as_me: error: unrecognized option: $1
9362 Try \`$0 --help' for more information." >&2;}
9363 { (exit 1); exit 1; }; } ;;
9364
9365 *) ac_config_targets="$ac_config_targets $1" ;;
9366
9367 esac
9368 shift
9369 done
9370
9371 ac_configure_extra_args=
9372
9373 if $ac_cs_silent; then
9374 exec 6>/dev/null
9375 ac_configure_extra_args="$ac_configure_extra_args --silent"
9376 fi
9377
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<_ACEOF
9380 if \$ac_cs_recheck; then
9381 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9382 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9383 fi
9384
9385 _ACEOF
9386
9387 cat >>$CONFIG_STATUS <<_ACEOF
9388 #
9389 # INIT-COMMANDS section.
9390 #
9391
9392 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9393 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9394 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9395 # from automake.
9396 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9397 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9398 LINGUAS="${LINGUAS-%UNSET%}"
9399
9400
9401 _ACEOF
9402
9403
9404
9405 cat >>$CONFIG_STATUS <<\_ACEOF
9406 for ac_config_target in $ac_config_targets
9407 do
9408 case "$ac_config_target" in
9409 # Handling of arguments.
9410 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9411 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9412 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9413 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9414 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9415 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9416 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9417 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9418 { (exit 1); exit 1; }; };;
9419 esac
9420 done
9421
9422 # If the user did not use the arguments to specify the items to instantiate,
9423 # then the envvar interface is used. Set only those that are not.
9424 # We use the long form for the default assignment because of an extremely
9425 # bizarre bug on SunOS 4.1.3.
9426 if $ac_need_defaults; then
9427 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9428 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9429 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9430 fi
9431
9432 # Have a temporary directory for convenience. Make it in the build tree
9433 # simply because there is no reason to put it here, and in addition,
9434 # creating and moving files from /tmp can sometimes cause problems.
9435 # Create a temporary directory, and hook for its removal unless debugging.
9436 $debug ||
9437 {
9438 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9439 trap '{ (exit 1); exit 1; }' 1 2 13 15
9440 }
9441
9442 # Create a (secure) tmp directory for tmp files.
9443
9444 {
9445 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9446 test -n "$tmp" && test -d "$tmp"
9447 } ||
9448 {
9449 tmp=./confstat$$-$RANDOM
9450 (umask 077 && mkdir $tmp)
9451 } ||
9452 {
9453 echo "$me: cannot create a temporary directory in ." >&2
9454 { (exit 1); exit 1; }
9455 }
9456
9457 _ACEOF
9458
9459 cat >>$CONFIG_STATUS <<_ACEOF
9460
9461 #
9462 # CONFIG_FILES section.
9463 #
9464
9465 # No need to generate the scripts if there are no CONFIG_FILES.
9466 # This happens for instance when ./config.status config.h
9467 if test -n "\$CONFIG_FILES"; then
9468 # Protect against being on the right side of a sed subst in config.status.
9469 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9470 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9471 s,@SHELL@,$SHELL,;t t
9472 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9473 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9474 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9475 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9476 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9477 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9478 s,@exec_prefix@,$exec_prefix,;t t
9479 s,@prefix@,$prefix,;t t
9480 s,@program_transform_name@,$program_transform_name,;t t
9481 s,@bindir@,$bindir,;t t
9482 s,@sbindir@,$sbindir,;t t
9483 s,@libexecdir@,$libexecdir,;t t
9484 s,@datadir@,$datadir,;t t
9485 s,@sysconfdir@,$sysconfdir,;t t
9486 s,@sharedstatedir@,$sharedstatedir,;t t
9487 s,@localstatedir@,$localstatedir,;t t
9488 s,@libdir@,$libdir,;t t
9489 s,@includedir@,$includedir,;t t
9490 s,@oldincludedir@,$oldincludedir,;t t
9491 s,@infodir@,$infodir,;t t
9492 s,@mandir@,$mandir,;t t
9493 s,@build_alias@,$build_alias,;t t
9494 s,@host_alias@,$host_alias,;t t
9495 s,@target_alias@,$target_alias,;t t
9496 s,@DEFS@,$DEFS,;t t
9497 s,@ECHO_C@,$ECHO_C,;t t
9498 s,@ECHO_N@,$ECHO_N,;t t
9499 s,@ECHO_T@,$ECHO_T,;t t
9500 s,@LIBS@,$LIBS,;t t
9501 s,@build@,$build,;t t
9502 s,@build_cpu@,$build_cpu,;t t
9503 s,@build_vendor@,$build_vendor,;t t
9504 s,@build_os@,$build_os,;t t
9505 s,@host@,$host,;t t
9506 s,@host_cpu@,$host_cpu,;t t
9507 s,@host_vendor@,$host_vendor,;t t
9508 s,@host_os@,$host_os,;t t
9509 s,@target@,$target,;t t
9510 s,@target_cpu@,$target_cpu,;t t
9511 s,@target_vendor@,$target_vendor,;t t
9512 s,@target_os@,$target_os,;t t
9513 s,@CC@,$CC,;t t
9514 s,@CFLAGS@,$CFLAGS,;t t
9515 s,@LDFLAGS@,$LDFLAGS,;t t
9516 s,@CPPFLAGS@,$CPPFLAGS,;t t
9517 s,@ac_ct_CC@,$ac_ct_CC,;t t
9518 s,@EXEEXT@,$EXEEXT,;t t
9519 s,@OBJEXT@,$OBJEXT,;t t
9520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9523 s,@CYGPATH_W@,$CYGPATH_W,;t t
9524 s,@PACKAGE@,$PACKAGE,;t t
9525 s,@VERSION@,$VERSION,;t t
9526 s,@ACLOCAL@,$ACLOCAL,;t t
9527 s,@AUTOCONF@,$AUTOCONF,;t t
9528 s,@AUTOMAKE@,$AUTOMAKE,;t t
9529 s,@AUTOHEADER@,$AUTOHEADER,;t t
9530 s,@MAKEINFO@,$MAKEINFO,;t t
9531 s,@install_sh@,$install_sh,;t t
9532 s,@STRIP@,$STRIP,;t t
9533 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9534 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9535 s,@mkdir_p@,$mkdir_p,;t t
9536 s,@AWK@,$AWK,;t t
9537 s,@SET_MAKE@,$SET_MAKE,;t t
9538 s,@am__leading_dot@,$am__leading_dot,;t t
9539 s,@AMTAR@,$AMTAR,;t t
9540 s,@am__tar@,$am__tar,;t t
9541 s,@am__untar@,$am__untar,;t t
9542 s,@DEPDIR@,$DEPDIR,;t t
9543 s,@am__include@,$am__include,;t t
9544 s,@am__quote@,$am__quote,;t t
9545 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9546 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9547 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9548 s,@CCDEPMODE@,$CCDEPMODE,;t t
9549 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9550 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9551 s,@LN_S@,$LN_S,;t t
9552 s,@RANLIB@,$RANLIB,;t t
9553 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9554 s,@LIBTOOL@,$LIBTOOL,;t t
9555 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
9556 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
9557 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9558 s,@NO_WERROR@,$NO_WERROR,;t t
9559 s,@YACC@,$YACC,;t t
9560 s,@LEX@,$LEX,;t t
9561 s,@LEXLIB@,$LEXLIB,;t t
9562 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9563 s,@USE_NLS@,$USE_NLS,;t t
9564 s,@LIBINTL@,$LIBINTL,;t t
9565 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9566 s,@INCINTL@,$INCINTL,;t t
9567 s,@XGETTEXT@,$XGETTEXT,;t t
9568 s,@GMSGFMT@,$GMSGFMT,;t t
9569 s,@POSUB@,$POSUB,;t t
9570 s,@CATALOGS@,$CATALOGS,;t t
9571 s,@DATADIRNAME@,$DATADIRNAME,;t t
9572 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9573 s,@GENCAT@,$GENCAT,;t t
9574 s,@CATOBJEXT@,$CATOBJEXT,;t t
9575 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9576 s,@MSGFMT@,$MSGFMT,;t t
9577 s,@MSGMERGE@,$MSGMERGE,;t t
9578 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9579 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9580 s,@MAINT@,$MAINT,;t t
9581 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9582 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
9583 s,@HDEFINES@,$HDEFINES,;t t
9584 s,@AR@,$AR,;t t
9585 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9586 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9587 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
9588 s,@CPP@,$CPP,;t t
9589 s,@EGREP@,$EGREP,;t t
9590 s,@ALLOCA@,$ALLOCA,;t t
9591 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
9592 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
9593 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
9594 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
9595 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
9596 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
9597 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
9598 s,@BUILD_MISC@,$BUILD_MISC,;t t
9599 s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
9600 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
9601 s,@EMULATION@,$EMULATION,;t t
9602 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
9603 s,@datarootdir@,$datarootdir,;t t
9604 s,@docdir@,$docdir,;t t
9605 s,@htmldir@,$htmldir,;t t
9606 s,@LIBOBJS@,$LIBOBJS,;t t
9607 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9608 CEOF
9609
9610 _ACEOF
9611
9612 cat >>$CONFIG_STATUS <<\_ACEOF
9613 # Split the substitutions into bite-sized pieces for seds with
9614 # small command number limits, like on Digital OSF/1 and HP-UX.
9615 ac_max_sed_lines=48
9616 ac_sed_frag=1 # Number of current file.
9617 ac_beg=1 # First line for current file.
9618 ac_end=$ac_max_sed_lines # Line after last line for current file.
9619 ac_more_lines=:
9620 ac_sed_cmds=
9621 while $ac_more_lines; do
9622 if test $ac_beg -gt 1; then
9623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9624 else
9625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9626 fi
9627 if test ! -s $tmp/subs.frag; then
9628 ac_more_lines=false
9629 else
9630 # The purpose of the label and of the branching condition is to
9631 # speed up the sed processing (if there are no `@' at all, there
9632 # is no need to browse any of the substitutions).
9633 # These are the two extra sed commands mentioned above.
9634 (echo ':t
9635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9636 if test -z "$ac_sed_cmds"; then
9637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9638 else
9639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9640 fi
9641 ac_sed_frag=`expr $ac_sed_frag + 1`
9642 ac_beg=$ac_end
9643 ac_end=`expr $ac_end + $ac_max_sed_lines`
9644 fi
9645 done
9646 if test -z "$ac_sed_cmds"; then
9647 ac_sed_cmds=cat
9648 fi
9649 fi # test -n "$CONFIG_FILES"
9650
9651 _ACEOF
9652 cat >>$CONFIG_STATUS <<\_ACEOF
9653 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9655 case $ac_file in
9656 - | *:- | *:-:* ) # input from stdin
9657 cat >$tmp/stdin
9658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9662 * ) ac_file_in=$ac_file.in ;;
9663 esac
9664
9665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$ac_file" : 'X\(//\)[^/]' \| \
9669 X"$ac_file" : 'X\(//\)$' \| \
9670 X"$ac_file" : 'X\(/\)' \| \
9671 . : '\(.\)' 2>/dev/null ||
9672 echo X"$ac_file" |
9673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675 /^X\(\/\/\)$/{ s//\1/; q; }
9676 /^X\(\/\).*/{ s//\1/; q; }
9677 s/.*/./; q'`
9678 { if $as_mkdir_p; then
9679 mkdir -p "$ac_dir"
9680 else
9681 as_dir="$ac_dir"
9682 as_dirs=
9683 while test ! -d "$as_dir"; do
9684 as_dirs="$as_dir $as_dirs"
9685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9687 X"$as_dir" : 'X\(//\)[^/]' \| \
9688 X"$as_dir" : 'X\(//\)$' \| \
9689 X"$as_dir" : 'X\(/\)' \| \
9690 . : '\(.\)' 2>/dev/null ||
9691 echo X"$as_dir" |
9692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9694 /^X\(\/\/\)$/{ s//\1/; q; }
9695 /^X\(\/\).*/{ s//\1/; q; }
9696 s/.*/./; q'`
9697 done
9698 test ! -n "$as_dirs" || mkdir $as_dirs
9699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9700 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9701 { (exit 1); exit 1; }; }; }
9702
9703 ac_builddir=.
9704
9705 if test "$ac_dir" != .; then
9706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9707 # A "../" for each directory in $ac_dir_suffix.
9708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9709 else
9710 ac_dir_suffix= ac_top_builddir=
9711 fi
9712
9713 case $srcdir in
9714 .) # No --srcdir option. We are building in place.
9715 ac_srcdir=.
9716 if test -z "$ac_top_builddir"; then
9717 ac_top_srcdir=.
9718 else
9719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9720 fi ;;
9721 [\\/]* | ?:[\\/]* ) # Absolute path.
9722 ac_srcdir=$srcdir$ac_dir_suffix;
9723 ac_top_srcdir=$srcdir ;;
9724 *) # Relative path.
9725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9727 esac
9728
9729 # Do not use `cd foo && pwd` to compute absolute paths, because
9730 # the directories may not exist.
9731 case `pwd` in
9732 .) ac_abs_builddir="$ac_dir";;
9733 *)
9734 case "$ac_dir" in
9735 .) ac_abs_builddir=`pwd`;;
9736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9738 esac;;
9739 esac
9740 case $ac_abs_builddir in
9741 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9742 *)
9743 case ${ac_top_builddir}. in
9744 .) ac_abs_top_builddir=$ac_abs_builddir;;
9745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9747 esac;;
9748 esac
9749 case $ac_abs_builddir in
9750 .) ac_abs_srcdir=$ac_srcdir;;
9751 *)
9752 case $ac_srcdir in
9753 .) ac_abs_srcdir=$ac_abs_builddir;;
9754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9756 esac;;
9757 esac
9758 case $ac_abs_builddir in
9759 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9760 *)
9761 case $ac_top_srcdir in
9762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9765 esac;;
9766 esac
9767
9768
9769 case $INSTALL in
9770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9772 esac
9773
9774 if test x"$ac_file" != x-; then
9775 { echo "$as_me:$LINENO: creating $ac_file" >&5
9776 echo "$as_me: creating $ac_file" >&6;}
9777 rm -f "$ac_file"
9778 fi
9779 # Let's still pretend it is `configure' which instantiates (i.e., don't
9780 # use $as_me), people would be surprised to read:
9781 # /* config.h. Generated by config.status. */
9782 if test x"$ac_file" = x-; then
9783 configure_input=
9784 else
9785 configure_input="$ac_file. "
9786 fi
9787 configure_input=$configure_input"Generated from `echo $ac_file_in |
9788 sed 's,.*/,,'` by configure."
9789
9790 # First look for the input files in the build tree, otherwise in the
9791 # src tree.
9792 ac_file_inputs=`IFS=:
9793 for f in $ac_file_in; do
9794 case $f in
9795 -) echo $tmp/stdin ;;
9796 [\\/$]*)
9797 # Absolute (can't be DOS-style, as IFS=:)
9798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9799 echo "$as_me: error: cannot find input file: $f" >&2;}
9800 { (exit 1); exit 1; }; }
9801 echo "$f";;
9802 *) # Relative
9803 if test -f "$f"; then
9804 # Build tree
9805 echo "$f"
9806 elif test -f "$srcdir/$f"; then
9807 # Source tree
9808 echo "$srcdir/$f"
9809 else
9810 # /dev/null tree
9811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9812 echo "$as_me: error: cannot find input file: $f" >&2;}
9813 { (exit 1); exit 1; }; }
9814 fi;;
9815 esac
9816 done` || { (exit 1); exit 1; }
9817 _ACEOF
9818 cat >>$CONFIG_STATUS <<_ACEOF
9819 sed "$ac_vpsub
9820 $extrasub
9821 _ACEOF
9822 cat >>$CONFIG_STATUS <<\_ACEOF
9823 :t
9824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9825 s,@configure_input@,$configure_input,;t t
9826 s,@srcdir@,$ac_srcdir,;t t
9827 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9828 s,@top_srcdir@,$ac_top_srcdir,;t t
9829 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9830 s,@builddir@,$ac_builddir,;t t
9831 s,@abs_builddir@,$ac_abs_builddir,;t t
9832 s,@top_builddir@,$ac_top_builddir,;t t
9833 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9834 s,@INSTALL@,$ac_INSTALL,;t t
9835 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9836 rm -f $tmp/stdin
9837 if test x"$ac_file" != x-; then
9838 mv $tmp/out $ac_file
9839 else
9840 cat $tmp/out
9841 rm -f $tmp/out
9842 fi
9843
9844 done
9845 _ACEOF
9846 cat >>$CONFIG_STATUS <<\_ACEOF
9847
9848 #
9849 # CONFIG_HEADER section.
9850 #
9851
9852 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9853 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9854 #
9855 # ac_d sets the value in "#define NAME VALUE" lines.
9856 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9857 ac_dB='[ ].*$,\1#\2'
9858 ac_dC=' '
9859 ac_dD=',;t'
9860 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9861 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9862 ac_uB='$,\1#\2define\3'
9863 ac_uC=' '
9864 ac_uD=',;t'
9865
9866 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9868 case $ac_file in
9869 - | *:- | *:-:* ) # input from stdin
9870 cat >$tmp/stdin
9871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9875 * ) ac_file_in=$ac_file.in ;;
9876 esac
9877
9878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9879 echo "$as_me: creating $ac_file" >&6;}
9880
9881 # First look for the input files in the build tree, otherwise in the
9882 # src tree.
9883 ac_file_inputs=`IFS=:
9884 for f in $ac_file_in; do
9885 case $f in
9886 -) echo $tmp/stdin ;;
9887 [\\/$]*)
9888 # Absolute (can't be DOS-style, as IFS=:)
9889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9890 echo "$as_me: error: cannot find input file: $f" >&2;}
9891 { (exit 1); exit 1; }; }
9892 # Do quote $f, to prevent DOS paths from being IFS'd.
9893 echo "$f";;
9894 *) # Relative
9895 if test -f "$f"; then
9896 # Build tree
9897 echo "$f"
9898 elif test -f "$srcdir/$f"; then
9899 # Source tree
9900 echo "$srcdir/$f"
9901 else
9902 # /dev/null tree
9903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9904 echo "$as_me: error: cannot find input file: $f" >&2;}
9905 { (exit 1); exit 1; }; }
9906 fi;;
9907 esac
9908 done` || { (exit 1); exit 1; }
9909 # Remove the trailing spaces.
9910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9911
9912 _ACEOF
9913
9914 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9915 # `conftest.undefs', that substitutes the proper values into
9916 # config.h.in to produce config.h. The first handles `#define'
9917 # templates, and the second `#undef' templates.
9918 # And first: Protect against being on the right side of a sed subst in
9919 # config.status. Protect against being in an unquoted here document
9920 # in config.status.
9921 rm -f conftest.defines conftest.undefs
9922 # Using a here document instead of a string reduces the quoting nightmare.
9923 # Putting comments in sed scripts is not portable.
9924 #
9925 # `end' is used to avoid that the second main sed command (meant for
9926 # 0-ary CPP macros) applies to n-ary macro definitions.
9927 # See the Autoconf documentation for `clear'.
9928 cat >confdef2sed.sed <<\_ACEOF
9929 s/[\\&,]/\\&/g
9930 s,[\\$`],\\&,g
9931 t clear
9932 : clear
9933 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9934 t end
9935 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9936 : end
9937 _ACEOF
9938 # If some macros were called several times there might be several times
9939 # the same #defines, which is useless. Nevertheless, we may not want to
9940 # sort them, since we want the *last* AC-DEFINE to be honored.
9941 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9942 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9943 rm -f confdef2sed.sed
9944
9945 # This sed command replaces #undef with comments. This is necessary, for
9946 # example, in the case of _POSIX_SOURCE, which is predefined and required
9947 # on some systems where configure will not decide to define it.
9948 cat >>conftest.undefs <<\_ACEOF
9949 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9950 _ACEOF
9951
9952 # Break up conftest.defines because some shells have a limit on the size
9953 # of here documents, and old seds have small limits too (100 cmds).
9954 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9955 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9956 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9957 echo ' :' >>$CONFIG_STATUS
9958 rm -f conftest.tail
9959 while grep . conftest.defines >/dev/null
9960 do
9961 # Write a limited-size here document to $tmp/defines.sed.
9962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9963 # Speed up: don't consider the non `#define' lines.
9964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9965 # Work around the forget-to-reset-the-flag bug.
9966 echo 't clr' >>$CONFIG_STATUS
9967 echo ': clr' >>$CONFIG_STATUS
9968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9969 echo 'CEOF
9970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9971 rm -f $tmp/in
9972 mv $tmp/out $tmp/in
9973 ' >>$CONFIG_STATUS
9974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9975 rm -f conftest.defines
9976 mv conftest.tail conftest.defines
9977 done
9978 rm -f conftest.defines
9979 echo ' fi # grep' >>$CONFIG_STATUS
9980 echo >>$CONFIG_STATUS
9981
9982 # Break up conftest.undefs because some shells have a limit on the size
9983 # of here documents, and old seds have small limits too (100 cmds).
9984 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9985 rm -f conftest.tail
9986 while grep . conftest.undefs >/dev/null
9987 do
9988 # Write a limited-size here document to $tmp/undefs.sed.
9989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9990 # Speed up: don't consider the non `#undef'
9991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9992 # Work around the forget-to-reset-the-flag bug.
9993 echo 't clr' >>$CONFIG_STATUS
9994 echo ': clr' >>$CONFIG_STATUS
9995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9996 echo 'CEOF
9997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9998 rm -f $tmp/in
9999 mv $tmp/out $tmp/in
10000 ' >>$CONFIG_STATUS
10001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10002 rm -f conftest.undefs
10003 mv conftest.tail conftest.undefs
10004 done
10005 rm -f conftest.undefs
10006
10007 cat >>$CONFIG_STATUS <<\_ACEOF
10008 # Let's still pretend it is `configure' which instantiates (i.e., don't
10009 # use $as_me), people would be surprised to read:
10010 # /* config.h. Generated by config.status. */
10011 if test x"$ac_file" = x-; then
10012 echo "/* Generated by configure. */" >$tmp/config.h
10013 else
10014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10015 fi
10016 cat $tmp/in >>$tmp/config.h
10017 rm -f $tmp/in
10018 if test x"$ac_file" != x-; then
10019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10021 echo "$as_me: $ac_file is unchanged" >&6;}
10022 else
10023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10025 X"$ac_file" : 'X\(//\)[^/]' \| \
10026 X"$ac_file" : 'X\(//\)$' \| \
10027 X"$ac_file" : 'X\(/\)' \| \
10028 . : '\(.\)' 2>/dev/null ||
10029 echo X"$ac_file" |
10030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10032 /^X\(\/\/\)$/{ s//\1/; q; }
10033 /^X\(\/\).*/{ s//\1/; q; }
10034 s/.*/./; q'`
10035 { if $as_mkdir_p; then
10036 mkdir -p "$ac_dir"
10037 else
10038 as_dir="$ac_dir"
10039 as_dirs=
10040 while test ! -d "$as_dir"; do
10041 as_dirs="$as_dir $as_dirs"
10042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10044 X"$as_dir" : 'X\(//\)[^/]' \| \
10045 X"$as_dir" : 'X\(//\)$' \| \
10046 X"$as_dir" : 'X\(/\)' \| \
10047 . : '\(.\)' 2>/dev/null ||
10048 echo X"$as_dir" |
10049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10051 /^X\(\/\/\)$/{ s//\1/; q; }
10052 /^X\(\/\).*/{ s//\1/; q; }
10053 s/.*/./; q'`
10054 done
10055 test ! -n "$as_dirs" || mkdir $as_dirs
10056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10057 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10058 { (exit 1); exit 1; }; }; }
10059
10060 rm -f $ac_file
10061 mv $tmp/config.h $ac_file
10062 fi
10063 else
10064 cat $tmp/config.h
10065 rm -f $tmp/config.h
10066 fi
10067 # Compute $ac_file's index in $config_headers.
10068 _am_stamp_count=1
10069 for _am_header in $config_headers :; do
10070 case $_am_header in
10071 $ac_file | $ac_file:* )
10072 break ;;
10073 * )
10074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10075 esac
10076 done
10077 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10078 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X$ac_file : 'X\(//\)[^/]' \| \
10080 X$ac_file : 'X\(//\)$' \| \
10081 X$ac_file : 'X\(/\)' \| \
10082 . : '\(.\)' 2>/dev/null ||
10083 echo X$ac_file |
10084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10086 /^X\(\/\/\)$/{ s//\1/; q; }
10087 /^X\(\/\).*/{ s//\1/; q; }
10088 s/.*/./; q'`/stamp-h$_am_stamp_count
10089 done
10090 _ACEOF
10091 cat >>$CONFIG_STATUS <<\_ACEOF
10092
10093 #
10094 # CONFIG_COMMANDS section.
10095 #
10096 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10097 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10098 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10099 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10100 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10101 X"$ac_dest" : 'X\(//\)[^/]' \| \
10102 X"$ac_dest" : 'X\(//\)$' \| \
10103 X"$ac_dest" : 'X\(/\)' \| \
10104 . : '\(.\)' 2>/dev/null ||
10105 echo X"$ac_dest" |
10106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10108 /^X\(\/\/\)$/{ s//\1/; q; }
10109 /^X\(\/\).*/{ s//\1/; q; }
10110 s/.*/./; q'`
10111 { if $as_mkdir_p; then
10112 mkdir -p "$ac_dir"
10113 else
10114 as_dir="$ac_dir"
10115 as_dirs=
10116 while test ! -d "$as_dir"; do
10117 as_dirs="$as_dir $as_dirs"
10118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10120 X"$as_dir" : 'X\(//\)[^/]' \| \
10121 X"$as_dir" : 'X\(//\)$' \| \
10122 X"$as_dir" : 'X\(/\)' \| \
10123 . : '\(.\)' 2>/dev/null ||
10124 echo X"$as_dir" |
10125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10127 /^X\(\/\/\)$/{ s//\1/; q; }
10128 /^X\(\/\).*/{ s//\1/; q; }
10129 s/.*/./; q'`
10130 done
10131 test ! -n "$as_dirs" || mkdir $as_dirs
10132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10134 { (exit 1); exit 1; }; }; }
10135
10136 ac_builddir=.
10137
10138 if test "$ac_dir" != .; then
10139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10140 # A "../" for each directory in $ac_dir_suffix.
10141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10142 else
10143 ac_dir_suffix= ac_top_builddir=
10144 fi
10145
10146 case $srcdir in
10147 .) # No --srcdir option. We are building in place.
10148 ac_srcdir=.
10149 if test -z "$ac_top_builddir"; then
10150 ac_top_srcdir=.
10151 else
10152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10153 fi ;;
10154 [\\/]* | ?:[\\/]* ) # Absolute path.
10155 ac_srcdir=$srcdir$ac_dir_suffix;
10156 ac_top_srcdir=$srcdir ;;
10157 *) # Relative path.
10158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10160 esac
10161
10162 # Do not use `cd foo && pwd` to compute absolute paths, because
10163 # the directories may not exist.
10164 case `pwd` in
10165 .) ac_abs_builddir="$ac_dir";;
10166 *)
10167 case "$ac_dir" in
10168 .) ac_abs_builddir=`pwd`;;
10169 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10170 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10171 esac;;
10172 esac
10173 case $ac_abs_builddir in
10174 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10175 *)
10176 case ${ac_top_builddir}. in
10177 .) ac_abs_top_builddir=$ac_abs_builddir;;
10178 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10179 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10180 esac;;
10181 esac
10182 case $ac_abs_builddir in
10183 .) ac_abs_srcdir=$ac_srcdir;;
10184 *)
10185 case $ac_srcdir in
10186 .) ac_abs_srcdir=$ac_abs_builddir;;
10187 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10188 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10189 esac;;
10190 esac
10191 case $ac_abs_builddir in
10192 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10193 *)
10194 case $ac_top_srcdir in
10195 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10196 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10197 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10198 esac;;
10199 esac
10200
10201
10202 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10203 echo "$as_me: executing $ac_dest commands" >&6;}
10204 case $ac_dest in
10205 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10206 # Strip MF so we end up with the name of the file.
10207 mf=`echo "$mf" | sed -e 's/:.*$//'`
10208 # Check whether this is an Automake generated Makefile or not.
10209 # We used to match only the files named `Makefile.in', but
10210 # some people rename them; so instead we look at the file content.
10211 # Grep'ing the first line is not enough: some people post-process
10212 # each Makefile.in and add a new line on top of each file to say so.
10213 # So let's grep whole file.
10214 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10215 dirpart=`(dirname "$mf") 2>/dev/null ||
10216 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10217 X"$mf" : 'X\(//\)[^/]' \| \
10218 X"$mf" : 'X\(//\)$' \| \
10219 X"$mf" : 'X\(/\)' \| \
10220 . : '\(.\)' 2>/dev/null ||
10221 echo X"$mf" |
10222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10224 /^X\(\/\/\)$/{ s//\1/; q; }
10225 /^X\(\/\).*/{ s//\1/; q; }
10226 s/.*/./; q'`
10227 else
10228 continue
10229 fi
10230 # Extract the definition of DEPDIR, am__include, and am__quote
10231 # from the Makefile without running `make'.
10232 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10233 test -z "$DEPDIR" && continue
10234 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10235 test -z "am__include" && continue
10236 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10237 # When using ansi2knr, U may be empty or an underscore; expand it
10238 U=`sed -n 's/^U = //p' < "$mf"`
10239 # Find all dependency output files, they are included files with
10240 # $(DEPDIR) in their names. We invoke sed twice because it is the
10241 # simplest approach to changing $(DEPDIR) to its actual value in the
10242 # expansion.
10243 for file in `sed -n "
10244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10246 # Make sure the directory exists.
10247 test -f "$dirpart/$file" && continue
10248 fdir=`(dirname "$file") 2>/dev/null ||
10249 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10250 X"$file" : 'X\(//\)[^/]' \| \
10251 X"$file" : 'X\(//\)$' \| \
10252 X"$file" : 'X\(/\)' \| \
10253 . : '\(.\)' 2>/dev/null ||
10254 echo X"$file" |
10255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10257 /^X\(\/\/\)$/{ s//\1/; q; }
10258 /^X\(\/\).*/{ s//\1/; q; }
10259 s/.*/./; q'`
10260 { if $as_mkdir_p; then
10261 mkdir -p $dirpart/$fdir
10262 else
10263 as_dir=$dirpart/$fdir
10264 as_dirs=
10265 while test ! -d "$as_dir"; do
10266 as_dirs="$as_dir $as_dirs"
10267 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10269 X"$as_dir" : 'X\(//\)[^/]' \| \
10270 X"$as_dir" : 'X\(//\)$' \| \
10271 X"$as_dir" : 'X\(/\)' \| \
10272 . : '\(.\)' 2>/dev/null ||
10273 echo X"$as_dir" |
10274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10276 /^X\(\/\/\)$/{ s//\1/; q; }
10277 /^X\(\/\).*/{ s//\1/; q; }
10278 s/.*/./; q'`
10279 done
10280 test ! -n "$as_dirs" || mkdir $as_dirs
10281 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10282 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10283 { (exit 1); exit 1; }; }; }
10284
10285 # echo "creating $dirpart/$file"
10286 echo '# dummy' > "$dirpart/$file"
10287 done
10288 done
10289 ;;
10290 default-1 )
10291 for ac_file in $CONFIG_FILES; do
10292 # Support "outfile[:infile[:infile...]]"
10293 case "$ac_file" in
10294 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10295 esac
10296 # PO directories have a Makefile.in generated from Makefile.in.in.
10297 case "$ac_file" in */Makefile.in)
10298 # Adjust a relative srcdir.
10299 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10300 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10301 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10302 # In autoconf-2.13 it is called $ac_given_srcdir.
10303 # In autoconf-2.50 it is called $srcdir.
10304 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10305 case "$ac_given_srcdir" in
10306 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10307 /*) top_srcdir="$ac_given_srcdir" ;;
10308 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10309 esac
10310 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10311 rm -f "$ac_dir/POTFILES"
10312 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10313 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10314 POMAKEFILEDEPS="POTFILES.in"
10315 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10316 # on $ac_dir but don't depend on user-specified configuration
10317 # parameters.
10318 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10319 # The LINGUAS file contains the set of available languages.
10320 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10321 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10322 fi
10323 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10324 # Hide the ALL_LINGUAS assigment from automake.
10325 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10326 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10327 else
10328 # The set of available languages was given in configure.in.
10329 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10330 fi
10331 case "$ac_given_srcdir" in
10332 .) srcdirpre= ;;
10333 *) srcdirpre='$(srcdir)/' ;;
10334 esac
10335 POFILES=
10336 GMOFILES=
10337 UPDATEPOFILES=
10338 DUMMYPOFILES=
10339 for lang in $ALL_LINGUAS; do
10340 POFILES="$POFILES $srcdirpre$lang.po"
10341 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10342 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10343 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10344 done
10345 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10346 # environment variable.
10347 INST_LINGUAS=
10348 if test -n "$ALL_LINGUAS"; then
10349 for presentlang in $ALL_LINGUAS; do
10350 useit=no
10351 if test "%UNSET%" != "$LINGUAS"; then
10352 desiredlanguages="$LINGUAS"
10353 else
10354 desiredlanguages="$ALL_LINGUAS"
10355 fi
10356 for desiredlang in $desiredlanguages; do
10357 # Use the presentlang catalog if desiredlang is
10358 # a. equal to presentlang, or
10359 # b. a variant of presentlang (because in this case,
10360 # presentlang can be used as a fallback for messages
10361 # which are not translated in the desiredlang catalog).
10362 case "$desiredlang" in
10363 "$presentlang"*) useit=yes;;
10364 esac
10365 done
10366 if test $useit = yes; then
10367 INST_LINGUAS="$INST_LINGUAS $presentlang"
10368 fi
10369 done
10370 fi
10371 CATALOGS=
10372 if test -n "$INST_LINGUAS"; then
10373 for lang in $INST_LINGUAS; do
10374 CATALOGS="$CATALOGS $lang.gmo"
10375 done
10376 fi
10377 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10378 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10379 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10380 if test -f "$f"; then
10381 case "$f" in
10382 *.orig | *.bak | *~) ;;
10383 *) cat "$f" >> "$ac_dir/Makefile" ;;
10384 esac
10385 fi
10386 done
10387 fi
10388 ;;
10389 esac
10390 done ;;
10391 esac
10392 done
10393 _ACEOF
10394
10395 cat >>$CONFIG_STATUS <<\_ACEOF
10396
10397 { (exit 0); exit 0; }
10398 _ACEOF
10399 chmod +x $CONFIG_STATUS
10400 ac_clean_files=$ac_clean_files_save
10401
10402
10403 # configure is writing to config.log, and then calls config.status.
10404 # config.status does its own redirection, appending to config.log.
10405 # Unfortunately, on DOS this fails, as config.log is still kept open
10406 # by configure, so config.status won't be able to write to it; its
10407 # output is simply discarded. So we exec the FD to /dev/null,
10408 # effectively closing config.log, so it can be properly (re)opened and
10409 # appended to by config.status. When coming back to configure, we
10410 # need to make the FD available again.
10411 if test "$no_create" != yes; then
10412 ac_cs_success=:
10413 ac_config_status_args=
10414 test "$silent" = yes &&
10415 ac_config_status_args="$ac_config_status_args --quiet"
10416 exec 5>/dev/null
10417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10418 exec 5>>config.log
10419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10420 # would make configure fail if this is the last instruction.
10421 $ac_cs_success || { (exit 1); exit 1; }
10422 fi
10423
This page took 0.286096 seconds and 4 git commands to generate.