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