2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
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 \
44
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
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
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
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; }; }
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).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if 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
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
224
as_executable_p="test -f"
226
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
# We need space, tab and new line, in precisely that order.
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245
# so uname gets run too.
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
ac_default_prefix=/usr/local
254
ac_config_libobj_dir=.
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Maximum number of lines to put in a shell here document.
262
# This variable seems obsolete. It should probably be removed, and
263
# only ac_max_sed_lines should be used.
264
: ${ac_max_here_lines=38}
266
# Identity of this package.
273
ac_unique_file="argp.h"
274
# Factoring default headers for most tests.
275
ac_includes_default="\
278
# include <sys/types.h>
281
# include <sys/stat.h>
292
# if !STDC_HEADERS && HAVE_MEMORY_H
298
# include <strings.h>
301
# include <inttypes.h>
311
ac_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 CPPFLAGS CFLAGS CC LDFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP ARGP_GETOPT_O_FILES LIBOBJS LTLIBOBJS'
314
# Initialize some variables set by options.
316
ac_init_version=false
317
# The variables have the same names as the options, with
318
# dashes changed to underlines.
326
program_transform_name=s,x,x,
334
# Installation directory options.
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
336
# and all the variables that are supposed to be based on exec_prefix
337
# by default will actually change.
338
# Use braces instead of parens because sh, perl, etc. also accept them.
339
bindir='${exec_prefix}/bin'
340
sbindir='${exec_prefix}/sbin'
341
libexecdir='${exec_prefix}/libexec'
342
datadir='${prefix}/share'
343
sysconfdir='${prefix}/etc'
344
sharedstatedir='${prefix}/com'
345
localstatedir='${prefix}/var'
346
libdir='${exec_prefix}/lib'
347
includedir='${prefix}/include'
348
oldincludedir='/usr/include'
349
infodir='${prefix}/info'
350
mandir='${prefix}/man'
355
# If the previous option needs an argument, assign it.
356
if test -n "$ac_prev"; then
357
eval "$ac_prev=\$ac_option"
362
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
# Accept the important Cygnus configure options, so we can diagnose typos.
368
-bindir | --bindir | --bindi | --bind | --bin | --bi)
370
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
-build | --build | --buil | --bui | --bu)
374
ac_prev=build_alias ;;
375
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
376
build_alias=$ac_optarg ;;
378
-cache-file | --cache-file | --cache-fil | --cache-fi \
379
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380
ac_prev=cache_file ;;
381
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383
cache_file=$ac_optarg ;;
386
cache_file=config.cache ;;
388
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
datadir=$ac_optarg ;;
394
-disable-* | --disable-*)
395
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396
# Reject names that are not valid shell variable names.
397
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
399
{ (exit 1); exit 1; }; }
400
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401
eval "enable_$ac_feature=no" ;;
403
-enable-* | --enable-*)
404
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405
# Reject names that are not valid shell variable names.
406
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
408
{ (exit 1); exit 1; }; }
409
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
eval "enable_$ac_feature='$ac_optarg'" ;;
416
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418
| --exec | --exe | --ex)
419
ac_prev=exec_prefix ;;
420
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422
| --exec=* | --exe=* | --ex=*)
423
exec_prefix=$ac_optarg ;;
425
-gas | --gas | --ga | --g)
426
# Obsolete; use --with-gas.
429
-help | --help | --hel | --he | -h)
431
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432
ac_init_help=recursive ;;
433
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434
ac_init_help=short ;;
436
-host | --host | --hos | --ho)
437
ac_prev=host_alias ;;
438
-host=* | --host=* | --hos=* | --ho=*)
439
host_alias=$ac_optarg ;;
441
-includedir | --includedir | --includedi | --included | --include \
442
| --includ | --inclu | --incl | --inc)
443
ac_prev=includedir ;;
444
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445
| --includ=* | --inclu=* | --incl=* | --inc=*)
446
includedir=$ac_optarg ;;
448
-infodir | --infodir | --infodi | --infod | --info | --inf)
450
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451
infodir=$ac_optarg ;;
453
-libdir | --libdir | --libdi | --libd)
455
-libdir=* | --libdir=* | --libdi=* | --libd=*)
458
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459
| --libexe | --libex | --libe)
460
ac_prev=libexecdir ;;
461
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462
| --libexe=* | --libex=* | --libe=*)
463
libexecdir=$ac_optarg ;;
465
-localstatedir | --localstatedir | --localstatedi | --localstated \
466
| --localstate | --localstat | --localsta | --localst \
467
| --locals | --local | --loca | --loc | --lo)
468
ac_prev=localstatedir ;;
469
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
471
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472
localstatedir=$ac_optarg ;;
474
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480
# Obsolete; use --without-fp.
483
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
484
| --no-cr | --no-c | -n)
487
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
488
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493
| --oldin | --oldi | --old | --ol | --o)
494
ac_prev=oldincludedir ;;
495
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498
oldincludedir=$ac_optarg ;;
500
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
-program-prefix | --program-prefix | --program-prefi | --program-pref \
506
| --program-pre | --program-pr | --program-p)
507
ac_prev=program_prefix ;;
508
-program-prefix=* | --program-prefix=* | --program-prefi=* \
509
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510
program_prefix=$ac_optarg ;;
512
-program-suffix | --program-suffix | --program-suffi | --program-suff \
513
| --program-suf | --program-su | --program-s)
514
ac_prev=program_suffix ;;
515
-program-suffix=* | --program-suffix=* | --program-suffi=* \
516
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517
program_suffix=$ac_optarg ;;
519
-program-transform-name | --program-transform-name \
520
| --program-transform-nam | --program-transform-na \
521
| --program-transform-n | --program-transform- \
522
| --program-transform | --program-transfor \
523
| --program-transfo | --program-transf \
524
| --program-trans | --program-tran \
525
| --progr-tra | --program-tr | --program-t)
526
ac_prev=program_transform_name ;;
527
-program-transform-name=* | --program-transform-name=* \
528
| --program-transform-nam=* | --program-transform-na=* \
529
| --program-transform-n=* | --program-transform-=* \
530
| --program-transform=* | --program-transfor=* \
531
| --program-transfo=* | --program-transf=* \
532
| --program-trans=* | --program-tran=* \
533
| --progr-tra=* | --program-tr=* | --program-t=*)
534
program_transform_name=$ac_optarg ;;
536
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
537
| -silent | --silent | --silen | --sile | --sil)
540
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
sbindir=$ac_optarg ;;
546
-sharedstatedir | --sharedstatedir | --sharedstatedi \
547
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548
| --sharedst | --shareds | --shared | --share | --shar \
550
ac_prev=sharedstatedir ;;
551
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
sharedstatedir=$ac_optarg ;;
557
-site | --site | --sit)
559
-site=* | --site=* | --sit=*)
562
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568
| --syscon | --sysco | --sysc | --sys | --sy)
569
ac_prev=sysconfdir ;;
570
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572
sysconfdir=$ac_optarg ;;
574
-target | --target | --targe | --targ | --tar | --ta | --t)
575
ac_prev=target_alias ;;
576
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577
target_alias=$ac_optarg ;;
579
-v | -verbose | --verbose | --verbos | --verbo | --verb)
582
-version | --version | --versio | --versi | --vers | -V)
586
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587
# Reject names that are not valid shell variable names.
588
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
{ echo "$as_me: error: invalid package name: $ac_package" >&2
590
{ (exit 1); exit 1; }; }
591
ac_package=`echo $ac_package| sed 's/-/_/g'`
593
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
eval "with_$ac_package='$ac_optarg'" ;;
598
-without-* | --without-*)
599
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600
# Reject names that are not valid shell variable names.
601
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602
{ echo "$as_me: error: invalid package name: $ac_package" >&2
603
{ (exit 1); exit 1; }; }
604
ac_package=`echo $ac_package | sed 's/-/_/g'`
605
eval "with_$ac_package=no" ;;
608
# Obsolete; use --with-x.
611
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612
| --x-incl | --x-inc | --x-in | --x-i)
613
ac_prev=x_includes ;;
614
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616
x_includes=$ac_optarg ;;
618
-x-libraries | --x-libraries | --x-librarie | --x-librari \
619
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620
ac_prev=x_libraries ;;
621
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623
x_libraries=$ac_optarg ;;
625
-*) { echo "$as_me: error: unrecognized option: $ac_option
626
Try \`$0 --help' for more information." >&2
627
{ (exit 1); exit 1; }; }
631
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632
# Reject names that are not valid shell variable names.
633
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635
{ (exit 1); exit 1; }; }
636
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637
eval "$ac_envvar='$ac_optarg'"
641
# FIXME: should be removed in autoconf 3.0.
642
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
if test -n "$ac_prev"; then
652
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653
{ echo "$as_me: error: missing argument to $ac_option" >&2
654
{ (exit 1); exit 1; }; }
657
# Be sure to have absolute paths.
658
for ac_var in exec_prefix prefix
660
eval ac_val=$`echo $ac_var`
662
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664
{ (exit 1); exit 1; }; };;
668
# Be sure to have absolute paths.
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670
localstatedir libdir includedir oldincludedir infodir mandir
672
eval ac_val=$`echo $ac_var`
674
[\\/$]* | ?:[\\/]* ) ;;
675
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676
{ (exit 1); exit 1; }; };;
680
# There might be people who depend on the old broken behavior: `$host'
681
# used to hold the argument of --host etc.
682
# FIXME: To remove some day.
687
# FIXME: To remove some day.
688
if test "x$host_alias" != x; then
689
if test "x$build_alias" = x; then
690
cross_compiling=maybe
691
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692
If a cross compiler is detected then cross compile mode will be used." >&2
693
elif test "x$build_alias" != "x$host_alias"; then
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
test "$silent" = yes && exec 6>/dev/null
704
# Find the source files, if location was not specified.
705
if test -z "$srcdir"; then
706
ac_srcdir_defaulted=yes
707
# Try the directory containing this script, then its parent.
708
ac_confdir=`(dirname "$0") 2>/dev/null ||
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710
X"$0" : 'X\(//\)[^/]' \| \
711
X"$0" : 'X\(//\)$' \| \
712
X"$0" : 'X\(/\)' \| \
713
. : '\(.\)' 2>/dev/null ||
715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
717
/^X\(\/\/\)$/{ s//\1/; q; }
718
/^X\(\/\).*/{ s//\1/; q; }
721
if test ! -r $srcdir/$ac_unique_file; then
725
ac_srcdir_defaulted=no
727
if test ! -r $srcdir/$ac_unique_file; then
728
if test "$ac_srcdir_defaulted" = yes; then
729
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730
{ (exit 1); exit 1; }; }
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733
{ (exit 1); exit 1; }; }
736
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738
{ (exit 1); exit 1; }; }
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740
ac_env_build_alias_set=${build_alias+set}
741
ac_env_build_alias_value=$build_alias
742
ac_cv_env_build_alias_set=${build_alias+set}
743
ac_cv_env_build_alias_value=$build_alias
744
ac_env_host_alias_set=${host_alias+set}
745
ac_env_host_alias_value=$host_alias
746
ac_cv_env_host_alias_set=${host_alias+set}
747
ac_cv_env_host_alias_value=$host_alias
748
ac_env_target_alias_set=${target_alias+set}
749
ac_env_target_alias_value=$target_alias
750
ac_cv_env_target_alias_set=${target_alias+set}
751
ac_cv_env_target_alias_value=$target_alias
752
ac_env_CC_set=${CC+set}
754
ac_cv_env_CC_set=${CC+set}
755
ac_cv_env_CC_value=$CC
756
ac_env_CFLAGS_set=${CFLAGS+set}
757
ac_env_CFLAGS_value=$CFLAGS
758
ac_cv_env_CFLAGS_set=${CFLAGS+set}
759
ac_cv_env_CFLAGS_value=$CFLAGS
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
761
ac_env_LDFLAGS_value=$LDFLAGS
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765
ac_env_CPPFLAGS_value=$CPPFLAGS
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768
ac_env_CPP_set=${CPP+set}
769
ac_env_CPP_value=$CPP
770
ac_cv_env_CPP_set=${CPP+set}
771
ac_cv_env_CPP_value=$CPP
774
# Report the --help message.
776
if test "$ac_init_help" = "long"; then
777
# Omit some internal or obsolete options to make the list less imposing.
778
# This message is too long to be a string in the A/UX 3.1 sh.
780
\`configure' configures this package to adapt to many kinds of systems.
782
Usage: $0 [OPTION]... [VAR=VALUE]...
784
To assign environment variables (e.g., CC, CFLAGS...), specify them as
785
VAR=VALUE. See below for descriptions of some of the useful variables.
787
Defaults for the options are specified in brackets.
790
-h, --help display this help and exit
791
--help=short display options specific to this package
792
--help=recursive display the short help of all the included packages
793
-V, --version display version information and exit
794
-q, --quiet, --silent do not print \`checking...' messages
795
--cache-file=FILE cache test results in FILE [disabled]
796
-C, --config-cache alias for \`--cache-file=config.cache'
797
-n, --no-create do not create output files
798
--srcdir=DIR find the sources in DIR [configure dir or \`..']
803
Installation directories:
804
--prefix=PREFIX install architecture-independent files in PREFIX
806
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809
By default, \`make install' will install all the files in
810
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812
for instance \`--prefix=\$HOME'.
814
For better control, use the options below.
816
Fine tuning of the installation directories:
817
--bindir=DIR user executables [EPREFIX/bin]
818
--sbindir=DIR system admin executables [EPREFIX/sbin]
819
--libexecdir=DIR program executables [EPREFIX/libexec]
820
--datadir=DIR read-only architecture-independent data [PREFIX/share]
821
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
824
--libdir=DIR object code libraries [EPREFIX/lib]
825
--includedir=DIR C header files [PREFIX/include]
826
--oldincludedir=DIR C header files for non-gcc [/usr/include]
827
--infodir=DIR info documentation [PREFIX/info]
828
--mandir=DIR man documentation [PREFIX/man]
835
if test -n "$ac_init_help"; then
840
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842
--with-dmalloc build with the dmalloc library
844
Some influential environment variables:
845
CC C compiler command
846
CFLAGS C compiler flags
847
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848
nonstandard directory <lib dir>
849
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850
headers in a nonstandard directory <include dir>
853
Use these variables to override the choices made by `configure' or to help
854
it to find libraries and programs with nonstandard names/locations.
859
if test "$ac_init_help" = "recursive"; then
860
# If there are subdirs, report their specific --help.
862
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863
test -d $ac_dir || continue
866
if test "$ac_dir" != .; then
867
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868
# A "../" for each directory in $ac_dir_suffix.
869
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871
ac_dir_suffix= ac_top_builddir=
875
.) # No --srcdir option. We are building in place.
877
if test -z "$ac_top_builddir"; then
880
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882
[\\/]* | ?:[\\/]* ) # Absolute path.
883
ac_srcdir=$srcdir$ac_dir_suffix;
884
ac_top_srcdir=$srcdir ;;
886
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887
ac_top_srcdir=$ac_top_builddir$srcdir ;;
889
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
891
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
892
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
893
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
894
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
897
# Check for guested configure; otherwise get Cygnus style configure.
898
if test -f $ac_srcdir/configure.gnu; then
900
$SHELL $ac_srcdir/configure.gnu --help=recursive
901
elif test -f $ac_srcdir/configure; then
903
$SHELL $ac_srcdir/configure --help=recursive
904
elif test -f $ac_srcdir/configure.ac ||
905
test -f $ac_srcdir/configure.in; then
909
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
915
test -n "$ac_init_help" && exit 0
916
if $ac_init_version; then
919
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920
Free Software Foundation, Inc.
921
This configure script is free software; the Free Software Foundation
922
gives unlimited permission to copy, distribute and modify it.
928
This file contains any messages produced by compilers while
929
running configure, to aid debugging if configure makes a mistake.
931
It was created by $as_me, which was
932
generated by GNU Autoconf 2.57. Invocation command line was
943
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944
uname -m = `(uname -m) 2>/dev/null || echo unknown`
945
uname -r = `(uname -r) 2>/dev/null || echo unknown`
946
uname -s = `(uname -s) 2>/dev/null || echo unknown`
947
uname -v = `(uname -v) 2>/dev/null || echo unknown`
949
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
952
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
953
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
954
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
956
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
957
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
958
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966
test -z "$as_dir" && as_dir=.
982
# Keep a trace of the command line.
983
# Strip out --no-create and --no-recursion so they do not pile up.
984
# Strip out --silent because we don't want to record it for future runs.
985
# Also quote any args containing shell meta-characters.
986
# Make two passes to allow for proper duplicate-argument suppression.
991
ac_must_keep_next=false
997
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
998
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
999
| -silent | --silent | --silen | --sile | --sil)
1001
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1005
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1007
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1008
if test $ac_must_keep_next = true; then
1009
ac_must_keep_next=false # Got value, back to normal.
1012
*=* | --config-cache | -C | -disable-* | --disable-* \
1013
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1014
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1015
| -with-* | --with-* | -without-* | --without-* | --x)
1016
case "$ac_configure_args0 " in
1017
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1020
-* ) ac_must_keep_next=true ;;
1023
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1024
# Get rid of the leading space.
1030
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1031
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1033
# When interrupted or exit'd, cleanup temporary files, and complete
1034
# config.log. We remove comments because anyway the quotes in there
1035
# would cause problems or look ugly.
1036
# WARNING: Be sure not to use single quotes in there, as some shells,
1037
# such as our DU 5.0 friend, will then `close' the trap.
1038
trap 'exit_status=$?
1039
# Save into config.log some information that might help in debugging.
1044
## ---------------- ##
1045
## Cache variables. ##
1046
## ---------------- ##
1049
# The following way of writing the cache mishandles newlines in values,
1052
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1055
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1056
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1067
## ----------------- ##
1068
## Output variables. ##
1069
## ----------------- ##
1072
for ac_var in $ac_subst_vars
1074
eval ac_val=$`echo $ac_var`
1075
echo "$ac_var='"'"'$ac_val'"'"'"
1079
if test -n "$ac_subst_files"; then
1086
for ac_var in $ac_subst_files
1088
eval ac_val=$`echo $ac_var`
1089
echo "$ac_var='"'"'$ac_val'"'"'"
1094
if test -s confdefs.h; then
1101
sed "/^$/d" confdefs.h | sort
1104
test "$ac_signal" != 0 &&
1105
echo "$as_me: caught signal $ac_signal"
1106
echo "$as_me: exit $exit_status"
1108
rm -f core core.* *.core &&
1109
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1112
for ac_signal in 1 2 13 15; do
1113
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1118
rm -rf conftest* confdefs.h
1119
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1122
# Predefined preprocessor variables.
1124
cat >>confdefs.h <<_ACEOF
1125
#define PACKAGE_NAME "$PACKAGE_NAME"
1129
cat >>confdefs.h <<_ACEOF
1130
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134
cat >>confdefs.h <<_ACEOF
1135
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1139
cat >>confdefs.h <<_ACEOF
1140
#define PACKAGE_STRING "$PACKAGE_STRING"
1144
cat >>confdefs.h <<_ACEOF
1145
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149
# Let the site file select an alternate cache file if it wants to.
1150
# Prefer explicitly selected file to automatically selected ones.
1151
if test -z "$CONFIG_SITE"; then
1152
if test "x$prefix" != xNONE; then
1153
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1158
for ac_site_file in $CONFIG_SITE; do
1159
if test -r "$ac_site_file"; then
1160
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161
echo "$as_me: loading site script $ac_site_file" >&6;}
1162
sed 's/^/| /' "$ac_site_file" >&5
1167
if test -r "$cache_file"; then
1168
# Some versions of bash will fail to source /dev/null (special
1169
# files actually), so we avoid doing that.
1170
if test -f "$cache_file"; then
1171
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172
echo "$as_me: loading cache $cache_file" >&6;}
1174
[\\/]* | ?:[\\/]* ) . $cache_file;;
1175
*) . ./$cache_file;;
1179
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180
echo "$as_me: creating cache $cache_file" >&6;}
1184
# Check that the precious variables saved in the cache have kept the same
1186
ac_cache_corrupted=false
1187
for ac_var in `(set) 2>&1 |
1188
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190
eval ac_new_set=\$ac_env_${ac_var}_set
1191
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192
eval ac_new_val="\$ac_env_${ac_var}_value"
1193
case $ac_old_set,$ac_new_set in
1195
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197
ac_cache_corrupted=: ;;
1199
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201
ac_cache_corrupted=: ;;
1204
if test "x$ac_old_val" != "x$ac_new_val"; then
1205
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208
echo "$as_me: former value: $ac_old_val" >&2;}
1209
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210
echo "$as_me: current value: $ac_new_val" >&2;}
1211
ac_cache_corrupted=:
1214
# Pass precious variables to config.status.
1215
if test "$ac_new_set" = set; then
1217
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219
*) ac_arg=$ac_var=$ac_new_val ;;
1221
case " $ac_configure_args " in
1222
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227
if $ac_cache_corrupted; then
1228
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232
{ (exit 1); exit 1; }; }
1236
ac_cpp='$CPP $CPPFLAGS'
1237
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260
# configure.in for "libargp".
1261
# Process this file with autoconf to produce a configure script.
1263
# Let the user set CPPFLAGS and CFLAGS on the ./configure command-line
1265
if test -z "$CFLAGS" ; then
1266
if test -z "$CC" ; then
1267
CFLAGS="-g -O -Wall" #provide a default for CFLAGS for gcc
1269
CFLAGS="-O" #provide a default for CFLAGS for others
1276
ac_cpp='$CPP $CPPFLAGS'
1277
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
if test -n "$ac_tool_prefix"; then
1281
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1282
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1283
echo "$as_me:$LINENO: checking for $ac_word" >&5
1284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1285
if test "${ac_cv_prog_CC+set}" = set; then
1286
echo $ECHO_N "(cached) $ECHO_C" >&6
1288
if test -n "$CC"; then
1289
ac_cv_prog_CC="$CC" # Let the user override the test.
1291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295
test -z "$as_dir" && as_dir=.
1296
for ac_exec_ext in '' $ac_executable_extensions; do
1297
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1298
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1299
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1308
if test -n "$CC"; then
1309
echo "$as_me:$LINENO: result: $CC" >&5
1310
echo "${ECHO_T}$CC" >&6
1312
echo "$as_me:$LINENO: result: no" >&5
1313
echo "${ECHO_T}no" >&6
1317
if test -z "$ac_cv_prog_CC"; then
1319
# Extract the first word of "gcc", so it can be a program name with args.
1320
set dummy gcc; ac_word=$2
1321
echo "$as_me:$LINENO: checking for $ac_word" >&5
1322
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1323
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1324
echo $ECHO_N "(cached) $ECHO_C" >&6
1326
if test -n "$ac_ct_CC"; then
1327
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333
test -z "$as_dir" && as_dir=.
1334
for ac_exec_ext in '' $ac_executable_extensions; do
1335
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1336
ac_cv_prog_ac_ct_CC="gcc"
1337
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1345
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1346
if test -n "$ac_ct_CC"; then
1347
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1348
echo "${ECHO_T}$ac_ct_CC" >&6
1350
echo "$as_me:$LINENO: result: no" >&5
1351
echo "${ECHO_T}no" >&6
1359
if test -z "$CC"; then
1360
if test -n "$ac_tool_prefix"; then
1361
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1362
set dummy ${ac_tool_prefix}cc; ac_word=$2
1363
echo "$as_me:$LINENO: checking for $ac_word" >&5
1364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365
if test "${ac_cv_prog_CC+set}" = set; then
1366
echo $ECHO_N "(cached) $ECHO_C" >&6
1368
if test -n "$CC"; then
1369
ac_cv_prog_CC="$CC" # Let the user override the test.
1371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375
test -z "$as_dir" && as_dir=.
1376
for ac_exec_ext in '' $ac_executable_extensions; do
1377
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378
ac_cv_prog_CC="${ac_tool_prefix}cc"
1379
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388
if test -n "$CC"; then
1389
echo "$as_me:$LINENO: result: $CC" >&5
1390
echo "${ECHO_T}$CC" >&6
1392
echo "$as_me:$LINENO: result: no" >&5
1393
echo "${ECHO_T}no" >&6
1397
if test -z "$ac_cv_prog_CC"; then
1399
# Extract the first word of "cc", so it can be a program name with args.
1400
set dummy cc; ac_word=$2
1401
echo "$as_me:$LINENO: checking for $ac_word" >&5
1402
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404
echo $ECHO_N "(cached) $ECHO_C" >&6
1406
if test -n "$ac_ct_CC"; then
1407
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413
test -z "$as_dir" && as_dir=.
1414
for ac_exec_ext in '' $ac_executable_extensions; do
1415
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416
ac_cv_prog_ac_ct_CC="cc"
1417
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426
if test -n "$ac_ct_CC"; then
1427
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428
echo "${ECHO_T}$ac_ct_CC" >&6
1430
echo "$as_me:$LINENO: result: no" >&5
1431
echo "${ECHO_T}no" >&6
1440
if test -z "$CC"; then
1441
# Extract the first word of "cc", so it can be a program name with args.
1442
set dummy cc; ac_word=$2
1443
echo "$as_me:$LINENO: checking for $ac_word" >&5
1444
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445
if test "${ac_cv_prog_CC+set}" = set; then
1446
echo $ECHO_N "(cached) $ECHO_C" >&6
1448
if test -n "$CC"; then
1449
ac_cv_prog_CC="$CC" # Let the user override the test.
1452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456
test -z "$as_dir" && as_dir=.
1457
for ac_exec_ext in '' $ac_executable_extensions; do
1458
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1460
ac_prog_rejected=yes
1464
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470
if test $ac_prog_rejected = yes; then
1471
# We found a bogon in the path, so make sure we never use it.
1472
set dummy $ac_cv_prog_CC
1474
if test $# != 0; then
1475
# We chose a different compiler from the bogus one.
1476
# However, it has the same basename, so the bogon will be chosen
1477
# first if we set CC to just the basename; use the full file name.
1479
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1485
if test -n "$CC"; then
1486
echo "$as_me:$LINENO: result: $CC" >&5
1487
echo "${ECHO_T}$CC" >&6
1489
echo "$as_me:$LINENO: result: no" >&5
1490
echo "${ECHO_T}no" >&6
1494
if test -z "$CC"; then
1495
if test -n "$ac_tool_prefix"; then
1498
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1499
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1500
echo "$as_me:$LINENO: checking for $ac_word" >&5
1501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502
if test "${ac_cv_prog_CC+set}" = set; then
1503
echo $ECHO_N "(cached) $ECHO_C" >&6
1505
if test -n "$CC"; then
1506
ac_cv_prog_CC="$CC" # Let the user override the test.
1508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512
test -z "$as_dir" && as_dir=.
1513
for ac_exec_ext in '' $ac_executable_extensions; do
1514
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1516
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525
if test -n "$CC"; then
1526
echo "$as_me:$LINENO: result: $CC" >&5
1527
echo "${ECHO_T}$CC" >&6
1529
echo "$as_me:$LINENO: result: no" >&5
1530
echo "${ECHO_T}no" >&6
1533
test -n "$CC" && break
1536
if test -z "$CC"; then
1540
# Extract the first word of "$ac_prog", so it can be a program name with args.
1541
set dummy $ac_prog; ac_word=$2
1542
echo "$as_me:$LINENO: checking for $ac_word" >&5
1543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1545
echo $ECHO_N "(cached) $ECHO_C" >&6
1547
if test -n "$ac_ct_CC"; then
1548
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554
test -z "$as_dir" && as_dir=.
1555
for ac_exec_ext in '' $ac_executable_extensions; do
1556
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557
ac_cv_prog_ac_ct_CC="$ac_prog"
1558
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1567
if test -n "$ac_ct_CC"; then
1568
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1569
echo "${ECHO_T}$ac_ct_CC" >&6
1571
echo "$as_me:$LINENO: result: no" >&5
1572
echo "${ECHO_T}no" >&6
1575
test -n "$ac_ct_CC" && break
1584
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1585
See \`config.log' for more details." >&5
1586
echo "$as_me: error: no acceptable C compiler found in \$PATH
1587
See \`config.log' for more details." >&2;}
1588
{ (exit 1); exit 1; }; }
1590
# Provide some information about the compiler.
1591
echo "$as_me:$LINENO:" \
1592
"checking for C compiler version" >&5
1593
ac_compiler=`set X $ac_compile; echo $2`
1594
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1595
(eval $ac_compiler --version </dev/null >&5) 2>&5
1597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598
(exit $ac_status); }
1599
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1600
(eval $ac_compiler -v </dev/null >&5) 2>&5
1602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603
(exit $ac_status); }
1604
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1605
(eval $ac_compiler -V </dev/null >&5) 2>&5
1607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608
(exit $ac_status); }
1610
cat >conftest.$ac_ext <<_ACEOF
1611
#line $LINENO "configure"
1614
cat confdefs.h >>conftest.$ac_ext
1615
cat >>conftest.$ac_ext <<_ACEOF
1616
/* end confdefs.h. */
1626
ac_clean_files_save=$ac_clean_files
1627
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1628
# Try to create an executable without -o first, disregard a.out.
1629
# It will help us diagnose broken compilers, and finding out an intuition
1631
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1632
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1633
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1634
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1635
(eval $ac_link_default) 2>&5
1637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638
(exit $ac_status); }; then
1639
# Find the output, starting from the most likely. This scheme is
1640
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1643
# Be careful to initialize this variable, since it used to be cached.
1644
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1646
# b.out is created by i960 compilers.
1647
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1649
test -f "$ac_file" || continue
1651
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1654
# This is the source file.
1657
# We found the default executable, but exeext='' is most
1661
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662
# FIXME: I believe we export ac_cv_exeext for Libtool,
1663
# but it would be cool to find out if it's true. Does anybody
1664
# maintain Libtool? --akim.
1672
echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1675
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1676
See \`config.log' for more details." >&5
1677
echo "$as_me: error: C compiler cannot create executables
1678
See \`config.log' for more details." >&2;}
1679
{ (exit 77); exit 77; }; }
1682
ac_exeext=$ac_cv_exeext
1683
echo "$as_me:$LINENO: result: $ac_file" >&5
1684
echo "${ECHO_T}$ac_file" >&6
1686
# Check the compiler produces executables we can run. If not, either
1687
# the compiler is broken, or we cross compile.
1688
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1689
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1690
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1691
# If not cross compiling, check that we can run a simple program.
1692
if test "$cross_compiling" != yes; then
1693
if { ac_try='./$ac_file'
1694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698
(exit $ac_status); }; }; then
1701
if test "$cross_compiling" = maybe; then
1704
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1705
If you meant to cross compile, use \`--host'.
1706
See \`config.log' for more details." >&5
1707
echo "$as_me: error: cannot run C compiled programs.
1708
If you meant to cross compile, use \`--host'.
1709
See \`config.log' for more details." >&2;}
1710
{ (exit 1); exit 1; }; }
1714
echo "$as_me:$LINENO: result: yes" >&5
1715
echo "${ECHO_T}yes" >&6
1717
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1718
ac_clean_files=$ac_clean_files_save
1719
# Check the compiler produces executables we can run. If not, either
1720
# the compiler is broken, or we cross compile.
1721
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1722
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1723
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1724
echo "${ECHO_T}$cross_compiling" >&6
1726
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1727
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1729
(eval $ac_link) 2>&5
1731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732
(exit $ac_status); }; then
1733
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1734
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1735
# work properly (i.e., refer to `conftest.exe'), while it won't with
1737
for ac_file in conftest.exe conftest conftest.*; do
1738
test -f "$ac_file" || continue
1740
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1741
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1748
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1749
See \`config.log' for more details." >&5
1750
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1751
See \`config.log' for more details." >&2;}
1752
{ (exit 1); exit 1; }; }
1755
rm -f conftest$ac_cv_exeext
1756
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1757
echo "${ECHO_T}$ac_cv_exeext" >&6
1759
rm -f conftest.$ac_ext
1760
EXEEXT=$ac_cv_exeext
1762
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1763
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1764
if test "${ac_cv_objext+set}" = set; then
1765
echo $ECHO_N "(cached) $ECHO_C" >&6
1767
cat >conftest.$ac_ext <<_ACEOF
1768
#line $LINENO "configure"
1771
cat confdefs.h >>conftest.$ac_ext
1772
cat >>conftest.$ac_ext <<_ACEOF
1773
/* end confdefs.h. */
1783
rm -f conftest.o conftest.obj
1784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785
(eval $ac_compile) 2>&5
1787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788
(exit $ac_status); }; then
1789
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1791
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1792
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1797
echo "$as_me: failed program was:" >&5
1798
sed 's/^/| /' conftest.$ac_ext >&5
1800
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1801
See \`config.log' for more details." >&5
1802
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1803
See \`config.log' for more details." >&2;}
1804
{ (exit 1); exit 1; }; }
1807
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1809
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810
echo "${ECHO_T}$ac_cv_objext" >&6
1811
OBJEXT=$ac_cv_objext
1813
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1814
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1815
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1816
echo $ECHO_N "(cached) $ECHO_C" >&6
1818
cat >conftest.$ac_ext <<_ACEOF
1819
#line $LINENO "configure"
1822
cat confdefs.h >>conftest.$ac_ext
1823
cat >>conftest.$ac_ext <<_ACEOF
1824
/* end confdefs.h. */
1837
rm -f conftest.$ac_objext
1838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839
(eval $ac_compile) 2>&5
1841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842
(exit $ac_status); } &&
1843
{ ac_try='test -s conftest.$ac_objext'
1844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848
(exit $ac_status); }; }; then
1851
echo "$as_me: failed program was:" >&5
1852
sed 's/^/| /' conftest.$ac_ext >&5
1856
rm -f conftest.$ac_objext conftest.$ac_ext
1857
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1860
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1861
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1862
GCC=`test $ac_compiler_gnu = yes && echo yes`
1863
ac_test_CFLAGS=${CFLAGS+set}
1864
ac_save_CFLAGS=$CFLAGS
1866
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1867
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1868
if test "${ac_cv_prog_cc_g+set}" = set; then
1869
echo $ECHO_N "(cached) $ECHO_C" >&6
1871
cat >conftest.$ac_ext <<_ACEOF
1872
#line $LINENO "configure"
1875
cat confdefs.h >>conftest.$ac_ext
1876
cat >>conftest.$ac_ext <<_ACEOF
1877
/* end confdefs.h. */
1887
rm -f conftest.$ac_objext
1888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1889
(eval $ac_compile) 2>&5
1891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892
(exit $ac_status); } &&
1893
{ ac_try='test -s conftest.$ac_objext'
1894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898
(exit $ac_status); }; }; then
1901
echo "$as_me: failed program was:" >&5
1902
sed 's/^/| /' conftest.$ac_ext >&5
1906
rm -f conftest.$ac_objext conftest.$ac_ext
1908
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1909
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1910
if test "$ac_test_CFLAGS" = set; then
1911
CFLAGS=$ac_save_CFLAGS
1912
elif test $ac_cv_prog_cc_g = yes; then
1913
if test "$GCC" = yes; then
1919
if test "$GCC" = yes; then
1925
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1926
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1927
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1928
echo $ECHO_N "(cached) $ECHO_C" >&6
1930
ac_cv_prog_cc_stdc=no
1932
cat >conftest.$ac_ext <<_ACEOF
1933
#line $LINENO "configure"
1936
cat confdefs.h >>conftest.$ac_ext
1937
cat >>conftest.$ac_ext <<_ACEOF
1938
/* end confdefs.h. */
1941
#include <sys/types.h>
1942
#include <sys/stat.h>
1943
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1944
struct buf { int x; };
1945
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1946
static char *e (p, i)
1952
static char *f (char * (*g) (char **, int), char **p, ...)
1957
s = g (p, va_arg (v,int));
1961
int test (int i, double x);
1962
struct s1 {int (*f) (int a);};
1963
struct s2 {int (*f) (double a);};
1964
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1970
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1975
# Don't try gcc -ansi; that turns off useful extensions and
1976
# breaks some systems' header files.
1977
# AIX -qlanglvl=ansi
1978
# Ultrix and OSF/1 -std1
1979
# HP-UX 10.20 and later -Ae
1980
# HP-UX older versions -Aa -D_HPUX_SOURCE
1981
# SVR4 -Xc -D__EXTENSIONS__
1982
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1984
CC="$ac_save_CC $ac_arg"
1985
rm -f conftest.$ac_objext
1986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987
(eval $ac_compile) 2>&5
1989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
(exit $ac_status); } &&
1991
{ ac_try='test -s conftest.$ac_objext'
1992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
(exit $ac_status); }; }; then
1997
ac_cv_prog_cc_stdc=$ac_arg
2000
echo "$as_me: failed program was:" >&5
2001
sed 's/^/| /' conftest.$ac_ext >&5
2004
rm -f conftest.$ac_objext
2006
rm -f conftest.$ac_ext conftest.$ac_objext
2011
case "x$ac_cv_prog_cc_stdc" in
2013
echo "$as_me:$LINENO: result: none needed" >&5
2014
echo "${ECHO_T}none needed" >&6 ;;
2016
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2017
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2018
CC="$CC $ac_cv_prog_cc_stdc" ;;
2021
# Some people use a C++ compiler to compile C. Since we use `exit',
2022
# in C++ we need to declare it. In case someone uses the same compiler
2023
# for both compiling C and C++ we need to have the C++ compiler decide
2024
# the declaration of exit, since it's the most demanding environment.
2025
cat >conftest.$ac_ext <<_ACEOF
2030
rm -f conftest.$ac_objext
2031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032
(eval $ac_compile) 2>&5
2034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035
(exit $ac_status); } &&
2036
{ ac_try='test -s conftest.$ac_objext'
2037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041
(exit $ac_status); }; }; then
2042
for ac_declaration in \
2044
'extern "C" void std::exit (int) throw (); using std::exit;' \
2045
'extern "C" void std::exit (int); using std::exit;' \
2046
'extern "C" void exit (int) throw ();' \
2047
'extern "C" void exit (int);' \
2050
cat >conftest.$ac_ext <<_ACEOF
2051
#line $LINENO "configure"
2054
cat confdefs.h >>conftest.$ac_ext
2055
cat >>conftest.$ac_ext <<_ACEOF
2056
/* end confdefs.h. */
2067
rm -f conftest.$ac_objext
2068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069
(eval $ac_compile) 2>&5
2071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072
(exit $ac_status); } &&
2073
{ ac_try='test -s conftest.$ac_objext'
2074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
(exit $ac_status); }; }; then
2081
echo "$as_me: failed program was:" >&5
2082
sed 's/^/| /' conftest.$ac_ext >&5
2086
rm -f conftest.$ac_objext conftest.$ac_ext
2087
cat >conftest.$ac_ext <<_ACEOF
2088
#line $LINENO "configure"
2091
cat confdefs.h >>conftest.$ac_ext
2092
cat >>conftest.$ac_ext <<_ACEOF
2093
/* end confdefs.h. */
2103
rm -f conftest.$ac_objext
2104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105
(eval $ac_compile) 2>&5
2107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108
(exit $ac_status); } &&
2109
{ ac_try='test -s conftest.$ac_objext'
2110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114
(exit $ac_status); }; }; then
2117
echo "$as_me: failed program was:" >&5
2118
sed 's/^/| /' conftest.$ac_ext >&5
2121
rm -f conftest.$ac_objext conftest.$ac_ext
2124
if test -n "$ac_declaration"; then
2125
echo '#ifdef __cplusplus' >>confdefs.h
2126
echo $ac_declaration >>confdefs.h
2127
echo '#endif' >>confdefs.h
2131
echo "$as_me: failed program was:" >&5
2132
sed 's/^/| /' conftest.$ac_ext >&5
2135
rm -f conftest.$ac_objext conftest.$ac_ext
2137
ac_cpp='$CPP $CPPFLAGS'
2138
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
ac_cpp='$CPP $CPPFLAGS'
2144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2148
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2149
# On Suns, sometimes $CPP names a directory.
2150
if test -n "$CPP" && test -d "$CPP"; then
2153
if test -z "$CPP"; then
2154
if test "${ac_cv_prog_CPP+set}" = set; then
2155
echo $ECHO_N "(cached) $ECHO_C" >&6
2157
# Double quotes because CPP needs to be expanded
2158
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2161
for ac_c_preproc_warn_flag in '' yes
2163
# Use a header file that comes with gcc, so configuring glibc
2164
# with a fresh cross-compiler works.
2165
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2166
# <limits.h> exists even on freestanding compilers.
2167
# On the NeXT, cc -E runs the code through the compiler's parser,
2168
# not just through cpp. "Syntax error" is here to catch this case.
2169
cat >conftest.$ac_ext <<_ACEOF
2170
#line $LINENO "configure"
2173
cat confdefs.h >>conftest.$ac_ext
2174
cat >>conftest.$ac_ext <<_ACEOF
2175
/* end confdefs.h. */
2177
# include <limits.h>
2179
# include <assert.h>
2183
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2184
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186
grep -v '^ *+' conftest.er1 >conftest.err
2188
cat conftest.err >&5
2189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190
(exit $ac_status); } >/dev/null; then
2191
if test -s conftest.err; then
2192
ac_cpp_err=$ac_c_preproc_warn_flag
2199
if test -z "$ac_cpp_err"; then
2202
echo "$as_me: failed program was:" >&5
2203
sed 's/^/| /' conftest.$ac_ext >&5
2205
# Broken: fails on valid input.
2208
rm -f conftest.err conftest.$ac_ext
2210
# OK, works on sane cases. Now check whether non-existent headers
2211
# can be detected and how.
2212
cat >conftest.$ac_ext <<_ACEOF
2213
#line $LINENO "configure"
2216
cat confdefs.h >>conftest.$ac_ext
2217
cat >>conftest.$ac_ext <<_ACEOF
2218
/* end confdefs.h. */
2219
#include <ac_nonexistent.h>
2221
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2222
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2224
grep -v '^ *+' conftest.er1 >conftest.err
2226
cat conftest.err >&5
2227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
(exit $ac_status); } >/dev/null; then
2229
if test -s conftest.err; then
2230
ac_cpp_err=$ac_c_preproc_warn_flag
2237
if test -z "$ac_cpp_err"; then
2238
# Broken: success on invalid input.
2241
echo "$as_me: failed program was:" >&5
2242
sed 's/^/| /' conftest.$ac_ext >&5
2244
# Passes both tests.
2248
rm -f conftest.err conftest.$ac_ext
2251
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2252
rm -f conftest.err conftest.$ac_ext
2253
if $ac_preproc_ok; then
2265
echo "$as_me:$LINENO: result: $CPP" >&5
2266
echo "${ECHO_T}$CPP" >&6
2268
for ac_c_preproc_warn_flag in '' yes
2270
# Use a header file that comes with gcc, so configuring glibc
2271
# with a fresh cross-compiler works.
2272
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273
# <limits.h> exists even on freestanding compilers.
2274
# On the NeXT, cc -E runs the code through the compiler's parser,
2275
# not just through cpp. "Syntax error" is here to catch this case.
2276
cat >conftest.$ac_ext <<_ACEOF
2277
#line $LINENO "configure"
2280
cat confdefs.h >>conftest.$ac_ext
2281
cat >>conftest.$ac_ext <<_ACEOF
2282
/* end confdefs.h. */
2284
# include <limits.h>
2286
# include <assert.h>
2290
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2291
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293
grep -v '^ *+' conftest.er1 >conftest.err
2295
cat conftest.err >&5
2296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297
(exit $ac_status); } >/dev/null; then
2298
if test -s conftest.err; then
2299
ac_cpp_err=$ac_c_preproc_warn_flag
2306
if test -z "$ac_cpp_err"; then
2309
echo "$as_me: failed program was:" >&5
2310
sed 's/^/| /' conftest.$ac_ext >&5
2312
# Broken: fails on valid input.
2315
rm -f conftest.err conftest.$ac_ext
2317
# OK, works on sane cases. Now check whether non-existent headers
2318
# can be detected and how.
2319
cat >conftest.$ac_ext <<_ACEOF
2320
#line $LINENO "configure"
2323
cat confdefs.h >>conftest.$ac_ext
2324
cat >>conftest.$ac_ext <<_ACEOF
2325
/* end confdefs.h. */
2326
#include <ac_nonexistent.h>
2328
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2331
grep -v '^ *+' conftest.er1 >conftest.err
2333
cat conftest.err >&5
2334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
(exit $ac_status); } >/dev/null; then
2336
if test -s conftest.err; then
2337
ac_cpp_err=$ac_c_preproc_warn_flag
2344
if test -z "$ac_cpp_err"; then
2345
# Broken: success on invalid input.
2348
echo "$as_me: failed program was:" >&5
2349
sed 's/^/| /' conftest.$ac_ext >&5
2351
# Passes both tests.
2355
rm -f conftest.err conftest.$ac_ext
2358
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2359
rm -f conftest.err conftest.$ac_ext
2360
if $ac_preproc_ok; then
2363
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2364
See \`config.log' for more details." >&5
2365
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2366
See \`config.log' for more details." >&2;}
2367
{ (exit 1); exit 1; }; }
2371
ac_cpp='$CPP $CPPFLAGS'
2372
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377
# Avoid using GCC __attributes__ for non-GCC compilers
2378
if test -z "$GCC" ; then
2379
CFLAGS="-DCONSTRUCTOR_FAILS=1 $CFLAGS"
2382
# Find some installation programs
2384
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2385
if test -f $ac_dir/install-sh; then
2387
ac_install_sh="$ac_aux_dir/install-sh -c"
2389
elif test -f $ac_dir/install.sh; then
2391
ac_install_sh="$ac_aux_dir/install.sh -c"
2393
elif test -f $ac_dir/shtool; then
2395
ac_install_sh="$ac_aux_dir/shtool install -c"
2399
if test -z "$ac_aux_dir"; then
2400
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2401
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2402
{ (exit 1); exit 1; }; }
2404
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2405
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2406
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2408
# Find a good install program. We prefer a C program (faster),
2409
# so one script is as good as another. But avoid the broken or
2410
# incompatible versions:
2411
# SysV /etc/install, /usr/sbin/install
2412
# SunOS /usr/etc/install
2413
# IRIX /sbin/install
2415
# AmigaOS /C/install, which installs bootblocks on floppy discs
2416
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419
# ./install, which can be erroneously created by make from ./install.sh.
2420
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2421
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2422
if test -z "$INSTALL"; then
2423
if test "${ac_cv_path_install+set}" = set; then
2424
echo $ECHO_N "(cached) $ECHO_C" >&6
2426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430
test -z "$as_dir" && as_dir=.
2431
# Account for people who put trailing slashes in PATH elements.
2433
./ | .// | /cC/* | \
2434
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2437
# OSF1 and SCO ODT 3.0 have their own names for install.
2438
# Don't use installbsd from OSF since it installs stuff as root
2440
for ac_prog in ginstall scoinst install; do
2441
for ac_exec_ext in '' $ac_executable_extensions; do
2442
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2443
if test $ac_prog = install &&
2444
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445
# AIX install. It has an incompatible calling convention.
2447
elif test $ac_prog = install &&
2448
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449
# program-specific install script used by HP pwplus--don't use.
2452
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2464
if test "${ac_cv_path_install+set}" = set; then
2465
INSTALL=$ac_cv_path_install
2467
# As a last resort, use the slow shell script. We don't cache a
2468
# path for INSTALL within a source directory, because that will
2469
# break other packages using the cache if that directory is
2470
# removed, or if the path is relative.
2471
INSTALL=$ac_install_sh
2474
echo "$as_me:$LINENO: result: $INSTALL" >&5
2475
echo "${ECHO_T}$INSTALL" >&6
2477
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2478
# It thinks the first close brace ends the variable substitution.
2479
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2481
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2483
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2485
if test -n "$ac_tool_prefix"; then
2486
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2487
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2488
echo "$as_me:$LINENO: checking for $ac_word" >&5
2489
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490
if test "${ac_cv_prog_RANLIB+set}" = set; then
2491
echo $ECHO_N "(cached) $ECHO_C" >&6
2493
if test -n "$RANLIB"; then
2494
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500
test -z "$as_dir" && as_dir=.
2501
for ac_exec_ext in '' $ac_executable_extensions; do
2502
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2504
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512
RANLIB=$ac_cv_prog_RANLIB
2513
if test -n "$RANLIB"; then
2514
echo "$as_me:$LINENO: result: $RANLIB" >&5
2515
echo "${ECHO_T}$RANLIB" >&6
2517
echo "$as_me:$LINENO: result: no" >&5
2518
echo "${ECHO_T}no" >&6
2522
if test -z "$ac_cv_prog_RANLIB"; then
2523
ac_ct_RANLIB=$RANLIB
2524
# Extract the first word of "ranlib", so it can be a program name with args.
2525
set dummy ranlib; ac_word=$2
2526
echo "$as_me:$LINENO: checking for $ac_word" >&5
2527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2529
echo $ECHO_N "(cached) $ECHO_C" >&6
2531
if test -n "$ac_ct_RANLIB"; then
2532
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538
test -z "$as_dir" && as_dir=.
2539
for ac_exec_ext in '' $ac_executable_extensions; do
2540
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541
ac_cv_prog_ac_ct_RANLIB="ranlib"
2542
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2551
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2552
if test -n "$ac_ct_RANLIB"; then
2553
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2554
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2556
echo "$as_me:$LINENO: result: no" >&5
2557
echo "${ECHO_T}no" >&6
2560
RANLIB=$ac_ct_RANLIB
2562
RANLIB="$ac_cv_prog_RANLIB"
2566
# Find out if we have getopt.h
2569
echo "$as_me:$LINENO: checking for egrep" >&5
2570
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2571
if test "${ac_cv_prog_egrep+set}" = set; then
2572
echo $ECHO_N "(cached) $ECHO_C" >&6
2574
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2575
then ac_cv_prog_egrep='grep -E'
2576
else ac_cv_prog_egrep='egrep'
2579
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2580
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2581
EGREP=$ac_cv_prog_egrep
2584
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2585
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2586
if test "${ac_cv_header_stdc+set}" = set; then
2587
echo $ECHO_N "(cached) $ECHO_C" >&6
2589
cat >conftest.$ac_ext <<_ACEOF
2590
#line $LINENO "configure"
2593
cat confdefs.h >>conftest.$ac_ext
2594
cat >>conftest.$ac_ext <<_ACEOF
2595
/* end confdefs.h. */
2609
rm -f conftest.$ac_objext
2610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611
(eval $ac_compile) 2>&5
2613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614
(exit $ac_status); } &&
2615
{ ac_try='test -s conftest.$ac_objext'
2616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620
(exit $ac_status); }; }; then
2621
ac_cv_header_stdc=yes
2623
echo "$as_me: failed program was:" >&5
2624
sed 's/^/| /' conftest.$ac_ext >&5
2626
ac_cv_header_stdc=no
2628
rm -f conftest.$ac_objext conftest.$ac_ext
2630
if test $ac_cv_header_stdc = yes; then
2631
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2632
cat >conftest.$ac_ext <<_ACEOF
2633
#line $LINENO "configure"
2636
cat confdefs.h >>conftest.$ac_ext
2637
cat >>conftest.$ac_ext <<_ACEOF
2638
/* end confdefs.h. */
2642
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2643
$EGREP "memchr" >/dev/null 2>&1; then
2646
ac_cv_header_stdc=no
2652
if test $ac_cv_header_stdc = yes; then
2653
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2654
cat >conftest.$ac_ext <<_ACEOF
2655
#line $LINENO "configure"
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660
/* end confdefs.h. */
2664
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2665
$EGREP "free" >/dev/null 2>&1; then
2668
ac_cv_header_stdc=no
2674
if test $ac_cv_header_stdc = yes; then
2675
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2676
if test "$cross_compiling" = yes; then
2679
cat >conftest.$ac_ext <<_ACEOF
2680
#line $LINENO "configure"
2683
cat confdefs.h >>conftest.$ac_ext
2684
cat >>conftest.$ac_ext <<_ACEOF
2685
/* end confdefs.h. */
2687
#if ((' ' & 0x0FF) == 0x020)
2688
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2689
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2691
# define ISLOWER(c) \
2692
(('a' <= (c) && (c) <= 'i') \
2693
|| ('j' <= (c) && (c) <= 'r') \
2694
|| ('s' <= (c) && (c) <= 'z'))
2695
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2698
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2703
for (i = 0; i < 256; i++)
2704
if (XOR (islower (i), ISLOWER (i))
2705
|| toupper (i) != TOUPPER (i))
2710
rm -f conftest$ac_exeext
2711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2712
(eval $ac_link) 2>&5
2714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720
(exit $ac_status); }; }; then
2723
echo "$as_me: program exited with status $ac_status" >&5
2724
echo "$as_me: failed program was:" >&5
2725
sed 's/^/| /' conftest.$ac_ext >&5
2728
ac_cv_header_stdc=no
2730
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2734
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2735
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2736
if test $ac_cv_header_stdc = yes; then
2738
cat >>confdefs.h <<\_ACEOF
2739
#define STDC_HEADERS 1
2744
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2754
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2755
inttypes.h stdint.h unistd.h
2757
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2758
echo "$as_me:$LINENO: checking for $ac_header" >&5
2759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2761
echo $ECHO_N "(cached) $ECHO_C" >&6
2763
cat >conftest.$ac_ext <<_ACEOF
2764
#line $LINENO "configure"
2767
cat confdefs.h >>conftest.$ac_ext
2768
cat >>conftest.$ac_ext <<_ACEOF
2769
/* end confdefs.h. */
2770
$ac_includes_default
2772
#include <$ac_header>
2774
rm -f conftest.$ac_objext
2775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776
(eval $ac_compile) 2>&5
2778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
(exit $ac_status); } &&
2780
{ ac_try='test -s conftest.$ac_objext'
2781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); }; }; then
2786
eval "$as_ac_Header=yes"
2788
echo "$as_me: failed program was:" >&5
2789
sed 's/^/| /' conftest.$ac_ext >&5
2791
eval "$as_ac_Header=no"
2793
rm -f conftest.$ac_objext conftest.$ac_ext
2795
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2796
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2797
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2798
cat >>confdefs.h <<_ACEOF
2799
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2808
for ac_header in getopt.h
2810
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2811
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2812
echo "$as_me:$LINENO: checking for $ac_header" >&5
2813
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2814
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2815
echo $ECHO_N "(cached) $ECHO_C" >&6
2817
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2818
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2820
# Is the header compilable?
2821
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2823
cat >conftest.$ac_ext <<_ACEOF
2824
#line $LINENO "configure"
2827
cat confdefs.h >>conftest.$ac_ext
2828
cat >>conftest.$ac_ext <<_ACEOF
2829
/* end confdefs.h. */
2830
$ac_includes_default
2831
#include <$ac_header>
2833
rm -f conftest.$ac_objext
2834
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835
(eval $ac_compile) 2>&5
2837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838
(exit $ac_status); } &&
2839
{ ac_try='test -s conftest.$ac_objext'
2840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
(exit $ac_status); }; }; then
2845
ac_header_compiler=yes
2847
echo "$as_me: failed program was:" >&5
2848
sed 's/^/| /' conftest.$ac_ext >&5
2850
ac_header_compiler=no
2852
rm -f conftest.$ac_objext conftest.$ac_ext
2853
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2854
echo "${ECHO_T}$ac_header_compiler" >&6
2856
# Is the header present?
2857
echo "$as_me:$LINENO: checking $ac_header presence" >&5
2858
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2859
cat >conftest.$ac_ext <<_ACEOF
2860
#line $LINENO "configure"
2863
cat confdefs.h >>conftest.$ac_ext
2864
cat >>conftest.$ac_ext <<_ACEOF
2865
/* end confdefs.h. */
2866
#include <$ac_header>
2868
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871
grep -v '^ *+' conftest.er1 >conftest.err
2873
cat conftest.err >&5
2874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875
(exit $ac_status); } >/dev/null; then
2876
if test -s conftest.err; then
2877
ac_cpp_err=$ac_c_preproc_warn_flag
2884
if test -z "$ac_cpp_err"; then
2885
ac_header_preproc=yes
2887
echo "$as_me: failed program was:" >&5
2888
sed 's/^/| /' conftest.$ac_ext >&5
2890
ac_header_preproc=no
2892
rm -f conftest.err conftest.$ac_ext
2893
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2894
echo "${ECHO_T}$ac_header_preproc" >&6
2896
# So? What about this header?
2897
case $ac_header_compiler:$ac_header_preproc in
2899
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2900
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2901
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2902
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2905
## ------------------------------------ ##
2906
## Report this to bug-autoconf@gnu.org. ##
2907
## ------------------------------------ ##
2910
sed "s/^/$as_me: WARNING: /" >&2
2913
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2914
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2915
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2916
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2917
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2918
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2921
## ------------------------------------ ##
2922
## Report this to bug-autoconf@gnu.org. ##
2923
## ------------------------------------ ##
2926
sed "s/^/$as_me: WARNING: /" >&2
2929
echo "$as_me:$LINENO: checking for $ac_header" >&5
2930
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2931
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2932
echo $ECHO_N "(cached) $ECHO_C" >&6
2934
eval "$as_ac_Header=$ac_header_preproc"
2936
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2937
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2940
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2941
cat >>confdefs.h <<_ACEOF
2942
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2950
# Find out if we have alloca.h
2952
for ac_header in alloca.h
2954
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2955
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2956
echo "$as_me:$LINENO: checking for $ac_header" >&5
2957
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2958
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2959
echo $ECHO_N "(cached) $ECHO_C" >&6
2961
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2962
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2964
# Is the header compilable?
2965
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2966
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2967
cat >conftest.$ac_ext <<_ACEOF
2968
#line $LINENO "configure"
2971
cat confdefs.h >>conftest.$ac_ext
2972
cat >>conftest.$ac_ext <<_ACEOF
2973
/* end confdefs.h. */
2974
$ac_includes_default
2975
#include <$ac_header>
2977
rm -f conftest.$ac_objext
2978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979
(eval $ac_compile) 2>&5
2981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982
(exit $ac_status); } &&
2983
{ ac_try='test -s conftest.$ac_objext'
2984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988
(exit $ac_status); }; }; then
2989
ac_header_compiler=yes
2991
echo "$as_me: failed program was:" >&5
2992
sed 's/^/| /' conftest.$ac_ext >&5
2994
ac_header_compiler=no
2996
rm -f conftest.$ac_objext conftest.$ac_ext
2997
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2998
echo "${ECHO_T}$ac_header_compiler" >&6
3000
# Is the header present?
3001
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3002
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3003
cat >conftest.$ac_ext <<_ACEOF
3004
#line $LINENO "configure"
3007
cat confdefs.h >>conftest.$ac_ext
3008
cat >>conftest.$ac_ext <<_ACEOF
3009
/* end confdefs.h. */
3010
#include <$ac_header>
3012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015
grep -v '^ *+' conftest.er1 >conftest.err
3017
cat conftest.err >&5
3018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019
(exit $ac_status); } >/dev/null; then
3020
if test -s conftest.err; then
3021
ac_cpp_err=$ac_c_preproc_warn_flag
3028
if test -z "$ac_cpp_err"; then
3029
ac_header_preproc=yes
3031
echo "$as_me: failed program was:" >&5
3032
sed 's/^/| /' conftest.$ac_ext >&5
3034
ac_header_preproc=no
3036
rm -f conftest.err conftest.$ac_ext
3037
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3038
echo "${ECHO_T}$ac_header_preproc" >&6
3040
# So? What about this header?
3041
case $ac_header_compiler:$ac_header_preproc in
3043
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3044
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3045
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3046
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3049
## ------------------------------------ ##
3050
## Report this to bug-autoconf@gnu.org. ##
3051
## ------------------------------------ ##
3054
sed "s/^/$as_me: WARNING: /" >&2
3057
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3058
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3059
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3060
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3061
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3062
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3065
## ------------------------------------ ##
3066
## Report this to bug-autoconf@gnu.org. ##
3067
## ------------------------------------ ##
3070
sed "s/^/$as_me: WARNING: /" >&2
3073
echo "$as_me:$LINENO: checking for $ac_header" >&5
3074
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3075
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3076
echo $ECHO_N "(cached) $ECHO_C" >&6
3078
eval "$as_ac_Header=$ac_header_preproc"
3080
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3081
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3084
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3085
cat >>confdefs.h <<_ACEOF
3086
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3094
# Find out if we have the function getopt_long(). If we don't have
3095
# it, cause the ARGP_GETOPT_O_FILES to be a part of libargp.
3097
for ac_func in getopt_long
3099
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3100
echo "$as_me:$LINENO: checking for $ac_func" >&5
3101
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3102
if eval "test \"\${$as_ac_var+set}\" = set"; then
3103
echo $ECHO_N "(cached) $ECHO_C" >&6
3105
cat >conftest.$ac_ext <<_ACEOF
3106
#line $LINENO "configure"
3109
cat confdefs.h >>conftest.$ac_ext
3110
cat >>conftest.$ac_ext <<_ACEOF
3111
/* end confdefs.h. */
3112
/* System header to define __stub macros and hopefully few prototypes,
3113
which can conflict with char $ac_func (); below.
3114
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115
<limits.h> exists even on freestanding compilers. */
3117
# include <limits.h>
3119
# include <assert.h>
3121
/* Override any gcc2 internal prototype to avoid an error. */
3126
/* We use char because int might match the return type of a gcc2
3127
builtin and then its argument prototype would still apply. */
3129
/* The GNU C library defines this for functions which it implements
3130
to always fail with ENOSYS. Some functions are actually named
3131
something starting with __ and the normal name is an alias. */
3132
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3135
char (*f) () = $ac_func;
3144
return f != $ac_func;
3149
rm -f conftest.$ac_objext conftest$ac_exeext
3150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151
(eval $ac_link) 2>&5
3153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
(exit $ac_status); } &&
3155
{ ac_try='test -s conftest$ac_exeext'
3156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160
(exit $ac_status); }; }; then
3161
eval "$as_ac_var=yes"
3163
echo "$as_me: failed program was:" >&5
3164
sed 's/^/| /' conftest.$ac_ext >&5
3166
eval "$as_ac_var=no"
3168
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3170
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3171
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3172
if test `eval echo '${'$as_ac_var'}'` = yes; then
3173
cat >>confdefs.h <<_ACEOF
3174
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3176
ARGP_GETOPT_O_FILES=''
3178
ARGP_GETOPT_O_FILES='$(ARGP_GETOPT_O_FILES)'
3184
# Find out if we have the function strerror()
3186
for ac_func in strerror
3188
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3189
echo "$as_me:$LINENO: checking for $ac_func" >&5
3190
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3191
if eval "test \"\${$as_ac_var+set}\" = set"; then
3192
echo $ECHO_N "(cached) $ECHO_C" >&6
3194
cat >conftest.$ac_ext <<_ACEOF
3195
#line $LINENO "configure"
3198
cat confdefs.h >>conftest.$ac_ext
3199
cat >>conftest.$ac_ext <<_ACEOF
3200
/* end confdefs.h. */
3201
/* System header to define __stub macros and hopefully few prototypes,
3202
which can conflict with char $ac_func (); below.
3203
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204
<limits.h> exists even on freestanding compilers. */
3206
# include <limits.h>
3208
# include <assert.h>
3210
/* Override any gcc2 internal prototype to avoid an error. */
3215
/* We use char because int might match the return type of a gcc2
3216
builtin and then its argument prototype would still apply. */
3218
/* The GNU C library defines this for functions which it implements
3219
to always fail with ENOSYS. Some functions are actually named
3220
something starting with __ and the normal name is an alias. */
3221
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3224
char (*f) () = $ac_func;
3233
return f != $ac_func;
3238
rm -f conftest.$ac_objext conftest$ac_exeext
3239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240
(eval $ac_link) 2>&5
3242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243
(exit $ac_status); } &&
3244
{ ac_try='test -s conftest$ac_exeext'
3245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249
(exit $ac_status); }; }; then
3250
eval "$as_ac_var=yes"
3252
echo "$as_me: failed program was:" >&5
3253
sed 's/^/| /' conftest.$ac_ext >&5
3255
eval "$as_ac_var=no"
3257
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3259
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3260
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3261
if test `eval echo '${'$as_ac_var'}'` = yes; then
3262
cat >>confdefs.h <<_ACEOF
3263
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3270
# Needed by argp-help.c
3272
for ac_func in strndup
3274
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3275
echo "$as_me:$LINENO: checking for $ac_func" >&5
3276
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3277
if eval "test \"\${$as_ac_var+set}\" = set"; then
3278
echo $ECHO_N "(cached) $ECHO_C" >&6
3280
cat >conftest.$ac_ext <<_ACEOF
3281
#line $LINENO "configure"
3284
cat confdefs.h >>conftest.$ac_ext
3285
cat >>conftest.$ac_ext <<_ACEOF
3286
/* end confdefs.h. */
3287
/* System header to define __stub macros and hopefully few prototypes,
3288
which can conflict with char $ac_func (); below.
3289
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290
<limits.h> exists even on freestanding compilers. */
3292
# include <limits.h>
3294
# include <assert.h>
3296
/* Override any gcc2 internal prototype to avoid an error. */
3301
/* We use char because int might match the return type of a gcc2
3302
builtin and then its argument prototype would still apply. */
3304
/* The GNU C library defines this for functions which it implements
3305
to always fail with ENOSYS. Some functions are actually named
3306
something starting with __ and the normal name is an alias. */
3307
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3310
char (*f) () = $ac_func;
3319
return f != $ac_func;
3324
rm -f conftest.$ac_objext conftest$ac_exeext
3325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326
(eval $ac_link) 2>&5
3328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329
(exit $ac_status); } &&
3330
{ ac_try='test -s conftest$ac_exeext'
3331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335
(exit $ac_status); }; }; then
3336
eval "$as_ac_var=yes"
3338
echo "$as_me: failed program was:" >&5
3339
sed 's/^/| /' conftest.$ac_ext >&5
3341
eval "$as_ac_var=no"
3343
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3346
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3347
if test `eval echo '${'$as_ac_var'}'` = yes; then
3348
cat >>confdefs.h <<_ACEOF
3349
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3356
# Needed by argp-fmtstream.h
3357
echo "$as_me:$LINENO: checking for ssize_t" >&5
3358
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3359
if test "${ac_cv_type_ssize_t+set}" = set; then
3360
echo $ECHO_N "(cached) $ECHO_C" >&6
3362
cat >conftest.$ac_ext <<_ACEOF
3363
#line $LINENO "configure"
3366
cat confdefs.h >>conftest.$ac_ext
3367
cat >>conftest.$ac_ext <<_ACEOF
3368
/* end confdefs.h. */
3369
$ac_includes_default
3375
if (sizeof (ssize_t))
3381
rm -f conftest.$ac_objext
3382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383
(eval $ac_compile) 2>&5
3385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386
(exit $ac_status); } &&
3387
{ ac_try='test -s conftest.$ac_objext'
3388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392
(exit $ac_status); }; }; then
3393
ac_cv_type_ssize_t=yes
3395
echo "$as_me: failed program was:" >&5
3396
sed 's/^/| /' conftest.$ac_ext >&5
3398
ac_cv_type_ssize_t=no
3400
rm -f conftest.$ac_objext conftest.$ac_ext
3402
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3403
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3404
if test $ac_cv_type_ssize_t = yes; then
3408
cat >>confdefs.h <<_ACEOF
3415
# Needed by argp-fmtstream.c
3418
for ac_func in memmove vsnprintf
3420
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3421
echo "$as_me:$LINENO: checking for $ac_func" >&5
3422
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3423
if eval "test \"\${$as_ac_var+set}\" = set"; then
3424
echo $ECHO_N "(cached) $ECHO_C" >&6
3426
cat >conftest.$ac_ext <<_ACEOF
3427
#line $LINENO "configure"
3430
cat confdefs.h >>conftest.$ac_ext
3431
cat >>conftest.$ac_ext <<_ACEOF
3432
/* end confdefs.h. */
3433
/* System header to define __stub macros and hopefully few prototypes,
3434
which can conflict with char $ac_func (); below.
3435
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436
<limits.h> exists even on freestanding compilers. */
3438
# include <limits.h>
3440
# include <assert.h>
3442
/* Override any gcc2 internal prototype to avoid an error. */
3447
/* We use char because int might match the return type of a gcc2
3448
builtin and then its argument prototype would still apply. */
3450
/* The GNU C library defines this for functions which it implements
3451
to always fail with ENOSYS. Some functions are actually named
3452
something starting with __ and the normal name is an alias. */
3453
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3456
char (*f) () = $ac_func;
3465
return f != $ac_func;
3470
rm -f conftest.$ac_objext conftest$ac_exeext
3471
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3472
(eval $ac_link) 2>&5
3474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475
(exit $ac_status); } &&
3476
{ ac_try='test -s conftest$ac_exeext'
3477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481
(exit $ac_status); }; }; then
3482
eval "$as_ac_var=yes"
3484
echo "$as_me: failed program was:" >&5
3485
sed 's/^/| /' conftest.$ac_ext >&5
3487
eval "$as_ac_var=no"
3489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3491
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3492
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3493
if test `eval echo '${'$as_ac_var'}'` = yes; then
3494
cat >>confdefs.h <<_ACEOF
3495
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3502
# Needed by argp-help.c
3504
for ac_func in strerror
3506
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3507
echo "$as_me:$LINENO: checking for $ac_func" >&5
3508
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3509
if eval "test \"\${$as_ac_var+set}\" = set"; then
3510
echo $ECHO_N "(cached) $ECHO_C" >&6
3512
cat >conftest.$ac_ext <<_ACEOF
3513
#line $LINENO "configure"
3516
cat confdefs.h >>conftest.$ac_ext
3517
cat >>conftest.$ac_ext <<_ACEOF
3518
/* end confdefs.h. */
3519
/* System header to define __stub macros and hopefully few prototypes,
3520
which can conflict with char $ac_func (); below.
3521
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3522
<limits.h> exists even on freestanding compilers. */
3524
# include <limits.h>
3526
# include <assert.h>
3528
/* Override any gcc2 internal prototype to avoid an error. */
3533
/* We use char because int might match the return type of a gcc2
3534
builtin and then its argument prototype would still apply. */
3536
/* The GNU C library defines this for functions which it implements
3537
to always fail with ENOSYS. Some functions are actually named
3538
something starting with __ and the normal name is an alias. */
3539
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3542
char (*f) () = $ac_func;
3551
return f != $ac_func;
3556
rm -f conftest.$ac_objext conftest$ac_exeext
3557
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558
(eval $ac_link) 2>&5
3560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
(exit $ac_status); } &&
3562
{ ac_try='test -s conftest$ac_exeext'
3563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567
(exit $ac_status); }; }; then
3568
eval "$as_ac_var=yes"
3570
echo "$as_me: failed program was:" >&5
3571
sed 's/^/| /' conftest.$ac_ext >&5
3573
eval "$as_ac_var=no"
3575
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3577
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3578
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3579
if test `eval echo '${'$as_ac_var'}'` = yes; then
3580
cat >>confdefs.h <<_ACEOF
3581
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3587
# strcasecmp() is in /usr/include/strings.h on SunOS.
3589
for ac_header in strings.h
3591
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593
echo "$as_me:$LINENO: checking for $ac_header" >&5
3594
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3595
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3596
echo $ECHO_N "(cached) $ECHO_C" >&6
3598
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3599
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601
# Is the header compilable?
3602
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3603
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3604
cat >conftest.$ac_ext <<_ACEOF
3605
#line $LINENO "configure"
3608
cat confdefs.h >>conftest.$ac_ext
3609
cat >>conftest.$ac_ext <<_ACEOF
3610
/* end confdefs.h. */
3611
$ac_includes_default
3612
#include <$ac_header>
3614
rm -f conftest.$ac_objext
3615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616
(eval $ac_compile) 2>&5
3618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
(exit $ac_status); } &&
3620
{ ac_try='test -s conftest.$ac_objext'
3621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625
(exit $ac_status); }; }; then
3626
ac_header_compiler=yes
3628
echo "$as_me: failed program was:" >&5
3629
sed 's/^/| /' conftest.$ac_ext >&5
3631
ac_header_compiler=no
3633
rm -f conftest.$ac_objext conftest.$ac_ext
3634
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3635
echo "${ECHO_T}$ac_header_compiler" >&6
3637
# Is the header present?
3638
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3639
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3640
cat >conftest.$ac_ext <<_ACEOF
3641
#line $LINENO "configure"
3644
cat confdefs.h >>conftest.$ac_ext
3645
cat >>conftest.$ac_ext <<_ACEOF
3646
/* end confdefs.h. */
3647
#include <$ac_header>
3649
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3650
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3652
grep -v '^ *+' conftest.er1 >conftest.err
3654
cat conftest.err >&5
3655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656
(exit $ac_status); } >/dev/null; then
3657
if test -s conftest.err; then
3658
ac_cpp_err=$ac_c_preproc_warn_flag
3665
if test -z "$ac_cpp_err"; then
3666
ac_header_preproc=yes
3668
echo "$as_me: failed program was:" >&5
3669
sed 's/^/| /' conftest.$ac_ext >&5
3671
ac_header_preproc=no
3673
rm -f conftest.err conftest.$ac_ext
3674
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3675
echo "${ECHO_T}$ac_header_preproc" >&6
3677
# So? What about this header?
3678
case $ac_header_compiler:$ac_header_preproc in
3680
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3681
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3682
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3683
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3686
## ------------------------------------ ##
3687
## Report this to bug-autoconf@gnu.org. ##
3688
## ------------------------------------ ##
3691
sed "s/^/$as_me: WARNING: /" >&2
3694
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3695
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3696
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3697
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3698
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3699
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3702
## ------------------------------------ ##
3703
## Report this to bug-autoconf@gnu.org. ##
3704
## ------------------------------------ ##
3707
sed "s/^/$as_me: WARNING: /" >&2
3710
echo "$as_me:$LINENO: checking for $ac_header" >&5
3711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713
echo $ECHO_N "(cached) $ECHO_C" >&6
3715
eval "$as_ac_Header=$ac_header_preproc"
3717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3722
cat >>confdefs.h <<_ACEOF
3723
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3731
if test -z "$HAVE_VSNPRINTF" ; then
3732
# Find out if vsprintf() returns the number of chars written, or
3733
# a pointer to the string
3734
echo "$as_me:$LINENO: checking if vsprintf returns int" >&5
3735
echo $ECHO_N "checking if vsprintf returns int... $ECHO_C" >&6
3736
if test "$cross_compiling" = yes; then
3737
VSPRINTF_RETURNS_INT=0
3738
echo "$as_me:$LINENO: result: guessing no" >&5
3739
echo "${ECHO_T}guessing no" >&6
3741
cat >conftest.$ac_ext <<_ACEOF
3742
#line $LINENO "configure"
3745
cat confdefs.h >>conftest.$ac_ext
3746
cat >>conftest.$ac_ext <<_ACEOF
3747
/* end confdefs.h. */
3749
char *buf = malloc(16);
3750
if (2 == (int)vsprintf(buf, "12"))
3754
rm -f conftest$ac_exeext
3755
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756
(eval $ac_link) 2>&5
3758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
(exit $ac_status); }; }; then
3765
VSPRINTF_RETURNS_INT=1; cat >>confdefs.h <<\_ACEOF
3766
#define VSPRINTF_RETURNS_INT 1
3769
echo "$as_me:$LINENO: result: yes" >&5
3770
echo "${ECHO_T}yes" >&6
3772
echo "$as_me: program exited with status $ac_status" >&5
3773
echo "$as_me: failed program was:" >&5
3774
sed 's/^/| /' conftest.$ac_ext >&5
3777
VSPRINTF_RETURNS_INT=0
3778
echo "$as_me:$LINENO: result: no" >&5
3779
echo "${ECHO_T}no" >&6
3781
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3785
# Find out if the libc has the global variables
3786
# program_invocation_short_name,program_invocation_name
3787
echo "$as_me:$LINENO: checking program_invocation_name" >&5
3788
echo $ECHO_N "checking program_invocation_name... $ECHO_C" >&6;
3789
cat >conftest.$ac_ext <<_ACEOF
3790
#line $LINENO "configure"
3793
cat confdefs.h >>conftest.$ac_ext
3794
cat >>conftest.$ac_ext <<_ACEOF
3795
/* end confdefs.h. */
3800
void foo() {program_invocation_name = "foo";}
3805
rm -f conftest.$ac_objext conftest$ac_exeext
3806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807
(eval $ac_link) 2>&5
3809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
(exit $ac_status); } &&
3811
{ ac_try='test -s conftest$ac_exeext'
3812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
(exit $ac_status); }; }; then
3817
HAVE_PROGRAM_INVOCATION_NAME=1
3819
echo "$as_me: failed program was:" >&5
3820
sed 's/^/| /' conftest.$ac_ext >&5
3823
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3824
if test "$HAVE_PROGRAM_INVOCATION_NAME" = 1 ; then
3825
cat >>confdefs.h <<\_ACEOF
3826
#define HAVE_PROGRAM_INVOCATION_NAME 1
3829
echo "$as_me:$LINENO: result: yes" >&5
3830
echo "${ECHO_T}yes" >&6
3832
echo "$as_me:$LINENO: result: no" >&5
3833
echo "${ECHO_T}no" >&6
3836
# Check for ANSI/non-ANSI string functions
3837
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3838
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3839
if test "${ac_cv_header_stdc+set}" = set; then
3840
echo $ECHO_N "(cached) $ECHO_C" >&6
3842
cat >conftest.$ac_ext <<_ACEOF
3843
#line $LINENO "configure"
3846
cat confdefs.h >>conftest.$ac_ext
3847
cat >>conftest.$ac_ext <<_ACEOF
3848
/* end confdefs.h. */
3862
rm -f conftest.$ac_objext
3863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864
(eval $ac_compile) 2>&5
3866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
(exit $ac_status); } &&
3868
{ ac_try='test -s conftest.$ac_objext'
3869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
(exit $ac_status); }; }; then
3874
ac_cv_header_stdc=yes
3876
echo "$as_me: failed program was:" >&5
3877
sed 's/^/| /' conftest.$ac_ext >&5
3879
ac_cv_header_stdc=no
3881
rm -f conftest.$ac_objext conftest.$ac_ext
3883
if test $ac_cv_header_stdc = yes; then
3884
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885
cat >conftest.$ac_ext <<_ACEOF
3886
#line $LINENO "configure"
3889
cat confdefs.h >>conftest.$ac_ext
3890
cat >>conftest.$ac_ext <<_ACEOF
3891
/* end confdefs.h. */
3895
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896
$EGREP "memchr" >/dev/null 2>&1; then
3899
ac_cv_header_stdc=no
3905
if test $ac_cv_header_stdc = yes; then
3906
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3907
cat >conftest.$ac_ext <<_ACEOF
3908
#line $LINENO "configure"
3911
cat confdefs.h >>conftest.$ac_ext
3912
cat >>conftest.$ac_ext <<_ACEOF
3913
/* end confdefs.h. */
3917
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918
$EGREP "free" >/dev/null 2>&1; then
3921
ac_cv_header_stdc=no
3927
if test $ac_cv_header_stdc = yes; then
3928
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3929
if test "$cross_compiling" = yes; then
3932
cat >conftest.$ac_ext <<_ACEOF
3933
#line $LINENO "configure"
3936
cat confdefs.h >>conftest.$ac_ext
3937
cat >>conftest.$ac_ext <<_ACEOF
3938
/* end confdefs.h. */
3940
#if ((' ' & 0x0FF) == 0x020)
3941
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3944
# define ISLOWER(c) \
3945
(('a' <= (c) && (c) <= 'i') \
3946
|| ('j' <= (c) && (c) <= 'r') \
3947
|| ('s' <= (c) && (c) <= 'z'))
3948
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3951
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956
for (i = 0; i < 256; i++)
3957
if (XOR (islower (i), ISLOWER (i))
3958
|| toupper (i) != TOUPPER (i))
3963
rm -f conftest$ac_exeext
3964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965
(eval $ac_link) 2>&5
3967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3969
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
(exit $ac_status); }; }; then
3976
echo "$as_me: program exited with status $ac_status" >&5
3977
echo "$as_me: failed program was:" >&5
3978
sed 's/^/| /' conftest.$ac_ext >&5
3981
ac_cv_header_stdc=no
3983
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3989
if test $ac_cv_header_stdc = yes; then
3991
cat >>confdefs.h <<\_ACEOF
3992
#define STDC_HEADERS 1
3999
for ac_header in string.h memory.h
4001
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003
echo "$as_me:$LINENO: checking for $ac_header" >&5
4004
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4005
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006
echo $ECHO_N "(cached) $ECHO_C" >&6
4008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4011
# Is the header compilable?
4012
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4014
cat >conftest.$ac_ext <<_ACEOF
4015
#line $LINENO "configure"
4018
cat confdefs.h >>conftest.$ac_ext
4019
cat >>conftest.$ac_ext <<_ACEOF
4020
/* end confdefs.h. */
4021
$ac_includes_default
4022
#include <$ac_header>
4024
rm -f conftest.$ac_objext
4025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026
(eval $ac_compile) 2>&5
4028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029
(exit $ac_status); } &&
4030
{ ac_try='test -s conftest.$ac_objext'
4031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035
(exit $ac_status); }; }; then
4036
ac_header_compiler=yes
4038
echo "$as_me: failed program was:" >&5
4039
sed 's/^/| /' conftest.$ac_ext >&5
4041
ac_header_compiler=no
4043
rm -f conftest.$ac_objext conftest.$ac_ext
4044
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045
echo "${ECHO_T}$ac_header_compiler" >&6
4047
# Is the header present?
4048
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4050
cat >conftest.$ac_ext <<_ACEOF
4051
#line $LINENO "configure"
4054
cat confdefs.h >>conftest.$ac_ext
4055
cat >>conftest.$ac_ext <<_ACEOF
4056
/* end confdefs.h. */
4057
#include <$ac_header>
4059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062
grep -v '^ *+' conftest.er1 >conftest.err
4064
cat conftest.err >&5
4065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); } >/dev/null; then
4067
if test -s conftest.err; then
4068
ac_cpp_err=$ac_c_preproc_warn_flag
4075
if test -z "$ac_cpp_err"; then
4076
ac_header_preproc=yes
4078
echo "$as_me: failed program was:" >&5
4079
sed 's/^/| /' conftest.$ac_ext >&5
4081
ac_header_preproc=no
4083
rm -f conftest.err conftest.$ac_ext
4084
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4085
echo "${ECHO_T}$ac_header_preproc" >&6
4087
# So? What about this header?
4088
case $ac_header_compiler:$ac_header_preproc in
4090
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4091
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4092
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4093
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096
## ------------------------------------ ##
4097
## Report this to bug-autoconf@gnu.org. ##
4098
## ------------------------------------ ##
4101
sed "s/^/$as_me: WARNING: /" >&2
4104
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4112
## ------------------------------------ ##
4113
## Report this to bug-autoconf@gnu.org. ##
4114
## ------------------------------------ ##
4117
sed "s/^/$as_me: WARNING: /" >&2
4120
echo "$as_me:$LINENO: checking for $ac_header" >&5
4121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123
echo $ECHO_N "(cached) $ECHO_C" >&6
4125
eval "$as_ac_Header=$ac_header_preproc"
4127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4132
cat >>confdefs.h <<_ACEOF
4133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141
# --with-dmalloc option: add dmalloc library
4143
# Check whether --with-dmalloc or --without-dmalloc was given.
4144
if test "${with_dmalloc+set}" = set; then
4145
withval="$with_dmalloc"
4148
if test "$with_dmalloc" = yes; then
4149
echo "$as_me:$LINENO: checking for dmalloc_debug in -ldmalloc" >&5
4150
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4151
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4152
echo $ECHO_N "(cached) $ECHO_C" >&6
4154
ac_check_lib_save_LIBS=$LIBS
4155
LIBS="-ldmalloc $LIBS"
4156
cat >conftest.$ac_ext <<_ACEOF
4157
#line $LINENO "configure"
4160
cat confdefs.h >>conftest.$ac_ext
4161
cat >>conftest.$ac_ext <<_ACEOF
4162
/* end confdefs.h. */
4164
/* Override any gcc2 internal prototype to avoid an error. */
4168
/* We use char because int might match the return type of a gcc2
4169
builtin and then its argument prototype would still apply. */
4170
char dmalloc_debug ();
4179
rm -f conftest.$ac_objext conftest$ac_exeext
4180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181
(eval $ac_link) 2>&5
4183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184
(exit $ac_status); } &&
4185
{ ac_try='test -s conftest$ac_exeext'
4186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190
(exit $ac_status); }; }; then
4191
ac_cv_lib_dmalloc_dmalloc_debug=yes
4193
echo "$as_me: failed program was:" >&5
4194
sed 's/^/| /' conftest.$ac_ext >&5
4196
ac_cv_lib_dmalloc_dmalloc_debug=no
4198
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4199
LIBS=$ac_check_lib_save_LIBS
4201
echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4202
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4203
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4204
LIBS="$LIBS -ldmalloc"; CPPFLAGS="$CPPFLAGS -DDMALLOC"
4209
# Write the Makefiles
4210
ac_config_files="$ac_config_files Makefile"
4211
cat >confcache <<\_ACEOF
4212
# This file is a shell script that caches the results of configure
4213
# tests run on this system so they can be shared between configure
4214
# scripts and configure runs, see configure's option --config-cache.
4215
# It is not useful on other systems. If it contains results you don't
4216
# want to keep, you may remove or edit it.
4218
# config.status only pays attention to the cache file if you give it
4219
# the --recheck option to rerun configure.
4221
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4222
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4227
# The following way of writing the cache mishandles newlines in values,
4228
# but we know of no workaround that is simple, portable, and efficient.
4229
# So, don't put newlines in cache variables' values.
4230
# Ultrix sh set writes to stderr and can't be redirected directly,
4231
# and sets the high bit in the cache file unless we assign to the vars.
4234
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4236
# `set' does not quote correctly, so add quotes (double-quote
4237
# substitution turns \\\\ into \\, and sed turns \\ into \).
4240
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4243
# `set' quotes correctly as required by POSIX, so do not add quotes.
4245
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4252
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4254
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4256
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4257
if test -w $cache_file; then
4258
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4259
cat confcache >$cache_file
4261
echo "not updating unwritable cache $cache_file"
4266
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4267
# Let make expand exec_prefix.
4268
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4270
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4271
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4272
# trailing colons and then remove the whole line if VPATH becomes empty
4273
# (actually we leave an empty line to preserve line numbers).
4274
if test "x$srcdir" = x.; then
4275
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4276
s/:*\$(srcdir):*/:/;
4277
s/:*\${srcdir}:*/:/;
4279
s/^\([^=]*=[ ]*\):*/\1/;
4285
# Transform confdefs.h into DEFS.
4286
# Protect against shell expansion while executing Makefile rules.
4287
# Protect against Makefile macro expansion.
4289
# If the first sed substitution is executed (which looks for macros that
4290
# take arguments), then we branch to the quote section. Otherwise,
4291
# look for a macro that doesn't take arguments.
4292
cat >confdef2opt.sed <<\_ACEOF
4295
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4297
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4301
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4307
# We use echo to avoid assuming a particular line-breaking character.
4308
# The extra dot is to prevent the shell from consuming trailing
4309
# line-breaks from the sub-command output. A line-break within
4310
# single-quotes doesn't work because, if this script is created in a
4311
# platform that uses two characters for line-breaks (e.g., DOS), tr
4313
ac_LF_and_DOT=`echo; echo .`
4314
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4315
rm -f confdef2opt.sed
4320
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4321
# 1. Remove the extension, and $U if already installed.
4322
ac_i=`echo "$ac_i" |
4323
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4325
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4326
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4330
LTLIBOBJS=$ac_ltlibobjs
4334
: ${CONFIG_STATUS=./config.status}
4335
ac_clean_files_save=$ac_clean_files
4336
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4337
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4338
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4339
cat >$CONFIG_STATUS <<_ACEOF
4341
# Generated by $as_me.
4342
# Run this file to recreate the current configuration.
4343
# Compiler output produced by configure, useful for debugging
4344
# configure, is in config.log if it exists.
4349
SHELL=\${CONFIG_SHELL-$SHELL}
4352
cat >>$CONFIG_STATUS <<\_ACEOF
4353
## --------------------- ##
4354
## M4sh Initialization. ##
4355
## --------------------- ##
4357
# Be Bourne compatible
4358
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4361
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4362
# is contrary to our usage. Disable this feature.
4363
alias -g '${1+"$@"}'='"$@"'
4364
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4368
# Support unset when possible.
4369
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4376
# Work around bugs in pre-3.0 UWIN ksh.
4377
$as_unset ENV MAIL MAILPATH
4384
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4385
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4386
LC_TELEPHONE LC_TIME
4388
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4389
eval $as_var=C; export $as_var
4395
# Required to use basename.
4396
if expr a : '\(a\)' >/dev/null 2>&1; then
4402
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4403
as_basename=basename
4409
# Name of the executable.
4410
as_me=`$as_basename "$0" ||
4411
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4412
X"$0" : 'X\(//\)$' \| \
4413
X"$0" : 'X\(/\)$' \| \
4414
. : '\(.\)' 2>/dev/null ||
4416
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4417
/^X\/\(\/\/\)$/{ s//\1/; q; }
4418
/^X\/\(\/\).*/{ s//\1/; q; }
4422
# PATH needs CR, and LINENO needs CR and PATH.
4423
# Avoid depending upon Character Ranges.
4424
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4425
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4426
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4427
as_cr_digits='0123456789'
4428
as_cr_alnum=$as_cr_Letters$as_cr_digits
4430
# The user is always right.
4431
if test "${PATH_SEPARATOR+set}" != set; then
4432
echo "#! /bin/sh" >conf$$.sh
4433
echo "exit 0" >>conf$$.sh
4435
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4447
test "x$as_lineno_1" != "x$as_lineno_2" &&
4448
test "x$as_lineno_3" = "x$as_lineno_2" || {
4449
# Find who we are. Look in the path if we contain no path at all
4452
*[\\/]* ) as_myself=$0 ;;
4453
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457
test -z "$as_dir" && as_dir=.
4458
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4463
# We did not find ourselves, most probably we were run as `sh COMMAND'
4464
# in which case we are not to be found in the path.
4465
if test "x$as_myself" = x; then
4468
if test ! -f "$as_myself"; then
4469
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4470
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4471
{ (exit 1); exit 1; }; }
4473
case $CONFIG_SHELL in
4475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4479
test -z "$as_dir" && as_dir=.
4480
for as_base in sh bash ksh sh5; do
4483
if ("$as_dir/$as_base" -c '
4486
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4487
test "x$as_lineno_1" != "x$as_lineno_2" &&
4488
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4489
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4490
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4491
CONFIG_SHELL=$as_dir/$as_base
4493
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4501
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4502
# uniformly replaced by the line number. The first 'sed' inserts a
4503
# line-number line before each line; the second 'sed' does the real
4504
# work. The second script uses 'N' to pair each line-number line
4505
# with the numbered line, and appends trailing '-' during
4506
# substitution so that $LINENO is not a special case at line end.
4507
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4508
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4509
sed '=' <$as_myself |
4514
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4517
s,^['$as_cr_digits']*\n,,
4519
chmod +x $as_me.lineno ||
4520
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4521
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4522
{ (exit 1); exit 1; }; }
4524
# Don't try to exec as it changes $[0], causing all sort of problems
4525
# (the dirname of $[0] is not the place where we might find the
4526
# original and so on. Autoconf is especially sensible to this).
4528
# Exit status is that of the last command.
4533
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4534
*c*,-n*) ECHO_N= ECHO_C='
4536
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4537
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4540
if expr a : '\(a\)' >/dev/null 2>&1; then
4546
rm -f conf$$ conf$$.exe conf$$.file
4548
if ln -s conf$$.file conf$$ 2>/dev/null; then
4549
# We could just check for DJGPP; but this test a) works b) is more generic
4550
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4551
if test -f conf$$.exe; then
4552
# Don't use ln at all; we don't have any links
4557
elif ln conf$$.file conf$$ 2>/dev/null; then
4562
rm -f conf$$ conf$$.exe conf$$.file
4564
if mkdir -p . 2>/dev/null; then
4570
as_executable_p="test -f"
4572
# Sed expression to map a string onto a valid CPP name.
4573
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4575
# Sed expression to map a string onto a valid variable name.
4576
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4580
# We need space, tab and new line, in precisely that order.
4590
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4591
# report actual input values of CONFIG_FILES etc. instead of their
4592
# values after options handling. Logging --version etc. is OK.
4596
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4597
## Running $as_me. ##
4602
This file was extended by $as_me, which was
4603
generated by GNU Autoconf 2.57. Invocation command line was
4605
CONFIG_FILES = $CONFIG_FILES
4606
CONFIG_HEADERS = $CONFIG_HEADERS
4607
CONFIG_LINKS = $CONFIG_LINKS
4608
CONFIG_COMMANDS = $CONFIG_COMMANDS
4612
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4616
# Files that config.status was made for.
4617
if test -n "$ac_config_files"; then
4618
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4621
if test -n "$ac_config_headers"; then
4622
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4625
if test -n "$ac_config_links"; then
4626
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4629
if test -n "$ac_config_commands"; then
4630
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4633
cat >>$CONFIG_STATUS <<\_ACEOF
4636
\`$as_me' instantiates files from templates according to the
4637
current configuration.
4639
Usage: $0 [OPTIONS] [FILE]...
4641
-h, --help print this help, then exit
4642
-V, --version print version number, then exit
4643
-q, --quiet do not print progress messages
4644
-d, --debug don't remove temporary files
4645
--recheck update $as_me by reconfiguring in the same conditions
4646
--file=FILE[:TEMPLATE]
4647
instantiate the configuration file FILE
4649
Configuration files:
4652
Report bugs to <bug-autoconf@gnu.org>."
4655
cat >>$CONFIG_STATUS <<_ACEOF
4658
configured by $0, generated by GNU Autoconf 2.57,
4659
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4661
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4662
Free Software Foundation, Inc.
4663
This config.status script is free software; the Free Software Foundation
4664
gives unlimited permission to copy, distribute and modify it."
4669
cat >>$CONFIG_STATUS <<\_ACEOF
4670
# If no file are specified by the user, then we need to provide default
4671
# value. By we need to know if files were specified by the user.
4677
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4678
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4686
*) # This is not an option, so the user has probably given explicit
4689
ac_need_defaults=false;;
4693
# Handling of the options.
4695
cat >>$CONFIG_STATUS <<\_ACEOF
4696
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4698
--version | --vers* | -V )
4699
echo "$ac_cs_version"; exit 0 ;;
4701
# Conflict between --help and --header
4702
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4703
Try \`$0 --help' for more information." >&5
4704
echo "$as_me: error: ambiguous option: $1
4705
Try \`$0 --help' for more information." >&2;}
4706
{ (exit 1); exit 1; }; };;
4707
--help | --hel | -h )
4708
echo "$ac_cs_usage"; exit 0 ;;
4709
--debug | --d* | -d )
4711
--file | --fil | --fi | --f )
4713
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4714
ac_need_defaults=false;;
4715
--header | --heade | --head | --hea )
4717
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4718
ac_need_defaults=false;;
4719
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4720
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4724
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4725
Try \`$0 --help' for more information." >&5
4726
echo "$as_me: error: unrecognized option: $1
4727
Try \`$0 --help' for more information." >&2;}
4728
{ (exit 1); exit 1; }; } ;;
4730
*) ac_config_targets="$ac_config_targets $1" ;;
4736
ac_configure_extra_args=
4738
if $ac_cs_silent; then
4740
ac_configure_extra_args="$ac_configure_extra_args --silent"
4744
cat >>$CONFIG_STATUS <<_ACEOF
4745
if \$ac_cs_recheck; then
4746
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4747
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4756
cat >>$CONFIG_STATUS <<\_ACEOF
4757
for ac_config_target in $ac_config_targets
4759
case "$ac_config_target" in
4760
# Handling of arguments.
4761
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4762
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4763
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4764
{ (exit 1); exit 1; }; };;
4768
# If the user did not use the arguments to specify the items to instantiate,
4769
# then the envvar interface is used. Set only those that are not.
4770
# We use the long form for the default assignment because of an extremely
4771
# bizarre bug on SunOS 4.1.3.
4772
if $ac_need_defaults; then
4773
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4776
# Have a temporary directory for convenience. Make it in the build tree
4777
# simply because there is no reason to put it here, and in addition,
4778
# creating and moving files from /tmp can sometimes cause problems.
4779
# Create a temporary directory, and hook for its removal unless debugging.
4782
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4783
trap '{ (exit 1); exit 1; }' 1 2 13 15
4786
# Create a (secure) tmp directory for tmp files.
4789
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4790
test -n "$tmp" && test -d "$tmp"
4793
tmp=./confstat$$-$RANDOM
4794
(umask 077 && mkdir $tmp)
4797
echo "$me: cannot create a temporary directory in ." >&2
4798
{ (exit 1); exit 1; }
4803
cat >>$CONFIG_STATUS <<_ACEOF
4806
# CONFIG_FILES section.
4809
# No need to generate the scripts if there are no CONFIG_FILES.
4810
# This happens for instance when ./config.status config.h
4811
if test -n "\$CONFIG_FILES"; then
4812
# Protect against being on the right side of a sed subst in config.status.
4813
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4814
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4815
s,@SHELL@,$SHELL,;t t
4816
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4817
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4818
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4819
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4820
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4821
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4822
s,@exec_prefix@,$exec_prefix,;t t
4823
s,@prefix@,$prefix,;t t
4824
s,@program_transform_name@,$program_transform_name,;t t
4825
s,@bindir@,$bindir,;t t
4826
s,@sbindir@,$sbindir,;t t
4827
s,@libexecdir@,$libexecdir,;t t
4828
s,@datadir@,$datadir,;t t
4829
s,@sysconfdir@,$sysconfdir,;t t
4830
s,@sharedstatedir@,$sharedstatedir,;t t
4831
s,@localstatedir@,$localstatedir,;t t
4832
s,@libdir@,$libdir,;t t
4833
s,@includedir@,$includedir,;t t
4834
s,@oldincludedir@,$oldincludedir,;t t
4835
s,@infodir@,$infodir,;t t
4836
s,@mandir@,$mandir,;t t
4837
s,@build_alias@,$build_alias,;t t
4838
s,@host_alias@,$host_alias,;t t
4839
s,@target_alias@,$target_alias,;t t
4841
s,@ECHO_C@,$ECHO_C,;t t
4842
s,@ECHO_N@,$ECHO_N,;t t
4843
s,@ECHO_T@,$ECHO_T,;t t
4845
s,@CPPFLAGS@,$CPPFLAGS,;t t
4846
s,@CFLAGS@,$CFLAGS,;t t
4848
s,@LDFLAGS@,$LDFLAGS,;t t
4849
s,@ac_ct_CC@,$ac_ct_CC,;t t
4850
s,@EXEEXT@,$EXEEXT,;t t
4851
s,@OBJEXT@,$OBJEXT,;t t
4853
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4854
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4855
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4856
s,@RANLIB@,$RANLIB,;t t
4857
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4858
s,@EGREP@,$EGREP,;t t
4859
s,@ARGP_GETOPT_O_FILES@,$ARGP_GETOPT_O_FILES,;t t
4860
s,@LIBOBJS@,$LIBOBJS,;t t
4861
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4866
cat >>$CONFIG_STATUS <<\_ACEOF
4867
# Split the substitutions into bite-sized pieces for seds with
4868
# small command number limits, like on Digital OSF/1 and HP-UX.
4870
ac_sed_frag=1 # Number of current file.
4871
ac_beg=1 # First line for current file.
4872
ac_end=$ac_max_sed_lines # Line after last line for current file.
4875
while $ac_more_lines; do
4876
if test $ac_beg -gt 1; then
4877
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4879
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4881
if test ! -s $tmp/subs.frag; then
4884
# The purpose of the label and of the branching condition is to
4885
# speed up the sed processing (if there are no `@' at all, there
4886
# is no need to browse any of the substitutions).
4887
# These are the two extra sed commands mentioned above.
4889
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4890
if test -z "$ac_sed_cmds"; then
4891
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4893
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4895
ac_sed_frag=`expr $ac_sed_frag + 1`
4897
ac_end=`expr $ac_end + $ac_max_sed_lines`
4900
if test -z "$ac_sed_cmds"; then
4903
fi # test -n "$CONFIG_FILES"
4906
cat >>$CONFIG_STATUS <<\_ACEOF
4907
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4908
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4910
- | *:- | *:-:* ) # input from stdin
4912
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4913
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4914
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4915
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4916
* ) ac_file_in=$ac_file.in ;;
4919
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4920
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4921
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4922
X"$ac_file" : 'X\(//\)[^/]' \| \
4923
X"$ac_file" : 'X\(//\)$' \| \
4924
X"$ac_file" : 'X\(/\)' \| \
4925
. : '\(.\)' 2>/dev/null ||
4927
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4928
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4929
/^X\(\/\/\)$/{ s//\1/; q; }
4930
/^X\(\/\).*/{ s//\1/; q; }
4932
{ if $as_mkdir_p; then
4937
while test ! -d "$as_dir"; do
4938
as_dirs="$as_dir $as_dirs"
4939
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4940
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4941
X"$as_dir" : 'X\(//\)[^/]' \| \
4942
X"$as_dir" : 'X\(//\)$' \| \
4943
X"$as_dir" : 'X\(/\)' \| \
4944
. : '\(.\)' 2>/dev/null ||
4946
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4947
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4948
/^X\(\/\/\)$/{ s//\1/; q; }
4949
/^X\(\/\).*/{ s//\1/; q; }
4952
test ! -n "$as_dirs" || mkdir $as_dirs
4953
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4954
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4955
{ (exit 1); exit 1; }; }; }
4959
if test "$ac_dir" != .; then
4960
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4961
# A "../" for each directory in $ac_dir_suffix.
4962
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4964
ac_dir_suffix= ac_top_builddir=
4968
.) # No --srcdir option. We are building in place.
4970
if test -z "$ac_top_builddir"; then
4973
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4975
[\\/]* | ?:[\\/]* ) # Absolute path.
4976
ac_srcdir=$srcdir$ac_dir_suffix;
4977
ac_top_srcdir=$srcdir ;;
4979
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4980
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4982
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4984
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4985
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4986
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4987
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4991
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4992
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4995
if test x"$ac_file" != x-; then
4996
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4997
echo "$as_me: creating $ac_file" >&6;}
5000
# Let's still pretend it is `configure' which instantiates (i.e., don't
5001
# use $as_me), people would be surprised to read:
5002
# /* config.h. Generated by config.status. */
5003
if test x"$ac_file" = x-; then
5006
configure_input="$ac_file. "
5008
configure_input=$configure_input"Generated from `echo $ac_file_in |
5009
sed 's,.*/,,'` by configure."
5011
# First look for the input files in the build tree, otherwise in the
5013
ac_file_inputs=`IFS=:
5014
for f in $ac_file_in; do
5016
-) echo $tmp/stdin ;;
5018
# Absolute (can't be DOS-style, as IFS=:)
5019
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5020
echo "$as_me: error: cannot find input file: $f" >&2;}
5021
{ (exit 1); exit 1; }; }
5024
if test -f "$f"; then
5027
elif test -f "$srcdir/$f"; then
5032
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5033
echo "$as_me: error: cannot find input file: $f" >&2;}
5034
{ (exit 1); exit 1; }; }
5037
done` || { (exit 1); exit 1; }
5039
cat >>$CONFIG_STATUS <<_ACEOF
5043
cat >>$CONFIG_STATUS <<\_ACEOF
5045
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5046
s,@configure_input@,$configure_input,;t t
5047
s,@srcdir@,$ac_srcdir,;t t
5048
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5049
s,@top_srcdir@,$ac_top_srcdir,;t t
5050
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5051
s,@builddir@,$ac_builddir,;t t
5052
s,@abs_builddir@,$ac_abs_builddir,;t t
5053
s,@top_builddir@,$ac_top_builddir,;t t
5054
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5055
s,@INSTALL@,$ac_INSTALL,;t t
5056
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5058
if test x"$ac_file" != x-; then
5059
mv $tmp/out $ac_file
5068
cat >>$CONFIG_STATUS <<\_ACEOF
5070
{ (exit 0); exit 0; }
5072
chmod +x $CONFIG_STATUS
5073
ac_clean_files=$ac_clean_files_save
5076
# configure is writing to config.log, and then calls config.status.
5077
# config.status does its own redirection, appending to config.log.
5078
# Unfortunately, on DOS this fails, as config.log is still kept open
5079
# by configure, so config.status won't be able to write to it; its
5080
# output is simply discarded. So we exec the FD to /dev/null,
5081
# effectively closing config.log, so it can be properly (re)opened and
5082
# appended to by config.status. When coming back to configure, we
5083
# need to make the FD available again.
5084
if test "$no_create" != yes; then
5086
ac_config_status_args=
5087
test "$silent" = yes &&
5088
ac_config_status_args="$ac_config_status_args --quiet"
5090
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5092
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5093
# would make configure fail if this is the last instruction.
5094
$ac_cs_success || { (exit 1); exit 1; }