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