(GENERATE_PIE_SCRIPT): Define as "yes".
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
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`
252b5132 248
42ecbf5e
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
42ecbf5e
DJ
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="ldmain.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 LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313ac_subst_files='TDIRS'
252b5132
RH
314
315# Initialize some variables set by options.
42ecbf5e
DJ
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
42ecbf5e 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
42ecbf5e
DJ
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.
252b5132
RH
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
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
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
42ecbf5e 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
42ecbf5e 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
42ecbf5e 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 377 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e
DJ
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
42ecbf5e 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
42ecbf5e 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
42ecbf5e 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
42ecbf5e 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
42ecbf5e 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
42ecbf5e
DJ
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 ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
42ecbf5e 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 440 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 457 libdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 464 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 478 mandir=$ac_optarg ;;
252b5132
RH
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 \
42ecbf5e 485 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
42ecbf5e 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 504 prefix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 511 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 518 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 535 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 545 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
42ecbf5e 561 site=$ac_optarg ;;
85fbca6a 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 566 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
42ecbf5e
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
42ecbf5e 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
42ecbf5e 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
42ecbf5e 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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" ;;
252b5132
RH
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=*)
42ecbf5e 617 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 624 x_libraries=$ac_optarg ;;
252b5132 625
42ecbf5e
DJ
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
42ecbf5e
DJ
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
252b5132 641 *)
42ecbf5e
DJ
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}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
42ecbf5e
DJ
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; }; }
252b5132 656fi
252b5132 657
42ecbf5e
DJ
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
252b5132 668
42ecbf5e
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
42ecbf5e
DJ
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; }; };;
252b5132
RH
678 esac
679done
680
42ecbf5e
DJ
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
e5a52504 698
42ecbf5e
DJ
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
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.
42ecbf5e
DJ
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'`
252b5132
RH
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
42ecbf5e
DJ
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
42ecbf5e
DJ
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
42ecbf5e
DJ
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
252b5132 773
42ecbf5e
DJ
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.
252b5132 782
42ecbf5e 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
42ecbf5e
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
42ecbf5e 788Defaults for the options are specified in brackets.
ac48eca1 789
42ecbf5e
DJ
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]
ac48eca1 809
42ecbf5e
DJ
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'.
ac48eca1 814
42ecbf5e 815For better control, use the options below.
ac48eca1 816
42ecbf5e
DJ
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
ac48eca1 831
42ecbf5e 832 cat <<\_ACEOF
252b5132 833
42ecbf5e
DJ
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
252b5132 838
42ecbf5e
DJ
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
252b5132 844fi
252b5132 845
42ecbf5e 846if test -n "$ac_init_help"; then
252b5132 847
42ecbf5e 848 cat <<\_ACEOF
e5a52504 849
42ecbf5e
DJ
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=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
920esac
921
42ecbf5e
DJ
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
a2d91340 960
42ecbf5e
DJ
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
502bdb00 976 cd $ac_popdir
42ecbf5e 977 done
a2d91340
AC
978fi
979
42ecbf5e
DJ
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
a2d91340 983
42ecbf5e
DJ
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
a2d91340 994
42ecbf5e
DJ
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 997
42ecbf5e 998 $ $0 $@
a2d91340 999
42ecbf5e
DJ
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
252b5132 1033
42ecbf5e 1034} >&5
5d64ca4e 1035
42ecbf5e 1036cat >&5 <<_ACEOF
5d64ca4e 1037
5d64ca4e 1038
42ecbf5e
DJ
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
5d64ca4e 1042
42ecbf5e 1043_ACEOF
2469cfa2 1044
42ecbf5e
DJ
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
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); } &&
502bdb00
JW
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2058 { ac_try='test -z "$ac_c_werror_flag"
2059 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2321 { ac_try='test -z "$ac_c_werror_flag"
2322 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
42ecbf5e
DJ
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); } &&
502bdb00
JW
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
42ecbf5e
DJ
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
e5a52504
MM
2487
2488
2489BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2490am__api_version="1.9"
e5a52504
MM
2491# Find a good install program. We prefer a C program (faster),
2492# so one script is as good as another. But avoid the broken or
2493# incompatible versions:
2494# SysV /etc/install, /usr/sbin/install
2495# SunOS /usr/etc/install
2496# IRIX /sbin/install
2497# AIX /bin/install
42ecbf5e 2498# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2502# OS/2's system install, which has a completely different semantic
e5a52504 2503# ./install, which can be erroneously created by make from ./install.sh.
42ecbf5e
DJ
2504echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2506if test -z "$INSTALL"; then
42ecbf5e
DJ
2507if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2509else
42ecbf5e
DJ
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2516case $as_dir/ in
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520 /usr/ucb/* ) ;;
2521 *)
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2524 # by default.
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2528 if test $ac_prog = install &&
42ecbf5e 2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2530 # AIX install. It has an incompatible calling convention.
2531 :
42ecbf5e
DJ
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2535 :
252b5132 2536 else
42ecbf5e
DJ
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
252b5132
RH
2539 fi
2540 fi
2541 done
42ecbf5e
DJ
2542 done
2543 ;;
2544esac
2545done
2546
252b5132
RH
2547
2548fi
2549 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2550 INSTALL=$ac_cv_path_install
252b5132
RH
2551 else
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
42ecbf5e 2556 INSTALL=$ac_install_sh
252b5132
RH
2557 fi
2558fi
42ecbf5e
DJ
2559echo "$as_me:$LINENO: result: $INSTALL" >&5
2560echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2561
2562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563# It thinks the first close brace ends the variable substitution.
2564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
42ecbf5e 2566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2567
2568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
42ecbf5e
DJ
2570echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2572# Just in case
2573sleep 1
42ecbf5e 2574echo timestamp > conftest.file
252b5132
RH
2575# Do `set' in a subshell so we don't clobber the current shell's
2576# arguments. Must try -L first in case configure is actually a
2577# symlink; some systems play weird games with the mod time of symlinks
2578# (eg FreeBSD returns the mod time of the symlink's containing
2579# directory).
2580if (
42ecbf5e 2581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2582 if test "$*" = "X"; then
2583 # -L didn't work.
42ecbf5e 2584 set X `ls -t $srcdir/configure conftest.file`
252b5132 2585 fi
42ecbf5e
DJ
2586 rm -f conftest.file
2587 if test "$*" != "X $srcdir/configure conftest.file" \
2588 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2589
2590 # If neither matched, then we have a broken ls. This can happen
2591 # if, for instance, CONFIG_SHELL is bash and it inherits a
2592 # broken ls alias from the environment. This has actually
2593 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2595alias in your environment" >&5
2596echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2597alias in your environment" >&2;}
2598 { (exit 1); exit 1; }; }
252b5132
RH
2599 fi
2600
42ecbf5e 2601 test "$2" = conftest.file
252b5132
RH
2602 )
2603then
2604 # Ok.
2605 :
2606else
42ecbf5e
DJ
2607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608Check your system clock" >&5
2609echo "$as_me: error: newly created file is older than distributed files!
2610Check your system clock" >&2;}
2611 { (exit 1); exit 1; }; }
252b5132 2612fi
42ecbf5e
DJ
2613echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
252b5132 2615test "$program_prefix" != NONE &&
42ecbf5e 2616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2617# Use a double $ so make ignores it.
2618test "$program_suffix" != NONE &&
42ecbf5e
DJ
2619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620# Double any \ or $. echo might interpret backslashes.
2621# By default was `s,x,x', remove it if useless.
2622cat <<\_ACEOF >conftest.sed
2623s/[\\$]/&&/g;s/;s,x,x,$//
2624_ACEOF
2625program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626rm conftest.sed
2627
2628# expand $ac_aux_dir to an absolute path
2629am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632# Use eval to expand $SHELL
2633if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2635else
2636 am_missing_run=
2637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639fi
2640
2641if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642 # We used to keeping the `.' as first argument, in order to
2643 # allow $(mkdir_p) to be used without argument. As in
2644 # $(mkdir_p) $(somedir)
2645 # where $(somedir) is conditionally defined. However this is wrong
2646 # for two reasons:
2647 # 1. if the package is installed by a user who cannot write `.'
2648 # make install will fail,
2649 # 2. the above comment should most certainly read
2650 # $(mkdir_p) $(DESTDIR)$(somedir)
2651 # so it does not work when $(somedir) is undefined and
2652 # $(DESTDIR) is not.
2653 # To support the latter case, we have to write
2654 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655 # so the `.' trick is pointless.
2656 mkdir_p='mkdir -p --'
2657else
2658 # On NextStep and OpenStep, the `mkdir' command does not
2659 # recognize any option. It will interpret all options as
2660 # directories to create, and then abort because `.' already
2661 # exists.
2662 for d in ./-p ./--version;
2663 do
2664 test -d $d && rmdir $d
2665 done
2666 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667 if test -f "$ac_aux_dir/mkinstalldirs"; then
2668 mkdir_p='$(mkinstalldirs)'
2669 else
2670 mkdir_p='$(install_sh) -d'
2671 fi
2672fi
2673
2674for ac_prog in gawk mawk nawk awk
2675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
2678echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680if test "${ac_cv_prog_AWK+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698done
2699
2700fi
2701fi
2702AWK=$ac_cv_prog_AWK
2703if test -n "$AWK"; then
2704 echo "$as_me:$LINENO: result: $AWK" >&5
2705echo "${ECHO_T}$AWK" >&6
2706else
2707 echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6
2709fi
252b5132 2710
42ecbf5e
DJ
2711 test -n "$AWK" && break
2712done
252b5132 2713
42ecbf5e
DJ
2714echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2719else
42ecbf5e 2720 cat >conftest.make <<\_ACEOF
252b5132 2721all:
42ecbf5e
DJ
2722 @echo 'ac_maketemp="$(MAKE)"'
2723_ACEOF
252b5132 2724# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2725eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2726if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730fi
42ecbf5e 2731rm -f conftest.make
252b5132
RH
2732fi
2733if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
252b5132
RH
2736 SET_MAKE=
2737else
42ecbf5e
DJ
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
252b5132
RH
2740 SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
42ecbf5e
DJ
2743rm -rf .tst 2>/dev/null
2744mkdir .tst 2>/dev/null
2745if test -d .tst; then
2746 am__leading_dot=.
2747else
2748 am__leading_dot=_
2749fi
2750rmdir .tst 2>/dev/null
2751
2752DEPDIR="${am__leading_dot}deps"
2753
2754 ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757am_make=${MAKE-make}
2758cat > confinc << 'END'
2759am__doit:
2760 @echo done
2761.PHONY: am__doit
2762END
2763# If we don't find an include directive, just comment out the code.
2764echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766am__include="#"
2767am__quote=
2768_am_result=none
2769# First try GNU make style include.
2770echo "include confinc" > confmf
2771# We grep out `Entering directory' and `Leaving directory'
2772# messages which can occur if `w' ends up in MAKEFLAGS.
2773# In particular we don't look at `^make:' because GNU make might
2774# be invoked under some other name (usually "gmake"), in which
2775# case it prints its new name instead of `make'.
2776if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777 am__include=include
2778 am__quote=
2779 _am_result=GNU
2780fi
2781# Now try BSD make style include.
2782if test "$am__include" = "#"; then
2783 echo '.include "confinc"' > confmf
2784 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785 am__include=.include
2786 am__quote="\""
2787 _am_result=BSD
2788 fi
2789fi
2790
2791
2792echo "$as_me:$LINENO: result: $_am_result" >&5
2793echo "${ECHO_T}$_am_result" >&6
2794rm -f confinc confmf
2795
2796# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797if test "${enable_dependency_tracking+set}" = set; then
2798 enableval="$enable_dependency_tracking"
2799
2800fi;
2801if test "x$enable_dependency_tracking" != xno; then
2802 am_depcomp="$ac_aux_dir/depcomp"
2803 AMDEPBACKSLASH='\'
2804fi
2805
2806
2807if test "x$enable_dependency_tracking" != xno; then
2808 AMDEP_TRUE=
2809 AMDEP_FALSE='#'
2810else
2811 AMDEP_TRUE='#'
2812 AMDEP_FALSE=
2813fi
2814
e5a52504
MM
2815
2816
42ecbf5e
DJ
2817# test to see if srcdir already configured
2818if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819 test -f $srcdir/config.status; then
2820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822 { (exit 1); exit 1; }; }
2823fi
252b5132 2824
42ecbf5e
DJ
2825# test whether we have cygpath
2826if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2829 else
2830 CYGPATH_W=echo
2831 fi
252b5132 2832fi
42ecbf5e
DJ
2833
2834
2835# Define the identity of the package.
2836 PACKAGE=ld
2837 VERSION=${BFD_VERSION}
2838
2839
2840cat >>confdefs.h <<_ACEOF
e5a52504 2841#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
2842_ACEOF
2843
252b5132 2844
42ecbf5e 2845cat >>confdefs.h <<_ACEOF
e5a52504 2846#define VERSION "$VERSION"
42ecbf5e
DJ
2847_ACEOF
2848
2849# Some tools Automake needs.
2850
2851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
e5a52504 2862
42ecbf5e 2863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 2864
42ecbf5e 2865install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 2866
42ecbf5e
DJ
2867# Installed binaries are usually stripped using `strip' when the user
2868# run `make install-strip'. However `strip' might not be the right
2869# tool to use in cross-compilation environments, therefore Automake
2870# will honor the `STRIP' environment variable to overrule this program.
2871if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874set dummy ${ac_tool_prefix}strip; ac_word=$2
2875echo "$as_me:$LINENO: checking for $ac_word" >&5
2876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877if test "${ac_cv_prog_STRIP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880 if test -n "$STRIP"; then
2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894done
2895done
2896
2897fi
2898fi
2899STRIP=$ac_cv_prog_STRIP
2900if test -n "$STRIP"; then
2901 echo "$as_me:$LINENO: result: $STRIP" >&5
2902echo "${ECHO_T}$STRIP" >&6
2469cfa2 2903else
42ecbf5e
DJ
2904 echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
2906fi
2907
e5a52504 2908fi
42ecbf5e
DJ
2909if test -z "$ac_cv_prog_STRIP"; then
2910 ac_ct_STRIP=$STRIP
2911 # Extract the first word of "strip", so it can be a program name with args.
2912set dummy strip; ac_word=$2
2913echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 if test -n "$ac_ct_STRIP"; then
2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_ac_ct_STRIP="strip"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933done
e5a52504 2934
42ecbf5e
DJ
2935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936fi
2937fi
2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939if test -n "$ac_ct_STRIP"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 2942else
42ecbf5e
DJ
2943 echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
2469cfa2
NC
2945fi
2946
42ecbf5e 2947 STRIP=$ac_ct_STRIP
2469cfa2 2948else
42ecbf5e
DJ
2949 STRIP="$ac_cv_prog_STRIP"
2950fi
2951
2469cfa2 2952fi
42ecbf5e
DJ
2953INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955# We need awk for the "check" target. The system "awk" is bad on
2956# some platforms.
2957# Always define AMTAR for backward compatibility.
2958
2959AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
2963
2964
2965
2966depcc="$CC" am_compiler_list=
2967
2968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974 # We make a subdir and do the tests there. Otherwise we can end up
2975 # making bogus files that we don't know about and never remove. For
2976 # instance it was reported that on HP-UX the gcc test will end up
2977 # making a dummy file named `D' -- because `-MD' means `put the output
2978 # in D'.
2979 mkdir conftest.dir
2980 # Copy depcomp to subdir because otherwise we won't find it if we're
2981 # using a relative directory.
2982 cp "$am_depcomp" conftest.dir
2983 cd conftest.dir
2984 # We will build objects and dependencies in a subdirectory because
2985 # it helps to detect inapplicable dependency modes. For instance
2986 # both Tru64's cc and ICC support -MD to output dependencies as a
2987 # side effect of compilation, but ICC will put the dependencies in
2988 # the current directory while Tru64 will put them in the object
2989 # directory.
2990 mkdir sub
2991
2992 am_cv_CC_dependencies_compiler_type=none
2993 if test "$am_compiler_list" = ""; then
2994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 fi
2996 for depmode in $am_compiler_list; do
2997 # Setup a source with many dependencies, because some compilers
2998 # like to wrap large dependency lists on column 80 (with \), and
2999 # we should not choose a depcomp mode which is confused by this.
3000 #
3001 # We need to recreate these files for each test, as the compiler may
3002 # overwrite some of them when testing with obscure command lines.
3003 # This happens at least with the AIX C compiler.
3004 : > sub/conftest.c
3005 for i in 1 2 3 4 5 6; do
3006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008 # Solaris 8's {/usr,}/bin/sh.
3009 touch sub/conftst$i.h
3010 done
3011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013 case $depmode in
3014 nosideeffect)
3015 # after this tag, mechanisms are not by side-effect, so they'll
3016 # only be used when explicitly requested
3017 if test "x$enable_dependency_tracking" = xyes; then
3018 continue
3019 else
3020 break
3021 fi
3022 ;;
3023 none) break ;;
3024 esac
3025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026 # mode. It turns out that the SunPro C++ compiler does not properly
3027 # handle `-M -o', and we need to detect this.
3028 if depmode=$depmode \
3029 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032 >/dev/null 2>conftest.err &&
3033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036 # icc doesn't choke on unknown options, it will just issue warnings
3037 # or remarks (even with -Werror). So we grep stderr for any message
3038 # that says an option was ignored or not supported.
3039 # When given -MP, icc 7.0 and 7.1 complain thusly:
3040 # icc: Command line warning: ignoring option '-M'; no argument required
3041 # The diagnosis changed in icc 8.0:
3042 # icc: Command line remark: option '-MP' not supported
3043 if (grep 'ignoring option' conftest.err ||
3044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045 am_cv_CC_dependencies_compiler_type=$depmode
3046 break
3047 fi
3048 fi
3049 done
2469cfa2 3050
42ecbf5e
DJ
3051 cd ..
3052 rm -rf conftest.dir
2469cfa2 3053else
42ecbf5e
DJ
3054 am_cv_CC_dependencies_compiler_type=none
3055fi
3056
2469cfa2 3057fi
42ecbf5e
DJ
3058echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
2469cfa2 3062
42ecbf5e
DJ
3063
3064if
3065 test "x$enable_dependency_tracking" != xno \
3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067 am__fastdepCC_TRUE=
3068 am__fastdepCC_FALSE='#'
2469cfa2 3069else
42ecbf5e
DJ
3070 am__fastdepCC_TRUE='#'
3071 am__fastdepCC_FALSE=
2469cfa2 3072fi
2469cfa2 3073
2469cfa2 3074
e5a52504 3075
42ecbf5e 3076
e5a52504
MM
3077# Check whether --enable-shared or --disable-shared was given.
3078if test "${enable_shared+set}" = set; then
3079 enableval="$enable_shared"
3080 p=${PACKAGE-default}
3081case $enableval in
3082yes) enable_shared=yes ;;
3083no) enable_shared=no ;;
3084*)
3085 enable_shared=no
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3090 enable_shared=yes
3091 fi
3092 done
3093 IFS="$ac_save_ifs"
3094 ;;
3095esac
2469cfa2 3096else
e5a52504 3097 enable_shared=yes
42ecbf5e 3098fi;
e5a52504
MM
3099# Check whether --enable-static or --disable-static was given.
3100if test "${enable_static+set}" = set; then
3101 enableval="$enable_static"
3102 p=${PACKAGE-default}
3103case $enableval in
3104yes) enable_static=yes ;;
3105no) enable_static=no ;;
3106*)
3107 enable_static=no
3108 # Look at the argument we got. We use all the common list separators.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110 for pkg in $enableval; do
3111 if test "X$pkg" = "X$p"; then
3112 enable_static=yes
3113 fi
3114 done
3115 IFS="$ac_save_ifs"
3116 ;;
3117esac
3118else
42ecbf5e
DJ
3119 enable_static=yes
3120fi;
3121# Check whether --enable-fast-install or --disable-fast-install was given.
3122if test "${enable_fast_install+set}" = set; then
3123 enableval="$enable_fast_install"
3124 p=${PACKAGE-default}
3125case $enableval in
3126yes) enable_fast_install=yes ;;
3127no) enable_fast_install=no ;;
3128*)
3129 enable_fast_install=no
3130 # Look at the argument we got. We use all the common list separators.
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3132 for pkg in $enableval; do
3133 if test "X$pkg" = "X$p"; then
3134 enable_fast_install=yes
d15b04bd
L
3135 fi
3136 done
3137 IFS="$ac_save_ifs"
42ecbf5e
DJ
3138 ;;
3139esac
d15b04bd 3140else
42ecbf5e
DJ
3141 enable_fast_install=yes
3142fi;
2469cfa2 3143
252b5132
RH
3144# Check whether --with-gnu-ld or --without-gnu-ld was given.
3145if test "${with_gnu_ld+set}" = set; then
3146 withval="$with_gnu_ld"
3147 test "$withval" = no || with_gnu_ld=yes
3148else
3149 with_gnu_ld=no
42ecbf5e 3150fi;
252b5132 3151ac_prog=ld
c7e40348 3152if test "$GCC" = yes; then
252b5132 3153 # Check if gcc -print-prog-name=ld gives a path.
42ecbf5e
DJ
3154 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3155echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3156 case $host in
3157 *-*-mingw*)
3158 # gcc leaves a trailing carriage return which upsets mingw
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 *)
3161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3162 esac
c7e40348 3163 case $ac_prog in
252b5132 3164 # Accept absolute paths.
a74801ba 3165 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3166 re_direlt='/[^/][^/]*/\.\./'
3167 # Canonicalize the path of ld
3168 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3170 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3171 done
3172 test -z "$LD" && LD="$ac_prog"
3173 ;;
3174 "")
3175 # If it fails, then pretend we aren't using GCC.
3176 ac_prog=ld
3177 ;;
3178 *)
3179 # If it is relative, then search for the first ld in PATH.
3180 with_gnu_ld=unknown
3181 ;;
3182 esac
3183elif test "$with_gnu_ld" = yes; then
42ecbf5e
DJ
3184 echo "$as_me:$LINENO: checking for GNU ld" >&5
3185echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3186else
42ecbf5e
DJ
3187 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3188echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3189fi
42ecbf5e
DJ
3190if test "${lt_cv_path_LD+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3192else
3193 if test -z "$LD"; then
a74801ba 3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3195 for ac_dir in $PATH; do
3196 test -z "$ac_dir" && ac_dir=.
a74801ba 3197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c7e40348 3198 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3199 # Check to see if the program is GNU ld. I'd rather use --version,
3200 # but apparently some GNU ld's only accept -v.
3201 # Break only if it was the GNU/non-GNU ld that we prefer.
c7e40348 3202 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3203 test "$with_gnu_ld" != no && break
3204 else
3205 test "$with_gnu_ld" != yes && break
3206 fi
3207 fi
3208 done
3209 IFS="$ac_save_ifs"
3210else
c7e40348 3211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3212fi
3213fi
3214
c7e40348 3215LD="$lt_cv_path_LD"
252b5132 3216if test -n "$LD"; then
42ecbf5e
DJ
3217 echo "$as_me:$LINENO: result: $LD" >&5
3218echo "${ECHO_T}$LD" >&6
252b5132 3219else
42ecbf5e
DJ
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
252b5132 3222fi
42ecbf5e
DJ
3223test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3224echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3225 { (exit 1); exit 1; }; }
3226echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3227echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3228if test "${lt_cv_prog_gnu_ld+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3230else
3231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3232if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c7e40348 3233 lt_cv_prog_gnu_ld=yes
252b5132 3234else
c7e40348 3235 lt_cv_prog_gnu_ld=no
252b5132
RH
3236fi
3237fi
42ecbf5e
DJ
3238echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3239echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c7e40348 3240with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3241
3242
42ecbf5e
DJ
3243echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3244echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3245if test "${lt_cv_ld_reload_flag+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3247else
3248 lt_cv_ld_reload_flag='-r'
3249fi
42ecbf5e
DJ
3250echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3251echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3252reload_flag=$lt_cv_ld_reload_flag
3253test -n "$reload_flag" && reload_flag=" $reload_flag"
3254
42ecbf5e
DJ
3255echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3256echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3257if test "${lt_cv_path_NM+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3259else
3260 if test -n "$NM"; then
3261 # Let the user override the test.
c7e40348 3262 lt_cv_path_NM="$NM"
252b5132 3263else
a74801ba 3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3265 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3266 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3267 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3268 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3269 # Check to see if the nm accepts a BSD-compat flag.
3270 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3271 # nm: unknown option "B" ignored
58cccadb
AO
3272 # Tru64's nm complains that /dev/null is an invalid object file
3273 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c7e40348 3274 lt_cv_path_NM="$tmp_nm -B"
252b5132 3275 break
ac48eca1 3276 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c7e40348 3277 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3278 break
3279 else
c7e40348 3280 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3281 continue # so that we can try to find one that supports BSD flags
3282 fi
3283 fi
3284 done
3285 IFS="$ac_save_ifs"
c7e40348 3286 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3287fi
3288fi
3289
c7e40348 3290NM="$lt_cv_path_NM"
42ecbf5e
DJ
3291echo "$as_me:$LINENO: result: $NM" >&5
3292echo "${ECHO_T}$NM" >&6
252b5132 3293
42ecbf5e
DJ
3294echo "$as_me:$LINENO: checking whether ln -s works" >&5
3295echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3296LN_S=$as_ln_s
3297if test "$LN_S" = "ln -s"; then
3298 echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6
d15b04bd 3300else
42ecbf5e
DJ
3301 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3302echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3303fi
3304
42ecbf5e
DJ
3305echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3306echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3307if test "${lt_cv_deplibs_check_method+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3309else
d64552c5 3310 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3311lt_cv_file_magic_test_file=
3312lt_cv_deplibs_check_method='unknown'
3313# Need to set the preceding variable on all platforms that support
3314# interlibrary dependencies.
3315# 'none' -- dependencies not supported.
3316# `unknown' -- same as none, but documents that we really don't know.
3317# 'pass_all' -- all dependencies passed with no checks.
3318# 'test_compile' -- check by making test program.
3319# 'file_magic [regex]' -- check by looking for files in library path
3320# which responds to the $file_magic_cmd with a given egrep regex.
3321# If you have `file' or equivalent on your system and you're not sure
3322# whether `pass_all' will *always* work, you probably want this one.
3323
c7e40348
NC
3324case $host_os in
3325aix*)
ac48eca1
AO
3326 lt_cv_deplibs_check_method=pass_all
3327 ;;
3328
3329beos*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
3333bsdi4*)
c7e40348
NC
3334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3335 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3336 lt_cv_file_magic_test_file=/shlib/libc.so
3337 ;;
3338
d64552c5 3339cygwin* | mingw* |pw32*)
ac48eca1 3340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3341 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3342 ;;
3343
c7e40348
NC
3344darwin* | rhapsody*)
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 ;;
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 ;;
3354 esac
3355 ;;
3356
e5a52504 3357freebsd* | kfreebsd*-gnu)
ac48eca1 3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c7e40348 3359 case $host_cpu in
ac48eca1 3360 i*86 )
58cccadb
AO
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
c7e40348
NC
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 ;;
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3370 fi
3371 ;;
3372
3373gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
c7e40348 3377hpux10.20*|hpux11*)
4867be41
DJ
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ;;
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 ;;
3389 esac
ac48eca1
AO
3390 ;;
3391
3392irix5* | irix6*)
c7e40348 3393 case $host_os in
ac48eca1
AO
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 ;;
3398 *)
c7e40348 3399 case $LD in
ac48eca1
AO
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
c7e40348
NC
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 ;;
ac48eca1
AO
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3411 ;;
3412
3413# This must be Linux ELF.
58cccadb 3414linux-gnu*)
c7e40348 3415 case $host_cpu in
8d9cd6b1 3416 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3417 lt_cv_deplibs_check_method=pass_all ;;
3418 *)
3419 # glibc up to 2.1.1 does not perform some relocations on ARM
c7e40348
NC
3420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3421 esac
ac48eca1
AO
3422 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3423 ;;
3424
e5a52504 3425netbsd* | knetbsd*-gnu)
c7e40348
NC
3426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3427 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3428 else
c7e40348 3429 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3430 fi
3431 ;;
3432
c7e40348
NC
3433newsos6)
3434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3435 lt_cv_file_magic_cmd=/usr/bin/file
3436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3437 ;;
3438
ac48eca1
AO
3439osf3* | osf4* | osf5*)
3440 # this will be overridden with pass_all, but let us keep it just in case
3441 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3442 lt_cv_file_magic_test_file=/shlib/libc.so
3443 lt_cv_deplibs_check_method=pass_all
3444 ;;
3445
3446sco3.2v5*)
3447 lt_cv_deplibs_check_method=pass_all
3448 ;;
3449
3450solaris*)
3451 lt_cv_deplibs_check_method=pass_all
3452 lt_cv_file_magic_test_file=/lib/libc.so
3453 ;;
3454
6be7c12c
AO
3455sysv5uw[78]* | sysv4*uw2*)
3456 lt_cv_deplibs_check_method=pass_all
3457 ;;
3458
ac48eca1 3459sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c7e40348 3460 case $host_vendor in
ac48eca1
AO
3461 ncr)
3462 lt_cv_deplibs_check_method=pass_all
3463 ;;
3464 motorola)
c7e40348
NC
3465 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]'
3466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3467 ;;
3468 esac
3469 ;;
3470esac
3471
3472fi
42ecbf5e
DJ
3473echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3474echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3475file_magic_cmd=$lt_cv_file_magic_cmd
3476deplibs_check_method=$lt_cv_deplibs_check_method
3477
d15b04bd
L
3478
3479
ac48eca1
AO
3480
3481# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3482
3483# Only perform the check for file, if the check method requires it
c7e40348 3484case $deplibs_check_method in
ac48eca1 3485file_magic*)
d64552c5 3486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
42ecbf5e
DJ
3487 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3488echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3489if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3491else
c7e40348 3492 case $MAGIC_CMD in
ac48eca1 3493 /*)
d64552c5 3494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3495 ;;
3496 ?:/*)
d64552c5 3497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3498 ;;
3499 *)
d64552c5 3500 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 ac_dummy="/usr/bin:$PATH"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3507 if test -n "$file_magic_test_file"; then
c7e40348 3508 case $deplibs_check_method in
ac48eca1
AO
3509 "file_magic "*)
3510 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3513 egrep "$file_magic_regex" > /dev/null; then
3514 :
3515 else
3516 cat <<EOF 1>&2
3517
3518*** Warning: the command libtool uses to detect shared libraries,
3519*** $file_magic_cmd, produces output that libtool cannot recognize.
3520*** The result is that libtool may fail to recognize shared libraries
3521*** as such. This will affect the creation of libtool libraries that
3522*** depend on shared libraries, but programs linked with such libtool
3523*** libraries will work regardless of this problem. Nevertheless, you
3524*** may want to report the problem to your system manager and/or to
3525*** bug-libtool@gnu.org
3526
3527EOF
3528 fi ;;
3529 esac
3530 fi
3531 break
3532 fi
3533 done
3534 IFS="$ac_save_ifs"
d64552c5 3535 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3536 ;;
3537esac
3538fi
3539
d64552c5
AO
3540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3541if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3543echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3544else
42ecbf5e
DJ
3545 echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
ac48eca1
AO
3547fi
3548
d64552c5 3549if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3550 if test -n "$ac_tool_prefix"; then
42ecbf5e
DJ
3551 echo "$as_me:$LINENO: checking for file" >&5
3552echo $ECHO_N "checking for file... $ECHO_C" >&6
3553if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3555else
c7e40348 3556 case $MAGIC_CMD in
ac48eca1 3557 /*)
d64552c5 3558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3559 ;;
3560 ?:/*)
d64552c5 3561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3562 ;;
3563 *)
d64552c5 3564 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3566 ac_dummy="/usr/bin:$PATH"
3567 for ac_dir in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir=.
3569 if test -f $ac_dir/file; then
d64552c5 3570 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3571 if test -n "$file_magic_test_file"; then
c7e40348 3572 case $deplibs_check_method in
ac48eca1
AO
3573 "file_magic "*)
3574 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3577 egrep "$file_magic_regex" > /dev/null; then
3578 :
3579 else
3580 cat <<EOF 1>&2
3581
3582*** Warning: the command libtool uses to detect shared libraries,
3583*** $file_magic_cmd, produces output that libtool cannot recognize.
3584*** The result is that libtool may fail to recognize shared libraries
3585*** as such. This will affect the creation of libtool libraries that
3586*** depend on shared libraries, but programs linked with such libtool
3587*** libraries will work regardless of this problem. Nevertheless, you
3588*** may want to report the problem to your system manager and/or to
3589*** bug-libtool@gnu.org
3590
3591EOF
3592 fi ;;
3593 esac
3594 fi
3595 break
3596 fi
3597 done
3598 IFS="$ac_save_ifs"
d64552c5 3599 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3600 ;;
3601esac
3602fi
3603
d64552c5
AO
3604MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3605if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3606 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3607echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3608else
42ecbf5e
DJ
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
ac48eca1
AO
3611fi
3612
3613 else
d64552c5 3614 MAGIC_CMD=:
ac48eca1
AO
3615 fi
3616fi
252b5132 3617
ac48eca1
AO
3618 fi
3619 ;;
a74801ba 3620esac
252b5132 3621
42ecbf5e
DJ
3622if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42ecbf5e
DJ
3625echo "$as_me:$LINENO: checking for $ac_word" >&5
3626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627if test "${ac_cv_prog_RANLIB+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3629else
3630 if test -n "$RANLIB"; then
3631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3632else
42ecbf5e
DJ
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644done
3645done
3646
ac48eca1
AO
3647fi
3648fi
42ecbf5e 3649RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3650if test -n "$RANLIB"; then
42ecbf5e
DJ
3651 echo "$as_me:$LINENO: result: $RANLIB" >&5
3652echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3653else
42ecbf5e
DJ
3654 echo "$as_me:$LINENO: result: no" >&5
3655echo "${ECHO_T}no" >&6
ac48eca1
AO
3656fi
3657
42ecbf5e 3658fi
ac48eca1 3659if test -z "$ac_cv_prog_RANLIB"; then
42ecbf5e 3660 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3661 # Extract the first word of "ranlib", so it can be a program name with args.
3662set dummy ranlib; ac_word=$2
42ecbf5e
DJ
3663echo "$as_me:$LINENO: checking for $ac_word" >&5
3664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3667else
42ecbf5e
DJ
3668 if test -n "$ac_ct_RANLIB"; then
3669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3670else
42ecbf5e
DJ
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_ac_ct_RANLIB="ranlib"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682done
3683done
3684
3685 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3686fi
3687fi
42ecbf5e
DJ
3688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3689if test -n "$ac_ct_RANLIB"; then
3690 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3691echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3692else
42ecbf5e
DJ
3693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
ac48eca1
AO
3695fi
3696
42ecbf5e 3697 RANLIB=$ac_ct_RANLIB
ac48eca1 3698else
42ecbf5e 3699 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3700fi
3701
42ecbf5e
DJ
3702if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3704set dummy ${ac_tool_prefix}strip; ac_word=$2
42ecbf5e
DJ
3705echo "$as_me:$LINENO: checking for $ac_word" >&5
3706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707if test "${ac_cv_prog_STRIP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3709else
3710 if test -n "$STRIP"; then
3711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3712else
42ecbf5e
DJ
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3723 fi
3724done
3725done
3726
ac48eca1
AO
3727fi
3728fi
42ecbf5e 3729STRIP=$ac_cv_prog_STRIP
ac48eca1 3730if test -n "$STRIP"; then
42ecbf5e
DJ
3731 echo "$as_me:$LINENO: result: $STRIP" >&5
3732echo "${ECHO_T}$STRIP" >&6
ac48eca1 3733else
42ecbf5e
DJ
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
ac48eca1
AO
3736fi
3737
42ecbf5e 3738fi
ac48eca1 3739if test -z "$ac_cv_prog_STRIP"; then
42ecbf5e 3740 ac_ct_STRIP=$STRIP
ac48eca1
AO
3741 # Extract the first word of "strip", so it can be a program name with args.
3742set dummy strip; ac_word=$2
42ecbf5e
DJ
3743echo "$as_me:$LINENO: checking for $ac_word" >&5
3744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3745if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3747else
42ecbf5e
DJ
3748 if test -n "$ac_ct_STRIP"; then
3749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3750else
42ecbf5e
DJ
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_STRIP="strip"
3759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762done
3763done
3764
3765 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3766fi
3767fi
42ecbf5e
DJ
3768ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3769if test -n "$ac_ct_STRIP"; then
3770 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3771echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3772else
42ecbf5e
DJ
3773 echo "$as_me:$LINENO: result: no" >&5
3774echo "${ECHO_T}no" >&6
ac48eca1
AO
3775fi
3776
42ecbf5e 3777 STRIP=$ac_ct_STRIP
ac48eca1 3778else
42ecbf5e 3779 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3780fi
3781
3782
252b5132
RH
3783# Check for any special flags to pass to ltconfig.
3784libtool_flags="--cache-file=$cache_file"
3785test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3786test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3787test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c7e40348
NC
3788test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3789test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3790
a74801ba
ILT
3791
3792# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3793if test "${enable_libtool_lock+set}" = set; then
3794 enableval="$enable_libtool_lock"
a74801ba 3795
42ecbf5e 3796fi;
a74801ba
ILT
3797test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3798test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3799
42ecbf5e 3800
ac48eca1
AO
3801# Check whether --with-pic or --without-pic was given.
3802if test "${with_pic+set}" = set; then
3803 withval="$with_pic"
3804 pic_mode="$withval"
3805else
3806 pic_mode=default
42ecbf5e 3807fi;
ac48eca1
AO
3808test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3809test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3810
252b5132
RH
3811# Some flags need to be propagated to the compiler or linker for good
3812# libtool support.
c7e40348 3813case $host in
252b5132
RH
3814*-*-irix6*)
3815 # Find out which ABI we are using.
502bdb00 3816 echo '#line 3816 "configure"' > conftest.$ac_ext
42ecbf5e
DJ
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; then
715d1656
AO
3822 if test "$lt_cv_prog_gnu_ld" = yes; then
3823 case `/usr/bin/file conftest.$ac_objext` in
3824 *32-bit*)
3825 LD="${LD-ld} -melf32bsmip"
3826 ;;
3827 *N32*)
3828 LD="${LD-ld} -melf32bmipn32"
3829 ;;
3830 *64-bit*)
3831 LD="${LD-ld} -melf64bmip"
3832 ;;
3833 esac
3834 else
c7e40348 3835 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3836 *32-bit*)
3837 LD="${LD-ld} -32"
3838 ;;
3839 *N32*)
3840 LD="${LD-ld} -n32"
3841 ;;
3842 *64-bit*)
3843 LD="${LD-ld} -64"
3844 ;;
3845 esac
715d1656 3846 fi
252b5132
RH
3847 fi
3848 rm -rf conftest*
3849 ;;
3850
4867be41
DJ
3851ia64-*-hpux*)
3852 # Find out which ABI we are using.
3853 echo 'int i;' > conftest.$ac_ext
42ecbf5e
DJ
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; then
4867be41
DJ
3859 case "`/usr/bin/file conftest.o`" in
3860 *ELF-32*)
3861 HPUX_IA64_MODE="32"
3862 ;;
3863 *ELF-64*)
3864 HPUX_IA64_MODE="64"
3865 ;;
3866 esac
3867 fi
3868 rm -rf conftest*
3869 ;;
3870
252b5132
RH
3871*-*-sco3.2v5*)
3872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3873 SAVE_CFLAGS="$CFLAGS"
3874 CFLAGS="$CFLAGS -belf"
42ecbf5e
DJ
3875 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3876echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3877if test "${lt_cv_cc_needs_belf+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3879else
42ecbf5e
DJ
3880
3881
ac48eca1 3882 ac_ext=c
ac48eca1 3883ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3887
42ecbf5e
DJ
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
252b5132 3894
42ecbf5e
DJ
3895int
3896main ()
3897{
252b5132 3898
42ecbf5e
DJ
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905 (eval $ac_link) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
502bdb00
JW
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
42ecbf5e
DJ
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest$ac_exeext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
252b5132
RH
3925 lt_cv_cc_needs_belf=yes
3926else
42ecbf5e
DJ
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930lt_cv_cc_needs_belf=no
252b5132 3931fi
42ecbf5e
DJ
3932rm -f conftest.err conftest.$ac_objext \
3933 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3934 ac_ext=c
ac48eca1 3935ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3939
252b5132 3940fi
42ecbf5e
DJ
3941echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3942echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
3943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3945 CFLAGS="$SAVE_CFLAGS"
3946 fi
3947 ;;
3948
252b5132
RH
3949
3950esac
3951
252b5132
RH
3952
3953# Save cache, so that ltconfig can load it
42ecbf5e 3954cat >confcache <<\_ACEOF
252b5132
RH
3955# This file is a shell script that caches the results of configure
3956# tests run on this system so they can be shared between configure
42ecbf5e
DJ
3957# scripts and configure runs, see configure's option --config-cache.
3958# It is not useful on other systems. If it contains results you don't
3959# want to keep, you may remove or edit it.
252b5132 3960#
42ecbf5e
DJ
3961# config.status only pays attention to the cache file if you give it
3962# the --recheck option to rerun configure.
252b5132 3963#
42ecbf5e
DJ
3964# `ac_cv_env_foo' variables (set or unset) will be overridden when
3965# loading this file, other *unset* `ac_cv_foo' will be assigned the
3966# following values.
3967
3968_ACEOF
3969
252b5132
RH
3970# The following way of writing the cache mishandles newlines in values,
3971# but we know of no workaround that is simple, portable, and efficient.
3972# So, don't put newlines in cache variables' values.
3973# Ultrix sh set writes to stderr and can't be redirected directly,
3974# and sets the high bit in the cache file unless we assign to the vars.
42ecbf5e
DJ
3975{
3976 (set) 2>&1 |
3977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3978 *ac_space=\ *)
3979 # `set' does not quote correctly, so add quotes (double-quote
3980 # substitution turns \\\\ into \\, and sed turns \\ into \).
3981 sed -n \
3982 "s/'/'\\\\''/g;
3983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3984 ;;
3985 *)
3986 # `set' quotes correctly as required by POSIX, so do not add quotes.
3987 sed -n \
3988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3989 ;;
3990 esac;
3991} |
3992 sed '
3993 t clear
3994 : clear
3995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3996 t end
3997 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3998 : end' >>confcache
3999if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 4000 if test -w $cache_file; then
42ecbf5e
DJ
4001 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4002 cat confcache >$cache_file
252b5132
RH
4003 else
4004 echo "not updating unwritable cache $cache_file"
4005 fi
4006fi
4007rm -f confcache
4008
252b5132 4009# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4010AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4011MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4012LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4013AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4014objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4015deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4016${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4017$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
42ecbf5e
DJ
4018|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4019echo "$as_me: error: libtool configure failed" >&2;}
4020 { (exit 1); exit 1; }; }
252b5132
RH
4021
4022# Reload cache, that may have been modified by ltconfig
4023if test -r "$cache_file"; then
42ecbf5e
DJ
4024 # Some versions of bash will fail to source /dev/null (special
4025 # files actually), so we avoid doing that.
4026 if test -f "$cache_file"; then
4027 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4028echo "$as_me: loading cache $cache_file" >&6;}
4029 case $cache_file in
4030 [\\/]* | ?:[\\/]* ) . $cache_file;;
4031 *) . ./$cache_file;;
4032 esac
4033 fi
252b5132 4034else
42ecbf5e
DJ
4035 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4036echo "$as_me: creating cache $cache_file" >&6;}
4037 >$cache_file
252b5132
RH
4038fi
4039
4040
4041# This can be used to rebuild libtool when needed
ac48eca1 4042LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4043
4044# Always use our own libtool.
4045LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4046
4047# Redirect the config.log output again, so that the ltconfig log is not
4048# clobbered by the next message.
4049exec 5>>./config.log
4050
ac48eca1 4051
42ecbf5e
DJ
4052
4053
4054
4055
4056
ac48eca1 4057
8e523c23
NC
4058# Check whether --with-lib-path or --without-lib-path was given.
4059if test "${with_lib_path+set}" = set; then
4060 withval="$with_lib_path"
4061 LIB_PATH=$withval
42ecbf5e 4062fi;
252b5132
RH
4063# Check whether --enable-targets or --disable-targets was given.
4064if test "${enable_targets+set}" = set; then
4065 enableval="$enable_targets"
4066 case "${enableval}" in
42ecbf5e
DJ
4067 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4068echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4069 { (exit 1); exit 1; }; }
252b5132
RH
4070 ;;
4071 no) enable_targets= ;;
4072 *) enable_targets=$enableval ;;
4073esac
42ecbf5e 4074fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
252b5132
RH
4075if test "${enable_64_bit_bfd+set}" = set; then
4076 enableval="$enable_64_bit_bfd"
4077 case "${enableval}" in
4078 yes) want64=true ;;
4079 no) want64=false ;;
42ecbf5e
DJ
4080 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4081echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4082 { (exit 1); exit 1; }; } ;;
252b5132
RH
4083esac
4084else
4085 want64=false
42ecbf5e 4086fi;
252b5132 4087
9c8ebd6a
DJ
4088# Check whether --with-sysroot or --without-sysroot was given.
4089if test "${with_sysroot+set}" = set; then
4090 withval="$with_sysroot"
42ecbf5e 4091
9c8ebd6a 4092 case ${with_sysroot} in
715d1656 4093 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9c8ebd6a
DJ
4094 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4095 esac
4096
4097 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4098 use_sysroot=yes
4099
4100 if test "x$exec_prefix" = xNONE; then
4101 if test "x$prefix" = xNONE; then
4102 test_prefix=/usr/local
4103 else
4104 test_prefix=$prefix
4105 fi
4106 else
4107 test_prefix=$exec_prefix
4108 fi
4109 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
4110 "${test_prefix}"|"${test_prefix}/"*|\
4111 '${exec_prefix}'|'${exec_prefix}/'*)
9c8ebd6a
DJ
4112 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4113 TARGET_SYSTEM_ROOT_DEFINE="$t"
4114 ;;
4115 esac
4116
4117else
42ecbf5e 4118
9c8ebd6a
DJ
4119 use_sysroot=no
4120 TARGET_SYSTEM_ROOT=
4121 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4122
42ecbf5e 4123fi;
9c8ebd6a
DJ
4124
4125
4126
4127
502bdb00 4128
9e9b66a9 4129WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4130
569acd2c
NC
4131# Check whether --enable-werror or --disable-werror was given.
4132if test "${enable_werror+set}" = set; then
4133 enableval="$enable_werror"
1ad12f97
NC
4134 case "${enableval}" in
4135 yes | y) ERROR_ON_WARNING="yes" ;;
4136 no | n) ERROR_ON_WARNING="no" ;;
42ecbf5e
DJ
4137 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4138echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4139 { (exit 1); exit 1; }; } ;;
1ad12f97 4140 esac
42ecbf5e 4141fi;
1ad12f97 4142
9e9b66a9
AM
4143# Enable -Werror by default when using gcc
4144if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4145 ERROR_ON_WARNING=yes
1ad12f97 4146fi
569acd2c 4147
9e9b66a9
AM
4148NO_WERROR=
4149if test "${ERROR_ON_WARNING}" = yes ; then
4150 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4151 NO_WERROR="-Wno-error"
4152fi
42ecbf5e 4153
a2d91340
AC
4154# Check whether --enable-build-warnings or --disable-build-warnings was given.
4155if test "${enable_build_warnings+set}" = set; then
4156 enableval="$enable_build_warnings"
4157 case "${enableval}" in
4158 yes) ;;
9e9b66a9 4159 no) WARN_CFLAGS="-w";;
a2d91340 4160 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4161 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4162 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4163 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4164 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4165esac
42ecbf5e 4166fi;
9e9b66a9
AM
4167
4168if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4169 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d15b04bd 4170fi
9e9b66a9
AM
4171
4172
a2d91340
AC
4173
4174
502bdb00 4175
42ecbf5e
DJ
4176 ac_config_headers="$ac_config_headers config.h:config.in"
4177
252b5132 4178
42ecbf5e
DJ
4179if test -z "$target" ; then
4180 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4181echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4182 { (exit 1); exit 1; }; }
4183fi
4184if test -z "$host" ; then
4185 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4186echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4187 { (exit 1); exit 1; }; }
4188fi
4189
4190# host-specific stuff:
4191
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4199set dummy ${ac_tool_prefix}gcc; ac_word=$2
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202if test "${ac_cv_prog_CC+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
252b5132 4221
42ecbf5e
DJ
4222fi
4223fi
4224CC=$ac_cv_prog_CC
4225if test -n "$CC"; then
4226 echo "$as_me:$LINENO: result: $CC" >&5
4227echo "${ECHO_T}$CC" >&6
4228else
4229 echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
e5a52504 4232
42ecbf5e
DJ
4233fi
4234if test -z "$ac_cv_prog_CC"; then
4235 ac_ct_CC=$CC
4236 # Extract the first word of "gcc", so it can be a program name with args.
4237set dummy gcc; ac_word=$2
4238echo "$as_me:$LINENO: checking for $ac_word" >&5
4239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 if test -n "$ac_ct_CC"; then
4244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_ac_ct_CC="gcc"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257done
4258done
d15b04bd 4259
252b5132 4260fi
42ecbf5e
DJ
4261fi
4262ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263if test -n "$ac_ct_CC"; then
4264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4265echo "${ECHO_T}$ac_ct_CC" >&6
4266else
4267 echo "$as_me:$LINENO: result: no" >&5
4268echo "${ECHO_T}no" >&6
e5a52504
MM
4269fi
4270
42ecbf5e
DJ
4271 CC=$ac_ct_CC
4272else
4273 CC="$ac_cv_prog_CC"
4274fi
d15b04bd 4275
42ecbf5e
DJ
4276if test -z "$CC"; then
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4279set dummy ${ac_tool_prefix}cc; ac_word=$2
4280echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282if test "${ac_cv_prog_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 4284else
d15b04bd
L
4285 if test -n "$CC"; then
4286 ac_cv_prog_CC="$CC" # Let the user override the test.
e5a52504 4287else
42ecbf5e
DJ
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_CC="${ac_tool_prefix}cc"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301
e5a52504 4302fi
e5a52504 4303fi
42ecbf5e 4304CC=$ac_cv_prog_CC
d15b04bd 4305if test -n "$CC"; then
42ecbf5e
DJ
4306 echo "$as_me:$LINENO: result: $CC" >&5
4307echo "${ECHO_T}$CC" >&6
4308else
4309 echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311fi
4312
4313fi
4314if test -z "$ac_cv_prog_CC"; then
4315 ac_ct_CC=$CC
4316 # Extract the first word of "cc", so it can be a program name with args.
4317set dummy cc; ac_word=$2
4318echo "$as_me:$LINENO: checking for $ac_word" >&5
4319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325else
4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_CC="cc"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337done
4338done
4339
4340fi
4341fi
4342ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343if test -n "$ac_ct_CC"; then
4344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4345echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4346else
42ecbf5e
DJ
4347 echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
252b5132
RH
4349fi
4350
42ecbf5e
DJ
4351 CC=$ac_ct_CC
4352else
4353 CC="$ac_cv_prog_CC"
4354fi
4355
4356fi
252b5132
RH
4357if test -z "$CC"; then
4358 # Extract the first word of "cc", so it can be a program name with args.
4359set dummy cc; ac_word=$2
42ecbf5e
DJ
4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362if test "${ac_cv_prog_CC+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4364else
4365 if test -n "$CC"; then
4366 ac_cv_prog_CC="$CC" # Let the user override the test.
4367else
252b5132 4368 ac_prog_rejected=no
42ecbf5e
DJ
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4377 ac_prog_rejected=yes
4378 continue
4379 fi
4380 ac_cv_prog_CC="cc"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386
252b5132
RH
4387if test $ac_prog_rejected = yes; then
4388 # We found a bogon in the path, so make sure we never use it.
4389 set dummy $ac_cv_prog_CC
4390 shift
42ecbf5e 4391 if test $# != 0; then
252b5132
RH
4392 # We chose a different compiler from the bogus one.
4393 # However, it has the same basename, so the bogon will be chosen
4394 # first if we set CC to just the basename; use the full file name.
4395 shift
42ecbf5e 4396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
4397 fi
4398fi
4399fi
4400fi
42ecbf5e 4401CC=$ac_cv_prog_CC
252b5132 4402if test -n "$CC"; then
42ecbf5e
DJ
4403 echo "$as_me:$LINENO: result: $CC" >&5
4404echo "${ECHO_T}$CC" >&6
252b5132 4405else
42ecbf5e
DJ
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
252b5132
RH
4408fi
4409
42ecbf5e
DJ
4410fi
4411if test -z "$CC"; then
4412 if test -n "$ac_tool_prefix"; then
4413 for ac_prog in cl
4414 do
4415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4417echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419if test "${ac_cv_prog_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4421else
4422 if test -n "$CC"; then
4423 ac_cv_prog_CC="$CC" # Let the user override the test.
4424else
42ecbf5e
DJ
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4435 fi
4436done
4437done
4438
252b5132
RH
4439fi
4440fi
42ecbf5e 4441CC=$ac_cv_prog_CC
252b5132 4442if test -n "$CC"; then
42ecbf5e
DJ
4443 echo "$as_me:$LINENO: result: $CC" >&5
4444echo "${ECHO_T}$CC" >&6
252b5132 4445else
42ecbf5e
DJ
4446 echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6
e5a52504 4448fi
d15b04bd 4449
42ecbf5e
DJ
4450 test -n "$CC" && break
4451 done
4452fi
4453if test -z "$CC"; then
4454 ac_ct_CC=$CC
4455 for ac_prog in cl
4456do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
4459echo "$as_me:$LINENO: checking for $ac_word" >&5
4460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464 if test -n "$ac_ct_CC"; then
4465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_ac_ct_CC="$ac_prog"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
d15b04bd 4477 fi
42ecbf5e
DJ
4478done
4479done
4480
4481fi
4482fi
4483ac_ct_CC=$ac_cv_prog_ac_ct_CC
4484if test -n "$ac_ct_CC"; then
4485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4486echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4487else
42ecbf5e
DJ
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
252b5132 4490fi
252b5132 4491
42ecbf5e
DJ
4492 test -n "$ac_ct_CC" && break
4493done
e5a52504 4494
42ecbf5e
DJ
4495 CC=$ac_ct_CC
4496fi
4497
4498fi
4499
4500
4501test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4502See \`config.log' for more details." >&5
4503echo "$as_me: error: no acceptable C compiler found in \$PATH
4504See \`config.log' for more details." >&2;}
4505 { (exit 1); exit 1; }; }
4506
4507# Provide some information about the compiler.
4508echo "$as_me:$LINENO:" \
4509 "checking for C compiler version" >&5
4510ac_compiler=`set X $ac_compile; echo $2`
4511{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4512 (eval $ac_compiler --version </dev/null >&5) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }
4516{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4517 (eval $ac_compiler -v </dev/null >&5) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }
4521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4522 (eval $ac_compiler -V </dev/null >&5) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }
4526
4527echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4528echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4529if test "${ac_cv_c_compiler_gnu+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538
4539int
4540main ()
4541{
4542#ifndef __GNUC__
4543 choke me
252b5132 4544#endif
252b5132 4545
42ecbf5e
DJ
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest.$ac_objext
4551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552 (eval $ac_compile) 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
502bdb00
JW
4559 { ac_try='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
42ecbf5e
DJ
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 ac_compiler_gnu=yes
4573else
4574 echo "$as_me: failed program was:" >&5
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
4577ac_compiler_gnu=no
4578fi
4579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580ac_cv_c_compiler_gnu=$ac_compiler_gnu
4581
4582fi
4583echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4584echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4585GCC=`test $ac_compiler_gnu = yes && echo yes`
4586ac_test_CFLAGS=${CFLAGS+set}
4587ac_save_CFLAGS=$CFLAGS
4588CFLAGS="-g"
4589echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4591if test "${ac_cv_prog_cc_g+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594 cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
252b5132 4600
42ecbf5e
DJ
4601int
4602main ()
4603{
252b5132 4604
42ecbf5e
DJ
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
502bdb00
JW
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
42ecbf5e
DJ
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
252b5132
RH
4631 ac_cv_prog_cc_g=yes
4632else
42ecbf5e
DJ
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
d15b04bd 4635
42ecbf5e 4636ac_cv_prog_cc_g=no
e5a52504 4637fi
42ecbf5e
DJ
4638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639fi
4640echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4641echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 4642if test "$ac_test_CFLAGS" = set; then
42ecbf5e 4643 CFLAGS=$ac_save_CFLAGS
252b5132
RH
4644elif test $ac_cv_prog_cc_g = yes; then
4645 if test "$GCC" = yes; then
4646 CFLAGS="-g -O2"
4647 else
4648 CFLAGS="-g"
4649 fi
4650else
4651 if test "$GCC" = yes; then
4652 CFLAGS="-O2"
4653 else
4654 CFLAGS=
4655 fi
4656fi
42ecbf5e
DJ
4657echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4658echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4659if test "${ac_cv_prog_cc_stdc+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662 ac_cv_prog_cc_stdc=no
4663ac_save_CC=$CC
4664cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670#include <stdarg.h>
4671#include <stdio.h>
4672#include <sys/types.h>
4673#include <sys/stat.h>
4674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4675struct buf { int x; };
4676FILE * (*rcsopen) (struct buf *, struct stat *, int);
4677static char *e (p, i)
4678 char **p;
4679 int i;
4680{
4681 return p[i];
4682}
4683static char *f (char * (*g) (char **, int), char **p, ...)
4684{
4685 char *s;
4686 va_list v;
4687 va_start (v,p);
4688 s = g (p, va_arg (v,int));
4689 va_end (v);
4690 return s;
4691}
4692
4693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4694 function prototypes and stuff, but not '\xHH' hex character constants.
4695 These don't provoke an error unfortunately, instead are silently treated
4696 as 'x'. The following induces an error, until -std1 is added to get
4697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4698 array size at least. It's necessary to write '\x00'==0 to get something
4699 that's true only with -std1. */
4700int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701
4702int test (int i, double x);
4703struct s1 {int (*f) (int a);};
4704struct s2 {int (*f) (double a);};
4705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4706int argc;
4707char **argv;
4708int
4709main ()
4710{
4711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4712 ;
4713 return 0;
4714}
4715_ACEOF
4716# Don't try gcc -ansi; that turns off useful extensions and
4717# breaks some systems' header files.
4718# AIX -qlanglvl=ansi
4719# Ultrix and OSF/1 -std1
4720# HP-UX 10.20 and later -Ae
4721# HP-UX older versions -Aa -D_HPUX_SOURCE
4722# SVR4 -Xc -D__EXTENSIONS__
4723for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724do
4725 CC="$ac_save_CC $ac_arg"
4726 rm -f conftest.$ac_objext
4727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
502bdb00
JW
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
42ecbf5e
DJ
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_prog_cc_stdc=$ac_arg
4749break
4750else
4751 echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754fi
4755rm -f conftest.err conftest.$ac_objext
4756done
4757rm -f conftest.$ac_ext conftest.$ac_objext
4758CC=$ac_save_CC
4759
4760fi
4761
4762case "x$ac_cv_prog_cc_stdc" in
4763 x|xno)
4764 echo "$as_me:$LINENO: result: none needed" >&5
4765echo "${ECHO_T}none needed" >&6 ;;
4766 *)
4767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4768echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4769 CC="$CC $ac_cv_prog_cc_stdc" ;;
4770esac
4771
4772# Some people use a C++ compiler to compile C. Since we use `exit',
4773# in C++ we need to declare it. In case someone uses the same compiler
4774# for both compiling C and C++ we need to have the C++ compiler decide
4775# the declaration of exit, since it's the most demanding environment.
4776cat >conftest.$ac_ext <<_ACEOF
4777#ifndef __cplusplus
4778 choke me
4779#endif
4780_ACEOF
4781rm -f conftest.$ac_objext
4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
502bdb00
JW
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
42ecbf5e
DJ
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 for ac_declaration in \
4804 '' \
4805 'extern "C" void std::exit (int) throw (); using std::exit;' \
4806 'extern "C" void std::exit (int); using std::exit;' \
4807 'extern "C" void exit (int) throw ();' \
4808 'extern "C" void exit (int);' \
4809 'void exit (int);'
4810do
4811 cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817$ac_declaration
4818#include <stdlib.h>
4819int
4820main ()
4821{
4822exit (42);
4823 ;
4824 return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext
4828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
502bdb00
JW
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
42ecbf5e
DJ
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 :
4850else
4851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854continue
4855fi
4856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863$ac_declaration
4864int
4865main ()
4866{
4867exit (42);
4868 ;
4869 return 0;
4870}
4871_ACEOF
4872rm -f conftest.$ac_objext
4873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
502bdb00
JW
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
42ecbf5e
DJ
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest.$ac_objext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 break
4895else
4896 echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899fi
4900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901done
4902rm -f conftest*
4903if test -n "$ac_declaration"; then
4904 echo '#ifdef __cplusplus' >>confdefs.h
4905 echo $ac_declaration >>confdefs.h
4906 echo '#endif' >>confdefs.h
4907fi
4908
4909else
4910 echo "$as_me: failed program was:" >&5
4911sed 's/^/| /' conftest.$ac_ext >&5
4912
4913fi
4914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915ac_ext=c
4916ac_cpp='$CPP $CPPFLAGS'
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
4920
4921# Find a good install program. We prefer a C program (faster),
4922# so one script is as good as another. But avoid the broken or
4923# incompatible versions:
4924# SysV /etc/install, /usr/sbin/install
4925# SunOS /usr/etc/install
4926# IRIX /sbin/install
4927# AIX /bin/install
42ecbf5e 4928# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
4929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 4932# OS/2's system install, which has a completely different semantic
252b5132 4933# ./install, which can be erroneously created by make from ./install.sh.
42ecbf5e
DJ
4934echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4935echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 4936if test -z "$INSTALL"; then
42ecbf5e
DJ
4937if test "${ac_cv_path_install+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4939else
42ecbf5e
DJ
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 # Account for people who put trailing slashes in PATH elements.
4946case $as_dir/ in
4947 ./ | .// | /cC/* | \
4948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4950 /usr/ucb/* ) ;;
4951 *)
4952 # OSF1 and SCO ODT 3.0 have their own names for install.
4953 # Don't use installbsd from OSF since it installs stuff as root
4954 # by default.
4955 for ac_prog in ginstall scoinst install; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 4958 if test $ac_prog = install &&
42ecbf5e 4959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
4960 # AIX install. It has an incompatible calling convention.
4961 :
42ecbf5e
DJ
4962 elif test $ac_prog = install &&
4963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4964 # program-specific install script used by HP pwplus--don't use.
4965 :
252b5132 4966 else
42ecbf5e
DJ
4967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4968 break 3
252b5132
RH
4969 fi
4970 fi
4971 done
42ecbf5e
DJ
4972 done
4973 ;;
4974esac
4975done
4976
252b5132
RH
4977
4978fi
4979 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4980 INSTALL=$ac_cv_path_install
252b5132
RH
4981 else
4982 # As a last resort, use the slow shell script. We don't cache a
4983 # path for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the path is relative.
42ecbf5e 4986 INSTALL=$ac_install_sh
252b5132
RH
4987 fi
4988fi
42ecbf5e
DJ
4989echo "$as_me:$LINENO: result: $INSTALL" >&5
4990echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
4991
4992# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993# It thinks the first close brace ends the variable substitution.
4994test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4995
42ecbf5e 4996test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
4997
4998test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4999
5000
cd24c222 5001ALL_LINGUAS="fr sv tr es da"
42ecbf5e
DJ
5002if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5004set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5005echo "$as_me:$LINENO: checking for $ac_word" >&5
5006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007if test "${ac_cv_prog_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 if test -n "$RANLIB"; then
5011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025done
5026
5027fi
5028fi
5029RANLIB=$ac_cv_prog_RANLIB
5030if test -n "$RANLIB"; then
5031 echo "$as_me:$LINENO: result: $RANLIB" >&5
5032echo "${ECHO_T}$RANLIB" >&6
5033else
5034 echo "$as_me:$LINENO: result: no" >&5
5035echo "${ECHO_T}no" >&6
5036fi
5037
5038fi
5039if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042set dummy ranlib; ac_word=$2
5043echo "$as_me:$LINENO: checking for $ac_word" >&5
5044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_RANLIB="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062done
5063done
5064
5065 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5066fi
5067fi
5068ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5069if test -n "$ac_ct_RANLIB"; then
5070 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071echo "${ECHO_T}$ac_ct_RANLIB" >&6
5072else
5073 echo "$as_me:$LINENO: result: no" >&5
5074echo "${ECHO_T}no" >&6
5075fi
5076
5077 RANLIB=$ac_ct_RANLIB
5078else
5079 RANLIB="$ac_cv_prog_RANLIB"
5080fi
5081
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
5087echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5088echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
5089# On Suns, sometimes $CPP names a directory.
5090if test -n "$CPP" && test -d "$CPP"; then
5091 CPP=
5092fi
e5a52504 5093if test -z "$CPP"; then
42ecbf5e
DJ
5094 if test "${ac_cv_prog_CPP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097 # Double quotes because CPP needs to be expanded
5098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5099 do
5100 ac_preproc_ok=false
5101for ac_c_preproc_warn_flag in '' yes
5102do
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
d15b04bd 5107 # On the NeXT, cc -E runs the code through the compiler's parser,
42ecbf5e
DJ
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h. */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h. */
5115#ifdef __STDC__
5116# include <limits.h>
5117#else
5118# include <assert.h>
5119#endif
5120 Syntax error
5121_ACEOF
5122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null; then
5130 if test -s conftest.err; then
5131 ac_cpp_err=$ac_c_preproc_warn_flag
5132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 else
5134 ac_cpp_err=
5135 fi
e5a52504 5136else
42ecbf5e
DJ
5137 ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
d15b04bd 5140 :
e5a52504 5141else
42ecbf5e
DJ
5142 echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 # Broken: fails on valid input.
5146continue
5147fi
5148rm -f conftest.err conftest.$ac_ext
5149
5150 # OK, works on sane cases. Now check whether non-existent headers
5151 # can be detected and how.
5152 cat >conftest.$ac_ext <<_ACEOF
5153/* confdefs.h. */
5154_ACEOF
5155cat confdefs.h >>conftest.$ac_ext
5156cat >>conftest.$ac_ext <<_ACEOF
5157/* end confdefs.h. */
5158#include <ac_nonexistent.h>
5159_ACEOF
5160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null; then
5168 if test -s conftest.err; then
5169 ac_cpp_err=$ac_c_preproc_warn_flag
5170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5171 else
5172 ac_cpp_err=
5173 fi
5174else
5175 ac_cpp_err=yes
5176fi
5177if test -z "$ac_cpp_err"; then
5178 # Broken: success on invalid input.
5179continue
5180else
5181 echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 # Passes both tests.
5185ac_preproc_ok=:
5186break
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189
5190done
5191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5192rm -f conftest.err conftest.$ac_ext
5193if $ac_preproc_ok; then
5194 break
5195fi
5196
5197 done
5198 ac_cv_prog_CPP=$CPP
5199
5200fi
5201 CPP=$ac_cv_prog_CPP
5202else
5203 ac_cv_prog_CPP=$CPP
5204fi
5205echo "$as_me:$LINENO: result: $CPP" >&5
5206echo "${ECHO_T}$CPP" >&6
5207ac_preproc_ok=false
5208for ac_c_preproc_warn_flag in '' yes
5209do
5210 # Use a header file that comes with gcc, so configuring glibc
5211 # with a fresh cross-compiler works.
5212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213 # <limits.h> exists even on freestanding compilers.
5214 # On the NeXT, cc -E runs the code through the compiler's parser,
5215 # not just through cpp. "Syntax error" is here to catch this case.
5216 cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227 Syntax error
5228_ACEOF
5229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null; then
5237 if test -s conftest.err; then
5238 ac_cpp_err=$ac_c_preproc_warn_flag
5239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5240 else
5241 ac_cpp_err=
5242 fi
5243else
5244 ac_cpp_err=yes
5245fi
5246if test -z "$ac_cpp_err"; then
d15b04bd 5247 :
252b5132 5248else
42ecbf5e
DJ
5249 echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 # Broken: fails on valid input.
5253continue
5254fi
5255rm -f conftest.err conftest.$ac_ext
5256
5257 # OK, works on sane cases. Now check whether non-existent headers
5258 # can be detected and how.
5259 cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265#include <ac_nonexistent.h>
5266_ACEOF
5267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev/null; then
5275 if test -s conftest.err; then
5276 ac_cpp_err=$ac_c_preproc_warn_flag
5277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5278 else
5279 ac_cpp_err=
5280 fi
5281else
5282 ac_cpp_err=yes
252b5132 5283fi
42ecbf5e
DJ
5284if test -z "$ac_cpp_err"; then
5285 # Broken: success on invalid input.
5286continue
ac48eca1 5287else
42ecbf5e
DJ
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 # Passes both tests.
5292ac_preproc_ok=:
5293break
ac48eca1 5294fi
42ecbf5e 5295rm -f conftest.err conftest.$ac_ext
e5a52504 5296
42ecbf5e
DJ
5297done
5298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299rm -f conftest.err conftest.$ac_ext
5300if $ac_preproc_ok; then
5301 :
ac48eca1 5302else
42ecbf5e
DJ
5303 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5304See \`config.log' for more details." >&5
5305echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5306See \`config.log' for more details." >&2;}
5307 { (exit 1); exit 1; }; }
d15b04bd 5308fi
42ecbf5e
DJ
5309
5310ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317echo "$as_me:$LINENO: checking for egrep" >&5
5318echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5319if test "${ac_cv_prog_egrep+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5321else
42ecbf5e
DJ
5322 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5323 then ac_cv_prog_egrep='grep -E'
5324 else ac_cv_prog_egrep='egrep'
5325 fi
ac48eca1 5326fi
42ecbf5e
DJ
5327echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5328echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5329 EGREP=$ac_cv_prog_egrep
5330
e5a52504 5331
42ecbf5e
DJ
5332echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5334if test "${ac_cv_header_stdc+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5336else
42ecbf5e
DJ
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
252b5132
RH
5343#include <stdlib.h>
5344#include <stdarg.h>
5345#include <string.h>
5346#include <float.h>
42ecbf5e
DJ
5347
5348int
5349main ()
5350{
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356rm -f conftest.$ac_objext
5357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
502bdb00
JW
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
42ecbf5e
DJ
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
252b5132
RH
5378 ac_cv_header_stdc=yes
5379else
42ecbf5e
DJ
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383ac_cv_header_stdc=no
252b5132 5384fi
42ecbf5e 5385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5386
5387if test $ac_cv_header_stdc = yes; then
5388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42ecbf5e
DJ
5389 cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
252b5132 5395#include <string.h>
42ecbf5e
DJ
5396
5397_ACEOF
252b5132 5398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5399 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5400 :
5401else
252b5132
RH
5402 ac_cv_header_stdc=no
5403fi
5404rm -f conftest*
5405
5406fi
5407
5408if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42ecbf5e
DJ
5410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
252b5132 5416#include <stdlib.h>
42ecbf5e
DJ
5417
5418_ACEOF
252b5132 5419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5420 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5421 :
5422else
252b5132
RH
5423 ac_cv_header_stdc=no
5424fi
5425rm -f conftest*
5426
5427fi
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42ecbf5e 5431 if test "$cross_compiling" = yes; then
252b5132
RH
5432 :
5433else
42ecbf5e
DJ
5434 cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
252b5132 5440#include <ctype.h>
42ecbf5e
DJ
5441#if ((' ' & 0x0FF) == 0x020)
5442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5444#else
5445# define ISLOWER(c) \
5446 (('a' <= (c) && (c) <= 'i') \
5447 || ('j' <= (c) && (c) <= 'r') \
5448 || ('s' <= (c) && (c) <= 'z'))
5449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5450#endif
d15b04bd 5451
42ecbf5e
DJ
5452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5453int
5454main ()
5455{
5456 int i;
5457 for (i = 0; i < 256; i++)
5458 if (XOR (islower (i), ISLOWER (i))
5459 || toupper (i) != TOUPPER (i))
5460 exit(2);
5461 exit (0);
5462}
5463_ACEOF
5464rm -f conftest$ac_exeext
5465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
252b5132
RH
5475 :
5476else
42ecbf5e
DJ
5477 echo "$as_me: program exited with status $ac_status" >&5
5478echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481( exit $ac_status )
5482ac_cv_header_stdc=no
252b5132 5483fi
42ecbf5e 5484rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5485fi
252b5132
RH
5486fi
5487fi
42ecbf5e
DJ
5488echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5489echo "${ECHO_T}$ac_cv_header_stdc" >&6
d15b04bd 5490if test $ac_cv_header_stdc = yes; then
42ecbf5e
DJ
5491
5492cat >>confdefs.h <<\_ACEOF
252b5132 5493#define STDC_HEADERS 1
42ecbf5e 5494_ACEOF
252b5132
RH
5495
5496fi
5497
42ecbf5e
DJ
5498echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5499echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5500if test "${ac_cv_c_const+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
d15b04bd 5509
42ecbf5e
DJ
5510int
5511main ()
5512{
5513/* FIXME: Include the comments suggested by Paul. */
5514#ifndef __cplusplus
5515 /* Ultrix mips cc rejects this. */
5516 typedef int charset[2];
5517 const charset x;
5518 /* SunOS 4.1.1 cc rejects this. */
5519 char const *const *ccp;
5520 char **p;
5521 /* NEC SVR4.0.2 mips cc rejects this. */
5522 struct point {int x, y;};
5523 static struct point const zero = {0,0};
5524 /* AIX XL C 1.02.0.0 rejects this.
5525 It does not let you subtract one const X* pointer from another in
5526 an arm of an if-expression whose if-part is not a constant
5527 expression */
5528 const char *g = "string";
5529 ccp = &g + (g ? g-g : 0);
5530 /* HPUX 7.0 cc rejects these. */
5531 ++ccp;
5532 p = (char**) ccp;
5533 ccp = (char const *const *) p;
5534 { /* SCO 3.2v4 cc rejects this. */
5535 char *t;
5536 char const *s = 0 ? (char *) 0 : (char const *) 0;
5537
5538 *t++ = 0;
5539 }
5540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5541 int x[] = {25, 17};
5542 const int *foo = &x[0];
5543 ++foo;
5544 }
5545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5546 typedef const int *iptr;
5547 iptr p = 0;
5548 ++p;
5549 }
5550 { /* AIX XL C 1.02.0.0 rejects this saying
5551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5552 struct s { int j; const int *ap[3]; };
5553 struct s *b; b->j = 5;
5554 }
5555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5556 const int foo = 10;
5557 }
5558#endif
5559
5560 ;
5561 return 0;
5562}
5563_ACEOF
5564rm -f conftest.$ac_objext
5565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>conftest.er1
5567 ac_status=$?
5568 grep -v '^ *+' conftest.er1 >conftest.err
5569 rm -f conftest.er1
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
502bdb00
JW
5573 { ac_try='test -z "$ac_c_werror_flag"
5574 || test ! -s conftest.err'
42ecbf5e
DJ
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; } &&
5580 { ac_try='test -s conftest.$ac_objext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 (eval $ac_try) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
252b5132
RH
5586 ac_cv_c_const=yes
5587else
42ecbf5e
DJ
5588 echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591ac_cv_c_const=no
252b5132 5592fi
42ecbf5e 5593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5594fi
42ecbf5e
DJ
5595echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5596echo "${ECHO_T}$ac_cv_c_const" >&6
d15b04bd 5597if test $ac_cv_c_const = no; then
42ecbf5e
DJ
5598
5599cat >>confdefs.h <<\_ACEOF
5600#define const
5601_ACEOF
252b5132
RH
5602
5603fi
5604
42ecbf5e
DJ
5605echo "$as_me:$LINENO: checking for inline" >&5
5606echo $ECHO_N "checking for inline... $ECHO_C" >&6
5607if test "${ac_cv_c_inline+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5609else
5610 ac_cv_c_inline=no
5611for ac_kw in inline __inline__ __inline; do
42ecbf5e
DJ
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#ifndef __cplusplus
5619typedef int foo_t;
5620static $ac_kw foo_t static_foo () {return 0; }
5621$ac_kw foo_t foo () {return 0; }
5622#endif
252b5132 5623
42ecbf5e
DJ
5624_ACEOF
5625rm -f conftest.$ac_objext
5626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
502bdb00
JW
5634 { ac_try='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
42ecbf5e
DJ
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
252b5132
RH
5647 ac_cv_c_inline=$ac_kw; break
5648else
42ecbf5e
DJ
5649 echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
252b5132 5652fi
42ecbf5e 5653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5654done
5655
5656fi
42ecbf5e
DJ
5657echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5658echo "${ECHO_T}$ac_cv_c_inline" >&6
252b5132 5659
42ecbf5e
DJ
5660
5661case $ac_cv_c_inline in
252b5132 5662 inline | yes) ;;
42ecbf5e
DJ
5663 *)
5664 case $ac_cv_c_inline in
5665 no) ac_val=;;
5666 *) ac_val=$ac_cv_c_inline;;
5667 esac
5668 cat >>confdefs.h <<_ACEOF
5669#ifndef __cplusplus
5670#define inline $ac_val
5671#endif
5672_ACEOF
5673 ;;
252b5132
RH
5674esac
5675
42ecbf5e
DJ
5676# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5687 inttypes.h stdint.h unistd.h
5688do
5689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5690echo "$as_me:$LINENO: checking for $ac_header" >&5
5691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5692if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701$ac_includes_default
5702
5703#include <$ac_header>
5704_ACEOF
5705rm -f conftest.$ac_objext
5706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
502bdb00
JW
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
42ecbf5e
DJ
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 eval "$as_ac_Header=yes"
5728else
5729 echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732eval "$as_ac_Header=no"
5733fi
5734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735fi
5736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5741_ACEOF
5742
5743fi
5744
5745done
5746
5747
5748echo "$as_me:$LINENO: checking for off_t" >&5
5749echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5750if test "${ac_cv_type_off_t+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5752else
42ecbf5e
DJ
5753 cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h. */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h. */
5759$ac_includes_default
5760int
5761main ()
5762{
5763if ((off_t *) 0)
5764 return 0;
5765if (sizeof (off_t))
5766 return 0;
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771rm -f conftest.$ac_objext
5772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
502bdb00
JW
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
42ecbf5e
DJ
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
a2d91340 5793 ac_cv_type_off_t=yes
252b5132 5794else
42ecbf5e
DJ
5795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 5797
42ecbf5e
DJ
5798ac_cv_type_off_t=no
5799fi
5800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d15b04bd 5801fi
42ecbf5e
DJ
5802echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5803echo "${ECHO_T}$ac_cv_type_off_t" >&6
5804if test $ac_cv_type_off_t = yes; then
5805 :
5806else
5807
5808cat >>confdefs.h <<_ACEOF
252b5132 5809#define off_t long
42ecbf5e 5810_ACEOF
252b5132
RH
5811
5812fi
5813
42ecbf5e
DJ
5814echo "$as_me:$LINENO: checking for size_t" >&5
5815echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5816if test "${ac_cv_type_size_t+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5818else
42ecbf5e
DJ
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825$ac_includes_default
5826int
5827main ()
5828{
5829if ((size_t *) 0)
5830 return 0;
5831if (sizeof (size_t))
5832 return 0;
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext
5838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
502bdb00
JW
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
42ecbf5e
DJ
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
a2d91340 5859 ac_cv_type_size_t=yes
252b5132 5860else
42ecbf5e
DJ
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 5863
42ecbf5e 5864ac_cv_type_size_t=no
d15b04bd 5865fi
42ecbf5e
DJ
5866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5869echo "${ECHO_T}$ac_cv_type_size_t" >&6
5870if test $ac_cv_type_size_t = yes; then
5871 :
5872else
5873
5874cat >>confdefs.h <<_ACEOF
252b5132 5875#define size_t unsigned
42ecbf5e 5876_ACEOF
252b5132
RH
5877
5878fi
5879
5880# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5881# for constant arguments. Useless!
42ecbf5e
DJ
5882echo "$as_me:$LINENO: checking for working alloca.h" >&5
5883echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5884if test "${ac_cv_working_alloca_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
252b5132 5893#include <alloca.h>
42ecbf5e
DJ
5894int
5895main ()
5896{
5897char *p = (char *) alloca (2 * sizeof (int));
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext conftest$ac_exeext
5903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
502bdb00
JW
5911 { ac_try='test -z "$ac_c_werror_flag"
5912 || test ! -s conftest.err'
42ecbf5e
DJ
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_working_alloca_h=yes
5925else
5926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929ac_cv_working_alloca_h=no
5930fi
5931rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5935echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5936if test $ac_cv_working_alloca_h = yes; then
5937
5938cat >>confdefs.h <<\_ACEOF
252b5132 5939#define HAVE_ALLOCA_H 1
42ecbf5e 5940_ACEOF
252b5132
RH
5941
5942fi
5943
42ecbf5e
DJ
5944echo "$as_me:$LINENO: checking for alloca" >&5
5945echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5946if test "${ac_cv_func_alloca_works+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5948else
42ecbf5e
DJ
5949 cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
252b5132
RH
5955#ifdef __GNUC__
5956# define alloca __builtin_alloca
5957#else
5958# ifdef _MSC_VER
5959# include <malloc.h>
5960# define alloca _alloca
5961# else
5962# if HAVE_ALLOCA_H
5963# include <alloca.h>
5964# else
5965# ifdef _AIX
5966 #pragma alloca
5967# else
5968# ifndef alloca /* predefined by HP cc +Olibcalls */
5969char *alloca ();
5970# endif
5971# endif
5972# endif
5973# endif
5974#endif
5975
42ecbf5e
DJ
5976int
5977main ()
5978{
5979char *p = (char *) alloca (1);
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984rm -f conftest.$ac_objext conftest$ac_exeext
5985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986 (eval $ac_link) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
502bdb00
JW
5993 { ac_try='test -z "$ac_c_werror_flag"
5994 || test ! -s conftest.err'
42ecbf5e
DJ
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
252b5132
RH
6006 ac_cv_func_alloca_works=yes
6007else
42ecbf5e
DJ
6008 echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011ac_cv_func_alloca_works=no
252b5132 6012fi
42ecbf5e
DJ
6013rm -f conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
252b5132 6015fi
42ecbf5e
DJ
6016echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6017echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6018
252b5132 6019if test $ac_cv_func_alloca_works = yes; then
e5a52504 6020
42ecbf5e
DJ
6021cat >>confdefs.h <<\_ACEOF
6022#define HAVE_ALLOCA 1
6023_ACEOF
e5a52504 6024
42ecbf5e 6025else
d15b04bd 6026 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
6027# that cause trouble. Some versions do not even contain alloca or
6028# contain a buggy version. If you still want to use their alloca,
6029# use ar to extract alloca.o from them instead of compiling alloca.c.
6030
6031ALLOCA=alloca.$ac_objext
6032
6033cat >>confdefs.h <<\_ACEOF
252b5132 6034#define C_ALLOCA 1
42ecbf5e 6035_ACEOF
252b5132
RH
6036
6037
42ecbf5e
DJ
6038echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6039echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6040if test "${ac_cv_os_cray+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6042else
42ecbf5e
DJ
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
252b5132
RH
6049#if defined(CRAY) && ! defined(CRAY2)
6050webecray
6051#else
6052wenotbecray
6053#endif
6054
42ecbf5e 6055_ACEOF
252b5132 6056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 6057 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6058 ac_cv_os_cray=yes
6059else
252b5132
RH
6060 ac_cv_os_cray=no
6061fi
6062rm -f conftest*
6063
6064fi
42ecbf5e
DJ
6065echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6066echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 6067if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
6068 for ac_func in _getb67 GETB67 getb67; do
6069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6070echo "$as_me:$LINENO: checking for $ac_func" >&5
6071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6072if eval "test \"\${$as_ac_var+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075 cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h. */
6081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6083#define $ac_func innocuous_$ac_func
6084
252b5132 6085/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6086 which can conflict with char $ac_func (); below.
6087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6088 <limits.h> exists even on freestanding compilers. */
6089
6090#ifdef __STDC__
6091# include <limits.h>
6092#else
6093# include <assert.h>
6094#endif
d15b04bd 6095
42ecbf5e 6096#undef $ac_func
d15b04bd 6097
42ecbf5e
DJ
6098/* Override any gcc2 internal prototype to avoid an error. */
6099#ifdef __cplusplus
6100extern "C"
6101{
6102#endif
6103/* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6105char $ac_func ();
252b5132
RH
6106/* The GNU C library defines this for functions which it implements
6107 to always fail with ENOSYS. Some functions are actually named
6108 something starting with __ and the normal name is an alias. */
6109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6110choke me
6111#else
42ecbf5e
DJ
6112char (*f) () = $ac_func;
6113#endif
6114#ifdef __cplusplus
6115}
252b5132
RH
6116#endif
6117
42ecbf5e
DJ
6118int
6119main ()
6120{
6121return f != $ac_func;
6122 ;
6123 return 0;
6124}
6125_ACEOF
6126rm -f conftest.$ac_objext conftest$ac_exeext
6127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
502bdb00
JW
6135 { ac_try='test -z "$ac_c_werror_flag"
6136 || test ! -s conftest.err'
42ecbf5e
DJ
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 eval "$as_ac_var=yes"
6149else
6150 echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153eval "$as_ac_var=no"
6154fi
6155rm -f conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6157fi
6158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6160if test `eval echo '${'$as_ac_var'}'` = yes; then
6161
6162cat >>confdefs.h <<_ACEOF
252b5132 6163#define CRAY_STACKSEG_END $ac_func
42ecbf5e 6164_ACEOF
252b5132 6165
42ecbf5e 6166 break
252b5132
RH
6167fi
6168
42ecbf5e 6169 done
252b5132
RH
6170fi
6171
42ecbf5e
DJ
6172echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6173echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6174if test "${ac_cv_c_stack_direction+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6176else
6177 if test "$cross_compiling" = yes; then
6178 ac_cv_c_stack_direction=0
6179else
42ecbf5e
DJ
6180 cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h. */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h. */
6186int
252b5132
RH
6187find_stack_direction ()
6188{
6189 static char *addr = 0;
6190 auto char dummy;
6191 if (addr == 0)
6192 {
6193 addr = &dummy;
6194 return find_stack_direction ();
6195 }
6196 else
6197 return (&dummy > addr) ? 1 : -1;
6198}
42ecbf5e
DJ
6199
6200int
252b5132
RH
6201main ()
6202{
42ecbf5e 6203 exit (find_stack_direction () < 0);
252b5132 6204}
42ecbf5e
DJ
6205_ACEOF
6206rm -f conftest$ac_exeext
6207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
252b5132
RH
6217 ac_cv_c_stack_direction=1
6218else
42ecbf5e
DJ
6219 echo "$as_me: program exited with status $ac_status" >&5
6220echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223( exit $ac_status )
6224ac_cv_c_stack_direction=-1
252b5132 6225fi
42ecbf5e 6226rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6227fi
252b5132 6228fi
42ecbf5e
DJ
6229echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6230echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6231
42ecbf5e 6232cat >>confdefs.h <<_ACEOF
252b5132 6233#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
6234_ACEOF
6235
e5a52504
MM
6236
6237fi
6238
42ecbf5e
DJ
6239
6240
6241for ac_header in stdlib.h unistd.h
e5a52504 6242do
42ecbf5e
DJ
6243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo "$as_me:$LINENO: checking for $ac_header" >&5
6246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6247if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249fi
6250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6252else
6253 # Is the header compilable?
6254echo "$as_me:$LINENO: checking $ac_header usability" >&5
6255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6256cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262$ac_includes_default
6263#include <$ac_header>
6264_ACEOF
6265rm -f conftest.$ac_objext
6266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
502bdb00
JW
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
42ecbf5e
DJ
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest.$ac_objext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_header_compiler=yes
6288else
6289 echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292ac_header_compiler=no
6293fi
6294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6296echo "${ECHO_T}$ac_header_compiler" >&6
6297
6298# Is the header present?
6299echo "$as_me:$LINENO: checking $ac_header presence" >&5
6300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6301cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h. */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h. */
6307#include <$ac_header>
6308_ACEOF
6309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } >/dev/null; then
6317 if test -s conftest.err; then
6318 ac_cpp_err=$ac_c_preproc_warn_flag
6319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6320 else
6321 ac_cpp_err=
6322 fi
e5a52504 6323else
42ecbf5e 6324 ac_cpp_err=yes
e5a52504 6325fi
42ecbf5e
DJ
6326if test -z "$ac_cpp_err"; then
6327 ac_header_preproc=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_header_preproc=no
252b5132 6333fi
42ecbf5e
DJ
6334rm -f conftest.err conftest.$ac_ext
6335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6336echo "${ECHO_T}$ac_header_preproc" >&6
6337
6338# So? What about this header?
6339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6340 yes:no: )
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6345 ac_header_preproc=yes
6346 ;;
6347 no:yes:* )
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6360 (
6361 cat <<\_ASBOX
6362## ------------------------------------------ ##
6363## Report this to the AC_PACKAGE_NAME lists. ##
6364## ------------------------------------------ ##
6365_ASBOX
6366 ) |
6367 sed "s/^/$as_me: WARNING: /" >&2
6368 ;;
6369esac
6370echo "$as_me:$LINENO: checking for $ac_header" >&5
6371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6372if eval "test \"\${$as_ac_Header+set}\" = set"; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6374else
42ecbf5e
DJ
6375 eval "$as_ac_Header=\$ac_header_preproc"
6376fi
6377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379
6380fi
6381if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382 cat >>confdefs.h <<_ACEOF
6383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6384_ACEOF
6385
252b5132 6386fi
42ecbf5e 6387
d15b04bd 6388done
252b5132 6389
42ecbf5e 6390
d15b04bd
L
6391for ac_func in getpagesize
6392do
42ecbf5e
DJ
6393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6394echo "$as_me:$LINENO: checking for $ac_func" >&5
6395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6396if eval "test \"\${$as_ac_var+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h. */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h. */
6405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6407#define $ac_func innocuous_$ac_func
6408
d15b04bd 6409/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6410 which can conflict with char $ac_func (); below.
6411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6412 <limits.h> exists even on freestanding compilers. */
d15b04bd 6413
42ecbf5e
DJ
6414#ifdef __STDC__
6415# include <limits.h>
6416#else
6417# include <assert.h>
6418#endif
d15b04bd 6419
42ecbf5e
DJ
6420#undef $ac_func
6421
6422/* Override any gcc2 internal prototype to avoid an error. */
6423#ifdef __cplusplus
6424extern "C"
6425{
6426#endif
6427/* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429char $ac_func ();
252b5132
RH
6430/* The GNU C library defines this for functions which it implements
6431 to always fail with ENOSYS. Some functions are actually named
6432 something starting with __ and the normal name is an alias. */
6433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6434choke me
6435#else
42ecbf5e
DJ
6436char (*f) () = $ac_func;
6437#endif
6438#ifdef __cplusplus
6439}
252b5132
RH
6440#endif
6441
42ecbf5e
DJ
6442int
6443main ()
6444{
6445return f != $ac_func;
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450rm -f conftest.$ac_objext conftest$ac_exeext
6451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
502bdb00
JW
6459 { ac_try='test -z "$ac_c_werror_flag"
6460 || test ! -s conftest.err'
42ecbf5e
DJ
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 eval "$as_ac_var=yes"
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477eval "$as_ac_var=no"
6478fi
6479rm -f conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6481fi
6482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6484if test `eval echo '${'$as_ac_var'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6487_ACEOF
252b5132 6488
252b5132
RH
6489fi
6490done
6491
42ecbf5e
DJ
6492echo "$as_me:$LINENO: checking for working mmap" >&5
6493echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6494if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6496else
6497 if test "$cross_compiling" = yes; then
6498 ac_cv_func_mmap_fixed_mapped=no
6499else
42ecbf5e
DJ
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506$ac_includes_default
6507/* malloc might have been renamed as rpl_malloc. */
6508#undef malloc
252b5132
RH
6509
6510/* Thanks to Mike Haertel and Jim Avera for this test.
6511 Here is a matrix of mmap possibilities:
6512 mmap private not fixed
6513 mmap private fixed at somewhere currently unmapped
6514 mmap private fixed at somewhere already mapped
6515 mmap shared not fixed
6516 mmap shared fixed at somewhere currently unmapped
6517 mmap shared fixed at somewhere already mapped
6518 For private mappings, we should verify that changes cannot be read()
6519 back from the file, nor mmap's back from the file at a different
6520 address. (There have been systems where private was not correctly
6521 implemented like the infamous i386 svr4.0, and systems where the
42ecbf5e 6522 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6523 like early versions of FreeBSD and possibly contemporary NetBSD.)
6524 For shared mappings, we should conversely verify that changes get
42ecbf5e 6525 propagated back to all the places they're supposed to be.
252b5132
RH
6526
6527 Grep wants private fixed already mapped.
6528 The main things grep needs to know about mmap are:
6529 * does it exist and is it safe to write into the mmap'd area
6530 * how to use it (BSD variants) */
42ecbf5e 6531
252b5132
RH
6532#include <fcntl.h>
6533#include <sys/mman.h>
6534
42ecbf5e
DJ
6535#if !STDC_HEADERS && !HAVE_STDLIB_H
6536char *malloc ();
6537#endif
d15b04bd 6538
42ecbf5e
DJ
6539/* This mess was copied from the GNU getpagesize.h. */
6540#if !HAVE_GETPAGESIZE
252b5132 6541/* Assume that all systems that can run configure have sys/param.h. */
42ecbf5e 6542# if !HAVE_SYS_PARAM_H
252b5132
RH
6543# define HAVE_SYS_PARAM_H 1
6544# endif
6545
6546# ifdef _SC_PAGESIZE
6547# define getpagesize() sysconf(_SC_PAGESIZE)
6548# else /* no _SC_PAGESIZE */
42ecbf5e 6549# if HAVE_SYS_PARAM_H
252b5132
RH
6550# include <sys/param.h>
6551# ifdef EXEC_PAGESIZE
6552# define getpagesize() EXEC_PAGESIZE
6553# else /* no EXEC_PAGESIZE */
6554# ifdef NBPG
6555# define getpagesize() NBPG * CLSIZE
6556# ifndef CLSIZE
6557# define CLSIZE 1
6558# endif /* no CLSIZE */
6559# else /* no NBPG */
6560# ifdef NBPC
6561# define getpagesize() NBPC
6562# else /* no NBPC */
6563# ifdef PAGESIZE
6564# define getpagesize() PAGESIZE
6565# endif /* PAGESIZE */
6566# endif /* no NBPC */
6567# endif /* no NBPG */
6568# endif /* no EXEC_PAGESIZE */
6569# else /* no HAVE_SYS_PARAM_H */
6570# define getpagesize() 8192 /* punt totally */
6571# endif /* no HAVE_SYS_PARAM_H */
6572# endif /* no _SC_PAGESIZE */
6573
6574#endif /* no HAVE_GETPAGESIZE */
6575
252b5132 6576int
42ecbf5e 6577main ()
252b5132 6578{
42ecbf5e
DJ
6579 char *data, *data2, *data3;
6580 int i, pagesize;
6581 int fd;
6582
6583 pagesize = getpagesize ();
6584
6585 /* First, make a file with some known garbage in it. */
6586 data = (char *) malloc (pagesize);
6587 if (!data)
6588 exit (1);
6589 for (i = 0; i < pagesize; ++i)
6590 *(data + i) = rand ();
6591 umask (0);
6592 fd = creat ("conftest.mmap", 0600);
6593 if (fd < 0)
6594 exit (1);
6595 if (write (fd, data, pagesize) != pagesize)
6596 exit (1);
6597 close (fd);
6598
6599 /* Next, try to mmap the file at a fixed address which already has
6600 something else allocated at it. If we can, also make sure that
6601 we see the same garbage. */
6602 fd = open ("conftest.mmap", O_RDWR);
6603 if (fd < 0)
6604 exit (1);
6605 data2 = (char *) malloc (2 * pagesize);
6606 if (!data2)
6607 exit (1);
6608 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6611 exit (1);
6612 for (i = 0; i < pagesize; ++i)
6613 if (*(data + i) != *(data2 + i))
6614 exit (1);
6615
6616 /* Finally, make sure that changes to the mapped area do not
6617 percolate back to the file as seen by read(). (This is a bug on
6618 some variants of i386 svr4.0.) */
6619 for (i = 0; i < pagesize; ++i)
6620 *(data2 + i) = *(data2 + i) + 1;
6621 data3 = (char *) malloc (pagesize);
6622 if (!data3)
6623 exit (1);
6624 if (read (fd, data3, pagesize) != pagesize)
6625 exit (1);
6626 for (i = 0; i < pagesize; ++i)
6627 if (*(data + i) != *(data3 + i))
6628 exit (1);
6629 close (fd);
6630 exit (0);
252b5132 6631}
42ecbf5e
DJ
6632_ACEOF
6633rm -f conftest$ac_exeext
6634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
252b5132
RH
6644 ac_cv_func_mmap_fixed_mapped=yes
6645else
42ecbf5e
DJ
6646 echo "$as_me: program exited with status $ac_status" >&5
6647echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650( exit $ac_status )
6651ac_cv_func_mmap_fixed_mapped=no
252b5132 6652fi
42ecbf5e 6653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6654fi
252b5132 6655fi
42ecbf5e
DJ
6656echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6657echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
d15b04bd 6658if test $ac_cv_func_mmap_fixed_mapped = yes; then
42ecbf5e
DJ
6659
6660cat >>confdefs.h <<\_ACEOF
252b5132 6661#define HAVE_MMAP 1
42ecbf5e 6662_ACEOF
252b5132
RH
6663
6664fi
42ecbf5e 6665rm -f conftest.mmap
e5a52504 6666
42ecbf5e
DJ
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6678unistd.h values.h sys/param.h
6679do
42ecbf5e
DJ
6680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6681if eval "test \"\${$as_ac_Header+set}\" = set"; then
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686fi
6687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6689else
6690 # Is the header compilable?
6691echo "$as_me:$LINENO: checking $ac_header usability" >&5
6692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6693cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699$ac_includes_default
6700#include <$ac_header>
6701_ACEOF
6702rm -f conftest.$ac_objext
6703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
502bdb00
JW
6711 { ac_try='test -z "$ac_c_werror_flag"
6712 || test ! -s conftest.err'
42ecbf5e
DJ
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_header_compiler=yes
6725else
6726 echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729ac_header_compiler=no
6730fi
6731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6733echo "${ECHO_T}$ac_header_compiler" >&6
6734
6735# Is the header present?
6736echo "$as_me:$LINENO: checking $ac_header presence" >&5
6737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6738cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
6744#include <$ac_header>
6745_ACEOF
6746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } >/dev/null; then
6754 if test -s conftest.err; then
6755 ac_cpp_err=$ac_c_preproc_warn_flag
6756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6757 else
6758 ac_cpp_err=
6759 fi
252b5132 6760else
42ecbf5e 6761 ac_cpp_err=yes
252b5132 6762fi
42ecbf5e
DJ
6763if test -z "$ac_cpp_err"; then
6764 ac_header_preproc=yes
6765else
6766 echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ac_header_preproc=no
252b5132 6770fi
42ecbf5e
DJ
6771rm -f conftest.err conftest.$ac_ext
6772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6773echo "${ECHO_T}$ac_header_preproc" >&6
6774
6775# So? What about this header?
6776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6777 yes:no: )
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6782 ac_header_preproc=yes
6783 ;;
6784 no:yes:* )
6785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6797 (
6798 cat <<\_ASBOX
6799## ------------------------------------------ ##
6800## Report this to the AC_PACKAGE_NAME lists. ##
6801## ------------------------------------------ ##
6802_ASBOX
6803 ) |
6804 sed "s/^/$as_me: WARNING: /" >&2
6805 ;;
6806esac
6807echo "$as_me:$LINENO: checking for $ac_header" >&5
6808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6809if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6811else
42ecbf5e 6812 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 6813fi
42ecbf5e
DJ
6814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6816
6817fi
6818if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6821_ACEOF
6822
6823fi
6824
252b5132
RH
6825done
6826
42ecbf5e
DJ
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6838__argz_count __argz_stringify __argz_next
6839do
42ecbf5e
DJ
6840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6841echo "$as_me:$LINENO: checking for $ac_func" >&5
6842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6843if eval "test \"\${$as_ac_var+set}\" = set"; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
6852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6854#define $ac_func innocuous_$ac_func
6855
252b5132 6856/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6857 which can conflict with char $ac_func (); below.
6858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6859 <limits.h> exists even on freestanding compilers. */
6860
6861#ifdef __STDC__
6862# include <limits.h>
6863#else
6864# include <assert.h>
6865#endif
d15b04bd 6866
42ecbf5e 6867#undef $ac_func
d15b04bd 6868
42ecbf5e
DJ
6869/* Override any gcc2 internal prototype to avoid an error. */
6870#ifdef __cplusplus
6871extern "C"
6872{
6873#endif
6874/* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6876char $ac_func ();
252b5132
RH
6877/* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881choke me
6882#else
42ecbf5e
DJ
6883char (*f) () = $ac_func;
6884#endif
6885#ifdef __cplusplus
6886}
252b5132
RH
6887#endif
6888
42ecbf5e
DJ
6889int
6890main ()
6891{
6892return f != $ac_func;
6893 ;
6894 return 0;
6895}
6896_ACEOF
6897rm -f conftest.$ac_objext conftest$ac_exeext
6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
502bdb00
JW
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
42ecbf5e
DJ
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 eval "$as_ac_var=yes"
6920else
6921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
6924eval "$as_ac_var=no"
6925fi
6926rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928fi
6929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6931if test `eval echo '${'$as_ac_var'}'` = yes; then
6932 cat >>confdefs.h <<_ACEOF
6933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6934_ACEOF
252b5132 6935
252b5132
RH
6936fi
6937done
6938
6939
6940 if test "${ac_cv_func_stpcpy+set}" != "set"; then
42ecbf5e
DJ
6941
6942for ac_func in stpcpy
252b5132 6943do
42ecbf5e
DJ
6944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6945echo "$as_me:$LINENO: checking for $ac_func" >&5
6946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6947if eval "test \"\${$as_ac_var+set}\" = set"; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 cat >conftest.$ac_ext <<_ACEOF
6951/* confdefs.h. */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h. */
6956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6958#define $ac_func innocuous_$ac_func
6959
252b5132 6960/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6961 which can conflict with char $ac_func (); below.
6962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6963 <limits.h> exists even on freestanding compilers. */
6964
6965#ifdef __STDC__
6966# include <limits.h>
6967#else
6968# include <assert.h>
6969#endif
d15b04bd 6970
42ecbf5e 6971#undef $ac_func
d15b04bd 6972
42ecbf5e
DJ
6973/* Override any gcc2 internal prototype to avoid an error. */
6974#ifdef __cplusplus
6975extern "C"
6976{
6977#endif
6978/* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980char $ac_func ();
252b5132
RH
6981/* The GNU C library defines this for functions which it implements
6982 to always fail with ENOSYS. Some functions are actually named
6983 something starting with __ and the normal name is an alias. */
6984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6985choke me
6986#else
42ecbf5e
DJ
6987char (*f) () = $ac_func;
6988#endif
6989#ifdef __cplusplus
6990}
252b5132
RH
6991#endif
6992
42ecbf5e
DJ
6993int
6994main ()
6995{
6996return f != $ac_func;
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
502bdb00
JW
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
42ecbf5e
DJ
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 eval "$as_ac_var=yes"
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028eval "$as_ac_var=no"
7029fi
7030rm -f conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032fi
7033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7035if test `eval echo '${'$as_ac_var'}'` = yes; then
7036 cat >>confdefs.h <<_ACEOF
7037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7038_ACEOF
252b5132 7039
252b5132
RH
7040fi
7041done
7042
7043 fi
7044 if test "${ac_cv_func_stpcpy}" = "yes"; then
42ecbf5e
DJ
7045
7046cat >>confdefs.h <<\_ACEOF
252b5132 7047#define HAVE_STPCPY 1
42ecbf5e 7048_ACEOF
252b5132
RH
7049
7050 fi
7051
7052 if test $ac_cv_header_locale_h = yes; then
42ecbf5e
DJ
7053 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7054echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7055if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
252b5132 7064#include <locale.h>
42ecbf5e
DJ
7065int
7066main ()
7067{
252b5132 7068return LC_MESSAGES
42ecbf5e
DJ
7069 ;
7070 return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext conftest$ac_exeext
7074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
502bdb00
JW
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
42ecbf5e
DJ
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest$ac_exeext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
252b5132
RH
7095 am_cv_val_LC_MESSAGES=yes
7096else
42ecbf5e
DJ
7097 echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100am_cv_val_LC_MESSAGES=no
252b5132 7101fi
42ecbf5e
DJ
7102rm -f conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
252b5132 7104fi
42ecbf5e
DJ
7105echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7106echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
d15b04bd 7107 if test $am_cv_val_LC_MESSAGES = yes; then
42ecbf5e
DJ
7108
7109cat >>confdefs.h <<\_ACEOF
252b5132 7110#define HAVE_LC_MESSAGES 1
42ecbf5e 7111_ACEOF
252b5132
RH
7112
7113 fi
7114 fi
42ecbf5e
DJ
7115 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7116echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7117 # Check whether --enable-nls or --disable-nls was given.
7118if test "${enable_nls+set}" = set; then
7119 enableval="$enable_nls"
7120 USE_NLS=$enableval
7121else
7122 USE_NLS=yes
42ecbf5e
DJ
7123fi;
7124 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7125echo "${ECHO_T}$USE_NLS" >&6
252b5132 7126
252b5132
RH
7127
7128 USE_INCLUDED_LIBINTL=no
7129
7130 if test "$USE_NLS" = "yes"; then
42ecbf5e
DJ
7131 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7132echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7133
7134# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7135if test "${with_included_gettext+set}" = set; then
7136 withval="$with_included_gettext"
7137 nls_cv_force_use_gnu_gettext=$withval
7138else
7139 nls_cv_force_use_gnu_gettext=no
42ecbf5e
DJ
7140fi;
7141 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7142echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7143
7144 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7145 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7146 nls_cv_header_intl=
7147 nls_cv_header_libgt=
c46f8c51 7148 CATOBJEXT=
252b5132 7149
42ecbf5e
DJ
7150 if test "${ac_cv_header_libintl_h+set}" = set; then
7151 echo "$as_me:$LINENO: checking for libintl.h" >&5
7152echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7153if test "${ac_cv_header_libintl_h+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155fi
7156echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7157echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7158else
7159 # Is the header compilable?
7160echo "$as_me:$LINENO: checking libintl.h usability" >&5
7161echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7162cat >conftest.$ac_ext <<_ACEOF
7163/* confdefs.h. */
7164_ACEOF
7165cat confdefs.h >>conftest.$ac_ext
7166cat >>conftest.$ac_ext <<_ACEOF
7167/* end confdefs.h. */
7168$ac_includes_default
d15b04bd 7169#include <libintl.h>
42ecbf5e
DJ
7170_ACEOF
7171rm -f conftest.$ac_objext
7172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
502bdb00
JW
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
42ecbf5e
DJ
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_header_compiler=yes
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198ac_header_compiler=no
7199fi
7200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7202echo "${ECHO_T}$ac_header_compiler" >&6
7203
7204# Is the header present?
7205echo "$as_me:$LINENO: checking libintl.h presence" >&5
7206echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7207cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h. */
7213#include <libintl.h>
7214_ACEOF
7215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } >/dev/null; then
7223 if test -s conftest.err; then
7224 ac_cpp_err=$ac_c_preproc_warn_flag
7225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7226 else
7227 ac_cpp_err=
7228 fi
e5a52504 7229else
42ecbf5e 7230 ac_cpp_err=yes
e5a52504 7231fi
42ecbf5e
DJ
7232if test -z "$ac_cpp_err"; then
7233 ac_header_preproc=yes
7234else
7235 echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238 ac_header_preproc=no
7239fi
7240rm -f conftest.err conftest.$ac_ext
7241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242echo "${ECHO_T}$ac_header_preproc" >&6
7243
7244# So? What about this header?
7245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7246 yes:no: )
7247 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7248echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7250echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7252 ;;
7253 no:yes:* )
7254 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7255echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7257echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7259echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7261echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7263echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7265echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7266 (
7267 cat <<\_ASBOX
7268## ------------------------------------------ ##
7269## Report this to the AC_PACKAGE_NAME lists. ##
7270## ------------------------------------------ ##
7271_ASBOX
7272 ) |
7273 sed "s/^/$as_me: WARNING: /" >&2
7274 ;;
7275esac
7276echo "$as_me:$LINENO: checking for libintl.h" >&5
7277echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7278if test "${ac_cv_header_libintl_h+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281 ac_cv_header_libintl_h=$ac_header_preproc
252b5132 7282fi
42ecbf5e
DJ
7283echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7284echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7285
7286fi
7287if test $ac_cv_header_libintl_h = yes; then
7288 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7289echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7290if test "${gt_cv_func_gettext_libc+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7292else
42ecbf5e
DJ
7293 cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
252b5132 7299#include <libintl.h>
42ecbf5e
DJ
7300int
7301main ()
7302{
252b5132 7303return (int) gettext ("")
42ecbf5e
DJ
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext conftest$ac_exeext
7309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
502bdb00
JW
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
42ecbf5e
DJ
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
252b5132
RH
7330 gt_cv_func_gettext_libc=yes
7331else
42ecbf5e
DJ
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335gt_cv_func_gettext_libc=no
252b5132 7336fi
42ecbf5e
DJ
7337rm -f conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
252b5132 7339fi
42ecbf5e
DJ
7340echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7341echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7342
7343 if test "$gt_cv_func_gettext_libc" != "yes"; then
42ecbf5e
DJ
7344 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7345echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7346if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7348else
42ecbf5e 7349 ac_check_lib_save_LIBS=$LIBS
252b5132 7350LIBS="-lintl $LIBS"
42ecbf5e
DJ
7351cat >conftest.$ac_ext <<_ACEOF
7352/* confdefs.h. */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h. */
7357
252b5132 7358/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7359#ifdef __cplusplus
7360extern "C"
7361#endif
252b5132 7362/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7363 builtin and then its argument prototype would still apply. */
7364char bindtextdomain ();
7365int
7366main ()
7367{
7368bindtextdomain ();
7369 ;
7370 return 0;
7371}
7372_ACEOF
7373rm -f conftest.$ac_objext conftest$ac_exeext
7374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
502bdb00
JW
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
42ecbf5e
DJ
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_cv_lib_intl_bindtextdomain=yes
7396else
7397 echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400ac_cv_lib_intl_bindtextdomain=no
7401fi
7402rm -f conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7404LIBS=$ac_check_lib_save_LIBS
7405fi
7406echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7407echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7408if test $ac_cv_lib_intl_bindtextdomain = yes; then
7409 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7410echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7411if test "${gt_cv_func_gettext_libintl+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414 cat >conftest.$ac_ext <<_ACEOF
7415/* confdefs.h. */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h. */
d15b04bd 7420
42ecbf5e
DJ
7421int
7422main ()
7423{
252b5132 7424return (int) gettext ("")
42ecbf5e
DJ
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
7430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
502bdb00
JW
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
42ecbf5e
DJ
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
252b5132
RH
7451 gt_cv_func_gettext_libintl=yes
7452else
42ecbf5e
DJ
7453 echo "$as_me: failed program was:" >&5
7454sed 's/^/| /' conftest.$ac_ext >&5
7455
7456gt_cv_func_gettext_libintl=no
252b5132 7457fi
42ecbf5e
DJ
7458rm -f conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
252b5132 7460fi
42ecbf5e
DJ
7461echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7462echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7463fi
7464
7465 fi
7466
7467 if test "$gt_cv_func_gettext_libc" = "yes" \
7468 || test "$gt_cv_func_gettext_libintl" = "yes"; then
42ecbf5e
DJ
7469
7470cat >>confdefs.h <<\_ACEOF
252b5132 7471#define HAVE_GETTEXT 1
42ecbf5e 7472_ACEOF
252b5132
RH
7473
7474 # Extract the first word of "msgfmt", so it can be a program name with args.
7475set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
7476echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7478if test "${ac_cv_path_MSGFMT+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7480else
7481 case "$MSGFMT" in
7482 /*)
7483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7487 for ac_dir in $PATH; do
7488 test -z "$ac_dir" && ac_dir=.
7489 if test -f $ac_dir/$ac_word; then
7490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7492 break
7493 fi
7494 fi
7495 done
7496 IFS="$ac_save_ifs"
7497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7498 ;;
7499esac
7500fi
7501MSGFMT="$ac_cv_path_MSGFMT"
7502if test -n "$MSGFMT"; then
42ecbf5e
DJ
7503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7504echo "${ECHO_T}$MSGFMT" >&6
252b5132 7505else
42ecbf5e
DJ
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
252b5132
RH
7508fi
7509 if test "$MSGFMT" != "no"; then
42ecbf5e
DJ
7510
7511for ac_func in dcgettext
252b5132 7512do
42ecbf5e
DJ
7513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7514echo "$as_me:$LINENO: checking for $ac_func" >&5
7515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7516if eval "test \"\${$as_ac_var+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7527#define $ac_func innocuous_$ac_func
7528
252b5132 7529/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7530 which can conflict with char $ac_func (); below.
7531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 <limits.h> exists even on freestanding compilers. */
7533
7534#ifdef __STDC__
7535# include <limits.h>
7536#else
7537# include <assert.h>
7538#endif
d15b04bd 7539
42ecbf5e 7540#undef $ac_func
d15b04bd 7541
42ecbf5e
DJ
7542/* Override any gcc2 internal prototype to avoid an error. */
7543#ifdef __cplusplus
7544extern "C"
7545{
7546#endif
7547/* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7549char $ac_func ();
252b5132
RH
7550/* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7554choke me
7555#else
42ecbf5e
DJ
7556char (*f) () = $ac_func;
7557#endif
7558#ifdef __cplusplus
7559}
e5a52504
MM
7560#endif
7561
42ecbf5e
DJ
7562int
7563main ()
7564{
7565return f != $ac_func;
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570rm -f conftest.$ac_objext conftest$ac_exeext
7571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
502bdb00
JW
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
42ecbf5e
DJ
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597eval "$as_ac_var=no"
7598fi
7599rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601fi
7602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7604if test `eval echo '${'$as_ac_var'}'` = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7607_ACEOF
252b5132 7608
252b5132
RH
7609fi
7610done
7611
7612 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7613set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
7614echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616if test "${ac_cv_path_GMSGFMT+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7618else
42ecbf5e
DJ
7619 case $GMSGFMT in
7620 [\\/]* | ?:[\\/]*)
252b5132 7621 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
42ecbf5e
DJ
7622 ;;
7623 *)
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637
252b5132
RH
7638 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7639 ;;
7640esac
7641fi
42ecbf5e
DJ
7642GMSGFMT=$ac_cv_path_GMSGFMT
7643
252b5132 7644if test -n "$GMSGFMT"; then
42ecbf5e
DJ
7645 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7646echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7647else
42ecbf5e
DJ
7648 echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6
252b5132
RH
7650fi
7651
7652 # Extract the first word of "xgettext", so it can be a program name with args.
7653set dummy xgettext; ac_word=$2
42ecbf5e
DJ
7654echo "$as_me:$LINENO: checking for $ac_word" >&5
7655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7656if test "${ac_cv_path_XGETTEXT+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7658else
7659 case "$XGETTEXT" in
7660 /*)
7661 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7662 ;;
7663 *)
7664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7665 for ac_dir in $PATH; do
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/$ac_word; then
7668 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7669 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7670 break
7671 fi
7672 fi
7673 done
7674 IFS="$ac_save_ifs"
7675 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7676 ;;
7677esac
7678fi
7679XGETTEXT="$ac_cv_path_XGETTEXT"
7680if test -n "$XGETTEXT"; then
42ecbf5e
DJ
7681 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7682echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7683else
42ecbf5e
DJ
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
252b5132
RH
7686fi
7687
42ecbf5e
DJ
7688 cat >conftest.$ac_ext <<_ACEOF
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
252b5132 7694
42ecbf5e
DJ
7695int
7696main ()
7697{
252b5132
RH
7698extern int _nl_msg_cat_cntr;
7699 return _nl_msg_cat_cntr
42ecbf5e
DJ
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
502bdb00
JW
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
42ecbf5e
DJ
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
252b5132
RH
7726 CATOBJEXT=.gmo
7727 DATADIRNAME=share
7728else
42ecbf5e
DJ
7729 echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732CATOBJEXT=.mo
252b5132
RH
7733 DATADIRNAME=lib
7734fi
42ecbf5e
DJ
7735rm -f conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7737 INSTOBJEXT=.mo
7738 fi
7739 fi
42ecbf5e 7740
252b5132
RH
7741fi
7742
7743
42ecbf5e
DJ
7744
7745
c46f8c51
AC
7746 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7747 # Neither gettext nor catgets in included in the C library.
7748 # Fall back on GNU gettext library (assuming it is present).
7749 nls_cv_use_gnu_gettext=yes
252b5132
RH
7750 fi
7751 fi
7752
7753 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7754 INTLOBJS="\$(GETTOBJS)"
7755 # Extract the first word of "msgfmt", so it can be a program name with args.
7756set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
7757echo "$as_me:$LINENO: checking for $ac_word" >&5
7758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759if test "${ac_cv_path_MSGFMT+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7761else
7762 case "$MSGFMT" in
7763 /*)
7764 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7765 ;;
7766 *)
7767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7768 for ac_dir in $PATH; do
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f $ac_dir/$ac_word; then
7771 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7772 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7773 break
7774 fi
7775 fi
7776 done
7777 IFS="$ac_save_ifs"
7778 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7779 ;;
7780esac
7781fi
7782MSGFMT="$ac_cv_path_MSGFMT"
7783if test -n "$MSGFMT"; then
42ecbf5e
DJ
7784 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7785echo "${ECHO_T}$MSGFMT" >&6
252b5132 7786else
42ecbf5e
DJ
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
252b5132
RH
7789fi
7790
7791 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7792set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_path_GMSGFMT+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7797else
42ecbf5e
DJ
7798 case $GMSGFMT in
7799 [\\/]* | ?:[\\/]*)
252b5132
RH
7800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7801 ;;
252b5132 7802 *)
42ecbf5e
DJ
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815done
7816
252b5132
RH
7817 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7818 ;;
7819esac
7820fi
42ecbf5e
DJ
7821GMSGFMT=$ac_cv_path_GMSGFMT
7822
252b5132 7823if test -n "$GMSGFMT"; then
42ecbf5e
DJ
7824 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7825echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7826else
42ecbf5e
DJ
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
252b5132
RH
7829fi
7830
7831 # Extract the first word of "xgettext", so it can be a program name with args.
7832set dummy xgettext; ac_word=$2
42ecbf5e
DJ
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_path_XGETTEXT+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7837else
7838 case "$XGETTEXT" in
7839 /*)
7840 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7841 ;;
7842 *)
7843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7844 for ac_dir in $PATH; do
7845 test -z "$ac_dir" && ac_dir=.
7846 if test -f $ac_dir/$ac_word; then
7847 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7848 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7849 break
7850 fi
7851 fi
7852 done
7853 IFS="$ac_save_ifs"
7854 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7855 ;;
7856esac
7857fi
7858XGETTEXT="$ac_cv_path_XGETTEXT"
7859if test -n "$XGETTEXT"; then
42ecbf5e
DJ
7860 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7861echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7862else
42ecbf5e
DJ
7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
252b5132
RH
7865fi
7866
42ecbf5e 7867
252b5132
RH
7868 USE_INCLUDED_LIBINTL=yes
7869 CATOBJEXT=.gmo
7870 INSTOBJEXT=.mo
7871 DATADIRNAME=share
7872 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7873 INTLLIBS=$INTLDEPS
7874 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7875 nls_cv_header_intl=libintl.h
7876 nls_cv_header_libgt=libgettext.h
7877 fi
7878
7879 if test "$XGETTEXT" != ":"; then
7880 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7881 : ;
7882 else
42ecbf5e
DJ
7883 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7884echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7885 XGETTEXT=":"
7886 fi
7887 fi
7888
7889 # We need to process the po/ directory.
7890 POSUB=po
7891 else
7892 DATADIRNAME=share
7893 nls_cv_header_intl=libintl.h
7894 nls_cv_header_libgt=libgettext.h
7895 fi
7896
7897 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7898 # because some of the sources are only built for this goal.
7899 if test "$PACKAGE" = gettext; then
7900 USE_NLS=yes
7901 USE_INCLUDED_LIBINTL=yes
7902 fi
7903
7904 for lang in $ALL_LINGUAS; do
7905 GMOFILES="$GMOFILES $lang.gmo"
7906 POFILES="$POFILES $lang.po"
7907 done
7908
42ecbf5e
DJ
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
c46f8c51 7920 if test "x$CATOBJEXT" != "x"; then
42ecbf5e
DJ
7921
7922cat >>confdefs.h <<\_ACEOF
c46f8c51 7923#define ENABLE_NLS 1
42ecbf5e 7924_ACEOF
c46f8c51
AC
7925
7926 fi
42ecbf5e 7927
252b5132
RH
7928
7929 if test "x$CATOBJEXT" != "x"; then
7930 if test "x$ALL_LINGUAS" = "x"; then
7931 LINGUAS=
7932 else
42ecbf5e
DJ
7933 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7934echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7935 NEW_LINGUAS=
7936 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7937 case "$ALL_LINGUAS" in
7938 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7939 esac
7940 done
7941 LINGUAS=$NEW_LINGUAS
42ecbf5e
DJ
7942 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7943echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7944 fi
7945
7946 if test -n "$LINGUAS"; then
7947 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7948 fi
7949 fi
7950
7951 if test $ac_cv_header_locale_h = yes; then
7952 INCLUDE_LOCALE_H="#include <locale.h>"
7953 else
7954 INCLUDE_LOCALE_H="\
7955/* The system does not provide the header <locale.h>. Take care yourself. */"
7956 fi
42ecbf5e 7957
252b5132
RH
7958
7959 if test -f $srcdir/po2tbl.sed.in; then
7960 if test "$CATOBJEXT" = ".cat"; then
42ecbf5e
DJ
7961 if test "${ac_cv_header_linux_version_h+set}" = set; then
7962 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7963echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7964if test "${ac_cv_header_linux_version_h+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966fi
7967echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7968echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7969else
7970 # Is the header compilable?
7971echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7972echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7973cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h. */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h. */
7979$ac_includes_default
252b5132 7980#include <linux/version.h>
42ecbf5e
DJ
7981_ACEOF
7982rm -f conftest.$ac_objext
7983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
502bdb00
JW
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
42ecbf5e
DJ
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_header_compiler=yes
8005else
8006 echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009ac_header_compiler=no
8010fi
8011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8013echo "${ECHO_T}$ac_header_compiler" >&6
8014
8015# Is the header present?
8016echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8017echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8018cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8024#include <linux/version.h>
8025_ACEOF
8026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } >/dev/null; then
8034 if test -s conftest.err; then
8035 ac_cpp_err=$ac_c_preproc_warn_flag
8036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8037 else
8038 ac_cpp_err=
8039 fi
e5a52504 8040else
42ecbf5e 8041 ac_cpp_err=yes
e5a52504 8042fi
42ecbf5e
DJ
8043if test -z "$ac_cpp_err"; then
8044 ac_header_preproc=yes
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_header_preproc=no
8050fi
8051rm -f conftest.err conftest.$ac_ext
8052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8053echo "${ECHO_T}$ac_header_preproc" >&6
8054
8055# So? What about this header?
8056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 yes:no: )
8058 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8059echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8061echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8062 ac_header_preproc=yes
8063 ;;
8064 no:yes:* )
8065 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8066echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8068echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8070echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8072echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8074echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8076echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8077 (
8078 cat <<\_ASBOX
8079## ------------------------------------------ ##
8080## Report this to the AC_PACKAGE_NAME lists. ##
8081## ------------------------------------------ ##
8082_ASBOX
8083 ) |
8084 sed "s/^/$as_me: WARNING: /" >&2
8085 ;;
8086esac
8087echo "$as_me:$LINENO: checking for linux/version.h" >&5
8088echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8089if test "${ac_cv_header_linux_version_h+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 ac_cv_header_linux_version_h=$ac_header_preproc
8093fi
8094echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8095echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8096
252b5132 8097fi
42ecbf5e 8098if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8099 msgformat=linux
8100else
42ecbf5e 8101 msgformat=xopen
252b5132
RH
8102fi
8103
8104
42ecbf5e 8105
252b5132
RH
8106 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8107 fi
8108 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8109 $srcdir/po2tbl.sed.in > po2tbl.sed
8110 fi
8111
8112 if test "$PACKAGE" = "gettext"; then
8113 GT_NO="#NO#"
8114 GT_YES=
8115 else
8116 GT_NO=
8117 GT_YES="#YES#"
8118 fi
42ecbf5e
DJ
8119
8120
252b5132
RH
8121
8122 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
42ecbf5e 8123
252b5132
RH
8124
8125 l=
42ecbf5e 8126
252b5132 8127
fcd8210c 8128 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8129 test -d po || mkdir po
8130 if test "x$srcdir" != "x."; then
8131 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8132 posrcprefix="$srcdir/"
8133 else
8134 posrcprefix="../$srcdir/"
8135 fi
8136 else
8137 posrcprefix="../"
8138 fi
8139 rm -f po/POTFILES
8140 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8141 < $srcdir/po/POTFILES.in > po/POTFILES
8142 fi
252b5132
RH
8143
8144
d15b04bd 8145
252b5132
RH
8146
8147for ac_prog in 'bison -y' byacc
8148do
42ecbf5e 8149 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 8150set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
8151echo "$as_me:$LINENO: checking for $ac_word" >&5
8152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8153if test "${ac_cv_prog_YACC+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8155else
8156 if test -n "$YACC"; then
8157 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8158else
42ecbf5e
DJ
8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_YACC="$ac_prog"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170done
8171done
8172
252b5132
RH
8173fi
8174fi
42ecbf5e 8175YACC=$ac_cv_prog_YACC
252b5132 8176if test -n "$YACC"; then
42ecbf5e
DJ
8177 echo "$as_me:$LINENO: result: $YACC" >&5
8178echo "${ECHO_T}$YACC" >&6
252b5132 8179else
42ecbf5e
DJ
8180 echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6
252b5132
RH
8182fi
8183
42ecbf5e 8184 test -n "$YACC" && break
252b5132
RH
8185done
8186test -n "$YACC" || YACC="yacc"
8187
252b5132
RH
8188for ac_prog in flex lex
8189do
42ecbf5e 8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 8191set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
8192echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194if test "${ac_cv_prog_LEX+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8196else
8197 if test -n "$LEX"; then
8198 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8199else
42ecbf5e
DJ
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_LEX="$ac_prog"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211done
e5a52504 8212done
d15b04bd 8213
d15b04bd
L
8214fi
8215fi
42ecbf5e 8216LEX=$ac_cv_prog_LEX
d15b04bd 8217if test -n "$LEX"; then
42ecbf5e
DJ
8218 echo "$as_me:$LINENO: result: $LEX" >&5
8219echo "${ECHO_T}$LEX" >&6
d15b04bd 8220else
42ecbf5e
DJ
8221 echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6
d15b04bd 8223fi
e5a52504 8224
42ecbf5e
DJ
8225 test -n "$LEX" && break
8226done
8227test -n "$LEX" || LEX=":"
8228
252b5132
RH
8229if test -z "$LEXLIB"
8230then
42ecbf5e
DJ
8231 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8232echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8233if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236 ac_check_lib_save_LIBS=$LIBS
8237LIBS="-lfl $LIBS"
8238cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h. */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h. */
8244
252b5132 8245/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
8246#ifdef __cplusplus
8247extern "C"
8248#endif
252b5132 8249/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
8250 builtin and then its argument prototype would still apply. */
8251char yywrap ();
8252int
8253main ()
8254{
8255yywrap ();
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260rm -f conftest.$ac_objext conftest$ac_exeext
8261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262 (eval $ac_link) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
502bdb00
JW
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
42ecbf5e
DJ
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_lib_fl_yywrap=yes
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287ac_cv_lib_fl_yywrap=no
8288fi
8289rm -f conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291LIBS=$ac_check_lib_save_LIBS
8292fi
8293echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8294echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8295if test $ac_cv_lib_fl_yywrap = yes; then
8296 LEXLIB="-lfl"
8297else
8298 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8299echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8300if test "${ac_cv_lib_l_yywrap+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 ac_check_lib_save_LIBS=$LIBS
8304LIBS="-ll $LIBS"
8305cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h. */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h. */
d15b04bd 8311
42ecbf5e
DJ
8312/* Override any gcc2 internal prototype to avoid an error. */
8313#ifdef __cplusplus
8314extern "C"
8315#endif
8316/* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8318char yywrap ();
8319int
8320main ()
8321{
8322yywrap ();
8323 ;
8324 return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext conftest$ac_exeext
8328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
502bdb00
JW
8336 { ac_try='test -z "$ac_c_werror_flag"
8337 || test ! -s conftest.err'
42ecbf5e
DJ
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 ac_cv_lib_l_yywrap=yes
8350else
8351 echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_lib_l_yywrap=no
8355fi
8356rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358LIBS=$ac_check_lib_save_LIBS
8359fi
8360echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8361echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8362if test $ac_cv_lib_l_yywrap = yes; then
8363 LEXLIB="-ll"
8364fi
8365
8366fi
8367
8368fi
8369
8370if test "x$LEX" != "x:"; then
8371 echo "$as_me:$LINENO: checking lex output file root" >&5
8372echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8373if test "${ac_cv_prog_lex_root+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8375else
8376 # The minimal lex program is just a single line: %%. But some broken lexes
8377# (Solaris, I think it was) want two %% lines, so accommodate them.
42ecbf5e
DJ
8378cat >conftest.l <<_ACEOF
8379%%
8380%%
8381_ACEOF
8382{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8383 (eval $LEX conftest.l) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }
252b5132
RH
8387if test -f lex.yy.c; then
8388 ac_cv_prog_lex_root=lex.yy
8389elif test -f lexyy.c; then
8390 ac_cv_prog_lex_root=lexyy
8391else
42ecbf5e
DJ
8392 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8393echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8394 { (exit 1); exit 1; }; }
252b5132
RH
8395fi
8396fi
42ecbf5e
DJ
8397echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8398echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8399rm -f conftest.l
252b5132
RH
8400LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8401
42ecbf5e
DJ
8402echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8403echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8404if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8406else
8407 # POSIX says lex can declare yytext either as a pointer or an array; the
8408# default is implementation-dependent. Figure out which it is, since
8409# not all implementations provide the %pointer and %array declarations.
8410ac_cv_prog_lex_yytext_pointer=no
8411echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
42ecbf5e 8412ac_save_LIBS=$LIBS
252b5132 8413LIBS="$LIBS $LEXLIB"
42ecbf5e 8414cat >conftest.$ac_ext <<_ACEOF
252b5132 8415`cat $LEX_OUTPUT_ROOT.c`
42ecbf5e
DJ
8416_ACEOF
8417rm -f conftest.$ac_objext conftest$ac_exeext
8418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
502bdb00
JW
8426 { ac_try='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
42ecbf5e
DJ
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
252b5132
RH
8439 ac_cv_prog_lex_yytext_pointer=yes
8440else
42ecbf5e
DJ
8441 echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
252b5132 8444fi
42ecbf5e
DJ
8445rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447LIBS=$ac_save_LIBS
252b5132
RH
8448rm -f "${LEX_OUTPUT_ROOT}.c"
8449
8450fi
42ecbf5e
DJ
8451echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8452echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d15b04bd 8453if test $ac_cv_prog_lex_yytext_pointer = yes; then
42ecbf5e
DJ
8454
8455cat >>confdefs.h <<\_ACEOF
252b5132 8456#define YYTEXT_POINTER 1
42ecbf5e 8457_ACEOF
252b5132
RH
8458
8459fi
8460
42ecbf5e
DJ
8461fi
8462if test "$LEX" = :; then
8463 LEX=${am_missing_run}flex
8464fi
252b5132 8465
42ecbf5e
DJ
8466echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8467echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8468 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8469if test "${enable_maintainer_mode+set}" = set; then
8470 enableval="$enable_maintainer_mode"
8471 USE_MAINTAINER_MODE=$enableval
8472else
8473 USE_MAINTAINER_MODE=no
42ecbf5e
DJ
8474fi;
8475 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8476echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 8477
252b5132
RH
8478
8479if test $USE_MAINTAINER_MODE = yes; then
8480 MAINTAINER_MODE_TRUE=
8481 MAINTAINER_MODE_FALSE='#'
8482else
8483 MAINTAINER_MODE_TRUE='#'
8484 MAINTAINER_MODE_FALSE=
8485fi
42ecbf5e 8486
252b5132 8487 MAINT=$MAINTAINER_MODE_TRUE
42ecbf5e 8488
252b5132
RH
8489
8490
8491. ${srcdir}/configure.host
8492
8493
8494
8495
8496
8497
42ecbf5e
DJ
8498
8499
8500
8501
8502for ac_header in string.h strings.h stdlib.h unistd.h
252b5132 8503do
42ecbf5e
DJ
8504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo "$as_me:$LINENO: checking for $ac_header" >&5
8507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510fi
8511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513else
8514 # Is the header compilable?
8515echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523$ac_includes_default
8524#include <$ac_header>
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
502bdb00
JW
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
42ecbf5e
DJ
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553ac_header_compiler=no
8554fi
8555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557echo "${ECHO_T}$ac_header_compiler" >&6
8558
8559# Is the header present?
8560echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562cat >conftest.$ac_ext <<_ACEOF
8563/* confdefs.h. */
8564_ACEOF
8565cat confdefs.h >>conftest.$ac_ext
8566cat >>conftest.$ac_ext <<_ACEOF
8567/* end confdefs.h. */
8568#include <$ac_header>
8569_ACEOF
8570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev/null; then
8578 if test -s conftest.err; then
8579 ac_cpp_err=$ac_c_preproc_warn_flag
8580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8581 else
8582 ac_cpp_err=
8583 fi
252b5132 8584else
42ecbf5e 8585 ac_cpp_err=yes
252b5132 8586fi
42ecbf5e
DJ
8587if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8589else
8590 echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_header_preproc=no
252b5132 8594fi
42ecbf5e
DJ
8595rm -f conftest.err conftest.$ac_ext
8596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597echo "${ECHO_T}$ac_header_preproc" >&6
8598
8599# So? What about this header?
8600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8607 ;;
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8621 (
8622 cat <<\_ASBOX
8623## ------------------------------------------ ##
8624## Report this to the AC_PACKAGE_NAME lists. ##
8625## ------------------------------------------ ##
8626_ASBOX
8627 ) |
8628 sed "s/^/$as_me: WARNING: /" >&2
8629 ;;
8630esac
8631echo "$as_me:$LINENO: checking for $ac_header" >&5
8632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8635else
42ecbf5e
DJ
8636 eval "$as_ac_Header=\$ac_header_preproc"
8637fi
8638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640
252b5132 8641fi
42ecbf5e
DJ
8642if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645_ACEOF
8646
8647fi
8648
252b5132
RH
8649done
8650
42ecbf5e
DJ
8651
8652
8653
0b48acfe 8654for ac_func in sbrk realpath glob
252b5132 8655do
42ecbf5e
DJ
8656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8657echo "$as_me:$LINENO: checking for $ac_func" >&5
8658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8659if eval "test \"\${$as_ac_var+set}\" = set"; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661else
8662 cat >conftest.$ac_ext <<_ACEOF
8663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
8668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8670#define $ac_func innocuous_$ac_func
8671
252b5132 8672/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
8673 which can conflict with char $ac_func (); below.
8674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8675 <limits.h> exists even on freestanding compilers. */
8676
8677#ifdef __STDC__
8678# include <limits.h>
8679#else
8680# include <assert.h>
8681#endif
d15b04bd 8682
42ecbf5e 8683#undef $ac_func
d15b04bd 8684
42ecbf5e
DJ
8685/* Override any gcc2 internal prototype to avoid an error. */
8686#ifdef __cplusplus
8687extern "C"
8688{
8689#endif
8690/* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692char $ac_func ();
252b5132
RH
8693/* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8697choke me
8698#else
42ecbf5e
DJ
8699char (*f) () = $ac_func;
8700#endif
8701#ifdef __cplusplus
8702}
252b5132
RH
8703#endif
8704
42ecbf5e
DJ
8705int
8706main ()
8707{
8708return f != $ac_func;
8709 ;
8710 return 0;
8711}
8712_ACEOF
8713rm -f conftest.$ac_objext conftest$ac_exeext
8714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
502bdb00
JW
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
42ecbf5e
DJ
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 eval "$as_ac_var=yes"
8736else
8737 echo "$as_me: failed program was:" >&5
8738sed 's/^/| /' conftest.$ac_ext >&5
8739
8740eval "$as_ac_var=no"
8741fi
8742rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744fi
8745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8747if test `eval echo '${'$as_ac_var'}'` = yes; then
8748 cat >>confdefs.h <<_ACEOF
8749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750_ACEOF
252b5132 8751
252b5132
RH
8752fi
8753done
8754
42ecbf5e
DJ
8755
8756
8757
8758
8759
252b5132 8760ac_header_dirent=no
42ecbf5e
DJ
8761for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8762 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8763echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8764echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8765if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768 cat >conftest.$ac_ext <<_ACEOF
8769/* confdefs.h. */
8770_ACEOF
8771cat confdefs.h >>conftest.$ac_ext
8772cat >>conftest.$ac_ext <<_ACEOF
8773/* end confdefs.h. */
252b5132
RH
8774#include <sys/types.h>
8775#include <$ac_hdr>
42ecbf5e
DJ
8776
8777int
8778main ()
8779{
8780if ((DIR *) 0)
8781return 0;
8782 ;
8783 return 0;
8784}
8785_ACEOF
8786rm -f conftest.$ac_objext
8787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
502bdb00
JW
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
42ecbf5e
DJ
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 eval "$as_ac_Header=yes"
8809else
8810 echo "$as_me: failed program was:" >&5
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
8813eval "$as_ac_Header=no"
8814fi
8815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816fi
8817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8819if test `eval echo '${'$as_ac_Header'}'` = yes; then
8820 cat >>confdefs.h <<_ACEOF
8821#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8822_ACEOF
8823
8824ac_header_dirent=$ac_hdr; break
d15b04bd 8825fi
42ecbf5e 8826
d15b04bd
L
8827done
8828# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8829if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
8830 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8831echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8832if test "${ac_cv_search_opendir+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835 ac_func_search_save_LIBS=$LIBS
8836ac_cv_search_opendir=no
8837cat >conftest.$ac_ext <<_ACEOF
8838/* confdefs.h. */
8839_ACEOF
8840cat confdefs.h >>conftest.$ac_ext
8841cat >>conftest.$ac_ext <<_ACEOF
8842/* end confdefs.h. */
8843
e5a52504 8844/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
8845#ifdef __cplusplus
8846extern "C"
8847#endif
e5a52504 8848/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
8849 builtin and then its argument prototype would still apply. */
8850char opendir ();
8851int
8852main ()
8853{
8854opendir ();
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext conftest$ac_exeext
8860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
502bdb00
JW
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
42ecbf5e
DJ
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_search_opendir="none required"
8882else
8883 echo "$as_me: failed program was:" >&5
8884sed 's/^/| /' conftest.$ac_ext >&5
8885
8886fi
8887rm -f conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889if test "$ac_cv_search_opendir" = no; then
8890 for ac_lib in dir; do
8891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8892 cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
e5a52504 8898
42ecbf5e
DJ
8899/* Override any gcc2 internal prototype to avoid an error. */
8900#ifdef __cplusplus
8901extern "C"
8902#endif
8903/* We use char because int might match the return type of a gcc2
8904 builtin and then its argument prototype would still apply. */
8905char opendir ();
8906int
8907main ()
8908{
8909opendir ();
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
502bdb00
JW
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
42ecbf5e
DJ
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_search_opendir="-l$ac_lib"
8937break
8938else
8939 echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
8942fi
8943rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 done
252b5132 8946fi
42ecbf5e
DJ
8947LIBS=$ac_func_search_save_LIBS
8948fi
8949echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8950echo "${ECHO_T}$ac_cv_search_opendir" >&6
8951if test "$ac_cv_search_opendir" != no; then
8952 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8953
d15b04bd 8954fi
252b5132
RH
8955
8956else
42ecbf5e
DJ
8957 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8958echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8959if test "${ac_cv_search_opendir+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8961else
42ecbf5e
DJ
8962 ac_func_search_save_LIBS=$LIBS
8963ac_cv_search_opendir=no
8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */
8970
252b5132 8971/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
8972#ifdef __cplusplus
8973extern "C"
8974#endif
252b5132 8975/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
8976 builtin and then its argument prototype would still apply. */
8977char opendir ();
8978int
8979main ()
8980{
8981opendir ();
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986rm -f conftest.$ac_objext conftest$ac_exeext
8987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
502bdb00
JW
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
42ecbf5e
DJ
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_search_opendir="none required"
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013fi
9014rm -f conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016if test "$ac_cv_search_opendir" = no; then
9017 for ac_lib in x; do
9018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9019 cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h. */
252b5132 9025
42ecbf5e
DJ
9026/* Override any gcc2 internal prototype to avoid an error. */
9027#ifdef __cplusplus
9028extern "C"
9029#endif
9030/* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032char opendir ();
9033int
9034main ()
9035{
9036opendir ();
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041rm -f conftest.$ac_objext conftest$ac_exeext
9042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
502bdb00
JW
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
42ecbf5e
DJ
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_search_opendir="-l$ac_lib"
9064break
9065else
9066 echo "$as_me: failed program was:" >&5
9067sed 's/^/| /' conftest.$ac_ext >&5
9068
9069fi
9070rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 done
252b5132 9073fi
42ecbf5e 9074LIBS=$ac_func_search_save_LIBS
252b5132 9075fi
42ecbf5e
DJ
9076echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9077echo "${ECHO_T}$ac_cv_search_opendir" >&6
9078if test "$ac_cv_search_opendir" != no; then
9079 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9080
d15b04bd 9081fi
252b5132
RH
9082
9083fi
9084
9085
42ecbf5e
DJ
9086echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9087echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9088if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 9090else
42ecbf5e
DJ
9091 cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h. */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h. */
34875e64 9097#include <unistd.h>
42ecbf5e
DJ
9098int
9099main ()
9100{
34875e64 9101extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106rm -f conftest.$ac_objext
9107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9108 (eval $ac_compile) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
502bdb00
JW
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
42ecbf5e
DJ
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest.$ac_objext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
34875e64
NC
9128 ld_cv_decl_getopt_unistd_h=yes
9129else
42ecbf5e
DJ
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133ld_cv_decl_getopt_unistd_h=no
34875e64 9134fi
42ecbf5e 9135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
9136fi
9137
42ecbf5e
DJ
9138echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9139echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 9140if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
9141
9142cat >>confdefs.h <<\_ACEOF
34875e64 9143#define HAVE_DECL_GETOPT 1
42ecbf5e 9144_ACEOF
34875e64
NC
9145
9146fi
42ecbf5e 9147
252b5132
RH
9148
9149case "${host}" in
a8100d5b 9150*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
9151
9152cat >>confdefs.h <<\_ACEOF
252b5132 9153#define USE_BINARY_FOPEN 1
42ecbf5e 9154_ACEOF
252b5132
RH
9155 ;;
9156esac
9157
502bdb00
JW
9158echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9159echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9160if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 9161 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9162else
42ecbf5e
DJ
9163 cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h. */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h. */
502bdb00 9169$ac_includes_default
42ecbf5e
DJ
9170int
9171main ()
9172{
502bdb00
JW
9173#ifndef strstr
9174 char *p = (char *) strstr;
9175#endif
9176
42ecbf5e
DJ
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext
9182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
502bdb00
JW
9190 { ac_try='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
42ecbf5e
DJ
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest.$ac_objext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
502bdb00 9203 ac_cv_have_decl_strstr=yes
252b5132 9204else
42ecbf5e
DJ
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
502bdb00 9208ac_cv_have_decl_strstr=no
252b5132 9209fi
42ecbf5e 9210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9211fi
502bdb00
JW
9212echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9213echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9214if test $ac_cv_have_decl_strstr = yes; then
252b5132 9215
502bdb00
JW
9216cat >>confdefs.h <<_ACEOF
9217#define HAVE_DECL_STRSTR 1
9218_ACEOF
42ecbf5e 9219
502bdb00
JW
9220
9221else
9222 cat >>confdefs.h <<_ACEOF
9223#define HAVE_DECL_STRSTR 0
42ecbf5e 9224_ACEOF
252b5132 9225
252b5132 9226
502bdb00
JW
9227fi
9228echo "$as_me:$LINENO: checking whether free is declared" >&5
9229echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9230if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 9231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9232else
42ecbf5e
DJ
9233 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
502bdb00 9239$ac_includes_default
42ecbf5e
DJ
9240int
9241main ()
9242{
502bdb00
JW
9243#ifndef free
9244 char *p = (char *) free;
9245#endif
9246
42ecbf5e
DJ
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext
9252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
502bdb00
JW
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
42ecbf5e
DJ
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
502bdb00 9273 ac_cv_have_decl_free=yes
252b5132 9274else
42ecbf5e
DJ
9275 echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
502bdb00 9278ac_cv_have_decl_free=no
252b5132 9279fi
42ecbf5e 9280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9281fi
502bdb00
JW
9282echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9283echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9284if test $ac_cv_have_decl_free = yes; then
252b5132 9285
502bdb00
JW
9286cat >>confdefs.h <<_ACEOF
9287#define HAVE_DECL_FREE 1
9288_ACEOF
42ecbf5e 9289
502bdb00
JW
9290
9291else
9292 cat >>confdefs.h <<_ACEOF
9293#define HAVE_DECL_FREE 0
42ecbf5e 9294_ACEOF
252b5132 9295
252b5132 9296
502bdb00
JW
9297fi
9298echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9299echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9300if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 9301 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9302else
42ecbf5e
DJ
9303 cat >conftest.$ac_ext <<_ACEOF
9304/* confdefs.h. */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
502bdb00 9309$ac_includes_default
42ecbf5e
DJ
9310int
9311main ()
9312{
502bdb00
JW
9313#ifndef sbrk
9314 char *p = (char *) sbrk;
9315#endif
9316
42ecbf5e
DJ
9317 ;
9318 return 0;
9319}
9320_ACEOF
9321rm -f conftest.$ac_objext
9322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
502bdb00
JW
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
42ecbf5e
DJ
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
502bdb00 9343 ac_cv_have_decl_sbrk=yes
252b5132 9344else
42ecbf5e
DJ
9345 echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
502bdb00 9348ac_cv_have_decl_sbrk=no
252b5132 9349fi
42ecbf5e 9350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9351fi
502bdb00
JW
9352echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9353echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9354if test $ac_cv_have_decl_sbrk = yes; then
9355
9356cat >>confdefs.h <<_ACEOF
9357#define HAVE_DECL_SBRK 1
9358_ACEOF
252b5132 9359
42ecbf5e 9360
502bdb00
JW
9361else
9362 cat >>confdefs.h <<_ACEOF
9363#define HAVE_DECL_SBRK 0
42ecbf5e 9364_ACEOF
252b5132 9365
252b5132 9366
502bdb00
JW
9367fi
9368echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9369echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9370if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 9371 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9372else
42ecbf5e
DJ
9373 cat >conftest.$ac_ext <<_ACEOF
9374/* confdefs.h. */
9375_ACEOF
9376cat confdefs.h >>conftest.$ac_ext
9377cat >>conftest.$ac_ext <<_ACEOF
9378/* end confdefs.h. */
502bdb00 9379$ac_includes_default
42ecbf5e
DJ
9380int
9381main ()
9382{
502bdb00
JW
9383#ifndef getenv
9384 char *p = (char *) getenv;
9385#endif
9386
42ecbf5e
DJ
9387 ;
9388 return 0;
9389}
9390_ACEOF
9391rm -f conftest.$ac_objext
9392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393 (eval $ac_compile) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
502bdb00
JW
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
42ecbf5e
DJ
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest.$ac_objext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
502bdb00 9413 ac_cv_have_decl_getenv=yes
252b5132 9414else
42ecbf5e
DJ
9415 echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
502bdb00 9418ac_cv_have_decl_getenv=no
252b5132 9419fi
42ecbf5e 9420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9421fi
502bdb00
JW
9422echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9423echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9424if test $ac_cv_have_decl_getenv = yes; then
252b5132 9425
502bdb00
JW
9426cat >>confdefs.h <<_ACEOF
9427#define HAVE_DECL_GETENV 1
9428_ACEOF
42ecbf5e 9429
502bdb00
JW
9430
9431else
9432 cat >>confdefs.h <<_ACEOF
9433#define HAVE_DECL_GETENV 0
42ecbf5e 9434_ACEOF
252b5132 9435
252b5132 9436
502bdb00
JW
9437fi
9438echo "$as_me:$LINENO: checking whether environ is declared" >&5
9439echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9440if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 9441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9442else
42ecbf5e
DJ
9443 cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
502bdb00 9449$ac_includes_default
42ecbf5e
DJ
9450int
9451main ()
9452{
502bdb00
JW
9453#ifndef environ
9454 char *p = (char *) environ;
9455#endif
9456
42ecbf5e
DJ
9457 ;
9458 return 0;
9459}
9460_ACEOF
9461rm -f conftest.$ac_objext
9462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
502bdb00
JW
9470 { ac_try='test -z "$ac_c_werror_flag"
9471 || test ! -s conftest.err'
42ecbf5e
DJ
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
502bdb00 9483 ac_cv_have_decl_environ=yes
252b5132 9484else
42ecbf5e
DJ
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
502bdb00 9488ac_cv_have_decl_environ=no
252b5132 9489fi
42ecbf5e 9490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9491fi
502bdb00
JW
9492echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9493echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9494if test $ac_cv_have_decl_environ = yes; then
252b5132 9495
502bdb00
JW
9496cat >>confdefs.h <<_ACEOF
9497#define HAVE_DECL_ENVIRON 1
9498_ACEOF
42ecbf5e 9499
502bdb00
JW
9500
9501else
9502 cat >>confdefs.h <<_ACEOF
9503#define HAVE_DECL_ENVIRON 0
42ecbf5e 9504_ACEOF
252b5132 9505
502bdb00 9506
252b5132
RH
9507fi
9508
9509
502bdb00 9510
597e2591
ILT
9511# When converting linker scripts into strings for use in emulation
9512# files, use astring.sed if the compiler supports ANSI string
9513# concatenation, or ostring.sed otherwise. This is to support the
9514# broken Microsoft MSVC compiler, which limits the length of string
9515# constants, while still supporting pre-ANSI compilers which do not
9516# support string concatenation.
42ecbf5e
DJ
9517echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9518echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9519if test "${ld_cv_string_concatenation+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
597e2591 9528
42ecbf5e
DJ
9529int
9530main ()
9531{
597e2591 9532char *a = "a" "a";
42ecbf5e
DJ
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext
9538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
502bdb00
JW
9546 { ac_try='test -z "$ac_c_werror_flag"
9547 || test ! -s conftest.err'
42ecbf5e
DJ
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
e4dabd0e 9559 ld_cv_string_concatenation=yes
597e2591 9560else
42ecbf5e
DJ
9561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564ld_cv_string_concatenation=no
597e2591 9565fi
42ecbf5e 9566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
9567fi
9568
42ecbf5e
DJ
9569echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9570echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 9571if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
9572 STRINGIFY=astring.sed
9573else
9574 STRINGIFY=ostring.sed
9575fi
9576
9577
252b5132
RH
9578# target-specific stuff:
9579
9580all_targets=
9581EMUL=
9582all_emuls=
9583all_emul_extras=
ba2be581 9584all_libpath=
252b5132
RH
9585
9586rm -f tdirs
9587
9588for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9589do
9590 if test "$targ_alias" = "all"; then
9591 all_targets=true
9592 else
9593 # Canonicalize the secondary target names.
42ecbf5e 9594 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
9595 if test -n "$result"; then
9596 targ=$result
9597 else
9598 targ=$targ_alias
9599 fi
9600
9601 . ${srcdir}/configure.tgt
9602
9603 if test "$targ" = "$target"; then
9604 EMUL=$targ_emul
9605 fi
9606
3336653a 9607 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
9608 case " $all_emuls " in
9609 *" e${i}.o "*) ;;
9610 *)
9611 all_emuls="$all_emuls e${i}.o"
9612 eval result=\$tdir_$i
9613 test -z "$result" && result=$targ_alias
9614 echo tdir_$i=$result >> tdirs
9615 ;;
d15b04bd
L
9616 esac
9617 done
3336653a 9618
42ecbf5e
DJ
9619 for i in $targ_emul $targ_extra_libpath; do
9620 case " $all_libpath " in
9621 *" ${i} "*) ;;
9622 *)
9623 if test -z "$all_libpath"; then
9624 all_libpath=${i}
9625 else
9626 all_libpath="$all_libpath ${i}"
9627 fi
9628 ;;
9629 esac
9630 done
9631
9632 for i in $targ_extra_ofiles; do
9633 case " $all_emul_extras " in
9634 *" ${i} "*) ;;
9635 *)
9636 all_emul_extras="$all_emul_extras ${i}"
9637 ;;
9638 esac
9639 done
9640 fi
9641done
9642
9643
9644
9645TDIRS=tdirs
9646
9647
9648if test x${all_targets} = xtrue; then
9649 if test x${want64} = xtrue; then
9650 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9651 else
9652 EMULATION_OFILES='$(ALL_EMULATIONS)'
9653 fi
9654 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9655else
9656 EMULATION_OFILES=$all_emuls
9657 EMUL_EXTRA_OFILES=$all_emul_extras
9658fi
9659
9660
9661
9662
9663EMULATION_LIBPATH=$all_libpath
9664
9665
9666if test x${enable_static} = xno; then
9667 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9668else
9669 TESTBFDLIB="../bfd/.libs/libbfd.a"
9670fi
9671
9672
9673target_vendor=${target_vendor=$host_vendor}
9674case "$target_vendor" in
9675 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9676 *) EXTRA_SHLIB_EXTENSION= ;;
9677esac
9678
9679case "$target_os" in
9680 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9681esac
9682
9683if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9684
9685cat >>confdefs.h <<_ACEOF
9686#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9687_ACEOF
9688
9689fi
9690
9691 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9692 ac_config_commands="$ac_config_commands default"
9693cat >confcache <<\_ACEOF
9694# This file is a shell script that caches the results of configure
9695# tests run on this system so they can be shared between configure
9696# scripts and configure runs, see configure's option --config-cache.
9697# It is not useful on other systems. If it contains results you don't
9698# want to keep, you may remove or edit it.
9699#
9700# config.status only pays attention to the cache file if you give it
9701# the --recheck option to rerun configure.
9702#
9703# `ac_cv_env_foo' variables (set or unset) will be overridden when
9704# loading this file, other *unset* `ac_cv_foo' will be assigned the
9705# following values.
9706
9707_ACEOF
9708
9709# The following way of writing the cache mishandles newlines in values,
9710# but we know of no workaround that is simple, portable, and efficient.
9711# So, don't put newlines in cache variables' values.
9712# Ultrix sh set writes to stderr and can't be redirected directly,
9713# and sets the high bit in the cache file unless we assign to the vars.
9714{
9715 (set) 2>&1 |
9716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9717 *ac_space=\ *)
9718 # `set' does not quote correctly, so add quotes (double-quote
9719 # substitution turns \\\\ into \\, and sed turns \\ into \).
9720 sed -n \
9721 "s/'/'\\\\''/g;
9722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9723 ;;
9724 *)
9725 # `set' quotes correctly as required by POSIX, so do not add quotes.
9726 sed -n \
9727 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9728 ;;
9729 esac;
9730} |
9731 sed '
9732 t clear
9733 : clear
9734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9735 t end
9736 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9737 : end' >>confcache
9738if diff $cache_file confcache >/dev/null 2>&1; then :; else
9739 if test -w $cache_file; then
9740 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9741 cat confcache >$cache_file
9742 else
9743 echo "not updating unwritable cache $cache_file"
9744 fi
9745fi
9746rm -f confcache
9747
9748test "x$prefix" = xNONE && prefix=$ac_default_prefix
9749# Let make expand exec_prefix.
9750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9751
9752# VPATH may cause trouble with some makes, so we remove $(srcdir),
9753# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9754# trailing colons and then remove the whole line if VPATH becomes empty
9755# (actually we leave an empty line to preserve line numbers).
9756if test "x$srcdir" = x.; then
9757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9758s/:*\$(srcdir):*/:/;
9759s/:*\${srcdir}:*/:/;
9760s/:*@srcdir@:*/:/;
9761s/^\([^=]*=[ ]*\):*/\1/;
9762s/:*$//;
9763s/^[^=]*=[ ]*$//;
9764}'
9765fi
9766
9767DEFS=-DHAVE_CONFIG_H
9768
9769ac_libobjs=
9770ac_ltlibobjs=
9771for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9772 # 1. Remove the extension, and $U if already installed.
9773 ac_i=`echo "$ac_i" |
9774 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9775 # 2. Add them.
9776 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9777 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9778done
9779LIBOBJS=$ac_libobjs
9780
9781LTLIBOBJS=$ac_ltlibobjs
9782
9783
9784if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9785 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9786Usually this means the macro was only invoked conditionally." >&5
9787echo "$as_me: error: conditional \"AMDEP\" was never defined.
9788Usually this means the macro was only invoked conditionally." >&2;}
9789 { (exit 1); exit 1; }; }
9790fi
9791if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9792 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9793Usually this means the macro was only invoked conditionally." >&5
9794echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9795Usually this means the macro was only invoked conditionally." >&2;}
9796 { (exit 1); exit 1; }; }
9797fi
9798if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9799 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9800Usually this means the macro was only invoked conditionally." >&5
9801echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9802Usually this means the macro was only invoked conditionally." >&2;}
9803 { (exit 1); exit 1; }; }
9804fi
9805
9806: ${CONFIG_STATUS=./config.status}
9807ac_clean_files_save=$ac_clean_files
9808ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9809{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9810echo "$as_me: creating $CONFIG_STATUS" >&6;}
9811cat >$CONFIG_STATUS <<_ACEOF
9812#! $SHELL
9813# Generated by $as_me.
9814# Run this file to recreate the current configuration.
9815# Compiler output produced by configure, useful for debugging
9816# configure, is in config.log if it exists.
9817
9818debug=false
9819ac_cs_recheck=false
9820ac_cs_silent=false
9821SHELL=\${CONFIG_SHELL-$SHELL}
9822_ACEOF
9823
9824cat >>$CONFIG_STATUS <<\_ACEOF
9825## --------------------- ##
9826## M4sh Initialization. ##
9827## --------------------- ##
9828
9829# Be Bourne compatible
9830if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9831 emulate sh
9832 NULLCMD=:
9833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9834 # is contrary to our usage. Disable this feature.
9835 alias -g '${1+"$@"}'='"$@"'
9836elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9837 set -o posix
9838fi
9839DUALCASE=1; export DUALCASE # for MKS sh
9840
9841# Support unset when possible.
9842if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9843 as_unset=unset
9844else
9845 as_unset=false
9846fi
9847
9848
9849# Work around bugs in pre-3.0 UWIN ksh.
9850$as_unset ENV MAIL MAILPATH
9851PS1='$ '
9852PS2='> '
9853PS4='+ '
9854
9855# NLS nuisances.
9856for as_var in \
9857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9859 LC_TELEPHONE LC_TIME
9860do
9861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9862 eval $as_var=C; export $as_var
9863 else
9864 $as_unset $as_var
9865 fi
9866done
9867
9868# Required to use basename.
9869if expr a : '\(a\)' >/dev/null 2>&1; then
9870 as_expr=expr
9871else
9872 as_expr=false
9873fi
9874
9875if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9876 as_basename=basename
9877else
9878 as_basename=false
9879fi
9880
9881
9882# Name of the executable.
9883as_me=`$as_basename "$0" ||
9884$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9885 X"$0" : 'X\(//\)$' \| \
9886 X"$0" : 'X\(/\)$' \| \
9887 . : '\(.\)' 2>/dev/null ||
9888echo X/"$0" |
9889 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9890 /^X\/\(\/\/\)$/{ s//\1/; q; }
9891 /^X\/\(\/\).*/{ s//\1/; q; }
9892 s/.*/./; q'`
9893
9894
9895# PATH needs CR, and LINENO needs CR and PATH.
9896# Avoid depending upon Character Ranges.
9897as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9898as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9899as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9900as_cr_digits='0123456789'
9901as_cr_alnum=$as_cr_Letters$as_cr_digits
9902
9903# The user is always right.
9904if test "${PATH_SEPARATOR+set}" != set; then
9905 echo "#! /bin/sh" >conf$$.sh
9906 echo "exit 0" >>conf$$.sh
9907 chmod +x conf$$.sh
9908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9909 PATH_SEPARATOR=';'
9910 else
9911 PATH_SEPARATOR=:
9912 fi
9913 rm -f conf$$.sh
9914fi
9915
e5a52504 9916
42ecbf5e
DJ
9917 as_lineno_1=$LINENO
9918 as_lineno_2=$LINENO
9919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9920 test "x$as_lineno_1" != "x$as_lineno_2" &&
9921 test "x$as_lineno_3" = "x$as_lineno_2" || {
9922 # Find who we are. Look in the path if we contain no path at all
9923 # relative or not.
9924 case $0 in
9925 *[\\/]* ) as_myself=$0 ;;
9926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9932done
9933
9934 ;;
9935 esac
9936 # We did not find ourselves, most probably we were run as `sh COMMAND'
9937 # in which case we are not to be found in the path.
9938 if test "x$as_myself" = x; then
9939 as_myself=$0
9940 fi
9941 if test ! -f "$as_myself"; then
9942 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9943echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9944 { (exit 1); exit 1; }; }
252b5132 9945 fi
42ecbf5e
DJ
9946 case $CONFIG_SHELL in
9947 '')
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
9953 for as_base in sh bash ksh sh5; do
9954 case $as_dir in
9955 /*)
9956 if ("$as_dir/$as_base" -c '
9957 as_lineno_1=$LINENO
9958 as_lineno_2=$LINENO
9959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9960 test "x$as_lineno_1" != "x$as_lineno_2" &&
9961 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9962 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9963 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9964 CONFIG_SHELL=$as_dir/$as_base
9965 export CONFIG_SHELL
9966 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9967 fi;;
9968 esac
9969 done
252b5132 9970done
42ecbf5e
DJ
9971;;
9972 esac
252b5132 9973
42ecbf5e
DJ
9974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9975 # uniformly replaced by the line number. The first 'sed' inserts a
9976 # line-number line before each line; the second 'sed' does the real
9977 # work. The second script uses 'N' to pair each line-number line
9978 # with the numbered line, and appends trailing '-' during
9979 # substitution so that $LINENO is not a special case at line end.
9980 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9981 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9982 sed '=' <$as_myself |
9983 sed '
9984 N
9985 s,$,-,
9986 : loop
9987 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9988 t loop
9989 s,-$,,
9990 s,^['$as_cr_digits']*\n,,
9991 ' >$as_me.lineno &&
9992 chmod +x $as_me.lineno ||
9993 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9994echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9995 { (exit 1); exit 1; }; }
9996
9997 # Don't try to exec as it changes $[0], causing all sort of problems
9998 # (the dirname of $[0] is not the place where we might find the
9999 # original and so on. Autoconf is especially sensible to this).
10000 . ./$as_me.lineno
10001 # Exit status is that of the last command.
10002 exit
10003}
252b5132
RH
10004
10005
42ecbf5e
DJ
10006case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10007 *c*,-n*) ECHO_N= ECHO_C='
10008' ECHO_T=' ' ;;
10009 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10010 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10011esac
252b5132 10012
42ecbf5e
DJ
10013if expr a : '\(a\)' >/dev/null 2>&1; then
10014 as_expr=expr
10015else
10016 as_expr=false
10017fi
252b5132 10018
42ecbf5e
DJ
10019rm -f conf$$ conf$$.exe conf$$.file
10020echo >conf$$.file
10021if ln -s conf$$.file conf$$ 2>/dev/null; then
10022 # We could just check for DJGPP; but this test a) works b) is more generic
10023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10024 if test -f conf$$.exe; then
10025 # Don't use ln at all; we don't have any links
10026 as_ln_s='cp -p'
252b5132 10027 else
42ecbf5e 10028 as_ln_s='ln -s'
252b5132 10029 fi
42ecbf5e
DJ
10030elif ln conf$$.file conf$$ 2>/dev/null; then
10031 as_ln_s=ln
e5a52504 10032else
42ecbf5e 10033 as_ln_s='cp -p'
e5a52504 10034fi
42ecbf5e 10035rm -f conf$$ conf$$.exe conf$$.file
252b5132 10036
42ecbf5e
DJ
10037if mkdir -p . 2>/dev/null; then
10038 as_mkdir_p=:
10039else
10040 test -d ./-p && rmdir ./-p
10041 as_mkdir_p=false
10042fi
252b5132 10043
42ecbf5e 10044as_executable_p="test -f"
252b5132 10045
42ecbf5e
DJ
10046# Sed expression to map a string onto a valid CPP name.
10047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 10048
42ecbf5e
DJ
10049# Sed expression to map a string onto a valid variable name.
10050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 10051
e5a52504 10052
42ecbf5e
DJ
10053# IFS
10054# We need space, tab and new line, in precisely that order.
10055as_nl='
10056'
10057IFS=" $as_nl"
e5a52504 10058
42ecbf5e
DJ
10059# CDPATH.
10060$as_unset CDPATH
e5a52504 10061
42ecbf5e 10062exec 6>&1
e5a52504 10063
42ecbf5e
DJ
10064# Open the log real soon, to keep \$[0] and so on meaningful, and to
10065# report actual input values of CONFIG_FILES etc. instead of their
10066# values after options handling. Logging --version etc. is OK.
10067exec 5>>config.log
10068{
10069 echo
10070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10071## Running $as_me. ##
10072_ASBOX
10073} >&5
10074cat >&5 <<_CSEOF
e5a52504 10075
42ecbf5e
DJ
10076This file was extended by $as_me, which was
10077generated by GNU Autoconf 2.59. Invocation command line was
10078
10079 CONFIG_FILES = $CONFIG_FILES
10080 CONFIG_HEADERS = $CONFIG_HEADERS
10081 CONFIG_LINKS = $CONFIG_LINKS
10082 CONFIG_COMMANDS = $CONFIG_COMMANDS
10083 $ $0 $@
e5a52504 10084
42ecbf5e
DJ
10085_CSEOF
10086echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10087echo >&5
10088_ACEOF
10089
10090# Files that config.status was made for.
10091if test -n "$ac_config_files"; then
10092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 10093fi
e5a52504 10094
42ecbf5e
DJ
10095if test -n "$ac_config_headers"; then
10096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10097fi
10098
10099if test -n "$ac_config_links"; then
10100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10101fi
10102
10103if test -n "$ac_config_commands"; then
10104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10105fi
10106
10107cat >>$CONFIG_STATUS <<\_ACEOF
10108
10109ac_cs_usage="\
10110\`$as_me' instantiates files from templates according to the
10111current configuration.
10112
10113Usage: $0 [OPTIONS] [FILE]...
10114
10115 -h, --help print this help, then exit
10116 -V, --version print version number, then exit
10117 -q, --quiet do not print progress messages
10118 -d, --debug don't remove temporary files
10119 --recheck update $as_me by reconfiguring in the same conditions
10120 --file=FILE[:TEMPLATE]
10121 instantiate the configuration file FILE
10122 --header=FILE[:TEMPLATE]
10123 instantiate the configuration header FILE
10124
10125Configuration files:
10126$config_files
10127
10128Configuration headers:
10129$config_headers
10130
10131Configuration commands:
10132$config_commands
10133
10134Report bugs to <bug-autoconf@gnu.org>."
10135_ACEOF
10136
10137cat >>$CONFIG_STATUS <<_ACEOF
10138ac_cs_version="\\
10139config.status
10140configured by $0, generated by GNU Autoconf 2.59,
10141 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10142
10143Copyright (C) 2003 Free Software Foundation, Inc.
10144This config.status script is free software; the Free Software Foundation
10145gives unlimited permission to copy, distribute and modify it."
10146srcdir=$srcdir
10147INSTALL="$INSTALL"
10148_ACEOF
10149
10150cat >>$CONFIG_STATUS <<\_ACEOF
10151# If no file are specified by the user, then we need to provide default
10152# value. By we need to know if files were specified by the user.
10153ac_need_defaults=:
10154while test $# != 0
10155do
10156 case $1 in
10157 --*=*)
10158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10160 ac_shift=:
252b5132 10161 ;;
42ecbf5e
DJ
10162 -*)
10163 ac_option=$1
10164 ac_optarg=$2
10165 ac_shift=shift
252b5132 10166 ;;
42ecbf5e
DJ
10167 *) # This is not an option, so the user has probably given explicit
10168 # arguments.
10169 ac_option=$1
10170 ac_need_defaults=false;;
10171 esac
252b5132 10172
42ecbf5e
DJ
10173 case $ac_option in
10174 # Handling of the options.
10175_ACEOF
10176cat >>$CONFIG_STATUS <<\_ACEOF
10177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10178 ac_cs_recheck=: ;;
10179 --version | --vers* | -V )
10180 echo "$ac_cs_version"; exit 0 ;;
10181 --he | --h)
10182 # Conflict between --help and --header
10183 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10184Try \`$0 --help' for more information." >&5
10185echo "$as_me: error: ambiguous option: $1
10186Try \`$0 --help' for more information." >&2;}
10187 { (exit 1); exit 1; }; };;
10188 --help | --hel | -h )
10189 echo "$ac_cs_usage"; exit 0 ;;
10190 --debug | --d* | -d )
10191 debug=: ;;
10192 --file | --fil | --fi | --f )
10193 $ac_shift
10194 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10195 ac_need_defaults=false;;
10196 --header | --heade | --head | --hea )
10197 $ac_shift
10198 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10199 ac_need_defaults=false;;
10200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10202 ac_cs_silent=: ;;
252b5132 10203
42ecbf5e
DJ
10204 # This is an error.
10205 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10206Try \`$0 --help' for more information." >&5
10207echo "$as_me: error: unrecognized option: $1
10208Try \`$0 --help' for more information." >&2;}
10209 { (exit 1); exit 1; }; } ;;
252b5132 10210
42ecbf5e 10211 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 10212
42ecbf5e
DJ
10213 esac
10214 shift
10215done
d15b04bd 10216
42ecbf5e 10217ac_configure_extra_args=
e5a52504 10218
42ecbf5e
DJ
10219if $ac_cs_silent; then
10220 exec 6>/dev/null
10221 ac_configure_extra_args="$ac_configure_extra_args --silent"
10222fi
e5a52504 10223
42ecbf5e
DJ
10224_ACEOF
10225cat >>$CONFIG_STATUS <<_ACEOF
10226if \$ac_cs_recheck; then
10227 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10228 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10229fi
10230
10231_ACEOF
10232
10233cat >>$CONFIG_STATUS <<_ACEOF
252b5132 10234#
42ecbf5e 10235# INIT-COMMANDS section.
252b5132 10236#
252b5132 10237
42ecbf5e
DJ
10238AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10239
10240_ACEOF
10241
10242
10243
10244cat >>$CONFIG_STATUS <<\_ACEOF
10245for ac_config_target in $ac_config_targets
252b5132 10246do
42ecbf5e
DJ
10247 case "$ac_config_target" in
10248 # Handling of arguments.
10249 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10250 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10251 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10252 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10253 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10255echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10256 { (exit 1); exit 1; }; };;
252b5132
RH
10257 esac
10258done
10259
42ecbf5e
DJ
10260# If the user did not use the arguments to specify the items to instantiate,
10261# then the envvar interface is used. Set only those that are not.
10262# We use the long form for the default assignment because of an extremely
10263# bizarre bug on SunOS 4.1.3.
10264if $ac_need_defaults; then
10265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10268fi
10269
10270# Have a temporary directory for convenience. Make it in the build tree
10271# simply because there is no reason to put it here, and in addition,
10272# creating and moving files from /tmp can sometimes cause problems.
10273# Create a temporary directory, and hook for its removal unless debugging.
10274$debug ||
10275{
10276 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10277 trap '{ (exit 1); exit 1; }' 1 2 13 15
10278}
10279
10280# Create a (secure) tmp directory for tmp files.
e5a52504 10281
42ecbf5e
DJ
10282{
10283 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10284 test -n "$tmp" && test -d "$tmp"
10285} ||
10286{
10287 tmp=./confstat$$-$RANDOM
10288 (umask 077 && mkdir $tmp)
10289} ||
10290{
10291 echo "$me: cannot create a temporary directory in ." >&2
10292 { (exit 1); exit 1; }
10293}
e5a52504 10294
42ecbf5e 10295_ACEOF
d15b04bd 10296
42ecbf5e
DJ
10297cat >>$CONFIG_STATUS <<_ACEOF
10298
10299#
10300# CONFIG_FILES section.
10301#
10302
10303# No need to generate the scripts if there are no CONFIG_FILES.
10304# This happens for instance when ./config.status config.h
10305if test -n "\$CONFIG_FILES"; then
10306 # Protect against being on the right side of a sed subst in config.status.
10307 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10308 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10309s,@SHELL@,$SHELL,;t t
10310s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10311s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10312s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10313s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10314s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10315s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10316s,@exec_prefix@,$exec_prefix,;t t
10317s,@prefix@,$prefix,;t t
10318s,@program_transform_name@,$program_transform_name,;t t
10319s,@bindir@,$bindir,;t t
10320s,@sbindir@,$sbindir,;t t
10321s,@libexecdir@,$libexecdir,;t t
10322s,@datadir@,$datadir,;t t
10323s,@sysconfdir@,$sysconfdir,;t t
10324s,@sharedstatedir@,$sharedstatedir,;t t
10325s,@localstatedir@,$localstatedir,;t t
10326s,@libdir@,$libdir,;t t
10327s,@includedir@,$includedir,;t t
10328s,@oldincludedir@,$oldincludedir,;t t
10329s,@infodir@,$infodir,;t t
10330s,@mandir@,$mandir,;t t
10331s,@build_alias@,$build_alias,;t t
10332s,@host_alias@,$host_alias,;t t
10333s,@target_alias@,$target_alias,;t t
10334s,@DEFS@,$DEFS,;t t
10335s,@ECHO_C@,$ECHO_C,;t t
10336s,@ECHO_N@,$ECHO_N,;t t
10337s,@ECHO_T@,$ECHO_T,;t t
10338s,@LIBS@,$LIBS,;t t
10339s,@build@,$build,;t t
10340s,@build_cpu@,$build_cpu,;t t
10341s,@build_vendor@,$build_vendor,;t t
10342s,@build_os@,$build_os,;t t
10343s,@host@,$host,;t t
10344s,@host_cpu@,$host_cpu,;t t
10345s,@host_vendor@,$host_vendor,;t t
10346s,@host_os@,$host_os,;t t
10347s,@target@,$target,;t t
10348s,@target_cpu@,$target_cpu,;t t
10349s,@target_vendor@,$target_vendor,;t t
10350s,@target_os@,$target_os,;t t
10351s,@CC@,$CC,;t t
10352s,@CFLAGS@,$CFLAGS,;t t
10353s,@LDFLAGS@,$LDFLAGS,;t t
10354s,@CPPFLAGS@,$CPPFLAGS,;t t
10355s,@ac_ct_CC@,$ac_ct_CC,;t t
10356s,@EXEEXT@,$EXEEXT,;t t
10357s,@OBJEXT@,$OBJEXT,;t t
10358s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10359s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10360s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10361s,@CYGPATH_W@,$CYGPATH_W,;t t
10362s,@PACKAGE@,$PACKAGE,;t t
10363s,@VERSION@,$VERSION,;t t
10364s,@ACLOCAL@,$ACLOCAL,;t t
10365s,@AUTOCONF@,$AUTOCONF,;t t
10366s,@AUTOMAKE@,$AUTOMAKE,;t t
10367s,@AUTOHEADER@,$AUTOHEADER,;t t
10368s,@MAKEINFO@,$MAKEINFO,;t t
10369s,@install_sh@,$install_sh,;t t
10370s,@STRIP@,$STRIP,;t t
10371s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10372s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10373s,@mkdir_p@,$mkdir_p,;t t
10374s,@AWK@,$AWK,;t t
10375s,@SET_MAKE@,$SET_MAKE,;t t
10376s,@am__leading_dot@,$am__leading_dot,;t t
10377s,@AMTAR@,$AMTAR,;t t
10378s,@am__tar@,$am__tar,;t t
10379s,@am__untar@,$am__untar,;t t
10380s,@DEPDIR@,$DEPDIR,;t t
10381s,@am__include@,$am__include,;t t
10382s,@am__quote@,$am__quote,;t t
10383s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10384s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10385s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10386s,@CCDEPMODE@,$CCDEPMODE,;t t
10387s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10388s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10389s,@LN_S@,$LN_S,;t t
10390s,@RANLIB@,$RANLIB,;t t
10391s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10392s,@LIBTOOL@,$LIBTOOL,;t t
10393s,@use_sysroot@,$use_sysroot,;t t
10394s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10395s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10396s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10397s,@NO_WERROR@,$NO_WERROR,;t t
10398s,@CPP@,$CPP,;t t
10399s,@EGREP@,$EGREP,;t t
10400s,@ALLOCA@,$ALLOCA,;t t
10401s,@USE_NLS@,$USE_NLS,;t t
10402s,@MSGFMT@,$MSGFMT,;t t
10403s,@GMSGFMT@,$GMSGFMT,;t t
10404s,@XGETTEXT@,$XGETTEXT,;t t
10405s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10406s,@CATALOGS@,$CATALOGS,;t t
10407s,@CATOBJEXT@,$CATOBJEXT,;t t
10408s,@DATADIRNAME@,$DATADIRNAME,;t t
10409s,@GMOFILES@,$GMOFILES,;t t
10410s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10411s,@INTLDEPS@,$INTLDEPS,;t t
10412s,@INTLLIBS@,$INTLLIBS,;t t
10413s,@INTLOBJS@,$INTLOBJS,;t t
10414s,@POFILES@,$POFILES,;t t
10415s,@POSUB@,$POSUB,;t t
10416s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10417s,@GT_NO@,$GT_NO,;t t
10418s,@GT_YES@,$GT_YES,;t t
10419s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10420s,@l@,$l,;t t
10421s,@YACC@,$YACC,;t t
10422s,@LEX@,$LEX,;t t
10423s,@LEXLIB@,$LEXLIB,;t t
10424s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10425s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10426s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10427s,@MAINT@,$MAINT,;t t
10428s,@HDEFINES@,$HDEFINES,;t t
10429s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10430s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10431s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10432s,@STRINGIFY@,$STRINGIFY,;t t
10433s,@EMUL@,$EMUL,;t t
10434s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10435s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10436s,@LIB_PATH@,$LIB_PATH,;t t
10437s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10438s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10439s,@LIBOBJS@,$LIBOBJS,;t t
10440s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10441/@TDIRS@/r $TDIRS
10442s,@TDIRS@,,;t t
252b5132 10443CEOF
252b5132 10444
42ecbf5e
DJ
10445_ACEOF
10446
10447 cat >>$CONFIG_STATUS <<\_ACEOF
10448 # Split the substitutions into bite-sized pieces for seds with
10449 # small command number limits, like on Digital OSF/1 and HP-UX.
10450 ac_max_sed_lines=48
10451 ac_sed_frag=1 # Number of current file.
10452 ac_beg=1 # First line for current file.
10453 ac_end=$ac_max_sed_lines # Line after last line for current file.
10454 ac_more_lines=:
10455 ac_sed_cmds=
10456 while $ac_more_lines; do
10457 if test $ac_beg -gt 1; then
10458 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10459 else
10460 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10461 fi
10462 if test ! -s $tmp/subs.frag; then
10463 ac_more_lines=false
252b5132 10464 else
42ecbf5e
DJ
10465 # The purpose of the label and of the branching condition is to
10466 # speed up the sed processing (if there are no `@' at all, there
10467 # is no need to browse any of the substitutions).
10468 # These are the two extra sed commands mentioned above.
10469 (echo ':t
10470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10471 if test -z "$ac_sed_cmds"; then
10472 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10473 else
10474 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10475 fi
10476 ac_sed_frag=`expr $ac_sed_frag + 1`
10477 ac_beg=$ac_end
10478 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 10479 fi
42ecbf5e
DJ
10480 done
10481 if test -z "$ac_sed_cmds"; then
10482 ac_sed_cmds=cat
252b5132 10483 fi
42ecbf5e 10484fi # test -n "$CONFIG_FILES"
252b5132 10485
42ecbf5e
DJ
10486_ACEOF
10487cat >>$CONFIG_STATUS <<\_ACEOF
10488for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 10489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
10490 case $ac_file in
10491 - | *:- | *:-:* ) # input from stdin
10492 cat >$tmp/stdin
10493 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10495 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10497 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10498 esac
10499
42ecbf5e
DJ
10500 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10501 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10502$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10503 X"$ac_file" : 'X\(//\)[^/]' \| \
10504 X"$ac_file" : 'X\(//\)$' \| \
10505 X"$ac_file" : 'X\(/\)' \| \
10506 . : '\(.\)' 2>/dev/null ||
10507echo X"$ac_file" |
10508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10510 /^X\(\/\/\)$/{ s//\1/; q; }
10511 /^X\(\/\).*/{ s//\1/; q; }
10512 s/.*/./; q'`
10513 { if $as_mkdir_p; then
10514 mkdir -p "$ac_dir"
d15b04bd 10515 else
42ecbf5e
DJ
10516 as_dir="$ac_dir"
10517 as_dirs=
10518 while test ! -d "$as_dir"; do
10519 as_dirs="$as_dir $as_dirs"
10520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10522 X"$as_dir" : 'X\(//\)[^/]' \| \
10523 X"$as_dir" : 'X\(//\)$' \| \
10524 X"$as_dir" : 'X\(/\)' \| \
10525 . : '\(.\)' 2>/dev/null ||
10526echo X"$as_dir" |
10527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10529 /^X\(\/\/\)$/{ s//\1/; q; }
10530 /^X\(\/\).*/{ s//\1/; q; }
10531 s/.*/./; q'`
10532 done
10533 test ! -n "$as_dirs" || mkdir $as_dirs
10534 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10535echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10536 { (exit 1); exit 1; }; }; }
10537
10538 ac_builddir=.
10539
10540if test "$ac_dir" != .; then
10541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10542 # A "../" for each directory in $ac_dir_suffix.
10543 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10544else
10545 ac_dir_suffix= ac_top_builddir=
10546fi
252b5132 10547
42ecbf5e
DJ
10548case $srcdir in
10549 .) # No --srcdir option. We are building in place.
10550 ac_srcdir=.
10551 if test -z "$ac_top_builddir"; then
10552 ac_top_srcdir=.
10553 else
10554 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10555 fi ;;
10556 [\\/]* | ?:[\\/]* ) # Absolute path.
10557 ac_srcdir=$srcdir$ac_dir_suffix;
10558 ac_top_srcdir=$srcdir ;;
252b5132 10559 *) # Relative path.
42ecbf5e
DJ
10560 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10561 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10562esac
10563
10564# Do not use `cd foo && pwd` to compute absolute paths, because
10565# the directories may not exist.
10566case `pwd` in
10567.) ac_abs_builddir="$ac_dir";;
10568*)
10569 case "$ac_dir" in
10570 .) ac_abs_builddir=`pwd`;;
10571 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10572 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10573 esac;;
10574esac
10575case $ac_abs_builddir in
10576.) ac_abs_top_builddir=${ac_top_builddir}.;;
10577*)
10578 case ${ac_top_builddir}. in
10579 .) ac_abs_top_builddir=$ac_abs_builddir;;
10580 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10581 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10582 esac;;
10583esac
10584case $ac_abs_builddir in
10585.) ac_abs_srcdir=$ac_srcdir;;
10586*)
10587 case $ac_srcdir in
10588 .) ac_abs_srcdir=$ac_abs_builddir;;
10589 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10590 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10591 esac;;
10592esac
10593case $ac_abs_builddir in
10594.) ac_abs_top_srcdir=$ac_top_srcdir;;
10595*)
10596 case $ac_top_srcdir in
10597 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10598 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10599 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10600 esac;;
10601esac
252b5132 10602
e5a52504 10603
42ecbf5e
DJ
10604 case $INSTALL in
10605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10606 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 10607 esac
e5a52504 10608
502bdb00
JW
10609 if test x"$ac_file" != x-; then
10610 { echo "$as_me:$LINENO: creating $ac_file" >&5
10611echo "$as_me: creating $ac_file" >&6;}
10612 rm -f "$ac_file"
10613 fi
42ecbf5e
DJ
10614 # Let's still pretend it is `configure' which instantiates (i.e., don't
10615 # use $as_me), people would be surprised to read:
10616 # /* config.h. Generated by config.status. */
10617 if test x"$ac_file" = x-; then
10618 configure_input=
10619 else
10620 configure_input="$ac_file. "
10621 fi
10622 configure_input=$configure_input"Generated from `echo $ac_file_in |
10623 sed 's,.*/,,'` by configure."
10624
10625 # First look for the input files in the build tree, otherwise in the
10626 # src tree.
10627 ac_file_inputs=`IFS=:
10628 for f in $ac_file_in; do
10629 case $f in
10630 -) echo $tmp/stdin ;;
10631 [\\/$]*)
10632 # Absolute (can't be DOS-style, as IFS=:)
10633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10634echo "$as_me: error: cannot find input file: $f" >&2;}
10635 { (exit 1); exit 1; }; }
10636 echo "$f";;
10637 *) # Relative
10638 if test -f "$f"; then
10639 # Build tree
10640 echo "$f"
10641 elif test -f "$srcdir/$f"; then
10642 # Source tree
10643 echo "$srcdir/$f"
10644 else
10645 # /dev/null tree
10646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10647echo "$as_me: error: cannot find input file: $f" >&2;}
10648 { (exit 1); exit 1; }; }
10649 fi;;
10650 esac
10651 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
10652_ACEOF
10653cat >>$CONFIG_STATUS <<_ACEOF
10654 sed "$ac_vpsub
10655$extrasub
10656_ACEOF
10657cat >>$CONFIG_STATUS <<\_ACEOF
10658:t
10659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10660s,@configure_input@,$configure_input,;t t
10661s,@srcdir@,$ac_srcdir,;t t
10662s,@abs_srcdir@,$ac_abs_srcdir,;t t
10663s,@top_srcdir@,$ac_top_srcdir,;t t
10664s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10665s,@builddir@,$ac_builddir,;t t
10666s,@abs_builddir@,$ac_abs_builddir,;t t
10667s,@top_builddir@,$ac_top_builddir,;t t
10668s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10669s,@INSTALL@,$ac_INSTALL,;t t
10670" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10671 rm -f $tmp/stdin
10672 if test x"$ac_file" != x-; then
10673 mv $tmp/out $ac_file
10674 else
10675 cat $tmp/out
10676 rm -f $tmp/out
10677 fi
10678
10679done
10680_ACEOF
10681cat >>$CONFIG_STATUS <<\_ACEOF
10682
10683#
10684# CONFIG_HEADER section.
10685#
252b5132
RH
10686
10687# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10688# NAME is the cpp macro being defined and VALUE is the value it is being given.
10689#
10690# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
10691ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10692ac_dB='[ ].*$,\1#\2'
10693ac_dC=' '
10694ac_dD=',;t'
10695# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10696ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10697ac_uB='$,\1#\2define\3'
252b5132 10698ac_uC=' '
42ecbf5e
DJ
10699ac_uD=',;t'
10700
10701for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 10702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
10703 case $ac_file in
10704 - | *:- | *:-:* ) # input from stdin
10705 cat >$tmp/stdin
10706 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10708 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10710 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10711 esac
10712
42ecbf5e
DJ
10713 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10714echo "$as_me: creating $ac_file" >&6;}
10715
10716 # First look for the input files in the build tree, otherwise in the
10717 # src tree.
10718 ac_file_inputs=`IFS=:
10719 for f in $ac_file_in; do
10720 case $f in
10721 -) echo $tmp/stdin ;;
10722 [\\/$]*)
10723 # Absolute (can't be DOS-style, as IFS=:)
10724 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10725echo "$as_me: error: cannot find input file: $f" >&2;}
10726 { (exit 1); exit 1; }; }
10727 # Do quote $f, to prevent DOS paths from being IFS'd.
10728 echo "$f";;
10729 *) # Relative
10730 if test -f "$f"; then
10731 # Build tree
10732 echo "$f"
10733 elif test -f "$srcdir/$f"; then
10734 # Source tree
10735 echo "$srcdir/$f"
10736 else
10737 # /dev/null tree
10738 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10739echo "$as_me: error: cannot find input file: $f" >&2;}
10740 { (exit 1); exit 1; }; }
10741 fi;;
10742 esac
10743 done` || { (exit 1); exit 1; }
10744 # Remove the trailing spaces.
10745 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10746
10747_ACEOF
10748
10749# Transform confdefs.h into two sed scripts, `conftest.defines' and
10750# `conftest.undefs', that substitutes the proper values into
10751# config.h.in to produce config.h. The first handles `#define'
10752# templates, and the second `#undef' templates.
10753# And first: Protect against being on the right side of a sed subst in
10754# config.status. Protect against being in an unquoted here document
10755# in config.status.
10756rm -f conftest.defines conftest.undefs
10757# Using a here document instead of a string reduces the quoting nightmare.
10758# Putting comments in sed scripts is not portable.
10759#
10760# `end' is used to avoid that the second main sed command (meant for
10761# 0-ary CPP macros) applies to n-ary macro definitions.
10762# See the Autoconf documentation for `clear'.
10763cat >confdef2sed.sed <<\_ACEOF
10764s/[\\&,]/\\&/g
10765s,[\\$`],\\&,g
10766t clear
10767: clear
10768s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10769t end
10770s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10771: end
10772_ACEOF
10773# If some macros were called several times there might be several times
10774# the same #defines, which is useless. Nevertheless, we may not want to
10775# sort them, since we want the *last* AC-DEFINE to be honored.
10776uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10777sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10778rm -f confdef2sed.sed
252b5132
RH
10779
10780# This sed command replaces #undef with comments. This is necessary, for
10781# example, in the case of _POSIX_SOURCE, which is predefined and required
10782# on some systems where configure will not decide to define it.
42ecbf5e
DJ
10783cat >>conftest.undefs <<\_ACEOF
10784s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10785_ACEOF
10786
10787# Break up conftest.defines because some shells have a limit on the size
10788# of here documents, and old seds have small limits too (100 cmds).
10789echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10790echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10791echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10792echo ' :' >>$CONFIG_STATUS
10793rm -f conftest.tail
10794while grep . conftest.defines >/dev/null
10795do
10796 # Write a limited-size here document to $tmp/defines.sed.
10797 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10798 # Speed up: don't consider the non `#define' lines.
10799 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10800 # Work around the forget-to-reset-the-flag bug.
10801 echo 't clr' >>$CONFIG_STATUS
10802 echo ': clr' >>$CONFIG_STATUS
10803 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10804 echo 'CEOF
10805 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10806 rm -f $tmp/in
10807 mv $tmp/out $tmp/in
10808' >>$CONFIG_STATUS
10809 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10810 rm -f conftest.defines
10811 mv conftest.tail conftest.defines
10812done
10813rm -f conftest.defines
10814echo ' fi # grep' >>$CONFIG_STATUS
10815echo >>$CONFIG_STATUS
252b5132 10816
42ecbf5e
DJ
10817# Break up conftest.undefs because some shells have a limit on the size
10818# of here documents, and old seds have small limits too (100 cmds).
10819echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10820rm -f conftest.tail
42ecbf5e 10821while grep . conftest.undefs >/dev/null
252b5132 10822do
42ecbf5e
DJ
10823 # Write a limited-size here document to $tmp/undefs.sed.
10824 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10825 # Speed up: don't consider the non `#undef'
10826 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10827 # Work around the forget-to-reset-the-flag bug.
10828 echo 't clr' >>$CONFIG_STATUS
10829 echo ': clr' >>$CONFIG_STATUS
10830 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10831 echo 'CEOF
42ecbf5e
DJ
10832 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10833 rm -f $tmp/in
10834 mv $tmp/out $tmp/in
10835' >>$CONFIG_STATUS
10836 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10837 rm -f conftest.undefs
10838 mv conftest.tail conftest.undefs
252b5132 10839done
42ecbf5e
DJ
10840rm -f conftest.undefs
10841
10842cat >>$CONFIG_STATUS <<\_ACEOF
10843 # Let's still pretend it is `configure' which instantiates (i.e., don't
10844 # use $as_me), people would be surprised to read:
10845 # /* config.h. Generated by config.status. */
10846 if test x"$ac_file" = x-; then
10847 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 10848 else
42ecbf5e
DJ
10849 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10850 fi
10851 cat $tmp/in >>$tmp/config.h
10852 rm -f $tmp/in
10853 if test x"$ac_file" != x-; then
10854 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10856echo "$as_me: $ac_file is unchanged" >&6;}
10857 else
10858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10860 X"$ac_file" : 'X\(//\)[^/]' \| \
10861 X"$ac_file" : 'X\(//\)$' \| \
10862 X"$ac_file" : 'X\(/\)' \| \
10863 . : '\(.\)' 2>/dev/null ||
10864echo X"$ac_file" |
10865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10867 /^X\(\/\/\)$/{ s//\1/; q; }
10868 /^X\(\/\).*/{ s//\1/; q; }
10869 s/.*/./; q'`
10870 { if $as_mkdir_p; then
10871 mkdir -p "$ac_dir"
10872 else
10873 as_dir="$ac_dir"
10874 as_dirs=
10875 while test ! -d "$as_dir"; do
10876 as_dirs="$as_dir $as_dirs"
10877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879 X"$as_dir" : 'X\(//\)[^/]' \| \
10880 X"$as_dir" : 'X\(//\)$' \| \
10881 X"$as_dir" : 'X\(/\)' \| \
10882 . : '\(.\)' 2>/dev/null ||
10883echo X"$as_dir" |
10884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10886 /^X\(\/\/\)$/{ s//\1/; q; }
10887 /^X\(\/\).*/{ s//\1/; q; }
10888 s/.*/./; q'`
10889 done
10890 test ! -n "$as_dirs" || mkdir $as_dirs
10891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10892echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10893 { (exit 1); exit 1; }; }; }
10894
10895 rm -f $ac_file
10896 mv $tmp/config.h $ac_file
252b5132 10897 fi
42ecbf5e
DJ
10898 else
10899 cat $tmp/config.h
10900 rm -f $tmp/config.h
e5a52504 10901 fi
42ecbf5e
DJ
10902# Compute $ac_file's index in $config_headers.
10903_am_stamp_count=1
10904for _am_header in $config_headers :; do
10905 case $_am_header in
10906 $ac_file | $ac_file:* )
10907 break ;;
10908 * )
10909 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10910 esac
10911done
10912echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10913$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10914 X$ac_file : 'X\(//\)[^/]' \| \
10915 X$ac_file : 'X\(//\)$' \| \
10916 X$ac_file : 'X\(/\)' \| \
10917 . : '\(.\)' 2>/dev/null ||
10918echo X$ac_file |
10919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10921 /^X\(\/\/\)$/{ s//\1/; q; }
10922 /^X\(\/\).*/{ s//\1/; q; }
10923 s/.*/./; q'`/stamp-h$_am_stamp_count
10924done
10925_ACEOF
10926cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 10927
42ecbf5e
DJ
10928#
10929# CONFIG_COMMANDS section.
10930#
10931for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10932 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10933 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10934 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10935$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10936 X"$ac_dest" : 'X\(//\)[^/]' \| \
10937 X"$ac_dest" : 'X\(//\)$' \| \
10938 X"$ac_dest" : 'X\(/\)' \| \
10939 . : '\(.\)' 2>/dev/null ||
10940echo X"$ac_dest" |
10941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10943 /^X\(\/\/\)$/{ s//\1/; q; }
10944 /^X\(\/\).*/{ s//\1/; q; }
10945 s/.*/./; q'`
10946 { if $as_mkdir_p; then
10947 mkdir -p "$ac_dir"
10948 else
10949 as_dir="$ac_dir"
10950 as_dirs=
10951 while test ! -d "$as_dir"; do
10952 as_dirs="$as_dir $as_dirs"
10953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10955 X"$as_dir" : 'X\(//\)[^/]' \| \
10956 X"$as_dir" : 'X\(//\)$' \| \
10957 X"$as_dir" : 'X\(/\)' \| \
10958 . : '\(.\)' 2>/dev/null ||
10959echo X"$as_dir" |
10960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10962 /^X\(\/\/\)$/{ s//\1/; q; }
10963 /^X\(\/\).*/{ s//\1/; q; }
10964 s/.*/./; q'`
10965 done
10966 test ! -n "$as_dirs" || mkdir $as_dirs
10967 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10968echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10969 { (exit 1); exit 1; }; }; }
e5a52504 10970
42ecbf5e 10971 ac_builddir=.
e5a52504 10972
42ecbf5e
DJ
10973if test "$ac_dir" != .; then
10974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10975 # A "../" for each directory in $ac_dir_suffix.
10976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10977else
10978 ac_dir_suffix= ac_top_builddir=
10979fi
10980
10981case $srcdir in
10982 .) # No --srcdir option. We are building in place.
10983 ac_srcdir=.
10984 if test -z "$ac_top_builddir"; then
10985 ac_top_srcdir=.
10986 else
10987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10988 fi ;;
10989 [\\/]* | ?:[\\/]* ) # Absolute path.
10990 ac_srcdir=$srcdir$ac_dir_suffix;
10991 ac_top_srcdir=$srcdir ;;
10992 *) # Relative path.
10993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10995esac
10996
10997# Do not use `cd foo && pwd` to compute absolute paths, because
10998# the directories may not exist.
10999case `pwd` in
11000.) ac_abs_builddir="$ac_dir";;
11001*)
11002 case "$ac_dir" in
11003 .) ac_abs_builddir=`pwd`;;
11004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11006 esac;;
11007esac
11008case $ac_abs_builddir in
11009.) ac_abs_top_builddir=${ac_top_builddir}.;;
11010*)
11011 case ${ac_top_builddir}. in
11012 .) ac_abs_top_builddir=$ac_abs_builddir;;
11013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11015 esac;;
11016esac
11017case $ac_abs_builddir in
11018.) ac_abs_srcdir=$ac_srcdir;;
11019*)
11020 case $ac_srcdir in
11021 .) ac_abs_srcdir=$ac_abs_builddir;;
11022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11024 esac;;
11025esac
11026case $ac_abs_builddir in
11027.) ac_abs_top_srcdir=$ac_top_srcdir;;
11028*)
11029 case $ac_top_srcdir in
11030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11033 esac;;
11034esac
11035
11036
11037 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11038echo "$as_me: executing $ac_dest commands" >&6;}
11039 case $ac_dest in
11040 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11041 # Strip MF so we end up with the name of the file.
11042 mf=`echo "$mf" | sed -e 's/:.*$//'`
11043 # Check whether this is an Automake generated Makefile or not.
11044 # We used to match only the files named `Makefile.in', but
11045 # some people rename them; so instead we look at the file content.
11046 # Grep'ing the first line is not enough: some people post-process
11047 # each Makefile.in and add a new line on top of each file to say so.
11048 # So let's grep whole file.
11049 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11050 dirpart=`(dirname "$mf") 2>/dev/null ||
11051$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11052 X"$mf" : 'X\(//\)[^/]' \| \
11053 X"$mf" : 'X\(//\)$' \| \
11054 X"$mf" : 'X\(/\)' \| \
11055 . : '\(.\)' 2>/dev/null ||
11056echo X"$mf" |
11057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11059 /^X\(\/\/\)$/{ s//\1/; q; }
11060 /^X\(\/\).*/{ s//\1/; q; }
11061 s/.*/./; q'`
11062 else
11063 continue
11064 fi
11065 # Extract the definition of DEPDIR, am__include, and am__quote
11066 # from the Makefile without running `make'.
11067 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11068 test -z "$DEPDIR" && continue
11069 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11070 test -z "am__include" && continue
11071 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11072 # When using ansi2knr, U may be empty or an underscore; expand it
11073 U=`sed -n 's/^U = //p' < "$mf"`
11074 # Find all dependency output files, they are included files with
11075 # $(DEPDIR) in their names. We invoke sed twice because it is the
11076 # simplest approach to changing $(DEPDIR) to its actual value in the
11077 # expansion.
11078 for file in `sed -n "
11079 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11080 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11081 # Make sure the directory exists.
11082 test -f "$dirpart/$file" && continue
11083 fdir=`(dirname "$file") 2>/dev/null ||
11084$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11085 X"$file" : 'X\(//\)[^/]' \| \
11086 X"$file" : 'X\(//\)$' \| \
11087 X"$file" : 'X\(/\)' \| \
11088 . : '\(.\)' 2>/dev/null ||
11089echo X"$file" |
11090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11092 /^X\(\/\/\)$/{ s//\1/; q; }
11093 /^X\(\/\).*/{ s//\1/; q; }
11094 s/.*/./; q'`
11095 { if $as_mkdir_p; then
11096 mkdir -p $dirpart/$fdir
11097 else
11098 as_dir=$dirpart/$fdir
11099 as_dirs=
11100 while test ! -d "$as_dir"; do
11101 as_dirs="$as_dir $as_dirs"
11102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11104 X"$as_dir" : 'X\(//\)[^/]' \| \
11105 X"$as_dir" : 'X\(//\)$' \| \
11106 X"$as_dir" : 'X\(/\)' \| \
11107 . : '\(.\)' 2>/dev/null ||
11108echo X"$as_dir" |
11109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11111 /^X\(\/\/\)$/{ s//\1/; q; }
11112 /^X\(\/\).*/{ s//\1/; q; }
11113 s/.*/./; q'`
11114 done
11115 test ! -n "$as_dirs" || mkdir $as_dirs
11116 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11117echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11118 { (exit 1); exit 1; }; }; }
11119
11120 # echo "creating $dirpart/$file"
11121 echo '# dummy' > "$dirpart/$file"
11122 done
11123done
11124 ;;
11125 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11126 esac
11127done
11128_ACEOF
11129
11130cat >>$CONFIG_STATUS <<\_ACEOF
11131
11132{ (exit 0); exit 0; }
11133_ACEOF
252b5132 11134chmod +x $CONFIG_STATUS
42ecbf5e
DJ
11135ac_clean_files=$ac_clean_files_save
11136
11137
11138# configure is writing to config.log, and then calls config.status.
11139# config.status does its own redirection, appending to config.log.
11140# Unfortunately, on DOS this fails, as config.log is still kept open
11141# by configure, so config.status won't be able to write to it; its
11142# output is simply discarded. So we exec the FD to /dev/null,
11143# effectively closing config.log, so it can be properly (re)opened and
11144# appended to by config.status. When coming back to configure, we
11145# need to make the FD available again.
11146if test "$no_create" != yes; then
11147 ac_cs_success=:
11148 ac_config_status_args=
11149 test "$silent" = yes &&
11150 ac_config_status_args="$ac_config_status_args --quiet"
11151 exec 5>/dev/null
11152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11153 exec 5>>config.log
11154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11155 # would make configure fail if this is the last instruction.
11156 $ac_cs_success || { (exit 1); exit 1; }
11157fi
252b5132 11158
This page took 0.84653 seconds and 4 git commands to generate.