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