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