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