2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59 for gnats 4.1.0.
5
@%:@ Report bugs to <bug-gnats@gnu.org>.
7
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8
@%:@ This configure script is free software; the Free Software Foundation
9
@%:@ gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
271
PACKAGE_TARNAME='gnats'
272
PACKAGE_VERSION='4.1.0'
273
PACKAGE_STRING='gnats 4.1.0'
274
PACKAGE_BUGREPORT='bug-gnats@gnu.org'
276
# Factoring default headers for most tests.
277
ac_includes_default="\
280
# include <sys/types.h>
283
# include <sys/stat.h>
294
# if !STDC_HEADERS && HAVE_MEMORY_H
300
# include <strings.h>
303
# include <inttypes.h>
313
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 PROGS MAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT M4 AWK EGREP ALLOCA EMACS lispdir GNATS_ALL GNATS_INSTALL KRB4 HAVE_KERBEROS KRBINCLUDE EXTRA_OBJS GNATS_SERVICE GNATS_USER DEFAULT_RELEASE DEFAULT_ORGANIZATION SUBMITTER DEFAULT_MAIL_AGENT BWEEK_START BWEEK_END BDAY_START BDAY_END GNATSD_USER_ACCESS_FILE GNATSD_HOST_ACCESS_FILE GLOBAL_DB_LIST_FILE GNATS_DEFAULT_DB_DIR GCC_CFLAGS SENDMAIL LIB@&t@OBJS LTLIBOBJS'
316
# Initialize some variables set by options.
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
328
program_transform_name=s,x,x,
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
357
# If the previous option needs an argument, assign it.
358
if test -n "$ac_prev"; then
359
eval "$ac_prev=\$ac_option"
364
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
# Accept the important Cygnus configure options, so we can diagnose typos.
370
-bindir | --bindir | --bindi | --bind | --bin | --bi)
372
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
-build | --build | --buil | --bui | --bu)
376
ac_prev=build_alias ;;
377
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
build_alias=$ac_optarg ;;
380
-cache-file | --cache-file | --cache-fil | --cache-fi \
381
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
ac_prev=cache_file ;;
383
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
cache_file=$ac_optarg ;;
388
cache_file=config.cache ;;
390
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
datadir=$ac_optarg ;;
396
-disable-* | --disable-*)
397
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
# Reject names that are not valid shell variable names.
399
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
{ (exit 1); exit 1; }; }
402
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
eval "enable_$ac_feature=no" ;;
405
-enable-* | --enable-*)
406
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
# Reject names that are not valid shell variable names.
408
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
{ (exit 1); exit 1; }; }
411
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
eval "enable_$ac_feature='$ac_optarg'" ;;
418
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
| --exec | --exe | --ex)
421
ac_prev=exec_prefix ;;
422
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
| --exec=* | --exe=* | --ex=*)
425
exec_prefix=$ac_optarg ;;
427
-gas | --gas | --ga | --g)
428
# Obsolete; use --with-gas.
431
-help | --help | --hel | --he | -h)
433
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
ac_init_help=recursive ;;
435
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
ac_init_help=short ;;
438
-host | --host | --hos | --ho)
439
ac_prev=host_alias ;;
440
-host=* | --host=* | --hos=* | --ho=*)
441
host_alias=$ac_optarg ;;
443
-includedir | --includedir | --includedi | --included | --include \
444
| --includ | --inclu | --incl | --inc)
445
ac_prev=includedir ;;
446
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
| --includ=* | --inclu=* | --incl=* | --inc=*)
448
includedir=$ac_optarg ;;
450
-infodir | --infodir | --infodi | --infod | --info | --inf)
452
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
infodir=$ac_optarg ;;
455
-libdir | --libdir | --libdi | --libd)
457
-libdir=* | --libdir=* | --libdi=* | --libd=*)
460
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
| --libexe | --libex | --libe)
462
ac_prev=libexecdir ;;
463
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
| --libexe=* | --libex=* | --libe=*)
465
libexecdir=$ac_optarg ;;
467
-localstatedir | --localstatedir | --localstatedi | --localstated \
468
| --localstate | --localstat | --localsta | --localst \
469
| --locals | --local | --loca | --loc | --lo)
470
ac_prev=localstatedir ;;
471
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
localstatedir=$ac_optarg ;;
476
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
# Obsolete; use --without-fp.
485
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
| --no-cr | --no-c | -n)
489
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
| --oldin | --oldi | --old | --ol | --o)
496
ac_prev=oldincludedir ;;
497
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
oldincludedir=$ac_optarg ;;
502
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
-program-prefix | --program-prefix | --program-prefi | --program-pref \
508
| --program-pre | --program-pr | --program-p)
509
ac_prev=program_prefix ;;
510
-program-prefix=* | --program-prefix=* | --program-prefi=* \
511
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
program_prefix=$ac_optarg ;;
514
-program-suffix | --program-suffix | --program-suffi | --program-suff \
515
| --program-suf | --program-su | --program-s)
516
ac_prev=program_suffix ;;
517
-program-suffix=* | --program-suffix=* | --program-suffi=* \
518
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
program_suffix=$ac_optarg ;;
521
-program-transform-name | --program-transform-name \
522
| --program-transform-nam | --program-transform-na \
523
| --program-transform-n | --program-transform- \
524
| --program-transform | --program-transfor \
525
| --program-transfo | --program-transf \
526
| --program-trans | --program-tran \
527
| --progr-tra | --program-tr | --program-t)
528
ac_prev=program_transform_name ;;
529
-program-transform-name=* | --program-transform-name=* \
530
| --program-transform-nam=* | --program-transform-na=* \
531
| --program-transform-n=* | --program-transform-=* \
532
| --program-transform=* | --program-transfor=* \
533
| --program-transfo=* | --program-transf=* \
534
| --program-trans=* | --program-tran=* \
535
| --progr-tra=* | --program-tr=* | --program-t=*)
536
program_transform_name=$ac_optarg ;;
538
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
| -silent | --silent | --silen | --sile | --sil)
542
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546
sbindir=$ac_optarg ;;
548
-sharedstatedir | --sharedstatedir | --sharedstatedi \
549
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
| --sharedst | --shareds | --shared | --share | --shar \
552
ac_prev=sharedstatedir ;;
553
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557
sharedstatedir=$ac_optarg ;;
559
-site | --site | --sit)
561
-site=* | --site=* | --sit=*)
564
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
| --syscon | --sysco | --sysc | --sys | --sy)
571
ac_prev=sysconfdir ;;
572
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
sysconfdir=$ac_optarg ;;
576
-target | --target | --targe | --targ | --tar | --ta | --t)
577
ac_prev=target_alias ;;
578
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
target_alias=$ac_optarg ;;
581
-v | -verbose | --verbose | --verbos | --verbo | --verb)
584
-version | --version | --versio | --versi | --vers | -V)
588
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid package name: $ac_package" >&2
592
{ (exit 1); exit 1; }; }
593
ac_package=`echo $ac_package| sed 's/-/_/g'`
595
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
eval "with_$ac_package='$ac_optarg'" ;;
600
-without-* | --without-*)
601
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
# Reject names that are not valid shell variable names.
603
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
{ echo "$as_me: error: invalid package name: $ac_package" >&2
605
{ (exit 1); exit 1; }; }
606
ac_package=`echo $ac_package | sed 's/-/_/g'`
607
eval "with_$ac_package=no" ;;
610
# Obsolete; use --with-x.
613
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
| --x-incl | --x-inc | --x-in | --x-i)
615
ac_prev=x_includes ;;
616
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
x_includes=$ac_optarg ;;
620
-x-libraries | --x-libraries | --x-librarie | --x-librari \
621
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
ac_prev=x_libraries ;;
623
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
x_libraries=$ac_optarg ;;
627
-*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
{ (exit 1); exit 1; }; }
633
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
# Reject names that are not valid shell variable names.
635
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
{ (exit 1); exit 1; }; }
638
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
eval "$ac_envvar='$ac_optarg'"
643
# FIXME: should be removed in autoconf 3.0.
644
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
if test -n "$ac_prev"; then
654
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
{ echo "$as_me: error: missing argument to $ac_option" >&2
656
{ (exit 1); exit 1; }; }
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
662
eval ac_val=$`echo $ac_var`
664
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
{ (exit 1); exit 1; }; };;
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
localstatedir libdir includedir oldincludedir infodir mandir
674
eval ac_val=$`echo $ac_var`
676
[\\/$]* | ?:[\\/]* ) ;;
677
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
{ (exit 1); exit 1; }; };;
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
if test "x$build_alias" = x; then
692
cross_compiling=maybe
693
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
If a cross compiler is detected then cross compile mode will be used." >&2
695
elif test "x$build_alias" != "x$host_alias"; then
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
test "$silent" = yes && exec 6>/dev/null
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
ac_srcdir_defaulted=yes
709
# Try the directory containing this script, then its parent.
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
/^X\(\/\/\)$/{ s//\1/; q; }
720
/^X\(\/\).*/{ s//\1/; q; }
723
if test ! -r $srcdir/$ac_unique_file; then
727
ac_srcdir_defaulted=no
729
if test ! -r $srcdir/$ac_unique_file; then
730
if test "$ac_srcdir_defaulted" = yes; then
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures gnats 4.1.0 to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
837
if test -n "$ac_init_help"; then
838
case $ac_init_help in
839
short | recursive ) echo "Configuration of gnats 4.1.0:";;
844
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
845
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
846
--with-kerberos include code for Kerberos authentication
847
--with-gnats-service=NAME
848
set the network service or port to NAME
849
--with-gnats-user=NAME set the username for GNATS from the passwd file
851
--with-gnatsd-user-access-file=PATH set global GNATSD access file to PATH
852
--with-gnatsd-host-access-file=PATH set global GNATSD access file to PATH
853
--with-gnats-dblist-file=PATH specify file containing list of databases
854
--with-gnats-default-db=PATH specify the default database directory to use
855
--with-lispdir=PATH specify the default lisp directory to use
856
--with-krb4 support Kerberos 4
858
Some influential environment variables:
859
CC C compiler command
860
CFLAGS C compiler flags
861
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862
nonstandard directory <lib dir>
863
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864
headers in a nonstandard directory <include dir>
867
Use these variables to override the choices made by `configure' or to help
868
it to find libraries and programs with nonstandard names/locations.
870
Report bugs to <bug-gnats@gnu.org>.
874
if test "$ac_init_help" = "recursive"; then
875
# If there are subdirs, report their specific --help.
877
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878
test -d $ac_dir || continue
881
if test "$ac_dir" != .; then
882
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883
# A "../" for each directory in $ac_dir_suffix.
884
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886
ac_dir_suffix= ac_top_builddir=
890
.) # No --srcdir option. We are building in place.
892
if test -z "$ac_top_builddir"; then
895
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897
[\\/]* | ?:[\\/]* ) # Absolute path.
898
ac_srcdir=$srcdir$ac_dir_suffix;
899
ac_top_srcdir=$srcdir ;;
901
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902
ac_top_srcdir=$ac_top_builddir$srcdir ;;
905
# Do not use `cd foo && pwd` to compute absolute paths, because
906
# the directories may not exist.
908
.) ac_abs_builddir="$ac_dir";;
911
.) ac_abs_builddir=`pwd`;;
912
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913
*) ac_abs_builddir=`pwd`/"$ac_dir";;
916
case $ac_abs_builddir in
917
.) ac_abs_top_builddir=${ac_top_builddir}.;;
919
case ${ac_top_builddir}. in
920
.) ac_abs_top_builddir=$ac_abs_builddir;;
921
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925
case $ac_abs_builddir in
926
.) ac_abs_srcdir=$ac_srcdir;;
929
.) ac_abs_srcdir=$ac_abs_builddir;;
930
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934
case $ac_abs_builddir in
935
.) ac_abs_top_srcdir=$ac_top_srcdir;;
937
case $ac_top_srcdir in
938
.) ac_abs_top_srcdir=$ac_abs_builddir;;
939
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945
# Check for guested configure; otherwise get Cygnus style configure.
946
if test -f $ac_srcdir/configure.gnu; then
948
$SHELL $ac_srcdir/configure.gnu --help=recursive
949
elif test -f $ac_srcdir/configure; then
951
$SHELL $ac_srcdir/configure --help=recursive
952
elif test -f $ac_srcdir/configure.ac ||
953
test -f $ac_srcdir/configure.in; then
957
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963
test -n "$ac_init_help" && exit 0
964
if $ac_init_version; then
966
gnats configure 4.1.0
967
generated by GNU Autoconf 2.59
969
Copyright (C) 2003 Free Software Foundation, Inc.
970
This configure script is free software; the Free Software Foundation
971
gives unlimited permission to copy, distribute and modify it.
977
This file contains any messages produced by compilers while
978
running configure, to aid debugging if configure makes a mistake.
980
It was created by gnats $as_me 4.1.0, which was
981
generated by GNU Autoconf 2.59. Invocation command line was
988
@%:@@%:@ --------- @%:@@%:@
989
@%:@@%:@ Platform. @%:@@%:@
990
@%:@@%:@ --------- @%:@@%:@
992
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993
uname -m = `(uname -m) 2>/dev/null || echo unknown`
994
uname -r = `(uname -r) 2>/dev/null || echo unknown`
995
uname -s = `(uname -s) 2>/dev/null || echo unknown`
996
uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015
test -z "$as_dir" && as_dir=.
1016
echo "PATH: $as_dir"
1024
@%:@@%:@ ----------- @%:@@%:@
1025
@%:@@%:@ Core tests. @%:@@%:@
1026
@%:@@%:@ ----------- @%:@@%:@
1031
# Keep a trace of the command line.
1032
# Strip out --no-create and --no-recursion so they do not pile up.
1033
# Strip out --silent because we don't want to record it for future runs.
1034
# Also quote any args containing shell meta-characters.
1035
# Make two passes to allow for proper duplicate-argument suppression.
1040
ac_must_keep_next=false
1046
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048
| -silent | --silent | --silen | --sile | --sil)
1050
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057
if test $ac_must_keep_next = true; then
1058
ac_must_keep_next=false # Got value, back to normal.
1061
*=* | --config-cache | -C | -disable-* | --disable-* \
1062
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064
| -with-* | --with-* | -without-* | --without-* | --x)
1065
case "$ac_configure_args0 " in
1066
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069
-* ) ac_must_keep_next=true ;;
1072
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073
# Get rid of the leading space.
1079
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
# When interrupted or exit'd, cleanup temporary files, and complete
1083
# config.log. We remove comments because anyway the quotes in there
1084
# would cause problems or look ugly.
1085
# WARNING: Be sure not to use single quotes in there, as some shells,
1086
# such as our DU 5.0 friend, will then `close' the trap.
1087
trap 'exit_status=$?
1088
# Save into config.log some information that might help in debugging.
1093
@%:@@%:@ ---------------- @%:@@%:@
1094
@%:@@%:@ Cache variables. @%:@@%:@
1095
@%:@@%:@ ---------------- @%:@@%:@
1098
# The following way of writing the cache mishandles newlines in values,
1101
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116
@%:@@%:@ ----------------- @%:@@%:@
1117
@%:@@%:@ Output variables. @%:@@%:@
1118
@%:@@%:@ ----------------- @%:@@%:@
1121
for ac_var in $ac_subst_vars
1123
eval ac_val=$`echo $ac_var`
1124
echo "$ac_var='"'"'$ac_val'"'"'"
1128
if test -n "$ac_subst_files"; then
1130
@%:@@%:@ ------------- @%:@@%:@
1131
@%:@@%:@ Output files. @%:@@%:@
1132
@%:@@%:@ ------------- @%:@@%:@
1135
for ac_var in $ac_subst_files
1137
eval ac_val=$`echo $ac_var`
1138
echo "$ac_var='"'"'$ac_val'"'"'"
1143
if test -s confdefs.h; then
1145
@%:@@%:@ ----------- @%:@@%:@
1146
@%:@@%:@ confdefs.h. @%:@@%:@
1147
@%:@@%:@ ----------- @%:@@%:@
1150
sed "/^$/d" confdefs.h | sort
1153
test "$ac_signal" != 0 &&
1154
echo "$as_me: caught signal $ac_signal"
1155
echo "$as_me: exit $exit_status"
1157
rm -f core *.core &&
1158
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161
for ac_signal in 1 2 13 15; do
1162
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1167
rm -rf conftest* confdefs.h
1168
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171
# Predefined preprocessor variables.
1173
cat >>confdefs.h <<_ACEOF
1174
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1178
cat >>confdefs.h <<_ACEOF
1179
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183
cat >>confdefs.h <<_ACEOF
1184
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1188
cat >>confdefs.h <<_ACEOF
1189
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1193
cat >>confdefs.h <<_ACEOF
1194
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198
# Let the site file select an alternate cache file if it wants to.
1199
# Prefer explicitly selected file to automatically selected ones.
1200
if test -z "$CONFIG_SITE"; then
1201
if test "x$prefix" != xNONE; then
1202
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207
for ac_site_file in $CONFIG_SITE; do
1208
if test -r "$ac_site_file"; then
1209
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210
echo "$as_me: loading site script $ac_site_file" >&6;}
1211
sed 's/^/| /' "$ac_site_file" >&5
1216
if test -r "$cache_file"; then
1217
# Some versions of bash will fail to source /dev/null (special
1218
# files actually), so we avoid doing that.
1219
if test -f "$cache_file"; then
1220
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221
echo "$as_me: loading cache $cache_file" >&6;}
1223
[\\/]* | ?:[\\/]* ) . $cache_file;;
1224
*) . ./$cache_file;;
1228
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229
echo "$as_me: creating cache $cache_file" >&6;}
1233
# Check that the precious variables saved in the cache have kept the same
1235
ac_cache_corrupted=false
1236
for ac_var in `(set) 2>&1 |
1237
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239
eval ac_new_set=\$ac_env_${ac_var}_set
1240
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241
eval ac_new_val="\$ac_env_${ac_var}_value"
1242
case $ac_old_set,$ac_new_set in
1244
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246
ac_cache_corrupted=: ;;
1248
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250
ac_cache_corrupted=: ;;
1253
if test "x$ac_old_val" != "x$ac_new_val"; then
1254
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257
echo "$as_me: former value: $ac_old_val" >&2;}
1258
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259
echo "$as_me: current value: $ac_new_val" >&2;}
1260
ac_cache_corrupted=:
1263
# Pass precious variables to config.status.
1264
if test "$ac_new_set" = set; then
1266
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268
*) ac_arg=$ac_var=$ac_new_val ;;
1270
case " $ac_configure_args " in
1271
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276
if $ac_cache_corrupted; then
1277
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281
{ (exit 1); exit 1; }; }
1285
ac_cpp='$CPP $CPPFLAGS'
1286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
ac_config_headers="$ac_config_headers autoconf.h"
1321
# Check whether --with-kerberos or --without-kerberos was given.
1322
if test "${with_kerberos+set}" = set; then
1323
withval="$with_kerberos"
1327
# Check whether --with-gnats-service or --without-gnats-service was given.
1328
if test "${with_gnats_service+set}" = set; then
1329
withval="$with_gnats_service"
1333
# Check whether --with-gnats-user or --without-gnats-user was given.
1334
if test "${with_gnats_user+set}" = set; then
1335
withval="$with_gnats_user"
1339
# Check whether --with-gnatsd-user-access-file or --without-gnatsd-user-access-file was given.
1340
if test "${with_gnatsd_user_access_file+set}" = set; then
1341
withval="$with_gnatsd_user_access_file"
1345
# Check whether --with-gnatsd-host-access-file or --without-gnatsd-host-access-file was given.
1346
if test "${with_gnatsd_host_access_file+set}" = set; then
1347
withval="$with_gnatsd_host_access_file"
1351
# Check whether --with-gnats-dblist-file or --without-gnats-dblist-file was given.
1352
if test "${with_gnats_dblist_file+set}" = set; then
1353
withval="$with_gnats_dblist_file"
1357
# Check whether --with-gnats-default-db or --without-gnats-default-db was given.
1358
if test "${with_gnats_default_db+set}" = set; then
1359
withval="$with_gnats_default_db"
1363
# Check whether --with-lispdir or --without-lispdir was given.
1364
if test "${with_lispdir+set}" = set; then
1365
withval="$with_lispdir"
1371
ac_cpp='$CPP $CPPFLAGS'
1372
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
if test -n "$ac_tool_prefix"; then
1376
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378
echo "$as_me:$LINENO: checking for $ac_word" >&5
1379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380
if test "${ac_cv_prog_CC+set}" = set; then
1381
echo $ECHO_N "(cached) $ECHO_C" >&6
1383
if test -n "$CC"; then
1384
ac_cv_prog_CC="$CC" # Let the user override the test.
1386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390
test -z "$as_dir" && as_dir=.
1391
for ac_exec_ext in '' $ac_executable_extensions; do
1392
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403
if test -n "$CC"; then
1404
echo "$as_me:$LINENO: result: $CC" >&5
1405
echo "${ECHO_T}$CC" >&6
1407
echo "$as_me:$LINENO: result: no" >&5
1408
echo "${ECHO_T}no" >&6
1412
if test -z "$ac_cv_prog_CC"; then
1414
# Extract the first word of "gcc", so it can be a program name with args.
1415
set dummy gcc; ac_word=$2
1416
echo "$as_me:$LINENO: checking for $ac_word" >&5
1417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419
echo $ECHO_N "(cached) $ECHO_C" >&6
1421
if test -n "$ac_ct_CC"; then
1422
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428
test -z "$as_dir" && as_dir=.
1429
for ac_exec_ext in '' $ac_executable_extensions; do
1430
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431
ac_cv_prog_ac_ct_CC="gcc"
1432
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441
if test -n "$ac_ct_CC"; then
1442
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443
echo "${ECHO_T}$ac_ct_CC" >&6
1445
echo "$as_me:$LINENO: result: no" >&5
1446
echo "${ECHO_T}no" >&6
1454
if test -z "$CC"; then
1455
if test -n "$ac_tool_prefix"; then
1456
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457
set dummy ${ac_tool_prefix}cc; ac_word=$2
1458
echo "$as_me:$LINENO: checking for $ac_word" >&5
1459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460
if test "${ac_cv_prog_CC+set}" = set; then
1461
echo $ECHO_N "(cached) $ECHO_C" >&6
1463
if test -n "$CC"; then
1464
ac_cv_prog_CC="$CC" # Let the user override the test.
1466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470
test -z "$as_dir" && as_dir=.
1471
for ac_exec_ext in '' $ac_executable_extensions; do
1472
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473
ac_cv_prog_CC="${ac_tool_prefix}cc"
1474
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483
if test -n "$CC"; then
1484
echo "$as_me:$LINENO: result: $CC" >&5
1485
echo "${ECHO_T}$CC" >&6
1487
echo "$as_me:$LINENO: result: no" >&5
1488
echo "${ECHO_T}no" >&6
1492
if test -z "$ac_cv_prog_CC"; then
1494
# Extract the first word of "cc", so it can be a program name with args.
1495
set dummy cc; ac_word=$2
1496
echo "$as_me:$LINENO: checking for $ac_word" >&5
1497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499
echo $ECHO_N "(cached) $ECHO_C" >&6
1501
if test -n "$ac_ct_CC"; then
1502
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508
test -z "$as_dir" && as_dir=.
1509
for ac_exec_ext in '' $ac_executable_extensions; do
1510
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511
ac_cv_prog_ac_ct_CC="cc"
1512
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521
if test -n "$ac_ct_CC"; then
1522
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523
echo "${ECHO_T}$ac_ct_CC" >&6
1525
echo "$as_me:$LINENO: result: no" >&5
1526
echo "${ECHO_T}no" >&6
1535
if test -z "$CC"; then
1536
# Extract the first word of "cc", so it can be a program name with args.
1537
set dummy cc; ac_word=$2
1538
echo "$as_me:$LINENO: checking for $ac_word" >&5
1539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540
if test "${ac_cv_prog_CC+set}" = set; then
1541
echo $ECHO_N "(cached) $ECHO_C" >&6
1543
if test -n "$CC"; then
1544
ac_cv_prog_CC="$CC" # Let the user override the test.
1547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551
test -z "$as_dir" && as_dir=.
1552
for ac_exec_ext in '' $ac_executable_extensions; do
1553
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555
ac_prog_rejected=yes
1559
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565
if test $ac_prog_rejected = yes; then
1566
# We found a bogon in the path, so make sure we never use it.
1567
set dummy $ac_cv_prog_CC
1569
if test $@%:@ != 0; then
1570
# We chose a different compiler from the bogus one.
1571
# However, it has the same basename, so the bogon will be chosen
1572
# first if we set CC to just the basename; use the full file name.
1574
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1580
if test -n "$CC"; then
1581
echo "$as_me:$LINENO: result: $CC" >&5
1582
echo "${ECHO_T}$CC" >&6
1584
echo "$as_me:$LINENO: result: no" >&5
1585
echo "${ECHO_T}no" >&6
1589
if test -z "$CC"; then
1590
if test -n "$ac_tool_prefix"; then
1593
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595
echo "$as_me:$LINENO: checking for $ac_word" >&5
1596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597
if test "${ac_cv_prog_CC+set}" = set; then
1598
echo $ECHO_N "(cached) $ECHO_C" >&6
1600
if test -n "$CC"; then
1601
ac_cv_prog_CC="$CC" # Let the user override the test.
1603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607
test -z "$as_dir" && as_dir=.
1608
for ac_exec_ext in '' $ac_executable_extensions; do
1609
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620
if test -n "$CC"; then
1621
echo "$as_me:$LINENO: result: $CC" >&5
1622
echo "${ECHO_T}$CC" >&6
1624
echo "$as_me:$LINENO: result: no" >&5
1625
echo "${ECHO_T}no" >&6
1628
test -n "$CC" && break
1631
if test -z "$CC"; then
1635
# Extract the first word of "$ac_prog", so it can be a program name with args.
1636
set dummy $ac_prog; ac_word=$2
1637
echo "$as_me:$LINENO: checking for $ac_word" >&5
1638
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640
echo $ECHO_N "(cached) $ECHO_C" >&6
1642
if test -n "$ac_ct_CC"; then
1643
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649
test -z "$as_dir" && as_dir=.
1650
for ac_exec_ext in '' $ac_executable_extensions; do
1651
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652
ac_cv_prog_ac_ct_CC="$ac_prog"
1653
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662
if test -n "$ac_ct_CC"; then
1663
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664
echo "${ECHO_T}$ac_ct_CC" >&6
1666
echo "$as_me:$LINENO: result: no" >&5
1667
echo "${ECHO_T}no" >&6
1670
test -n "$ac_ct_CC" && break
1679
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680
See \`config.log' for more details." >&5
1681
echo "$as_me: error: no acceptable C compiler found in \$PATH
1682
See \`config.log' for more details." >&2;}
1683
{ (exit 1); exit 1; }; }
1685
# Provide some information about the compiler.
1686
echo "$as_me:$LINENO:" \
1687
"checking for C compiler version" >&5
1688
ac_compiler=`set X $ac_compile; echo $2`
1689
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690
(eval $ac_compiler --version </dev/null >&5) 2>&5
1692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693
(exit $ac_status); }
1694
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695
(eval $ac_compiler -v </dev/null >&5) 2>&5
1697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698
(exit $ac_status); }
1699
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700
(eval $ac_compiler -V </dev/null >&5) 2>&5
1702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703
(exit $ac_status); }
1705
cat >conftest.$ac_ext <<_ACEOF
1708
cat confdefs.h >>conftest.$ac_ext
1709
cat >>conftest.$ac_ext <<_ACEOF
1710
/* end confdefs.h. */
1720
ac_clean_files_save=$ac_clean_files
1721
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1722
# Try to create an executable without -o first, disregard a.out.
1723
# It will help us diagnose broken compilers, and finding out an intuition
1725
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1727
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729
(eval $ac_link_default) 2>&5
1731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732
(exit $ac_status); }; then
1733
# Find the output, starting from the most likely. This scheme is
1734
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737
# Be careful to initialize this variable, since it used to be cached.
1738
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1740
# b.out is created by i960 compilers.
1741
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1743
test -f "$ac_file" || continue
1745
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748
# This is the source file.
1751
# We found the default executable, but exeext='' is most
1755
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756
# FIXME: I believe we export ac_cv_exeext for Libtool,
1757
# but it would be cool to find out if it's true. Does anybody
1758
# maintain Libtool? --akim.
1766
echo "$as_me: failed program was:" >&5
1767
sed 's/^/| /' conftest.$ac_ext >&5
1769
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770
See \`config.log' for more details." >&5
1771
echo "$as_me: error: C compiler cannot create executables
1772
See \`config.log' for more details." >&2;}
1773
{ (exit 77); exit 77; }; }
1776
ac_exeext=$ac_cv_exeext
1777
echo "$as_me:$LINENO: result: $ac_file" >&5
1778
echo "${ECHO_T}$ac_file" >&6
1780
# Check the compiler produces executables we can run. If not, either
1781
# the compiler is broken, or we cross compile.
1782
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785
# If not cross compiling, check that we can run a simple program.
1786
if test "$cross_compiling" != yes; then
1787
if { ac_try='./$ac_file'
1788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792
(exit $ac_status); }; }; then
1795
if test "$cross_compiling" = maybe; then
1798
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799
If you meant to cross compile, use \`--host'.
1800
See \`config.log' for more details." >&5
1801
echo "$as_me: error: cannot run C compiled programs.
1802
If you meant to cross compile, use \`--host'.
1803
See \`config.log' for more details." >&2;}
1804
{ (exit 1); exit 1; }; }
1808
echo "$as_me:$LINENO: result: yes" >&5
1809
echo "${ECHO_T}yes" >&6
1811
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812
ac_clean_files=$ac_clean_files_save
1813
# Check the compiler produces executables we can run. If not, either
1814
# the compiler is broken, or we cross compile.
1815
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818
echo "${ECHO_T}$cross_compiling" >&6
1820
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1823
(eval $ac_link) 2>&5
1825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826
(exit $ac_status); }; then
1827
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1828
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829
# work properly (i.e., refer to `conftest.exe'), while it won't with
1831
for ac_file in conftest.exe conftest conftest.*; do
1832
test -f "$ac_file" || continue
1834
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843
See \`config.log' for more details." >&5
1844
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845
See \`config.log' for more details." >&2;}
1846
{ (exit 1); exit 1; }; }
1849
rm -f conftest$ac_cv_exeext
1850
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851
echo "${ECHO_T}$ac_cv_exeext" >&6
1853
rm -f conftest.$ac_ext
1854
EXEEXT=$ac_cv_exeext
1856
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1858
if test "${ac_cv_objext+set}" = set; then
1859
echo $ECHO_N "(cached) $ECHO_C" >&6
1861
cat >conftest.$ac_ext <<_ACEOF
1864
cat confdefs.h >>conftest.$ac_ext
1865
cat >>conftest.$ac_ext <<_ACEOF
1866
/* end confdefs.h. */
1876
rm -f conftest.o conftest.obj
1877
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878
(eval $ac_compile) 2>&5
1880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881
(exit $ac_status); }; then
1882
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1884
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1885
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1890
echo "$as_me: failed program was:" >&5
1891
sed 's/^/| /' conftest.$ac_ext >&5
1893
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894
See \`config.log' for more details." >&5
1895
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896
See \`config.log' for more details." >&2;}
1897
{ (exit 1); exit 1; }; }
1900
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1902
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903
echo "${ECHO_T}$ac_cv_objext" >&6
1904
OBJEXT=$ac_cv_objext
1906
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1908
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909
echo $ECHO_N "(cached) $ECHO_C" >&6
1911
cat >conftest.$ac_ext <<_ACEOF
1914
cat confdefs.h >>conftest.$ac_ext
1915
cat >>conftest.$ac_ext <<_ACEOF
1916
/* end confdefs.h. */
1929
rm -f conftest.$ac_objext
1930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931
(eval $ac_compile) 2>conftest.er1
1933
grep -v '^ *+' conftest.er1 >conftest.err
1935
cat conftest.err >&5
1936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937
(exit $ac_status); } &&
1938
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943
(exit $ac_status); }; } &&
1944
{ ac_try='test -s conftest.$ac_objext'
1945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949
(exit $ac_status); }; }; then
1952
echo "$as_me: failed program was:" >&5
1953
sed 's/^/| /' conftest.$ac_ext >&5
1957
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1961
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963
GCC=`test $ac_compiler_gnu = yes && echo yes`
1964
ac_test_CFLAGS=${CFLAGS+set}
1965
ac_save_CFLAGS=$CFLAGS
1967
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969
if test "${ac_cv_prog_cc_g+set}" = set; then
1970
echo $ECHO_N "(cached) $ECHO_C" >&6
1972
cat >conftest.$ac_ext <<_ACEOF
1975
cat confdefs.h >>conftest.$ac_ext
1976
cat >>conftest.$ac_ext <<_ACEOF
1977
/* end confdefs.h. */
1987
rm -f conftest.$ac_objext
1988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989
(eval $ac_compile) 2>conftest.er1
1991
grep -v '^ *+' conftest.er1 >conftest.err
1993
cat conftest.err >&5
1994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995
(exit $ac_status); } &&
1996
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001
(exit $ac_status); }; } &&
2002
{ ac_try='test -s conftest.$ac_objext'
2003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007
(exit $ac_status); }; }; then
2010
echo "$as_me: failed program was:" >&5
2011
sed 's/^/| /' conftest.$ac_ext >&5
2015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2019
if test "$ac_test_CFLAGS" = set; then
2020
CFLAGS=$ac_save_CFLAGS
2021
elif test $ac_cv_prog_cc_g = yes; then
2022
if test "$GCC" = yes; then
2028
if test "$GCC" = yes; then
2034
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037
echo $ECHO_N "(cached) $ECHO_C" >&6
2039
ac_cv_prog_cc_stdc=no
2041
cat >conftest.$ac_ext <<_ACEOF
2044
cat confdefs.h >>conftest.$ac_ext
2045
cat >>conftest.$ac_ext <<_ACEOF
2046
/* end confdefs.h. */
2049
#include <sys/types.h>
2050
#include <sys/stat.h>
2051
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052
struct buf { int x; };
2053
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054
static char *e (p, i)
2060
static char *f (char * (*g) (char **, int), char **p, ...)
2065
s = g (p, va_arg (v,int));
2070
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071
function prototypes and stuff, but not '\xHH' hex character constants.
2072
These don't provoke an error unfortunately, instead are silently treated
2073
as 'x'. The following induces an error, until -std1 is added to get
2074
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075
array size at least. It's necessary to write '\x00'==0 to get something
2076
that's true only with -std1. */
2077
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
int test (int i, double x);
2080
struct s1 {int (*f) (int a);};
2081
struct s2 {int (*f) (double a);};
2082
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2088
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093
# Don't try gcc -ansi; that turns off useful extensions and
2094
# breaks some systems' header files.
2095
# AIX -qlanglvl=ansi
2096
# Ultrix and OSF/1 -std1
2097
# HP-UX 10.20 and later -Ae
2098
# HP-UX older versions -Aa -D_HPUX_SOURCE
2099
# SVR4 -Xc -D__EXTENSIONS__
2100
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102
CC="$ac_save_CC $ac_arg"
2103
rm -f conftest.$ac_objext
2104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105
(eval $ac_compile) 2>conftest.er1
2107
grep -v '^ *+' conftest.er1 >conftest.err
2109
cat conftest.err >&5
2110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111
(exit $ac_status); } &&
2112
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117
(exit $ac_status); }; } &&
2118
{ ac_try='test -s conftest.$ac_objext'
2119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123
(exit $ac_status); }; }; then
2124
ac_cv_prog_cc_stdc=$ac_arg
2127
echo "$as_me: failed program was:" >&5
2128
sed 's/^/| /' conftest.$ac_ext >&5
2131
rm -f conftest.err conftest.$ac_objext
2133
rm -f conftest.$ac_ext conftest.$ac_objext
2138
case "x$ac_cv_prog_cc_stdc" in
2140
echo "$as_me:$LINENO: result: none needed" >&5
2141
echo "${ECHO_T}none needed" >&6 ;;
2143
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2144
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2145
CC="$CC $ac_cv_prog_cc_stdc" ;;
2148
# Some people use a C++ compiler to compile C. Since we use `exit',
2149
# in C++ we need to declare it. In case someone uses the same compiler
2150
# for both compiling C and C++ we need to have the C++ compiler decide
2151
# the declaration of exit, since it's the most demanding environment.
2152
cat >conftest.$ac_ext <<_ACEOF
2153
@%:@ifndef __cplusplus
2157
rm -f conftest.$ac_objext
2158
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159
(eval $ac_compile) 2>conftest.er1
2161
grep -v '^ *+' conftest.er1 >conftest.err
2163
cat conftest.err >&5
2164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165
(exit $ac_status); } &&
2166
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171
(exit $ac_status); }; } &&
2172
{ ac_try='test -s conftest.$ac_objext'
2173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
(exit $ac_status); }; }; then
2178
for ac_declaration in \
2180
'extern "C" void std::exit (int) throw (); using std::exit;' \
2181
'extern "C" void std::exit (int); using std::exit;' \
2182
'extern "C" void exit (int) throw ();' \
2183
'extern "C" void exit (int);' \
2186
cat >conftest.$ac_ext <<_ACEOF
2189
cat confdefs.h >>conftest.$ac_ext
2190
cat >>conftest.$ac_ext <<_ACEOF
2191
/* end confdefs.h. */
2193
@%:@include <stdlib.h>
2202
rm -f conftest.$ac_objext
2203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204
(eval $ac_compile) 2>conftest.er1
2206
grep -v '^ *+' conftest.er1 >conftest.err
2208
cat conftest.err >&5
2209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210
(exit $ac_status); } &&
2211
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216
(exit $ac_status); }; } &&
2217
{ ac_try='test -s conftest.$ac_objext'
2218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
(exit $ac_status); }; }; then
2225
echo "$as_me: failed program was:" >&5
2226
sed 's/^/| /' conftest.$ac_ext >&5
2230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231
cat >conftest.$ac_ext <<_ACEOF
2234
cat confdefs.h >>conftest.$ac_ext
2235
cat >>conftest.$ac_ext <<_ACEOF
2236
/* end confdefs.h. */
2246
rm -f conftest.$ac_objext
2247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248
(eval $ac_compile) 2>conftest.er1
2250
grep -v '^ *+' conftest.er1 >conftest.err
2252
cat conftest.err >&5
2253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
(exit $ac_status); } &&
2255
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260
(exit $ac_status); }; } &&
2261
{ ac_try='test -s conftest.$ac_objext'
2262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266
(exit $ac_status); }; }; then
2269
echo "$as_me: failed program was:" >&5
2270
sed 's/^/| /' conftest.$ac_ext >&5
2273
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276
if test -n "$ac_declaration"; then
2277
echo '#ifdef __cplusplus' >>confdefs.h
2278
echo $ac_declaration >>confdefs.h
2279
echo '#endif' >>confdefs.h
2283
echo "$as_me: failed program was:" >&5
2284
sed 's/^/| /' conftest.$ac_ext >&5
2287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289
ac_cpp='$CPP $CPPFLAGS'
2290
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
ac_cpp='$CPP $CPPFLAGS'
2296
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2300
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2301
# On Suns, sometimes $CPP names a directory.
2302
if test -n "$CPP" && test -d "$CPP"; then
2305
if test -z "$CPP"; then
2306
if test "${ac_cv_prog_CPP+set}" = set; then
2307
echo $ECHO_N "(cached) $ECHO_C" >&6
2309
# Double quotes because CPP needs to be expanded
2310
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2313
for ac_c_preproc_warn_flag in '' yes
2315
# Use a header file that comes with gcc, so configuring glibc
2316
# with a fresh cross-compiler works.
2317
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2318
# <limits.h> exists even on freestanding compilers.
2319
# On the NeXT, cc -E runs the code through the compiler's parser,
2320
# not just through cpp. "Syntax error" is here to catch this case.
2321
cat >conftest.$ac_ext <<_ACEOF
2324
cat confdefs.h >>conftest.$ac_ext
2325
cat >>conftest.$ac_ext <<_ACEOF
2326
/* end confdefs.h. */
2328
@%:@ include <limits.h>
2330
@%:@ include <assert.h>
2334
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2335
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2337
grep -v '^ *+' conftest.er1 >conftest.err
2339
cat conftest.err >&5
2340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341
(exit $ac_status); } >/dev/null; then
2342
if test -s conftest.err; then
2343
ac_cpp_err=$ac_c_preproc_warn_flag
2344
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2351
if test -z "$ac_cpp_err"; then
2354
echo "$as_me: failed program was:" >&5
2355
sed 's/^/| /' conftest.$ac_ext >&5
2357
# Broken: fails on valid input.
2360
rm -f conftest.err conftest.$ac_ext
2362
# OK, works on sane cases. Now check whether non-existent headers
2363
# can be detected and how.
2364
cat >conftest.$ac_ext <<_ACEOF
2367
cat confdefs.h >>conftest.$ac_ext
2368
cat >>conftest.$ac_ext <<_ACEOF
2369
/* end confdefs.h. */
2370
@%:@include <ac_nonexistent.h>
2372
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2373
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2375
grep -v '^ *+' conftest.er1 >conftest.err
2377
cat conftest.err >&5
2378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379
(exit $ac_status); } >/dev/null; then
2380
if test -s conftest.err; then
2381
ac_cpp_err=$ac_c_preproc_warn_flag
2382
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389
if test -z "$ac_cpp_err"; then
2390
# Broken: success on invalid input.
2393
echo "$as_me: failed program was:" >&5
2394
sed 's/^/| /' conftest.$ac_ext >&5
2396
# Passes both tests.
2400
rm -f conftest.err conftest.$ac_ext
2403
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2404
rm -f conftest.err conftest.$ac_ext
2405
if $ac_preproc_ok; then
2417
echo "$as_me:$LINENO: result: $CPP" >&5
2418
echo "${ECHO_T}$CPP" >&6
2420
for ac_c_preproc_warn_flag in '' yes
2422
# Use a header file that comes with gcc, so configuring glibc
2423
# with a fresh cross-compiler works.
2424
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2425
# <limits.h> exists even on freestanding compilers.
2426
# On the NeXT, cc -E runs the code through the compiler's parser,
2427
# not just through cpp. "Syntax error" is here to catch this case.
2428
cat >conftest.$ac_ext <<_ACEOF
2431
cat confdefs.h >>conftest.$ac_ext
2432
cat >>conftest.$ac_ext <<_ACEOF
2433
/* end confdefs.h. */
2435
@%:@ include <limits.h>
2437
@%:@ include <assert.h>
2441
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2442
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2444
grep -v '^ *+' conftest.er1 >conftest.err
2446
cat conftest.err >&5
2447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448
(exit $ac_status); } >/dev/null; then
2449
if test -s conftest.err; then
2450
ac_cpp_err=$ac_c_preproc_warn_flag
2451
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2458
if test -z "$ac_cpp_err"; then
2461
echo "$as_me: failed program was:" >&5
2462
sed 's/^/| /' conftest.$ac_ext >&5
2464
# Broken: fails on valid input.
2467
rm -f conftest.err conftest.$ac_ext
2469
# OK, works on sane cases. Now check whether non-existent headers
2470
# can be detected and how.
2471
cat >conftest.$ac_ext <<_ACEOF
2474
cat confdefs.h >>conftest.$ac_ext
2475
cat >>conftest.$ac_ext <<_ACEOF
2476
/* end confdefs.h. */
2477
@%:@include <ac_nonexistent.h>
2479
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2480
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2482
grep -v '^ *+' conftest.er1 >conftest.err
2484
cat conftest.err >&5
2485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
(exit $ac_status); } >/dev/null; then
2487
if test -s conftest.err; then
2488
ac_cpp_err=$ac_c_preproc_warn_flag
2489
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496
if test -z "$ac_cpp_err"; then
2497
# Broken: success on invalid input.
2500
echo "$as_me: failed program was:" >&5
2501
sed 's/^/| /' conftest.$ac_ext >&5
2503
# Passes both tests.
2507
rm -f conftest.err conftest.$ac_ext
2510
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2511
rm -f conftest.err conftest.$ac_ext
2512
if $ac_preproc_ok; then
2515
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2516
See \`config.log' for more details." >&5
2517
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2518
See \`config.log' for more details." >&2;}
2519
{ (exit 1); exit 1; }; }
2523
ac_cpp='$CPP $CPPFLAGS'
2524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2530
if test -f $ac_dir/install-sh; then
2532
ac_install_sh="$ac_aux_dir/install-sh -c"
2534
elif test -f $ac_dir/install.sh; then
2536
ac_install_sh="$ac_aux_dir/install.sh -c"
2538
elif test -f $ac_dir/shtool; then
2540
ac_install_sh="$ac_aux_dir/shtool install -c"
2544
if test -z "$ac_aux_dir"; then
2545
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2546
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2547
{ (exit 1); exit 1; }; }
2549
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2550
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2551
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2553
# Find a good install program. We prefer a C program (faster),
2554
# so one script is as good as another. But avoid the broken or
2555
# incompatible versions:
2556
# SysV /etc/install, /usr/sbin/install
2557
# SunOS /usr/etc/install
2558
# IRIX /sbin/install
2560
# AmigaOS /C/install, which installs bootblocks on floppy discs
2561
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564
# OS/2's system install, which has a completely different semantic
2565
# ./install, which can be erroneously created by make from ./install.sh.
2566
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2567
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2568
if test -z "$INSTALL"; then
2569
if test "${ac_cv_path_install+set}" = set; then
2570
echo $ECHO_N "(cached) $ECHO_C" >&6
2572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576
test -z "$as_dir" && as_dir=.
2577
# Account for people who put trailing slashes in PATH elements.
2579
./ | .// | /cC/* | \
2580
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2584
# OSF1 and SCO ODT 3.0 have their own names for install.
2585
# Don't use installbsd from OSF since it installs stuff as root
2587
for ac_prog in ginstall scoinst install; do
2588
for ac_exec_ext in '' $ac_executable_extensions; do
2589
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590
if test $ac_prog = install &&
2591
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592
# AIX install. It has an incompatible calling convention.
2594
elif test $ac_prog = install &&
2595
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596
# program-specific install script used by HP pwplus--don't use.
2599
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2611
if test "${ac_cv_path_install+set}" = set; then
2612
INSTALL=$ac_cv_path_install
2614
# As a last resort, use the slow shell script. We don't cache a
2615
# path for INSTALL within a source directory, because that will
2616
# break other packages using the cache if that directory is
2617
# removed, or if the path is relative.
2618
INSTALL=$ac_install_sh
2621
echo "$as_me:$LINENO: result: $INSTALL" >&5
2622
echo "${ECHO_T}$INSTALL" >&6
2624
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625
# It thinks the first close brace ends the variable substitution.
2626
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2628
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2630
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2632
if test -n "$ac_tool_prefix"; then
2633
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2634
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2635
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
if test "${ac_cv_prog_RANLIB+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
if test -n "$RANLIB"; then
2641
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647
test -z "$as_dir" && as_dir=.
2648
for ac_exec_ext in '' $ac_executable_extensions; do
2649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659
RANLIB=$ac_cv_prog_RANLIB
2660
if test -n "$RANLIB"; then
2661
echo "$as_me:$LINENO: result: $RANLIB" >&5
2662
echo "${ECHO_T}$RANLIB" >&6
2664
echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2669
if test -z "$ac_cv_prog_RANLIB"; then
2670
ac_ct_RANLIB=$RANLIB
2671
# Extract the first word of "ranlib", so it can be a program name with args.
2672
set dummy ranlib; ac_word=$2
2673
echo "$as_me:$LINENO: checking for $ac_word" >&5
2674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2676
echo $ECHO_N "(cached) $ECHO_C" >&6
2678
if test -n "$ac_ct_RANLIB"; then
2679
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685
test -z "$as_dir" && as_dir=.
2686
for ac_exec_ext in '' $ac_executable_extensions; do
2687
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688
ac_cv_prog_ac_ct_RANLIB="ranlib"
2689
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2698
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2699
if test -n "$ac_ct_RANLIB"; then
2700
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2701
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2703
echo "$as_me:$LINENO: result: no" >&5
2704
echo "${ECHO_T}no" >&6
2707
RANLIB=$ac_ct_RANLIB
2709
RANLIB="$ac_cv_prog_RANLIB"
2712
for ac_prog in 'bison -y' byacc
2714
# Extract the first word of "$ac_prog", so it can be a program name with args.
2715
set dummy $ac_prog; ac_word=$2
2716
echo "$as_me:$LINENO: checking for $ac_word" >&5
2717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718
if test "${ac_cv_prog_YACC+set}" = set; then
2719
echo $ECHO_N "(cached) $ECHO_C" >&6
2721
if test -n "$YACC"; then
2722
ac_cv_prog_YACC="$YACC" # Let the user override the test.
2724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728
test -z "$as_dir" && as_dir=.
2729
for ac_exec_ext in '' $ac_executable_extensions; do
2730
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731
ac_cv_prog_YACC="$ac_prog"
2732
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740
YACC=$ac_cv_prog_YACC
2741
if test -n "$YACC"; then
2742
echo "$as_me:$LINENO: result: $YACC" >&5
2743
echo "${ECHO_T}$YACC" >&6
2745
echo "$as_me:$LINENO: result: no" >&5
2746
echo "${ECHO_T}no" >&6
2749
test -n "$YACC" && break
2751
test -n "$YACC" || YACC="yacc"
2754
for ac_prog in flex lex
2756
# Extract the first word of "$ac_prog", so it can be a program name with args.
2757
set dummy $ac_prog; ac_word=$2
2758
echo "$as_me:$LINENO: checking for $ac_word" >&5
2759
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2760
if test "${ac_cv_prog_LEX+set}" = set; then
2761
echo $ECHO_N "(cached) $ECHO_C" >&6
2763
if test -n "$LEX"; then
2764
ac_cv_prog_LEX="$LEX" # Let the user override the test.
2766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770
test -z "$as_dir" && as_dir=.
2771
for ac_exec_ext in '' $ac_executable_extensions; do
2772
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773
ac_cv_prog_LEX="$ac_prog"
2774
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783
if test -n "$LEX"; then
2784
echo "$as_me:$LINENO: result: $LEX" >&5
2785
echo "${ECHO_T}$LEX" >&6
2787
echo "$as_me:$LINENO: result: no" >&5
2788
echo "${ECHO_T}no" >&6
2791
test -n "$LEX" && break
2793
test -n "$LEX" || LEX=":"
2795
if test -z "$LEXLIB"
2797
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2798
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2799
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2800
echo $ECHO_N "(cached) $ECHO_C" >&6
2802
ac_check_lib_save_LIBS=$LIBS
2804
cat >conftest.$ac_ext <<_ACEOF
2807
cat confdefs.h >>conftest.$ac_ext
2808
cat >>conftest.$ac_ext <<_ACEOF
2809
/* end confdefs.h. */
2811
/* Override any gcc2 internal prototype to avoid an error. */
2815
/* We use char because int might match the return type of a gcc2
2816
builtin and then its argument prototype would still apply. */
2826
rm -f conftest.$ac_objext conftest$ac_exeext
2827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2828
(eval $ac_link) 2>conftest.er1
2830
grep -v '^ *+' conftest.er1 >conftest.err
2832
cat conftest.err >&5
2833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
(exit $ac_status); } &&
2835
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
(exit $ac_status); }; } &&
2841
{ ac_try='test -s conftest$ac_exeext'
2842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); }; }; then
2847
ac_cv_lib_fl_yywrap=yes
2849
echo "$as_me: failed program was:" >&5
2850
sed 's/^/| /' conftest.$ac_ext >&5
2852
ac_cv_lib_fl_yywrap=no
2854
rm -f conftest.err conftest.$ac_objext \
2855
conftest$ac_exeext conftest.$ac_ext
2856
LIBS=$ac_check_lib_save_LIBS
2858
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2859
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2860
if test $ac_cv_lib_fl_yywrap = yes; then
2863
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2864
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2865
if test "${ac_cv_lib_l_yywrap+set}" = set; then
2866
echo $ECHO_N "(cached) $ECHO_C" >&6
2868
ac_check_lib_save_LIBS=$LIBS
2870
cat >conftest.$ac_ext <<_ACEOF
2873
cat confdefs.h >>conftest.$ac_ext
2874
cat >>conftest.$ac_ext <<_ACEOF
2875
/* end confdefs.h. */
2877
/* Override any gcc2 internal prototype to avoid an error. */
2881
/* We use char because int might match the return type of a gcc2
2882
builtin and then its argument prototype would still apply. */
2892
rm -f conftest.$ac_objext conftest$ac_exeext
2893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2894
(eval $ac_link) 2>conftest.er1
2896
grep -v '^ *+' conftest.er1 >conftest.err
2898
cat conftest.err >&5
2899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900
(exit $ac_status); } &&
2901
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
(exit $ac_status); }; } &&
2907
{ ac_try='test -s conftest$ac_exeext'
2908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
(exit $ac_status); }; }; then
2913
ac_cv_lib_l_yywrap=yes
2915
echo "$as_me: failed program was:" >&5
2916
sed 's/^/| /' conftest.$ac_ext >&5
2918
ac_cv_lib_l_yywrap=no
2920
rm -f conftest.err conftest.$ac_objext \
2921
conftest$ac_exeext conftest.$ac_ext
2922
LIBS=$ac_check_lib_save_LIBS
2924
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2925
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2926
if test $ac_cv_lib_l_yywrap = yes; then
2934
if test "x$LEX" != "x:"; then
2935
echo "$as_me:$LINENO: checking lex output file root" >&5
2936
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2937
if test "${ac_cv_prog_lex_root+set}" = set; then
2938
echo $ECHO_N "(cached) $ECHO_C" >&6
2940
# The minimal lex program is just a single line: %%. But some broken lexes
2941
# (Solaris, I think it was) want two %% lines, so accommodate them.
2942
cat >conftest.l <<_ACEOF
2946
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2947
(eval $LEX conftest.l) 2>&5
2949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
(exit $ac_status); }
2951
if test -f lex.yy.c; then
2952
ac_cv_prog_lex_root=lex.yy
2953
elif test -f lexyy.c; then
2954
ac_cv_prog_lex_root=lexyy
2956
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2957
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2958
{ (exit 1); exit 1; }; }
2961
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2962
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2964
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2966
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2967
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2968
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2969
echo $ECHO_N "(cached) $ECHO_C" >&6
2971
# POSIX says lex can declare yytext either as a pointer or an array; the
2972
# default is implementation-dependent. Figure out which it is, since
2973
# not all implementations provide the %pointer and %array declarations.
2974
ac_cv_prog_lex_yytext_pointer=no
2975
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2977
LIBS="$LIBS $LEXLIB"
2978
cat >conftest.$ac_ext <<_ACEOF
2979
`cat $LEX_OUTPUT_ROOT.c`
2981
rm -f conftest.$ac_objext conftest$ac_exeext
2982
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2983
(eval $ac_link) 2>conftest.er1
2985
grep -v '^ *+' conftest.er1 >conftest.err
2987
cat conftest.err >&5
2988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989
(exit $ac_status); } &&
2990
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995
(exit $ac_status); }; } &&
2996
{ ac_try='test -s conftest$ac_exeext'
2997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001
(exit $ac_status); }; }; then
3002
ac_cv_prog_lex_yytext_pointer=yes
3004
echo "$as_me: failed program was:" >&5
3005
sed 's/^/| /' conftest.$ac_ext >&5
3008
rm -f conftest.err conftest.$ac_objext \
3009
conftest$ac_exeext conftest.$ac_ext
3011
rm -f "${LEX_OUTPUT_ROOT}.c"
3014
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3015
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3016
if test $ac_cv_prog_lex_yytext_pointer = yes; then
3018
cat >>confdefs.h <<\_ACEOF
3019
@%:@define YYTEXT_POINTER 1
3025
for ac_prog in gm4 gnum4 m4
3027
# Extract the first word of "$ac_prog", so it can be a program name with args.
3028
set dummy $ac_prog; ac_word=$2
3029
echo "$as_me:$LINENO: checking for $ac_word" >&5
3030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031
if test "${ac_cv_path_M4+set}" = set; then
3032
echo $ECHO_N "(cached) $ECHO_C" >&6
3036
ac_cv_path_M4="$M4" # Let the user override the test with a path.
3039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043
test -z "$as_dir" && as_dir=.
3044
for ac_exec_ext in '' $ac_executable_extensions; do
3045
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046
ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
3047
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058
if test -n "$M4"; then
3059
echo "$as_me:$LINENO: result: $M4" >&5
3060
echo "${ECHO_T}$M4" >&6
3062
echo "$as_me:$LINENO: result: no" >&5
3063
echo "${ECHO_T}no" >&6
3066
test -n "$M4" && break
3068
test -n "$M4" || M4="m4"
3070
for ac_prog in gawk mawk nawk awk
3072
# Extract the first word of "$ac_prog", so it can be a program name with args.
3073
set dummy $ac_prog; ac_word=$2
3074
echo "$as_me:$LINENO: checking for $ac_word" >&5
3075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076
if test "${ac_cv_prog_AWK+set}" = set; then
3077
echo $ECHO_N "(cached) $ECHO_C" >&6
3079
if test -n "$AWK"; then
3080
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086
test -z "$as_dir" && as_dir=.
3087
for ac_exec_ext in '' $ac_executable_extensions; do
3088
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089
ac_cv_prog_AWK="$ac_prog"
3090
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099
if test -n "$AWK"; then
3100
echo "$as_me:$LINENO: result: $AWK" >&5
3101
echo "${ECHO_T}$AWK" >&6
3103
echo "$as_me:$LINENO: result: no" >&5
3104
echo "${ECHO_T}no" >&6
3107
test -n "$AWK" && break
3112
echo "$as_me:$LINENO: checking for egrep" >&5
3113
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3114
if test "${ac_cv_prog_egrep+set}" = set; then
3115
echo $ECHO_N "(cached) $ECHO_C" >&6
3117
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3118
then ac_cv_prog_egrep='grep -E'
3119
else ac_cv_prog_egrep='egrep'
3122
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3123
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3124
EGREP=$ac_cv_prog_egrep
3128
echo "$as_me:$LINENO: checking for AIX" >&5
3129
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3130
cat >conftest.$ac_ext <<_ACEOF
3133
cat confdefs.h >>conftest.$ac_ext
3134
cat >>conftest.$ac_ext <<_ACEOF
3135
/* end confdefs.h. */
3141
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142
$EGREP "yes" >/dev/null 2>&1; then
3143
echo "$as_me:$LINENO: result: yes" >&5
3144
echo "${ECHO_T}yes" >&6
3145
cat >>confdefs.h <<\_ACEOF
3146
@%:@define _ALL_SOURCE 1
3150
echo "$as_me:$LINENO: result: no" >&5
3151
echo "${ECHO_T}no" >&6
3156
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3157
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3158
if test "${ac_cv_header_stdc+set}" = set; then
3159
echo $ECHO_N "(cached) $ECHO_C" >&6
3161
cat >conftest.$ac_ext <<_ACEOF
3164
cat confdefs.h >>conftest.$ac_ext
3165
cat >>conftest.$ac_ext <<_ACEOF
3166
/* end confdefs.h. */
3180
rm -f conftest.$ac_objext
3181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182
(eval $ac_compile) 2>conftest.er1
3184
grep -v '^ *+' conftest.er1 >conftest.err
3186
cat conftest.err >&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); } &&
3189
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
(exit $ac_status); }; } &&
3195
{ ac_try='test -s conftest.$ac_objext'
3196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
(exit $ac_status); }; }; then
3201
ac_cv_header_stdc=yes
3203
echo "$as_me: failed program was:" >&5
3204
sed 's/^/| /' conftest.$ac_ext >&5
3206
ac_cv_header_stdc=no
3208
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210
if test $ac_cv_header_stdc = yes; then
3211
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3212
cat >conftest.$ac_ext <<_ACEOF
3215
cat confdefs.h >>conftest.$ac_ext
3216
cat >>conftest.$ac_ext <<_ACEOF
3217
/* end confdefs.h. */
3221
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3222
$EGREP "memchr" >/dev/null 2>&1; then
3225
ac_cv_header_stdc=no
3231
if test $ac_cv_header_stdc = yes; then
3232
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3233
cat >conftest.$ac_ext <<_ACEOF
3236
cat confdefs.h >>conftest.$ac_ext
3237
cat >>conftest.$ac_ext <<_ACEOF
3238
/* end confdefs.h. */
3242
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243
$EGREP "free" >/dev/null 2>&1; then
3246
ac_cv_header_stdc=no
3252
if test $ac_cv_header_stdc = yes; then
3253
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3254
if test "$cross_compiling" = yes; then
3257
cat >conftest.$ac_ext <<_ACEOF
3260
cat confdefs.h >>conftest.$ac_ext
3261
cat >>conftest.$ac_ext <<_ACEOF
3262
/* end confdefs.h. */
3264
#if ((' ' & 0x0FF) == 0x020)
3265
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3266
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3268
# define ISLOWER(c) \
3269
(('a' <= (c) && (c) <= 'i') \
3270
|| ('j' <= (c) && (c) <= 'r') \
3271
|| ('s' <= (c) && (c) <= 'z'))
3272
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3275
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3280
for (i = 0; i < 256; i++)
3281
if (XOR (islower (i), ISLOWER (i))
3282
|| toupper (i) != TOUPPER (i))
3287
rm -f conftest$ac_exeext
3288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289
(eval $ac_link) 2>&5
3291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); }; }; then
3300
echo "$as_me: program exited with status $ac_status" >&5
3301
echo "$as_me: failed program was:" >&5
3302
sed 's/^/| /' conftest.$ac_ext >&5
3305
ac_cv_header_stdc=no
3307
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3311
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3312
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3313
if test $ac_cv_header_stdc = yes; then
3315
cat >>confdefs.h <<\_ACEOF
3316
@%:@define STDC_HEADERS 1
3321
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3331
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3332
inttypes.h stdint.h unistd.h
3334
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3335
echo "$as_me:$LINENO: checking for $ac_header" >&5
3336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3338
echo $ECHO_N "(cached) $ECHO_C" >&6
3340
cat >conftest.$ac_ext <<_ACEOF
3343
cat confdefs.h >>conftest.$ac_ext
3344
cat >>conftest.$ac_ext <<_ACEOF
3345
/* end confdefs.h. */
3346
$ac_includes_default
3348
@%:@include <$ac_header>
3350
rm -f conftest.$ac_objext
3351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352
(eval $ac_compile) 2>conftest.er1
3354
grep -v '^ *+' conftest.er1 >conftest.err
3356
cat conftest.err >&5
3357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358
(exit $ac_status); } &&
3359
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364
(exit $ac_status); }; } &&
3365
{ ac_try='test -s conftest.$ac_objext'
3366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
(exit $ac_status); }; }; then
3371
eval "$as_ac_Header=yes"
3373
echo "$as_me: failed program was:" >&5
3374
sed 's/^/| /' conftest.$ac_ext >&5
3376
eval "$as_ac_Header=no"
3378
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3383
cat >>confdefs.h <<_ACEOF
3384
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3392
if test "${ac_cv_header_minix_config_h+set}" = set; then
3393
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3394
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3395
if test "${ac_cv_header_minix_config_h+set}" = set; then
3396
echo $ECHO_N "(cached) $ECHO_C" >&6
3398
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3399
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3401
# Is the header compilable?
3402
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3403
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3404
cat >conftest.$ac_ext <<_ACEOF
3407
cat confdefs.h >>conftest.$ac_ext
3408
cat >>conftest.$ac_ext <<_ACEOF
3409
/* end confdefs.h. */
3410
$ac_includes_default
3411
@%:@include <minix/config.h>
3413
rm -f conftest.$ac_objext
3414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415
(eval $ac_compile) 2>conftest.er1
3417
grep -v '^ *+' conftest.er1 >conftest.err
3419
cat conftest.err >&5
3420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421
(exit $ac_status); } &&
3422
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427
(exit $ac_status); }; } &&
3428
{ ac_try='test -s conftest.$ac_objext'
3429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433
(exit $ac_status); }; }; then
3434
ac_header_compiler=yes
3436
echo "$as_me: failed program was:" >&5
3437
sed 's/^/| /' conftest.$ac_ext >&5
3439
ac_header_compiler=no
3441
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3443
echo "${ECHO_T}$ac_header_compiler" >&6
3445
# Is the header present?
3446
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3447
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3448
cat >conftest.$ac_ext <<_ACEOF
3451
cat confdefs.h >>conftest.$ac_ext
3452
cat >>conftest.$ac_ext <<_ACEOF
3453
/* end confdefs.h. */
3454
@%:@include <minix/config.h>
3456
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3457
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3459
grep -v '^ *+' conftest.er1 >conftest.err
3461
cat conftest.err >&5
3462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463
(exit $ac_status); } >/dev/null; then
3464
if test -s conftest.err; then
3465
ac_cpp_err=$ac_c_preproc_warn_flag
3466
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473
if test -z "$ac_cpp_err"; then
3474
ac_header_preproc=yes
3476
echo "$as_me: failed program was:" >&5
3477
sed 's/^/| /' conftest.$ac_ext >&5
3479
ac_header_preproc=no
3481
rm -f conftest.err conftest.$ac_ext
3482
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3483
echo "${ECHO_T}$ac_header_preproc" >&6
3485
# So? What about this header?
3486
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3488
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3489
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3490
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3491
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3492
ac_header_preproc=yes
3495
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3496
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3497
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3498
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3499
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3500
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3501
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3502
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3503
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3504
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3505
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3506
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3509
@%:@@%:@ -------------------------------- @%:@@%:@
3510
@%:@@%:@ Report this to bug-gnats@gnu.org @%:@@%:@
3511
@%:@@%:@ -------------------------------- @%:@@%:@
3514
sed "s/^/$as_me: WARNING: /" >&2
3517
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3518
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3519
if test "${ac_cv_header_minix_config_h+set}" = set; then
3520
echo $ECHO_N "(cached) $ECHO_C" >&6
3522
ac_cv_header_minix_config_h=$ac_header_preproc
3524
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3525
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3528
if test $ac_cv_header_minix_config_h = yes; then
3535
if test "$MINIX" = yes; then
3537
cat >>confdefs.h <<\_ACEOF
3538
@%:@define _POSIX_SOURCE 1
3542
cat >>confdefs.h <<\_ACEOF
3543
@%:@define _POSIX_1_SOURCE 2
3547
cat >>confdefs.h <<\_ACEOF
3554
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3555
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3556
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3557
echo $ECHO_N "(cached) $ECHO_C" >&6
3559
ac_check_lib_save_LIBS=$LIBS
3560
LIBS="-lcposix $LIBS"
3561
cat >conftest.$ac_ext <<_ACEOF
3564
cat confdefs.h >>conftest.$ac_ext
3565
cat >>conftest.$ac_ext <<_ACEOF
3566
/* end confdefs.h. */
3568
/* Override any gcc2 internal prototype to avoid an error. */
3572
/* We use char because int might match the return type of a gcc2
3573
builtin and then its argument prototype would still apply. */
3583
rm -f conftest.$ac_objext conftest$ac_exeext
3584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585
(eval $ac_link) 2>conftest.er1
3587
grep -v '^ *+' conftest.er1 >conftest.err
3589
cat conftest.err >&5
3590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591
(exit $ac_status); } &&
3592
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597
(exit $ac_status); }; } &&
3598
{ ac_try='test -s conftest$ac_exeext'
3599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603
(exit $ac_status); }; }; then
3604
ac_cv_lib_cposix_strerror=yes
3606
echo "$as_me: failed program was:" >&5
3607
sed 's/^/| /' conftest.$ac_ext >&5
3609
ac_cv_lib_cposix_strerror=no
3611
rm -f conftest.err conftest.$ac_objext \
3612
conftest$ac_exeext conftest.$ac_ext
3613
LIBS=$ac_check_lib_save_LIBS
3615
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3616
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3617
if test $ac_cv_lib_cposix_strerror = yes; then
3618
LIBS="$LIBS -lcposix"
3623
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3624
# for constant arguments. Useless!
3625
echo "$as_me:$LINENO: checking for working alloca.h" >&5
3626
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3627
if test "${ac_cv_working_alloca_h+set}" = set; then
3628
echo $ECHO_N "(cached) $ECHO_C" >&6
3630
cat >conftest.$ac_ext <<_ACEOF
3633
cat confdefs.h >>conftest.$ac_ext
3634
cat >>conftest.$ac_ext <<_ACEOF
3635
/* end confdefs.h. */
3636
@%:@include <alloca.h>
3640
char *p = (char *) alloca (2 * sizeof (int));
3645
rm -f conftest.$ac_objext conftest$ac_exeext
3646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647
(eval $ac_link) 2>conftest.er1
3649
grep -v '^ *+' conftest.er1 >conftest.err
3651
cat conftest.err >&5
3652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653
(exit $ac_status); } &&
3654
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659
(exit $ac_status); }; } &&
3660
{ ac_try='test -s conftest$ac_exeext'
3661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
(exit $ac_status); }; }; then
3666
ac_cv_working_alloca_h=yes
3668
echo "$as_me: failed program was:" >&5
3669
sed 's/^/| /' conftest.$ac_ext >&5
3671
ac_cv_working_alloca_h=no
3673
rm -f conftest.err conftest.$ac_objext \
3674
conftest$ac_exeext conftest.$ac_ext
3676
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3677
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3678
if test $ac_cv_working_alloca_h = yes; then
3680
cat >>confdefs.h <<\_ACEOF
3681
@%:@define HAVE_ALLOCA_H 1
3686
echo "$as_me:$LINENO: checking for alloca" >&5
3687
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3688
if test "${ac_cv_func_alloca_works+set}" = set; then
3689
echo $ECHO_N "(cached) $ECHO_C" >&6
3691
cat >conftest.$ac_ext <<_ACEOF
3694
cat confdefs.h >>conftest.$ac_ext
3695
cat >>conftest.$ac_ext <<_ACEOF
3696
/* end confdefs.h. */
3698
# define alloca __builtin_alloca
3701
# include <malloc.h>
3702
# define alloca _alloca
3705
# include <alloca.h>
3710
# ifndef alloca /* predefined by HP cc +Olibcalls */
3721
char *p = (char *) alloca (1);
3726
rm -f conftest.$ac_objext conftest$ac_exeext
3727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728
(eval $ac_link) 2>conftest.er1
3730
grep -v '^ *+' conftest.er1 >conftest.err
3732
cat conftest.err >&5
3733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
(exit $ac_status); } &&
3735
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
(exit $ac_status); }; } &&
3741
{ ac_try='test -s conftest$ac_exeext'
3742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746
(exit $ac_status); }; }; then
3747
ac_cv_func_alloca_works=yes
3749
echo "$as_me: failed program was:" >&5
3750
sed 's/^/| /' conftest.$ac_ext >&5
3752
ac_cv_func_alloca_works=no
3754
rm -f conftest.err conftest.$ac_objext \
3755
conftest$ac_exeext conftest.$ac_ext
3757
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3758
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3760
if test $ac_cv_func_alloca_works = yes; then
3762
cat >>confdefs.h <<\_ACEOF
3763
@%:@define HAVE_ALLOCA 1
3767
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3768
# that cause trouble. Some versions do not even contain alloca or
3769
# contain a buggy version. If you still want to use their alloca,
3770
# use ar to extract alloca.o from them instead of compiling alloca.c.
3772
ALLOCA=alloca.$ac_objext
3774
cat >>confdefs.h <<\_ACEOF
3775
@%:@define C_ALLOCA 1
3779
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3780
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3781
if test "${ac_cv_os_cray+set}" = set; then
3782
echo $ECHO_N "(cached) $ECHO_C" >&6
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3790
#if defined(CRAY) && ! defined(CRAY2)
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798
$EGREP "webecray" >/dev/null 2>&1; then
3806
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3807
echo "${ECHO_T}$ac_cv_os_cray" >&6
3808
if test $ac_cv_os_cray = yes; then
3809
for ac_func in _getb67 GETB67 getb67; do
3810
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3811
echo "$as_me:$LINENO: checking for $ac_func" >&5
3812
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3813
if eval "test \"\${$as_ac_var+set}\" = set"; then
3814
echo $ECHO_N "(cached) $ECHO_C" >&6
3816
cat >conftest.$ac_ext <<_ACEOF
3819
cat confdefs.h >>conftest.$ac_ext
3820
cat >>conftest.$ac_ext <<_ACEOF
3821
/* end confdefs.h. */
3822
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3823
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3824
#define $ac_func innocuous_$ac_func
3826
/* System header to define __stub macros and hopefully few prototypes,
3827
which can conflict with char $ac_func (); below.
3828
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829
<limits.h> exists even on freestanding compilers. */
3832
# include <limits.h>
3834
# include <assert.h>
3839
/* Override any gcc2 internal prototype to avoid an error. */
3844
/* We use char because int might match the return type of a gcc2
3845
builtin and then its argument prototype would still apply. */
3847
/* The GNU C library defines this for functions which it implements
3848
to always fail with ENOSYS. Some functions are actually named
3849
something starting with __ and the normal name is an alias. */
3850
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3853
char (*f) () = $ac_func;
3862
return f != $ac_func;
3867
rm -f conftest.$ac_objext conftest$ac_exeext
3868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869
(eval $ac_link) 2>conftest.er1
3871
grep -v '^ *+' conftest.er1 >conftest.err
3873
cat conftest.err >&5
3874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875
(exit $ac_status); } &&
3876
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881
(exit $ac_status); }; } &&
3882
{ ac_try='test -s conftest$ac_exeext'
3883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
(exit $ac_status); }; }; then
3888
eval "$as_ac_var=yes"
3890
echo "$as_me: failed program was:" >&5
3891
sed 's/^/| /' conftest.$ac_ext >&5
3893
eval "$as_ac_var=no"
3895
rm -f conftest.err conftest.$ac_objext \
3896
conftest$ac_exeext conftest.$ac_ext
3898
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3899
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3900
if test `eval echo '${'$as_ac_var'}'` = yes; then
3902
cat >>confdefs.h <<_ACEOF
3903
@%:@define CRAY_STACKSEG_END $ac_func
3912
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3913
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3914
if test "${ac_cv_c_stack_direction+set}" = set; then
3915
echo $ECHO_N "(cached) $ECHO_C" >&6
3917
if test "$cross_compiling" = yes; then
3918
ac_cv_c_stack_direction=0
3920
cat >conftest.$ac_ext <<_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h. */
3927
find_stack_direction ()
3929
static char *addr = 0;
3934
return find_stack_direction ();
3937
return (&dummy > addr) ? 1 : -1;
3943
exit (find_stack_direction () < 0);
3946
rm -f conftest$ac_exeext
3947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948
(eval $ac_link) 2>&5
3950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); }; }; then
3957
ac_cv_c_stack_direction=1
3959
echo "$as_me: program exited with status $ac_status" >&5
3960
echo "$as_me: failed program was:" >&5
3961
sed 's/^/| /' conftest.$ac_ext >&5
3964
ac_cv_c_stack_direction=-1
3966
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3970
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3972
cat >>confdefs.h <<_ACEOF
3973
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
3979
# Some Solaris C compilers have const problems without a special ANSI option
3980
echo "$as_me:$LINENO: checking for really working const" >&5
3981
echo $ECHO_N "checking for really working const... $ECHO_C" >&6
3982
if test "${gnats_really_working_const+set}" = set; then
3983
echo $ECHO_N "(cached) $ECHO_C" >&6
3986
cat >conftest.$ac_ext <<_ACEOF
3989
cat confdefs.h >>conftest.$ac_ext
3990
cat >>conftest.$ac_ext <<_ACEOF
3991
/* end confdefs.h. */
3996
const char *foo(const char *x) { return x; }
3997
int bar(const char *x) { return x == foo(x); }
4002
rm -f conftest.$ac_objext
4003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004
(eval $ac_compile) 2>conftest.er1
4006
grep -v '^ *+' conftest.er1 >conftest.err
4008
cat conftest.err >&5
4009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010
(exit $ac_status); } &&
4011
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
(exit $ac_status); }; } &&
4017
{ ac_try='test -s conftest.$ac_objext'
4018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022
(exit $ac_status); }; }; then
4023
gnats_really_working_const=yes
4025
echo "$as_me: failed program was:" >&5
4026
sed 's/^/| /' conftest.$ac_ext >&5
4028
gnats_really_working_const=no
4030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4031
if test "$gnats_really_working_const" = no; then
4032
CFLAGS="$CFLAGS -Dconst= "
4035
echo "$as_me:$LINENO: result: $gnats_really_working_const" >&5
4036
echo "${ECHO_T}$gnats_really_working_const" >&6
4037
# Needed on SCO for something or other.
4039
echo "$as_me:$LINENO: checking for main in -lintl" >&5
4040
echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
4041
if test "${ac_cv_lib_intl_main+set}" = set; then
4042
echo $ECHO_N "(cached) $ECHO_C" >&6
4044
ac_check_lib_save_LIBS=$LIBS
4046
cat >conftest.$ac_ext <<_ACEOF
4049
cat confdefs.h >>conftest.$ac_ext
4050
cat >>conftest.$ac_ext <<_ACEOF
4051
/* end confdefs.h. */
4062
rm -f conftest.$ac_objext conftest$ac_exeext
4063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064
(eval $ac_link) 2>conftest.er1
4066
grep -v '^ *+' conftest.er1 >conftest.err
4068
cat conftest.err >&5
4069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070
(exit $ac_status); } &&
4071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
(exit $ac_status); }; } &&
4077
{ ac_try='test -s conftest$ac_exeext'
4078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
(exit $ac_status); }; }; then
4083
ac_cv_lib_intl_main=yes
4085
echo "$as_me: failed program was:" >&5
4086
sed 's/^/| /' conftest.$ac_ext >&5
4088
ac_cv_lib_intl_main=no
4090
rm -f conftest.err conftest.$ac_objext \
4091
conftest$ac_exeext conftest.$ac_ext
4092
LIBS=$ac_check_lib_save_LIBS
4094
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
4095
echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
4096
if test $ac_cv_lib_intl_main = yes; then
4097
cat >>confdefs.h <<_ACEOF
4098
@%:@define HAVE_LIBINTL 1
4105
# If we can't find connect, try looking in -lsocket and -lnsl. The
4106
# Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4107
# libsocket.so which has a bad implementation of gethostbyname (it
4108
# only looks in /etc/hosts), so we only look for -lsocket if we need
4110
echo "$as_me:$LINENO: checking for connect" >&5
4111
echo $ECHO_N "checking for connect... $ECHO_C" >&6
4112
if test "${ac_cv_func_connect+set}" = set; then
4113
echo $ECHO_N "(cached) $ECHO_C" >&6
4115
cat >conftest.$ac_ext <<_ACEOF
4118
cat confdefs.h >>conftest.$ac_ext
4119
cat >>conftest.$ac_ext <<_ACEOF
4120
/* end confdefs.h. */
4121
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4122
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4123
#define connect innocuous_connect
4125
/* System header to define __stub macros and hopefully few prototypes,
4126
which can conflict with char connect (); below.
4127
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128
<limits.h> exists even on freestanding compilers. */
4131
# include <limits.h>
4133
# include <assert.h>
4138
/* Override any gcc2 internal prototype to avoid an error. */
4143
/* We use char because int might match the return type of a gcc2
4144
builtin and then its argument prototype would still apply. */
4146
/* The GNU C library defines this for functions which it implements
4147
to always fail with ENOSYS. Some functions are actually named
4148
something starting with __ and the normal name is an alias. */
4149
#if defined (__stub_connect) || defined (__stub___connect)
4152
char (*f) () = connect;
4161
return f != connect;
4166
rm -f conftest.$ac_objext conftest$ac_exeext
4167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4168
(eval $ac_link) 2>conftest.er1
4170
grep -v '^ *+' conftest.er1 >conftest.err
4172
cat conftest.err >&5
4173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
(exit $ac_status); } &&
4175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
(exit $ac_status); }; } &&
4181
{ ac_try='test -s conftest$ac_exeext'
4182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
(exit $ac_status); }; }; then
4187
ac_cv_func_connect=yes
4189
echo "$as_me: failed program was:" >&5
4190
sed 's/^/| /' conftest.$ac_ext >&5
4192
ac_cv_func_connect=no
4194
rm -f conftest.err conftest.$ac_objext \
4195
conftest$ac_exeext conftest.$ac_ext
4197
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4198
echo "${ECHO_T}$ac_cv_func_connect" >&6
4199
if test $ac_cv_func_connect = yes; then
4203
# Needed on SCO for syslog.
4205
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4206
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4207
if test "${ac_cv_lib_socket_main+set}" = set; then
4208
echo $ECHO_N "(cached) $ECHO_C" >&6
4210
ac_check_lib_save_LIBS=$LIBS
4211
LIBS="-lsocket $LIBS"
4212
cat >conftest.$ac_ext <<_ACEOF
4215
cat confdefs.h >>conftest.$ac_ext
4216
cat >>conftest.$ac_ext <<_ACEOF
4217
/* end confdefs.h. */
4228
rm -f conftest.$ac_objext conftest$ac_exeext
4229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230
(eval $ac_link) 2>conftest.er1
4232
grep -v '^ *+' conftest.er1 >conftest.err
4234
cat conftest.err >&5
4235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
(exit $ac_status); } &&
4237
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242
(exit $ac_status); }; } &&
4243
{ ac_try='test -s conftest$ac_exeext'
4244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
(exit $ac_status); }; }; then
4249
ac_cv_lib_socket_main=yes
4251
echo "$as_me: failed program was:" >&5
4252
sed 's/^/| /' conftest.$ac_ext >&5
4254
ac_cv_lib_socket_main=no
4256
rm -f conftest.err conftest.$ac_objext \
4257
conftest$ac_exeext conftest.$ac_ext
4258
LIBS=$ac_check_lib_save_LIBS
4260
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4261
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4262
if test $ac_cv_lib_socket_main = yes; then
4263
cat >>confdefs.h <<_ACEOF
4264
@%:@define HAVE_LIBSOCKET 1
4267
LIBS="-lsocket $LIBS"
4271
# Needed under Solaris in addition to -lsocket for the network.
4273
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4274
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4275
if test "${ac_cv_lib_nsl_main+set}" = set; then
4276
echo $ECHO_N "(cached) $ECHO_C" >&6
4278
ac_check_lib_save_LIBS=$LIBS
4280
cat >conftest.$ac_ext <<_ACEOF
4283
cat confdefs.h >>conftest.$ac_ext
4284
cat >>conftest.$ac_ext <<_ACEOF
4285
/* end confdefs.h. */
4296
rm -f conftest.$ac_objext conftest$ac_exeext
4297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4298
(eval $ac_link) 2>conftest.er1
4300
grep -v '^ *+' conftest.er1 >conftest.err
4302
cat conftest.err >&5
4303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304
(exit $ac_status); } &&
4305
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310
(exit $ac_status); }; } &&
4311
{ ac_try='test -s conftest$ac_exeext'
4312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
(exit $ac_status); }; }; then
4317
ac_cv_lib_nsl_main=yes
4319
echo "$as_me: failed program was:" >&5
4320
sed 's/^/| /' conftest.$ac_ext >&5
4322
ac_cv_lib_nsl_main=no
4324
rm -f conftest.err conftest.$ac_objext \
4325
conftest$ac_exeext conftest.$ac_ext
4326
LIBS=$ac_check_lib_save_LIBS
4328
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4329
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4330
if test $ac_cv_lib_nsl_main = yes; then
4331
cat >>confdefs.h <<_ACEOF
4332
@%:@define HAVE_LIBNSL 1
4342
# Needed on ISC for syslog.
4344
echo "$as_me:$LINENO: checking for main in -linet" >&5
4345
echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
4346
if test "${ac_cv_lib_inet_main+set}" = set; then
4347
echo $ECHO_N "(cached) $ECHO_C" >&6
4349
ac_check_lib_save_LIBS=$LIBS
4351
cat >conftest.$ac_ext <<_ACEOF
4354
cat confdefs.h >>conftest.$ac_ext
4355
cat >>conftest.$ac_ext <<_ACEOF
4356
/* end confdefs.h. */
4367
rm -f conftest.$ac_objext conftest$ac_exeext
4368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369
(eval $ac_link) 2>conftest.er1
4371
grep -v '^ *+' conftest.er1 >conftest.err
4373
cat conftest.err >&5
4374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
(exit $ac_status); } &&
4376
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); }; } &&
4382
{ ac_try='test -s conftest$ac_exeext'
4383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387
(exit $ac_status); }; }; then
4388
ac_cv_lib_inet_main=yes
4390
echo "$as_me: failed program was:" >&5
4391
sed 's/^/| /' conftest.$ac_ext >&5
4393
ac_cv_lib_inet_main=no
4395
rm -f conftest.err conftest.$ac_objext \
4396
conftest$ac_exeext conftest.$ac_ext
4397
LIBS=$ac_check_lib_save_LIBS
4399
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4400
echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
4401
if test $ac_cv_lib_inet_main = yes; then
4402
cat >>confdefs.h <<_ACEOF
4403
@%:@define HAVE_LIBINET 1
4410
# Needed under IRIX for a usable malloc.
4412
echo "$as_me:$LINENO: checking for main in -lmalloc" >&5
4413
echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6
4414
if test "${ac_cv_lib_malloc_main+set}" = set; then
4415
echo $ECHO_N "(cached) $ECHO_C" >&6
4417
ac_check_lib_save_LIBS=$LIBS
4418
LIBS="-lmalloc $LIBS"
4419
cat >conftest.$ac_ext <<_ACEOF
4422
cat confdefs.h >>conftest.$ac_ext
4423
cat >>conftest.$ac_ext <<_ACEOF
4424
/* end confdefs.h. */
4435
rm -f conftest.$ac_objext conftest$ac_exeext
4436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437
(eval $ac_link) 2>conftest.er1
4439
grep -v '^ *+' conftest.er1 >conftest.err
4441
cat conftest.err >&5
4442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443
(exit $ac_status); } &&
4444
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449
(exit $ac_status); }; } &&
4450
{ ac_try='test -s conftest$ac_exeext'
4451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455
(exit $ac_status); }; }; then
4456
ac_cv_lib_malloc_main=yes
4458
echo "$as_me: failed program was:" >&5
4459
sed 's/^/| /' conftest.$ac_ext >&5
4461
ac_cv_lib_malloc_main=no
4463
rm -f conftest.err conftest.$ac_objext \
4464
conftest$ac_exeext conftest.$ac_ext
4465
LIBS=$ac_check_lib_save_LIBS
4467
echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5
4468
echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6
4469
if test $ac_cv_lib_malloc_main = yes; then
4470
cat >>confdefs.h <<_ACEOF
4471
@%:@define HAVE_LIBMALLOC 1
4474
LIBS="-lmalloc $LIBS"
4478
# Needed under Unixware 2.0 for syslog.
4480
echo "$as_me:$LINENO: checking for main in -lgen" >&5
4481
echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
4482
if test "${ac_cv_lib_gen_main+set}" = set; then
4483
echo $ECHO_N "(cached) $ECHO_C" >&6
4485
ac_check_lib_save_LIBS=$LIBS
4487
cat >conftest.$ac_ext <<_ACEOF
4490
cat confdefs.h >>conftest.$ac_ext
4491
cat >>conftest.$ac_ext <<_ACEOF
4492
/* end confdefs.h. */
4503
rm -f conftest.$ac_objext conftest$ac_exeext
4504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505
(eval $ac_link) 2>conftest.er1
4507
grep -v '^ *+' conftest.er1 >conftest.err
4509
cat conftest.err >&5
4510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); } &&
4512
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517
(exit $ac_status); }; } &&
4518
{ ac_try='test -s conftest$ac_exeext'
4519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523
(exit $ac_status); }; }; then
4524
ac_cv_lib_gen_main=yes
4526
echo "$as_me: failed program was:" >&5
4527
sed 's/^/| /' conftest.$ac_ext >&5
4529
ac_cv_lib_gen_main=no
4531
rm -f conftest.err conftest.$ac_objext \
4532
conftest$ac_exeext conftest.$ac_ext
4533
LIBS=$ac_check_lib_save_LIBS
4535
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
4536
echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
4537
if test $ac_cv_lib_gen_main = yes; then
4538
cat >>confdefs.h <<_ACEOF
4539
@%:@define HAVE_LIBGEN 1
4546
# Needed generally for encrypted passwords.
4548
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
4549
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
4550
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
4551
echo $ECHO_N "(cached) $ECHO_C" >&6
4553
ac_check_lib_save_LIBS=$LIBS
4554
LIBS="-lcrypt $LIBS"
4555
cat >conftest.$ac_ext <<_ACEOF
4558
cat confdefs.h >>conftest.$ac_ext
4559
cat >>conftest.$ac_ext <<_ACEOF
4560
/* end confdefs.h. */
4562
/* Override any gcc2 internal prototype to avoid an error. */
4566
/* We use char because int might match the return type of a gcc2
4567
builtin and then its argument prototype would still apply. */
4577
rm -f conftest.$ac_objext conftest$ac_exeext
4578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4579
(eval $ac_link) 2>conftest.er1
4581
grep -v '^ *+' conftest.er1 >conftest.err
4583
cat conftest.err >&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); } &&
4586
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591
(exit $ac_status); }; } &&
4592
{ ac_try='test -s conftest$ac_exeext'
4593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597
(exit $ac_status); }; }; then
4598
ac_cv_lib_crypt_crypt=yes
4600
echo "$as_me: failed program was:" >&5
4601
sed 's/^/| /' conftest.$ac_ext >&5
4603
ac_cv_lib_crypt_crypt=no
4605
rm -f conftest.err conftest.$ac_objext \
4606
conftest$ac_exeext conftest.$ac_ext
4607
LIBS=$ac_check_lib_save_LIBS
4609
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
4610
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
4611
if test $ac_cv_lib_crypt_crypt = yes; then
4612
cat >>confdefs.h <<_ACEOF
4613
@%:@define HAVE_LIBCRYPT 1
4616
LIBS="-lcrypt $LIBS"
4621
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4622
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4623
if test "${ac_cv_header_stdc+set}" = set; then
4624
echo $ECHO_N "(cached) $ECHO_C" >&6
4626
cat >conftest.$ac_ext <<_ACEOF
4629
cat confdefs.h >>conftest.$ac_ext
4630
cat >>conftest.$ac_ext <<_ACEOF
4631
/* end confdefs.h. */
4645
rm -f conftest.$ac_objext
4646
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647
(eval $ac_compile) 2>conftest.er1
4649
grep -v '^ *+' conftest.er1 >conftest.err
4651
cat conftest.err >&5
4652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
(exit $ac_status); } &&
4654
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
(exit $ac_status); }; } &&
4660
{ ac_try='test -s conftest.$ac_objext'
4661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
(exit $ac_status); }; }; then
4666
ac_cv_header_stdc=yes
4668
echo "$as_me: failed program was:" >&5
4669
sed 's/^/| /' conftest.$ac_ext >&5
4671
ac_cv_header_stdc=no
4673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675
if test $ac_cv_header_stdc = yes; then
4676
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4677
cat >conftest.$ac_ext <<_ACEOF
4680
cat confdefs.h >>conftest.$ac_ext
4681
cat >>conftest.$ac_ext <<_ACEOF
4682
/* end confdefs.h. */
4686
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687
$EGREP "memchr" >/dev/null 2>&1; then
4690
ac_cv_header_stdc=no
4696
if test $ac_cv_header_stdc = yes; then
4697
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4698
cat >conftest.$ac_ext <<_ACEOF
4701
cat confdefs.h >>conftest.$ac_ext
4702
cat >>conftest.$ac_ext <<_ACEOF
4703
/* end confdefs.h. */
4707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708
$EGREP "free" >/dev/null 2>&1; then
4711
ac_cv_header_stdc=no
4717
if test $ac_cv_header_stdc = yes; then
4718
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719
if test "$cross_compiling" = yes; then
4722
cat >conftest.$ac_ext <<_ACEOF
4725
cat confdefs.h >>conftest.$ac_ext
4726
cat >>conftest.$ac_ext <<_ACEOF
4727
/* end confdefs.h. */
4729
#if ((' ' & 0x0FF) == 0x020)
4730
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4731
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4733
# define ISLOWER(c) \
4734
(('a' <= (c) && (c) <= 'i') \
4735
|| ('j' <= (c) && (c) <= 'r') \
4736
|| ('s' <= (c) && (c) <= 'z'))
4737
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4740
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4745
for (i = 0; i < 256; i++)
4746
if (XOR (islower (i), ISLOWER (i))
4747
|| toupper (i) != TOUPPER (i))
4752
rm -f conftest$ac_exeext
4753
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754
(eval $ac_link) 2>&5
4756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
(exit $ac_status); }; }; then
4765
echo "$as_me: program exited with status $ac_status" >&5
4766
echo "$as_me: failed program was:" >&5
4767
sed 's/^/| /' conftest.$ac_ext >&5
4770
ac_cv_header_stdc=no
4772
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4777
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4778
if test $ac_cv_header_stdc = yes; then
4780
cat >>confdefs.h <<\_ACEOF
4781
@%:@define STDC_HEADERS 1
4797
for ac_header in crypt.h fcntl.h libgen.h limits.h memory.h netdb.h string.h syslog.h unistd.h machine/endian.h sys/select.h
4799
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4800
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4801
echo "$as_me:$LINENO: checking for $ac_header" >&5
4802
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4803
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804
echo $ECHO_N "(cached) $ECHO_C" >&6
4806
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4807
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4809
# Is the header compilable?
4810
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4811
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4812
cat >conftest.$ac_ext <<_ACEOF
4815
cat confdefs.h >>conftest.$ac_ext
4816
cat >>conftest.$ac_ext <<_ACEOF
4817
/* end confdefs.h. */
4818
$ac_includes_default
4819
@%:@include <$ac_header>
4821
rm -f conftest.$ac_objext
4822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823
(eval $ac_compile) 2>conftest.er1
4825
grep -v '^ *+' conftest.er1 >conftest.err
4827
cat conftest.err >&5
4828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
(exit $ac_status); } &&
4830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835
(exit $ac_status); }; } &&
4836
{ ac_try='test -s conftest.$ac_objext'
4837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841
(exit $ac_status); }; }; then
4842
ac_header_compiler=yes
4844
echo "$as_me: failed program was:" >&5
4845
sed 's/^/| /' conftest.$ac_ext >&5
4847
ac_header_compiler=no
4849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4851
echo "${ECHO_T}$ac_header_compiler" >&6
4853
# Is the header present?
4854
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4855
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4856
cat >conftest.$ac_ext <<_ACEOF
4859
cat confdefs.h >>conftest.$ac_ext
4860
cat >>conftest.$ac_ext <<_ACEOF
4861
/* end confdefs.h. */
4862
@%:@include <$ac_header>
4864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867
grep -v '^ *+' conftest.er1 >conftest.err
4869
cat conftest.err >&5
4870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
(exit $ac_status); } >/dev/null; then
4872
if test -s conftest.err; then
4873
ac_cpp_err=$ac_c_preproc_warn_flag
4874
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881
if test -z "$ac_cpp_err"; then
4882
ac_header_preproc=yes
4884
echo "$as_me: failed program was:" >&5
4885
sed 's/^/| /' conftest.$ac_ext >&5
4887
ac_header_preproc=no
4889
rm -f conftest.err conftest.$ac_ext
4890
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4891
echo "${ECHO_T}$ac_header_preproc" >&6
4893
# So? What about this header?
4894
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4896
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4897
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4898
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4899
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4900
ac_header_preproc=yes
4903
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4904
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4905
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4906
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4907
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4908
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4909
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4910
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4911
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4912
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4914
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4917
@%:@@%:@ -------------------------------- @%:@@%:@
4918
@%:@@%:@ Report this to bug-gnats@gnu.org @%:@@%:@
4919
@%:@@%:@ -------------------------------- @%:@@%:@
4922
sed "s/^/$as_me: WARNING: /" >&2
4925
echo "$as_me:$LINENO: checking for $ac_header" >&5
4926
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928
echo $ECHO_N "(cached) $ECHO_C" >&6
4930
eval "$as_ac_Header=\$ac_header_preproc"
4932
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937
cat >>confdefs.h <<_ACEOF
4938
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945
cat >conftest.$ac_ext <<_ACEOF
4948
cat confdefs.h >>conftest.$ac_ext
4949
cat >>conftest.$ac_ext <<_ACEOF
4950
/* end confdefs.h. */
4954
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955
$EGREP "\<unsetenv\>" >/dev/null 2>&1; then
4957
cat >>confdefs.h <<\_ACEOF
4958
@%:@define HAVE_DECL_UNSETENV 1
4963
cat >>confdefs.h <<\_ACEOF
4964
@%:@define HAVE_DECL_UNSETENV 0
4980
for ac_func in basename ftime getopt getopt_long mkdir mktemp mkstemp unsetenv asprintf vasprintf
4982
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4983
echo "$as_me:$LINENO: checking for $ac_func" >&5
4984
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4985
if eval "test \"\${$as_ac_var+set}\" = set"; then
4986
echo $ECHO_N "(cached) $ECHO_C" >&6
4988
cat >conftest.$ac_ext <<_ACEOF
4991
cat confdefs.h >>conftest.$ac_ext
4992
cat >>conftest.$ac_ext <<_ACEOF
4993
/* end confdefs.h. */
4994
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4995
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4996
#define $ac_func innocuous_$ac_func
4998
/* System header to define __stub macros and hopefully few prototypes,
4999
which can conflict with char $ac_func (); below.
5000
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001
<limits.h> exists even on freestanding compilers. */
5004
# include <limits.h>
5006
# include <assert.h>
5011
/* Override any gcc2 internal prototype to avoid an error. */
5016
/* We use char because int might match the return type of a gcc2
5017
builtin and then its argument prototype would still apply. */
5019
/* The GNU C library defines this for functions which it implements
5020
to always fail with ENOSYS. Some functions are actually named
5021
something starting with __ and the normal name is an alias. */
5022
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5025
char (*f) () = $ac_func;
5034
return f != $ac_func;
5039
rm -f conftest.$ac_objext conftest$ac_exeext
5040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041
(eval $ac_link) 2>conftest.er1
5043
grep -v '^ *+' conftest.er1 >conftest.err
5045
cat conftest.err >&5
5046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047
(exit $ac_status); } &&
5048
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053
(exit $ac_status); }; } &&
5054
{ ac_try='test -s conftest$ac_exeext'
5055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059
(exit $ac_status); }; }; then
5060
eval "$as_ac_var=yes"
5062
echo "$as_me: failed program was:" >&5
5063
sed 's/^/| /' conftest.$ac_ext >&5
5065
eval "$as_ac_var=no"
5067
rm -f conftest.err conftest.$ac_objext \
5068
conftest$ac_exeext conftest.$ac_ext
5070
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5071
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5072
if test `eval echo '${'$as_ac_var'}'` = yes; then
5073
cat >>confdefs.h <<_ACEOF
5074
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5086
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5087
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5088
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5089
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5090
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5091
echo $ECHO_N "(cached) $ECHO_C" >&6
5093
cat >conftest.$ac_ext <<_ACEOF
5096
cat confdefs.h >>conftest.$ac_ext
5097
cat >>conftest.$ac_ext <<_ACEOF
5098
/* end confdefs.h. */
5099
#include <sys/types.h>
5111
rm -f conftest.$ac_objext
5112
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113
(eval $ac_compile) 2>conftest.er1
5115
grep -v '^ *+' conftest.er1 >conftest.err
5117
cat conftest.err >&5
5118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119
(exit $ac_status); } &&
5120
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125
(exit $ac_status); }; } &&
5126
{ ac_try='test -s conftest.$ac_objext'
5127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131
(exit $ac_status); }; }; then
5132
eval "$as_ac_Header=yes"
5134
echo "$as_me: failed program was:" >&5
5135
sed 's/^/| /' conftest.$ac_ext >&5
5137
eval "$as_ac_Header=no"
5139
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5142
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5143
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5144
cat >>confdefs.h <<_ACEOF
5145
@%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5148
ac_header_dirent=$ac_hdr; break
5152
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5153
if test $ac_header_dirent = dirent.h; then
5154
echo "$as_me:$LINENO: checking for library containing opendir" >&5
5155
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5156
if test "${ac_cv_search_opendir+set}" = set; then
5157
echo $ECHO_N "(cached) $ECHO_C" >&6
5159
ac_func_search_save_LIBS=$LIBS
5160
ac_cv_search_opendir=no
5161
cat >conftest.$ac_ext <<_ACEOF
5164
cat confdefs.h >>conftest.$ac_ext
5165
cat >>conftest.$ac_ext <<_ACEOF
5166
/* end confdefs.h. */
5168
/* Override any gcc2 internal prototype to avoid an error. */
5172
/* We use char because int might match the return type of a gcc2
5173
builtin and then its argument prototype would still apply. */
5183
rm -f conftest.$ac_objext conftest$ac_exeext
5184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185
(eval $ac_link) 2>conftest.er1
5187
grep -v '^ *+' conftest.er1 >conftest.err
5189
cat conftest.err >&5
5190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191
(exit $ac_status); } &&
5192
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197
(exit $ac_status); }; } &&
5198
{ ac_try='test -s conftest$ac_exeext'
5199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203
(exit $ac_status); }; }; then
5204
ac_cv_search_opendir="none required"
5206
echo "$as_me: failed program was:" >&5
5207
sed 's/^/| /' conftest.$ac_ext >&5
5210
rm -f conftest.err conftest.$ac_objext \
5211
conftest$ac_exeext conftest.$ac_ext
5212
if test "$ac_cv_search_opendir" = no; then
5213
for ac_lib in dir; do
5214
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5215
cat >conftest.$ac_ext <<_ACEOF
5218
cat confdefs.h >>conftest.$ac_ext
5219
cat >>conftest.$ac_ext <<_ACEOF
5220
/* end confdefs.h. */
5222
/* Override any gcc2 internal prototype to avoid an error. */
5226
/* We use char because int might match the return type of a gcc2
5227
builtin and then its argument prototype would still apply. */
5237
rm -f conftest.$ac_objext conftest$ac_exeext
5238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239
(eval $ac_link) 2>conftest.er1
5241
grep -v '^ *+' conftest.er1 >conftest.err
5243
cat conftest.err >&5
5244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245
(exit $ac_status); } &&
5246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251
(exit $ac_status); }; } &&
5252
{ ac_try='test -s conftest$ac_exeext'
5253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); }; }; then
5258
ac_cv_search_opendir="-l$ac_lib"
5261
echo "$as_me: failed program was:" >&5
5262
sed 's/^/| /' conftest.$ac_ext >&5
5265
rm -f conftest.err conftest.$ac_objext \
5266
conftest$ac_exeext conftest.$ac_ext
5269
LIBS=$ac_func_search_save_LIBS
5271
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5272
echo "${ECHO_T}$ac_cv_search_opendir" >&6
5273
if test "$ac_cv_search_opendir" != no; then
5274
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5279
echo "$as_me:$LINENO: checking for library containing opendir" >&5
5280
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5281
if test "${ac_cv_search_opendir+set}" = set; then
5282
echo $ECHO_N "(cached) $ECHO_C" >&6
5284
ac_func_search_save_LIBS=$LIBS
5285
ac_cv_search_opendir=no
5286
cat >conftest.$ac_ext <<_ACEOF
5289
cat confdefs.h >>conftest.$ac_ext
5290
cat >>conftest.$ac_ext <<_ACEOF
5291
/* end confdefs.h. */
5293
/* Override any gcc2 internal prototype to avoid an error. */
5297
/* We use char because int might match the return type of a gcc2
5298
builtin and then its argument prototype would still apply. */
5308
rm -f conftest.$ac_objext conftest$ac_exeext
5309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310
(eval $ac_link) 2>conftest.er1
5312
grep -v '^ *+' conftest.er1 >conftest.err
5314
cat conftest.err >&5
5315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316
(exit $ac_status); } &&
5317
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
(exit $ac_status); }; } &&
5323
{ ac_try='test -s conftest$ac_exeext'
5324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328
(exit $ac_status); }; }; then
5329
ac_cv_search_opendir="none required"
5331
echo "$as_me: failed program was:" >&5
5332
sed 's/^/| /' conftest.$ac_ext >&5
5335
rm -f conftest.err conftest.$ac_objext \
5336
conftest$ac_exeext conftest.$ac_ext
5337
if test "$ac_cv_search_opendir" = no; then
5339
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5340
cat >conftest.$ac_ext <<_ACEOF
5343
cat confdefs.h >>conftest.$ac_ext
5344
cat >>conftest.$ac_ext <<_ACEOF
5345
/* end confdefs.h. */
5347
/* Override any gcc2 internal prototype to avoid an error. */
5351
/* We use char because int might match the return type of a gcc2
5352
builtin and then its argument prototype would still apply. */
5362
rm -f conftest.$ac_objext conftest$ac_exeext
5363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364
(eval $ac_link) 2>conftest.er1
5366
grep -v '^ *+' conftest.er1 >conftest.err
5368
cat conftest.err >&5
5369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370
(exit $ac_status); } &&
5371
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376
(exit $ac_status); }; } &&
5377
{ ac_try='test -s conftest$ac_exeext'
5378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382
(exit $ac_status); }; }; then
5383
ac_cv_search_opendir="-l$ac_lib"
5386
echo "$as_me: failed program was:" >&5
5387
sed 's/^/| /' conftest.$ac_ext >&5
5390
rm -f conftest.err conftest.$ac_objext \
5391
conftest$ac_exeext conftest.$ac_ext
5394
LIBS=$ac_func_search_save_LIBS
5396
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5397
echo "${ECHO_T}$ac_cv_search_opendir" >&6
5398
if test "$ac_cv_search_opendir" != no; then
5399
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5405
echo "$as_me:$LINENO: checking for size_t" >&5
5406
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5407
if test "${ac_cv_type_size_t+set}" = set; then
5408
echo $ECHO_N "(cached) $ECHO_C" >&6
5410
cat >conftest.$ac_ext <<_ACEOF
5413
cat confdefs.h >>conftest.$ac_ext
5414
cat >>conftest.$ac_ext <<_ACEOF
5415
/* end confdefs.h. */
5416
$ac_includes_default
5422
if (sizeof (size_t))
5428
rm -f conftest.$ac_objext
5429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430
(eval $ac_compile) 2>conftest.er1
5432
grep -v '^ *+' conftest.er1 >conftest.err
5434
cat conftest.err >&5
5435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
(exit $ac_status); } &&
5437
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); }; } &&
5443
{ ac_try='test -s conftest.$ac_objext'
5444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
(exit $ac_status); }; }; then
5449
ac_cv_type_size_t=yes
5451
echo "$as_me: failed program was:" >&5
5452
sed 's/^/| /' conftest.$ac_ext >&5
5454
ac_cv_type_size_t=no
5456
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5459
echo "${ECHO_T}$ac_cv_type_size_t" >&6
5460
if test $ac_cv_type_size_t = yes; then
5464
cat >>confdefs.h <<_ACEOF
5465
@%:@define size_t unsigned
5471
echo "$as_me:$LINENO: checking for --with-lispdir" >&5
5472
echo $ECHO_N "checking for --with-lispdir... $ECHO_C" >&6
5473
if test "${with_lispdir+set}" = set ; then
5474
echo "$as_me:$LINENO: result: $with_lispdir" >&5
5475
echo "${ECHO_T}$with_lispdir" >&6
5476
lispdir=$with_lispdir
5478
# If set to t, that means we are running in a shell under Emacs.
5479
# If you have an Emacs named "t", then use the full path.
5480
test "$EMACS" = t && EMACS=
5481
for ac_prog in emacs xemacs
5483
# Extract the first word of "$ac_prog", so it can be a program name with args.
5484
set dummy $ac_prog; ac_word=$2
5485
echo "$as_me:$LINENO: checking for $ac_word" >&5
5486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487
if test "${ac_cv_path_EMACS+set}" = set; then
5488
echo $ECHO_N "(cached) $ECHO_C" >&6
5492
ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499
test -z "$as_dir" && as_dir=.
5500
for ac_exec_ext in '' $ac_executable_extensions; do
5501
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502
ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
5503
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512
EMACS=$ac_cv_path_EMACS
5514
if test -n "$EMACS"; then
5515
echo "$as_me:$LINENO: result: $EMACS" >&5
5516
echo "${ECHO_T}$EMACS" >&6
5518
echo "$as_me:$LINENO: result: no" >&5
5519
echo "${ECHO_T}no" >&6
5522
test -n "$EMACS" && break
5524
test -n "$EMACS" || EMACS="no"
5526
if test $EMACS != "no"; then
5527
echo "$as_me:$LINENO: checking where .elc files should go" >&5
5528
echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
5529
lispdir="\$(datadir)/emacs/site-lisp"
5530
emacs_flavor=`echo "$EMACS" | sed -e 's,^.*/,,'`
5531
if test "x$prefix" = "xNONE"; then
5532
if test -d $ac_default_prefix/share/$emacs_flavor/site-lisp; then
5533
lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
5535
if test -d $ac_default_prefix/lib/$emacs_flavor/site-lisp; then
5536
lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
5540
if test -d $prefix/share/$emacs_flavor/site-lisp; then
5541
lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
5543
if test -d $prefix/lib/$emacs_flavor/site-lisp; then
5544
lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
5548
echo "$as_me:$LINENO: result: $lispdir" >&5
5549
echo "${ECHO_T}$lispdir" >&6
5552
echo "$as_me:$LINENO: result: $lispdir" >&5
5553
echo "${ECHO_T}$lispdir" >&6
5557
cat >conftest.$ac_ext <<_ACEOF
5560
cat confdefs.h >>conftest.$ac_ext
5561
cat >>conftest.$ac_ext <<_ACEOF
5562
/* end confdefs.h. */
5563
#include <sys/socket.h>
5565
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5566
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5568
grep -v '^ *+' conftest.er1 >conftest.err
5570
cat conftest.err >&5
5571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
(exit $ac_status); } >/dev/null; then
5573
if test -s conftest.err; then
5574
ac_cpp_err=$ac_c_preproc_warn_flag
5575
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5582
if test -z "$ac_cpp_err"; then
5583
cat >conftest.$ac_ext <<_ACEOF
5586
cat confdefs.h >>conftest.$ac_ext
5587
cat >>conftest.$ac_ext <<_ACEOF
5588
/* end confdefs.h. */
5589
#include <sys/socket.h>
5591
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5592
$EGREP "socklen_t" >/dev/null 2>&1; then
5593
cat >>confdefs.h <<\_ACEOF
5594
@%:@define HAVE_SOCKLEN_T 1
5601
echo "$as_me: failed program was:" >&5
5602
sed 's/^/| /' conftest.$ac_ext >&5
5606
rm -f conftest.err conftest.$ac_ext
5608
# ***** How much do we want? *****
5612
GNATS_INSTALL=install-gnats
5614
# See if we want Kerberos.
5615
echo "$as_me:$LINENO: checking for --with-kerberos" >&5
5616
echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
5617
if test -n "$with_kerberos" ; then
5618
echo "$as_me:$LINENO: result: yes" >&5
5619
echo "${ECHO_T}yes" >&6
5622
echo "$as_me:$LINENO: result: no" >&5
5623
echo "${ECHO_T}no" >&6
5626
if test -n "$with_krb"; then
5627
echo "$as_me:$LINENO: checking Kerberos path" >&5
5628
echo $ECHO_N "checking Kerberos path... $ECHO_C" >&6
5630
# Check whether --with-krb4 or --without-krb4 was given.
5631
if test "${with_krb4+set}" = set; then
5632
withval="$with_krb4"
5635
# Default to system version if BSD-style, else /usr/kerberos always.
5636
if test ! -d /usr/kerberos && test -d /usr/include/kerberosIV ; then
5642
fi; echo "$as_me:$LINENO: result: $KRB4" >&5
5643
echo "${ECHO_T}$KRB4" >&6
5648
# XXX this should use a different approach at some point
5649
echo "$as_me:$LINENO: checking for krb.h" >&5
5650
echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
5651
cat >conftest.$ac_ext <<_ACEOF
5654
cat confdefs.h >>conftest.$ac_ext
5655
cat >>conftest.$ac_ext <<_ACEOF
5656
/* end confdefs.h. */
5667
rm -f conftest.$ac_objext conftest$ac_exeext
5668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669
(eval $ac_link) 2>conftest.er1
5671
grep -v '^ *+' conftest.er1 >conftest.err
5673
cat conftest.err >&5
5674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675
(exit $ac_status); } &&
5676
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681
(exit $ac_status); }; } &&
5682
{ ac_try='test -s conftest$ac_exeext'
5683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687
(exit $ac_status); }; }; then
5688
krb_h=yes krb_incdir=
5689
echo "$as_me:$LINENO: result: yes" >&5
5690
echo "${ECHO_T}yes" >&6
5692
echo "$as_me: failed program was:" >&5
5693
sed 's/^/| /' conftest.$ac_ext >&5
5695
echo "$as_me:$LINENO: result: no" >&5
5696
echo "${ECHO_T}no" >&6
5697
if test -r "$KRB4/include/kerberosIV/krb.h" ; then
5698
krbincdir=$KRB4/include/kerberosIV
5700
krbincdir=$KRB4/include
5702
if test "$cross_compiling" = "no" && test -r $krbincdir/krb.h; then
5704
CFLAGS="$CFLAGS -I$krbincdir"
5705
echo "$as_me:$LINENO: checking for krb.h in $krbincdir" >&5
5706
echo $ECHO_N "checking for krb.h in $krbincdir... $ECHO_C" >&6
5707
cat >conftest.$ac_ext <<_ACEOF
5710
cat confdefs.h >>conftest.$ac_ext
5711
cat >>conftest.$ac_ext <<_ACEOF
5712
/* end confdefs.h. */
5723
rm -f conftest.$ac_objext conftest$ac_exeext
5724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725
(eval $ac_link) 2>conftest.er1
5727
grep -v '^ *+' conftest.er1 >conftest.err
5729
cat conftest.err >&5
5730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
(exit $ac_status); } &&
5732
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
(exit $ac_status); }; } &&
5738
{ ac_try='test -s conftest$ac_exeext'
5739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); }; }; then
5744
krb_h=yes krb_incdir=$krbincdir
5745
echo "$as_me:$LINENO: result: yes" >&5
5746
echo "${ECHO_T}yes" >&6
5748
echo "$as_me: failed program was:" >&5
5749
sed 's/^/| /' conftest.$ac_ext >&5
5751
echo "$as_me:$LINENO: result: no" >&5
5752
echo "${ECHO_T}no" >&6
5754
rm -f conftest.err conftest.$ac_objext \
5755
conftest$ac_exeext conftest.$ac_ext
5757
if test -n "$krb_incdir"; then
5758
KRBINCLUDE="-I$krb_incdir"
5762
rm -f conftest.err conftest.$ac_objext \
5763
conftest$ac_exeext conftest.$ac_ext
5764
if test -n "$krb_h"; then
5766
if test "$cross_compiling" = "no" && test -r $KRB4/lib/libkrb.a; then
5767
# Fake some sensible log messages.
5768
echo "$as_me:$LINENO: checking for -lkrb in $KRB4/lib" >&5
5769
echo $ECHO_N "checking for -lkrb in $KRB4/lib... $ECHO_C" >&6
5770
echo "$as_me:$LINENO: result: yes" >&5
5771
echo "${ECHO_T}yes" >&6
5772
krb_lib=-lkrb krb_libdir=$KRB4/lib
5774
echo "$as_me:$LINENO: checking for main in -lkrb" >&5
5775
echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
5776
if test "${ac_cv_lib_krb_main+set}" = set; then
5777
echo $ECHO_N "(cached) $ECHO_C" >&6
5779
ac_check_lib_save_LIBS=$LIBS
5781
cat >conftest.$ac_ext <<_ACEOF
5784
cat confdefs.h >>conftest.$ac_ext
5785
cat >>conftest.$ac_ext <<_ACEOF
5786
/* end confdefs.h. */
5797
rm -f conftest.$ac_objext conftest$ac_exeext
5798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799
(eval $ac_link) 2>conftest.er1
5801
grep -v '^ *+' conftest.er1 >conftest.err
5803
cat conftest.err >&5
5804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805
(exit $ac_status); } &&
5806
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811
(exit $ac_status); }; } &&
5812
{ ac_try='test -s conftest$ac_exeext'
5813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817
(exit $ac_status); }; }; then
5818
ac_cv_lib_krb_main=yes
5820
echo "$as_me: failed program was:" >&5
5821
sed 's/^/| /' conftest.$ac_ext >&5
5823
ac_cv_lib_krb_main=no
5825
rm -f conftest.err conftest.$ac_objext \
5826
conftest$ac_exeext conftest.$ac_ext
5827
LIBS=$ac_check_lib_save_LIBS
5829
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
5830
echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
5831
if test $ac_cv_lib_krb_main = yes; then
5834
echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
5835
echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
5836
if test "${ac_cv_lib_krb4_main+set}" = set; then
5837
echo $ECHO_N "(cached) $ECHO_C" >&6
5839
ac_check_lib_save_LIBS=$LIBS
5841
cat >conftest.$ac_ext <<_ACEOF
5844
cat confdefs.h >>conftest.$ac_ext
5845
cat >>conftest.$ac_ext <<_ACEOF
5846
/* end confdefs.h. */
5857
rm -f conftest.$ac_objext conftest$ac_exeext
5858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5859
(eval $ac_link) 2>conftest.er1
5861
grep -v '^ *+' conftest.er1 >conftest.err
5863
cat conftest.err >&5
5864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865
(exit $ac_status); } &&
5866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871
(exit $ac_status); }; } &&
5872
{ ac_try='test -s conftest$ac_exeext'
5873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877
(exit $ac_status); }; }; then
5878
ac_cv_lib_krb4_main=yes
5880
echo "$as_me: failed program was:" >&5
5881
sed 's/^/| /' conftest.$ac_ext >&5
5883
ac_cv_lib_krb4_main=no
5885
rm -f conftest.err conftest.$ac_objext \
5886
conftest$ac_exeext conftest.$ac_ext
5887
LIBS=$ac_check_lib_save_LIBS
5889
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
5890
echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
5891
if test $ac_cv_lib_krb4_main = yes; then
5898
if test x"$krb_lib" != x""; then
5899
cat >>confdefs.h <<\_ACEOF
5900
@%:@define HAVE_KERBEROS 1
5903
test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
5904
LIBS="${LIBS} $krb_lib"
5905
echo "$as_me:$LINENO: checking for main in -ldes" >&5
5906
echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
5907
if test "${ac_cv_lib_des_main+set}" = set; then
5908
echo $ECHO_N "(cached) $ECHO_C" >&6
5910
ac_check_lib_save_LIBS=$LIBS
5912
cat >conftest.$ac_ext <<_ACEOF
5915
cat confdefs.h >>conftest.$ac_ext
5916
cat >>conftest.$ac_ext <<_ACEOF
5917
/* end confdefs.h. */
5928
rm -f conftest.$ac_objext conftest$ac_exeext
5929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930
(eval $ac_link) 2>conftest.er1
5932
grep -v '^ *+' conftest.er1 >conftest.err
5934
cat conftest.err >&5
5935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936
(exit $ac_status); } &&
5937
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942
(exit $ac_status); }; } &&
5943
{ ac_try='test -s conftest$ac_exeext'
5944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948
(exit $ac_status); }; }; then
5949
ac_cv_lib_des_main=yes
5951
echo "$as_me: failed program was:" >&5
5952
sed 's/^/| /' conftest.$ac_ext >&5
5954
ac_cv_lib_des_main=no
5956
rm -f conftest.err conftest.$ac_objext \
5957
conftest$ac_exeext conftest.$ac_ext
5958
LIBS=$ac_check_lib_save_LIBS
5960
echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
5961
echo "${ECHO_T}$ac_cv_lib_des_main" >&6
5962
if test $ac_cv_lib_des_main = yes; then
5963
LIBS="${LIBS} -ldes"
5966
echo "$as_me:$LINENO: checking for main in -ldes425" >&5
5967
echo $ECHO_N "checking for main in -ldes425... $ECHO_C" >&6
5968
if test "${ac_cv_lib_des425_main+set}" = set; then
5969
echo $ECHO_N "(cached) $ECHO_C" >&6
5971
ac_check_lib_save_LIBS=$LIBS
5972
LIBS="-ldes425 $LIBS"
5973
cat >conftest.$ac_ext <<_ACEOF
5976
cat confdefs.h >>conftest.$ac_ext
5977
cat >>conftest.$ac_ext <<_ACEOF
5978
/* end confdefs.h. */
5989
rm -f conftest.$ac_objext conftest$ac_exeext
5990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5991
(eval $ac_link) 2>conftest.er1
5993
grep -v '^ *+' conftest.er1 >conftest.err
5995
cat conftest.err >&5
5996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997
(exit $ac_status); } &&
5998
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003
(exit $ac_status); }; } &&
6004
{ ac_try='test -s conftest$ac_exeext'
6005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009
(exit $ac_status); }; }; then
6010
ac_cv_lib_des425_main=yes
6012
echo "$as_me: failed program was:" >&5
6013
sed 's/^/| /' conftest.$ac_ext >&5
6015
ac_cv_lib_des425_main=no
6017
rm -f conftest.err conftest.$ac_objext \
6018
conftest$ac_exeext conftest.$ac_ext
6019
LIBS=$ac_check_lib_save_LIBS
6021
echo "$as_me:$LINENO: result: $ac_cv_lib_des425_main" >&5
6022
echo "${ECHO_T}$ac_cv_lib_des425_main" >&6
6023
if test $ac_cv_lib_des425_main = yes; then
6024
LIBS="${LIBS} -ldes425"
6027
echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
6028
echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
6029
if test "${ac_cv_lib_krb5_main+set}" = set; then
6030
echo $ECHO_N "(cached) $ECHO_C" >&6
6032
ac_check_lib_save_LIBS=$LIBS
6034
cat >conftest.$ac_ext <<_ACEOF
6037
cat confdefs.h >>conftest.$ac_ext
6038
cat >>conftest.$ac_ext <<_ACEOF
6039
/* end confdefs.h. */
6050
rm -f conftest.$ac_objext conftest$ac_exeext
6051
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6052
(eval $ac_link) 2>conftest.er1
6054
grep -v '^ *+' conftest.er1 >conftest.err
6056
cat conftest.err >&5
6057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
(exit $ac_status); } &&
6059
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064
(exit $ac_status); }; } &&
6065
{ ac_try='test -s conftest$ac_exeext'
6066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070
(exit $ac_status); }; }; then
6071
ac_cv_lib_krb5_main=yes
6073
echo "$as_me: failed program was:" >&5
6074
sed 's/^/| /' conftest.$ac_ext >&5
6076
ac_cv_lib_krb5_main=no
6078
rm -f conftest.err conftest.$ac_objext \
6079
conftest$ac_exeext conftest.$ac_ext
6080
LIBS=$ac_check_lib_save_LIBS
6082
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
6083
echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
6084
if test $ac_cv_lib_krb5_main = yes; then
6085
LIBS="${LIBS} -lkrb5"
6088
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6089
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6090
if test "${ac_cv_lib_crypto_main+set}" = set; then
6091
echo $ECHO_N "(cached) $ECHO_C" >&6
6093
ac_check_lib_save_LIBS=$LIBS
6094
LIBS="-lcrypto $LIBS"
6095
cat >conftest.$ac_ext <<_ACEOF
6098
cat confdefs.h >>conftest.$ac_ext
6099
cat >>conftest.$ac_ext <<_ACEOF
6100
/* end confdefs.h. */
6111
rm -f conftest.$ac_objext conftest$ac_exeext
6112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113
(eval $ac_link) 2>conftest.er1
6115
grep -v '^ *+' conftest.er1 >conftest.err
6117
cat conftest.err >&5
6118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
(exit $ac_status); } &&
6120
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125
(exit $ac_status); }; } &&
6126
{ ac_try='test -s conftest$ac_exeext'
6127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131
(exit $ac_status); }; }; then
6132
ac_cv_lib_crypto_main=yes
6134
echo "$as_me: failed program was:" >&5
6135
sed 's/^/| /' conftest.$ac_ext >&5
6137
ac_cv_lib_crypto_main=no
6139
rm -f conftest.err conftest.$ac_objext \
6140
conftest$ac_exeext conftest.$ac_ext
6141
LIBS=$ac_check_lib_save_LIBS
6143
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6144
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6145
if test $ac_cv_lib_crypto_main = yes; then
6146
LIBS="${LIBS} -lcrypto"
6149
echo "$as_me:$LINENO: checking for main in -lcom_err" >&5
6150
echo $ECHO_N "checking for main in -lcom_err... $ECHO_C" >&6
6151
if test "${ac_cv_lib_com_err_main+set}" = set; then
6152
echo $ECHO_N "(cached) $ECHO_C" >&6
6154
ac_check_lib_save_LIBS=$LIBS
6155
LIBS="-lcom_err $LIBS"
6156
cat >conftest.$ac_ext <<_ACEOF
6159
cat confdefs.h >>conftest.$ac_ext
6160
cat >>conftest.$ac_ext <<_ACEOF
6161
/* end confdefs.h. */
6172
rm -f conftest.$ac_objext conftest$ac_exeext
6173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174
(eval $ac_link) 2>conftest.er1
6176
grep -v '^ *+' conftest.er1 >conftest.err
6178
cat conftest.err >&5
6179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
(exit $ac_status); } &&
6181
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); }; } &&
6187
{ ac_try='test -s conftest$ac_exeext'
6188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192
(exit $ac_status); }; }; then
6193
ac_cv_lib_com_err_main=yes
6195
echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6198
ac_cv_lib_com_err_main=no
6200
rm -f conftest.err conftest.$ac_objext \
6201
conftest$ac_exeext conftest.$ac_ext
6202
LIBS=$ac_check_lib_save_LIBS
6204
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_main" >&5
6205
echo "${ECHO_T}$ac_cv_lib_com_err_main" >&6
6206
if test $ac_cv_lib_com_err_main = yes; then
6207
LIBS="${LIBS} -lcom_err"
6210
echo "$as_me:$LINENO: checking for krb_mk_auth" >&5
6211
echo $ECHO_N "checking for krb_mk_auth... $ECHO_C" >&6
6212
if test "${ac_cv_func_krb_mk_auth+set}" = set; then
6213
echo $ECHO_N "(cached) $ECHO_C" >&6
6215
cat >conftest.$ac_ext <<_ACEOF
6218
cat confdefs.h >>conftest.$ac_ext
6219
cat >>conftest.$ac_ext <<_ACEOF
6220
/* end confdefs.h. */
6221
/* Define krb_mk_auth to an innocuous variant, in case <limits.h> declares krb_mk_auth.
6222
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6223
#define krb_mk_auth innocuous_krb_mk_auth
6225
/* System header to define __stub macros and hopefully few prototypes,
6226
which can conflict with char krb_mk_auth (); below.
6227
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228
<limits.h> exists even on freestanding compilers. */
6231
# include <limits.h>
6233
# include <assert.h>
6238
/* Override any gcc2 internal prototype to avoid an error. */
6243
/* We use char because int might match the return type of a gcc2
6244
builtin and then its argument prototype would still apply. */
6245
char krb_mk_auth ();
6246
/* The GNU C library defines this for functions which it implements
6247
to always fail with ENOSYS. Some functions are actually named
6248
something starting with __ and the normal name is an alias. */
6249
#if defined (__stub_krb_mk_auth) || defined (__stub___krb_mk_auth)
6252
char (*f) () = krb_mk_auth;
6261
return f != krb_mk_auth;
6266
rm -f conftest.$ac_objext conftest$ac_exeext
6267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268
(eval $ac_link) 2>conftest.er1
6270
grep -v '^ *+' conftest.er1 >conftest.err
6272
cat conftest.err >&5
6273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274
(exit $ac_status); } &&
6275
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
(exit $ac_status); }; } &&
6281
{ ac_try='test -s conftest$ac_exeext'
6282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286
(exit $ac_status); }; }; then
6287
ac_cv_func_krb_mk_auth=yes
6289
echo "$as_me: failed program was:" >&5
6290
sed 's/^/| /' conftest.$ac_ext >&5
6292
ac_cv_func_krb_mk_auth=no
6294
rm -f conftest.err conftest.$ac_objext \
6295
conftest$ac_exeext conftest.$ac_ext
6297
echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_auth" >&5
6298
echo "${ECHO_T}$ac_cv_func_krb_mk_auth" >&6
6299
if test $ac_cv_func_krb_mk_auth = yes; then
6302
# BSD Kerberos doesn't have these functions.
6303
EXTRA_OBJS="mk_auth.o $EXTRA_OBJS"
6310
for ac_func in krb_get_err_text
6312
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6313
echo "$as_me:$LINENO: checking for $ac_func" >&5
6314
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6315
if eval "test \"\${$as_ac_var+set}\" = set"; then
6316
echo $ECHO_N "(cached) $ECHO_C" >&6
6318
cat >conftest.$ac_ext <<_ACEOF
6321
cat confdefs.h >>conftest.$ac_ext
6322
cat >>conftest.$ac_ext <<_ACEOF
6323
/* end confdefs.h. */
6324
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6325
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6326
#define $ac_func innocuous_$ac_func
6328
/* System header to define __stub macros and hopefully few prototypes,
6329
which can conflict with char $ac_func (); below.
6330
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6331
<limits.h> exists even on freestanding compilers. */
6334
# include <limits.h>
6336
# include <assert.h>
6341
/* Override any gcc2 internal prototype to avoid an error. */
6346
/* We use char because int might match the return type of a gcc2
6347
builtin and then its argument prototype would still apply. */
6349
/* The GNU C library defines this for functions which it implements
6350
to always fail with ENOSYS. Some functions are actually named
6351
something starting with __ and the normal name is an alias. */
6352
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355
char (*f) () = $ac_func;
6364
return f != $ac_func;
6369
rm -f conftest.$ac_objext conftest$ac_exeext
6370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371
(eval $ac_link) 2>conftest.er1
6373
grep -v '^ *+' conftest.er1 >conftest.err
6375
cat conftest.err >&5
6376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377
(exit $ac_status); } &&
6378
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383
(exit $ac_status); }; } &&
6384
{ ac_try='test -s conftest$ac_exeext'
6385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389
(exit $ac_status); }; }; then
6390
eval "$as_ac_var=yes"
6392
echo "$as_me: failed program was:" >&5
6393
sed 's/^/| /' conftest.$ac_ext >&5
6395
eval "$as_ac_var=no"
6397
rm -f conftest.err conftest.$ac_objext \
6398
conftest$ac_exeext conftest.$ac_ext
6400
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6401
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6402
if test `eval echo '${'$as_ac_var'}'` = yes; then
6403
cat >>confdefs.h <<_ACEOF
6404
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6415
if test "x$GCC" = "xyes" ; then
6416
GCC_CFLAGS="-W -Wall -ansi -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format"
6419
# ***** Guess the configuration *****
6421
# echo guessing optimal GNATS configuration
6426
echo "$as_me:$LINENO: checking for --with-gnats-service" >&5
6427
echo $ECHO_N "checking for --with-gnats-service... $ECHO_C" >&6
6428
if test -n "$with_gnats_service"; then
6429
echo "$as_me:$LINENO: result: $with_gnats_service" >&5
6430
echo "${ECHO_T}$with_gnats_service" >&6
6431
GNATS_SERVICE=$with_gnats_service
6433
if test -z "${GNATS_SERVICE}"; then
6434
echo "$as_me:$LINENO: result: default to support" >&5
6435
echo "${ECHO_T}default to support" >&6
6436
GNATS_SERVICE=support
6440
echo "$as_me:$LINENO: checking for --with-gnats-user" >&5
6441
echo $ECHO_N "checking for --with-gnats-user... $ECHO_C" >&6
6442
if test -n "$with_gnats_user"; then
6443
echo "$as_me:$LINENO: result: $with_gnats_user" >&5
6444
echo "${ECHO_T}$with_gnats_user" >&6
6445
GNATS_USER=$with_gnats_user
6447
if test -z "${GNATS_USER}"; then
6448
echo "$as_me:$LINENO: result: default to gnats" >&5
6449
echo "${ECHO_T}default to gnats" >&6
6453
echo "$as_me:$LINENO: checking for --with-gnatsd-user-access-file" >&5
6454
echo $ECHO_N "checking for --with-gnatsd-user-access-file... $ECHO_C" >&6
6455
if test -n "${with_gnatsd_user_access_file}"; then
6456
echo "$as_me:$LINENO: result: $with_gnatsd_user_access_file" >&5
6457
echo "${ECHO_T}$with_gnatsd_user_access_file" >&6
6458
GNATSD_USER_ACCESS_FILE=$with_gnatsd_user_access_file
6461
if test -z "${GNATSD_USER_ACCESS_FILE}"; then
6462
echo "$as_me:$LINENO: result: default to ${sysconfdir}/gnats/gnatsd.user_access" >&5
6463
echo "${ECHO_T}default to ${sysconfdir}/gnats/gnatsd.user_access" >&6
6464
GNATSD_USER_ACCESS_FILE=${sysconfdir}/gnats/gnatsd.user_access
6467
echo "$as_me:$LINENO: checking for --with-gnatsd-host-access-file" >&5
6468
echo $ECHO_N "checking for --with-gnatsd-host-access-file... $ECHO_C" >&6
6469
if test -n "${with_gnatsd_host_access_file}"; then
6470
echo "$as_me:$LINENO: result: $with_gnatsd_host_access_file" >&5
6471
echo "${ECHO_T}$with_gnatsd_host_access_file" >&6
6472
GNATSD_HOST_ACCESS_FILE=$with_gnatsd_host_access_file
6475
if test -z "${GNATSD_HOST_ACCESS_FILE}"; then
6476
echo "$as_me:$LINENO: result: default to ${sysconfdir}/gnats/gnatsd.host_access" >&5
6477
echo "${ECHO_T}default to ${sysconfdir}/gnats/gnatsd.host_access" >&6
6478
GNATSD_HOST_ACCESS_FILE=${sysconfdir}/gnats/gnatsd.host_access
6481
echo "$as_me:$LINENO: checking for --with-gnats-dblist-file" >&5
6482
echo $ECHO_N "checking for --with-gnats-dblist-file... $ECHO_C" >&6
6483
if test -n "${with_gnats_dblist_file}"; then
6484
echo "$as_me:$LINENO: result: $with_gnats_dblist_file" >&5
6485
echo "${ECHO_T}$with_gnats_dblist_file" >&6
6486
GLOBAL_DB_LIST_FILE=$with_gnats_dblist_file
6489
if test -z "${GLOBAL_DB_LIST_FILE}"; then
6490
echo "$as_me:$LINENO: result: default to ${sysconfdir}/gnats/databases" >&5
6491
echo "${ECHO_T}default to ${sysconfdir}/gnats/databases" >&6
6492
GLOBAL_DB_LIST_FILE=${sysconfdir}/gnats/databases
6495
echo "$as_me:$LINENO: checking for --with-gnats-default-db" >&5
6496
echo $ECHO_N "checking for --with-gnats-default-db... $ECHO_C" >&6
6497
if test -n "${with_gnats_default_db}"; then
6498
echo "$as_me:$LINENO: result: $with_gnats_default_db" >&5
6499
echo "${ECHO_T}$with_gnats_default_db" >&6
6500
GNATS_DEFAULT_DB_DIR="$with_gnats_default_db"
6503
if test -z "${GNATS_DEFAULT_DB_DIR}"; then
6504
echo "$as_me:$LINENO: result: default to ${sharedstatedir}/gnatsdb" >&5
6505
echo "${ECHO_T}default to ${sharedstatedir}/gnatsdb" >&6
6506
GNATS_DEFAULT_DB_DIR=${sharedstatedir}/gnatsdb
6509
# Set up default values to be overridden
6511
_h=`(hostname || uname -n) 2>/dev/null | sed 1q`
6513
DEFAULT_RELEASE=unknown-1.0
6514
DEFAULT_ORGANIZATION=unknown
6516
DEFAULT_MAIL_AGENT=false
6522
# Extract the first word of "sendmail", so it can be a program name with args.
6523
set dummy sendmail; ac_word=$2
6524
echo "$as_me:$LINENO: checking for $ac_word" >&5
6525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6526
if test "${ac_cv_path_SENDMAIL+set}" = set; then
6527
echo $ECHO_N "(cached) $ECHO_C" >&6
6531
ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535
as_dummy="$PATH:/usr/lib:/usr/sbin:/usr/ucblib"
6536
for as_dir in $as_dummy
6539
test -z "$as_dir" && as_dir=.
6540
for ac_exec_ext in '' $ac_executable_extensions; do
6541
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542
ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6543
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552
SENDMAIL=$ac_cv_path_SENDMAIL
6554
if test -n "$SENDMAIL"; then
6555
echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6556
echo "${ECHO_T}$SENDMAIL" >&6
6558
echo "$as_me:$LINENO: result: no" >&5
6559
echo "${ECHO_T}no" >&6
6562
if test -n "$SENDMAIL" ; then
6563
DEFAULT_MAIL_AGENT="$SENDMAIL -oi -t"
6565
echo "configure: error: sendmail binary not available"
6569
# If the config file exists, it may have more recent info than send-pr
6571
if test -n "$verbose"; then
6572
echo " setting GNATS_SERVICE to $GNATS_SERVICE"
6573
echo " setting GNATS_USER to $GNATS_USER"
6574
echo " setting SUBMITTER to $SUBMITTER"
6575
echo " setting DEFAULT_RELEASE to $DEFAULT_RELEASE"
6576
echo " setting DEFAULT_ORGANIZATION to $DEFAULT_ORGANIZATION"
6577
echo " setting BDAY_START to $BDAY_START"
6578
echo " setting BDAY_END to $BDAY_END"
6579
echo " setting BWEEK_START to $BWEEK_START"
6580
echo " setting BWEEK_END to $BWEEK_END"
6581
echo " setting DEFAULT_MAIL_AGENT to $DEFAULT_MAIL_AGENT"
6584
# ***** End of configuration section *****
6586
ac_config_files="$ac_config_files Makefile"
6588
cat >confcache <<\_ACEOF
6589
# This file is a shell script that caches the results of configure
6590
# tests run on this system so they can be shared between configure
6591
# scripts and configure runs, see configure's option --config-cache.
6592
# It is not useful on other systems. If it contains results you don't
6593
# want to keep, you may remove or edit it.
6595
# config.status only pays attention to the cache file if you give it
6596
# the --recheck option to rerun configure.
6598
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6599
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6604
# The following way of writing the cache mishandles newlines in values,
6605
# but we know of no workaround that is simple, portable, and efficient.
6606
# So, don't put newlines in cache variables' values.
6607
# Ultrix sh set writes to stderr and can't be redirected directly,
6608
# and sets the high bit in the cache file unless we assign to the vars.
6611
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6613
# `set' does not quote correctly, so add quotes (double-quote
6614
# substitution turns \\\\ into \\, and sed turns \\ into \).
6617
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6620
# `set' quotes correctly as required by POSIX, so do not add quotes.
6622
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6629
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6631
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6633
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6634
if test -w $cache_file; then
6635
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6636
cat confcache >$cache_file
6638
echo "not updating unwritable cache $cache_file"
6643
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6644
# Let make expand exec_prefix.
6645
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6647
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6648
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6649
# trailing colons and then remove the whole line if VPATH becomes empty
6650
# (actually we leave an empty line to preserve line numbers).
6651
if test "x$srcdir" = x.; then
6652
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6653
s/:*\$(srcdir):*/:/;
6654
s/:*\${srcdir}:*/:/;
6656
s/^\([^=]*=[ ]*\):*/\1/;
6662
DEFS=-DHAVE_CONFIG_H
6666
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
6667
# 1. Remove the extension, and $U if already installed.
6668
ac_i=`echo "$ac_i" |
6669
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6671
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6672
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6674
LIB@&t@OBJS=$ac_libobjs
6676
LTLIBOBJS=$ac_ltlibobjs
6680
: ${CONFIG_STATUS=./config.status}
6681
ac_clean_files_save=$ac_clean_files
6682
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6683
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6684
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6685
cat >$CONFIG_STATUS <<_ACEOF
6687
# Generated by $as_me.
6688
# Run this file to recreate the current configuration.
6689
# Compiler output produced by configure, useful for debugging
6690
# configure, is in config.log if it exists.
6695
SHELL=\${CONFIG_SHELL-$SHELL}
6698
cat >>$CONFIG_STATUS <<\_ACEOF
6699
## --------------------- ##
6700
## M4sh Initialization. ##
6701
## --------------------- ##
6703
# Be Bourne compatible
6704
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6707
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6708
# is contrary to our usage. Disable this feature.
6709
alias -g '${1+"$@"}'='"$@"'
6710
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6713
DUALCASE=1; export DUALCASE # for MKS sh
6715
# Support unset when possible.
6716
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6723
# Work around bugs in pre-3.0 UWIN ksh.
6724
$as_unset ENV MAIL MAILPATH
6731
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6732
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6733
LC_TELEPHONE LC_TIME
6735
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6736
eval $as_var=C; export $as_var
6742
# Required to use basename.
6743
if expr a : '\(a\)' >/dev/null 2>&1; then
6749
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6750
as_basename=basename
6756
# Name of the executable.
6757
as_me=`$as_basename "$0" ||
6758
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6759
X"$0" : 'X\(//\)$' \| \
6760
X"$0" : 'X\(/\)$' \| \
6761
. : '\(.\)' 2>/dev/null ||
6763
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6764
/^X\/\(\/\/\)$/{ s//\1/; q; }
6765
/^X\/\(\/\).*/{ s//\1/; q; }
6769
# PATH needs CR, and LINENO needs CR and PATH.
6770
# Avoid depending upon Character Ranges.
6771
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6772
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6773
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6774
as_cr_digits='0123456789'
6775
as_cr_alnum=$as_cr_Letters$as_cr_digits
6777
# The user is always right.
6778
if test "${PATH_SEPARATOR+set}" != set; then
6779
echo "#! /bin/sh" >conf$$.sh
6780
echo "exit 0" >>conf$$.sh
6782
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6793
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6794
test "x$as_lineno_1" != "x$as_lineno_2" &&
6795
test "x$as_lineno_3" = "x$as_lineno_2" || {
6796
# Find who we are. Look in the path if we contain no path at all
6799
*[\\/]* ) as_myself=$0 ;;
6800
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804
test -z "$as_dir" && as_dir=.
6805
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6810
# We did not find ourselves, most probably we were run as `sh COMMAND'
6811
# in which case we are not to be found in the path.
6812
if test "x$as_myself" = x; then
6815
if test ! -f "$as_myself"; then
6816
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6817
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6818
{ (exit 1); exit 1; }; }
6820
case $CONFIG_SHELL in
6822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6826
test -z "$as_dir" && as_dir=.
6827
for as_base in sh bash ksh sh5; do
6830
if ("$as_dir/$as_base" -c '
6833
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6834
test "x$as_lineno_1" != "x$as_lineno_2" &&
6835
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6836
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6837
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6838
CONFIG_SHELL=$as_dir/$as_base
6840
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6848
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6849
# uniformly replaced by the line number. The first 'sed' inserts a
6850
# line-number line before each line; the second 'sed' does the real
6851
# work. The second script uses 'N' to pair each line-number line
6852
# with the numbered line, and appends trailing '-' during
6853
# substitution so that $LINENO is not a special case at line end.
6854
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6855
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6856
sed '=' <$as_myself |
6861
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6864
s,^['$as_cr_digits']*\n,,
6866
chmod +x $as_me.lineno ||
6867
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6868
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6869
{ (exit 1); exit 1; }; }
6871
# Don't try to exec as it changes $[0], causing all sort of problems
6872
# (the dirname of $[0] is not the place where we might find the
6873
# original and so on. Autoconf is especially sensible to this).
6875
# Exit status is that of the last command.
6880
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6881
*c*,-n*) ECHO_N= ECHO_C='
6883
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6884
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6887
if expr a : '\(a\)' >/dev/null 2>&1; then
6893
rm -f conf$$ conf$$.exe conf$$.file
6895
if ln -s conf$$.file conf$$ 2>/dev/null; then
6896
# We could just check for DJGPP; but this test a) works b) is more generic
6897
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6898
if test -f conf$$.exe; then
6899
# Don't use ln at all; we don't have any links
6904
elif ln conf$$.file conf$$ 2>/dev/null; then
6909
rm -f conf$$ conf$$.exe conf$$.file
6911
if mkdir -p . 2>/dev/null; then
6914
test -d ./-p && rmdir ./-p
6918
as_executable_p="test -f"
6920
# Sed expression to map a string onto a valid CPP name.
6921
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6923
# Sed expression to map a string onto a valid variable name.
6924
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6928
# We need space, tab and new line, in precisely that order.
6938
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6939
# report actual input values of CONFIG_FILES etc. instead of their
6940
# values after options handling. Logging --version etc. is OK.
6944
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
6945
@%:@@%:@ Running $as_me. @%:@@%:@
6950
This file was extended by gnats $as_me 4.1.0, which was
6951
generated by GNU Autoconf 2.59. Invocation command line was
6953
CONFIG_FILES = $CONFIG_FILES
6954
CONFIG_HEADERS = $CONFIG_HEADERS
6955
CONFIG_LINKS = $CONFIG_LINKS
6956
CONFIG_COMMANDS = $CONFIG_COMMANDS
6960
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6964
# Files that config.status was made for.
6965
if test -n "$ac_config_files"; then
6966
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6969
if test -n "$ac_config_headers"; then
6970
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6973
if test -n "$ac_config_links"; then
6974
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6977
if test -n "$ac_config_commands"; then
6978
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6981
cat >>$CONFIG_STATUS <<\_ACEOF
6984
\`$as_me' instantiates files from templates according to the
6985
current configuration.
6987
Usage: $0 [OPTIONS] [FILE]...
6989
-h, --help print this help, then exit
6990
-V, --version print version number, then exit
6991
-q, --quiet do not print progress messages
6992
-d, --debug don't remove temporary files
6993
--recheck update $as_me by reconfiguring in the same conditions
6994
--file=FILE[:TEMPLATE]
6995
instantiate the configuration file FILE
6996
--header=FILE[:TEMPLATE]
6997
instantiate the configuration header FILE
6999
Configuration files:
7002
Configuration headers:
7005
Report bugs to <bug-autoconf@gnu.org>."
7008
cat >>$CONFIG_STATUS <<_ACEOF
7010
gnats config.status 4.1.0
7011
configured by $0, generated by GNU Autoconf 2.59,
7012
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7014
Copyright (C) 2003 Free Software Foundation, Inc.
7015
This config.status script is free software; the Free Software Foundation
7016
gives unlimited permission to copy, distribute and modify it."
7021
cat >>$CONFIG_STATUS <<\_ACEOF
7022
# If no file are specified by the user, then we need to provide default
7023
# value. By we need to know if files were specified by the user.
7029
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7030
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7038
*) # This is not an option, so the user has probably given explicit
7041
ac_need_defaults=false;;
7045
# Handling of the options.
7047
cat >>$CONFIG_STATUS <<\_ACEOF
7048
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7050
--version | --vers* | -V )
7051
echo "$ac_cs_version"; exit 0 ;;
7053
# Conflict between --help and --header
7054
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7055
Try \`$0 --help' for more information." >&5
7056
echo "$as_me: error: ambiguous option: $1
7057
Try \`$0 --help' for more information." >&2;}
7058
{ (exit 1); exit 1; }; };;
7059
--help | --hel | -h )
7060
echo "$ac_cs_usage"; exit 0 ;;
7061
--debug | --d* | -d )
7063
--file | --fil | --fi | --f )
7065
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7066
ac_need_defaults=false;;
7067
--header | --heade | --head | --hea )
7069
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7070
ac_need_defaults=false;;
7071
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7072
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7076
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7077
Try \`$0 --help' for more information." >&5
7078
echo "$as_me: error: unrecognized option: $1
7079
Try \`$0 --help' for more information." >&2;}
7080
{ (exit 1); exit 1; }; } ;;
7082
*) ac_config_targets="$ac_config_targets $1" ;;
7088
ac_configure_extra_args=
7090
if $ac_cs_silent; then
7092
ac_configure_extra_args="$ac_configure_extra_args --silent"
7096
cat >>$CONFIG_STATUS <<_ACEOF
7097
if \$ac_cs_recheck; then
7098
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7099
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7108
cat >>$CONFIG_STATUS <<\_ACEOF
7109
for ac_config_target in $ac_config_targets
7111
case "$ac_config_target" in
7112
# Handling of arguments.
7113
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7114
"autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
7115
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7116
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7117
{ (exit 1); exit 1; }; };;
7121
# If the user did not use the arguments to specify the items to instantiate,
7122
# then the envvar interface is used. Set only those that are not.
7123
# We use the long form for the default assignment because of an extremely
7124
# bizarre bug on SunOS 4.1.3.
7125
if $ac_need_defaults; then
7126
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7127
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7130
# Have a temporary directory for convenience. Make it in the build tree
7131
# simply because there is no reason to put it here, and in addition,
7132
# creating and moving files from /tmp can sometimes cause problems.
7133
# Create a temporary directory, and hook for its removal unless debugging.
7136
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7137
trap '{ (exit 1); exit 1; }' 1 2 13 15
7140
# Create a (secure) tmp directory for tmp files.
7143
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7144
test -n "$tmp" && test -d "$tmp"
7147
tmp=./confstat$$-$RANDOM
7148
(umask 077 && mkdir $tmp)
7151
echo "$me: cannot create a temporary directory in ." >&2
7152
{ (exit 1); exit 1; }
7157
cat >>$CONFIG_STATUS <<_ACEOF
7160
# CONFIG_FILES section.
7163
# No need to generate the scripts if there are no CONFIG_FILES.
7164
# This happens for instance when ./config.status config.h
7165
if test -n "\$CONFIG_FILES"; then
7166
# Protect against being on the right side of a sed subst in config.status.
7167
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7168
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7169
s,@SHELL@,$SHELL,;t t
7170
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7171
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7172
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7173
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7174
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7175
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7176
s,@exec_prefix@,$exec_prefix,;t t
7177
s,@prefix@,$prefix,;t t
7178
s,@program_transform_name@,$program_transform_name,;t t
7179
s,@bindir@,$bindir,;t t
7180
s,@sbindir@,$sbindir,;t t
7181
s,@libexecdir@,$libexecdir,;t t
7182
s,@datadir@,$datadir,;t t
7183
s,@sysconfdir@,$sysconfdir,;t t
7184
s,@sharedstatedir@,$sharedstatedir,;t t
7185
s,@localstatedir@,$localstatedir,;t t
7186
s,@libdir@,$libdir,;t t
7187
s,@includedir@,$includedir,;t t
7188
s,@oldincludedir@,$oldincludedir,;t t
7189
s,@infodir@,$infodir,;t t
7190
s,@mandir@,$mandir,;t t
7191
s,@build_alias@,$build_alias,;t t
7192
s,@host_alias@,$host_alias,;t t
7193
s,@target_alias@,$target_alias,;t t
7195
s,@ECHO_C@,$ECHO_C,;t t
7196
s,@ECHO_N@,$ECHO_N,;t t
7197
s,@ECHO_T@,$ECHO_T,;t t
7199
s,@PROGS@,$PROGS,;t t
7202
s,@CFLAGS@,$CFLAGS,;t t
7203
s,@LDFLAGS@,$LDFLAGS,;t t
7204
s,@CPPFLAGS@,$CPPFLAGS,;t t
7205
s,@ac_ct_CC@,$ac_ct_CC,;t t
7206
s,@EXEEXT@,$EXEEXT,;t t
7207
s,@OBJEXT@,$OBJEXT,;t t
7209
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7210
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7211
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7212
s,@RANLIB@,$RANLIB,;t t
7213
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7216
s,@LEXLIB@,$LEXLIB,;t t
7217
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7220
s,@EGREP@,$EGREP,;t t
7221
s,@ALLOCA@,$ALLOCA,;t t
7222
s,@EMACS@,$EMACS,;t t
7223
s,@lispdir@,$lispdir,;t t
7224
s,@GNATS_ALL@,$GNATS_ALL,;t t
7225
s,@GNATS_INSTALL@,$GNATS_INSTALL,;t t
7227
s,@HAVE_KERBEROS@,$HAVE_KERBEROS,;t t
7228
s,@KRBINCLUDE@,$KRBINCLUDE,;t t
7229
s,@EXTRA_OBJS@,$EXTRA_OBJS,;t t
7230
s,@GNATS_SERVICE@,$GNATS_SERVICE,;t t
7231
s,@GNATS_USER@,$GNATS_USER,;t t
7232
s,@DEFAULT_RELEASE@,$DEFAULT_RELEASE,;t t
7233
s,@DEFAULT_ORGANIZATION@,$DEFAULT_ORGANIZATION,;t t
7234
s,@SUBMITTER@,$SUBMITTER,;t t
7235
s,@DEFAULT_MAIL_AGENT@,$DEFAULT_MAIL_AGENT,;t t
7236
s,@BWEEK_START@,$BWEEK_START,;t t
7237
s,@BWEEK_END@,$BWEEK_END,;t t
7238
s,@BDAY_START@,$BDAY_START,;t t
7239
s,@BDAY_END@,$BDAY_END,;t t
7240
s,@GNATSD_USER_ACCESS_FILE@,$GNATSD_USER_ACCESS_FILE,;t t
7241
s,@GNATSD_HOST_ACCESS_FILE@,$GNATSD_HOST_ACCESS_FILE,;t t
7242
s,@GLOBAL_DB_LIST_FILE@,$GLOBAL_DB_LIST_FILE,;t t
7243
s,@GNATS_DEFAULT_DB_DIR@,$GNATS_DEFAULT_DB_DIR,;t t
7244
s,@GCC_CFLAGS@,$GCC_CFLAGS,;t t
7245
s,@SENDMAIL@,$SENDMAIL,;t t
7246
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
7247
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7252
cat >>$CONFIG_STATUS <<\_ACEOF
7253
# Split the substitutions into bite-sized pieces for seds with
7254
# small command number limits, like on Digital OSF/1 and HP-UX.
7256
ac_sed_frag=1 # Number of current file.
7257
ac_beg=1 # First line for current file.
7258
ac_end=$ac_max_sed_lines # Line after last line for current file.
7261
while $ac_more_lines; do
7262
if test $ac_beg -gt 1; then
7263
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7265
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7267
if test ! -s $tmp/subs.frag; then
7270
# The purpose of the label and of the branching condition is to
7271
# speed up the sed processing (if there are no `@' at all, there
7272
# is no need to browse any of the substitutions).
7273
# These are the two extra sed commands mentioned above.
7275
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7276
if test -z "$ac_sed_cmds"; then
7277
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7279
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7281
ac_sed_frag=`expr $ac_sed_frag + 1`
7283
ac_end=`expr $ac_end + $ac_max_sed_lines`
7286
if test -z "$ac_sed_cmds"; then
7289
fi # test -n "$CONFIG_FILES"
7292
cat >>$CONFIG_STATUS <<\_ACEOF
7293
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7294
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7296
- | *:- | *:-:* ) # input from stdin
7298
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7299
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7300
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7301
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7302
* ) ac_file_in=$ac_file.in ;;
7305
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7306
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7307
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7308
X"$ac_file" : 'X\(//\)[^/]' \| \
7309
X"$ac_file" : 'X\(//\)$' \| \
7310
X"$ac_file" : 'X\(/\)' \| \
7311
. : '\(.\)' 2>/dev/null ||
7313
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7314
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7315
/^X\(\/\/\)$/{ s//\1/; q; }
7316
/^X\(\/\).*/{ s//\1/; q; }
7318
{ if $as_mkdir_p; then
7323
while test ! -d "$as_dir"; do
7324
as_dirs="$as_dir $as_dirs"
7325
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7326
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7327
X"$as_dir" : 'X\(//\)[^/]' \| \
7328
X"$as_dir" : 'X\(//\)$' \| \
7329
X"$as_dir" : 'X\(/\)' \| \
7330
. : '\(.\)' 2>/dev/null ||
7332
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7333
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7334
/^X\(\/\/\)$/{ s//\1/; q; }
7335
/^X\(\/\).*/{ s//\1/; q; }
7338
test ! -n "$as_dirs" || mkdir $as_dirs
7339
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7340
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7341
{ (exit 1); exit 1; }; }; }
7345
if test "$ac_dir" != .; then
7346
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7347
# A "../" for each directory in $ac_dir_suffix.
7348
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7350
ac_dir_suffix= ac_top_builddir=
7354
.) # No --srcdir option. We are building in place.
7356
if test -z "$ac_top_builddir"; then
7359
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7361
[\\/]* | ?:[\\/]* ) # Absolute path.
7362
ac_srcdir=$srcdir$ac_dir_suffix;
7363
ac_top_srcdir=$srcdir ;;
7365
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7366
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7369
# Do not use `cd foo && pwd` to compute absolute paths, because
7370
# the directories may not exist.
7372
.) ac_abs_builddir="$ac_dir";;
7375
.) ac_abs_builddir=`pwd`;;
7376
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7377
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7380
case $ac_abs_builddir in
7381
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7383
case ${ac_top_builddir}. in
7384
.) ac_abs_top_builddir=$ac_abs_builddir;;
7385
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7386
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7389
case $ac_abs_builddir in
7390
.) ac_abs_srcdir=$ac_srcdir;;
7393
.) ac_abs_srcdir=$ac_abs_builddir;;
7394
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7395
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7398
case $ac_abs_builddir in
7399
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7401
case $ac_top_srcdir in
7402
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7403
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7404
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7410
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7411
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7414
# Let's still pretend it is `configure' which instantiates (i.e., don't
7415
# use $as_me), people would be surprised to read:
7416
# /* config.h. Generated by config.status. */
7417
if test x"$ac_file" = x-; then
7420
configure_input="$ac_file. "
7422
configure_input=$configure_input"Generated from `echo $ac_file_in |
7423
sed 's,.*/,,'` by configure."
7425
# First look for the input files in the build tree, otherwise in the
7427
ac_file_inputs=`IFS=:
7428
for f in $ac_file_in; do
7430
-) echo $tmp/stdin ;;
7432
# Absolute (can't be DOS-style, as IFS=:)
7433
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7434
echo "$as_me: error: cannot find input file: $f" >&2;}
7435
{ (exit 1); exit 1; }; }
7438
if test -f "$f"; then
7441
elif test -f "$srcdir/$f"; then
7446
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7447
echo "$as_me: error: cannot find input file: $f" >&2;}
7448
{ (exit 1); exit 1; }; }
7451
done` || { (exit 1); exit 1; }
7453
if test x"$ac_file" != x-; then
7454
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7455
echo "$as_me: creating $ac_file" >&6;}
7459
cat >>$CONFIG_STATUS <<_ACEOF
7463
cat >>$CONFIG_STATUS <<\_ACEOF
7465
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7466
s,@configure_input@,$configure_input,;t t
7467
s,@srcdir@,$ac_srcdir,;t t
7468
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7469
s,@top_srcdir@,$ac_top_srcdir,;t t
7470
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7471
s,@builddir@,$ac_builddir,;t t
7472
s,@abs_builddir@,$ac_abs_builddir,;t t
7473
s,@top_builddir@,$ac_top_builddir,;t t
7474
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7475
s,@INSTALL@,$ac_INSTALL,;t t
7476
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7478
if test x"$ac_file" != x-; then
7479
mv $tmp/out $ac_file
7487
cat >>$CONFIG_STATUS <<\_ACEOF
7490
# CONFIG_HEADER section.
7493
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7494
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7496
# ac_d sets the value in "#define NAME VALUE" lines.
7497
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7498
ac_dB='[ ].*$,\1#\2'
7501
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7502
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7503
ac_uB='$,\1#\2define\3'
7507
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7508
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7510
- | *:- | *:-:* ) # input from stdin
7512
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7513
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7514
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7515
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7516
* ) ac_file_in=$ac_file.in ;;
7519
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7520
echo "$as_me: creating $ac_file" >&6;}
7522
# First look for the input files in the build tree, otherwise in the
7524
ac_file_inputs=`IFS=:
7525
for f in $ac_file_in; do
7527
-) echo $tmp/stdin ;;
7529
# Absolute (can't be DOS-style, as IFS=:)
7530
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7531
echo "$as_me: error: cannot find input file: $f" >&2;}
7532
{ (exit 1); exit 1; }; }
7533
# Do quote $f, to prevent DOS paths from being IFS'd.
7536
if test -f "$f"; then
7539
elif test -f "$srcdir/$f"; then
7544
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7545
echo "$as_me: error: cannot find input file: $f" >&2;}
7546
{ (exit 1); exit 1; }; }
7549
done` || { (exit 1); exit 1; }
7550
# Remove the trailing spaces.
7551
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7555
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7556
# `conftest.undefs', that substitutes the proper values into
7557
# config.h.in to produce config.h. The first handles `#define'
7558
# templates, and the second `#undef' templates.
7559
# And first: Protect against being on the right side of a sed subst in
7560
# config.status. Protect against being in an unquoted here document
7562
rm -f conftest.defines conftest.undefs
7563
# Using a here document instead of a string reduces the quoting nightmare.
7564
# Putting comments in sed scripts is not portable.
7566
# `end' is used to avoid that the second main sed command (meant for
7567
# 0-ary CPP macros) applies to n-ary macro definitions.
7568
# See the Autoconf documentation for `clear'.
7569
cat >confdef2sed.sed <<\_ACEOF
7574
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7576
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7579
# If some macros were called several times there might be several times
7580
# the same #defines, which is useless. Nevertheless, we may not want to
7581
# sort them, since we want the *last* AC-DEFINE to be honored.
7582
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7583
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7584
rm -f confdef2sed.sed
7586
# This sed command replaces #undef with comments. This is necessary, for
7587
# example, in the case of _POSIX_SOURCE, which is predefined and required
7588
# on some systems where configure will not decide to define it.
7589
cat >>conftest.undefs <<\_ACEOF
7590
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7593
# Break up conftest.defines because some shells have a limit on the size
7594
# of here documents, and old seds have small limits too (100 cmds).
7595
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7596
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7597
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7598
echo ' :' >>$CONFIG_STATUS
7600
while grep . conftest.defines >/dev/null
7602
# Write a limited-size here document to $tmp/defines.sed.
7603
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7604
# Speed up: don't consider the non `#define' lines.
7605
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7606
# Work around the forget-to-reset-the-flag bug.
7607
echo 't clr' >>$CONFIG_STATUS
7608
echo ': clr' >>$CONFIG_STATUS
7609
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7611
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7615
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7616
rm -f conftest.defines
7617
mv conftest.tail conftest.defines
7619
rm -f conftest.defines
7620
echo ' fi # grep' >>$CONFIG_STATUS
7621
echo >>$CONFIG_STATUS
7623
# Break up conftest.undefs because some shells have a limit on the size
7624
# of here documents, and old seds have small limits too (100 cmds).
7625
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7627
while grep . conftest.undefs >/dev/null
7629
# Write a limited-size here document to $tmp/undefs.sed.
7630
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7631
# Speed up: don't consider the non `#undef'
7632
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7633
# Work around the forget-to-reset-the-flag bug.
7634
echo 't clr' >>$CONFIG_STATUS
7635
echo ': clr' >>$CONFIG_STATUS
7636
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7638
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7642
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7643
rm -f conftest.undefs
7644
mv conftest.tail conftest.undefs
7646
rm -f conftest.undefs
7648
cat >>$CONFIG_STATUS <<\_ACEOF
7649
# Let's still pretend it is `configure' which instantiates (i.e., don't
7650
# use $as_me), people would be surprised to read:
7651
# /* config.h. Generated by config.status. */
7652
if test x"$ac_file" = x-; then
7653
echo "/* Generated by configure. */" >$tmp/config.h
7655
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7657
cat $tmp/in >>$tmp/config.h
7659
if test x"$ac_file" != x-; then
7660
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7661
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7662
echo "$as_me: $ac_file is unchanged" >&6;}
7664
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7665
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7666
X"$ac_file" : 'X\(//\)[^/]' \| \
7667
X"$ac_file" : 'X\(//\)$' \| \
7668
X"$ac_file" : 'X\(/\)' \| \
7669
. : '\(.\)' 2>/dev/null ||
7671
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7672
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7673
/^X\(\/\/\)$/{ s//\1/; q; }
7674
/^X\(\/\).*/{ s//\1/; q; }
7676
{ if $as_mkdir_p; then
7681
while test ! -d "$as_dir"; do
7682
as_dirs="$as_dir $as_dirs"
7683
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7684
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7685
X"$as_dir" : 'X\(//\)[^/]' \| \
7686
X"$as_dir" : 'X\(//\)$' \| \
7687
X"$as_dir" : 'X\(/\)' \| \
7688
. : '\(.\)' 2>/dev/null ||
7690
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7691
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7692
/^X\(\/\/\)$/{ s//\1/; q; }
7693
/^X\(\/\).*/{ s//\1/; q; }
7696
test ! -n "$as_dirs" || mkdir $as_dirs
7697
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7698
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7699
{ (exit 1); exit 1; }; }; }
7702
mv $tmp/config.h $ac_file
7711
cat >>$CONFIG_STATUS <<\_ACEOF
7713
{ (exit 0); exit 0; }
7715
chmod +x $CONFIG_STATUS
7716
ac_clean_files=$ac_clean_files_save
7719
# configure is writing to config.log, and then calls config.status.
7720
# config.status does its own redirection, appending to config.log.
7721
# Unfortunately, on DOS this fails, as config.log is still kept open
7722
# by configure, so config.status won't be able to write to it; its
7723
# output is simply discarded. So we exec the FD to /dev/null,
7724
# effectively closing config.log, so it can be properly (re)opened and
7725
# appended to by config.status. When coming back to configure, we
7726
# need to make the FD available again.
7727
if test "$no_create" != yes; then
7729
ac_config_status_args=
7730
test "$silent" = yes &&
7731
ac_config_status_args="$ac_config_status_args --quiet"
7733
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7735
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7736
# would make configure fail if this is the last instruction.
7737
$ac_cs_success || { (exit 1); exit 1; }