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