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