2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6
# Massachusetts Institute of Technology.
9
# Copyright (C) 2003 Free Software Foundation, Inc.
10
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12
## --------------------- ##
13
## M4sh Initialization. ##
14
## --------------------- ##
16
# Be Bourne compatible
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
23
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
DUALCASE=1; export DUALCASE # for MKS sh
28
# Support unset when possible.
29
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36
# Work around bugs in pre-3.0 UWIN ksh.
37
$as_unset ENV MAIL MAILPATH
44
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49
eval $as_var=C; export $as_var
55
# Required to use basename.
56
if expr a : '\(a\)' >/dev/null 2>&1; then
62
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69
# Name of the executable.
70
as_me=`$as_basename "$0" ||
71
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72
X"$0" : 'X\(//\)$' \| \
73
X"$0" : 'X\(/\)$' \| \
74
. : '\(.\)' 2>/dev/null ||
76
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77
/^X\/\(\/\/\)$/{ s//\1/; q; }
78
/^X\/\(\/\).*/{ s//\1/; q; }
82
# PATH needs CR, and LINENO needs CR and PATH.
83
# Avoid depending upon Character Ranges.
84
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87
as_cr_digits='0123456789'
88
as_cr_alnum=$as_cr_Letters$as_cr_digits
90
# The user is always right.
91
if test "${PATH_SEPARATOR+set}" != set; then
92
echo "#! /bin/sh" >conf$$.sh
93
echo "exit 0" >>conf$$.sh
95
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107
test "x$as_lineno_1" != "x$as_lineno_2" &&
108
test "x$as_lineno_3" = "x$as_lineno_2" || {
109
# Find who we are. Look in the path if we contain no path at all
112
*[\\/]* ) as_myself=$0 ;;
113
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117
test -z "$as_dir" && as_dir=.
118
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123
# We did not find ourselves, most probably we were run as `sh COMMAND'
124
# in which case we are not to be found in the path.
125
if test "x$as_myself" = x; then
128
if test ! -f "$as_myself"; then
129
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130
{ (exit 1); exit 1; }; }
132
case $CONFIG_SHELL in
134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138
test -z "$as_dir" && as_dir=.
139
for as_base in sh bash ksh sh5; do
142
if ("$as_dir/$as_base" -c '
145
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146
test "x$as_lineno_1" != "x$as_lineno_2" &&
147
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150
CONFIG_SHELL=$as_dir/$as_base
152
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161
# uniformly replaced by the line number. The first 'sed' inserts a
162
# line-number line before each line; the second 'sed' does the real
163
# work. The second script uses 'N' to pair each line-number line
164
# with the numbered line, and appends trailing '-' during
165
# substitution so that $LINENO is not a special case at line end.
166
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168
sed '=' <$as_myself |
173
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176
s,^['$as_cr_digits']*\n,,
178
chmod +x $as_me.lineno ||
179
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180
{ (exit 1); exit 1; }; }
182
# Don't try to exec as it changes $[0], causing all sort of problems
183
# (the dirname of $[0] is not the place where we might find the
184
# original and so on. Autoconf is especially sensible to this).
186
# Exit status is that of the last command.
191
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192
*c*,-n*) ECHO_N= ECHO_C='
194
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198
if expr a : '\(a\)' >/dev/null 2>&1; then
204
rm -f conf$$ conf$$.exe conf$$.file
206
if ln -s conf$$.file conf$$ 2>/dev/null; then
207
# We could just check for DJGPP; but this test a) works b) is more generic
208
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209
if test -f conf$$.exe; then
210
# Don't use ln at all; we don't have any links
215
elif ln conf$$.file conf$$ 2>/dev/null; then
220
rm -f conf$$ conf$$.exe conf$$.file
222
if mkdir -p . 2>/dev/null; then
225
test -d ./-p && rmdir ./-p
229
as_executable_p="test -f"
231
# Sed expression to map a string onto a valid CPP name.
232
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234
# Sed expression to map a string onto a valid variable name.
235
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239
# We need space, tab and new line, in precisely that order.
249
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250
# so uname gets run too.
251
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258
ac_default_prefix=/usr/local
259
ac_config_libobj_dir=.
264
SHELL=${CONFIG_SHELL-/bin/sh}
266
# Maximum number of lines to put in a shell here document.
267
# This variable seems obsolete. It should probably be removed, and
268
# only ac_max_sed_lines should be used.
269
: ${ac_max_here_lines=38}
271
# Identity of this package.
278
ac_unique_file="prof_parse.c"
279
# Factoring default headers for most tests.
280
ac_includes_default="\
283
# include <sys/types.h>
286
# include <sys/stat.h>
297
# if !STDC_HEADERS && HAVE_MEMORY_H
303
# include <strings.h>
306
# include <inttypes.h>
316
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 EXTRA_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT HAVE_GCC CPP LD KRB4_INCLUDES KRB4_LIBPATH KRB4_LIB KRB4_DEPLIB KRB_ERR_H_DEP DES425_DEPLIB DES425_LIB compile_et COM_ERR_VERSION SS_LIB SS_VERSION DB_HEADER DB_LIB DB_VERSION DB_HEADER_VERSION KDB5_DB_LIB HESIOD_DEFS HESIOD_LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CONFIG_RELTOPDIR subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os krb5_cv_host acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS EGREP AWK TCL_INCLUDES TCL_LIBS TCL_LIBPATH TCL_RPATH TCL_MAYBE_RPATH DO_TCL OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT LN_S RANLIB ac_ct_RANLIB ARCHIVE ARADD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PERL LIBLIST LIBLINKS MAKE_SHLIB_COMMAND SHLIB_EXPFLAGS SHLIB_EXPORT_FILE_DEP INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT PFLIBEXT LIBINSTLIST KRB5_RUN_ENV LIBOBJS LTLIBOBJS'
317
ac_subst_files='lib_frag libobj_frag'
319
# Initialize some variables set by options.
321
ac_init_version=false
322
# The variables have the same names as the options, with
323
# dashes changed to underlines.
331
program_transform_name=s,x,x,
339
# Installation directory options.
340
# These are left unexpanded so users can "make install exec_prefix=/foo"
341
# and all the variables that are supposed to be based on exec_prefix
342
# by default will actually change.
343
# Use braces instead of parens because sh, perl, etc. also accept them.
344
bindir='${exec_prefix}/bin'
345
sbindir='${exec_prefix}/sbin'
346
libexecdir='${exec_prefix}/libexec'
347
datadir='${prefix}/share'
348
sysconfdir='${prefix}/etc'
349
sharedstatedir='${prefix}/com'
350
localstatedir='${prefix}/var'
351
libdir='${exec_prefix}/lib'
352
includedir='${prefix}/include'
353
oldincludedir='/usr/include'
354
infodir='${prefix}/info'
355
mandir='${prefix}/man'
360
# If the previous option needs an argument, assign it.
361
if test -n "$ac_prev"; then
362
eval "$ac_prev=\$ac_option"
367
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
# Accept the important Cygnus configure options, so we can diagnose typos.
373
-bindir | --bindir | --bindi | --bind | --bin | --bi)
375
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378
-build | --build | --buil | --bui | --bu)
379
ac_prev=build_alias ;;
380
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
381
build_alias=$ac_optarg ;;
383
-cache-file | --cache-file | --cache-fil | --cache-fi \
384
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385
ac_prev=cache_file ;;
386
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388
cache_file=$ac_optarg ;;
391
cache_file=config.cache ;;
393
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397
datadir=$ac_optarg ;;
399
-disable-* | --disable-*)
400
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401
# Reject names that are not valid shell variable names.
402
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
404
{ (exit 1); exit 1; }; }
405
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406
eval "enable_$ac_feature=no" ;;
408
-enable-* | --enable-*)
409
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410
# Reject names that are not valid shell variable names.
411
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
413
{ (exit 1); exit 1; }; }
414
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419
eval "enable_$ac_feature='$ac_optarg'" ;;
421
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423
| --exec | --exe | --ex)
424
ac_prev=exec_prefix ;;
425
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427
| --exec=* | --exe=* | --ex=*)
428
exec_prefix=$ac_optarg ;;
430
-gas | --gas | --ga | --g)
431
# Obsolete; use --with-gas.
434
-help | --help | --hel | --he | -h)
436
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437
ac_init_help=recursive ;;
438
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439
ac_init_help=short ;;
441
-host | --host | --hos | --ho)
442
ac_prev=host_alias ;;
443
-host=* | --host=* | --hos=* | --ho=*)
444
host_alias=$ac_optarg ;;
446
-includedir | --includedir | --includedi | --included | --include \
447
| --includ | --inclu | --incl | --inc)
448
ac_prev=includedir ;;
449
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450
| --includ=* | --inclu=* | --incl=* | --inc=*)
451
includedir=$ac_optarg ;;
453
-infodir | --infodir | --infodi | --infod | --info | --inf)
455
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456
infodir=$ac_optarg ;;
458
-libdir | --libdir | --libdi | --libd)
460
-libdir=* | --libdir=* | --libdi=* | --libd=*)
463
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464
| --libexe | --libex | --libe)
465
ac_prev=libexecdir ;;
466
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467
| --libexe=* | --libex=* | --libe=*)
468
libexecdir=$ac_optarg ;;
470
-localstatedir | --localstatedir | --localstatedi | --localstated \
471
| --localstate | --localstat | --localsta | --localst \
472
| --locals | --local | --loca | --loc | --lo)
473
ac_prev=localstatedir ;;
474
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
476
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477
localstatedir=$ac_optarg ;;
479
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485
# Obsolete; use --without-fp.
488
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
489
| --no-cr | --no-c | -n)
492
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
493
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498
| --oldin | --oldi | --old | --ol | --o)
499
ac_prev=oldincludedir ;;
500
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503
oldincludedir=$ac_optarg ;;
505
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510
-program-prefix | --program-prefix | --program-prefi | --program-pref \
511
| --program-pre | --program-pr | --program-p)
512
ac_prev=program_prefix ;;
513
-program-prefix=* | --program-prefix=* | --program-prefi=* \
514
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515
program_prefix=$ac_optarg ;;
517
-program-suffix | --program-suffix | --program-suffi | --program-suff \
518
| --program-suf | --program-su | --program-s)
519
ac_prev=program_suffix ;;
520
-program-suffix=* | --program-suffix=* | --program-suffi=* \
521
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522
program_suffix=$ac_optarg ;;
524
-program-transform-name | --program-transform-name \
525
| --program-transform-nam | --program-transform-na \
526
| --program-transform-n | --program-transform- \
527
| --program-transform | --program-transfor \
528
| --program-transfo | --program-transf \
529
| --program-trans | --program-tran \
530
| --progr-tra | --program-tr | --program-t)
531
ac_prev=program_transform_name ;;
532
-program-transform-name=* | --program-transform-name=* \
533
| --program-transform-nam=* | --program-transform-na=* \
534
| --program-transform-n=* | --program-transform-=* \
535
| --program-transform=* | --program-transfor=* \
536
| --program-transfo=* | --program-transf=* \
537
| --program-trans=* | --program-tran=* \
538
| --progr-tra=* | --program-tr=* | --program-t=*)
539
program_transform_name=$ac_optarg ;;
541
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
542
| -silent | --silent | --silen | --sile | --sil)
545
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549
sbindir=$ac_optarg ;;
551
-sharedstatedir | --sharedstatedir | --sharedstatedi \
552
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553
| --sharedst | --shareds | --shared | --share | --shar \
555
ac_prev=sharedstatedir ;;
556
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560
sharedstatedir=$ac_optarg ;;
562
-site | --site | --sit)
564
-site=* | --site=* | --sit=*)
567
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573
| --syscon | --sysco | --sysc | --sys | --sy)
574
ac_prev=sysconfdir ;;
575
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577
sysconfdir=$ac_optarg ;;
579
-target | --target | --targe | --targ | --tar | --ta | --t)
580
ac_prev=target_alias ;;
581
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582
target_alias=$ac_optarg ;;
584
-v | -verbose | --verbose | --verbos | --verbo | --verb)
587
-version | --version | --versio | --versi | --vers | -V)
591
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592
# Reject names that are not valid shell variable names.
593
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594
{ echo "$as_me: error: invalid package name: $ac_package" >&2
595
{ (exit 1); exit 1; }; }
596
ac_package=`echo $ac_package| sed 's/-/_/g'`
598
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601
eval "with_$ac_package='$ac_optarg'" ;;
603
-without-* | --without-*)
604
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605
# Reject names that are not valid shell variable names.
606
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607
{ echo "$as_me: error: invalid package name: $ac_package" >&2
608
{ (exit 1); exit 1; }; }
609
ac_package=`echo $ac_package | sed 's/-/_/g'`
610
eval "with_$ac_package=no" ;;
613
# Obsolete; use --with-x.
616
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617
| --x-incl | --x-inc | --x-in | --x-i)
618
ac_prev=x_includes ;;
619
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621
x_includes=$ac_optarg ;;
623
-x-libraries | --x-libraries | --x-librarie | --x-librari \
624
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625
ac_prev=x_libraries ;;
626
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628
x_libraries=$ac_optarg ;;
630
-*) { echo "$as_me: error: unrecognized option: $ac_option
631
Try \`$0 --help' for more information." >&2
632
{ (exit 1); exit 1; }; }
636
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637
# Reject names that are not valid shell variable names.
638
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640
{ (exit 1); exit 1; }; }
641
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642
eval "$ac_envvar='$ac_optarg'"
646
# FIXME: should be removed in autoconf 3.0.
647
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656
if test -n "$ac_prev"; then
657
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658
{ echo "$as_me: error: missing argument to $ac_option" >&2
659
{ (exit 1); exit 1; }; }
662
# Be sure to have absolute paths.
663
for ac_var in exec_prefix prefix
665
eval ac_val=$`echo $ac_var`
667
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669
{ (exit 1); exit 1; }; };;
673
# Be sure to have absolute paths.
674
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675
localstatedir libdir includedir oldincludedir infodir mandir
677
eval ac_val=$`echo $ac_var`
679
[\\/$]* | ?:[\\/]* ) ;;
680
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681
{ (exit 1); exit 1; }; };;
685
# There might be people who depend on the old broken behavior: `$host'
686
# used to hold the argument of --host etc.
687
# FIXME: To remove some day.
692
# FIXME: To remove some day.
693
if test "x$host_alias" != x; then
694
if test "x$build_alias" = x; then
695
cross_compiling=maybe
696
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697
If a cross compiler is detected then cross compile mode will be used." >&2
698
elif test "x$build_alias" != "x$host_alias"; then
704
test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
test "$silent" = yes && exec 6>/dev/null
709
# Find the source files, if location was not specified.
710
if test -z "$srcdir"; then
711
ac_srcdir_defaulted=yes
712
# Try the directory containing this script, then its parent.
713
ac_confdir=`(dirname "$0") 2>/dev/null ||
714
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715
X"$0" : 'X\(//\)[^/]' \| \
716
X"$0" : 'X\(//\)$' \| \
717
X"$0" : 'X\(/\)' \| \
718
. : '\(.\)' 2>/dev/null ||
720
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
722
/^X\(\/\/\)$/{ s//\1/; q; }
723
/^X\(\/\).*/{ s//\1/; q; }
726
if test ! -r $srcdir/$ac_unique_file; then
730
ac_srcdir_defaulted=no
732
if test ! -r $srcdir/$ac_unique_file; then
733
if test "$ac_srcdir_defaulted" = yes; then
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735
{ (exit 1); exit 1; }; }
737
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738
{ (exit 1); exit 1; }; }
741
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743
{ (exit 1); exit 1; }; }
744
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745
ac_env_build_alias_set=${build_alias+set}
746
ac_env_build_alias_value=$build_alias
747
ac_cv_env_build_alias_set=${build_alias+set}
748
ac_cv_env_build_alias_value=$build_alias
749
ac_env_host_alias_set=${host_alias+set}
750
ac_env_host_alias_value=$host_alias
751
ac_cv_env_host_alias_set=${host_alias+set}
752
ac_cv_env_host_alias_value=$host_alias
753
ac_env_target_alias_set=${target_alias+set}
754
ac_env_target_alias_value=$target_alias
755
ac_cv_env_target_alias_set=${target_alias+set}
756
ac_cv_env_target_alias_value=$target_alias
757
ac_env_CC_set=${CC+set}
759
ac_cv_env_CC_set=${CC+set}
760
ac_cv_env_CC_value=$CC
761
ac_env_CFLAGS_set=${CFLAGS+set}
762
ac_env_CFLAGS_value=$CFLAGS
763
ac_cv_env_CFLAGS_set=${CFLAGS+set}
764
ac_cv_env_CFLAGS_value=$CFLAGS
765
ac_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_env_LDFLAGS_value=$LDFLAGS
767
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768
ac_cv_env_LDFLAGS_value=$LDFLAGS
769
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_env_CPPFLAGS_value=$CPPFLAGS
771
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773
ac_env_CPP_set=${CPP+set}
774
ac_env_CPP_value=$CPP
775
ac_cv_env_CPP_set=${CPP+set}
776
ac_cv_env_CPP_value=$CPP
777
ac_env_LD_set=${LD+set}
779
ac_cv_env_LD_set=${LD+set}
780
ac_cv_env_LD_value=$LD
781
ac_env_SS_LIB_set=${SS_LIB+set}
782
ac_env_SS_LIB_value=$SS_LIB
783
ac_cv_env_SS_LIB_set=${SS_LIB+set}
784
ac_cv_env_SS_LIB_value=$SS_LIB
785
ac_env_DB_HEADER_set=${DB_HEADER+set}
786
ac_env_DB_HEADER_value=$DB_HEADER
787
ac_cv_env_DB_HEADER_set=${DB_HEADER+set}
788
ac_cv_env_DB_HEADER_value=$DB_HEADER
789
ac_env_DB_LIB_set=${DB_LIB+set}
790
ac_env_DB_LIB_value=$DB_LIB
791
ac_cv_env_DB_LIB_set=${DB_LIB+set}
792
ac_cv_env_DB_LIB_value=$DB_LIB
795
# Report the --help message.
797
if test "$ac_init_help" = "long"; then
798
# Omit some internal or obsolete options to make the list less imposing.
799
# This message is too long to be a string in the A/UX 3.1 sh.
801
\`configure' configures this package to adapt to many kinds of systems.
803
Usage: $0 [OPTION]... [VAR=VALUE]...
805
To assign environment variables (e.g., CC, CFLAGS...), specify them as
806
VAR=VALUE. See below for descriptions of some of the useful variables.
808
Defaults for the options are specified in brackets.
811
-h, --help display this help and exit
812
--help=short display options specific to this package
813
--help=recursive display the short help of all the included packages
814
-V, --version display version information and exit
815
-q, --quiet, --silent do not print \`checking...' messages
816
--cache-file=FILE cache test results in FILE [disabled]
817
-C, --config-cache alias for \`--cache-file=config.cache'
818
-n, --no-create do not create output files
819
--srcdir=DIR find the sources in DIR [configure dir or \`..']
824
Installation directories:
825
--prefix=PREFIX install architecture-independent files in PREFIX
827
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
830
By default, \`make install' will install all the files in
831
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
832
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
833
for instance \`--prefix=\$HOME'.
835
For better control, use the options below.
837
Fine tuning of the installation directories:
838
--bindir=DIR user executables [EPREFIX/bin]
839
--sbindir=DIR system admin executables [EPREFIX/sbin]
840
--libexecdir=DIR program executables [EPREFIX/libexec]
841
--datadir=DIR read-only architecture-independent data [PREFIX/share]
842
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
843
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
844
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
845
--libdir=DIR object code libraries [EPREFIX/lib]
846
--includedir=DIR C header files [PREFIX/include]
847
--oldincludedir=DIR C header files for non-gcc [/usr/include]
848
--infodir=DIR info documentation [PREFIX/info]
849
--mandir=DIR man documentation [PREFIX/man]
855
--program-prefix=PREFIX prepend PREFIX to installed program names
856
--program-suffix=SUFFIX append SUFFIX to installed program names
857
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
860
--build=BUILD configure for building on BUILD [guessed]
861
--host=HOST cross-compile to build programs to run on HOST [BUILD]
865
if test -n "$ac_init_help"; then
870
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872
--enable-dns-for-realm enable DNS lookups of Kerberos realm names
873
--enable-maintainer-mode
874
enable rebuilding of source files, Makefiles, etc
875
--disable-delayed-initialization
876
initialize library code when loaded [delay until
878
--disable-thread-support
879
don't enable thread support [enabled]
880
--enable-static build static libraries [disabled for most
882
--disable-static don't build static libraries
883
--enable-shared build shared libraries [enabled for most
885
--disable-shared don't build shared libraries
886
--enable-profiled build profiled libraries [disabled]
889
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
890
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
891
--without-krb4 don't include Kerberos V4 backwards compatibility
892
--with-krb4 use V4 libraries included with V5 (default)
893
--with-krb4=KRB4DIR use preinstalled V4 libraries
894
--with-system-et use system compile_et and -lcom_err [default:
895
build and install a local version]
896
--with-system-ss use system -lss and mk_cmds [private version]
897
--with-system-db use system Berkeley db [private version]
898
--with-netlib=LIBS use user defined resolver library
899
--with-hesiod=path compile with hesiod support [omitted]
900
--with-tcl=path where Tcl resides
902
Some influential environment variables:
903
CC C compiler command
904
CFLAGS C compiler flags
905
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906
nonstandard directory <lib dir>
907
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908
headers in a nonstandard directory <include dir>
910
LD linker command [CC]
911
SS_LIB system libraries for 'ss' package [-lss]
912
DB_HEADER header file for system Berkeley db package [db.h]
913
DB_LIB library for system Berkeley db package [-ldb]
915
Use these variables to override the choices made by `configure' or to help
916
it to find libraries and programs with nonstandard names/locations.
921
if test "$ac_init_help" = "recursive"; then
922
# If there are subdirs, report their specific --help.
924
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
test -d $ac_dir || continue
928
if test "$ac_dir" != .; then
929
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930
# A "../" for each directory in $ac_dir_suffix.
931
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933
ac_dir_suffix= ac_top_builddir=
937
.) # No --srcdir option. We are building in place.
939
if test -z "$ac_top_builddir"; then
942
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944
[\\/]* | ?:[\\/]* ) # Absolute path.
945
ac_srcdir=$srcdir$ac_dir_suffix;
946
ac_top_srcdir=$srcdir ;;
948
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
ac_top_srcdir=$ac_top_builddir$srcdir ;;
952
# Do not use `cd foo && pwd` to compute absolute paths, because
953
# the directories may not exist.
955
.) ac_abs_builddir="$ac_dir";;
958
.) ac_abs_builddir=`pwd`;;
959
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
*) ac_abs_builddir=`pwd`/"$ac_dir";;
963
case $ac_abs_builddir in
964
.) ac_abs_top_builddir=${ac_top_builddir}.;;
966
case ${ac_top_builddir}. in
967
.) ac_abs_top_builddir=$ac_abs_builddir;;
968
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972
case $ac_abs_builddir in
973
.) ac_abs_srcdir=$ac_srcdir;;
976
.) ac_abs_srcdir=$ac_abs_builddir;;
977
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981
case $ac_abs_builddir in
982
.) ac_abs_top_srcdir=$ac_top_srcdir;;
984
case $ac_top_srcdir in
985
.) ac_abs_top_srcdir=$ac_abs_builddir;;
986
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992
# Check for guested configure; otherwise get Cygnus style configure.
993
if test -f $ac_srcdir/configure.gnu; then
995
$SHELL $ac_srcdir/configure.gnu --help=recursive
996
elif test -f $ac_srcdir/configure; then
998
$SHELL $ac_srcdir/configure --help=recursive
999
elif test -f $ac_srcdir/configure.ac ||
1000
test -f $ac_srcdir/configure.in; then
1002
$ac_configure --help
1004
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010
test -n "$ac_init_help" && exit 0
1011
if $ac_init_version; then
1014
Copyright (C) 2003 Free Software Foundation, Inc.
1015
This configure script is free software; the Free Software Foundation
1016
gives unlimited permission to copy, distribute and modify it.
1018
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1019
Massachusetts Institute of Technology.
1026
This file contains any messages produced by compilers while
1027
running configure, to aid debugging if configure makes a mistake.
1029
It was created by $as_me, which was
1030
generated by GNU Autoconf 2.59. Invocation command line was
1041
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1047
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1050
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1064
test -z "$as_dir" && as_dir=.
1065
echo "PATH: $as_dir"
1080
# Keep a trace of the command line.
1081
# Strip out --no-create and --no-recursion so they do not pile up.
1082
# Strip out --silent because we don't want to record it for future runs.
1083
# Also quote any args containing shell meta-characters.
1084
# Make two passes to allow for proper duplicate-argument suppression.
1089
ac_must_keep_next=false
1095
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097
| -silent | --silent | --silen | --sile | --sil)
1099
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1105
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106
if test $ac_must_keep_next = true; then
1107
ac_must_keep_next=false # Got value, back to normal.
1110
*=* | --config-cache | -C | -disable-* | --disable-* \
1111
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113
| -with-* | --with-* | -without-* | --without-* | --x)
1114
case "$ac_configure_args0 " in
1115
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118
-* ) ac_must_keep_next=true ;;
1121
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122
# Get rid of the leading space.
1128
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1131
# When interrupted or exit'd, cleanup temporary files, and complete
1132
# config.log. We remove comments because anyway the quotes in there
1133
# would cause problems or look ugly.
1134
# WARNING: Be sure not to use single quotes in there, as some shells,
1135
# such as our DU 5.0 friend, will then `close' the trap.
1136
trap 'exit_status=$?
1137
# Save into config.log some information that might help in debugging.
1142
## ---------------- ##
1143
## Cache variables. ##
1144
## ---------------- ##
1147
# The following way of writing the cache mishandles newlines in values,
1150
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1158
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1165
## ----------------- ##
1166
## Output variables. ##
1167
## ----------------- ##
1170
for ac_var in $ac_subst_vars
1172
eval ac_val=$`echo $ac_var`
1173
echo "$ac_var='"'"'$ac_val'"'"'"
1177
if test -n "$ac_subst_files"; then
1184
for ac_var in $ac_subst_files
1186
eval ac_val=$`echo $ac_var`
1187
echo "$ac_var='"'"'$ac_val'"'"'"
1192
if test -s confdefs.h; then
1199
sed "/^$/d" confdefs.h | sort
1202
test "$ac_signal" != 0 &&
1203
echo "$as_me: caught signal $ac_signal"
1204
echo "$as_me: exit $exit_status"
1206
rm -f core *.core &&
1207
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210
for ac_signal in 1 2 13 15; do
1211
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1216
rm -rf conftest* confdefs.h
1217
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220
# Predefined preprocessor variables.
1222
cat >>confdefs.h <<_ACEOF
1223
#define PACKAGE_NAME "$PACKAGE_NAME"
1227
cat >>confdefs.h <<_ACEOF
1228
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1232
cat >>confdefs.h <<_ACEOF
1233
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1237
cat >>confdefs.h <<_ACEOF
1238
#define PACKAGE_STRING "$PACKAGE_STRING"
1242
cat >>confdefs.h <<_ACEOF
1243
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1247
# Let the site file select an alternate cache file if it wants to.
1248
# Prefer explicitly selected file to automatically selected ones.
1249
if test -z "$CONFIG_SITE"; then
1250
if test "x$prefix" != xNONE; then
1251
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1253
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256
for ac_site_file in $CONFIG_SITE; do
1257
if test -r "$ac_site_file"; then
1258
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259
echo "$as_me: loading site script $ac_site_file" >&6;}
1260
sed 's/^/| /' "$ac_site_file" >&5
1265
if test -r "$cache_file"; then
1266
# Some versions of bash will fail to source /dev/null (special
1267
# files actually), so we avoid doing that.
1268
if test -f "$cache_file"; then
1269
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270
echo "$as_me: loading cache $cache_file" >&6;}
1272
[\\/]* | ?:[\\/]* ) . $cache_file;;
1273
*) . ./$cache_file;;
1277
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278
echo "$as_me: creating cache $cache_file" >&6;}
1282
# Check that the precious variables saved in the cache have kept the same
1284
ac_cache_corrupted=false
1285
for ac_var in `(set) 2>&1 |
1286
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288
eval ac_new_set=\$ac_env_${ac_var}_set
1289
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290
eval ac_new_val="\$ac_env_${ac_var}_value"
1291
case $ac_old_set,$ac_new_set in
1293
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295
ac_cache_corrupted=: ;;
1297
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299
ac_cache_corrupted=: ;;
1302
if test "x$ac_old_val" != "x$ac_new_val"; then
1303
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306
echo "$as_me: former value: $ac_old_val" >&2;}
1307
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308
echo "$as_me: current value: $ac_new_val" >&2;}
1309
ac_cache_corrupted=:
1312
# Pass precious variables to config.status.
1313
if test "$ac_new_set" = set; then
1315
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317
*) ac_arg=$ac_var=$ac_new_val ;;
1319
case " $ac_configure_args " in
1320
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325
if $ac_cache_corrupted; then
1326
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330
{ (exit 1); exit 1; }; }
1334
ac_cpp='$CPP $CPPFLAGS'
1335
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359
for x in . .. ../.. ../../.. ../../../..; do
1360
if test "x$ac_reltopdir" = "x" -a -r "$srcdir/$x/aclocal.m4" ; then
1364
if test "x$ac_reltopdir" = "x"; then
1365
echo "Configure could not determine the relative topdir"
1369
ac_topdir=$srcdir/$ac_reltopdir
1370
ac_config_fragdir=$ac_reltopdir/config
1371
krb5_pre_in=$ac_config_fragdir/pre.in
1372
krb5_post_in=$ac_config_fragdir/post.in
1373
# echo "Looking for $srcdir/$ac_config_fragdir"
1374
if test -d "$srcdir/$ac_config_fragdir"; then
1376
for ac_dir in $ac_config_fragdir $srcdir/$ac_config_fragdir; do
1377
if test -f $ac_dir/install-sh; then
1379
ac_install_sh="$ac_aux_dir/install-sh -c"
1381
elif test -f $ac_dir/install.sh; then
1383
ac_install_sh="$ac_aux_dir/install.sh -c"
1385
elif test -f $ac_dir/shtool; then
1387
ac_install_sh="$ac_aux_dir/shtool install -c"
1391
if test -z "$ac_aux_dir"; then
1392
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $ac_config_fragdir $srcdir/$ac_config_fragdir" >&5
1393
echo "$as_me: error: cannot find install-sh or install.sh in $ac_config_fragdir $srcdir/$ac_config_fragdir" >&2;}
1394
{ (exit 1); exit 1; }; }
1396
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401
{ { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1402
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1403
{ (exit 1); exit 1; }; }
1408
krb5_ac_cflags_set=${CFLAGS+set}
1411
ac_cpp='$CPP $CPPFLAGS'
1412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415
if test -n "$ac_tool_prefix"; then
1416
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1417
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1418
echo "$as_me:$LINENO: checking for $ac_word" >&5
1419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420
if test "${ac_cv_prog_CC+set}" = set; then
1421
echo $ECHO_N "(cached) $ECHO_C" >&6
1423
if test -n "$CC"; then
1424
ac_cv_prog_CC="$CC" # Let the user override the test.
1426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430
test -z "$as_dir" && as_dir=.
1431
for ac_exec_ext in '' $ac_executable_extensions; do
1432
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1434
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443
if test -n "$CC"; then
1444
echo "$as_me:$LINENO: result: $CC" >&5
1445
echo "${ECHO_T}$CC" >&6
1447
echo "$as_me:$LINENO: result: no" >&5
1448
echo "${ECHO_T}no" >&6
1452
if test -z "$ac_cv_prog_CC"; then
1454
# Extract the first word of "gcc", so it can be a program name with args.
1455
set dummy gcc; ac_word=$2
1456
echo "$as_me:$LINENO: checking for $ac_word" >&5
1457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459
echo $ECHO_N "(cached) $ECHO_C" >&6
1461
if test -n "$ac_ct_CC"; then
1462
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468
test -z "$as_dir" && as_dir=.
1469
for ac_exec_ext in '' $ac_executable_extensions; do
1470
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471
ac_cv_prog_ac_ct_CC="gcc"
1472
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481
if test -n "$ac_ct_CC"; then
1482
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483
echo "${ECHO_T}$ac_ct_CC" >&6
1485
echo "$as_me:$LINENO: result: no" >&5
1486
echo "${ECHO_T}no" >&6
1494
if test -z "$CC"; then
1495
if test -n "$ac_tool_prefix"; then
1496
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1497
set dummy ${ac_tool_prefix}cc; ac_word=$2
1498
echo "$as_me:$LINENO: checking for $ac_word" >&5
1499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500
if test "${ac_cv_prog_CC+set}" = set; then
1501
echo $ECHO_N "(cached) $ECHO_C" >&6
1503
if test -n "$CC"; then
1504
ac_cv_prog_CC="$CC" # Let the user override the test.
1506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510
test -z "$as_dir" && as_dir=.
1511
for ac_exec_ext in '' $ac_executable_extensions; do
1512
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513
ac_cv_prog_CC="${ac_tool_prefix}cc"
1514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523
if test -n "$CC"; then
1524
echo "$as_me:$LINENO: result: $CC" >&5
1525
echo "${ECHO_T}$CC" >&6
1527
echo "$as_me:$LINENO: result: no" >&5
1528
echo "${ECHO_T}no" >&6
1532
if test -z "$ac_cv_prog_CC"; then
1534
# Extract the first word of "cc", so it can be a program name with args.
1535
set dummy cc; ac_word=$2
1536
echo "$as_me:$LINENO: checking for $ac_word" >&5
1537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1539
echo $ECHO_N "(cached) $ECHO_C" >&6
1541
if test -n "$ac_ct_CC"; then
1542
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548
test -z "$as_dir" && as_dir=.
1549
for ac_exec_ext in '' $ac_executable_extensions; do
1550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551
ac_cv_prog_ac_ct_CC="cc"
1552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1561
if test -n "$ac_ct_CC"; then
1562
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1563
echo "${ECHO_T}$ac_ct_CC" >&6
1565
echo "$as_me:$LINENO: result: no" >&5
1566
echo "${ECHO_T}no" >&6
1575
if test -z "$CC"; then
1576
# Extract the first word of "cc", so it can be a program name with args.
1577
set dummy cc; ac_word=$2
1578
echo "$as_me:$LINENO: checking for $ac_word" >&5
1579
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580
if test "${ac_cv_prog_CC+set}" = set; then
1581
echo $ECHO_N "(cached) $ECHO_C" >&6
1583
if test -n "$CC"; then
1584
ac_cv_prog_CC="$CC" # Let the user override the test.
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
test -z "$as_dir" && as_dir=.
1592
for ac_exec_ext in '' $ac_executable_extensions; do
1593
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1595
ac_prog_rejected=yes
1599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605
if test $ac_prog_rejected = yes; then
1606
# We found a bogon in the path, so make sure we never use it.
1607
set dummy $ac_cv_prog_CC
1609
if test $# != 0; then
1610
# We chose a different compiler from the bogus one.
1611
# However, it has the same basename, so the bogon will be chosen
1612
# first if we set CC to just the basename; use the full file name.
1614
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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
1629
if test -z "$CC"; then
1630
if test -n "$ac_tool_prefix"; then
1633
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1635
echo "$as_me:$LINENO: checking for $ac_word" >&5
1636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637
if test "${ac_cv_prog_CC+set}" = set; then
1638
echo $ECHO_N "(cached) $ECHO_C" >&6
1640
if test -n "$CC"; then
1641
ac_cv_prog_CC="$CC" # Let the user override the test.
1643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647
test -z "$as_dir" && as_dir=.
1648
for ac_exec_ext in '' $ac_executable_extensions; do
1649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660
if test -n "$CC"; then
1661
echo "$as_me:$LINENO: result: $CC" >&5
1662
echo "${ECHO_T}$CC" >&6
1664
echo "$as_me:$LINENO: result: no" >&5
1665
echo "${ECHO_T}no" >&6
1668
test -n "$CC" && break
1671
if test -z "$CC"; then
1675
# Extract the first word of "$ac_prog", so it can be a program name with args.
1676
set dummy $ac_prog; ac_word=$2
1677
echo "$as_me:$LINENO: checking for $ac_word" >&5
1678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680
echo $ECHO_N "(cached) $ECHO_C" >&6
1682
if test -n "$ac_ct_CC"; then
1683
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689
test -z "$as_dir" && as_dir=.
1690
for ac_exec_ext in '' $ac_executable_extensions; do
1691
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692
ac_cv_prog_ac_ct_CC="$ac_prog"
1693
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702
if test -n "$ac_ct_CC"; then
1703
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704
echo "${ECHO_T}$ac_ct_CC" >&6
1706
echo "$as_me:$LINENO: result: no" >&5
1707
echo "${ECHO_T}no" >&6
1710
test -n "$ac_ct_CC" && break
1719
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1720
See \`config.log' for more details." >&5
1721
echo "$as_me: error: no acceptable C compiler found in \$PATH
1722
See \`config.log' for more details." >&2;}
1723
{ (exit 1); exit 1; }; }
1725
# Provide some information about the compiler.
1726
echo "$as_me:$LINENO:" \
1727
"checking for C compiler version" >&5
1728
ac_compiler=`set X $ac_compile; echo $2`
1729
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1730
(eval $ac_compiler --version </dev/null >&5) 2>&5
1732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733
(exit $ac_status); }
1734
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1735
(eval $ac_compiler -v </dev/null >&5) 2>&5
1737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738
(exit $ac_status); }
1739
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1740
(eval $ac_compiler -V </dev/null >&5) 2>&5
1742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743
(exit $ac_status); }
1745
cat >conftest.$ac_ext <<_ACEOF
1748
cat confdefs.h >>conftest.$ac_ext
1749
cat >>conftest.$ac_ext <<_ACEOF
1750
/* end confdefs.h. */
1760
ac_clean_files_save=$ac_clean_files
1761
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1762
# Try to create an executable without -o first, disregard a.out.
1763
# It will help us diagnose broken compilers, and finding out an intuition
1765
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1766
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1767
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1768
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1769
(eval $ac_link_default) 2>&5
1771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772
(exit $ac_status); }; then
1773
# Find the output, starting from the most likely. This scheme is
1774
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1777
# Be careful to initialize this variable, since it used to be cached.
1778
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1780
# b.out is created by i960 compilers.
1781
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1783
test -f "$ac_file" || continue
1785
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1788
# This is the source file.
1791
# We found the default executable, but exeext='' is most
1795
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796
# FIXME: I believe we export ac_cv_exeext for Libtool,
1797
# but it would be cool to find out if it's true. Does anybody
1798
# maintain Libtool? --akim.
1806
echo "$as_me: failed program was:" >&5
1807
sed 's/^/| /' conftest.$ac_ext >&5
1809
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1810
See \`config.log' for more details." >&5
1811
echo "$as_me: error: C compiler cannot create executables
1812
See \`config.log' for more details." >&2;}
1813
{ (exit 77); exit 77; }; }
1816
ac_exeext=$ac_cv_exeext
1817
echo "$as_me:$LINENO: result: $ac_file" >&5
1818
echo "${ECHO_T}$ac_file" >&6
1820
# Check the compiler produces executables we can run. If not, either
1821
# the compiler is broken, or we cross compile.
1822
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1823
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1824
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1825
# If not cross compiling, check that we can run a simple program.
1826
if test "$cross_compiling" != yes; then
1827
if { ac_try='./$ac_file'
1828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832
(exit $ac_status); }; }; then
1835
if test "$cross_compiling" = maybe; then
1838
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1839
If you meant to cross compile, use \`--host'.
1840
See \`config.log' for more details." >&5
1841
echo "$as_me: error: cannot run C compiled programs.
1842
If you meant to cross compile, use \`--host'.
1843
See \`config.log' for more details." >&2;}
1844
{ (exit 1); exit 1; }; }
1848
echo "$as_me:$LINENO: result: yes" >&5
1849
echo "${ECHO_T}yes" >&6
1851
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1852
ac_clean_files=$ac_clean_files_save
1853
# Check the compiler produces executables we can run. If not, either
1854
# the compiler is broken, or we cross compile.
1855
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1856
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1858
echo "${ECHO_T}$cross_compiling" >&6
1860
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1861
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1863
(eval $ac_link) 2>&5
1865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866
(exit $ac_status); }; then
1867
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1868
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1869
# work properly (i.e., refer to `conftest.exe'), while it won't with
1871
for ac_file in conftest.exe conftest conftest.*; do
1872
test -f "$ac_file" || continue
1874
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1875
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1883
See \`config.log' for more details." >&5
1884
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1885
See \`config.log' for more details." >&2;}
1886
{ (exit 1); exit 1; }; }
1889
rm -f conftest$ac_cv_exeext
1890
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1891
echo "${ECHO_T}$ac_cv_exeext" >&6
1893
rm -f conftest.$ac_ext
1894
EXEEXT=$ac_cv_exeext
1896
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1897
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1898
if test "${ac_cv_objext+set}" = set; then
1899
echo $ECHO_N "(cached) $ECHO_C" >&6
1901
cat >conftest.$ac_ext <<_ACEOF
1904
cat confdefs.h >>conftest.$ac_ext
1905
cat >>conftest.$ac_ext <<_ACEOF
1906
/* end confdefs.h. */
1916
rm -f conftest.o conftest.obj
1917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918
(eval $ac_compile) 2>&5
1920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921
(exit $ac_status); }; then
1922
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1925
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1930
echo "$as_me: failed program was:" >&5
1931
sed 's/^/| /' conftest.$ac_ext >&5
1933
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1934
See \`config.log' for more details." >&5
1935
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1936
See \`config.log' for more details." >&2;}
1937
{ (exit 1); exit 1; }; }
1940
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1942
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1943
echo "${ECHO_T}$ac_cv_objext" >&6
1944
OBJEXT=$ac_cv_objext
1946
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1947
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1948
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1949
echo $ECHO_N "(cached) $ECHO_C" >&6
1951
cat >conftest.$ac_ext <<_ACEOF
1954
cat confdefs.h >>conftest.$ac_ext
1955
cat >>conftest.$ac_ext <<_ACEOF
1956
/* end confdefs.h. */
1969
rm -f conftest.$ac_objext
1970
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971
(eval $ac_compile) 2>conftest.er1
1973
grep -v '^ *+' conftest.er1 >conftest.err
1975
cat conftest.err >&5
1976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977
(exit $ac_status); } &&
1978
{ ac_try='test -z "$ac_c_werror_flag"
1979
|| test ! -s conftest.err'
1980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984
(exit $ac_status); }; } &&
1985
{ ac_try='test -s conftest.$ac_objext'
1986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
(exit $ac_status); }; }; then
1993
echo "$as_me: failed program was:" >&5
1994
sed 's/^/| /' conftest.$ac_ext >&5
1998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2002
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2003
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2004
GCC=`test $ac_compiler_gnu = yes && echo yes`
2005
ac_test_CFLAGS=${CFLAGS+set}
2006
ac_save_CFLAGS=$CFLAGS
2008
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2009
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2010
if test "${ac_cv_prog_cc_g+set}" = set; then
2011
echo $ECHO_N "(cached) $ECHO_C" >&6
2013
cat >conftest.$ac_ext <<_ACEOF
2016
cat confdefs.h >>conftest.$ac_ext
2017
cat >>conftest.$ac_ext <<_ACEOF
2018
/* end confdefs.h. */
2028
rm -f conftest.$ac_objext
2029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030
(eval $ac_compile) 2>conftest.er1
2032
grep -v '^ *+' conftest.er1 >conftest.err
2034
cat conftest.err >&5
2035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036
(exit $ac_status); } &&
2037
{ ac_try='test -z "$ac_c_werror_flag"
2038
|| test ! -s conftest.err'
2039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043
(exit $ac_status); }; } &&
2044
{ ac_try='test -s conftest.$ac_objext'
2045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
(exit $ac_status); }; }; then
2052
echo "$as_me: failed program was:" >&5
2053
sed 's/^/| /' conftest.$ac_ext >&5
2057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2059
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2060
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2061
if test "$ac_test_CFLAGS" = set; then
2062
CFLAGS=$ac_save_CFLAGS
2063
elif test $ac_cv_prog_cc_g = yes; then
2064
if test "$GCC" = yes; then
2070
if test "$GCC" = yes; then
2076
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2077
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2078
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2079
echo $ECHO_N "(cached) $ECHO_C" >&6
2081
ac_cv_prog_cc_stdc=no
2083
cat >conftest.$ac_ext <<_ACEOF
2086
cat confdefs.h >>conftest.$ac_ext
2087
cat >>conftest.$ac_ext <<_ACEOF
2088
/* end confdefs.h. */
2091
#include <sys/types.h>
2092
#include <sys/stat.h>
2093
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094
struct buf { int x; };
2095
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096
static char *e (p, i)
2102
static char *f (char * (*g) (char **, int), char **p, ...)
2107
s = g (p, va_arg (v,int));
2112
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2113
function prototypes and stuff, but not '\xHH' hex character constants.
2114
These don't provoke an error unfortunately, instead are silently treated
2115
as 'x'. The following induces an error, until -std1 is added to get
2116
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2117
array size at least. It's necessary to write '\x00'==0 to get something
2118
that's true only with -std1. */
2119
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2121
int test (int i, double x);
2122
struct s1 {int (*f) (int a);};
2123
struct s2 {int (*f) (double a);};
2124
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2130
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2135
# Don't try gcc -ansi; that turns off useful extensions and
2136
# breaks some systems' header files.
2137
# AIX -qlanglvl=ansi
2138
# Ultrix and OSF/1 -std1
2139
# HP-UX 10.20 and later -Ae
2140
# HP-UX older versions -Aa -D_HPUX_SOURCE
2141
# SVR4 -Xc -D__EXTENSIONS__
2142
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2144
CC="$ac_save_CC $ac_arg"
2145
rm -f conftest.$ac_objext
2146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147
(eval $ac_compile) 2>conftest.er1
2149
grep -v '^ *+' conftest.er1 >conftest.err
2151
cat conftest.err >&5
2152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
(exit $ac_status); } &&
2154
{ ac_try='test -z "$ac_c_werror_flag"
2155
|| test ! -s conftest.err'
2156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
(exit $ac_status); }; } &&
2161
{ ac_try='test -s conftest.$ac_objext'
2162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
(exit $ac_status); }; }; then
2167
ac_cv_prog_cc_stdc=$ac_arg
2170
echo "$as_me: failed program was:" >&5
2171
sed 's/^/| /' conftest.$ac_ext >&5
2174
rm -f conftest.err conftest.$ac_objext
2176
rm -f conftest.$ac_ext conftest.$ac_objext
2181
case "x$ac_cv_prog_cc_stdc" in
2183
echo "$as_me:$LINENO: result: none needed" >&5
2184
echo "${ECHO_T}none needed" >&6 ;;
2186
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2187
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2188
CC="$CC $ac_cv_prog_cc_stdc" ;;
2191
# Some people use a C++ compiler to compile C. Since we use `exit',
2192
# in C++ we need to declare it. In case someone uses the same compiler
2193
# for both compiling C and C++ we need to have the C++ compiler decide
2194
# the declaration of exit, since it's the most demanding environment.
2195
cat >conftest.$ac_ext <<_ACEOF
2200
rm -f conftest.$ac_objext
2201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202
(eval $ac_compile) 2>conftest.er1
2204
grep -v '^ *+' conftest.er1 >conftest.err
2206
cat conftest.err >&5
2207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208
(exit $ac_status); } &&
2209
{ ac_try='test -z "$ac_c_werror_flag"
2210
|| test ! -s conftest.err'
2211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
(exit $ac_status); }; } &&
2216
{ ac_try='test -s conftest.$ac_objext'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; }; then
2222
for ac_declaration in \
2224
'extern "C" void std::exit (int) throw (); using std::exit;' \
2225
'extern "C" void std::exit (int); using std::exit;' \
2226
'extern "C" void exit (int) throw ();' \
2227
'extern "C" void exit (int);' \
2230
cat >conftest.$ac_ext <<_ACEOF
2233
cat confdefs.h >>conftest.$ac_ext
2234
cat >>conftest.$ac_ext <<_ACEOF
2235
/* 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"
2256
|| test ! -s conftest.err'
2257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261
(exit $ac_status); }; } &&
2262
{ ac_try='test -s conftest.$ac_objext'
2263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); }; }; then
2270
echo "$as_me: failed program was:" >&5
2271
sed 's/^/| /' conftest.$ac_ext >&5
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276
cat >conftest.$ac_ext <<_ACEOF
2279
cat confdefs.h >>conftest.$ac_ext
2280
cat >>conftest.$ac_ext <<_ACEOF
2281
/* end confdefs.h. */
2291
rm -f conftest.$ac_objext
2292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293
(eval $ac_compile) 2>conftest.er1
2295
grep -v '^ *+' conftest.er1 >conftest.err
2297
cat conftest.err >&5
2298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299
(exit $ac_status); } &&
2300
{ ac_try='test -z "$ac_c_werror_flag"
2301
|| test ! -s conftest.err'
2302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306
(exit $ac_status); }; } &&
2307
{ ac_try='test -s conftest.$ac_objext'
2308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
(exit $ac_status); }; }; then
2315
echo "$as_me: failed program was:" >&5
2316
sed 's/^/| /' conftest.$ac_ext >&5
2319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322
if test -n "$ac_declaration"; then
2323
echo '#ifdef __cplusplus' >>confdefs.h
2324
echo $ac_declaration >>confdefs.h
2325
echo '#endif' >>confdefs.h
2329
echo "$as_me: failed program was:" >&5
2330
sed 's/^/| /' conftest.$ac_ext >&5
2333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335
ac_cpp='$CPP $CPPFLAGS'
2336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342
ac_cpp='$CPP $CPPFLAGS'
2343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348
# On Suns, sometimes $CPP names a directory.
2349
if test -n "$CPP" && test -d "$CPP"; then
2352
if test -z "$CPP"; then
2353
if test "${ac_cv_prog_CPP+set}" = set; then
2354
echo $ECHO_N "(cached) $ECHO_C" >&6
2356
# Double quotes because CPP needs to be expanded
2357
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2360
for ac_c_preproc_warn_flag in '' yes
2362
# Use a header file that comes with gcc, so configuring glibc
2363
# with a fresh cross-compiler works.
2364
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365
# <limits.h> exists even on freestanding compilers.
2366
# On the NeXT, cc -E runs the code through the compiler's parser,
2367
# not just through cpp. "Syntax error" is here to catch this case.
2368
cat >conftest.$ac_ext <<_ACEOF
2371
cat confdefs.h >>conftest.$ac_ext
2372
cat >>conftest.$ac_ext <<_ACEOF
2373
/* end confdefs.h. */
2375
# include <limits.h>
2377
# include <assert.h>
2381
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384
grep -v '^ *+' conftest.er1 >conftest.err
2386
cat conftest.err >&5
2387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388
(exit $ac_status); } >/dev/null; then
2389
if test -s conftest.err; then
2390
ac_cpp_err=$ac_c_preproc_warn_flag
2391
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398
if test -z "$ac_cpp_err"; then
2401
echo "$as_me: failed program was:" >&5
2402
sed 's/^/| /' conftest.$ac_ext >&5
2404
# Broken: fails on valid input.
2407
rm -f conftest.err conftest.$ac_ext
2409
# OK, works on sane cases. Now check whether non-existent headers
2410
# can be detected and how.
2411
cat >conftest.$ac_ext <<_ACEOF
2414
cat confdefs.h >>conftest.$ac_ext
2415
cat >>conftest.$ac_ext <<_ACEOF
2416
/* end confdefs.h. */
2417
#include <ac_nonexistent.h>
2419
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422
grep -v '^ *+' conftest.er1 >conftest.err
2424
cat conftest.err >&5
2425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
(exit $ac_status); } >/dev/null; then
2427
if test -s conftest.err; then
2428
ac_cpp_err=$ac_c_preproc_warn_flag
2429
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2436
if test -z "$ac_cpp_err"; then
2437
# Broken: success on invalid input.
2440
echo "$as_me: failed program was:" >&5
2441
sed 's/^/| /' conftest.$ac_ext >&5
2443
# Passes both tests.
2447
rm -f conftest.err conftest.$ac_ext
2450
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451
rm -f conftest.err conftest.$ac_ext
2452
if $ac_preproc_ok; then
2464
echo "$as_me:$LINENO: result: $CPP" >&5
2465
echo "${ECHO_T}$CPP" >&6
2467
for ac_c_preproc_warn_flag in '' yes
2469
# Use a header file that comes with gcc, so configuring glibc
2470
# with a fresh cross-compiler works.
2471
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472
# <limits.h> exists even on freestanding compilers.
2473
# On the NeXT, cc -E runs the code through the compiler's parser,
2474
# not just through cpp. "Syntax error" is here to catch this case.
2475
cat >conftest.$ac_ext <<_ACEOF
2478
cat confdefs.h >>conftest.$ac_ext
2479
cat >>conftest.$ac_ext <<_ACEOF
2480
/* end confdefs.h. */
2482
# include <limits.h>
2484
# include <assert.h>
2488
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491
grep -v '^ *+' conftest.er1 >conftest.err
2493
cat conftest.err >&5
2494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
(exit $ac_status); } >/dev/null; then
2496
if test -s conftest.err; then
2497
ac_cpp_err=$ac_c_preproc_warn_flag
2498
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505
if test -z "$ac_cpp_err"; then
2508
echo "$as_me: failed program was:" >&5
2509
sed 's/^/| /' conftest.$ac_ext >&5
2511
# Broken: fails on valid input.
2514
rm -f conftest.err conftest.$ac_ext
2516
# OK, works on sane cases. Now check whether non-existent headers
2517
# can be detected and how.
2518
cat >conftest.$ac_ext <<_ACEOF
2521
cat confdefs.h >>conftest.$ac_ext
2522
cat >>conftest.$ac_ext <<_ACEOF
2523
/* end confdefs.h. */
2524
#include <ac_nonexistent.h>
2526
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529
grep -v '^ *+' conftest.er1 >conftest.err
2531
cat conftest.err >&5
2532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533
(exit $ac_status); } >/dev/null; then
2534
if test -s conftest.err; then
2535
ac_cpp_err=$ac_c_preproc_warn_flag
2536
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2543
if test -z "$ac_cpp_err"; then
2544
# Broken: success on invalid input.
2547
echo "$as_me: failed program was:" >&5
2548
sed 's/^/| /' conftest.$ac_ext >&5
2550
# Passes both tests.
2554
rm -f conftest.err conftest.$ac_ext
2557
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558
rm -f conftest.err conftest.$ac_ext
2559
if $ac_preproc_ok; then
2562
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2563
See \`config.log' for more details." >&5
2564
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2565
See \`config.log' for more details." >&2;}
2566
{ (exit 1); exit 1; }; }
2570
ac_cpp='$CPP $CPPFLAGS'
2571
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
# Make sure we can run config.sub.
2577
$ac_config_sub sun4 >/dev/null 2>&1 ||
2578
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2579
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2580
{ (exit 1); exit 1; }; }
2582
echo "$as_me:$LINENO: checking build system type" >&5
2583
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2584
if test "${ac_cv_build+set}" = set; then
2585
echo $ECHO_N "(cached) $ECHO_C" >&6
2587
ac_cv_build_alias=$build_alias
2588
test -z "$ac_cv_build_alias" &&
2589
ac_cv_build_alias=`$ac_config_guess`
2590
test -z "$ac_cv_build_alias" &&
2591
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2592
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2593
{ (exit 1); exit 1; }; }
2594
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2595
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2596
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2597
{ (exit 1); exit 1; }; }
2600
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2601
echo "${ECHO_T}$ac_cv_build" >&6
2603
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2604
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2605
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2608
echo "$as_me:$LINENO: checking host system type" >&5
2609
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2610
if test "${ac_cv_host+set}" = set; then
2611
echo $ECHO_N "(cached) $ECHO_C" >&6
2613
ac_cv_host_alias=$host_alias
2614
test -z "$ac_cv_host_alias" &&
2615
ac_cv_host_alias=$ac_cv_build_alias
2616
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2617
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2618
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2619
{ (exit 1); exit 1; }; }
2622
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2623
echo "${ECHO_T}$ac_cv_host" >&6
2625
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2626
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2627
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2632
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2633
if test $ac_cv_c_compiler_gnu = yes ; then
2638
echo "$as_me:$LINENO: checking for GNU linker" >&5
2639
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2640
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2641
echo $ECHO_N "(cached) $ECHO_C" >&6
2643
krb5_cv_prog_gnu_ld=no
2644
if test "$GCC" = yes; then
2645
if { ac_try='$CC -Wl,-v 2>&1 | grep "GNU ld" > /dev/null'
2646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650
(exit $ac_status); }; }; then
2651
krb5_cv_prog_gnu_ld=yes
2655
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2656
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2657
# maybe add -Waggregate-return, or can we assume that actually works by now?
2658
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2659
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2660
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2661
-Wcast-align -Wconversion -Wshadow"
2662
if test "$GCC" = yes ; then
2663
if test "x$krb5_ac_cflags_set" = xset ; then
2664
{ echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2665
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2667
{ echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2668
echo "$as_me: adding extra warning flags for gcc" >&6;}
2669
CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2670
if test "`uname -s`" = Darwin ; then
2671
{ echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2672
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2674
CFLAGS="$CFLAGS -pedantic"
2677
if test "`uname -s`" = Darwin ; then
2678
# Someday this should be a feature test.
2679
# One current (Jaguar = OS 10.2) problem:
2680
# Archive library with foo.o undef sym X and bar.o common sym X,
2681
# if foo.o is pulled in at link time, bar.o may not be, causing
2682
# the linker to complain.
2683
# Dynamic library problems too?
2684
case "$CC $CFLAGS" in
2685
*-fcommon*) ;; # why someone would do this, I don't know
2686
*-fno-common*) ;; # okay, they're already doing the right thing
2688
{ echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2689
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2690
CFLAGS="$CFLAGS -fno-common"
2693
case "$LD $LDFLAGS" in
2694
*-Wl,-search_paths_first*) ;;
2695
*) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2699
if test "`uname -s`" = AIX ; then
2700
# Using AIX but not GCC, assume native compiler.
2701
# The native compiler appears not to give a nonzero exit
2702
# status for certain classes of errors, like missing arguments
2703
# in function calls. Let's try to fix that with -qhalt=e.
2704
case "$CC $CFLAGS" in
2707
CFLAGS="$CFLAGS -qhalt=e"
2708
{ echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2709
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2712
# Also, the optimizer isn't turned on by default, which means
2713
# the static inline functions get left in random object files,
2714
# leading to references to pthread_mutex_lock from anything that
2715
# includes k5-int.h whether it uses threads or not.
2716
case "$CC $CFLAGS" in
2720
{ echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2721
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2727
if test -z "$LD" ; then LD=$CC; fi
2731
# Check whether --with-krb4 or --without-krb4 was given.
2732
if test "${with_krb4+set}" = set; then
2733
withval="$with_krb4"
2738
fi; if test $withval = no; then
2739
{ echo "$as_me:$LINENO: no krb4 support" >&5
2740
echo "$as_me: no krb4 support" >&6;}
2746
krb5_cv_build_krb4_libs=no
2747
krb5_cv_krb4_libdir=
2750
cat >>confdefs.h <<\_ACEOF
2751
#define KRB5_KRB4_COMPAT 1
2754
if test $withval = yes; then
2755
{ echo "$as_me:$LINENO: enabling built in krb4 support" >&5
2756
echo "$as_me: enabling built in krb4 support" >&6;}
2757
KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
2759
KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
2761
KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
2762
krb5_cv_build_krb4_libs=yes
2763
krb5_cv_krb4_libdir=
2765
{ echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
2766
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
2768
KRB4_INCLUDES="-I$withval/include"
2769
KRB4_LIBPATH="-L$withval/lib"
2771
krb5_cv_build_krb4_libs=no
2772
krb5_cv_krb4_libdir="$withval/lib"
2780
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
2786
# Check whether --with-system-et or --without-system-et was given.
2787
if test "${with_system_et+set}" = set; then
2788
withval="$with_system_et"
2791
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
2792
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
2793
if test "x$with_system_et" = xyes ; then
2795
echo "$as_me:$LINENO: result: system" >&5
2796
echo "${ECHO_T}system" >&6
2799
echo "$as_me:$LINENO: result: krb5" >&5
2800
echo "${ECHO_T}krb5" >&6
2802
if test $COM_ERR_VERSION = sys; then
2803
# check for various functions we need
2804
echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
2805
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
2806
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
2807
echo $ECHO_N "(cached) $ECHO_C" >&6
2809
ac_check_lib_save_LIBS=$LIBS
2810
LIBS="-lcom_err $LIBS"
2811
cat >conftest.$ac_ext <<_ACEOF
2814
cat confdefs.h >>conftest.$ac_ext
2815
cat >>conftest.$ac_ext <<_ACEOF
2816
/* end confdefs.h. */
2818
/* Override any gcc2 internal prototype to avoid an error. */
2822
/* We use char because int might match the return type of a gcc2
2823
builtin and then its argument prototype would still apply. */
2824
char add_error_table ();
2833
rm -f conftest.$ac_objext conftest$ac_exeext
2834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835
(eval $ac_link) 2>conftest.er1
2837
grep -v '^ *+' conftest.er1 >conftest.err
2839
cat conftest.err >&5
2840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
(exit $ac_status); } &&
2842
{ ac_try='test -z "$ac_c_werror_flag"
2843
|| test ! -s conftest.err'
2844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
(exit $ac_status); }; } &&
2849
{ ac_try='test -s conftest$ac_exeext'
2850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); }; }; then
2855
ac_cv_lib_com_err_add_error_table=yes
2857
echo "$as_me: failed program was:" >&5
2858
sed 's/^/| /' conftest.$ac_ext >&5
2860
ac_cv_lib_com_err_add_error_table=no
2862
rm -f conftest.err conftest.$ac_objext \
2863
conftest$ac_exeext conftest.$ac_ext
2864
LIBS=$ac_check_lib_save_LIBS
2866
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
2867
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
2868
if test $ac_cv_lib_com_err_add_error_table = yes; then
2871
{ { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
2872
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
2873
{ (exit 1); exit 1; }; }
2876
echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
2877
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
2878
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
2879
echo $ECHO_N "(cached) $ECHO_C" >&6
2881
ac_check_lib_save_LIBS=$LIBS
2882
LIBS="-lcom_err $LIBS"
2883
cat >conftest.$ac_ext <<_ACEOF
2886
cat confdefs.h >>conftest.$ac_ext
2887
cat >>conftest.$ac_ext <<_ACEOF
2888
/* end confdefs.h. */
2890
/* Override any gcc2 internal prototype to avoid an error. */
2894
/* We use char because int might match the return type of a gcc2
2895
builtin and then its argument prototype would still apply. */
2896
char remove_error_table ();
2900
remove_error_table ();
2905
rm -f conftest.$ac_objext conftest$ac_exeext
2906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907
(eval $ac_link) 2>conftest.er1
2909
grep -v '^ *+' conftest.er1 >conftest.err
2911
cat conftest.err >&5
2912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
(exit $ac_status); } &&
2914
{ ac_try='test -z "$ac_c_werror_flag"
2915
|| test ! -s conftest.err'
2916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
(exit $ac_status); }; } &&
2921
{ ac_try='test -s conftest$ac_exeext'
2922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
(exit $ac_status); }; }; then
2927
ac_cv_lib_com_err_remove_error_table=yes
2929
echo "$as_me: failed program was:" >&5
2930
sed 's/^/| /' conftest.$ac_ext >&5
2932
ac_cv_lib_com_err_remove_error_table=no
2934
rm -f conftest.err conftest.$ac_objext \
2935
conftest$ac_exeext conftest.$ac_ext
2936
LIBS=$ac_check_lib_save_LIBS
2938
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
2939
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
2940
if test $ac_cv_lib_com_err_remove_error_table = yes; then
2943
{ { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
2944
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
2945
{ (exit 1); exit 1; }; }
2948
# make sure compile_et provides "et_foo" name
2949
cat >> conf$$e.et <<EOF
2951
error_code ERR_FOO, "foo"
2954
for ac_prog in compile_et
2956
# Extract the first word of "$ac_prog", so it can be a program name with args.
2957
set dummy $ac_prog; ac_word=$2
2958
echo "$as_me:$LINENO: checking for $ac_word" >&5
2959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2960
if test "${ac_cv_prog_compile_et+set}" = set; then
2961
echo $ECHO_N "(cached) $ECHO_C" >&6
2963
if test -n "$compile_et"; then
2964
ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
2966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970
test -z "$as_dir" && as_dir=.
2971
for ac_exec_ext in '' $ac_executable_extensions; do
2972
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973
ac_cv_prog_compile_et="$ac_prog"
2974
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982
compile_et=$ac_cv_prog_compile_et
2983
if test -n "$compile_et"; then
2984
echo "$as_me:$LINENO: result: $compile_et" >&5
2985
echo "${ECHO_T}$compile_et" >&6
2987
echo "$as_me:$LINENO: result: no" >&5
2988
echo "${ECHO_T}no" >&6
2991
test -n "$compile_et" && break
2993
test -n "$compile_et" || compile_et="false"
2995
if test "$compile_et" = false; then
2996
{ { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
2997
echo "$as_me: error: cannot find compile_et" >&2;}
2998
{ (exit 1); exit 1; }; }
3000
echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3001
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3002
if test "${krb5_cv_compile_et_useful+set}" = set; then
3003
echo $ECHO_N "(cached) $ECHO_C" >&6
3006
if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3007
{ { echo "$as_me:$LINENO: error: execution failed" >&5
3008
echo "$as_me: error: execution failed" >&2;}
3009
{ (exit 1); exit 1; }; }
3011
cat >conftest.$ac_ext <<_ACEOF
3014
cat confdefs.h >>conftest.$ac_ext
3015
cat >>conftest.$ac_ext <<_ACEOF
3016
/* end confdefs.h. */
3017
#include "conf$$e.h"
3027
rm -f conftest.$ac_objext
3028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029
(eval $ac_compile) 2>conftest.er1
3031
grep -v '^ *+' conftest.er1 >conftest.err
3033
cat conftest.err >&5
3034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
(exit $ac_status); } &&
3036
{ ac_try='test -z "$ac_c_werror_flag"
3037
|| test ! -s conftest.err'
3038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
(exit $ac_status); }; } &&
3043
{ ac_try='test -s conftest.$ac_objext'
3044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048
(exit $ac_status); }; }; then
3051
echo "$as_me: failed program was:" >&5
3052
sed 's/^/| /' conftest.$ac_ext >&5
3054
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3055
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3056
{ (exit 1); exit 1; }; }
3058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059
# Anything else we need to test for?
3060
rm -f conf$$e.et conf$$e.c conf$$e.h
3061
krb5_cv_compile_et_useful=yes
3064
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3065
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3070
# Check whether --with-system-ss or --without-system-ss was given.
3071
if test "${with_system_ss+set}" = set; then
3072
withval="$with_system_ss"
3076
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3077
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3078
if test "x$with_system_ss" = xyes ; then
3080
echo "$as_me:$LINENO: result: system" >&5
3081
echo "${ECHO_T}system" >&6
3082
# todo: check for various libraries we might need
3083
# in the meantime...
3084
test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3086
LIBS="$LIBS $SS_LIB"
3087
echo "$as_me:$LINENO: checking whether system ss package works" >&5
3088
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3089
if test "${krb5_cv_system_ss_okay+set}" = set; then
3090
echo $ECHO_N "(cached) $ECHO_C" >&6
3093
if test "$cross_compiling" = yes; then
3094
krb5_cv_system_ss_okay="assumed"
3096
cat >conftest.$ac_ext <<_ACEOF
3099
cat confdefs.h >>conftest.$ac_ext
3100
cat >>conftest.$ac_ext <<_ACEOF
3101
/* end confdefs.h. */
3104
int main(int argc, char *argv[]) {
3107
i = ss_create_invocation("foo","foo","",0,&err);
3113
rm -f conftest$ac_exeext
3114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115
(eval $ac_link) 2>&5
3117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123
(exit $ac_status); }; }; then
3124
krb5_cv_system_ss_okay=yes
3126
echo "$as_me: program exited with status $ac_status" >&5
3127
echo "$as_me: failed program was:" >&5
3128
sed 's/^/| /' conftest.$ac_ext >&5
3131
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3132
echo "$as_me: error: cannot run test program" >&2;}
3133
{ (exit 1); exit 1; }; }
3135
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3138
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3139
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3143
echo "$as_me:$LINENO: result: krb5" >&5
3144
echo "${ECHO_T}krb5" >&6
3150
# Check whether --with-system-db or --without-system-db was given.
3151
if test "${with_system_db+set}" = set; then
3152
withval="$with_system_db"
3157
if test "x$with_system_db" = xyes ; then
3159
# TODO: Do we have specific routines we should check for?
3160
# How about known, easily recognizable bugs?
3161
# We want to use bt_rseq in some cases, but no other version but
3162
# ours has it right now.
3164
# Okay, check the variables.
3165
test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3166
test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3168
if test "x${DB_HEADER}" = xdb.h ; then
3169
DB_HEADER_VERSION=sys
3171
DB_HEADER_VERSION=redirect
3173
KDB5_DB_LIB="$DB_LIB"
3177
cat >>confdefs.h <<\_ACEOF
3178
#define HAVE_BT_RSEQ 1
3182
DB_HEADER_VERSION=k5
3183
# libdb gets sucked into libkdb
3185
# needed for a couple of things that need libdb for its own sake
3194
cat >>confdefs.h <<\_ACEOF
3195
#define KRB5_PRIVATE 1
3199
cat >>confdefs.h <<\_ACEOF
3200
#define KRB5_DEPRECATED 1
3203
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3204
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3205
if test "${ac_cv_c_const+set}" = set; then
3206
echo $ECHO_N "(cached) $ECHO_C" >&6
3208
cat >conftest.$ac_ext <<_ACEOF
3211
cat confdefs.h >>conftest.$ac_ext
3212
cat >>conftest.$ac_ext <<_ACEOF
3213
/* end confdefs.h. */
3218
/* FIXME: Include the comments suggested by Paul. */
3220
/* Ultrix mips cc rejects this. */
3221
typedef int charset[2];
3223
/* SunOS 4.1.1 cc rejects this. */
3224
char const *const *ccp;
3226
/* NEC SVR4.0.2 mips cc rejects this. */
3227
struct point {int x, y;};
3228
static struct point const zero = {0,0};
3229
/* AIX XL C 1.02.0.0 rejects this.
3230
It does not let you subtract one const X* pointer from another in
3231
an arm of an if-expression whose if-part is not a constant
3233
const char *g = "string";
3234
ccp = &g + (g ? g-g : 0);
3235
/* HPUX 7.0 cc rejects these. */
3238
ccp = (char const *const *) p;
3239
{ /* SCO 3.2v4 cc rejects this. */
3241
char const *s = 0 ? (char *) 0 : (char const *) 0;
3245
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3247
const int *foo = &x[0];
3250
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3251
typedef const int *iptr;
3255
{ /* AIX XL C 1.02.0.0 rejects this saying
3256
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3257
struct s { int j; const int *ap[3]; };
3258
struct s *b; b->j = 5;
3260
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3269
rm -f conftest.$ac_objext
3270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271
(eval $ac_compile) 2>conftest.er1
3273
grep -v '^ *+' conftest.er1 >conftest.err
3275
cat conftest.err >&5
3276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277
(exit $ac_status); } &&
3278
{ ac_try='test -z "$ac_c_werror_flag"
3279
|| test ! -s conftest.err'
3280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284
(exit $ac_status); }; } &&
3285
{ ac_try='test -s conftest.$ac_objext'
3286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290
(exit $ac_status); }; }; then
3293
echo "$as_me: failed program was:" >&5
3294
sed 's/^/| /' conftest.$ac_ext >&5
3298
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3301
echo "${ECHO_T}$ac_cv_c_const" >&6
3302
if test $ac_cv_c_const = no; then
3304
cat >>confdefs.h <<\_ACEOF
3311
# Check whether --with-netlib or --without-netlib was given.
3312
if test "${with_netlib+set}" = set; then
3313
withval="$with_netlib"
3314
if test "$withval" = yes -o "$withval" = no ; then
3315
echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3316
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3318
LIBS="$LIBS $withval"
3319
echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3320
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3325
# Most operating systems have gethostbyname() in the default searched
3326
# libraries (i.e. libc):
3327
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3328
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3329
if test "${ac_cv_func_gethostbyname+set}" = set; then
3330
echo $ECHO_N "(cached) $ECHO_C" >&6
3332
cat >conftest.$ac_ext <<_ACEOF
3335
cat confdefs.h >>conftest.$ac_ext
3336
cat >>conftest.$ac_ext <<_ACEOF
3337
/* end confdefs.h. */
3338
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3339
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3340
#define gethostbyname innocuous_gethostbyname
3342
/* System header to define __stub macros and hopefully few prototypes,
3343
which can conflict with char gethostbyname (); below.
3344
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345
<limits.h> exists even on freestanding compilers. */
3348
# include <limits.h>
3350
# include <assert.h>
3353
#undef gethostbyname
3355
/* Override any gcc2 internal prototype to avoid an error. */
3360
/* We use char because int might match the return type of a gcc2
3361
builtin and then its argument prototype would still apply. */
3362
char gethostbyname ();
3363
/* The GNU C library defines this for functions which it implements
3364
to always fail with ENOSYS. Some functions are actually named
3365
something starting with __ and the normal name is an alias. */
3366
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3369
char (*f) () = gethostbyname;
3378
return f != gethostbyname;
3383
rm -f conftest.$ac_objext conftest$ac_exeext
3384
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385
(eval $ac_link) 2>conftest.er1
3387
grep -v '^ *+' conftest.er1 >conftest.err
3389
cat conftest.err >&5
3390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391
(exit $ac_status); } &&
3392
{ ac_try='test -z "$ac_c_werror_flag"
3393
|| test ! -s conftest.err'
3394
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
(exit $ac_status); }; } &&
3399
{ ac_try='test -s conftest$ac_exeext'
3400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404
(exit $ac_status); }; }; then
3405
ac_cv_func_gethostbyname=yes
3407
echo "$as_me: failed program was:" >&5
3408
sed 's/^/| /' conftest.$ac_ext >&5
3410
ac_cv_func_gethostbyname=no
3412
rm -f conftest.err conftest.$ac_objext \
3413
conftest$ac_exeext conftest.$ac_ext
3415
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3416
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3417
if test $ac_cv_func_gethostbyname = yes; then
3421
# Some OSes (eg. Solaris) place it in libnsl:
3423
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3424
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3425
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3426
echo $ECHO_N "(cached) $ECHO_C" >&6
3428
ac_check_lib_save_LIBS=$LIBS
3430
cat >conftest.$ac_ext <<_ACEOF
3433
cat confdefs.h >>conftest.$ac_ext
3434
cat >>conftest.$ac_ext <<_ACEOF
3435
/* end confdefs.h. */
3437
/* Override any gcc2 internal prototype to avoid an error. */
3441
/* We use char because int might match the return type of a gcc2
3442
builtin and then its argument prototype would still apply. */
3443
char gethostbyname ();
3452
rm -f conftest.$ac_objext conftest$ac_exeext
3453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454
(eval $ac_link) 2>conftest.er1
3456
grep -v '^ *+' conftest.er1 >conftest.err
3458
cat conftest.err >&5
3459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460
(exit $ac_status); } &&
3461
{ ac_try='test -z "$ac_c_werror_flag"
3462
|| test ! -s conftest.err'
3463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
(exit $ac_status); }; } &&
3468
{ ac_try='test -s conftest$ac_exeext'
3469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473
(exit $ac_status); }; }; then
3474
ac_cv_lib_nsl_gethostbyname=yes
3476
echo "$as_me: failed program was:" >&5
3477
sed 's/^/| /' conftest.$ac_ext >&5
3479
ac_cv_lib_nsl_gethostbyname=no
3481
rm -f conftest.err conftest.$ac_objext \
3482
conftest$ac_exeext conftest.$ac_ext
3483
LIBS=$ac_check_lib_save_LIBS
3485
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3486
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3487
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3488
cat >>confdefs.h <<_ACEOF
3489
#define HAVE_LIBNSL 1
3496
# Some strange OSes (SINIX) have it in libsocket:
3498
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3499
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3500
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3501
echo $ECHO_N "(cached) $ECHO_C" >&6
3503
ac_check_lib_save_LIBS=$LIBS
3504
LIBS="-lsocket $LIBS"
3505
cat >conftest.$ac_ext <<_ACEOF
3508
cat confdefs.h >>conftest.$ac_ext
3509
cat >>conftest.$ac_ext <<_ACEOF
3510
/* end confdefs.h. */
3512
/* Override any gcc2 internal prototype to avoid an error. */
3516
/* We use char because int might match the return type of a gcc2
3517
builtin and then its argument prototype would still apply. */
3518
char gethostbyname ();
3527
rm -f conftest.$ac_objext conftest$ac_exeext
3528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529
(eval $ac_link) 2>conftest.er1
3531
grep -v '^ *+' conftest.er1 >conftest.err
3533
cat conftest.err >&5
3534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535
(exit $ac_status); } &&
3536
{ ac_try='test -z "$ac_c_werror_flag"
3537
|| test ! -s conftest.err'
3538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542
(exit $ac_status); }; } &&
3543
{ ac_try='test -s conftest$ac_exeext'
3544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548
(exit $ac_status); }; }; then
3549
ac_cv_lib_socket_gethostbyname=yes
3551
echo "$as_me: failed program was:" >&5
3552
sed 's/^/| /' conftest.$ac_ext >&5
3554
ac_cv_lib_socket_gethostbyname=no
3556
rm -f conftest.err conftest.$ac_objext \
3557
conftest$ac_exeext conftest.$ac_ext
3558
LIBS=$ac_check_lib_save_LIBS
3560
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3561
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3562
if test $ac_cv_lib_socket_gethostbyname = yes; then
3563
cat >>confdefs.h <<_ACEOF
3564
#define HAVE_LIBSOCKET 1
3567
LIBS="-lsocket $LIBS"
3571
# Unfortunately libsocket sometimes depends on libnsl.
3572
# AC_CHECK_LIB's API is essentially broken so the following
3573
# ugliness is necessary:
3574
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3575
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3576
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3577
echo $ECHO_N "(cached) $ECHO_C" >&6
3579
ac_check_lib_save_LIBS=$LIBS
3580
LIBS="-lsocket -lnsl $LIBS"
3581
cat >conftest.$ac_ext <<_ACEOF
3584
cat confdefs.h >>conftest.$ac_ext
3585
cat >>conftest.$ac_ext <<_ACEOF
3586
/* end confdefs.h. */
3588
/* Override any gcc2 internal prototype to avoid an error. */
3592
/* We use char because int might match the return type of a gcc2
3593
builtin and then its argument prototype would still apply. */
3594
char gethostbyname ();
3603
rm -f conftest.$ac_objext conftest$ac_exeext
3604
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605
(eval $ac_link) 2>conftest.er1
3607
grep -v '^ *+' conftest.er1 >conftest.err
3609
cat conftest.err >&5
3610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
(exit $ac_status); } &&
3612
{ ac_try='test -z "$ac_c_werror_flag"
3613
|| test ! -s conftest.err'
3614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618
(exit $ac_status); }; } &&
3619
{ ac_try='test -s conftest$ac_exeext'
3620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
(exit $ac_status); }; }; then
3625
ac_cv_lib_socket_gethostbyname=yes
3627
echo "$as_me: failed program was:" >&5
3628
sed 's/^/| /' conftest.$ac_ext >&5
3630
ac_cv_lib_socket_gethostbyname=no
3632
rm -f conftest.err conftest.$ac_objext \
3633
conftest$ac_exeext conftest.$ac_ext
3634
LIBS=$ac_check_lib_save_LIBS
3636
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3637
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3638
if test $ac_cv_lib_socket_gethostbyname = yes; then
3639
LIBS="-lsocket -lnsl $LIBS"
3641
echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3642
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3643
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3644
echo $ECHO_N "(cached) $ECHO_C" >&6
3646
ac_check_lib_save_LIBS=$LIBS
3647
LIBS="-lresolv $LIBS"
3648
cat >conftest.$ac_ext <<_ACEOF
3651
cat confdefs.h >>conftest.$ac_ext
3652
cat >>conftest.$ac_ext <<_ACEOF
3653
/* end confdefs.h. */
3655
/* Override any gcc2 internal prototype to avoid an error. */
3659
/* We use char because int might match the return type of a gcc2
3660
builtin and then its argument prototype would still apply. */
3661
char gethostbyname ();
3670
rm -f conftest.$ac_objext conftest$ac_exeext
3671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672
(eval $ac_link) 2>conftest.er1
3674
grep -v '^ *+' conftest.er1 >conftest.err
3676
cat conftest.err >&5
3677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678
(exit $ac_status); } &&
3679
{ ac_try='test -z "$ac_c_werror_flag"
3680
|| test ! -s conftest.err'
3681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685
(exit $ac_status); }; } &&
3686
{ ac_try='test -s conftest$ac_exeext'
3687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; }; then
3692
ac_cv_lib_resolv_gethostbyname=yes
3694
echo "$as_me: failed program was:" >&5
3695
sed 's/^/| /' conftest.$ac_ext >&5
3697
ac_cv_lib_resolv_gethostbyname=no
3699
rm -f conftest.err conftest.$ac_objext \
3700
conftest$ac_exeext conftest.$ac_ext
3701
LIBS=$ac_check_lib_save_LIBS
3703
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3704
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3705
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3706
LIBS="-lresolv $LIBS"
3720
echo "$as_me:$LINENO: checking for socket" >&5
3721
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3722
if test "${ac_cv_func_socket+set}" = set; then
3723
echo $ECHO_N "(cached) $ECHO_C" >&6
3725
cat >conftest.$ac_ext <<_ACEOF
3728
cat confdefs.h >>conftest.$ac_ext
3729
cat >>conftest.$ac_ext <<_ACEOF
3730
/* end confdefs.h. */
3731
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3732
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3733
#define socket innocuous_socket
3735
/* System header to define __stub macros and hopefully few prototypes,
3736
which can conflict with char socket (); below.
3737
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3738
<limits.h> exists even on freestanding compilers. */
3741
# include <limits.h>
3743
# include <assert.h>
3748
/* Override any gcc2 internal prototype to avoid an error. */
3753
/* We use char because int might match the return type of a gcc2
3754
builtin and then its argument prototype would still apply. */
3756
/* The GNU C library defines this for functions which it implements
3757
to always fail with ENOSYS. Some functions are actually named
3758
something starting with __ and the normal name is an alias. */
3759
#if defined (__stub_socket) || defined (__stub___socket)
3762
char (*f) () = socket;
3776
rm -f conftest.$ac_objext conftest$ac_exeext
3777
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778
(eval $ac_link) 2>conftest.er1
3780
grep -v '^ *+' conftest.er1 >conftest.err
3782
cat conftest.err >&5
3783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
(exit $ac_status); } &&
3785
{ ac_try='test -z "$ac_c_werror_flag"
3786
|| test ! -s conftest.err'
3787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791
(exit $ac_status); }; } &&
3792
{ ac_try='test -s conftest$ac_exeext'
3793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797
(exit $ac_status); }; }; then
3798
ac_cv_func_socket=yes
3800
echo "$as_me: failed program was:" >&5
3801
sed 's/^/| /' conftest.$ac_ext >&5
3803
ac_cv_func_socket=no
3805
rm -f conftest.err conftest.$ac_objext \
3806
conftest$ac_exeext conftest.$ac_ext
3808
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3809
echo "${ECHO_T}$ac_cv_func_socket" >&6
3810
if test $ac_cv_func_socket = yes; then
3814
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3815
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3816
if test "${ac_cv_lib_socket_socket+set}" = set; then
3817
echo $ECHO_N "(cached) $ECHO_C" >&6
3819
ac_check_lib_save_LIBS=$LIBS
3820
LIBS="-lsocket $LIBS"
3821
cat >conftest.$ac_ext <<_ACEOF
3824
cat confdefs.h >>conftest.$ac_ext
3825
cat >>conftest.$ac_ext <<_ACEOF
3826
/* end confdefs.h. */
3828
/* Override any gcc2 internal prototype to avoid an error. */
3832
/* We use char because int might match the return type of a gcc2
3833
builtin and then its argument prototype would still apply. */
3843
rm -f conftest.$ac_objext conftest$ac_exeext
3844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845
(eval $ac_link) 2>conftest.er1
3847
grep -v '^ *+' conftest.er1 >conftest.err
3849
cat conftest.err >&5
3850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
(exit $ac_status); } &&
3852
{ ac_try='test -z "$ac_c_werror_flag"
3853
|| test ! -s conftest.err'
3854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
(exit $ac_status); }; } &&
3859
{ ac_try='test -s conftest$ac_exeext'
3860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
(exit $ac_status); }; }; then
3865
ac_cv_lib_socket_socket=yes
3867
echo "$as_me: failed program was:" >&5
3868
sed 's/^/| /' conftest.$ac_ext >&5
3870
ac_cv_lib_socket_socket=no
3872
rm -f conftest.err conftest.$ac_objext \
3873
conftest$ac_exeext conftest.$ac_ext
3874
LIBS=$ac_check_lib_save_LIBS
3876
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3877
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3878
if test $ac_cv_lib_socket_socket = yes; then
3879
cat >>confdefs.h <<_ACEOF
3880
#define HAVE_LIBSOCKET 1
3883
LIBS="-lsocket $LIBS"
3886
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3887
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3888
if test "${ac_cv_lib_socket_socket+set}" = set; then
3889
echo $ECHO_N "(cached) $ECHO_C" >&6
3891
ac_check_lib_save_LIBS=$LIBS
3892
LIBS="-lsocket -lnsl $LIBS"
3893
cat >conftest.$ac_ext <<_ACEOF
3896
cat confdefs.h >>conftest.$ac_ext
3897
cat >>conftest.$ac_ext <<_ACEOF
3898
/* end confdefs.h. */
3900
/* Override any gcc2 internal prototype to avoid an error. */
3904
/* We use char because int might match the return type of a gcc2
3905
builtin and then its argument prototype would still apply. */
3915
rm -f conftest.$ac_objext conftest$ac_exeext
3916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3917
(eval $ac_link) 2>conftest.er1
3919
grep -v '^ *+' conftest.er1 >conftest.err
3921
cat conftest.err >&5
3922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923
(exit $ac_status); } &&
3924
{ ac_try='test -z "$ac_c_werror_flag"
3925
|| test ! -s conftest.err'
3926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
(exit $ac_status); }; } &&
3931
{ ac_try='test -s conftest$ac_exeext'
3932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
(exit $ac_status); }; }; then
3937
ac_cv_lib_socket_socket=yes
3939
echo "$as_me: failed program was:" >&5
3940
sed 's/^/| /' conftest.$ac_ext >&5
3942
ac_cv_lib_socket_socket=no
3944
rm -f conftest.err conftest.$ac_objext \
3945
conftest$ac_exeext conftest.$ac_ext
3946
LIBS=$ac_check_lib_save_LIBS
3948
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3949
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3950
if test $ac_cv_lib_socket_socket = yes; then
3951
LIBS="-lsocket -lnsl $LIBS"
3960
enable_dns_for_kdc=yes
3962
cat >>confdefs.h <<\_ACEOF
3963
#define KRB5_DNS_LOOKUP_KDC 1
3967
# Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
3968
if test "${enable_dns_for_realm+set}" = set; then
3969
enableval="$enable_dns_for_realm"
3972
enable_dns_for_realm=no
3974
if test "$enable_dns_for_realm" = yes; then
3976
cat >>confdefs.h <<\_ACEOF
3977
#define KRB5_DNS_LOOKUP_REALM 1
3983
cat >>confdefs.h <<\_ACEOF
3984
#define KRB5_DNS_LOOKUP 1
3989
if test "$enable_dns" = yes ; then
3990
# We assume that if libresolv exists we can link against it.
3991
# This may get us a gethostby* that doesn't respect nsswitch.
3993
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
3994
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
3995
if test "${ac_cv_lib_resolv_main+set}" = set; then
3996
echo $ECHO_N "(cached) $ECHO_C" >&6
3998
ac_check_lib_save_LIBS=$LIBS
3999
LIBS="-lresolv $LIBS"
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4016
rm -f conftest.$ac_objext conftest$ac_exeext
4017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018
(eval $ac_link) 2>conftest.er1
4020
grep -v '^ *+' conftest.er1 >conftest.err
4022
cat conftest.err >&5
4023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
(exit $ac_status); } &&
4025
{ ac_try='test -z "$ac_c_werror_flag"
4026
|| test ! -s conftest.err'
4027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
(exit $ac_status); }; } &&
4032
{ ac_try='test -s conftest$ac_exeext'
4033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
(exit $ac_status); }; }; then
4038
ac_cv_lib_resolv_main=yes
4040
echo "$as_me: failed program was:" >&5
4041
sed 's/^/| /' conftest.$ac_ext >&5
4043
ac_cv_lib_resolv_main=no
4045
rm -f conftest.err conftest.$ac_objext \
4046
conftest$ac_exeext conftest.$ac_ext
4047
LIBS=$ac_check_lib_save_LIBS
4049
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4050
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4051
if test $ac_cv_lib_resolv_main = yes; then
4052
cat >>confdefs.h <<_ACEOF
4053
#define HAVE_LIBRESOLV 1
4056
LIBS="-lresolv $LIBS"
4069
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4071
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4072
# doesn't export it from libresolv.so, so we use extreme paranoia here
4073
# and check both for the declaration and that we can link against the
4075
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4076
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4077
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4078
echo $ECHO_N "(cached) $ECHO_C" >&6
4080
cat >conftest.$ac_ext <<_ACEOF
4083
cat confdefs.h >>conftest.$ac_ext
4084
cat >>conftest.$ac_ext <<_ACEOF
4085
/* end confdefs.h. */
4086
#include <sys/types.h>
4087
#include <netinet/in.h>
4088
#include <arpa/nameser.h>
4094
* Use volatile, or else optimization can cause false positives.
4096
void (* volatile p)() = (void (*)())$krb5_func;
4101
rm -f conftest.$ac_objext conftest$ac_exeext
4102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103
(eval $ac_link) 2>conftest.er1
4105
grep -v '^ *+' conftest.er1 >conftest.err
4107
cat conftest.err >&5
4108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109
(exit $ac_status); } &&
4110
{ ac_try='test -z "$ac_c_werror_flag"
4111
|| test ! -s conftest.err'
4112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
(exit $ac_status); }; } &&
4117
{ ac_try='test -s conftest$ac_exeext'
4118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); }; }; then
4123
eval "krb5_cv_func_$krb5_func=yes"
4125
echo "$as_me: failed program was:" >&5
4126
sed 's/^/| /' conftest.$ac_ext >&5
4128
eval "krb5_cv_func_$krb5_func=no"
4130
rm -f conftest.err conftest.$ac_objext \
4131
conftest$ac_exeext conftest.$ac_ext
4133
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4134
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4135
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4137
cat >>confdefs.h <<_ACEOF
4138
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4145
if test $krb5_cv_func_res_nsearch = no \
4146
&& test $krb5_cv_func_res_search = no; then
4147
# Attempt to link with res_search(), in case it's not prototyped.
4148
echo "$as_me:$LINENO: checking for res_search" >&5
4149
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4150
if test "${ac_cv_func_res_search+set}" = set; then
4151
echo $ECHO_N "(cached) $ECHO_C" >&6
4153
cat >conftest.$ac_ext <<_ACEOF
4156
cat confdefs.h >>conftest.$ac_ext
4157
cat >>conftest.$ac_ext <<_ACEOF
4158
/* end confdefs.h. */
4159
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4160
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4161
#define res_search innocuous_res_search
4163
/* System header to define __stub macros and hopefully few prototypes,
4164
which can conflict with char res_search (); below.
4165
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166
<limits.h> exists even on freestanding compilers. */
4169
# include <limits.h>
4171
# include <assert.h>
4176
/* Override any gcc2 internal prototype to avoid an error. */
4181
/* We use char because int might match the return type of a gcc2
4182
builtin and then its argument prototype would still apply. */
4184
/* The GNU C library defines this for functions which it implements
4185
to always fail with ENOSYS. Some functions are actually named
4186
something starting with __ and the normal name is an alias. */
4187
#if defined (__stub_res_search) || defined (__stub___res_search)
4190
char (*f) () = res_search;
4199
return f != res_search;
4204
rm -f conftest.$ac_objext conftest$ac_exeext
4205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206
(eval $ac_link) 2>conftest.er1
4208
grep -v '^ *+' conftest.er1 >conftest.err
4210
cat conftest.err >&5
4211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212
(exit $ac_status); } &&
4213
{ ac_try='test -z "$ac_c_werror_flag"
4214
|| test ! -s conftest.err'
4215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
(exit $ac_status); }; } &&
4220
{ ac_try='test -s conftest$ac_exeext'
4221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225
(exit $ac_status); }; }; then
4226
ac_cv_func_res_search=yes
4228
echo "$as_me: failed program was:" >&5
4229
sed 's/^/| /' conftest.$ac_ext >&5
4231
ac_cv_func_res_search=no
4233
rm -f conftest.err conftest.$ac_objext \
4234
conftest$ac_exeext conftest.$ac_ext
4236
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4237
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4238
if test $ac_cv_func_res_search = yes; then
4240
cat >>confdefs.h <<\_ACEOF
4241
#define HAVE_RES_SEARCH 1
4245
{ { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4246
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4247
{ (exit 1); exit 1; }; }
4255
# Check whether --with-hesiod or --without-hesiod was given.
4256
if test "${with_hesiod+set}" = set; then
4257
withval="$with_hesiod"
4262
if test "$with_hesiod" != "no"; then
4263
HESIOD_DEFS=-DHESIOD
4264
echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4265
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4266
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4267
echo $ECHO_N "(cached) $ECHO_C" >&6
4269
ac_check_lib_save_LIBS=$LIBS
4270
LIBS="-lresolv $LIBS"
4271
cat >conftest.$ac_ext <<_ACEOF
4274
cat confdefs.h >>conftest.$ac_ext
4275
cat >>conftest.$ac_ext <<_ACEOF
4276
/* end confdefs.h. */
4278
/* Override any gcc2 internal prototype to avoid an error. */
4282
/* We use char because int might match the return type of a gcc2
4283
builtin and then its argument prototype would still apply. */
4293
rm -f conftest.$ac_objext conftest$ac_exeext
4294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295
(eval $ac_link) 2>conftest.er1
4297
grep -v '^ *+' conftest.er1 >conftest.err
4299
cat conftest.err >&5
4300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
(exit $ac_status); } &&
4302
{ ac_try='test -z "$ac_c_werror_flag"
4303
|| test ! -s conftest.err'
4304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
(exit $ac_status); }; } &&
4309
{ ac_try='test -s conftest$ac_exeext'
4310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
(exit $ac_status); }; }; then
4315
ac_cv_lib_resolv_res_send=yes
4317
echo "$as_me: failed program was:" >&5
4318
sed 's/^/| /' conftest.$ac_ext >&5
4320
ac_cv_lib_resolv_res_send=no
4322
rm -f conftest.err conftest.$ac_objext \
4323
conftest$ac_exeext conftest.$ac_ext
4324
LIBS=$ac_check_lib_save_LIBS
4326
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4327
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4328
if test $ac_cv_lib_resolv_res_send = yes; then
4332
if test "$hesiod" != "yes"; then
4333
HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4335
HESIOD_LIBS="-lhesiod $res_lib"
4342
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4343
if test "${enable_maintainer_mode+set}" = set; then
4344
enableval="$enable_maintainer_mode"
4345
USE_MAINTAINER_MODE=$enableval
4347
USE_MAINTAINER_MODE=no
4349
if test "$USE_MAINTAINER_MODE" = yes; then
4350
MAINTAINER_MODE_TRUE=
4351
MAINTAINER_MODE_FALSE='#'
4352
{ echo "$as_me:$LINENO: enabling maintainer mode" >&5
4353
echo "$as_me: enabling maintainer mode" >&6;}
4355
MAINTAINER_MODE_TRUE='#'
4356
MAINTAINER_MODE_FALSE=
4358
MAINT=$MAINTAINER_MODE_TRUE
4362
test "$program_prefix" != NONE &&
4363
program_transform_name="s,^,$program_prefix,;$program_transform_name"
4364
# Use a double $ so make ignores it.
4365
test "$program_suffix" != NONE &&
4366
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4367
# Double any \ or $. echo might interpret backslashes.
4368
# By default was `s,x,x', remove it if useless.
4369
cat <<\_ACEOF >conftest.sed
4370
s/[\\$]/&&/g;s/;s,x,x,$//
4372
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4374
CONFIG_RELTOPDIR=$ac_reltopdir
4377
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4379
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4381
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4382
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4383
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4384
echo $ECHO_N "(cached) $ECHO_C" >&6
4386
cat >conftest.$ac_ext <<_ACEOF
4389
cat confdefs.h >>conftest.$ac_ext
4390
cat >>conftest.$ac_ext <<_ACEOF
4391
/* end confdefs.h. */
4393
extern int flurbl(void);
4397
if (&flurbl != 0) return flurbl();
4402
rm -f conftest.$ac_objext conftest$ac_exeext
4403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404
(eval $ac_link) 2>conftest.er1
4406
grep -v '^ *+' conftest.er1 >conftest.err
4408
cat conftest.err >&5
4409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410
(exit $ac_status); } &&
4411
{ ac_try='test -z "$ac_c_werror_flag"
4412
|| test ! -s conftest.err'
4413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417
(exit $ac_status); }; } &&
4418
{ ac_try='test -s conftest$ac_exeext'
4419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423
(exit $ac_status); }; }; then
4424
krb5_cv_pragma_weak_ref=yes
4426
echo "$as_me: failed program was:" >&5
4427
sed 's/^/| /' conftest.$ac_ext >&5
4429
krb5_cv_pragma_weak_ref=no
4431
rm -f conftest.err conftest.$ac_objext \
4432
conftest$ac_exeext conftest.$ac_ext
4434
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4435
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4436
if test $krb5_cv_pragma_weak_ref = yes ; then
4438
cat >>confdefs.h <<\_ACEOF
4439
#define HAVE_PRAGMA_WEAK_REF 1
4445
. $ac_topdir/config/shlib.conf
4447
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4448
if test "${enable_delayed_initialization+set}" = set; then
4449
enableval="$enable_delayed_initialization"
4452
enable_delayed_initialization=yes
4454
case "$enable_delayed_initialization" in
4457
cat >>confdefs.h <<\_ACEOF
4458
#define DELAY_INITIALIZER 1
4462
*) { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4463
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4464
{ (exit 1); exit 1; }; } ;;
4466
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4467
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4468
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4469
echo $ECHO_N "(cached) $ECHO_C" >&6
4471
rm -f conftest.1 conftest.2
4472
if test -r conftest.1 || test -r conftest.2 ; then
4473
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4474
echo "$as_me: error: write error in local file system?" >&2;}
4475
{ (exit 1); exit 1; }; }
4479
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4480
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4481
echo "$as_me: error: write error in local file system?" >&2;}
4482
{ (exit 1); exit 1; }; }
4486
# blindly assume we have 'unlink'...
4487
if test "$cross_compiling" = yes; then
4488
{ { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4489
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4490
{ (exit 1); exit 1; }; }
4492
cat >conftest.$ac_ext <<_ACEOF
4495
cat confdefs.h >>conftest.$ac_ext
4496
cat >>conftest.$ac_ext <<_ACEOF
4497
/* end confdefs.h. */
4498
void foo1() __attribute__((constructor));
4499
void foo1() { unlink("conftest.1"); }
4500
void foo2() __attribute__((destructor));
4501
void foo2() { unlink("conftest.2"); }
4502
int main () { return 0; }
4504
rm -f conftest$ac_exeext
4505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506
(eval $ac_link) 2>&5
4508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514
(exit $ac_status); }; }; then
4515
test -r conftest.1 || a=yes
4516
test -r conftest.2 || b=yes
4518
echo "$as_me: program exited with status $ac_status" >&5
4519
echo "$as_me: failed program was:" >&5
4520
sed 's/^/| /' conftest.$ac_ext >&5
4523
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4525
case $krb5_cv_host in
4527
# Under AIX 4.3.3, at least, shared library destructor functions
4528
# appear to get executed in reverse link order (right to left),
4529
# so that a library's destructor function may run after that of
4530
# libraries it depends on, and may still have to access in the
4533
# That counts as "not working", for me, but it's a much more
4534
# complicated test case to set up.
4538
krb5_cv_attr_constructor_destructor="$a,$b"
4541
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4542
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4543
# Okay, krb5_cv_... should be set now.
4544
case $krb5_cv_attr_constructor_destructor in
4547
cat >>confdefs.h <<\_ACEOF
4548
#define CONSTRUCTOR_ATTR_WORKS 1
4552
case $krb5_cv_attr_constructor_destructor in
4555
cat >>confdefs.h <<\_ACEOF
4556
#define DESTRUCTOR_ATTR_WORKS 1
4561
if test -z "$use_linker_init_option" ; then
4562
{ { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4563
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4564
{ (exit 1); exit 1; }; }
4566
if test "$use_linker_init_option" = yes; then
4568
cat >>confdefs.h <<\_ACEOF
4569
#define USE_LINKER_INIT_OPTION 1
4573
if test "$use_linker_fini_option" = yes; then
4575
cat >>confdefs.h <<\_ACEOF
4576
#define USE_LINKER_FINI_OPTION 1
4582
# Check whether --enable-thread-support or --disable-thread-support was given.
4583
if test "${enable_thread_support+set}" = set; then
4584
enableval="$enable_thread_support"
4587
enable_thread_support=yes
4589
if test "$enable_thread_support" = yes ; then
4590
{ echo "$as_me:$LINENO: enabling thread support" >&5
4591
echo "$as_me: enabling thread support" >&6;}
4593
cat >>confdefs.h <<\_ACEOF
4594
#define ENABLE_THREADS 1
4598
if test "$enable_thread_support" = yes; then
4604
ac_cpp='$CPP $CPPFLAGS'
4605
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
# We used to check for pthread.h first, but this fails if pthread.h
4612
# requires special compiler flags (e.g. on True64 or Sequent).
4613
# It gets checked for in the link test anyway.
4615
# First of all, check if the user has set any of the PTHREAD_LIBS,
4616
# etcetera environment variables, and if threads linking works using
4618
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4619
save_CFLAGS="$CFLAGS"
4620
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4622
LIBS="$PTHREAD_LIBS $LIBS"
4623
echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4624
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4625
cat >conftest.$ac_ext <<_ACEOF
4628
cat confdefs.h >>conftest.$ac_ext
4629
cat >>conftest.$ac_ext <<_ACEOF
4630
/* end confdefs.h. */
4632
/* Override any gcc2 internal prototype to avoid an error. */
4636
/* We use char because int might match the return type of a gcc2
4637
builtin and then its argument prototype would still apply. */
4638
char pthread_join ();
4647
rm -f conftest.$ac_objext conftest$ac_exeext
4648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649
(eval $ac_link) 2>conftest.er1
4651
grep -v '^ *+' conftest.er1 >conftest.err
4653
cat conftest.err >&5
4654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
(exit $ac_status); } &&
4656
{ ac_try='test -z "$ac_c_werror_flag"
4657
|| test ! -s conftest.err'
4658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); }; } &&
4663
{ ac_try='test -s conftest$ac_exeext'
4664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); }; }; then
4671
echo "$as_me: failed program was:" >&5
4672
sed 's/^/| /' conftest.$ac_ext >&5
4675
rm -f conftest.err conftest.$ac_objext \
4676
conftest$ac_exeext conftest.$ac_ext
4677
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4678
echo "${ECHO_T}$acx_pthread_ok" >&6
4679
if test x"$acx_pthread_ok" = xno; then
4684
CFLAGS="$save_CFLAGS"
4687
# We must check for the threads library under a number of different
4688
# names; the ordering is very important because some systems
4689
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4690
# libraries is broken (non-POSIX).
4692
# Create a list of thread flags to try. Items starting with a "-" are
4693
# C compiler flags, and other items are library names, except for "none"
4694
# which indicates that we try without any flags at all, and "pthread-config"
4695
# which is a program returning the flags for the Pth emulation library.
4697
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4699
# The ordering *is* (sometimes) important. Some notes on the
4700
# individual items follow:
4702
# pthreads: AIX (must check this before -lpthread)
4703
# none: in case threads are in libc; should be tried before -Kthread and
4704
# other compiler flags to prevent continual compiler warnings
4705
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4706
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4707
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4708
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4709
# -pthreads: Solaris/gcc
4710
# -mthreads: Mingw32/gcc, Lynx/gcc
4711
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4712
# doesn't hurt to check since this sometimes defines pthreads too;
4713
# also defines -D_REENTRANT)
4714
# pthread: Linux, etcetera
4715
# --thread-safe: KAI C++
4716
# pthread-config: use pthread-config program (for GNU Pth library)
4718
case "${host_cpu}-${host_os}" in
4721
# On Solaris (at least, for some versions), libc contains stubbed
4722
# (non-functional) versions of the pthreads routines, so link-based
4723
# tests will erroneously succeed. (We need to link with -pthread or
4724
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4725
# a function called by this macro, so we could check for that, but
4726
# who knows whether they'll stub that too in a future libc.) So,
4727
# we'll just look for -pthreads and -lpthread first:
4729
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
4733
if test x"$acx_pthread_ok" = xno; then
4734
for flag in $acx_pthread_flags; do
4738
echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4739
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
4743
echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4744
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
4745
PTHREAD_CFLAGS="$flag"
4749
# Extract the first word of "pthread-config", so it can be a program name with args.
4750
set dummy pthread-config; ac_word=$2
4751
echo "$as_me:$LINENO: checking for $ac_word" >&5
4752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4753
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
4754
echo $ECHO_N "(cached) $ECHO_C" >&6
4756
if test -n "$acx_pthread_config"; then
4757
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763
test -z "$as_dir" && as_dir=.
4764
for ac_exec_ext in '' $ac_executable_extensions; do
4765
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766
ac_cv_prog_acx_pthread_config="yes"
4767
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4776
acx_pthread_config=$ac_cv_prog_acx_pthread_config
4777
if test -n "$acx_pthread_config"; then
4778
echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
4779
echo "${ECHO_T}$acx_pthread_config" >&6
4781
echo "$as_me:$LINENO: result: no" >&5
4782
echo "${ECHO_T}no" >&6
4785
if test x"$acx_pthread_config" = xno; then continue; fi
4786
PTHREAD_CFLAGS="`pthread-config --cflags`"
4787
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4791
echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4792
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
4793
PTHREAD_LIBS="-l$flag"
4798
save_CFLAGS="$CFLAGS"
4799
LIBS="$PTHREAD_LIBS $LIBS"
4800
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4802
# Check for various functions. We must include pthread.h,
4803
# since some functions may be macros. (On the Sequent, we
4804
# need a special flag -Kthread to make this header compile.)
4805
# We check for pthread_join because it is in -lpthread on IRIX
4806
# while pthread_create is in libc. We check for pthread_attr_init
4807
# due to DEC craziness with -lpthreads. We check for
4808
# pthread_cleanup_push because it is one of the few pthread
4809
# functions on Solaris that doesn't have a non-functional libc stub.
4810
# We try pthread_create on general principles.
4811
cat >conftest.$ac_ext <<_ACEOF
4814
cat confdefs.h >>conftest.$ac_ext
4815
cat >>conftest.$ac_ext <<_ACEOF
4816
/* end confdefs.h. */
4817
#include <pthread.h>
4821
pthread_t th; pthread_join(th, 0);
4822
pthread_attr_init(0); pthread_cleanup_push(0, 0);
4823
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4828
rm -f conftest.$ac_objext conftest$ac_exeext
4829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830
(eval $ac_link) 2>conftest.er1
4832
grep -v '^ *+' conftest.er1 >conftest.err
4834
cat conftest.err >&5
4835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
(exit $ac_status); } &&
4837
{ ac_try='test -z "$ac_c_werror_flag"
4838
|| test ! -s conftest.err'
4839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
(exit $ac_status); }; } &&
4844
{ ac_try='test -s conftest$ac_exeext'
4845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
(exit $ac_status); }; }; then
4852
echo "$as_me: failed program was:" >&5
4853
sed 's/^/| /' conftest.$ac_ext >&5
4856
rm -f conftest.err conftest.$ac_objext \
4857
conftest$ac_exeext conftest.$ac_ext
4860
CFLAGS="$save_CFLAGS"
4862
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4863
echo "${ECHO_T}$acx_pthread_ok" >&6
4864
if test "x$acx_pthread_ok" = xyes; then
4873
# Various other checks:
4874
if test "x$acx_pthread_ok" = xyes; then
4876
LIBS="$PTHREAD_LIBS $LIBS"
4877
save_CFLAGS="$CFLAGS"
4878
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4880
# Detect AIX lossage: threads are created detached by default
4881
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4882
echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4883
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
4884
cat >conftest.$ac_ext <<_ACEOF
4887
cat confdefs.h >>conftest.$ac_ext
4888
cat >>conftest.$ac_ext <<_ACEOF
4889
/* end confdefs.h. */
4890
#include <pthread.h>
4894
int attr=PTHREAD_CREATE_JOINABLE;
4899
rm -f conftest.$ac_objext conftest$ac_exeext
4900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901
(eval $ac_link) 2>conftest.er1
4903
grep -v '^ *+' conftest.er1 >conftest.err
4905
cat conftest.err >&5
4906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907
(exit $ac_status); } &&
4908
{ ac_try='test -z "$ac_c_werror_flag"
4909
|| test ! -s conftest.err'
4910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914
(exit $ac_status); }; } &&
4915
{ ac_try='test -s conftest$ac_exeext'
4916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920
(exit $ac_status); }; }; then
4921
ok=PTHREAD_CREATE_JOINABLE
4923
echo "$as_me: failed program was:" >&5
4924
sed 's/^/| /' conftest.$ac_ext >&5
4928
rm -f conftest.err conftest.$ac_objext \
4929
conftest$ac_exeext conftest.$ac_ext
4930
if test x"$ok" = xunknown; then
4931
cat >conftest.$ac_ext <<_ACEOF
4934
cat confdefs.h >>conftest.$ac_ext
4935
cat >>conftest.$ac_ext <<_ACEOF
4936
/* end confdefs.h. */
4937
#include <pthread.h>
4941
int attr=PTHREAD_CREATE_UNDETACHED;
4946
rm -f conftest.$ac_objext conftest$ac_exeext
4947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948
(eval $ac_link) 2>conftest.er1
4950
grep -v '^ *+' conftest.er1 >conftest.err
4952
cat conftest.err >&5
4953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
(exit $ac_status); } &&
4955
{ ac_try='test -z "$ac_c_werror_flag"
4956
|| test ! -s conftest.err'
4957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
(exit $ac_status); }; } &&
4962
{ ac_try='test -s conftest$ac_exeext'
4963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967
(exit $ac_status); }; }; then
4968
ok=PTHREAD_CREATE_UNDETACHED
4970
echo "$as_me: failed program was:" >&5
4971
sed 's/^/| /' conftest.$ac_ext >&5
4975
rm -f conftest.err conftest.$ac_objext \
4976
conftest$ac_exeext conftest.$ac_ext
4978
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4980
cat >>confdefs.h <<\_ACEOF
4981
#define PTHREAD_CREATE_JOINABLE $ok
4985
echo "$as_me:$LINENO: result: ${ok}" >&5
4986
echo "${ECHO_T}${ok}" >&6
4987
if test x"$ok" = xunknown; then
4988
{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
4989
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4992
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4993
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
4995
case "${host_cpu}-${host_os}" in
4996
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
4997
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4999
echo "$as_me:$LINENO: result: ${flag}" >&5
5000
echo "${ECHO_T}${flag}" >&6
5001
if test "x$flag" != xno; then
5002
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5006
CFLAGS="$save_CFLAGS"
5008
# More AIX lossage: must compile with cc_r
5009
# Extract the first word of "cc_r", so it can be a program name with args.
5010
set dummy cc_r; ac_word=$2
5011
echo "$as_me:$LINENO: checking for $ac_word" >&5
5012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5014
echo $ECHO_N "(cached) $ECHO_C" >&6
5016
if test -n "$PTHREAD_CC"; then
5017
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023
test -z "$as_dir" && as_dir=.
5024
for ac_exec_ext in '' $ac_executable_extensions; do
5025
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026
ac_cv_prog_PTHREAD_CC="cc_r"
5027
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5036
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5037
if test -n "$PTHREAD_CC"; then
5038
echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5039
echo "${ECHO_T}$PTHREAD_CC" >&6
5041
echo "$as_me:$LINENO: result: no" >&5
5042
echo "${ECHO_T}no" >&6
5053
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5054
if test x"$acx_pthread_ok" = xyes; then
5056
cat >>confdefs.h <<\_ACEOF
5057
#define HAVE_PTHREAD 1
5063
{ { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support" >&5
5064
echo "$as_me: error: cannot determine options for enabling thread support" >&2;}
5065
{ (exit 1); exit 1; }; }
5068
ac_cpp='$CPP $CPPFLAGS'
5069
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
{ echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5075
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5076
{ echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5077
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5078
{ echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5079
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5080
# AIX and Tru64 don't support weak references, and don't have
5081
# stub versions of the pthread code in libc.
5082
case "${host_os}" in
5084
# On these platforms, we'll always pull in the thread support.
5085
LIBS="$LIBS $PTHREAD_LIBS"
5086
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5087
# We don't need to sometimes add the flags we've just folded in...
5092
# These are the flags that "gcc -pthread" adds. But we don't
5093
# want "-pthread" because that has link-time effects, and we
5094
# don't exclude CFLAGS when linking. *sigh*
5095
CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5102
for ac_func in pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init
5104
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5105
echo "$as_me:$LINENO: checking for $ac_func" >&5
5106
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5107
if eval "test \"\${$as_ac_var+set}\" = set"; then
5108
echo $ECHO_N "(cached) $ECHO_C" >&6
5110
cat >conftest.$ac_ext <<_ACEOF
5113
cat confdefs.h >>conftest.$ac_ext
5114
cat >>conftest.$ac_ext <<_ACEOF
5115
/* end confdefs.h. */
5116
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5117
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5118
#define $ac_func innocuous_$ac_func
5120
/* System header to define __stub macros and hopefully few prototypes,
5121
which can conflict with char $ac_func (); below.
5122
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123
<limits.h> exists even on freestanding compilers. */
5126
# include <limits.h>
5128
# include <assert.h>
5133
/* Override any gcc2 internal prototype to avoid an error. */
5138
/* We use char because int might match the return type of a gcc2
5139
builtin and then its argument prototype would still apply. */
5141
/* The GNU C library defines this for functions which it implements
5142
to always fail with ENOSYS. Some functions are actually named
5143
something starting with __ and the normal name is an alias. */
5144
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5147
char (*f) () = $ac_func;
5156
return f != $ac_func;
5161
rm -f conftest.$ac_objext conftest$ac_exeext
5162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163
(eval $ac_link) 2>conftest.er1
5165
grep -v '^ *+' conftest.er1 >conftest.err
5167
cat conftest.err >&5
5168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169
(exit $ac_status); } &&
5170
{ ac_try='test -z "$ac_c_werror_flag"
5171
|| test ! -s conftest.err'
5172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176
(exit $ac_status); }; } &&
5177
{ ac_try='test -s conftest$ac_exeext'
5178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182
(exit $ac_status); }; }; then
5183
eval "$as_ac_var=yes"
5185
echo "$as_me: failed program was:" >&5
5186
sed 's/^/| /' conftest.$ac_ext >&5
5188
eval "$as_ac_var=no"
5190
rm -f conftest.err conftest.$ac_objext \
5191
conftest$ac_exeext conftest.$ac_ext
5193
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5194
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5195
if test `eval echo '${'$as_ac_var'}'` = yes; then
5196
cat >>confdefs.h <<_ACEOF
5197
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5204
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5205
old_CFLAGS="$CFLAGS"
5206
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5207
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5210
LIBS="$PTHREAD_LIBS $LIBS"
5211
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5212
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5213
echo "$as_me:$LINENO: checking for pthread_mutexattr_setrobust_np in -lc" >&5
5214
echo $ECHO_N "checking for pthread_mutexattr_setrobust_np in -lc... $ECHO_C" >&6
5215
if test "${ac_cv_lib_c_pthread_mutexattr_setrobust_np+set}" = set; then
5216
echo $ECHO_N "(cached) $ECHO_C" >&6
5218
ac_check_lib_save_LIBS=$LIBS
5220
cat >conftest.$ac_ext <<_ACEOF
5223
cat confdefs.h >>conftest.$ac_ext
5224
cat >>conftest.$ac_ext <<_ACEOF
5225
/* end confdefs.h. */
5227
/* Override any gcc2 internal prototype to avoid an error. */
5231
/* We use char because int might match the return type of a gcc2
5232
builtin and then its argument prototype would still apply. */
5233
char pthread_mutexattr_setrobust_np ();
5237
pthread_mutexattr_setrobust_np ();
5242
rm -f conftest.$ac_objext conftest$ac_exeext
5243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244
(eval $ac_link) 2>conftest.er1
5246
grep -v '^ *+' conftest.er1 >conftest.err
5248
cat conftest.err >&5
5249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
(exit $ac_status); } &&
5251
{ ac_try='test -z "$ac_c_werror_flag"
5252
|| test ! -s conftest.err'
5253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); }; } &&
5258
{ ac_try='test -s conftest$ac_exeext'
5259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); }; }; then
5264
ac_cv_lib_c_pthread_mutexattr_setrobust_np=yes
5266
echo "$as_me: failed program was:" >&5
5267
sed 's/^/| /' conftest.$ac_ext >&5
5269
ac_cv_lib_c_pthread_mutexattr_setrobust_np=no
5271
rm -f conftest.err conftest.$ac_objext \
5272
conftest$ac_exeext conftest.$ac_ext
5273
LIBS=$ac_check_lib_save_LIBS
5275
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutexattr_setrobust_np" >&5
5276
echo "${ECHO_T}$ac_cv_lib_c_pthread_mutexattr_setrobust_np" >&6
5277
if test $ac_cv_lib_c_pthread_mutexattr_setrobust_np = yes; then
5279
cat >>confdefs.h <<\_ACEOF
5280
#define HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB 1
5285
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5286
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5287
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5288
echo $ECHO_N "(cached) $ECHO_C" >&6
5290
ac_check_lib_save_LIBS=$LIBS
5292
cat >conftest.$ac_ext <<_ACEOF
5295
cat confdefs.h >>conftest.$ac_ext
5296
cat >>conftest.$ac_ext <<_ACEOF
5297
/* end confdefs.h. */
5299
/* Override any gcc2 internal prototype to avoid an error. */
5303
/* We use char because int might match the return type of a gcc2
5304
builtin and then its argument prototype would still apply. */
5305
char pthread_rwlock_init ();
5309
pthread_rwlock_init ();
5314
rm -f conftest.$ac_objext conftest$ac_exeext
5315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316
(eval $ac_link) 2>conftest.er1
5318
grep -v '^ *+' conftest.er1 >conftest.err
5320
cat conftest.err >&5
5321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
(exit $ac_status); } &&
5323
{ ac_try='test -z "$ac_c_werror_flag"
5324
|| test ! -s conftest.err'
5325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329
(exit $ac_status); }; } &&
5330
{ ac_try='test -s conftest$ac_exeext'
5331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335
(exit $ac_status); }; }; then
5336
ac_cv_lib_c_pthread_rwlock_init=yes
5338
echo "$as_me: failed program was:" >&5
5339
sed 's/^/| /' conftest.$ac_ext >&5
5341
ac_cv_lib_c_pthread_rwlock_init=no
5343
rm -f conftest.err conftest.$ac_objext \
5344
conftest$ac_exeext conftest.$ac_ext
5345
LIBS=$ac_check_lib_save_LIBS
5347
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5348
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5349
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5351
cat >>confdefs.h <<\_ACEOF
5352
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5359
CFLAGS="$old_CFLAGS"
5362
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5363
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5364
if test "${ac_cv_c_const+set}" = set; then
5365
echo $ECHO_N "(cached) $ECHO_C" >&6
5367
cat >conftest.$ac_ext <<_ACEOF
5370
cat confdefs.h >>conftest.$ac_ext
5371
cat >>conftest.$ac_ext <<_ACEOF
5372
/* end confdefs.h. */
5377
/* FIXME: Include the comments suggested by Paul. */
5379
/* Ultrix mips cc rejects this. */
5380
typedef int charset[2];
5382
/* SunOS 4.1.1 cc rejects this. */
5383
char const *const *ccp;
5385
/* NEC SVR4.0.2 mips cc rejects this. */
5386
struct point {int x, y;};
5387
static struct point const zero = {0,0};
5388
/* AIX XL C 1.02.0.0 rejects this.
5389
It does not let you subtract one const X* pointer from another in
5390
an arm of an if-expression whose if-part is not a constant
5392
const char *g = "string";
5393
ccp = &g + (g ? g-g : 0);
5394
/* HPUX 7.0 cc rejects these. */
5397
ccp = (char const *const *) p;
5398
{ /* SCO 3.2v4 cc rejects this. */
5400
char const *s = 0 ? (char *) 0 : (char const *) 0;
5404
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5406
const int *foo = &x[0];
5409
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5410
typedef const int *iptr;
5414
{ /* AIX XL C 1.02.0.0 rejects this saying
5415
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5416
struct s { int j; const int *ap[3]; };
5417
struct s *b; b->j = 5;
5419
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
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"
5438
|| test ! -s conftest.err'
5439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); }; } &&
5444
{ ac_try='test -s conftest.$ac_objext'
5445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449
(exit $ac_status); }; }; then
5452
echo "$as_me: failed program was:" >&5
5453
sed 's/^/| /' conftest.$ac_ext >&5
5457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5460
echo "${ECHO_T}$ac_cv_c_const" >&6
5461
if test $ac_cv_c_const = no; then
5463
cat >>confdefs.h <<\_ACEOF
5469
echo "$as_me:$LINENO: checking for egrep" >&5
5470
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471
if test "${ac_cv_prog_egrep+set}" = set; then
5472
echo $ECHO_N "(cached) $ECHO_C" >&6
5474
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475
then ac_cv_prog_egrep='grep -E'
5476
else ac_cv_prog_egrep='egrep'
5479
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481
EGREP=$ac_cv_prog_egrep
5484
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486
if test "${ac_cv_header_stdc+set}" = set; then
5487
echo $ECHO_N "(cached) $ECHO_C" >&6
5489
cat >conftest.$ac_ext <<_ACEOF
5492
cat confdefs.h >>conftest.$ac_ext
5493
cat >>conftest.$ac_ext <<_ACEOF
5494
/* end confdefs.h. */
5508
rm -f conftest.$ac_objext
5509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510
(eval $ac_compile) 2>conftest.er1
5512
grep -v '^ *+' conftest.er1 >conftest.err
5514
cat conftest.err >&5
5515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516
(exit $ac_status); } &&
5517
{ ac_try='test -z "$ac_c_werror_flag"
5518
|| test ! -s conftest.err'
5519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523
(exit $ac_status); }; } &&
5524
{ ac_try='test -s conftest.$ac_objext'
5525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529
(exit $ac_status); }; }; then
5530
ac_cv_header_stdc=yes
5532
echo "$as_me: failed program was:" >&5
5533
sed 's/^/| /' conftest.$ac_ext >&5
5535
ac_cv_header_stdc=no
5537
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539
if test $ac_cv_header_stdc = yes; then
5540
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5541
cat >conftest.$ac_ext <<_ACEOF
5544
cat confdefs.h >>conftest.$ac_ext
5545
cat >>conftest.$ac_ext <<_ACEOF
5546
/* end confdefs.h. */
5550
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551
$EGREP "memchr" >/dev/null 2>&1; then
5554
ac_cv_header_stdc=no
5560
if test $ac_cv_header_stdc = yes; then
5561
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562
cat >conftest.$ac_ext <<_ACEOF
5565
cat confdefs.h >>conftest.$ac_ext
5566
cat >>conftest.$ac_ext <<_ACEOF
5567
/* end confdefs.h. */
5571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572
$EGREP "free" >/dev/null 2>&1; then
5575
ac_cv_header_stdc=no
5581
if test $ac_cv_header_stdc = yes; then
5582
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5583
if test "$cross_compiling" = yes; then
5586
cat >conftest.$ac_ext <<_ACEOF
5589
cat confdefs.h >>conftest.$ac_ext
5590
cat >>conftest.$ac_ext <<_ACEOF
5591
/* end confdefs.h. */
5593
#if ((' ' & 0x0FF) == 0x020)
5594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5597
# define ISLOWER(c) \
5598
(('a' <= (c) && (c) <= 'i') \
5599
|| ('j' <= (c) && (c) <= 'r') \
5600
|| ('s' <= (c) && (c) <= 'z'))
5601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5609
for (i = 0; i < 256; i++)
5610
if (XOR (islower (i), ISLOWER (i))
5611
|| toupper (i) != TOUPPER (i))
5616
rm -f conftest$ac_exeext
5617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618
(eval $ac_link) 2>&5
5620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626
(exit $ac_status); }; }; then
5629
echo "$as_me: program exited with status $ac_status" >&5
5630
echo "$as_me: failed program was:" >&5
5631
sed 's/^/| /' conftest.$ac_ext >&5
5634
ac_cv_header_stdc=no
5636
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5640
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5641
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5642
if test $ac_cv_header_stdc = yes; then
5644
cat >>confdefs.h <<\_ACEOF
5645
#define STDC_HEADERS 1
5650
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5660
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5661
inttypes.h stdint.h unistd.h
5663
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5664
echo "$as_me:$LINENO: checking for $ac_header" >&5
5665
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667
echo $ECHO_N "(cached) $ECHO_C" >&6
5669
cat >conftest.$ac_ext <<_ACEOF
5672
cat confdefs.h >>conftest.$ac_ext
5673
cat >>conftest.$ac_ext <<_ACEOF
5674
/* end confdefs.h. */
5675
$ac_includes_default
5677
#include <$ac_header>
5679
rm -f conftest.$ac_objext
5680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681
(eval $ac_compile) 2>conftest.er1
5683
grep -v '^ *+' conftest.er1 >conftest.err
5685
cat conftest.err >&5
5686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687
(exit $ac_status); } &&
5688
{ ac_try='test -z "$ac_c_werror_flag"
5689
|| test ! -s conftest.err'
5690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694
(exit $ac_status); }; } &&
5695
{ ac_try='test -s conftest.$ac_objext'
5696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700
(exit $ac_status); }; }; then
5701
eval "$as_ac_Header=yes"
5703
echo "$as_me: failed program was:" >&5
5704
sed 's/^/| /' conftest.$ac_ext >&5
5706
eval "$as_ac_Header=no"
5708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5710
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5711
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5712
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5713
cat >>confdefs.h <<_ACEOF
5714
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722
echo "$as_me:$LINENO: checking for short" >&5
5723
echo $ECHO_N "checking for short... $ECHO_C" >&6
5724
if test "${ac_cv_type_short+set}" = set; then
5725
echo $ECHO_N "(cached) $ECHO_C" >&6
5727
cat >conftest.$ac_ext <<_ACEOF
5730
cat confdefs.h >>conftest.$ac_ext
5731
cat >>conftest.$ac_ext <<_ACEOF
5732
/* end confdefs.h. */
5733
$ac_includes_default
5745
rm -f conftest.$ac_objext
5746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747
(eval $ac_compile) 2>conftest.er1
5749
grep -v '^ *+' conftest.er1 >conftest.err
5751
cat conftest.err >&5
5752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
(exit $ac_status); } &&
5754
{ ac_try='test -z "$ac_c_werror_flag"
5755
|| test ! -s conftest.err'
5756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760
(exit $ac_status); }; } &&
5761
{ ac_try='test -s conftest.$ac_objext'
5762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766
(exit $ac_status); }; }; then
5767
ac_cv_type_short=yes
5769
echo "$as_me: failed program was:" >&5
5770
sed 's/^/| /' conftest.$ac_ext >&5
5774
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5777
echo "${ECHO_T}$ac_cv_type_short" >&6
5779
echo "$as_me:$LINENO: checking size of short" >&5
5780
echo $ECHO_N "checking size of short... $ECHO_C" >&6
5781
if test "${ac_cv_sizeof_short+set}" = set; then
5782
echo $ECHO_N "(cached) $ECHO_C" >&6
5784
if test "$ac_cv_type_short" = yes; then
5785
# The cast to unsigned long works around a bug in the HP C Compiler
5786
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788
# This bug is HP SR number 8606223364.
5789
if test "$cross_compiling" = yes; then
5790
# Depending upon the size, compute the lo and hi bounds.
5791
cat >conftest.$ac_ext <<_ACEOF
5794
cat confdefs.h >>conftest.$ac_ext
5795
cat >>conftest.$ac_ext <<_ACEOF
5796
/* end confdefs.h. */
5797
$ac_includes_default
5801
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5808
rm -f conftest.$ac_objext
5809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810
(eval $ac_compile) 2>conftest.er1
5812
grep -v '^ *+' conftest.er1 >conftest.err
5814
cat conftest.err >&5
5815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816
(exit $ac_status); } &&
5817
{ ac_try='test -z "$ac_c_werror_flag"
5818
|| test ! -s conftest.err'
5819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823
(exit $ac_status); }; } &&
5824
{ ac_try='test -s conftest.$ac_objext'
5825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829
(exit $ac_status); }; }; then
5832
cat >conftest.$ac_ext <<_ACEOF
5835
cat confdefs.h >>conftest.$ac_ext
5836
cat >>conftest.$ac_ext <<_ACEOF
5837
/* end confdefs.h. */
5838
$ac_includes_default
5842
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5849
rm -f conftest.$ac_objext
5850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851
(eval $ac_compile) 2>conftest.er1
5853
grep -v '^ *+' conftest.er1 >conftest.err
5855
cat conftest.err >&5
5856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
(exit $ac_status); } &&
5858
{ ac_try='test -z "$ac_c_werror_flag"
5859
|| test ! -s conftest.err'
5860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864
(exit $ac_status); }; } &&
5865
{ ac_try='test -s conftest.$ac_objext'
5866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
(exit $ac_status); }; }; then
5871
ac_hi=$ac_mid; break
5873
echo "$as_me: failed program was:" >&5
5874
sed 's/^/| /' conftest.$ac_ext >&5
5876
ac_lo=`expr $ac_mid + 1`
5877
if test $ac_lo -le $ac_mid; then
5881
ac_mid=`expr 2 '*' $ac_mid + 1`
5883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886
echo "$as_me: failed program was:" >&5
5887
sed 's/^/| /' conftest.$ac_ext >&5
5889
cat >conftest.$ac_ext <<_ACEOF
5892
cat confdefs.h >>conftest.$ac_ext
5893
cat >>conftest.$ac_ext <<_ACEOF
5894
/* end confdefs.h. */
5895
$ac_includes_default
5899
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5906
rm -f conftest.$ac_objext
5907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908
(eval $ac_compile) 2>conftest.er1
5910
grep -v '^ *+' conftest.er1 >conftest.err
5912
cat conftest.err >&5
5913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
(exit $ac_status); } &&
5915
{ ac_try='test -z "$ac_c_werror_flag"
5916
|| test ! -s conftest.err'
5917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
(exit $ac_status); }; } &&
5922
{ ac_try='test -s conftest.$ac_objext'
5923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
(exit $ac_status); }; }; then
5930
cat >conftest.$ac_ext <<_ACEOF
5933
cat confdefs.h >>conftest.$ac_ext
5934
cat >>conftest.$ac_ext <<_ACEOF
5935
/* end confdefs.h. */
5936
$ac_includes_default
5940
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5947
rm -f conftest.$ac_objext
5948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949
(eval $ac_compile) 2>conftest.er1
5951
grep -v '^ *+' conftest.er1 >conftest.err
5953
cat conftest.err >&5
5954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955
(exit $ac_status); } &&
5956
{ ac_try='test -z "$ac_c_werror_flag"
5957
|| test ! -s conftest.err'
5958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962
(exit $ac_status); }; } &&
5963
{ ac_try='test -s conftest.$ac_objext'
5964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968
(exit $ac_status); }; }; then
5969
ac_lo=$ac_mid; break
5971
echo "$as_me: failed program was:" >&5
5972
sed 's/^/| /' conftest.$ac_ext >&5
5974
ac_hi=`expr '(' $ac_mid ')' - 1`
5975
if test $ac_mid -le $ac_hi; then
5979
ac_mid=`expr 2 '*' $ac_mid`
5981
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984
echo "$as_me: failed program was:" >&5
5985
sed 's/^/| /' conftest.$ac_ext >&5
5989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992
# Binary search between lo and hi bounds.
5993
while test "x$ac_lo" != "x$ac_hi"; do
5994
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5995
cat >conftest.$ac_ext <<_ACEOF
5998
cat confdefs.h >>conftest.$ac_ext
5999
cat >>conftest.$ac_ext <<_ACEOF
6000
/* end confdefs.h. */
6001
$ac_includes_default
6005
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6012
rm -f conftest.$ac_objext
6013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014
(eval $ac_compile) 2>conftest.er1
6016
grep -v '^ *+' conftest.er1 >conftest.err
6018
cat conftest.err >&5
6019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020
(exit $ac_status); } &&
6021
{ ac_try='test -z "$ac_c_werror_flag"
6022
|| test ! -s conftest.err'
6023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027
(exit $ac_status); }; } &&
6028
{ ac_try='test -s conftest.$ac_objext'
6029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033
(exit $ac_status); }; }; then
6036
echo "$as_me: failed program was:" >&5
6037
sed 's/^/| /' conftest.$ac_ext >&5
6039
ac_lo=`expr '(' $ac_mid ')' + 1`
6041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044
?*) ac_cv_sizeof_short=$ac_lo;;
6045
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6046
See \`config.log' for more details." >&5
6047
echo "$as_me: error: cannot compute sizeof (short), 77
6048
See \`config.log' for more details." >&2;}
6049
{ (exit 1); exit 1; }; } ;;
6052
if test "$cross_compiling" = yes; then
6053
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6054
See \`config.log' for more details." >&5
6055
echo "$as_me: error: cannot run test program while cross compiling
6056
See \`config.log' for more details." >&2;}
6057
{ (exit 1); exit 1; }; }
6059
cat >conftest.$ac_ext <<_ACEOF
6062
cat confdefs.h >>conftest.$ac_ext
6063
cat >>conftest.$ac_ext <<_ACEOF
6064
/* end confdefs.h. */
6065
$ac_includes_default
6066
long longval () { return (long) (sizeof (short)); }
6067
unsigned long ulongval () { return (long) (sizeof (short)); }
6074
FILE *f = fopen ("conftest.val", "w");
6077
if (((long) (sizeof (short))) < 0)
6079
long i = longval ();
6080
if (i != ((long) (sizeof (short))))
6082
fprintf (f, "%ld\n", i);
6086
unsigned long i = ulongval ();
6087
if (i != ((long) (sizeof (short))))
6089
fprintf (f, "%lu\n", i);
6091
exit (ferror (f) || fclose (f) != 0);
6097
rm -f conftest$ac_exeext
6098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6099
(eval $ac_link) 2>&5
6101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
(exit $ac_status); }; }; then
6108
ac_cv_sizeof_short=`cat conftest.val`
6110
echo "$as_me: program exited with status $ac_status" >&5
6111
echo "$as_me: failed program was:" >&5
6112
sed 's/^/| /' conftest.$ac_ext >&5
6115
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6116
See \`config.log' for more details." >&5
6117
echo "$as_me: error: cannot compute sizeof (short), 77
6118
See \`config.log' for more details." >&2;}
6119
{ (exit 1); exit 1; }; }
6121
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6126
ac_cv_sizeof_short=0
6129
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6130
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6131
cat >>confdefs.h <<_ACEOF
6132
#define SIZEOF_SHORT $ac_cv_sizeof_short
6136
echo "$as_me:$LINENO: checking for int" >&5
6137
echo $ECHO_N "checking for int... $ECHO_C" >&6
6138
if test "${ac_cv_type_int+set}" = set; then
6139
echo $ECHO_N "(cached) $ECHO_C" >&6
6141
cat >conftest.$ac_ext <<_ACEOF
6144
cat confdefs.h >>conftest.$ac_ext
6145
cat >>conftest.$ac_ext <<_ACEOF
6146
/* end confdefs.h. */
6147
$ac_includes_default
6159
rm -f conftest.$ac_objext
6160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161
(eval $ac_compile) 2>conftest.er1
6163
grep -v '^ *+' conftest.er1 >conftest.err
6165
cat conftest.err >&5
6166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167
(exit $ac_status); } &&
6168
{ ac_try='test -z "$ac_c_werror_flag"
6169
|| test ! -s conftest.err'
6170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174
(exit $ac_status); }; } &&
6175
{ ac_try='test -s conftest.$ac_objext'
6176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
(exit $ac_status); }; }; then
6183
echo "$as_me: failed program was:" >&5
6184
sed 's/^/| /' conftest.$ac_ext >&5
6188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6191
echo "${ECHO_T}$ac_cv_type_int" >&6
6193
echo "$as_me:$LINENO: checking size of int" >&5
6194
echo $ECHO_N "checking size of int... $ECHO_C" >&6
6195
if test "${ac_cv_sizeof_int+set}" = set; then
6196
echo $ECHO_N "(cached) $ECHO_C" >&6
6198
if test "$ac_cv_type_int" = yes; then
6199
# The cast to unsigned long works around a bug in the HP C Compiler
6200
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6201
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6202
# This bug is HP SR number 8606223364.
6203
if test "$cross_compiling" = yes; then
6204
# Depending upon the size, compute the lo and hi bounds.
6205
cat >conftest.$ac_ext <<_ACEOF
6208
cat confdefs.h >>conftest.$ac_ext
6209
cat >>conftest.$ac_ext <<_ACEOF
6210
/* end confdefs.h. */
6211
$ac_includes_default
6215
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6222
rm -f conftest.$ac_objext
6223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224
(eval $ac_compile) 2>conftest.er1
6226
grep -v '^ *+' conftest.er1 >conftest.err
6228
cat conftest.err >&5
6229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230
(exit $ac_status); } &&
6231
{ ac_try='test -z "$ac_c_werror_flag"
6232
|| test ! -s conftest.err'
6233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237
(exit $ac_status); }; } &&
6238
{ ac_try='test -s conftest.$ac_objext'
6239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
(exit $ac_status); }; }; then
6246
cat >conftest.$ac_ext <<_ACEOF
6249
cat confdefs.h >>conftest.$ac_ext
6250
cat >>conftest.$ac_ext <<_ACEOF
6251
/* end confdefs.h. */
6252
$ac_includes_default
6256
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6263
rm -f conftest.$ac_objext
6264
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265
(eval $ac_compile) 2>conftest.er1
6267
grep -v '^ *+' conftest.er1 >conftest.err
6269
cat conftest.err >&5
6270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271
(exit $ac_status); } &&
6272
{ ac_try='test -z "$ac_c_werror_flag"
6273
|| test ! -s conftest.err'
6274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
(exit $ac_status); }; } &&
6279
{ ac_try='test -s conftest.$ac_objext'
6280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284
(exit $ac_status); }; }; then
6285
ac_hi=$ac_mid; break
6287
echo "$as_me: failed program was:" >&5
6288
sed 's/^/| /' conftest.$ac_ext >&5
6290
ac_lo=`expr $ac_mid + 1`
6291
if test $ac_lo -le $ac_mid; then
6295
ac_mid=`expr 2 '*' $ac_mid + 1`
6297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300
echo "$as_me: failed program was:" >&5
6301
sed 's/^/| /' conftest.$ac_ext >&5
6303
cat >conftest.$ac_ext <<_ACEOF
6306
cat confdefs.h >>conftest.$ac_ext
6307
cat >>conftest.$ac_ext <<_ACEOF
6308
/* end confdefs.h. */
6309
$ac_includes_default
6313
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6320
rm -f conftest.$ac_objext
6321
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322
(eval $ac_compile) 2>conftest.er1
6324
grep -v '^ *+' conftest.er1 >conftest.err
6326
cat conftest.err >&5
6327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328
(exit $ac_status); } &&
6329
{ ac_try='test -z "$ac_c_werror_flag"
6330
|| test ! -s conftest.err'
6331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335
(exit $ac_status); }; } &&
6336
{ ac_try='test -s conftest.$ac_objext'
6337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341
(exit $ac_status); }; }; then
6344
cat >conftest.$ac_ext <<_ACEOF
6347
cat confdefs.h >>conftest.$ac_ext
6348
cat >>conftest.$ac_ext <<_ACEOF
6349
/* end confdefs.h. */
6350
$ac_includes_default
6354
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6361
rm -f conftest.$ac_objext
6362
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363
(eval $ac_compile) 2>conftest.er1
6365
grep -v '^ *+' conftest.er1 >conftest.err
6367
cat conftest.err >&5
6368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369
(exit $ac_status); } &&
6370
{ ac_try='test -z "$ac_c_werror_flag"
6371
|| test ! -s conftest.err'
6372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
(exit $ac_status); }; } &&
6377
{ ac_try='test -s conftest.$ac_objext'
6378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382
(exit $ac_status); }; }; then
6383
ac_lo=$ac_mid; break
6385
echo "$as_me: failed program was:" >&5
6386
sed 's/^/| /' conftest.$ac_ext >&5
6388
ac_hi=`expr '(' $ac_mid ')' - 1`
6389
if test $ac_mid -le $ac_hi; then
6393
ac_mid=`expr 2 '*' $ac_mid`
6395
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398
echo "$as_me: failed program was:" >&5
6399
sed 's/^/| /' conftest.$ac_ext >&5
6403
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406
# Binary search between lo and hi bounds.
6407
while test "x$ac_lo" != "x$ac_hi"; do
6408
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6409
cat >conftest.$ac_ext <<_ACEOF
6412
cat confdefs.h >>conftest.$ac_ext
6413
cat >>conftest.$ac_ext <<_ACEOF
6414
/* end confdefs.h. */
6415
$ac_includes_default
6419
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6426
rm -f conftest.$ac_objext
6427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428
(eval $ac_compile) 2>conftest.er1
6430
grep -v '^ *+' conftest.er1 >conftest.err
6432
cat conftest.err >&5
6433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434
(exit $ac_status); } &&
6435
{ ac_try='test -z "$ac_c_werror_flag"
6436
|| test ! -s conftest.err'
6437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441
(exit $ac_status); }; } &&
6442
{ ac_try='test -s conftest.$ac_objext'
6443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447
(exit $ac_status); }; }; then
6450
echo "$as_me: failed program was:" >&5
6451
sed 's/^/| /' conftest.$ac_ext >&5
6453
ac_lo=`expr '(' $ac_mid ')' + 1`
6455
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458
?*) ac_cv_sizeof_int=$ac_lo;;
6459
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6460
See \`config.log' for more details." >&5
6461
echo "$as_me: error: cannot compute sizeof (int), 77
6462
See \`config.log' for more details." >&2;}
6463
{ (exit 1); exit 1; }; } ;;
6466
if test "$cross_compiling" = yes; then
6467
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6468
See \`config.log' for more details." >&5
6469
echo "$as_me: error: cannot run test program while cross compiling
6470
See \`config.log' for more details." >&2;}
6471
{ (exit 1); exit 1; }; }
6473
cat >conftest.$ac_ext <<_ACEOF
6476
cat confdefs.h >>conftest.$ac_ext
6477
cat >>conftest.$ac_ext <<_ACEOF
6478
/* end confdefs.h. */
6479
$ac_includes_default
6480
long longval () { return (long) (sizeof (int)); }
6481
unsigned long ulongval () { return (long) (sizeof (int)); }
6488
FILE *f = fopen ("conftest.val", "w");
6491
if (((long) (sizeof (int))) < 0)
6493
long i = longval ();
6494
if (i != ((long) (sizeof (int))))
6496
fprintf (f, "%ld\n", i);
6500
unsigned long i = ulongval ();
6501
if (i != ((long) (sizeof (int))))
6503
fprintf (f, "%lu\n", i);
6505
exit (ferror (f) || fclose (f) != 0);
6511
rm -f conftest$ac_exeext
6512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513
(eval $ac_link) 2>&5
6515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521
(exit $ac_status); }; }; then
6522
ac_cv_sizeof_int=`cat conftest.val`
6524
echo "$as_me: program exited with status $ac_status" >&5
6525
echo "$as_me: failed program was:" >&5
6526
sed 's/^/| /' conftest.$ac_ext >&5
6529
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6530
See \`config.log' for more details." >&5
6531
echo "$as_me: error: cannot compute sizeof (int), 77
6532
See \`config.log' for more details." >&2;}
6533
{ (exit 1); exit 1; }; }
6535
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6543
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6544
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6545
cat >>confdefs.h <<_ACEOF
6546
#define SIZEOF_INT $ac_cv_sizeof_int
6550
echo "$as_me:$LINENO: checking for long" >&5
6551
echo $ECHO_N "checking for long... $ECHO_C" >&6
6552
if test "${ac_cv_type_long+set}" = set; then
6553
echo $ECHO_N "(cached) $ECHO_C" >&6
6555
cat >conftest.$ac_ext <<_ACEOF
6558
cat confdefs.h >>conftest.$ac_ext
6559
cat >>conftest.$ac_ext <<_ACEOF
6560
/* end confdefs.h. */
6561
$ac_includes_default
6573
rm -f conftest.$ac_objext
6574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575
(eval $ac_compile) 2>conftest.er1
6577
grep -v '^ *+' conftest.er1 >conftest.err
6579
cat conftest.err >&5
6580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
(exit $ac_status); } &&
6582
{ ac_try='test -z "$ac_c_werror_flag"
6583
|| test ! -s conftest.err'
6584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588
(exit $ac_status); }; } &&
6589
{ ac_try='test -s conftest.$ac_objext'
6590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594
(exit $ac_status); }; }; then
6597
echo "$as_me: failed program was:" >&5
6598
sed 's/^/| /' conftest.$ac_ext >&5
6602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6605
echo "${ECHO_T}$ac_cv_type_long" >&6
6607
echo "$as_me:$LINENO: checking size of long" >&5
6608
echo $ECHO_N "checking size of long... $ECHO_C" >&6
6609
if test "${ac_cv_sizeof_long+set}" = set; then
6610
echo $ECHO_N "(cached) $ECHO_C" >&6
6612
if test "$ac_cv_type_long" = yes; then
6613
# The cast to unsigned long works around a bug in the HP C Compiler
6614
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6615
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6616
# This bug is HP SR number 8606223364.
6617
if test "$cross_compiling" = yes; then
6618
# Depending upon the size, compute the lo and hi bounds.
6619
cat >conftest.$ac_ext <<_ACEOF
6622
cat confdefs.h >>conftest.$ac_ext
6623
cat >>conftest.$ac_ext <<_ACEOF
6624
/* end confdefs.h. */
6625
$ac_includes_default
6629
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6636
rm -f conftest.$ac_objext
6637
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638
(eval $ac_compile) 2>conftest.er1
6640
grep -v '^ *+' conftest.er1 >conftest.err
6642
cat conftest.err >&5
6643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644
(exit $ac_status); } &&
6645
{ ac_try='test -z "$ac_c_werror_flag"
6646
|| test ! -s conftest.err'
6647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651
(exit $ac_status); }; } &&
6652
{ ac_try='test -s conftest.$ac_objext'
6653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657
(exit $ac_status); }; }; then
6660
cat >conftest.$ac_ext <<_ACEOF
6663
cat confdefs.h >>conftest.$ac_ext
6664
cat >>conftest.$ac_ext <<_ACEOF
6665
/* end confdefs.h. */
6666
$ac_includes_default
6670
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6677
rm -f conftest.$ac_objext
6678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679
(eval $ac_compile) 2>conftest.er1
6681
grep -v '^ *+' conftest.er1 >conftest.err
6683
cat conftest.err >&5
6684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685
(exit $ac_status); } &&
6686
{ ac_try='test -z "$ac_c_werror_flag"
6687
|| test ! -s conftest.err'
6688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
(exit $ac_status); }; } &&
6693
{ ac_try='test -s conftest.$ac_objext'
6694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
(exit $ac_status); }; }; then
6699
ac_hi=$ac_mid; break
6701
echo "$as_me: failed program was:" >&5
6702
sed 's/^/| /' conftest.$ac_ext >&5
6704
ac_lo=`expr $ac_mid + 1`
6705
if test $ac_lo -le $ac_mid; then
6709
ac_mid=`expr 2 '*' $ac_mid + 1`
6711
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6714
echo "$as_me: failed program was:" >&5
6715
sed 's/^/| /' conftest.$ac_ext >&5
6717
cat >conftest.$ac_ext <<_ACEOF
6720
cat confdefs.h >>conftest.$ac_ext
6721
cat >>conftest.$ac_ext <<_ACEOF
6722
/* end confdefs.h. */
6723
$ac_includes_default
6727
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6734
rm -f conftest.$ac_objext
6735
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736
(eval $ac_compile) 2>conftest.er1
6738
grep -v '^ *+' conftest.er1 >conftest.err
6740
cat conftest.err >&5
6741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742
(exit $ac_status); } &&
6743
{ ac_try='test -z "$ac_c_werror_flag"
6744
|| test ! -s conftest.err'
6745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749
(exit $ac_status); }; } &&
6750
{ ac_try='test -s conftest.$ac_objext'
6751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755
(exit $ac_status); }; }; then
6758
cat >conftest.$ac_ext <<_ACEOF
6761
cat confdefs.h >>conftest.$ac_ext
6762
cat >>conftest.$ac_ext <<_ACEOF
6763
/* end confdefs.h. */
6764
$ac_includes_default
6768
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6775
rm -f conftest.$ac_objext
6776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777
(eval $ac_compile) 2>conftest.er1
6779
grep -v '^ *+' conftest.er1 >conftest.err
6781
cat conftest.err >&5
6782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783
(exit $ac_status); } &&
6784
{ ac_try='test -z "$ac_c_werror_flag"
6785
|| test ! -s conftest.err'
6786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790
(exit $ac_status); }; } &&
6791
{ ac_try='test -s conftest.$ac_objext'
6792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796
(exit $ac_status); }; }; then
6797
ac_lo=$ac_mid; break
6799
echo "$as_me: failed program was:" >&5
6800
sed 's/^/| /' conftest.$ac_ext >&5
6802
ac_hi=`expr '(' $ac_mid ')' - 1`
6803
if test $ac_mid -le $ac_hi; then
6807
ac_mid=`expr 2 '*' $ac_mid`
6809
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812
echo "$as_me: failed program was:" >&5
6813
sed 's/^/| /' conftest.$ac_ext >&5
6817
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6819
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820
# Binary search between lo and hi bounds.
6821
while test "x$ac_lo" != "x$ac_hi"; do
6822
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6823
cat >conftest.$ac_ext <<_ACEOF
6826
cat confdefs.h >>conftest.$ac_ext
6827
cat >>conftest.$ac_ext <<_ACEOF
6828
/* end confdefs.h. */
6829
$ac_includes_default
6833
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6840
rm -f conftest.$ac_objext
6841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842
(eval $ac_compile) 2>conftest.er1
6844
grep -v '^ *+' conftest.er1 >conftest.err
6846
cat conftest.err >&5
6847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848
(exit $ac_status); } &&
6849
{ ac_try='test -z "$ac_c_werror_flag"
6850
|| test ! -s conftest.err'
6851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855
(exit $ac_status); }; } &&
6856
{ ac_try='test -s conftest.$ac_objext'
6857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861
(exit $ac_status); }; }; then
6864
echo "$as_me: failed program was:" >&5
6865
sed 's/^/| /' conftest.$ac_ext >&5
6867
ac_lo=`expr '(' $ac_mid ')' + 1`
6869
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872
?*) ac_cv_sizeof_long=$ac_lo;;
6873
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6874
See \`config.log' for more details." >&5
6875
echo "$as_me: error: cannot compute sizeof (long), 77
6876
See \`config.log' for more details." >&2;}
6877
{ (exit 1); exit 1; }; } ;;
6880
if test "$cross_compiling" = yes; then
6881
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6882
See \`config.log' for more details." >&5
6883
echo "$as_me: error: cannot run test program while cross compiling
6884
See \`config.log' for more details." >&2;}
6885
{ (exit 1); exit 1; }; }
6887
cat >conftest.$ac_ext <<_ACEOF
6890
cat confdefs.h >>conftest.$ac_ext
6891
cat >>conftest.$ac_ext <<_ACEOF
6892
/* end confdefs.h. */
6893
$ac_includes_default
6894
long longval () { return (long) (sizeof (long)); }
6895
unsigned long ulongval () { return (long) (sizeof (long)); }
6902
FILE *f = fopen ("conftest.val", "w");
6905
if (((long) (sizeof (long))) < 0)
6907
long i = longval ();
6908
if (i != ((long) (sizeof (long))))
6910
fprintf (f, "%ld\n", i);
6914
unsigned long i = ulongval ();
6915
if (i != ((long) (sizeof (long))))
6917
fprintf (f, "%lu\n", i);
6919
exit (ferror (f) || fclose (f) != 0);
6925
rm -f conftest$ac_exeext
6926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927
(eval $ac_link) 2>&5
6929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935
(exit $ac_status); }; }; then
6936
ac_cv_sizeof_long=`cat conftest.val`
6938
echo "$as_me: program exited with status $ac_status" >&5
6939
echo "$as_me: failed program was:" >&5
6940
sed 's/^/| /' conftest.$ac_ext >&5
6943
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6944
See \`config.log' for more details." >&5
6945
echo "$as_me: error: cannot compute sizeof (long), 77
6946
See \`config.log' for more details." >&2;}
6947
{ (exit 1); exit 1; }; }
6949
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6958
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6959
cat >>confdefs.h <<_ACEOF
6960
#define SIZEOF_LONG $ac_cv_sizeof_long
6967
for ac_header in unistd.h stdlib.h pwd.h
6969
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6970
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6971
echo "$as_me:$LINENO: checking for $ac_header" >&5
6972
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6973
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6974
echo $ECHO_N "(cached) $ECHO_C" >&6
6976
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6979
# Is the header compilable?
6980
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6982
cat >conftest.$ac_ext <<_ACEOF
6985
cat confdefs.h >>conftest.$ac_ext
6986
cat >>conftest.$ac_ext <<_ACEOF
6987
/* end confdefs.h. */
6988
$ac_includes_default
6989
#include <$ac_header>
6991
rm -f conftest.$ac_objext
6992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993
(eval $ac_compile) 2>conftest.er1
6995
grep -v '^ *+' conftest.er1 >conftest.err
6997
cat conftest.err >&5
6998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999
(exit $ac_status); } &&
7000
{ ac_try='test -z "$ac_c_werror_flag"
7001
|| test ! -s conftest.err'
7002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006
(exit $ac_status); }; } &&
7007
{ ac_try='test -s conftest.$ac_objext'
7008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
(exit $ac_status); }; }; then
7013
ac_header_compiler=yes
7015
echo "$as_me: failed program was:" >&5
7016
sed 's/^/| /' conftest.$ac_ext >&5
7018
ac_header_compiler=no
7020
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7021
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7022
echo "${ECHO_T}$ac_header_compiler" >&6
7024
# Is the header present?
7025
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7026
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7027
cat >conftest.$ac_ext <<_ACEOF
7030
cat confdefs.h >>conftest.$ac_ext
7031
cat >>conftest.$ac_ext <<_ACEOF
7032
/* end confdefs.h. */
7033
#include <$ac_header>
7035
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7036
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7038
grep -v '^ *+' conftest.er1 >conftest.err
7040
cat conftest.err >&5
7041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042
(exit $ac_status); } >/dev/null; then
7043
if test -s conftest.err; then
7044
ac_cpp_err=$ac_c_preproc_warn_flag
7045
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7052
if test -z "$ac_cpp_err"; then
7053
ac_header_preproc=yes
7055
echo "$as_me: failed program was:" >&5
7056
sed 's/^/| /' conftest.$ac_ext >&5
7058
ac_header_preproc=no
7060
rm -f conftest.err conftest.$ac_ext
7061
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7062
echo "${ECHO_T}$ac_header_preproc" >&6
7064
# So? What about this header?
7065
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7067
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7068
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7069
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7070
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7071
ac_header_preproc=yes
7074
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7075
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7076
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7077
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7078
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7079
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7080
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7081
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7082
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7083
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7084
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7085
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7088
## ------------------------------------------ ##
7089
## Report this to the AC_PACKAGE_NAME lists. ##
7090
## ------------------------------------------ ##
7093
sed "s/^/$as_me: WARNING: /" >&2
7096
echo "$as_me:$LINENO: checking for $ac_header" >&5
7097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7098
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7099
echo $ECHO_N "(cached) $ECHO_C" >&6
7101
eval "$as_ac_Header=\$ac_header_preproc"
7103
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7107
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7108
cat >>confdefs.h <<_ACEOF
7109
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7119
for ac_func in stat access strdup
7121
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122
echo "$as_me:$LINENO: checking for $ac_func" >&5
7123
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7124
if eval "test \"\${$as_ac_var+set}\" = set"; then
7125
echo $ECHO_N "(cached) $ECHO_C" >&6
7127
cat >conftest.$ac_ext <<_ACEOF
7130
cat confdefs.h >>conftest.$ac_ext
7131
cat >>conftest.$ac_ext <<_ACEOF
7132
/* end confdefs.h. */
7133
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7134
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7135
#define $ac_func innocuous_$ac_func
7137
/* System header to define __stub macros and hopefully few prototypes,
7138
which can conflict with char $ac_func (); below.
7139
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140
<limits.h> exists even on freestanding compilers. */
7143
# include <limits.h>
7145
# include <assert.h>
7150
/* Override any gcc2 internal prototype to avoid an error. */
7155
/* We use char because int might match the return type of a gcc2
7156
builtin and then its argument prototype would still apply. */
7158
/* The GNU C library defines this for functions which it implements
7159
to always fail with ENOSYS. Some functions are actually named
7160
something starting with __ and the normal name is an alias. */
7161
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164
char (*f) () = $ac_func;
7173
return f != $ac_func;
7178
rm -f conftest.$ac_objext conftest$ac_exeext
7179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180
(eval $ac_link) 2>conftest.er1
7182
grep -v '^ *+' conftest.er1 >conftest.err
7184
cat conftest.err >&5
7185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
(exit $ac_status); } &&
7187
{ ac_try='test -z "$ac_c_werror_flag"
7188
|| test ! -s conftest.err'
7189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
(exit $ac_status); }; } &&
7194
{ ac_try='test -s conftest$ac_exeext'
7195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
(exit $ac_status); }; }; then
7200
eval "$as_ac_var=yes"
7202
echo "$as_me: failed program was:" >&5
7203
sed 's/^/| /' conftest.$ac_ext >&5
7205
eval "$as_ac_var=no"
7207
rm -f conftest.err conftest.$ac_objext \
7208
conftest$ac_exeext conftest.$ac_ext
7210
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212
if test `eval echo '${'$as_ac_var'}'` = yes; then
7213
cat >>confdefs.h <<_ACEOF
7214
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7220
for ac_prog in gawk mawk nawk awk
7222
# Extract the first word of "$ac_prog", so it can be a program name with args.
7223
set dummy $ac_prog; ac_word=$2
7224
echo "$as_me:$LINENO: checking for $ac_word" >&5
7225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226
if test "${ac_cv_prog_AWK+set}" = set; then
7227
echo $ECHO_N "(cached) $ECHO_C" >&6
7229
if test -n "$AWK"; then
7230
ac_cv_prog_AWK="$AWK" # Let the user override the test.
7232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236
test -z "$as_dir" && as_dir=.
7237
for ac_exec_ext in '' $ac_executable_extensions; do
7238
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239
ac_cv_prog_AWK="$ac_prog"
7240
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249
if test -n "$AWK"; then
7250
echo "$as_me:$LINENO: result: $AWK" >&5
7251
echo "${ECHO_T}$AWK" >&6
7253
echo "$as_me:$LINENO: result: no" >&5
7254
echo "${ECHO_T}no" >&6
7257
test -n "$AWK" && break
7261
# Check whether to build static libraries.
7262
# Check whether --enable-static or --disable-static was given.
7263
if test "${enable_static+set}" = set; then
7264
enableval="$enable_static"
7267
enable_static=$default_static
7270
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
7271
{ echo "$as_me:$LINENO: disabling static libraries" >&5
7272
echo "$as_me: disabling static libraries" >&6;}
7277
LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
7278
LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
7280
LIBINSTLIST=install-static
7284
# Check whether to build shared libraries.
7285
# Check whether --enable-shared or --disable-shared was given.
7286
if test "${enable_shared+set}" = set; then
7287
enableval="$enable_shared"
7290
enable_shared=$default_shared
7293
if test "$enable_shared" = yes; then
7296
{ echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
7297
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
7299
CC_LINK="$CC_LINK_STATIC"
7302
# set this now because some logic below may reset SHLIBEXT
7304
if test "$krb5_force_static" = "yes"; then
7305
echo "$as_me:$LINENO: result: Forcing static libraries." >&5
7306
echo "${ECHO_T}Forcing static libraries." >&6
7307
# avoid duplicate rules generation for AIX and such
7308
SHLIBEXT=.so-nobuild
7309
SHLIBVEXT=.so.v-nobuild
7310
SHLIBSEXT=.so.s-nobuild
7312
{ echo "$as_me:$LINENO: enabling shared libraries" >&5
7313
echo "$as_me: enabling shared libraries" >&6;}
7314
# Clear some stuff in case of AIX, etc.
7315
if test "$STLIBEXT" = "$SHLIBEXT" ; then
7322
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
7323
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
7324
case "$SHLIBSEXT" in
7326
LIBINSTLIST="$LIBINSTLIST install-shared"
7329
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
7330
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
7331
LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
7334
OBJLISTS="$OBJLISTS OBJS.SH"
7336
CC_LINK="$CC_LINK_SHARED"
7341
CC_LINK="$CC_LINK_STATIC"
7342
SHLIBEXT=.so-nobuild
7343
SHLIBVEXT=.so.v-nobuild
7344
SHLIBSEXT=.so.s-nobuild
7347
if test -z "$LIBLIST"; then
7348
{ { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
7349
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
7350
{ (exit 1); exit 1; }; }
7353
# Check whether to build profiled libraries.
7354
# Check whether --enable-profiled or --disable-profiled was given.
7355
if test "${enable_profiled+set}" = set; then
7356
enableval="$enable_profiled"
7357
if test "$enableval" = yes; then
7360
{ echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
7361
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
7364
{ echo "$as_me:$LINENO: enabling profiled libraries" >&5
7365
echo "$as_me: enabling profiled libraries" >&6;}
7366
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
7367
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
7368
OBJLISTS="$OBJLISTS OBJS.PF"
7369
LIBINSTLIST="$LIBINSTLIST install-profiled"
7382
# Check whether --with-tcl or --without-tcl was given.
7383
if test "${with_tcl+set}" = set; then
7389
if test "$with_tcl" = no ; then
7391
elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
7393
if test ! -r /usr/lib/tclConfig.sh; then
7394
cat >> conftest <<\EOF
7395
puts "tcl_dir=$tcl_library"
7397
if tclsh conftest >conftest.out 2>/dev/null; then
7398
if grep tcl_dir= conftest.out >/dev/null 2>&1; then
7399
t=`sed s/tcl_dir=// conftest.out`
7402
fi # tclsh ran script okay
7403
rm -f conftest conftest.out
7404
fi # no /usr/lib/tclConfig.sh
7408
if test "$with_tcl" != no ; then
7410
echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
7411
echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
7412
if test -r "$tcl_dir/lib/tclConfig.sh" ; then
7413
tcl_conf="$tcl_dir/lib/tclConfig.sh"
7414
elif test -r "$tcl_dir/tclConfig.sh" ; then
7415
tcl_conf="$tcl_dir/tclConfig.sh"
7419
for d in "$lib" "$lib"/tcl7.[0-9] "$lib"/tcl8.[0-9] ; do
7420
if test -r "$d/tclConfig.sh" ; then
7421
tcl_conf="$tcl_conf $d/tclConfig.sh"
7425
if test -n "$tcl_conf" ; then
7426
echo "$as_me:$LINENO: result: $tcl_conf" >&5
7427
echo "${ECHO_T}$tcl_conf" >&6
7429
echo "$as_me:$LINENO: result: not found" >&5
7430
echo "${ECHO_T}not found" >&6
7435
old_CPPFLAGS=$CPPFLAGS
7437
old_LDFLAGS=$LDFLAGS
7438
if test -n "$tcl_conf" ; then
7439
for file in $tcl_conf ; do
7440
TCL_MAJOR_VERSION=x ; TCL_MINOR_VERSION=x
7441
echo "$as_me:$LINENO: checking Tcl info in $file" >&5
7442
echo $ECHO_N "checking Tcl info in $file... $ECHO_C" >&6
7444
v=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION
7445
if test -z "$tcl_vers_maj" \
7446
|| test "$tcl_vers_maj" -lt "$TCL_MAJOR_VERSION" \
7447
|| test "$tcl_vers_maj" = "$TCL_MAJOR_VERSION" -a "$tcl_vers_min" -lt "$TCL_MINOR_VERSION" ; then
7448
for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7449
if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7450
CPPFLAGS="$old_CPPFLAGS -I$incdir"
7454
LIBS="$old_LIBS `eval echo x $TCL_LIB_SPEC $TCL_LIBS | sed 's/^x//'`"
7455
LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS"
7456
cat >conftest.$ac_ext <<_ACEOF
7459
cat confdefs.h >>conftest.$ac_ext
7460
cat >>conftest.$ac_ext <<_ACEOF
7461
/* end confdefs.h. */
7466
Tcl_CreateInterp ();
7471
rm -f conftest.$ac_objext conftest$ac_exeext
7472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473
(eval $ac_link) 2>conftest.er1
7475
grep -v '^ *+' conftest.er1 >conftest.err
7477
cat conftest.err >&5
7478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479
(exit $ac_status); } &&
7480
{ ac_try='test -z "$ac_c_werror_flag"
7481
|| test ! -s conftest.err'
7482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486
(exit $ac_status); }; } &&
7487
{ ac_try='test -s conftest$ac_exeext'
7488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492
(exit $ac_status); }; }; then
7494
tcl_vers_maj=$TCL_MAJOR_VERSION
7495
tcl_vers_min=$TCL_MINOR_VERSION
7496
echo "$as_me:$LINENO: result: $v - working" >&5
7497
echo "${ECHO_T}$v - working" >&6
7499
echo "$as_me: failed program was:" >&5
7500
sed 's/^/| /' conftest.$ac_ext >&5
7502
echo "$as_me:$LINENO: result: $v - compilation failed" >&5
7503
echo "${ECHO_T}$v - compilation failed" >&6
7506
rm -f conftest.err conftest.$ac_objext \
7507
conftest$ac_exeext conftest.$ac_ext
7509
echo "$as_me:$LINENO: result: older version $v" >&5
7510
echo "${ECHO_T}older version $v" >&6
7514
CPPFLAGS=$old_CPPFLAGS
7516
LDFLAGS=$old_LDFLAGS
7519
if test -n "$tcl_ok_conf" ; then
7522
for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7523
if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7524
if test "$incdir" != "/usr/include" ; then
7525
TCL_INCLUDES=-I$incdir
7530
# Need eval because the first-level expansion could reference
7531
# variables like ${TCL_DBGX}.
7532
eval TCL_LIBS='"'$TCL_LIB_SPEC $TCL_LIBS $TCL_DL_LIBS'"'
7533
TCL_LIBPATH="-L$TCL_EXEC_PREFIX/lib"
7534
TCL_RPATH=":$TCL_EXEC_PREFIX/lib"
7535
if test "$DEPLIBEXT" != "$SHLIBEXT" && test -n "$RPATH_FLAG"; then
7536
TCL_MAYBE_RPATH='$(RPATH_FLAG)'"$TCL_EXEC_PREFIX/lib$RPATH_TAIL"
7540
CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES"
7541
if test "${ac_cv_header_tcl_h+set}" = set; then
7542
echo "$as_me:$LINENO: checking for tcl.h" >&5
7543
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7544
if test "${ac_cv_header_tcl_h+set}" = set; then
7545
echo $ECHO_N "(cached) $ECHO_C" >&6
7547
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7548
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
7550
# Is the header compilable?
7551
echo "$as_me:$LINENO: checking tcl.h usability" >&5
7552
echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
7553
cat >conftest.$ac_ext <<_ACEOF
7556
cat confdefs.h >>conftest.$ac_ext
7557
cat >>conftest.$ac_ext <<_ACEOF
7558
/* end confdefs.h. */
7559
$ac_includes_default
7562
rm -f conftest.$ac_objext
7563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564
(eval $ac_compile) 2>conftest.er1
7566
grep -v '^ *+' conftest.er1 >conftest.err
7568
cat conftest.err >&5
7569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570
(exit $ac_status); } &&
7571
{ ac_try='test -z "$ac_c_werror_flag"
7572
|| test ! -s conftest.err'
7573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577
(exit $ac_status); }; } &&
7578
{ ac_try='test -s conftest.$ac_objext'
7579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583
(exit $ac_status); }; }; then
7584
ac_header_compiler=yes
7586
echo "$as_me: failed program was:" >&5
7587
sed 's/^/| /' conftest.$ac_ext >&5
7589
ac_header_compiler=no
7591
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7593
echo "${ECHO_T}$ac_header_compiler" >&6
7595
# Is the header present?
7596
echo "$as_me:$LINENO: checking tcl.h presence" >&5
7597
echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
7598
cat >conftest.$ac_ext <<_ACEOF
7601
cat confdefs.h >>conftest.$ac_ext
7602
cat >>conftest.$ac_ext <<_ACEOF
7603
/* end confdefs.h. */
7606
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7607
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7609
grep -v '^ *+' conftest.er1 >conftest.err
7611
cat conftest.err >&5
7612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613
(exit $ac_status); } >/dev/null; then
7614
if test -s conftest.err; then
7615
ac_cpp_err=$ac_c_preproc_warn_flag
7616
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7623
if test -z "$ac_cpp_err"; then
7624
ac_header_preproc=yes
7626
echo "$as_me: failed program was:" >&5
7627
sed 's/^/| /' conftest.$ac_ext >&5
7629
ac_header_preproc=no
7631
rm -f conftest.err conftest.$ac_ext
7632
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633
echo "${ECHO_T}$ac_header_preproc" >&6
7635
# So? What about this header?
7636
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7638
{ echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7639
echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640
{ echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
7641
echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
7642
ac_header_preproc=yes
7645
{ echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
7646
echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
7647
{ echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
7648
echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
7649
{ echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
7650
echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
7651
{ echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
7652
echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7653
{ echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
7654
echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
7655
{ echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
7656
echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
7659
## ------------------------------------------ ##
7660
## Report this to the AC_PACKAGE_NAME lists. ##
7661
## ------------------------------------------ ##
7664
sed "s/^/$as_me: WARNING: /" >&2
7667
echo "$as_me:$LINENO: checking for tcl.h" >&5
7668
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7669
if test "${ac_cv_header_tcl_h+set}" = set; then
7670
echo $ECHO_N "(cached) $ECHO_C" >&6
7672
ac_cv_header_tcl_h=$ac_header_preproc
7674
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7675
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
7678
if test $ac_cv_header_tcl_h = yes; then
7679
cat >>confdefs.h <<\_ACEOF
7680
#define HAVE_TCL_H 1
7686
if test $tcl_header=no; then
7687
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7688
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
7689
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
7690
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7691
echo $ECHO_N "(cached) $ECHO_C" >&6
7693
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
7694
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
7696
# Is the header compilable?
7697
echo "$as_me:$LINENO: checking tcl/tcl.h usability" >&5
7698
echo $ECHO_N "checking tcl/tcl.h usability... $ECHO_C" >&6
7699
cat >conftest.$ac_ext <<_ACEOF
7702
cat confdefs.h >>conftest.$ac_ext
7703
cat >>conftest.$ac_ext <<_ACEOF
7704
/* end confdefs.h. */
7705
$ac_includes_default
7706
#include <tcl/tcl.h>
7708
rm -f conftest.$ac_objext
7709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710
(eval $ac_compile) 2>conftest.er1
7712
grep -v '^ *+' conftest.er1 >conftest.err
7714
cat conftest.err >&5
7715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716
(exit $ac_status); } &&
7717
{ ac_try='test -z "$ac_c_werror_flag"
7718
|| test ! -s conftest.err'
7719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723
(exit $ac_status); }; } &&
7724
{ ac_try='test -s conftest.$ac_objext'
7725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729
(exit $ac_status); }; }; then
7730
ac_header_compiler=yes
7732
echo "$as_me: failed program was:" >&5
7733
sed 's/^/| /' conftest.$ac_ext >&5
7735
ac_header_compiler=no
7737
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7739
echo "${ECHO_T}$ac_header_compiler" >&6
7741
# Is the header present?
7742
echo "$as_me:$LINENO: checking tcl/tcl.h presence" >&5
7743
echo $ECHO_N "checking tcl/tcl.h presence... $ECHO_C" >&6
7744
cat >conftest.$ac_ext <<_ACEOF
7747
cat confdefs.h >>conftest.$ac_ext
7748
cat >>conftest.$ac_ext <<_ACEOF
7749
/* end confdefs.h. */
7750
#include <tcl/tcl.h>
7752
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7753
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7755
grep -v '^ *+' conftest.er1 >conftest.err
7757
cat conftest.err >&5
7758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759
(exit $ac_status); } >/dev/null; then
7760
if test -s conftest.err; then
7761
ac_cpp_err=$ac_c_preproc_warn_flag
7762
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7769
if test -z "$ac_cpp_err"; then
7770
ac_header_preproc=yes
7772
echo "$as_me: failed program was:" >&5
7773
sed 's/^/| /' conftest.$ac_ext >&5
7775
ac_header_preproc=no
7777
rm -f conftest.err conftest.$ac_ext
7778
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7779
echo "${ECHO_T}$ac_header_preproc" >&6
7781
# So? What about this header?
7782
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7784
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7785
echo "$as_me: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7786
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&5
7787
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&2;}
7788
ac_header_preproc=yes
7791
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: present but cannot be compiled" >&5
7792
echo "$as_me: WARNING: tcl/tcl.h: present but cannot be compiled" >&2;}
7793
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: check for missing prerequisite headers?" >&5
7794
echo "$as_me: WARNING: tcl/tcl.h: check for missing prerequisite headers?" >&2;}
7795
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: see the Autoconf documentation" >&5
7796
echo "$as_me: WARNING: tcl/tcl.h: see the Autoconf documentation" >&2;}
7797
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: section \"Present But Cannot Be Compiled\"" >&5
7798
echo "$as_me: WARNING: tcl/tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7799
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&5
7800
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&2;}
7801
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&5
7802
echo "$as_me: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&2;}
7805
## ------------------------------------------ ##
7806
## Report this to the AC_PACKAGE_NAME lists. ##
7807
## ------------------------------------------ ##
7810
sed "s/^/$as_me: WARNING: /" >&2
7813
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
7814
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
7815
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7816
echo $ECHO_N "(cached) $ECHO_C" >&6
7818
ac_cv_header_tcl_tcl_h=$ac_header_preproc
7820
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
7821
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
7824
if test $ac_cv_header_tcl_tcl_h = yes; then
7825
cat >>confdefs.h <<\_ACEOF
7826
#define HAVE_TCL_TCL_H 1
7833
CPPFLAGS="$old_CPPFLAGS"
7836
# If we read a tclConfig.sh file, it probably set this.
7845
if test $tcl_lib = no ; then
7846
if test "$with_tcl" != try ; then
7848
{ echo "$as_me:$LINENO: WARNING: trying old tcl search code" >&5
7849
echo "$as_me: WARNING: trying old tcl search code" >&2;}
7850
if test "$with_tcl" != yes -a "$with_tcl" != no; then
7851
TCL_INCLUDES=-I$with_tcl/include
7852
TCL_LIBPATH=-L$with_tcl/lib
7853
TCL_RPATH=:$with_tcl/lib
7855
if test "$with_tcl" != no ; then
7856
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7857
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7858
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7859
echo $ECHO_N "(cached) $ECHO_C" >&6
7861
ac_check_lib_save_LIBS=$LIBS
7863
cat >conftest.$ac_ext <<_ACEOF
7866
cat confdefs.h >>conftest.$ac_ext
7867
cat >>conftest.$ac_ext <<_ACEOF
7868
/* end confdefs.h. */
7870
/* Override any gcc2 internal prototype to avoid an error. */
7874
/* We use char because int might match the return type of a gcc2
7875
builtin and then its argument prototype would still apply. */
7885
rm -f conftest.$ac_objext conftest$ac_exeext
7886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7887
(eval $ac_link) 2>conftest.er1
7889
grep -v '^ *+' conftest.er1 >conftest.err
7891
cat conftest.err >&5
7892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893
(exit $ac_status); } &&
7894
{ ac_try='test -z "$ac_c_werror_flag"
7895
|| test ! -s conftest.err'
7896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900
(exit $ac_status); }; } &&
7901
{ ac_try='test -s conftest$ac_exeext'
7902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906
(exit $ac_status); }; }; then
7907
ac_cv_lib_dl_dlopen=yes
7909
echo "$as_me: failed program was:" >&5
7910
sed 's/^/| /' conftest.$ac_ext >&5
7912
ac_cv_lib_dl_dlopen=no
7914
rm -f conftest.err conftest.$ac_objext \
7915
conftest$ac_exeext conftest.$ac_ext
7916
LIBS=$ac_check_lib_save_LIBS
7918
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7919
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7920
if test $ac_cv_lib_dl_dlopen = yes; then
7924
echo "$as_me:$LINENO: checking for main in -lld" >&5
7925
echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
7926
if test "${ac_cv_lib_ld_main+set}" = set; then
7927
echo $ECHO_N "(cached) $ECHO_C" >&6
7929
ac_check_lib_save_LIBS=$LIBS
7931
cat >conftest.$ac_ext <<_ACEOF
7934
cat confdefs.h >>conftest.$ac_ext
7935
cat >>conftest.$ac_ext <<_ACEOF
7936
/* end confdefs.h. */
7947
rm -f conftest.$ac_objext conftest$ac_exeext
7948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949
(eval $ac_link) 2>conftest.er1
7951
grep -v '^ *+' conftest.er1 >conftest.err
7953
cat conftest.err >&5
7954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955
(exit $ac_status); } &&
7956
{ ac_try='test -z "$ac_c_werror_flag"
7957
|| test ! -s conftest.err'
7958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962
(exit $ac_status); }; } &&
7963
{ ac_try='test -s conftest$ac_exeext'
7964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
(exit $ac_status); }; }; then
7969
ac_cv_lib_ld_main=yes
7971
echo "$as_me: failed program was:" >&5
7972
sed 's/^/| /' conftest.$ac_ext >&5
7974
ac_cv_lib_ld_main=no
7976
rm -f conftest.err conftest.$ac_objext \
7977
conftest$ac_exeext conftest.$ac_ext
7978
LIBS=$ac_check_lib_save_LIBS
7980
echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
7981
echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
7982
if test $ac_cv_lib_ld_main = yes; then
7986
krb5_save_CPPFLAGS="$CPPFLAGS"
7987
krb5_save_LDFLAGS="$LDFLAGS"
7988
CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
7989
LDFLAGS="$LDFLAGS $TCL_LIBPATH"
7991
if test "${ac_cv_header_tcl_h+set}" = set; then
7992
echo "$as_me:$LINENO: checking for tcl.h" >&5
7993
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7994
if test "${ac_cv_header_tcl_h+set}" = set; then
7995
echo $ECHO_N "(cached) $ECHO_C" >&6
7997
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7998
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
8000
# Is the header compilable?
8001
echo "$as_me:$LINENO: checking tcl.h usability" >&5
8002
echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
8003
cat >conftest.$ac_ext <<_ACEOF
8006
cat confdefs.h >>conftest.$ac_ext
8007
cat >>conftest.$ac_ext <<_ACEOF
8008
/* end confdefs.h. */
8009
$ac_includes_default
8012
rm -f conftest.$ac_objext
8013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014
(eval $ac_compile) 2>conftest.er1
8016
grep -v '^ *+' conftest.er1 >conftest.err
8018
cat conftest.err >&5
8019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
(exit $ac_status); } &&
8021
{ ac_try='test -z "$ac_c_werror_flag"
8022
|| test ! -s conftest.err'
8023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027
(exit $ac_status); }; } &&
8028
{ ac_try='test -s conftest.$ac_objext'
8029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033
(exit $ac_status); }; }; then
8034
ac_header_compiler=yes
8036
echo "$as_me: failed program was:" >&5
8037
sed 's/^/| /' conftest.$ac_ext >&5
8039
ac_header_compiler=no
8041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8042
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043
echo "${ECHO_T}$ac_header_compiler" >&6
8045
# Is the header present?
8046
echo "$as_me:$LINENO: checking tcl.h presence" >&5
8047
echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
8048
cat >conftest.$ac_ext <<_ACEOF
8051
cat confdefs.h >>conftest.$ac_ext
8052
cat >>conftest.$ac_ext <<_ACEOF
8053
/* end confdefs.h. */
8056
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8057
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8059
grep -v '^ *+' conftest.er1 >conftest.err
8061
cat conftest.err >&5
8062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063
(exit $ac_status); } >/dev/null; then
8064
if test -s conftest.err; then
8065
ac_cpp_err=$ac_c_preproc_warn_flag
8066
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8073
if test -z "$ac_cpp_err"; then
8074
ac_header_preproc=yes
8076
echo "$as_me: failed program was:" >&5
8077
sed 's/^/| /' conftest.$ac_ext >&5
8079
ac_header_preproc=no
8081
rm -f conftest.err conftest.$ac_ext
8082
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083
echo "${ECHO_T}$ac_header_preproc" >&6
8085
# So? What about this header?
8086
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8088
{ echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8089
echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090
{ echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
8091
echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
8092
ac_header_preproc=yes
8095
{ echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
8096
echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
8097
{ echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
8098
echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
8099
{ echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
8100
echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
8101
{ echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
8102
echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8103
{ echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8104
echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8105
{ echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
8106
echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
8109
## ------------------------------------------ ##
8110
## Report this to the AC_PACKAGE_NAME lists. ##
8111
## ------------------------------------------ ##
8114
sed "s/^/$as_me: WARNING: /" >&2
8117
echo "$as_me:$LINENO: checking for tcl.h" >&5
8118
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8119
if test "${ac_cv_header_tcl_h+set}" = set; then
8120
echo $ECHO_N "(cached) $ECHO_C" >&6
8122
ac_cv_header_tcl_h=$ac_header_preproc
8124
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
8125
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
8128
if test $ac_cv_header_tcl_h = yes; then
8129
cat >>confdefs.h <<\_ACEOF
8130
#define HAVE_TCL_H 1
8136
if test $tcl_header=no; then
8137
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8138
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
8139
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
8140
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8141
echo $ECHO_N "(cached) $ECHO_C" >&6
8143
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
8144
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
8146
# Is the header compilable?
8147
echo "$as_me:$LINENO: checking tcl/tcl.h usability" >&5
8148
echo $ECHO_N "checking tcl/tcl.h usability... $ECHO_C" >&6
8149
cat >conftest.$ac_ext <<_ACEOF
8152
cat confdefs.h >>conftest.$ac_ext
8153
cat >>conftest.$ac_ext <<_ACEOF
8154
/* end confdefs.h. */
8155
$ac_includes_default
8156
#include <tcl/tcl.h>
8158
rm -f conftest.$ac_objext
8159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160
(eval $ac_compile) 2>conftest.er1
8162
grep -v '^ *+' conftest.er1 >conftest.err
8164
cat conftest.err >&5
8165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166
(exit $ac_status); } &&
8167
{ ac_try='test -z "$ac_c_werror_flag"
8168
|| test ! -s conftest.err'
8169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
(exit $ac_status); }; } &&
8174
{ ac_try='test -s conftest.$ac_objext'
8175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179
(exit $ac_status); }; }; then
8180
ac_header_compiler=yes
8182
echo "$as_me: failed program was:" >&5
8183
sed 's/^/| /' conftest.$ac_ext >&5
8185
ac_header_compiler=no
8187
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189
echo "${ECHO_T}$ac_header_compiler" >&6
8191
# Is the header present?
8192
echo "$as_me:$LINENO: checking tcl/tcl.h presence" >&5
8193
echo $ECHO_N "checking tcl/tcl.h presence... $ECHO_C" >&6
8194
cat >conftest.$ac_ext <<_ACEOF
8197
cat confdefs.h >>conftest.$ac_ext
8198
cat >>conftest.$ac_ext <<_ACEOF
8199
/* end confdefs.h. */
8200
#include <tcl/tcl.h>
8202
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8203
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8205
grep -v '^ *+' conftest.er1 >conftest.err
8207
cat conftest.err >&5
8208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209
(exit $ac_status); } >/dev/null; then
8210
if test -s conftest.err; then
8211
ac_cpp_err=$ac_c_preproc_warn_flag
8212
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8219
if test -z "$ac_cpp_err"; then
8220
ac_header_preproc=yes
8222
echo "$as_me: failed program was:" >&5
8223
sed 's/^/| /' conftest.$ac_ext >&5
8225
ac_header_preproc=no
8227
rm -f conftest.err conftest.$ac_ext
8228
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8229
echo "${ECHO_T}$ac_header_preproc" >&6
8231
# So? What about this header?
8232
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8234
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8235
echo "$as_me: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8236
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&5
8237
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&2;}
8238
ac_header_preproc=yes
8241
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: present but cannot be compiled" >&5
8242
echo "$as_me: WARNING: tcl/tcl.h: present but cannot be compiled" >&2;}
8243
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: check for missing prerequisite headers?" >&5
8244
echo "$as_me: WARNING: tcl/tcl.h: check for missing prerequisite headers?" >&2;}
8245
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: see the Autoconf documentation" >&5
8246
echo "$as_me: WARNING: tcl/tcl.h: see the Autoconf documentation" >&2;}
8247
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: section \"Present But Cannot Be Compiled\"" >&5
8248
echo "$as_me: WARNING: tcl/tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8249
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&5
8250
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&2;}
8251
{ echo "$as_me:$LINENO: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&5
8252
echo "$as_me: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&2;}
8255
## ------------------------------------------ ##
8256
## Report this to the AC_PACKAGE_NAME lists. ##
8257
## ------------------------------------------ ##
8260
sed "s/^/$as_me: WARNING: /" >&2
8263
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
8264
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
8265
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8266
echo $ECHO_N "(cached) $ECHO_C" >&6
8268
ac_cv_header_tcl_tcl_h=$ac_header_preproc
8270
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
8271
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
8274
if test $ac_cv_header_tcl_tcl_h = yes; then
8275
cat >>confdefs.h <<\_ACEOF
8276
#define HAVE_TCL_TCL_H 1
8284
if test $tcl_header = yes ; then
8287
if test $tcl_lib = no; then
8288
echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl8.0" >&5
8289
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl8.0... $ECHO_C" >&6
8290
if test "${ac_cv_lib_tcl8_0_Tcl_CreateCommand+set}" = set; then
8291
echo $ECHO_N "(cached) $ECHO_C" >&6
8293
ac_check_lib_save_LIBS=$LIBS
8294
LIBS="-ltcl8.0 -lm $DL_LIB $LIBS"
8295
cat >conftest.$ac_ext <<_ACEOF
8298
cat confdefs.h >>conftest.$ac_ext
8299
cat >>conftest.$ac_ext <<_ACEOF
8300
/* end confdefs.h. */
8302
/* Override any gcc2 internal prototype to avoid an error. */
8306
/* We use char because int might match the return type of a gcc2
8307
builtin and then its argument prototype would still apply. */
8308
char Tcl_CreateCommand ();
8312
Tcl_CreateCommand ();
8317
rm -f conftest.$ac_objext conftest$ac_exeext
8318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319
(eval $ac_link) 2>conftest.er1
8321
grep -v '^ *+' conftest.er1 >conftest.err
8323
cat conftest.err >&5
8324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
(exit $ac_status); } &&
8326
{ ac_try='test -z "$ac_c_werror_flag"
8327
|| test ! -s conftest.err'
8328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332
(exit $ac_status); }; } &&
8333
{ ac_try='test -s conftest$ac_exeext'
8334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338
(exit $ac_status); }; }; then
8339
ac_cv_lib_tcl8_0_Tcl_CreateCommand=yes
8341
echo "$as_me: failed program was:" >&5
8342
sed 's/^/| /' conftest.$ac_ext >&5
8344
ac_cv_lib_tcl8_0_Tcl_CreateCommand=no
8346
rm -f conftest.err conftest.$ac_objext \
8347
conftest$ac_exeext conftest.$ac_ext
8348
LIBS=$ac_check_lib_save_LIBS
8350
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&5
8351
echo "${ECHO_T}$ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&6
8352
if test $ac_cv_lib_tcl8_0_Tcl_CreateCommand = yes; then
8353
TCL_LIBS="$TCL_LIBS -ltcl8.0 -lm $DL_LIB"
8358
if test $tcl_lib = no; then
8359
echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl7.6" >&5
8360
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl7.6... $ECHO_C" >&6
8361
if test "${ac_cv_lib_tcl7_6_Tcl_CreateCommand+set}" = set; then
8362
echo $ECHO_N "(cached) $ECHO_C" >&6
8364
ac_check_lib_save_LIBS=$LIBS
8365
LIBS="-ltcl7.6 -lm $DL_LIB $LIBS"
8366
cat >conftest.$ac_ext <<_ACEOF
8369
cat confdefs.h >>conftest.$ac_ext
8370
cat >>conftest.$ac_ext <<_ACEOF
8371
/* end confdefs.h. */
8373
/* Override any gcc2 internal prototype to avoid an error. */
8377
/* We use char because int might match the return type of a gcc2
8378
builtin and then its argument prototype would still apply. */
8379
char Tcl_CreateCommand ();
8383
Tcl_CreateCommand ();
8388
rm -f conftest.$ac_objext conftest$ac_exeext
8389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390
(eval $ac_link) 2>conftest.er1
8392
grep -v '^ *+' conftest.er1 >conftest.err
8394
cat conftest.err >&5
8395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396
(exit $ac_status); } &&
8397
{ ac_try='test -z "$ac_c_werror_flag"
8398
|| test ! -s conftest.err'
8399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403
(exit $ac_status); }; } &&
8404
{ ac_try='test -s conftest$ac_exeext'
8405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409
(exit $ac_status); }; }; then
8410
ac_cv_lib_tcl7_6_Tcl_CreateCommand=yes
8412
echo "$as_me: failed program was:" >&5
8413
sed 's/^/| /' conftest.$ac_ext >&5
8415
ac_cv_lib_tcl7_6_Tcl_CreateCommand=no
8417
rm -f conftest.err conftest.$ac_objext \
8418
conftest$ac_exeext conftest.$ac_ext
8419
LIBS=$ac_check_lib_save_LIBS
8421
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&5
8422
echo "${ECHO_T}$ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&6
8423
if test $ac_cv_lib_tcl7_6_Tcl_CreateCommand = yes; then
8424
TCL_LIBS="$TCL_LIBS -ltcl7.6 -lm $DL_LIB"
8429
if test $tcl_lib = no; then
8430
echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl7.5" >&5
8431
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl7.5... $ECHO_C" >&6
8432
if test "${ac_cv_lib_tcl7_5_Tcl_CreateCommand+set}" = set; then
8433
echo $ECHO_N "(cached) $ECHO_C" >&6
8435
ac_check_lib_save_LIBS=$LIBS
8436
LIBS="-ltcl7.5 -lm $DL_LIB $LIBS"
8437
cat >conftest.$ac_ext <<_ACEOF
8440
cat confdefs.h >>conftest.$ac_ext
8441
cat >>conftest.$ac_ext <<_ACEOF
8442
/* end confdefs.h. */
8444
/* Override any gcc2 internal prototype to avoid an error. */
8448
/* We use char because int might match the return type of a gcc2
8449
builtin and then its argument prototype would still apply. */
8450
char Tcl_CreateCommand ();
8454
Tcl_CreateCommand ();
8459
rm -f conftest.$ac_objext conftest$ac_exeext
8460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461
(eval $ac_link) 2>conftest.er1
8463
grep -v '^ *+' conftest.er1 >conftest.err
8465
cat conftest.err >&5
8466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467
(exit $ac_status); } &&
8468
{ ac_try='test -z "$ac_c_werror_flag"
8469
|| test ! -s conftest.err'
8470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474
(exit $ac_status); }; } &&
8475
{ ac_try='test -s conftest$ac_exeext'
8476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
(exit $ac_status); }; }; then
8481
ac_cv_lib_tcl7_5_Tcl_CreateCommand=yes
8483
echo "$as_me: failed program was:" >&5
8484
sed 's/^/| /' conftest.$ac_ext >&5
8486
ac_cv_lib_tcl7_5_Tcl_CreateCommand=no
8488
rm -f conftest.err conftest.$ac_objext \
8489
conftest$ac_exeext conftest.$ac_ext
8490
LIBS=$ac_check_lib_save_LIBS
8492
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&5
8493
echo "${ECHO_T}$ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&6
8494
if test $ac_cv_lib_tcl7_5_Tcl_CreateCommand = yes; then
8495
TCL_LIBS="$TCL_LIBS -ltcl7.5 -lm $DL_LIB"
8501
if test $tcl_lib = no ; then
8502
echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl" >&5
8503
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl... $ECHO_C" >&6
8504
if test "${ac_cv_lib_tcl_Tcl_CreateCommand+set}" = set; then
8505
echo $ECHO_N "(cached) $ECHO_C" >&6
8507
ac_check_lib_save_LIBS=$LIBS
8508
LIBS="-ltcl -lm $DL_LIB $LIBS"
8509
cat >conftest.$ac_ext <<_ACEOF
8512
cat confdefs.h >>conftest.$ac_ext
8513
cat >>conftest.$ac_ext <<_ACEOF
8514
/* end confdefs.h. */
8516
/* Override any gcc2 internal prototype to avoid an error. */
8520
/* We use char because int might match the return type of a gcc2
8521
builtin and then its argument prototype would still apply. */
8522
char Tcl_CreateCommand ();
8526
Tcl_CreateCommand ();
8531
rm -f conftest.$ac_objext conftest$ac_exeext
8532
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533
(eval $ac_link) 2>conftest.er1
8535
grep -v '^ *+' conftest.er1 >conftest.err
8537
cat conftest.err >&5
8538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
(exit $ac_status); } &&
8540
{ ac_try='test -z "$ac_c_werror_flag"
8541
|| test ! -s conftest.err'
8542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
(exit $ac_status); }; } &&
8547
{ ac_try='test -s conftest$ac_exeext'
8548
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552
(exit $ac_status); }; }; then
8553
ac_cv_lib_tcl_Tcl_CreateCommand=yes
8555
echo "$as_me: failed program was:" >&5
8556
sed 's/^/| /' conftest.$ac_ext >&5
8558
ac_cv_lib_tcl_Tcl_CreateCommand=no
8560
rm -f conftest.err conftest.$ac_objext \
8561
conftest$ac_exeext conftest.$ac_ext
8562
LIBS=$ac_check_lib_save_LIBS
8564
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_CreateCommand" >&5
8565
echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_CreateCommand" >&6
8566
if test $ac_cv_lib_tcl_Tcl_CreateCommand = yes; then
8567
TCL_LIBS="$TCL_LIBS -ltcl -lm $DL_LIB"
8573
if test $tcl_lib = no ; then
8574
{ echo "$as_me:$LINENO: WARNING: \"tcl.h found but not library\"" >&5
8575
echo "$as_me: WARNING: \"tcl.h found but not library\"" >&2;}
8578
{ echo "$as_me:$LINENO: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&5
8579
echo "$as_me: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&2;}
8582
CPPFLAGS="$krb5_save_CPPFLAGS"
8583
LDFLAGS="$krb5_save_LDFLAGS"
8589
echo "$as_me:$LINENO: result: \"Not looking for Tcl library\"" >&5
8590
echo "${ECHO_T}\"Not looking for Tcl library\"" >&6
8594
{ echo "$as_me:$LINENO: WARNING: Could not find Tcl which is needed for some tests" >&5
8595
echo "$as_me: WARNING: Could not find Tcl which is needed for some tests" >&2;}
8599
# If "yes" or pathname, error out if not found.
8600
if test "$with_tcl" != no -a "$with_tcl" != try ; then
8601
if test "$tcl_header $tcl_lib" != "yes yes" ; then
8602
{ { echo "$as_me:$LINENO: error: Could not find Tcl" >&5
8603
echo "$as_me: error: Could not find Tcl" >&2;}
8604
{ (exit 1); exit 1; }; }
8609
test "$TCL_LIBS" != "" && DO_TCL=ok
8618
echo "$as_me:$LINENO: checking for working regcomp" >&5
8619
echo $ECHO_N "checking for working regcomp... $ECHO_C" >&6
8620
if test "${ac_cv_func_regcomp+set}" = set; then
8621
echo $ECHO_N "(cached) $ECHO_C" >&6
8624
if test "$cross_compiling" = yes; then
8625
{ { echo "$as_me:$LINENO: error: Cannot test regcomp when cross compiling" >&5
8626
echo "$as_me: error: Cannot test regcomp when cross compiling" >&2;}
8627
{ (exit 1); exit 1; }; }
8629
cat >conftest.$ac_ext <<_ACEOF
8632
cat confdefs.h >>conftest.$ac_ext
8633
cat >>conftest.$ac_ext <<_ACEOF
8634
/* end confdefs.h. */
8636
#include <sys/types.h>
8638
regex_t x; regmatch_t m;
8639
int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
8642
rm -f conftest$ac_exeext
8643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644
(eval $ac_link) 2>&5
8646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
(exit $ac_status); }; }; then
8653
ac_cv_func_regcomp=yes
8655
echo "$as_me: program exited with status $ac_status" >&5
8656
echo "$as_me: failed program was:" >&5
8657
sed 's/^/| /' conftest.$ac_ext >&5
8660
ac_cv_func_regcomp=no
8662
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8666
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
8667
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
8668
test $ac_cv_func_regcomp = yes &&
8669
cat >>confdefs.h <<\_ACEOF
8670
#define HAVE_REGCOMP 1
8673
if test $ac_cv_func_regcomp = no; then
8678
for ac_func in compile step
8680
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8681
echo "$as_me:$LINENO: checking for $ac_func" >&5
8682
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8683
if eval "test \"\${$as_ac_var+set}\" = set"; then
8684
echo $ECHO_N "(cached) $ECHO_C" >&6
8686
cat >conftest.$ac_ext <<_ACEOF
8689
cat confdefs.h >>conftest.$ac_ext
8690
cat >>conftest.$ac_ext <<_ACEOF
8691
/* end confdefs.h. */
8692
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8693
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8694
#define $ac_func innocuous_$ac_func
8696
/* System header to define __stub macros and hopefully few prototypes,
8697
which can conflict with char $ac_func (); below.
8698
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699
<limits.h> exists even on freestanding compilers. */
8702
# include <limits.h>
8704
# include <assert.h>
8709
/* Override any gcc2 internal prototype to avoid an error. */
8714
/* We use char because int might match the return type of a gcc2
8715
builtin and then its argument prototype would still apply. */
8717
/* The GNU C library defines this for functions which it implements
8718
to always fail with ENOSYS. Some functions are actually named
8719
something starting with __ and the normal name is an alias. */
8720
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8723
char (*f) () = $ac_func;
8732
return f != $ac_func;
8737
rm -f conftest.$ac_objext conftest$ac_exeext
8738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8739
(eval $ac_link) 2>conftest.er1
8741
grep -v '^ *+' conftest.er1 >conftest.err
8743
cat conftest.err >&5
8744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745
(exit $ac_status); } &&
8746
{ ac_try='test -z "$ac_c_werror_flag"
8747
|| test ! -s conftest.err'
8748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752
(exit $ac_status); }; } &&
8753
{ ac_try='test -s conftest$ac_exeext'
8754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758
(exit $ac_status); }; }; then
8759
eval "$as_ac_var=yes"
8761
echo "$as_me: failed program was:" >&5
8762
sed 's/^/| /' conftest.$ac_ext >&5
8764
eval "$as_ac_var=no"
8766
rm -f conftest.err conftest.$ac_objext \
8767
conftest$ac_exeext conftest.$ac_ext
8769
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8770
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8771
if test `eval echo '${'$as_ac_var'}'` = yes; then
8772
cat >>confdefs.h <<_ACEOF
8773
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8780
echo "$as_me:$LINENO: checking for compile in -lgen" >&5
8781
echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
8782
if test "${ac_cv_lib_gen_compile+set}" = set; then
8783
echo $ECHO_N "(cached) $ECHO_C" >&6
8785
ac_check_lib_save_LIBS=$LIBS
8787
cat >conftest.$ac_ext <<_ACEOF
8790
cat confdefs.h >>conftest.$ac_ext
8791
cat >>conftest.$ac_ext <<_ACEOF
8792
/* end confdefs.h. */
8794
/* Override any gcc2 internal prototype to avoid an error. */
8798
/* We use char because int might match the return type of a gcc2
8799
builtin and then its argument prototype would still apply. */
8809
rm -f conftest.$ac_objext conftest$ac_exeext
8810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811
(eval $ac_link) 2>conftest.er1
8813
grep -v '^ *+' conftest.er1 >conftest.err
8815
cat conftest.err >&5
8816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
(exit $ac_status); } &&
8818
{ ac_try='test -z "$ac_c_werror_flag"
8819
|| test ! -s conftest.err'
8820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824
(exit $ac_status); }; } &&
8825
{ ac_try='test -s conftest$ac_exeext'
8826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830
(exit $ac_status); }; }; then
8831
ac_cv_lib_gen_compile=yes
8833
echo "$as_me: failed program was:" >&5
8834
sed 's/^/| /' conftest.$ac_ext >&5
8836
ac_cv_lib_gen_compile=no
8838
rm -f conftest.err conftest.$ac_objext \
8839
conftest$ac_exeext conftest.$ac_ext
8840
LIBS=$ac_check_lib_save_LIBS
8842
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
8843
echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
8844
if test $ac_cv_lib_gen_compile = yes; then
8856
echo "$as_me:$LINENO: checking whether ln -s works" >&5
8857
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8859
if test "$LN_S" = "ln -s"; then
8860
echo "$as_me:$LINENO: result: yes" >&5
8861
echo "${ECHO_T}yes" >&6
8863
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8864
echo "${ECHO_T}no, using $LN_S" >&6
8867
if test -n "$ac_tool_prefix"; then
8868
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8869
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8870
echo "$as_me:$LINENO: checking for $ac_word" >&5
8871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8872
if test "${ac_cv_prog_RANLIB+set}" = set; then
8873
echo $ECHO_N "(cached) $ECHO_C" >&6
8875
if test -n "$RANLIB"; then
8876
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882
test -z "$as_dir" && as_dir=.
8883
for ac_exec_ext in '' $ac_executable_extensions; do
8884
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8885
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8886
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8894
RANLIB=$ac_cv_prog_RANLIB
8895
if test -n "$RANLIB"; then
8896
echo "$as_me:$LINENO: result: $RANLIB" >&5
8897
echo "${ECHO_T}$RANLIB" >&6
8899
echo "$as_me:$LINENO: result: no" >&5
8900
echo "${ECHO_T}no" >&6
8904
if test -z "$ac_cv_prog_RANLIB"; then
8905
ac_ct_RANLIB=$RANLIB
8906
# Extract the first word of "ranlib", so it can be a program name with args.
8907
set dummy ranlib; ac_word=$2
8908
echo "$as_me:$LINENO: checking for $ac_word" >&5
8909
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8911
echo $ECHO_N "(cached) $ECHO_C" >&6
8913
if test -n "$ac_ct_RANLIB"; then
8914
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920
test -z "$as_dir" && as_dir=.
8921
for ac_exec_ext in '' $ac_executable_extensions; do
8922
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923
ac_cv_prog_ac_ct_RANLIB="ranlib"
8924
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8930
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8933
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8934
if test -n "$ac_ct_RANLIB"; then
8935
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8936
echo "${ECHO_T}$ac_ct_RANLIB" >&6
8938
echo "$as_me:$LINENO: result: no" >&5
8939
echo "${ECHO_T}no" >&6
8942
RANLIB=$ac_ct_RANLIB
8944
RANLIB="$ac_cv_prog_RANLIB"
8947
# Extract the first word of "ar", so it can be a program name with args.
8948
set dummy ar; ac_word=$2
8949
echo "$as_me:$LINENO: checking for $ac_word" >&5
8950
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8951
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
8952
echo $ECHO_N "(cached) $ECHO_C" >&6
8954
if test -n "$ARCHIVE"; then
8955
ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
8957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961
test -z "$as_dir" && as_dir=.
8962
for ac_exec_ext in '' $ac_executable_extensions; do
8963
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964
ac_cv_prog_ARCHIVE="ar cqv"
8965
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8971
test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
8974
ARCHIVE=$ac_cv_prog_ARCHIVE
8975
if test -n "$ARCHIVE"; then
8976
echo "$as_me:$LINENO: result: $ARCHIVE" >&5
8977
echo "${ECHO_T}$ARCHIVE" >&6
8979
echo "$as_me:$LINENO: result: no" >&5
8980
echo "${ECHO_T}no" >&6
8983
# Extract the first word of "ar", so it can be a program name with args.
8984
set dummy ar; ac_word=$2
8985
echo "$as_me:$LINENO: checking for $ac_word" >&5
8986
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987
if test "${ac_cv_prog_ARADD+set}" = set; then
8988
echo $ECHO_N "(cached) $ECHO_C" >&6
8990
if test -n "$ARADD"; then
8991
ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
8993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997
test -z "$as_dir" && as_dir=.
8998
for ac_exec_ext in '' $ac_executable_extensions; do
8999
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000
ac_cv_prog_ARADD="ar cruv"
9001
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9007
test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
9010
ARADD=$ac_cv_prog_ARADD
9011
if test -n "$ARADD"; then
9012
echo "$as_me:$LINENO: result: $ARADD" >&5
9013
echo "${ECHO_T}$ARADD" >&6
9015
echo "$as_me:$LINENO: result: no" >&5
9016
echo "${ECHO_T}no" >&6
9019
# Find a good install program. We prefer a C program (faster),
9020
# so one script is as good as another. But avoid the broken or
9021
# incompatible versions:
9022
# SysV /etc/install, /usr/sbin/install
9023
# SunOS /usr/etc/install
9024
# IRIX /sbin/install
9026
# AmigaOS /C/install, which installs bootblocks on floppy discs
9027
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9028
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9029
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9030
# OS/2's system install, which has a completely different semantic
9031
# ./install, which can be erroneously created by make from ./install.sh.
9032
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9033
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9034
if test -z "$INSTALL"; then
9035
if test "${ac_cv_path_install+set}" = set; then
9036
echo $ECHO_N "(cached) $ECHO_C" >&6
9038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042
test -z "$as_dir" && as_dir=.
9043
# Account for people who put trailing slashes in PATH elements.
9045
./ | .// | /cC/* | \
9046
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9047
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9050
# OSF1 and SCO ODT 3.0 have their own names for install.
9051
# Don't use installbsd from OSF since it installs stuff as root
9053
for ac_prog in ginstall scoinst install; do
9054
for ac_exec_ext in '' $ac_executable_extensions; do
9055
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9056
if test $ac_prog = install &&
9057
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9058
# AIX install. It has an incompatible calling convention.
9060
elif test $ac_prog = install &&
9061
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9062
# program-specific install script used by HP pwplus--don't use.
9065
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9077
if test "${ac_cv_path_install+set}" = set; then
9078
INSTALL=$ac_cv_path_install
9080
# As a last resort, use the slow shell script. We don't cache a
9081
# path for INSTALL within a source directory, because that will
9082
# break other packages using the cache if that directory is
9083
# removed, or if the path is relative.
9084
INSTALL=$ac_install_sh
9087
echo "$as_me:$LINENO: result: $INSTALL" >&5
9088
echo "${ECHO_T}$INSTALL" >&6
9090
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9091
# It thinks the first close brace ends the variable substitution.
9092
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9094
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9096
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9098
# Extract the first word of "ar", so it can be a program name with args.
9099
set dummy ar; ac_word=$2
9100
echo "$as_me:$LINENO: checking for $ac_word" >&5
9101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9102
if test "${ac_cv_prog_AR+set}" = set; then
9103
echo $ECHO_N "(cached) $ECHO_C" >&6
9105
if test -n "$AR"; then
9106
ac_cv_prog_AR="$AR" # Let the user override the test.
9108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112
test -z "$as_dir" && as_dir=.
9113
for ac_exec_ext in '' $ac_executable_extensions; do
9114
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9122
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
9126
if test -n "$AR"; then
9127
echo "$as_me:$LINENO: result: $AR" >&5
9128
echo "${ECHO_T}$AR" >&6
9130
echo "$as_me:$LINENO: result: no" >&5
9131
echo "${ECHO_T}no" >&6
9134
# Extract the first word of "perl", so it can be a program name with args.
9135
set dummy perl; ac_word=$2
9136
echo "$as_me:$LINENO: checking for $ac_word" >&5
9137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9138
if test "${ac_cv_prog_PERL+set}" = set; then
9139
echo $ECHO_N "(cached) $ECHO_C" >&6
9141
if test -n "$PERL"; then
9142
ac_cv_prog_PERL="$PERL" # Let the user override the test.
9144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148
test -z "$as_dir" && as_dir=.
9149
for ac_exec_ext in '' $ac_executable_extensions; do
9150
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151
ac_cv_prog_PERL="perl"
9152
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9158
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
9161
PERL=$ac_cv_prog_PERL
9162
if test -n "$PERL"; then
9163
echo "$as_me:$LINENO: result: $PERL" >&5
9164
echo "${ECHO_T}$PERL" >&6
9166
echo "$as_me:$LINENO: result: no" >&5
9167
echo "${ECHO_T}no" >&6
9170
if test "$ac_cv_prog_PERL" = "false"; then
9171
{ { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
9172
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
9173
{ (exit 1); exit 1; }; }
9188
KRB5_RUN_ENV="$RUN_ENV"
9190
ac_config_files="$ac_config_files prtest"
9193
ac_config_files="$ac_config_files ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in"
9195
ac_config_commands="$ac_config_commands krb5_config_prefix"
9197
cat >confcache <<\_ACEOF
9198
# This file is a shell script that caches the results of configure
9199
# tests run on this system so they can be shared between configure
9200
# scripts and configure runs, see configure's option --config-cache.
9201
# It is not useful on other systems. If it contains results you don't
9202
# want to keep, you may remove or edit it.
9204
# config.status only pays attention to the cache file if you give it
9205
# the --recheck option to rerun configure.
9207
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9208
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9213
# The following way of writing the cache mishandles newlines in values,
9214
# but we know of no workaround that is simple, portable, and efficient.
9215
# So, don't put newlines in cache variables' values.
9216
# Ultrix sh set writes to stderr and can't be redirected directly,
9217
# and sets the high bit in the cache file unless we assign to the vars.
9220
case `(ac_space=' '; set | grep ac_space) 2>&1` in
9222
# `set' does not quote correctly, so add quotes (double-quote
9223
# substitution turns \\\\ into \\, and sed turns \\ into \).
9226
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9229
# `set' quotes correctly as required by POSIX, so do not add quotes.
9231
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9238
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9240
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9242
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9243
if test -w $cache_file; then
9244
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9245
cat confcache >$cache_file
9247
echo "not updating unwritable cache $cache_file"
9252
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9253
# Let make expand exec_prefix.
9254
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9256
# VPATH may cause trouble with some makes, so we remove $(srcdir),
9257
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9258
# trailing colons and then remove the whole line if VPATH becomes empty
9259
# (actually we leave an empty line to preserve line numbers).
9260
if test "x$srcdir" = x.; then
9261
ac_vpsub='/^[ ]*VPATH[ ]*=/{
9262
s/:*\$(srcdir):*/:/;
9263
s/:*\${srcdir}:*/:/;
9265
s/^\([^=]*=[ ]*\):*/\1/;
9271
# Transform confdefs.h into DEFS.
9272
# Protect against shell expansion while executing Makefile rules.
9273
# Protect against Makefile macro expansion.
9275
# If the first sed substitution is executed (which looks for macros that
9276
# take arguments), then we branch to the quote section. Otherwise,
9277
# look for a macro that doesn't take arguments.
9278
cat >confdef2opt.sed <<\_ACEOF
9281
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9283
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9287
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9293
# We use echo to avoid assuming a particular line-breaking character.
9294
# The extra dot is to prevent the shell from consuming trailing
9295
# line-breaks from the sub-command output. A line-break within
9296
# single-quotes doesn't work because, if this script is created in a
9297
# platform that uses two characters for line-breaks (e.g., DOS), tr
9299
ac_LF_and_DOT=`echo; echo .`
9300
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9301
rm -f confdef2opt.sed
9306
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9307
# 1. Remove the extension, and $U if already installed.
9308
ac_i=`echo "$ac_i" |
9309
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9311
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9312
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9316
LTLIBOBJS=$ac_ltlibobjs
9320
: ${CONFIG_STATUS=./config.status}
9321
ac_clean_files_save=$ac_clean_files
9322
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9323
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9324
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9325
cat >$CONFIG_STATUS <<_ACEOF
9327
# Generated by $as_me.
9328
# Run this file to recreate the current configuration.
9329
# Compiler output produced by configure, useful for debugging
9330
# configure, is in config.log if it exists.
9335
SHELL=\${CONFIG_SHELL-$SHELL}
9338
cat >>$CONFIG_STATUS <<\_ACEOF
9339
## --------------------- ##
9340
## M4sh Initialization. ##
9341
## --------------------- ##
9343
# Be Bourne compatible
9344
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9347
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9348
# is contrary to our usage. Disable this feature.
9349
alias -g '${1+"$@"}'='"$@"'
9350
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9353
DUALCASE=1; export DUALCASE # for MKS sh
9355
# Support unset when possible.
9356
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9363
# Work around bugs in pre-3.0 UWIN ksh.
9364
$as_unset ENV MAIL MAILPATH
9371
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9372
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9373
LC_TELEPHONE LC_TIME
9375
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9376
eval $as_var=C; export $as_var
9382
# Required to use basename.
9383
if expr a : '\(a\)' >/dev/null 2>&1; then
9389
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9390
as_basename=basename
9396
# Name of the executable.
9397
as_me=`$as_basename "$0" ||
9398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9399
X"$0" : 'X\(//\)$' \| \
9400
X"$0" : 'X\(/\)$' \| \
9401
. : '\(.\)' 2>/dev/null ||
9403
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9404
/^X\/\(\/\/\)$/{ s//\1/; q; }
9405
/^X\/\(\/\).*/{ s//\1/; q; }
9409
# PATH needs CR, and LINENO needs CR and PATH.
9410
# Avoid depending upon Character Ranges.
9411
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9412
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9413
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9414
as_cr_digits='0123456789'
9415
as_cr_alnum=$as_cr_Letters$as_cr_digits
9417
# The user is always right.
9418
if test "${PATH_SEPARATOR+set}" != set; then
9419
echo "#! /bin/sh" >conf$$.sh
9420
echo "exit 0" >>conf$$.sh
9422
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9433
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9434
test "x$as_lineno_1" != "x$as_lineno_2" &&
9435
test "x$as_lineno_3" = "x$as_lineno_2" || {
9436
# Find who we are. Look in the path if we contain no path at all
9439
*[\\/]* ) as_myself=$0 ;;
9440
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444
test -z "$as_dir" && as_dir=.
9445
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9450
# We did not find ourselves, most probably we were run as `sh COMMAND'
9451
# in which case we are not to be found in the path.
9452
if test "x$as_myself" = x; then
9455
if test ! -f "$as_myself"; then
9456
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9457
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9458
{ (exit 1); exit 1; }; }
9460
case $CONFIG_SHELL in
9462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9466
test -z "$as_dir" && as_dir=.
9467
for as_base in sh bash ksh sh5; do
9470
if ("$as_dir/$as_base" -c '
9473
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9474
test "x$as_lineno_1" != "x$as_lineno_2" &&
9475
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9476
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9477
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9478
CONFIG_SHELL=$as_dir/$as_base
9480
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9488
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9489
# uniformly replaced by the line number. The first 'sed' inserts a
9490
# line-number line before each line; the second 'sed' does the real
9491
# work. The second script uses 'N' to pair each line-number line
9492
# with the numbered line, and appends trailing '-' during
9493
# substitution so that $LINENO is not a special case at line end.
9494
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9495
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9496
sed '=' <$as_myself |
9501
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9504
s,^['$as_cr_digits']*\n,,
9506
chmod +x $as_me.lineno ||
9507
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9508
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9509
{ (exit 1); exit 1; }; }
9511
# Don't try to exec as it changes $[0], causing all sort of problems
9512
# (the dirname of $[0] is not the place where we might find the
9513
# original and so on. Autoconf is especially sensible to this).
9515
# Exit status is that of the last command.
9520
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9521
*c*,-n*) ECHO_N= ECHO_C='
9523
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9524
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9527
if expr a : '\(a\)' >/dev/null 2>&1; then
9533
rm -f conf$$ conf$$.exe conf$$.file
9535
if ln -s conf$$.file conf$$ 2>/dev/null; then
9536
# We could just check for DJGPP; but this test a) works b) is more generic
9537
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9538
if test -f conf$$.exe; then
9539
# Don't use ln at all; we don't have any links
9544
elif ln conf$$.file conf$$ 2>/dev/null; then
9549
rm -f conf$$ conf$$.exe conf$$.file
9551
if mkdir -p . 2>/dev/null; then
9554
test -d ./-p && rmdir ./-p
9558
as_executable_p="test -f"
9560
# Sed expression to map a string onto a valid CPP name.
9561
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9563
# Sed expression to map a string onto a valid variable name.
9564
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9568
# We need space, tab and new line, in precisely that order.
9578
# Open the log real soon, to keep \$[0] and so on meaningful, and to
9579
# report actual input values of CONFIG_FILES etc. instead of their
9580
# values after options handling. Logging --version etc. is OK.
9584
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9585
## Running $as_me. ##
9590
This file was extended by $as_me, which was
9591
generated by GNU Autoconf 2.59. Invocation command line was
9593
CONFIG_FILES = $CONFIG_FILES
9594
CONFIG_HEADERS = $CONFIG_HEADERS
9595
CONFIG_LINKS = $CONFIG_LINKS
9596
CONFIG_COMMANDS = $CONFIG_COMMANDS
9600
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9604
# Files that config.status was made for.
9605
if test -n "$ac_config_files"; then
9606
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9609
if test -n "$ac_config_headers"; then
9610
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9613
if test -n "$ac_config_links"; then
9614
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9617
if test -n "$ac_config_commands"; then
9618
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9621
cat >>$CONFIG_STATUS <<\_ACEOF
9624
\`$as_me' instantiates files from templates according to the
9625
current configuration.
9627
Usage: $0 [OPTIONS] [FILE]...
9629
-h, --help print this help, then exit
9630
-V, --version print version number, then exit
9631
-q, --quiet do not print progress messages
9632
-d, --debug don't remove temporary files
9633
--recheck update $as_me by reconfiguring in the same conditions
9634
--file=FILE[:TEMPLATE]
9635
instantiate the configuration file FILE
9637
Configuration files:
9640
Configuration commands:
9643
Report bugs to <bug-autoconf@gnu.org>."
9646
cat >>$CONFIG_STATUS <<_ACEOF
9649
configured by $0, generated by GNU Autoconf 2.59,
9650
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9652
Copyright (C) 2003 Free Software Foundation, Inc.
9653
This config.status script is free software; the Free Software Foundation
9654
gives unlimited permission to copy, distribute and modify it."
9659
cat >>$CONFIG_STATUS <<\_ACEOF
9660
# If no file are specified by the user, then we need to provide default
9661
# value. By we need to know if files were specified by the user.
9667
ac_option=`expr "x$1" : 'x\([^=]*\)='`
9668
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9676
*) # This is not an option, so the user has probably given explicit
9679
ac_need_defaults=false;;
9683
# Handling of the options.
9685
cat >>$CONFIG_STATUS <<\_ACEOF
9686
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9688
--version | --vers* | -V )
9689
echo "$ac_cs_version"; exit 0 ;;
9691
# Conflict between --help and --header
9692
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
9693
Try \`$0 --help' for more information." >&5
9694
echo "$as_me: error: ambiguous option: $1
9695
Try \`$0 --help' for more information." >&2;}
9696
{ (exit 1); exit 1; }; };;
9697
--help | --hel | -h )
9698
echo "$ac_cs_usage"; exit 0 ;;
9699
--debug | --d* | -d )
9701
--file | --fil | --fi | --f )
9703
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9704
ac_need_defaults=false;;
9705
--header | --heade | --head | --hea )
9707
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9708
ac_need_defaults=false;;
9709
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
9710
| -silent | --silent | --silen | --sile | --sil | --si | --s)
9714
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9715
Try \`$0 --help' for more information." >&5
9716
echo "$as_me: error: unrecognized option: $1
9717
Try \`$0 --help' for more information." >&2;}
9718
{ (exit 1); exit 1; }; } ;;
9720
*) ac_config_targets="$ac_config_targets $1" ;;
9726
ac_configure_extra_args=
9728
if $ac_cs_silent; then
9730
ac_configure_extra_args="$ac_configure_extra_args --silent"
9734
cat >>$CONFIG_STATUS <<_ACEOF
9735
if \$ac_cs_recheck; then
9736
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9737
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9742
cat >>$CONFIG_STATUS <<_ACEOF
9744
# INIT-COMMANDS section.
9747
krb5_pre_in=$krb5_pre_in
9748
ac_config_fragdir=$ac_config_fragdir
9749
krb5_post_in=$krb5_post_in
9755
cat >>$CONFIG_STATUS <<\_ACEOF
9756
for ac_config_target in $ac_config_targets
9758
case "$ac_config_target" in
9759
# Handling of arguments.
9760
"prtest" ) CONFIG_FILES="$CONFIG_FILES prtest" ;;
9761
"./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in" ;;
9762
"krb5_config_prefix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS krb5_config_prefix" ;;
9763
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9764
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9765
{ (exit 1); exit 1; }; };;
9769
# If the user did not use the arguments to specify the items to instantiate,
9770
# then the envvar interface is used. Set only those that are not.
9771
# We use the long form for the default assignment because of an extremely
9772
# bizarre bug on SunOS 4.1.3.
9773
if $ac_need_defaults; then
9774
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9775
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9778
# Have a temporary directory for convenience. Make it in the build tree
9779
# simply because there is no reason to put it here, and in addition,
9780
# creating and moving files from /tmp can sometimes cause problems.
9781
# Create a temporary directory, and hook for its removal unless debugging.
9784
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9785
trap '{ (exit 1); exit 1; }' 1 2 13 15
9788
# Create a (secure) tmp directory for tmp files.
9791
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9792
test -n "$tmp" && test -d "$tmp"
9795
tmp=./confstat$$-$RANDOM
9796
(umask 077 && mkdir $tmp)
9799
echo "$me: cannot create a temporary directory in ." >&2
9800
{ (exit 1); exit 1; }
9805
cat >>$CONFIG_STATUS <<_ACEOF
9808
# CONFIG_FILES section.
9811
# No need to generate the scripts if there are no CONFIG_FILES.
9812
# This happens for instance when ./config.status config.h
9813
if test -n "\$CONFIG_FILES"; then
9814
# Protect against being on the right side of a sed subst in config.status.
9815
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9816
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9817
s,@SHELL@,$SHELL,;t t
9818
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9819
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9820
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9821
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9822
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9823
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9824
s,@exec_prefix@,$exec_prefix,;t t
9825
s,@prefix@,$prefix,;t t
9826
s,@program_transform_name@,$program_transform_name,;t t
9827
s,@bindir@,$bindir,;t t
9828
s,@sbindir@,$sbindir,;t t
9829
s,@libexecdir@,$libexecdir,;t t
9830
s,@datadir@,$datadir,;t t
9831
s,@sysconfdir@,$sysconfdir,;t t
9832
s,@sharedstatedir@,$sharedstatedir,;t t
9833
s,@localstatedir@,$localstatedir,;t t
9834
s,@libdir@,$libdir,;t t
9835
s,@includedir@,$includedir,;t t
9836
s,@oldincludedir@,$oldincludedir,;t t
9837
s,@infodir@,$infodir,;t t
9838
s,@mandir@,$mandir,;t t
9839
s,@build_alias@,$build_alias,;t t
9840
s,@host_alias@,$host_alias,;t t
9841
s,@target_alias@,$target_alias,;t t
9843
s,@ECHO_C@,$ECHO_C,;t t
9844
s,@ECHO_N@,$ECHO_N,;t t
9845
s,@ECHO_T@,$ECHO_T,;t t
9847
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
9849
s,@CFLAGS@,$CFLAGS,;t t
9850
s,@LDFLAGS@,$LDFLAGS,;t t
9851
s,@CPPFLAGS@,$CPPFLAGS,;t t
9852
s,@ac_ct_CC@,$ac_ct_CC,;t t
9853
s,@EXEEXT@,$EXEEXT,;t t
9854
s,@OBJEXT@,$OBJEXT,;t t
9855
s,@HAVE_GCC@,$HAVE_GCC,;t t
9858
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
9859
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
9860
s,@KRB4_LIB@,$KRB4_LIB,;t t
9861
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
9862
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
9863
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
9864
s,@DES425_LIB@,$DES425_LIB,;t t
9865
s,@compile_et@,$compile_et,;t t
9866
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
9867
s,@SS_LIB@,$SS_LIB,;t t
9868
s,@SS_VERSION@,$SS_VERSION,;t t
9869
s,@DB_HEADER@,$DB_HEADER,;t t
9870
s,@DB_LIB@,$DB_LIB,;t t
9871
s,@DB_VERSION@,$DB_VERSION,;t t
9872
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
9873
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
9874
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
9875
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
9876
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9877
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9878
s,@MAINT@,$MAINT,;t t
9879
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
9880
s,@subdirs@,$subdirs,;t t
9881
s,@build@,$build,;t t
9882
s,@build_cpu@,$build_cpu,;t t
9883
s,@build_vendor@,$build_vendor,;t t
9884
s,@build_os@,$build_os,;t t
9886
s,@host_cpu@,$host_cpu,;t t
9887
s,@host_vendor@,$host_vendor,;t t
9888
s,@host_os@,$host_os,;t t
9889
s,@krb5_cv_host@,$krb5_cv_host,;t t
9890
s,@acx_pthread_config@,$acx_pthread_config,;t t
9891
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
9892
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
9893
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
9894
s,@EGREP@,$EGREP,;t t
9896
s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
9897
s,@TCL_LIBS@,$TCL_LIBS,;t t
9898
s,@TCL_LIBPATH@,$TCL_LIBPATH,;t t
9899
s,@TCL_RPATH@,$TCL_RPATH,;t t
9900
s,@TCL_MAYBE_RPATH@,$TCL_MAYBE_RPATH,;t t
9901
s,@DO_TCL@,$DO_TCL,;t t
9902
s,@OBJLISTS@,$OBJLISTS,;t t
9903
s,@STOBJEXT@,$STOBJEXT,;t t
9904
s,@SHOBJEXT@,$SHOBJEXT,;t t
9905
s,@PFOBJEXT@,$PFOBJEXT,;t t
9906
s,@PICFLAGS@,$PICFLAGS,;t t
9907
s,@PROFFLAGS@,$PROFFLAGS,;t t
9908
s,@GEN_LIB@,$GEN_LIB,;t t
9909
s,@CC_LINK@,$CC_LINK,;t t
9910
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
9911
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
9913
s,@RANLIB@,$RANLIB,;t t
9914
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9915
s,@ARCHIVE@,$ARCHIVE,;t t
9916
s,@ARADD@,$ARADD,;t t
9917
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9918
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9919
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9922
s,@LIBLIST@,$LIBLIST,;t t
9923
s,@LIBLINKS@,$LIBLINKS,;t t
9924
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
9925
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
9926
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
9927
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
9928
s,@STLIBEXT@,$STLIBEXT,;t t
9929
s,@SHLIBEXT@,$SHLIBEXT,;t t
9930
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
9931
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
9932
s,@PFLIBEXT@,$PFLIBEXT,;t t
9933
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
9934
s,@KRB5_RUN_ENV@,$KRB5_RUN_ENV,;t t
9935
s,@LIBOBJS@,$LIBOBJS,;t t
9936
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9937
/@lib_frag@/r $lib_frag
9939
/@libobj_frag@/r $libobj_frag
9940
s,@libobj_frag@,,;t t
9945
cat >>$CONFIG_STATUS <<\_ACEOF
9946
# Split the substitutions into bite-sized pieces for seds with
9947
# small command number limits, like on Digital OSF/1 and HP-UX.
9949
ac_sed_frag=1 # Number of current file.
9950
ac_beg=1 # First line for current file.
9951
ac_end=$ac_max_sed_lines # Line after last line for current file.
9954
while $ac_more_lines; do
9955
if test $ac_beg -gt 1; then
9956
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9958
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9960
if test ! -s $tmp/subs.frag; then
9963
# The purpose of the label and of the branching condition is to
9964
# speed up the sed processing (if there are no `@' at all, there
9965
# is no need to browse any of the substitutions).
9966
# These are the two extra sed commands mentioned above.
9968
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9969
if test -z "$ac_sed_cmds"; then
9970
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9972
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9974
ac_sed_frag=`expr $ac_sed_frag + 1`
9976
ac_end=`expr $ac_end + $ac_max_sed_lines`
9979
if test -z "$ac_sed_cmds"; then
9982
fi # test -n "$CONFIG_FILES"
9985
cat >>$CONFIG_STATUS <<\_ACEOF
9986
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9987
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9989
- | *:- | *:-:* ) # input from stdin
9991
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9992
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9993
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9994
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9995
* ) ac_file_in=$ac_file.in ;;
9998
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9999
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10000
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10001
X"$ac_file" : 'X\(//\)[^/]' \| \
10002
X"$ac_file" : 'X\(//\)$' \| \
10003
X"$ac_file" : 'X\(/\)' \| \
10004
. : '\(.\)' 2>/dev/null ||
10006
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10007
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10008
/^X\(\/\/\)$/{ s//\1/; q; }
10009
/^X\(\/\).*/{ s//\1/; q; }
10011
{ if $as_mkdir_p; then
10016
while test ! -d "$as_dir"; do
10017
as_dirs="$as_dir $as_dirs"
10018
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10019
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10020
X"$as_dir" : 'X\(//\)[^/]' \| \
10021
X"$as_dir" : 'X\(//\)$' \| \
10022
X"$as_dir" : 'X\(/\)' \| \
10023
. : '\(.\)' 2>/dev/null ||
10025
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10026
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10027
/^X\(\/\/\)$/{ s//\1/; q; }
10028
/^X\(\/\).*/{ s//\1/; q; }
10031
test ! -n "$as_dirs" || mkdir $as_dirs
10032
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10033
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10034
{ (exit 1); exit 1; }; }; }
10038
if test "$ac_dir" != .; then
10039
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10040
# A "../" for each directory in $ac_dir_suffix.
10041
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10043
ac_dir_suffix= ac_top_builddir=
10047
.) # No --srcdir option. We are building in place.
10049
if test -z "$ac_top_builddir"; then
10052
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10054
[\\/]* | ?:[\\/]* ) # Absolute path.
10055
ac_srcdir=$srcdir$ac_dir_suffix;
10056
ac_top_srcdir=$srcdir ;;
10057
*) # Relative path.
10058
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10059
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10062
# Do not use `cd foo && pwd` to compute absolute paths, because
10063
# the directories may not exist.
10065
.) ac_abs_builddir="$ac_dir";;
10068
.) ac_abs_builddir=`pwd`;;
10069
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10070
*) ac_abs_builddir=`pwd`/"$ac_dir";;
10073
case $ac_abs_builddir in
10074
.) ac_abs_top_builddir=${ac_top_builddir}.;;
10076
case ${ac_top_builddir}. in
10077
.) ac_abs_top_builddir=$ac_abs_builddir;;
10078
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10079
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10082
case $ac_abs_builddir in
10083
.) ac_abs_srcdir=$ac_srcdir;;
10086
.) ac_abs_srcdir=$ac_abs_builddir;;
10087
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10088
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10091
case $ac_abs_builddir in
10092
.) ac_abs_top_srcdir=$ac_top_srcdir;;
10094
case $ac_top_srcdir in
10095
.) ac_abs_top_srcdir=$ac_abs_builddir;;
10096
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10097
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10103
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10104
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10107
if test x"$ac_file" != x-; then
10108
{ echo "$as_me:$LINENO: creating $ac_file" >&5
10109
echo "$as_me: creating $ac_file" >&6;}
10112
# Let's still pretend it is `configure' which instantiates (i.e., don't
10113
# use $as_me), people would be surprised to read:
10114
# /* config.h. Generated by config.status. */
10115
if test x"$ac_file" = x-; then
10118
configure_input="$ac_file. "
10120
configure_input=$configure_input"Generated from `echo $ac_file_in |
10121
sed 's,.*/,,'` by configure."
10123
# First look for the input files in the build tree, otherwise in the
10125
ac_file_inputs=`IFS=:
10126
for f in $ac_file_in; do
10128
-) echo $tmp/stdin ;;
10130
# Absolute (can't be DOS-style, as IFS=:)
10131
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10132
echo "$as_me: error: cannot find input file: $f" >&2;}
10133
{ (exit 1); exit 1; }; }
10136
if test -f "$f"; then
10139
elif test -f "$srcdir/$f"; then
10144
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10145
echo "$as_me: error: cannot find input file: $f" >&2;}
10146
{ (exit 1); exit 1; }; }
10149
done` || { (exit 1); exit 1; }
10151
cat >>$CONFIG_STATUS <<_ACEOF
10155
cat >>$CONFIG_STATUS <<\_ACEOF
10157
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10158
s,@configure_input@,$configure_input,;t t
10159
s,@srcdir@,$ac_srcdir,;t t
10160
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10161
s,@top_srcdir@,$ac_top_srcdir,;t t
10162
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10163
s,@builddir@,$ac_builddir,;t t
10164
s,@abs_builddir@,$ac_abs_builddir,;t t
10165
s,@top_builddir@,$ac_top_builddir,;t t
10166
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10167
s,@INSTALL@,$ac_INSTALL,;t t
10168
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10170
if test x"$ac_file" != x-; then
10171
mv $tmp/out $ac_file
10177
# Run the commands associated with the file.
10179
prtest ) chmod +x prtest ;;
10183
cat >>$CONFIG_STATUS <<\_ACEOF
10186
# CONFIG_COMMANDS section.
10188
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10189
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10190
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10191
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10192
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10193
X"$ac_dest" : 'X\(//\)[^/]' \| \
10194
X"$ac_dest" : 'X\(//\)$' \| \
10195
X"$ac_dest" : 'X\(/\)' \| \
10196
. : '\(.\)' 2>/dev/null ||
10198
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10199
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10200
/^X\(\/\/\)$/{ s//\1/; q; }
10201
/^X\(\/\).*/{ s//\1/; q; }
10203
{ if $as_mkdir_p; then
10208
while test ! -d "$as_dir"; do
10209
as_dirs="$as_dir $as_dirs"
10210
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10211
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10212
X"$as_dir" : 'X\(//\)[^/]' \| \
10213
X"$as_dir" : 'X\(//\)$' \| \
10214
X"$as_dir" : 'X\(/\)' \| \
10215
. : '\(.\)' 2>/dev/null ||
10217
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10218
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10219
/^X\(\/\/\)$/{ s//\1/; q; }
10220
/^X\(\/\).*/{ s//\1/; q; }
10223
test ! -n "$as_dirs" || mkdir $as_dirs
10224
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10225
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10226
{ (exit 1); exit 1; }; }; }
10230
if test "$ac_dir" != .; then
10231
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10232
# A "../" for each directory in $ac_dir_suffix.
10233
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10235
ac_dir_suffix= ac_top_builddir=
10239
.) # No --srcdir option. We are building in place.
10241
if test -z "$ac_top_builddir"; then
10244
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10246
[\\/]* | ?:[\\/]* ) # Absolute path.
10247
ac_srcdir=$srcdir$ac_dir_suffix;
10248
ac_top_srcdir=$srcdir ;;
10249
*) # Relative path.
10250
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10251
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10254
# Do not use `cd foo && pwd` to compute absolute paths, because
10255
# the directories may not exist.
10257
.) ac_abs_builddir="$ac_dir";;
10260
.) ac_abs_builddir=`pwd`;;
10261
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10262
*) ac_abs_builddir=`pwd`/"$ac_dir";;
10265
case $ac_abs_builddir in
10266
.) ac_abs_top_builddir=${ac_top_builddir}.;;
10268
case ${ac_top_builddir}. in
10269
.) ac_abs_top_builddir=$ac_abs_builddir;;
10270
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10271
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10274
case $ac_abs_builddir in
10275
.) ac_abs_srcdir=$ac_srcdir;;
10278
.) ac_abs_srcdir=$ac_abs_builddir;;
10279
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10280
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10283
case $ac_abs_builddir in
10284
.) ac_abs_top_srcdir=$ac_top_srcdir;;
10286
case $ac_top_srcdir in
10287
.) ac_abs_top_srcdir=$ac_abs_builddir;;
10288
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10289
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10294
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10295
echo "$as_me: executing $ac_dest commands" >&6;}
10299
cat >>$CONFIG_STATUS <<\_ACEOF
10301
{ (exit 0); exit 0; }
10303
chmod +x $CONFIG_STATUS
10304
ac_clean_files=$ac_clean_files_save
10307
# configure is writing to config.log, and then calls config.status.
10308
# config.status does its own redirection, appending to config.log.
10309
# Unfortunately, on DOS this fails, as config.log is still kept open
10310
# by configure, so config.status won't be able to write to it; its
10311
# output is simply discarded. So we exec the FD to /dev/null,
10312
# effectively closing config.log, so it can be properly (re)opened and
10313
# appended to by config.status. When coming back to configure, we
10314
# need to make the FD available again.
10315
if test "$no_create" != yes; then
10317
ac_config_status_args=
10318
test "$silent" = yes &&
10319
ac_config_status_args="$ac_config_status_args --quiet"
10321
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10323
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10324
# would make configure fail if this is the last instruction.
10325
$ac_cs_success || { (exit 1); exit 1; }