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