2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for Kerberos 5 1.6.4-beta1.
5
# Report bugs to <krb5-bugs@mit.edu>.
7
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8
# Massachusetts Institute of Technology.
11
# Copyright (C) 2003 Free Software Foundation, Inc.
12
# This configure script is free software; the Free Software Foundation
13
# gives unlimited permission to copy, distribute and modify it.
14
## --------------------- ##
15
## M4sh Initialization. ##
16
## --------------------- ##
18
# Be Bourne compatible
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
25
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28
DUALCASE=1; export DUALCASE # for MKS sh
30
# Support unset when possible.
31
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38
# Work around bugs in pre-3.0 UWIN ksh.
39
$as_unset ENV MAIL MAILPATH
46
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
eval $as_var=C; export $as_var
57
# Required to use basename.
58
if expr a : '\(a\)' >/dev/null 2>&1; then
64
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
71
# Name of the executable.
72
as_me=`$as_basename "$0" ||
73
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74
X"$0" : 'X\(//\)$' \| \
75
X"$0" : 'X\(/\)$' \| \
76
. : '\(.\)' 2>/dev/null ||
78
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
/^X\/\(\/\/\)$/{ s//\1/; q; }
80
/^X\/\(\/\).*/{ s//\1/; q; }
84
# PATH needs CR, and LINENO needs CR and PATH.
85
# Avoid depending upon Character Ranges.
86
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89
as_cr_digits='0123456789'
90
as_cr_alnum=$as_cr_Letters$as_cr_digits
92
# The user is always right.
93
if test "${PATH_SEPARATOR+set}" != set; then
94
echo "#! /bin/sh" >conf$$.sh
95
echo "exit 0" >>conf$$.sh
97
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109
test "x$as_lineno_1" != "x$as_lineno_2" &&
110
test "x$as_lineno_3" = "x$as_lineno_2" || {
111
# Find who we are. Look in the path if we contain no path at all
114
*[\\/]* ) as_myself=$0 ;;
115
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119
test -z "$as_dir" && as_dir=.
120
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
125
# We did not find ourselves, most probably we were run as `sh COMMAND'
126
# in which case we are not to be found in the path.
127
if test "x$as_myself" = x; then
130
if test ! -f "$as_myself"; then
131
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132
{ (exit 1); exit 1; }; }
134
case $CONFIG_SHELL in
136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140
test -z "$as_dir" && as_dir=.
141
for as_base in sh bash ksh sh5; do
144
if ("$as_dir/$as_base" -c '
147
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148
test "x$as_lineno_1" != "x$as_lineno_2" &&
149
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
150
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152
CONFIG_SHELL=$as_dir/$as_base
154
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
162
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163
# uniformly replaced by the line number. The first 'sed' inserts a
164
# line-number line before each line; the second 'sed' does the real
165
# work. The second script uses 'N' to pair each line-number line
166
# with the numbered line, and appends trailing '-' during
167
# substitution so that $LINENO is not a special case at line end.
168
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
170
sed '=' <$as_myself |
175
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178
s,^['$as_cr_digits']*\n,,
180
chmod +x $as_me.lineno ||
181
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182
{ (exit 1); exit 1; }; }
184
# Don't try to exec as it changes $[0], causing all sort of problems
185
# (the dirname of $[0] is not the place where we might find the
186
# original and so on. Autoconf is especially sensible to this).
188
# Exit status is that of the last command.
193
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
*c*,-n*) ECHO_N= ECHO_C='
196
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200
if expr a : '\(a\)' >/dev/null 2>&1; then
206
rm -f conf$$ conf$$.exe conf$$.file
208
if ln -s conf$$.file conf$$ 2>/dev/null; then
209
# We could just check for DJGPP; but this test a) works b) is more generic
210
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211
if test -f conf$$.exe; then
212
# Don't use ln at all; we don't have any links
217
elif ln conf$$.file conf$$ 2>/dev/null; then
222
rm -f conf$$ conf$$.exe conf$$.file
224
if mkdir -p . 2>/dev/null; then
227
test -d ./-p && rmdir ./-p
231
as_executable_p="test -f"
233
# Sed expression to map a string onto a valid CPP name.
234
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236
# Sed expression to map a string onto a valid variable name.
237
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
# We need space, tab and new line, in precisely that order.
251
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252
# so uname gets run too.
253
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
260
ac_default_prefix=/usr/local
261
ac_config_libobj_dir=.
266
SHELL=${CONFIG_SHELL-/bin/sh}
268
# Maximum number of lines to put in a shell here document.
269
# This variable seems obsolete. It should probably be removed, and
270
# only ac_max_sed_lines should be used.
271
: ${ac_max_here_lines=38}
273
# Identity of this package.
274
PACKAGE_NAME='Kerberos 5'
275
PACKAGE_TARNAME='krb5'
276
PACKAGE_VERSION='1.6.4-beta1'
277
PACKAGE_STRING='Kerberos 5 1.6.4-beta1'
278
PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
280
ac_unique_file="ct.y"
281
# Factoring default headers for most tests.
282
ac_includes_default="\
285
# include <sys/types.h>
288
# include <sys/stat.h>
299
# if !STDC_HEADERS && HAVE_MEMORY_H
305
# include <strings.h>
308
# include <inttypes.h>
318
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 OPENLDAP_PLUGIN 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 THREAD_SUPPORT DL_LIB EGREP LEX LEXLIB LEX_OUTPUT_ROOT YACC AWK 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 DYNOBJ_EXPDEPS DYNOBJ_EXPFLAGS INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT DEPLIBEXT PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS LIBOBJS LTLIBOBJS'
319
ac_subst_files='lib_frag libobj_frag libnover_frag'
321
# Initialize some variables set by options.
323
ac_init_version=false
324
# The variables have the same names as the options, with
325
# dashes changed to underlines.
333
program_transform_name=s,x,x,
341
# Installation directory options.
342
# These are left unexpanded so users can "make install exec_prefix=/foo"
343
# and all the variables that are supposed to be based on exec_prefix
344
# by default will actually change.
345
# Use braces instead of parens because sh, perl, etc. also accept them.
346
bindir='${exec_prefix}/bin'
347
sbindir='${exec_prefix}/sbin'
348
libexecdir='${exec_prefix}/libexec'
349
datadir='${prefix}/share'
350
sysconfdir='${prefix}/etc'
351
sharedstatedir='${prefix}/com'
352
localstatedir='${prefix}/var'
353
libdir='${exec_prefix}/lib'
354
includedir='${prefix}/include'
355
oldincludedir='/usr/include'
356
infodir='${prefix}/info'
357
mandir='${prefix}/man'
362
# If the previous option needs an argument, assign it.
363
if test -n "$ac_prev"; then
364
eval "$ac_prev=\$ac_option"
369
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371
# Accept the important Cygnus configure options, so we can diagnose typos.
375
-bindir | --bindir | --bindi | --bind | --bin | --bi)
377
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380
-build | --build | --buil | --bui | --bu)
381
ac_prev=build_alias ;;
382
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
383
build_alias=$ac_optarg ;;
385
-cache-file | --cache-file | --cache-fil | --cache-fi \
386
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387
ac_prev=cache_file ;;
388
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390
cache_file=$ac_optarg ;;
393
cache_file=config.cache ;;
395
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399
datadir=$ac_optarg ;;
401
-disable-* | --disable-*)
402
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403
# Reject names that are not valid shell variable names.
404
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
406
{ (exit 1); exit 1; }; }
407
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408
eval "enable_$ac_feature=no" ;;
410
-enable-* | --enable-*)
411
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412
# Reject names that are not valid shell variable names.
413
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
415
{ (exit 1); exit 1; }; }
416
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421
eval "enable_$ac_feature='$ac_optarg'" ;;
423
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425
| --exec | --exe | --ex)
426
ac_prev=exec_prefix ;;
427
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429
| --exec=* | --exe=* | --ex=*)
430
exec_prefix=$ac_optarg ;;
432
-gas | --gas | --ga | --g)
433
# Obsolete; use --with-gas.
436
-help | --help | --hel | --he | -h)
438
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439
ac_init_help=recursive ;;
440
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441
ac_init_help=short ;;
443
-host | --host | --hos | --ho)
444
ac_prev=host_alias ;;
445
-host=* | --host=* | --hos=* | --ho=*)
446
host_alias=$ac_optarg ;;
448
-includedir | --includedir | --includedi | --included | --include \
449
| --includ | --inclu | --incl | --inc)
450
ac_prev=includedir ;;
451
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452
| --includ=* | --inclu=* | --incl=* | --inc=*)
453
includedir=$ac_optarg ;;
455
-infodir | --infodir | --infodi | --infod | --info | --inf)
457
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458
infodir=$ac_optarg ;;
460
-libdir | --libdir | --libdi | --libd)
462
-libdir=* | --libdir=* | --libdi=* | --libd=*)
465
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466
| --libexe | --libex | --libe)
467
ac_prev=libexecdir ;;
468
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469
| --libexe=* | --libex=* | --libe=*)
470
libexecdir=$ac_optarg ;;
472
-localstatedir | --localstatedir | --localstatedi | --localstated \
473
| --localstate | --localstat | --localsta | --localst \
474
| --locals | --local | --loca | --loc | --lo)
475
ac_prev=localstatedir ;;
476
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
478
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479
localstatedir=$ac_optarg ;;
481
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487
# Obsolete; use --without-fp.
490
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
491
| --no-cr | --no-c | -n)
494
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
495
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500
| --oldin | --oldi | --old | --ol | --o)
501
ac_prev=oldincludedir ;;
502
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505
oldincludedir=$ac_optarg ;;
507
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512
-program-prefix | --program-prefix | --program-prefi | --program-pref \
513
| --program-pre | --program-pr | --program-p)
514
ac_prev=program_prefix ;;
515
-program-prefix=* | --program-prefix=* | --program-prefi=* \
516
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517
program_prefix=$ac_optarg ;;
519
-program-suffix | --program-suffix | --program-suffi | --program-suff \
520
| --program-suf | --program-su | --program-s)
521
ac_prev=program_suffix ;;
522
-program-suffix=* | --program-suffix=* | --program-suffi=* \
523
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524
program_suffix=$ac_optarg ;;
526
-program-transform-name | --program-transform-name \
527
| --program-transform-nam | --program-transform-na \
528
| --program-transform-n | --program-transform- \
529
| --program-transform | --program-transfor \
530
| --program-transfo | --program-transf \
531
| --program-trans | --program-tran \
532
| --progr-tra | --program-tr | --program-t)
533
ac_prev=program_transform_name ;;
534
-program-transform-name=* | --program-transform-name=* \
535
| --program-transform-nam=* | --program-transform-na=* \
536
| --program-transform-n=* | --program-transform-=* \
537
| --program-transform=* | --program-transfor=* \
538
| --program-transfo=* | --program-transf=* \
539
| --program-trans=* | --program-tran=* \
540
| --progr-tra=* | --program-tr=* | --program-t=*)
541
program_transform_name=$ac_optarg ;;
543
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
544
| -silent | --silent | --silen | --sile | --sil)
547
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551
sbindir=$ac_optarg ;;
553
-sharedstatedir | --sharedstatedir | --sharedstatedi \
554
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555
| --sharedst | --shareds | --shared | --share | --shar \
557
ac_prev=sharedstatedir ;;
558
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562
sharedstatedir=$ac_optarg ;;
564
-site | --site | --sit)
566
-site=* | --site=* | --sit=*)
569
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575
| --syscon | --sysco | --sysc | --sys | --sy)
576
ac_prev=sysconfdir ;;
577
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579
sysconfdir=$ac_optarg ;;
581
-target | --target | --targe | --targ | --tar | --ta | --t)
582
ac_prev=target_alias ;;
583
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584
target_alias=$ac_optarg ;;
586
-v | -verbose | --verbose | --verbos | --verbo | --verb)
589
-version | --version | --versio | --versi | --vers | -V)
593
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594
# Reject names that are not valid shell variable names.
595
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596
{ echo "$as_me: error: invalid package name: $ac_package" >&2
597
{ (exit 1); exit 1; }; }
598
ac_package=`echo $ac_package| sed 's/-/_/g'`
600
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603
eval "with_$ac_package='$ac_optarg'" ;;
605
-without-* | --without-*)
606
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607
# Reject names that are not valid shell variable names.
608
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609
{ echo "$as_me: error: invalid package name: $ac_package" >&2
610
{ (exit 1); exit 1; }; }
611
ac_package=`echo $ac_package | sed 's/-/_/g'`
612
eval "with_$ac_package=no" ;;
615
# Obsolete; use --with-x.
618
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619
| --x-incl | --x-inc | --x-in | --x-i)
620
ac_prev=x_includes ;;
621
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623
x_includes=$ac_optarg ;;
625
-x-libraries | --x-libraries | --x-librarie | --x-librari \
626
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627
ac_prev=x_libraries ;;
628
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630
x_libraries=$ac_optarg ;;
632
-*) { echo "$as_me: error: unrecognized option: $ac_option
633
Try \`$0 --help' for more information." >&2
634
{ (exit 1); exit 1; }; }
638
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639
# Reject names that are not valid shell variable names.
640
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642
{ (exit 1); exit 1; }; }
643
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644
eval "$ac_envvar='$ac_optarg'"
648
# FIXME: should be removed in autoconf 3.0.
649
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658
if test -n "$ac_prev"; then
659
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660
{ echo "$as_me: error: missing argument to $ac_option" >&2
661
{ (exit 1); exit 1; }; }
664
# Be sure to have absolute paths.
665
for ac_var in exec_prefix prefix
667
eval ac_val=$`echo $ac_var`
669
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
{ (exit 1); exit 1; }; };;
675
# Be sure to have absolute paths.
676
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677
localstatedir libdir includedir oldincludedir infodir mandir
679
eval ac_val=$`echo $ac_var`
681
[\\/$]* | ?:[\\/]* ) ;;
682
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683
{ (exit 1); exit 1; }; };;
687
# There might be people who depend on the old broken behavior: `$host'
688
# used to hold the argument of --host etc.
689
# FIXME: To remove some day.
694
# FIXME: To remove some day.
695
if test "x$host_alias" != x; then
696
if test "x$build_alias" = x; then
697
cross_compiling=maybe
698
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699
If a cross compiler is detected then cross compile mode will be used." >&2
700
elif test "x$build_alias" != "x$host_alias"; then
706
test -n "$host_alias" && ac_tool_prefix=$host_alias-
708
test "$silent" = yes && exec 6>/dev/null
711
# Find the source files, if location was not specified.
712
if test -z "$srcdir"; then
713
ac_srcdir_defaulted=yes
714
# Try the directory containing this script, then its parent.
715
ac_confdir=`(dirname "$0") 2>/dev/null ||
716
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717
X"$0" : 'X\(//\)[^/]' \| \
718
X"$0" : 'X\(//\)$' \| \
719
X"$0" : 'X\(/\)' \| \
720
. : '\(.\)' 2>/dev/null ||
722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
724
/^X\(\/\/\)$/{ s//\1/; q; }
725
/^X\(\/\).*/{ s//\1/; q; }
728
if test ! -r $srcdir/$ac_unique_file; then
732
ac_srcdir_defaulted=no
734
if test ! -r $srcdir/$ac_unique_file; then
735
if test "$ac_srcdir_defaulted" = yes; then
736
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737
{ (exit 1); exit 1; }; }
739
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740
{ (exit 1); exit 1; }; }
743
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745
{ (exit 1); exit 1; }; }
746
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747
ac_env_build_alias_set=${build_alias+set}
748
ac_env_build_alias_value=$build_alias
749
ac_cv_env_build_alias_set=${build_alias+set}
750
ac_cv_env_build_alias_value=$build_alias
751
ac_env_host_alias_set=${host_alias+set}
752
ac_env_host_alias_value=$host_alias
753
ac_cv_env_host_alias_set=${host_alias+set}
754
ac_cv_env_host_alias_value=$host_alias
755
ac_env_target_alias_set=${target_alias+set}
756
ac_env_target_alias_value=$target_alias
757
ac_cv_env_target_alias_set=${target_alias+set}
758
ac_cv_env_target_alias_value=$target_alias
759
ac_env_CC_set=${CC+set}
761
ac_cv_env_CC_set=${CC+set}
762
ac_cv_env_CC_value=$CC
763
ac_env_CFLAGS_set=${CFLAGS+set}
764
ac_env_CFLAGS_value=$CFLAGS
765
ac_cv_env_CFLAGS_set=${CFLAGS+set}
766
ac_cv_env_CFLAGS_value=$CFLAGS
767
ac_env_LDFLAGS_set=${LDFLAGS+set}
768
ac_env_LDFLAGS_value=$LDFLAGS
769
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770
ac_cv_env_LDFLAGS_value=$LDFLAGS
771
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772
ac_env_CPPFLAGS_value=$CPPFLAGS
773
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775
ac_env_CPP_set=${CPP+set}
776
ac_env_CPP_value=$CPP
777
ac_cv_env_CPP_set=${CPP+set}
778
ac_cv_env_CPP_value=$CPP
779
ac_env_LD_set=${LD+set}
781
ac_cv_env_LD_set=${LD+set}
782
ac_cv_env_LD_value=$LD
783
ac_env_SS_LIB_set=${SS_LIB+set}
784
ac_env_SS_LIB_value=$SS_LIB
785
ac_cv_env_SS_LIB_set=${SS_LIB+set}
786
ac_cv_env_SS_LIB_value=$SS_LIB
787
ac_env_DB_HEADER_set=${DB_HEADER+set}
788
ac_env_DB_HEADER_value=$DB_HEADER
789
ac_cv_env_DB_HEADER_set=${DB_HEADER+set}
790
ac_cv_env_DB_HEADER_value=$DB_HEADER
791
ac_env_DB_LIB_set=${DB_LIB+set}
792
ac_env_DB_LIB_value=$DB_LIB
793
ac_cv_env_DB_LIB_set=${DB_LIB+set}
794
ac_cv_env_DB_LIB_value=$DB_LIB
797
# Report the --help message.
799
if test "$ac_init_help" = "long"; then
800
# Omit some internal or obsolete options to make the list less imposing.
801
# This message is too long to be a string in the A/UX 3.1 sh.
803
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
805
Usage: $0 [OPTION]... [VAR=VALUE]...
807
To assign environment variables (e.g., CC, CFLAGS...), specify them as
808
VAR=VALUE. See below for descriptions of some of the useful variables.
810
Defaults for the options are specified in brackets.
813
-h, --help display this help and exit
814
--help=short display options specific to this package
815
--help=recursive display the short help of all the included packages
816
-V, --version display version information and exit
817
-q, --quiet, --silent do not print \`checking...' messages
818
--cache-file=FILE cache test results in FILE [disabled]
819
-C, --config-cache alias for \`--cache-file=config.cache'
820
-n, --no-create do not create output files
821
--srcdir=DIR find the sources in DIR [configure dir or \`..']
826
Installation directories:
827
--prefix=PREFIX install architecture-independent files in PREFIX
829
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832
By default, \`make install' will install all the files in
833
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835
for instance \`--prefix=\$HOME'.
837
For better control, use the options below.
839
Fine tuning of the installation directories:
840
--bindir=DIR user executables [EPREFIX/bin]
841
--sbindir=DIR system admin executables [EPREFIX/sbin]
842
--libexecdir=DIR program executables [EPREFIX/libexec]
843
--datadir=DIR read-only architecture-independent data [PREFIX/share]
844
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
847
--libdir=DIR object code libraries [EPREFIX/lib]
848
--includedir=DIR C header files [PREFIX/include]
849
--oldincludedir=DIR C header files for non-gcc [/usr/include]
850
--infodir=DIR info documentation [PREFIX/info]
851
--mandir=DIR man documentation [PREFIX/man]
857
--program-prefix=PREFIX prepend PREFIX to installed program names
858
--program-suffix=SUFFIX append SUFFIX to installed program names
859
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
862
--build=BUILD configure for building on BUILD [guessed]
863
--host=HOST cross-compile to build programs to run on HOST [BUILD]
867
if test -n "$ac_init_help"; then
868
case $ac_init_help in
869
short | recursive ) echo "Configuration of Kerberos 5 1.6.4-beta1:";;
874
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876
--enable-dns-for-realm enable DNS lookups of Kerberos realm names
877
--enable-maintainer-mode
878
enable rebuilding of source files, Makefiles, etc
879
--disable-delayed-initialization
880
initialize library code when loaded [delay until
882
--disable-thread-support
883
don't enable thread support [enabled]
887
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
888
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
889
--without-krb4 don't include Kerberos V4 backwards compatibility
890
--with-krb4 use V4 libraries included with V5 (default)
891
--with-krb4=KRB4DIR use preinstalled V4 libraries
892
--with-system-et use system compile_et and -lcom_err [default:
893
build and install a local version]
894
--with-system-ss use system -lss and mk_cmds [private version]
895
--with-system-db use system Berkeley db [private version]
896
--with-netlib=LIBS use user defined resolver library
897
--with-hesiod=path compile with hesiod support [omitted]
898
--with-ldap compile OpenLDAP database backend module
899
--with-edirectory compile eDirectory database backend module
901
Some influential environment variables:
902
CC C compiler command
903
CFLAGS C compiler flags
904
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905
nonstandard directory <lib dir>
906
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907
headers in a nonstandard directory <include dir>
909
LD linker command [CC]
910
SS_LIB system libraries for 'ss' package [-lss]
911
DB_HEADER header file for system Berkeley db package [db.h]
912
DB_LIB library for system Berkeley db package [-ldb]
914
Use these variables to override the choices made by `configure' or to help
915
it to find libraries and programs with nonstandard names/locations.
917
Report bugs to <krb5-bugs@mit.edu>.
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
1013
Kerberos 5 configure 1.6.4-beta1
1014
generated by GNU Autoconf 2.59
1016
Copyright (C) 2003 Free Software Foundation, Inc.
1017
This configure script is free software; the Free Software Foundation
1018
gives unlimited permission to copy, distribute and modify it.
1020
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1021
Massachusetts Institute of Technology.
1028
This file contains any messages produced by compilers while
1029
running configure, to aid debugging if configure makes a mistake.
1031
It was created by Kerberos 5 $as_me 1.6.4-beta1, which was
1032
generated by GNU Autoconf 2.59. Invocation command line was
1043
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1066
test -z "$as_dir" && as_dir=.
1067
echo "PATH: $as_dir"
1082
# Keep a trace of the command line.
1083
# Strip out --no-create and --no-recursion so they do not pile up.
1084
# Strip out --silent because we don't want to record it for future runs.
1085
# Also quote any args containing shell meta-characters.
1086
# Make two passes to allow for proper duplicate-argument suppression.
1091
ac_must_keep_next=false
1097
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099
| -silent | --silent | --silen | --sile | --sil)
1101
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108
if test $ac_must_keep_next = true; then
1109
ac_must_keep_next=false # Got value, back to normal.
1112
*=* | --config-cache | -C | -disable-* | --disable-* \
1113
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115
| -with-* | --with-* | -without-* | --without-* | --x)
1116
case "$ac_configure_args0 " in
1117
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120
-* ) ac_must_keep_next=true ;;
1123
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124
# Get rid of the leading space.
1130
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133
# When interrupted or exit'd, cleanup temporary files, and complete
1134
# config.log. We remove comments because anyway the quotes in there
1135
# would cause problems or look ugly.
1136
# WARNING: Be sure not to use single quotes in there, as some shells,
1137
# such as our DU 5.0 friend, will then `close' the trap.
1138
trap 'exit_status=$?
1139
# Save into config.log some information that might help in debugging.
1144
## ---------------- ##
1145
## Cache variables. ##
1146
## ---------------- ##
1149
# The following way of writing the cache mishandles newlines in values,
1152
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1160
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167
## ----------------- ##
1168
## Output variables. ##
1169
## ----------------- ##
1172
for ac_var in $ac_subst_vars
1174
eval ac_val=$`echo $ac_var`
1175
echo "$ac_var='"'"'$ac_val'"'"'"
1179
if test -n "$ac_subst_files"; then
1186
for ac_var in $ac_subst_files
1188
eval ac_val=$`echo $ac_var`
1189
echo "$ac_var='"'"'$ac_val'"'"'"
1194
if test -s confdefs.h; then
1201
sed "/^$/d" confdefs.h | sort
1204
test "$ac_signal" != 0 &&
1205
echo "$as_me: caught signal $ac_signal"
1206
echo "$as_me: exit $exit_status"
1208
rm -f core *.core &&
1209
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212
for ac_signal in 1 2 13 15; do
1213
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1217
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1218
rm -rf conftest* confdefs.h
1219
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222
# Predefined preprocessor variables.
1224
cat >>confdefs.h <<_ACEOF
1225
#define PACKAGE_NAME "$PACKAGE_NAME"
1229
cat >>confdefs.h <<_ACEOF
1230
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1239
cat >>confdefs.h <<_ACEOF
1240
#define PACKAGE_STRING "$PACKAGE_STRING"
1244
cat >>confdefs.h <<_ACEOF
1245
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1249
# Let the site file select an alternate cache file if it wants to.
1250
# Prefer explicitly selected file to automatically selected ones.
1251
if test -z "$CONFIG_SITE"; then
1252
if test "x$prefix" != xNONE; then
1253
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258
for ac_site_file in $CONFIG_SITE; do
1259
if test -r "$ac_site_file"; then
1260
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261
echo "$as_me: loading site script $ac_site_file" >&6;}
1262
sed 's/^/| /' "$ac_site_file" >&5
1267
if test -r "$cache_file"; then
1268
# Some versions of bash will fail to source /dev/null (special
1269
# files actually), so we avoid doing that.
1270
if test -f "$cache_file"; then
1271
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272
echo "$as_me: loading cache $cache_file" >&6;}
1274
[\\/]* | ?:[\\/]* ) . $cache_file;;
1275
*) . ./$cache_file;;
1279
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280
echo "$as_me: creating cache $cache_file" >&6;}
1284
# Check that the precious variables saved in the cache have kept the same
1286
ac_cache_corrupted=false
1287
for ac_var in `(set) 2>&1 |
1288
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290
eval ac_new_set=\$ac_env_${ac_var}_set
1291
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292
eval ac_new_val="\$ac_env_${ac_var}_value"
1293
case $ac_old_set,$ac_new_set in
1295
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297
ac_cache_corrupted=: ;;
1299
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301
ac_cache_corrupted=: ;;
1304
if test "x$ac_old_val" != "x$ac_new_val"; then
1305
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308
echo "$as_me: former value: $ac_old_val" >&2;}
1309
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310
echo "$as_me: current value: $ac_new_val" >&2;}
1311
ac_cache_corrupted=:
1314
# Pass precious variables to config.status.
1315
if test "$ac_new_set" = set; then
1317
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319
*) ac_arg=$ac_var=$ac_new_val ;;
1321
case " $ac_configure_args " in
1322
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327
if $ac_cache_corrupted; then
1328
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332
{ (exit 1); exit 1; }; }
1336
ac_cpp='$CPP $CPPFLAGS'
1337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1369
ac_reltopdir="../.."
1370
if test ! -r "$srcdir/../../aclocal.m4"; then
1371
{ { echo "$as_me:$LINENO: error: Configure could not determine the relative topdir" >&5
1372
echo "$as_me: error: Configure could not determine the relative topdir" >&2;}
1373
{ (exit 1); exit 1; }; }
1375
ac_topdir=$srcdir/$ac_reltopdir
1376
ac_config_fragdir=$ac_reltopdir/config
1377
# echo "Looking for $srcdir/$ac_config_fragdir"
1378
if test -d "$srcdir/$ac_config_fragdir"; then
1380
for ac_dir in ../../config $srcdir/../../config; do
1381
if test -f $ac_dir/install-sh; then
1383
ac_install_sh="$ac_aux_dir/install-sh -c"
1385
elif test -f $ac_dir/install.sh; then
1387
ac_install_sh="$ac_aux_dir/install.sh -c"
1389
elif test -f $ac_dir/shtool; then
1391
ac_install_sh="$ac_aux_dir/shtool install -c"
1395
if test -z "$ac_aux_dir"; then
1396
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&5
1397
echo "$as_me: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&2;}
1398
{ (exit 1); exit 1; }; }
1400
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1401
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1402
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1405
{ { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1406
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1407
{ (exit 1); exit 1; }; }
1412
krb5_ac_cflags_set=${CFLAGS+set}
1415
ac_cpp='$CPP $CPPFLAGS'
1416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419
if test -n "$ac_tool_prefix"; then
1420
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1421
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1422
echo "$as_me:$LINENO: checking for $ac_word" >&5
1423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424
if test "${ac_cv_prog_CC+set}" = set; then
1425
echo $ECHO_N "(cached) $ECHO_C" >&6
1427
if test -n "$CC"; then
1428
ac_cv_prog_CC="$CC" # Let the user override the test.
1430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434
test -z "$as_dir" && as_dir=.
1435
for ac_exec_ext in '' $ac_executable_extensions; do
1436
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1438
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447
if test -n "$CC"; then
1448
echo "$as_me:$LINENO: result: $CC" >&5
1449
echo "${ECHO_T}$CC" >&6
1451
echo "$as_me:$LINENO: result: no" >&5
1452
echo "${ECHO_T}no" >&6
1456
if test -z "$ac_cv_prog_CC"; then
1458
# Extract the first word of "gcc", so it can be a program name with args.
1459
set dummy gcc; ac_word=$2
1460
echo "$as_me:$LINENO: checking for $ac_word" >&5
1461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463
echo $ECHO_N "(cached) $ECHO_C" >&6
1465
if test -n "$ac_ct_CC"; then
1466
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472
test -z "$as_dir" && as_dir=.
1473
for ac_exec_ext in '' $ac_executable_extensions; do
1474
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475
ac_cv_prog_ac_ct_CC="gcc"
1476
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485
if test -n "$ac_ct_CC"; then
1486
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487
echo "${ECHO_T}$ac_ct_CC" >&6
1489
echo "$as_me:$LINENO: result: no" >&5
1490
echo "${ECHO_T}no" >&6
1498
if test -z "$CC"; then
1499
if test -n "$ac_tool_prefix"; then
1500
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1501
set dummy ${ac_tool_prefix}cc; ac_word=$2
1502
echo "$as_me:$LINENO: checking for $ac_word" >&5
1503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504
if test "${ac_cv_prog_CC+set}" = set; then
1505
echo $ECHO_N "(cached) $ECHO_C" >&6
1507
if test -n "$CC"; then
1508
ac_cv_prog_CC="$CC" # Let the user override the test.
1510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514
test -z "$as_dir" && as_dir=.
1515
for ac_exec_ext in '' $ac_executable_extensions; do
1516
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517
ac_cv_prog_CC="${ac_tool_prefix}cc"
1518
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527
if test -n "$CC"; then
1528
echo "$as_me:$LINENO: result: $CC" >&5
1529
echo "${ECHO_T}$CC" >&6
1531
echo "$as_me:$LINENO: result: no" >&5
1532
echo "${ECHO_T}no" >&6
1536
if test -z "$ac_cv_prog_CC"; then
1538
# Extract the first word of "cc", so it can be a program name with args.
1539
set dummy cc; ac_word=$2
1540
echo "$as_me:$LINENO: checking for $ac_word" >&5
1541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543
echo $ECHO_N "(cached) $ECHO_C" >&6
1545
if test -n "$ac_ct_CC"; then
1546
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552
test -z "$as_dir" && as_dir=.
1553
for ac_exec_ext in '' $ac_executable_extensions; do
1554
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555
ac_cv_prog_ac_ct_CC="cc"
1556
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1565
if test -n "$ac_ct_CC"; then
1566
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1567
echo "${ECHO_T}$ac_ct_CC" >&6
1569
echo "$as_me:$LINENO: result: no" >&5
1570
echo "${ECHO_T}no" >&6
1579
if test -z "$CC"; then
1580
# Extract the first word of "cc", so it can be a program name with args.
1581
set dummy cc; ac_word=$2
1582
echo "$as_me:$LINENO: checking for $ac_word" >&5
1583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584
if test "${ac_cv_prog_CC+set}" = set; then
1585
echo $ECHO_N "(cached) $ECHO_C" >&6
1587
if test -n "$CC"; then
1588
ac_cv_prog_CC="$CC" # Let the user override the test.
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595
test -z "$as_dir" && as_dir=.
1596
for ac_exec_ext in '' $ac_executable_extensions; do
1597
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1599
ac_prog_rejected=yes
1603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609
if test $ac_prog_rejected = yes; then
1610
# We found a bogon in the path, so make sure we never use it.
1611
set dummy $ac_cv_prog_CC
1613
if test $# != 0; then
1614
# We chose a different compiler from the bogus one.
1615
# However, it has the same basename, so the bogon will be chosen
1616
# first if we set CC to just the basename; use the full file name.
1618
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1624
if test -n "$CC"; then
1625
echo "$as_me:$LINENO: result: $CC" >&5
1626
echo "${ECHO_T}$CC" >&6
1628
echo "$as_me:$LINENO: result: no" >&5
1629
echo "${ECHO_T}no" >&6
1633
if test -z "$CC"; then
1634
if test -n "$ac_tool_prefix"; then
1637
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1638
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1639
echo "$as_me:$LINENO: checking for $ac_word" >&5
1640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641
if test "${ac_cv_prog_CC+set}" = set; then
1642
echo $ECHO_N "(cached) $ECHO_C" >&6
1644
if test -n "$CC"; then
1645
ac_cv_prog_CC="$CC" # Let the user override the test.
1647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651
test -z "$as_dir" && as_dir=.
1652
for ac_exec_ext in '' $ac_executable_extensions; do
1653
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1655
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664
if test -n "$CC"; then
1665
echo "$as_me:$LINENO: result: $CC" >&5
1666
echo "${ECHO_T}$CC" >&6
1668
echo "$as_me:$LINENO: result: no" >&5
1669
echo "${ECHO_T}no" >&6
1672
test -n "$CC" && break
1675
if test -z "$CC"; then
1679
# Extract the first word of "$ac_prog", so it can be a program name with args.
1680
set dummy $ac_prog; ac_word=$2
1681
echo "$as_me:$LINENO: checking for $ac_word" >&5
1682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684
echo $ECHO_N "(cached) $ECHO_C" >&6
1686
if test -n "$ac_ct_CC"; then
1687
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693
test -z "$as_dir" && as_dir=.
1694
for ac_exec_ext in '' $ac_executable_extensions; do
1695
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696
ac_cv_prog_ac_ct_CC="$ac_prog"
1697
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706
if test -n "$ac_ct_CC"; then
1707
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708
echo "${ECHO_T}$ac_ct_CC" >&6
1710
echo "$as_me:$LINENO: result: no" >&5
1711
echo "${ECHO_T}no" >&6
1714
test -n "$ac_ct_CC" && break
1723
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1724
See \`config.log' for more details." >&5
1725
echo "$as_me: error: no acceptable C compiler found in \$PATH
1726
See \`config.log' for more details." >&2;}
1727
{ (exit 1); exit 1; }; }
1729
# Provide some information about the compiler.
1730
echo "$as_me:$LINENO:" \
1731
"checking for C compiler version" >&5
1732
ac_compiler=`set X $ac_compile; echo $2`
1733
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1734
(eval $ac_compiler --version </dev/null >&5) 2>&5
1736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737
(exit $ac_status); }
1738
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1739
(eval $ac_compiler -v </dev/null >&5) 2>&5
1741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742
(exit $ac_status); }
1743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1744
(eval $ac_compiler -V </dev/null >&5) 2>&5
1746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747
(exit $ac_status); }
1749
cat >conftest.$ac_ext <<_ACEOF
1752
cat confdefs.h >>conftest.$ac_ext
1753
cat >>conftest.$ac_ext <<_ACEOF
1754
/* end confdefs.h. */
1764
ac_clean_files_save=$ac_clean_files
1765
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766
# Try to create an executable without -o first, disregard a.out.
1767
# It will help us diagnose broken compilers, and finding out an intuition
1769
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1770
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1771
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773
(eval $ac_link_default) 2>&5
1775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776
(exit $ac_status); }; then
1777
# Find the output, starting from the most likely. This scheme is
1778
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1781
# Be careful to initialize this variable, since it used to be cached.
1782
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1784
# b.out is created by i960 compilers.
1785
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1787
test -f "$ac_file" || continue
1789
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792
# This is the source file.
1795
# We found the default executable, but exeext='' is most
1799
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800
# FIXME: I believe we export ac_cv_exeext for Libtool,
1801
# but it would be cool to find out if it's true. Does anybody
1802
# maintain Libtool? --akim.
1810
echo "$as_me: failed program was:" >&5
1811
sed 's/^/| /' conftest.$ac_ext >&5
1813
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1814
See \`config.log' for more details." >&5
1815
echo "$as_me: error: C compiler cannot create executables
1816
See \`config.log' for more details." >&2;}
1817
{ (exit 77); exit 77; }; }
1820
ac_exeext=$ac_cv_exeext
1821
echo "$as_me:$LINENO: result: $ac_file" >&5
1822
echo "${ECHO_T}$ac_file" >&6
1824
# Check the compiler produces executables we can run. If not, either
1825
# the compiler is broken, or we cross compile.
1826
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829
# If not cross compiling, check that we can run a simple program.
1830
if test "$cross_compiling" != yes; then
1831
if { ac_try='./$ac_file'
1832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836
(exit $ac_status); }; }; then
1839
if test "$cross_compiling" = maybe; then
1842
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843
If you meant to cross compile, use \`--host'.
1844
See \`config.log' for more details." >&5
1845
echo "$as_me: error: cannot run C compiled programs.
1846
If you meant to cross compile, use \`--host'.
1847
See \`config.log' for more details." >&2;}
1848
{ (exit 1); exit 1; }; }
1852
echo "$as_me:$LINENO: result: yes" >&5
1853
echo "${ECHO_T}yes" >&6
1855
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1856
ac_clean_files=$ac_clean_files_save
1857
# Check the compiler produces executables we can run. If not, either
1858
# the compiler is broken, or we cross compile.
1859
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1860
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1861
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1862
echo "${ECHO_T}$cross_compiling" >&6
1864
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1865
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1867
(eval $ac_link) 2>&5
1869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870
(exit $ac_status); }; then
1871
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1872
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1873
# work properly (i.e., refer to `conftest.exe'), while it won't with
1875
for ac_file in conftest.exe conftest conftest.*; do
1876
test -f "$ac_file" || continue
1878
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1879
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1887
See \`config.log' for more details." >&5
1888
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1889
See \`config.log' for more details." >&2;}
1890
{ (exit 1); exit 1; }; }
1893
rm -f conftest$ac_cv_exeext
1894
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895
echo "${ECHO_T}$ac_cv_exeext" >&6
1897
rm -f conftest.$ac_ext
1898
EXEEXT=$ac_cv_exeext
1900
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902
if test "${ac_cv_objext+set}" = set; then
1903
echo $ECHO_N "(cached) $ECHO_C" >&6
1905
cat >conftest.$ac_ext <<_ACEOF
1908
cat confdefs.h >>conftest.$ac_ext
1909
cat >>conftest.$ac_ext <<_ACEOF
1910
/* end confdefs.h. */
1920
rm -f conftest.o conftest.obj
1921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1922
(eval $ac_compile) 2>&5
1924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925
(exit $ac_status); }; then
1926
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1929
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1934
echo "$as_me: failed program was:" >&5
1935
sed 's/^/| /' conftest.$ac_ext >&5
1937
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1938
See \`config.log' for more details." >&5
1939
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1940
See \`config.log' for more details." >&2;}
1941
{ (exit 1); exit 1; }; }
1944
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1946
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1947
echo "${ECHO_T}$ac_cv_objext" >&6
1948
OBJEXT=$ac_cv_objext
1950
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1951
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1952
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1953
echo $ECHO_N "(cached) $ECHO_C" >&6
1955
cat >conftest.$ac_ext <<_ACEOF
1958
cat confdefs.h >>conftest.$ac_ext
1959
cat >>conftest.$ac_ext <<_ACEOF
1960
/* end confdefs.h. */
1973
rm -f conftest.$ac_objext
1974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975
(eval $ac_compile) 2>conftest.er1
1977
grep -v '^ *+' conftest.er1 >conftest.err
1979
cat conftest.err >&5
1980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
(exit $ac_status); } &&
1982
{ ac_try='test -z "$ac_c_werror_flag"
1983
|| test ! -s conftest.err'
1984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988
(exit $ac_status); }; } &&
1989
{ ac_try='test -s conftest.$ac_objext'
1990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994
(exit $ac_status); }; }; then
1997
echo "$as_me: failed program was:" >&5
1998
sed 's/^/| /' conftest.$ac_ext >&5
2002
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2006
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2007
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2008
GCC=`test $ac_compiler_gnu = yes && echo yes`
2009
ac_test_CFLAGS=${CFLAGS+set}
2010
ac_save_CFLAGS=$CFLAGS
2012
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2013
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2014
if test "${ac_cv_prog_cc_g+set}" = set; then
2015
echo $ECHO_N "(cached) $ECHO_C" >&6
2017
cat >conftest.$ac_ext <<_ACEOF
2020
cat confdefs.h >>conftest.$ac_ext
2021
cat >>conftest.$ac_ext <<_ACEOF
2022
/* end confdefs.h. */
2032
rm -f conftest.$ac_objext
2033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034
(eval $ac_compile) 2>conftest.er1
2036
grep -v '^ *+' conftest.er1 >conftest.err
2038
cat conftest.err >&5
2039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040
(exit $ac_status); } &&
2041
{ ac_try='test -z "$ac_c_werror_flag"
2042
|| test ! -s conftest.err'
2043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047
(exit $ac_status); }; } &&
2048
{ ac_try='test -s conftest.$ac_objext'
2049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053
(exit $ac_status); }; }; then
2056
echo "$as_me: failed program was:" >&5
2057
sed 's/^/| /' conftest.$ac_ext >&5
2061
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2063
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2064
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2065
if test "$ac_test_CFLAGS" = set; then
2066
CFLAGS=$ac_save_CFLAGS
2067
elif test $ac_cv_prog_cc_g = yes; then
2068
if test "$GCC" = yes; then
2074
if test "$GCC" = yes; then
2080
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2081
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2082
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2083
echo $ECHO_N "(cached) $ECHO_C" >&6
2085
ac_cv_prog_cc_stdc=no
2087
cat >conftest.$ac_ext <<_ACEOF
2090
cat confdefs.h >>conftest.$ac_ext
2091
cat >>conftest.$ac_ext <<_ACEOF
2092
/* end confdefs.h. */
2095
#include <sys/types.h>
2096
#include <sys/stat.h>
2097
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2098
struct buf { int x; };
2099
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2100
static char *e (p, i)
2106
static char *f (char * (*g) (char **, int), char **p, ...)
2111
s = g (p, va_arg (v,int));
2116
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2117
function prototypes and stuff, but not '\xHH' hex character constants.
2118
These don't provoke an error unfortunately, instead are silently treated
2119
as 'x'. The following induces an error, until -std1 is added to get
2120
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2121
array size at least. It's necessary to write '\x00'==0 to get something
2122
that's true only with -std1. */
2123
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2125
int test (int i, double x);
2126
struct s1 {int (*f) (int a);};
2127
struct s2 {int (*f) (double a);};
2128
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2134
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139
# Don't try gcc -ansi; that turns off useful extensions and
2140
# breaks some systems' header files.
2141
# AIX -qlanglvl=ansi
2142
# Ultrix and OSF/1 -std1
2143
# HP-UX 10.20 and later -Ae
2144
# HP-UX older versions -Aa -D_HPUX_SOURCE
2145
# SVR4 -Xc -D__EXTENSIONS__
2146
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2148
CC="$ac_save_CC $ac_arg"
2149
rm -f conftest.$ac_objext
2150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151
(eval $ac_compile) 2>conftest.er1
2153
grep -v '^ *+' conftest.er1 >conftest.err
2155
cat conftest.err >&5
2156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157
(exit $ac_status); } &&
2158
{ ac_try='test -z "$ac_c_werror_flag"
2159
|| test ! -s conftest.err'
2160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
(exit $ac_status); }; } &&
2165
{ ac_try='test -s conftest.$ac_objext'
2166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
(exit $ac_status); }; }; then
2171
ac_cv_prog_cc_stdc=$ac_arg
2174
echo "$as_me: failed program was:" >&5
2175
sed 's/^/| /' conftest.$ac_ext >&5
2178
rm -f conftest.err conftest.$ac_objext
2180
rm -f conftest.$ac_ext conftest.$ac_objext
2185
case "x$ac_cv_prog_cc_stdc" in
2187
echo "$as_me:$LINENO: result: none needed" >&5
2188
echo "${ECHO_T}none needed" >&6 ;;
2190
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2191
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2192
CC="$CC $ac_cv_prog_cc_stdc" ;;
2195
# Some people use a C++ compiler to compile C. Since we use `exit',
2196
# in C++ we need to declare it. In case someone uses the same compiler
2197
# for both compiling C and C++ we need to have the C++ compiler decide
2198
# the declaration of exit, since it's the most demanding environment.
2199
cat >conftest.$ac_ext <<_ACEOF
2204
rm -f conftest.$ac_objext
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>conftest.er1
2208
grep -v '^ *+' conftest.er1 >conftest.err
2210
cat conftest.err >&5
2211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
(exit $ac_status); } &&
2213
{ ac_try='test -z "$ac_c_werror_flag"
2214
|| test ! -s conftest.err'
2215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219
(exit $ac_status); }; } &&
2220
{ ac_try='test -s conftest.$ac_objext'
2221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225
(exit $ac_status); }; }; then
2226
for ac_declaration in \
2228
'extern "C" void std::exit (int) throw (); using std::exit;' \
2229
'extern "C" void std::exit (int); using std::exit;' \
2230
'extern "C" void exit (int) throw ();' \
2231
'extern "C" void exit (int);' \
2234
cat >conftest.$ac_ext <<_ACEOF
2237
cat confdefs.h >>conftest.$ac_ext
2238
cat >>conftest.$ac_ext <<_ACEOF
2239
/* end confdefs.h. */
2250
rm -f conftest.$ac_objext
2251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252
(eval $ac_compile) 2>conftest.er1
2254
grep -v '^ *+' conftest.er1 >conftest.err
2256
cat conftest.err >&5
2257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
(exit $ac_status); } &&
2259
{ ac_try='test -z "$ac_c_werror_flag"
2260
|| test ! -s conftest.err'
2261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
(exit $ac_status); }; } &&
2266
{ ac_try='test -s conftest.$ac_objext'
2267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
(exit $ac_status); }; }; then
2274
echo "$as_me: failed program was:" >&5
2275
sed 's/^/| /' conftest.$ac_ext >&5
2279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280
cat >conftest.$ac_ext <<_ACEOF
2283
cat confdefs.h >>conftest.$ac_ext
2284
cat >>conftest.$ac_ext <<_ACEOF
2285
/* end confdefs.h. */
2295
rm -f conftest.$ac_objext
2296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297
(eval $ac_compile) 2>conftest.er1
2299
grep -v '^ *+' conftest.er1 >conftest.err
2301
cat conftest.err >&5
2302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303
(exit $ac_status); } &&
2304
{ ac_try='test -z "$ac_c_werror_flag"
2305
|| test ! -s conftest.err'
2306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310
(exit $ac_status); }; } &&
2311
{ ac_try='test -s conftest.$ac_objext'
2312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316
(exit $ac_status); }; }; then
2319
echo "$as_me: failed program was:" >&5
2320
sed 's/^/| /' conftest.$ac_ext >&5
2323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326
if test -n "$ac_declaration"; then
2327
echo '#ifdef __cplusplus' >>confdefs.h
2328
echo $ac_declaration >>confdefs.h
2329
echo '#endif' >>confdefs.h
2333
echo "$as_me: failed program was:" >&5
2334
sed 's/^/| /' conftest.$ac_ext >&5
2337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339
ac_cpp='$CPP $CPPFLAGS'
2340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
ac_cpp='$CPP $CPPFLAGS'
2347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2351
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2352
# On Suns, sometimes $CPP names a directory.
2353
if test -n "$CPP" && test -d "$CPP"; then
2356
if test -z "$CPP"; then
2357
if test "${ac_cv_prog_CPP+set}" = set; then
2358
echo $ECHO_N "(cached) $ECHO_C" >&6
2360
# Double quotes because CPP needs to be expanded
2361
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2364
for ac_c_preproc_warn_flag in '' yes
2366
# Use a header file that comes with gcc, so configuring glibc
2367
# with a fresh cross-compiler works.
2368
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2369
# <limits.h> exists even on freestanding compilers.
2370
# On the NeXT, cc -E runs the code through the compiler's parser,
2371
# not just through cpp. "Syntax error" is here to catch this case.
2372
cat >conftest.$ac_ext <<_ACEOF
2375
cat confdefs.h >>conftest.$ac_ext
2376
cat >>conftest.$ac_ext <<_ACEOF
2377
/* end confdefs.h. */
2379
# include <limits.h>
2381
# include <assert.h>
2385
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388
grep -v '^ *+' conftest.er1 >conftest.err
2390
cat conftest.err >&5
2391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392
(exit $ac_status); } >/dev/null; then
2393
if test -s conftest.err; then
2394
ac_cpp_err=$ac_c_preproc_warn_flag
2395
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402
if test -z "$ac_cpp_err"; then
2405
echo "$as_me: failed program was:" >&5
2406
sed 's/^/| /' conftest.$ac_ext >&5
2408
# Broken: fails on valid input.
2411
rm -f conftest.err conftest.$ac_ext
2413
# OK, works on sane cases. Now check whether non-existent headers
2414
# can be detected and how.
2415
cat >conftest.$ac_ext <<_ACEOF
2418
cat confdefs.h >>conftest.$ac_ext
2419
cat >>conftest.$ac_ext <<_ACEOF
2420
/* end confdefs.h. */
2421
#include <ac_nonexistent.h>
2423
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2424
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426
grep -v '^ *+' conftest.er1 >conftest.err
2428
cat conftest.err >&5
2429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
(exit $ac_status); } >/dev/null; then
2431
if test -s conftest.err; then
2432
ac_cpp_err=$ac_c_preproc_warn_flag
2433
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2440
if test -z "$ac_cpp_err"; then
2441
# Broken: success on invalid input.
2444
echo "$as_me: failed program was:" >&5
2445
sed 's/^/| /' conftest.$ac_ext >&5
2447
# Passes both tests.
2451
rm -f conftest.err conftest.$ac_ext
2454
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2455
rm -f conftest.err conftest.$ac_ext
2456
if $ac_preproc_ok; then
2468
echo "$as_me:$LINENO: result: $CPP" >&5
2469
echo "${ECHO_T}$CPP" >&6
2471
for ac_c_preproc_warn_flag in '' yes
2473
# Use a header file that comes with gcc, so configuring glibc
2474
# with a fresh cross-compiler works.
2475
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476
# <limits.h> exists even on freestanding compilers.
2477
# On the NeXT, cc -E runs the code through the compiler's parser,
2478
# not just through cpp. "Syntax error" is here to catch this case.
2479
cat >conftest.$ac_ext <<_ACEOF
2482
cat confdefs.h >>conftest.$ac_ext
2483
cat >>conftest.$ac_ext <<_ACEOF
2484
/* end confdefs.h. */
2486
# include <limits.h>
2488
# include <assert.h>
2492
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495
grep -v '^ *+' conftest.er1 >conftest.err
2497
cat conftest.err >&5
2498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
(exit $ac_status); } >/dev/null; then
2500
if test -s conftest.err; then
2501
ac_cpp_err=$ac_c_preproc_warn_flag
2502
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509
if test -z "$ac_cpp_err"; then
2512
echo "$as_me: failed program was:" >&5
2513
sed 's/^/| /' conftest.$ac_ext >&5
2515
# Broken: fails on valid input.
2518
rm -f conftest.err conftest.$ac_ext
2520
# OK, works on sane cases. Now check whether non-existent headers
2521
# can be detected and how.
2522
cat >conftest.$ac_ext <<_ACEOF
2525
cat confdefs.h >>conftest.$ac_ext
2526
cat >>conftest.$ac_ext <<_ACEOF
2527
/* end confdefs.h. */
2528
#include <ac_nonexistent.h>
2530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533
grep -v '^ *+' conftest.er1 >conftest.err
2535
cat conftest.err >&5
2536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
(exit $ac_status); } >/dev/null; then
2538
if test -s conftest.err; then
2539
ac_cpp_err=$ac_c_preproc_warn_flag
2540
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2547
if test -z "$ac_cpp_err"; then
2548
# Broken: success on invalid input.
2551
echo "$as_me: failed program was:" >&5
2552
sed 's/^/| /' conftest.$ac_ext >&5
2554
# Passes both tests.
2558
rm -f conftest.err conftest.$ac_ext
2561
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2562
rm -f conftest.err conftest.$ac_ext
2563
if $ac_preproc_ok; then
2566
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2567
See \`config.log' for more details." >&5
2568
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2569
See \`config.log' for more details." >&2;}
2570
{ (exit 1); exit 1; }; }
2574
ac_cpp='$CPP $CPPFLAGS'
2575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
# Make sure we can run config.sub.
2581
$ac_config_sub sun4 >/dev/null 2>&1 ||
2582
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2583
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2584
{ (exit 1); exit 1; }; }
2586
echo "$as_me:$LINENO: checking build system type" >&5
2587
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2588
if test "${ac_cv_build+set}" = set; then
2589
echo $ECHO_N "(cached) $ECHO_C" >&6
2591
ac_cv_build_alias=$build_alias
2592
test -z "$ac_cv_build_alias" &&
2593
ac_cv_build_alias=`$ac_config_guess`
2594
test -z "$ac_cv_build_alias" &&
2595
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2596
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2597
{ (exit 1); exit 1; }; }
2598
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2599
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2600
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2601
{ (exit 1); exit 1; }; }
2604
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2605
echo "${ECHO_T}$ac_cv_build" >&6
2607
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2608
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2609
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2612
echo "$as_me:$LINENO: checking host system type" >&5
2613
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2614
if test "${ac_cv_host+set}" = set; then
2615
echo $ECHO_N "(cached) $ECHO_C" >&6
2617
ac_cv_host_alias=$host_alias
2618
test -z "$ac_cv_host_alias" &&
2619
ac_cv_host_alias=$ac_cv_build_alias
2620
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2621
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2622
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2623
{ (exit 1); exit 1; }; }
2626
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2627
echo "${ECHO_T}$ac_cv_host" >&6
2629
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2630
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2631
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2634
echo "$as_me:$LINENO: checking for egrep" >&5
2635
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2636
if test "${ac_cv_prog_egrep+set}" = set; then
2637
echo $ECHO_N "(cached) $ECHO_C" >&6
2639
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2640
then ac_cv_prog_egrep='grep -E'
2641
else ac_cv_prog_egrep='egrep'
2644
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2645
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2646
EGREP=$ac_cv_prog_egrep
2649
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2650
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2651
if test "${ac_cv_header_stdc+set}" = set; then
2652
echo $ECHO_N "(cached) $ECHO_C" >&6
2654
cat >conftest.$ac_ext <<_ACEOF
2657
cat confdefs.h >>conftest.$ac_ext
2658
cat >>conftest.$ac_ext <<_ACEOF
2659
/* end confdefs.h. */
2673
rm -f conftest.$ac_objext
2674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675
(eval $ac_compile) 2>conftest.er1
2677
grep -v '^ *+' conftest.er1 >conftest.err
2679
cat conftest.err >&5
2680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
(exit $ac_status); } &&
2682
{ ac_try='test -z "$ac_c_werror_flag"
2683
|| test ! -s conftest.err'
2684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
(exit $ac_status); }; } &&
2689
{ ac_try='test -s conftest.$ac_objext'
2690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694
(exit $ac_status); }; }; then
2695
ac_cv_header_stdc=yes
2697
echo "$as_me: failed program was:" >&5
2698
sed 's/^/| /' conftest.$ac_ext >&5
2700
ac_cv_header_stdc=no
2702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704
if test $ac_cv_header_stdc = yes; then
2705
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2706
cat >conftest.$ac_ext <<_ACEOF
2709
cat confdefs.h >>conftest.$ac_ext
2710
cat >>conftest.$ac_ext <<_ACEOF
2711
/* end confdefs.h. */
2715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716
$EGREP "memchr" >/dev/null 2>&1; then
2719
ac_cv_header_stdc=no
2725
if test $ac_cv_header_stdc = yes; then
2726
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2727
cat >conftest.$ac_ext <<_ACEOF
2730
cat confdefs.h >>conftest.$ac_ext
2731
cat >>conftest.$ac_ext <<_ACEOF
2732
/* end confdefs.h. */
2736
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737
$EGREP "free" >/dev/null 2>&1; then
2740
ac_cv_header_stdc=no
2746
if test $ac_cv_header_stdc = yes; then
2747
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2748
if test "$cross_compiling" = yes; then
2751
cat >conftest.$ac_ext <<_ACEOF
2754
cat confdefs.h >>conftest.$ac_ext
2755
cat >>conftest.$ac_ext <<_ACEOF
2756
/* end confdefs.h. */
2758
#if ((' ' & 0x0FF) == 0x020)
2759
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2760
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2762
# define ISLOWER(c) \
2763
(('a' <= (c) && (c) <= 'i') \
2764
|| ('j' <= (c) && (c) <= 'r') \
2765
|| ('s' <= (c) && (c) <= 'z'))
2766
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2769
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2774
for (i = 0; i < 256; i++)
2775
if (XOR (islower (i), ISLOWER (i))
2776
|| toupper (i) != TOUPPER (i))
2781
rm -f conftest$ac_exeext
2782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783
(eval $ac_link) 2>&5
2785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; }; then
2794
echo "$as_me: program exited with status $ac_status" >&5
2795
echo "$as_me: failed program was:" >&5
2796
sed 's/^/| /' conftest.$ac_ext >&5
2799
ac_cv_header_stdc=no
2801
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2805
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2806
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2807
if test $ac_cv_header_stdc = yes; then
2809
cat >>confdefs.h <<\_ACEOF
2810
#define STDC_HEADERS 1
2815
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2825
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2826
inttypes.h stdint.h unistd.h
2828
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2829
echo "$as_me:$LINENO: checking for $ac_header" >&5
2830
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2831
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2832
echo $ECHO_N "(cached) $ECHO_C" >&6
2834
cat >conftest.$ac_ext <<_ACEOF
2837
cat confdefs.h >>conftest.$ac_ext
2838
cat >>conftest.$ac_ext <<_ACEOF
2839
/* end confdefs.h. */
2840
$ac_includes_default
2842
#include <$ac_header>
2844
rm -f conftest.$ac_objext
2845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846
(eval $ac_compile) 2>conftest.er1
2848
grep -v '^ *+' conftest.er1 >conftest.err
2850
cat conftest.err >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); } &&
2853
{ ac_try='test -z "$ac_c_werror_flag"
2854
|| test ! -s conftest.err'
2855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859
(exit $ac_status); }; } &&
2860
{ ac_try='test -s conftest.$ac_objext'
2861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865
(exit $ac_status); }; }; then
2866
eval "$as_ac_Header=yes"
2868
echo "$as_me: failed program was:" >&5
2869
sed 's/^/| /' conftest.$ac_ext >&5
2871
eval "$as_ac_Header=no"
2873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2876
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2877
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2878
cat >>confdefs.h <<_ACEOF
2879
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2889
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2890
if test $ac_cv_c_compiler_gnu = yes ; then
2895
echo "$as_me:$LINENO: checking for GNU linker" >&5
2896
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2897
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2898
echo $ECHO_N "(cached) $ECHO_C" >&6
2900
krb5_cv_prog_gnu_ld=no
2901
if test "$GCC" = yes; then
2902
if { ac_try='$CC -Wl,-v 2>&1 | grep "GNU ld" > /dev/null'
2903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907
(exit $ac_status); }; }; then
2908
krb5_cv_prog_gnu_ld=yes
2912
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2913
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2914
# maybe add -Waggregate-return, or can we assume that actually works by now?
2915
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2916
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2917
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2918
-Wcast-align -Wconversion -Wshadow"
2919
if test "$GCC" = yes ; then
2920
if test "x$krb5_ac_cflags_set" = xset ; then
2921
{ echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2922
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2924
{ echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2925
echo "$as_me: adding extra warning flags for gcc" >&6;}
2926
CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2927
if test "`uname -s`" = Darwin ; then
2928
{ echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2929
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2930
elif test "`uname -s`" = Linux ; then
2931
{ echo "$as_me:$LINENO: skipping pedantic warnings on Linux" >&5
2932
echo "$as_me: skipping pedantic warnings on Linux" >&6;}
2934
CFLAGS="$CFLAGS -pedantic"
2937
if test "`uname -s`" = Darwin ; then
2938
# Someday this should be a feature test.
2939
# One current (Jaguar = OS 10.2) problem:
2940
# Archive library with foo.o undef sym X and bar.o common sym X,
2941
# if foo.o is pulled in at link time, bar.o may not be, causing
2942
# the linker to complain.
2943
# Dynamic library problems too?
2944
case "$CC $CFLAGS" in
2945
*-fcommon*) ;; # why someone would do this, I don't know
2946
*-fno-common*) ;; # okay, they're already doing the right thing
2948
{ echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2949
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2950
CFLAGS="$CFLAGS -fno-common"
2953
case "$LD $LDFLAGS" in
2954
*-Wl,-search_paths_first*) ;;
2955
*) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2959
if test "`uname -s`" = AIX ; then
2960
# Using AIX but not GCC, assume native compiler.
2961
# The native compiler appears not to give a nonzero exit
2962
# status for certain classes of errors, like missing arguments
2963
# in function calls. Let's try to fix that with -qhalt=e.
2964
case "$CC $CFLAGS" in
2967
CFLAGS="$CFLAGS -qhalt=e"
2968
{ echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2969
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2972
# Also, the optimizer isn't turned on by default, which means
2973
# the static inline functions get left in random object files,
2974
# leading to references to pthread_mutex_lock from anything that
2975
# includes k5-int.h whether it uses threads or not.
2976
case "$CC $CFLAGS" in
2980
{ echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2981
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2987
if test -z "$LD" ; then LD=$CC; fi
2991
# Check whether --with-krb4 or --without-krb4 was given.
2992
if test "${with_krb4+set}" = set; then
2993
withval="$with_krb4"
2998
fi; if test $withval = no; then
2999
{ echo "$as_me:$LINENO: no krb4 support" >&5
3000
echo "$as_me: no krb4 support" >&6;}
3006
krb5_cv_build_krb4_libs=no
3007
krb5_cv_krb4_libdir=
3010
cat >>confdefs.h <<\_ACEOF
3011
#define KRB5_KRB4_COMPAT 1
3014
if test $withval = yes; then
3015
{ echo "$as_me:$LINENO: enabling built in krb4 support" >&5
3016
echo "$as_me: enabling built in krb4 support" >&6;}
3017
KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
3019
KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3021
KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3022
krb5_cv_build_krb4_libs=yes
3023
krb5_cv_krb4_libdir=
3025
{ echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3026
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3028
KRB4_INCLUDES="-I$withval/include"
3029
KRB4_LIBPATH="-L$withval/lib"
3031
krb5_cv_build_krb4_libs=no
3032
krb5_cv_krb4_libdir="$withval/lib"
3040
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3046
# Check whether --with-system-et or --without-system-et was given.
3047
if test "${with_system_et+set}" = set; then
3048
withval="$with_system_et"
3051
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
3052
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
3053
if test "x$with_system_et" = xyes ; then
3055
echo "$as_me:$LINENO: result: system" >&5
3056
echo "${ECHO_T}system" >&6
3059
echo "$as_me:$LINENO: result: krb5" >&5
3060
echo "${ECHO_T}krb5" >&6
3062
if test $COM_ERR_VERSION = sys; then
3063
# check for various functions we need
3064
echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
3065
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
3066
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
3067
echo $ECHO_N "(cached) $ECHO_C" >&6
3069
ac_check_lib_save_LIBS=$LIBS
3070
LIBS="-lcom_err $LIBS"
3071
cat >conftest.$ac_ext <<_ACEOF
3074
cat confdefs.h >>conftest.$ac_ext
3075
cat >>conftest.$ac_ext <<_ACEOF
3076
/* end confdefs.h. */
3078
/* Override any gcc2 internal prototype to avoid an error. */
3082
/* We use char because int might match the return type of a gcc2
3083
builtin and then its argument prototype would still apply. */
3084
char add_error_table ();
3093
rm -f conftest.$ac_objext conftest$ac_exeext
3094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095
(eval $ac_link) 2>conftest.er1
3097
grep -v '^ *+' conftest.er1 >conftest.err
3099
cat conftest.err >&5
3100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101
(exit $ac_status); } &&
3102
{ ac_try='test -z "$ac_c_werror_flag"
3103
|| test ! -s conftest.err'
3104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
(exit $ac_status); }; } &&
3109
{ ac_try='test -s conftest$ac_exeext'
3110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114
(exit $ac_status); }; }; then
3115
ac_cv_lib_com_err_add_error_table=yes
3117
echo "$as_me: failed program was:" >&5
3118
sed 's/^/| /' conftest.$ac_ext >&5
3120
ac_cv_lib_com_err_add_error_table=no
3122
rm -f conftest.err conftest.$ac_objext \
3123
conftest$ac_exeext conftest.$ac_ext
3124
LIBS=$ac_check_lib_save_LIBS
3126
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
3127
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
3128
if test $ac_cv_lib_com_err_add_error_table = yes; then
3131
{ { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
3132
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
3133
{ (exit 1); exit 1; }; }
3136
echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
3137
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
3138
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
3139
echo $ECHO_N "(cached) $ECHO_C" >&6
3141
ac_check_lib_save_LIBS=$LIBS
3142
LIBS="-lcom_err $LIBS"
3143
cat >conftest.$ac_ext <<_ACEOF
3146
cat confdefs.h >>conftest.$ac_ext
3147
cat >>conftest.$ac_ext <<_ACEOF
3148
/* end confdefs.h. */
3150
/* Override any gcc2 internal prototype to avoid an error. */
3154
/* We use char because int might match the return type of a gcc2
3155
builtin and then its argument prototype would still apply. */
3156
char remove_error_table ();
3160
remove_error_table ();
3165
rm -f conftest.$ac_objext conftest$ac_exeext
3166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167
(eval $ac_link) 2>conftest.er1
3169
grep -v '^ *+' conftest.er1 >conftest.err
3171
cat conftest.err >&5
3172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173
(exit $ac_status); } &&
3174
{ ac_try='test -z "$ac_c_werror_flag"
3175
|| test ! -s conftest.err'
3176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180
(exit $ac_status); }; } &&
3181
{ ac_try='test -s conftest$ac_exeext'
3182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186
(exit $ac_status); }; }; then
3187
ac_cv_lib_com_err_remove_error_table=yes
3189
echo "$as_me: failed program was:" >&5
3190
sed 's/^/| /' conftest.$ac_ext >&5
3192
ac_cv_lib_com_err_remove_error_table=no
3194
rm -f conftest.err conftest.$ac_objext \
3195
conftest$ac_exeext conftest.$ac_ext
3196
LIBS=$ac_check_lib_save_LIBS
3198
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
3199
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
3200
if test $ac_cv_lib_com_err_remove_error_table = yes; then
3203
{ { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
3204
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
3205
{ (exit 1); exit 1; }; }
3208
# make sure compile_et provides "et_foo" name
3209
cat >> conf$$e.et <<EOF
3211
error_code ERR_FOO, "foo"
3214
for ac_prog in compile_et
3216
# Extract the first word of "$ac_prog", so it can be a program name with args.
3217
set dummy $ac_prog; ac_word=$2
3218
echo "$as_me:$LINENO: checking for $ac_word" >&5
3219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220
if test "${ac_cv_prog_compile_et+set}" = set; then
3221
echo $ECHO_N "(cached) $ECHO_C" >&6
3223
if test -n "$compile_et"; then
3224
ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
3226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230
test -z "$as_dir" && as_dir=.
3231
for ac_exec_ext in '' $ac_executable_extensions; do
3232
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233
ac_cv_prog_compile_et="$ac_prog"
3234
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242
compile_et=$ac_cv_prog_compile_et
3243
if test -n "$compile_et"; then
3244
echo "$as_me:$LINENO: result: $compile_et" >&5
3245
echo "${ECHO_T}$compile_et" >&6
3247
echo "$as_me:$LINENO: result: no" >&5
3248
echo "${ECHO_T}no" >&6
3251
test -n "$compile_et" && break
3253
test -n "$compile_et" || compile_et="false"
3255
if test "$compile_et" = false; then
3256
{ { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
3257
echo "$as_me: error: cannot find compile_et" >&2;}
3258
{ (exit 1); exit 1; }; }
3260
echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3261
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3262
if test "${krb5_cv_compile_et_useful+set}" = set; then
3263
echo $ECHO_N "(cached) $ECHO_C" >&6
3266
if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3267
{ { echo "$as_me:$LINENO: error: execution failed" >&5
3268
echo "$as_me: error: execution failed" >&2;}
3269
{ (exit 1); exit 1; }; }
3271
cat >conftest.$ac_ext <<_ACEOF
3274
cat confdefs.h >>conftest.$ac_ext
3275
cat >>conftest.$ac_ext <<_ACEOF
3276
/* end confdefs.h. */
3277
#include "conf$$e.h"
3282
&et_foo_error_table;
3287
rm -f conftest.$ac_objext
3288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289
(eval $ac_compile) 2>conftest.er1
3291
grep -v '^ *+' conftest.er1 >conftest.err
3293
cat conftest.err >&5
3294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295
(exit $ac_status); } &&
3296
{ ac_try='test -z "$ac_c_werror_flag"
3297
|| test ! -s conftest.err'
3298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302
(exit $ac_status); }; } &&
3303
{ ac_try='test -s conftest.$ac_objext'
3304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308
(exit $ac_status); }; }; then
3311
echo "$as_me: failed program was:" >&5
3312
sed 's/^/| /' conftest.$ac_ext >&5
3314
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3315
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3316
{ (exit 1); exit 1; }; }
3318
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319
# Anything else we need to test for?
3320
rm -f conf$$e.et conf$$e.c conf$$e.h
3321
krb5_cv_compile_et_useful=yes
3324
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3325
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3330
# Check whether --with-system-ss or --without-system-ss was given.
3331
if test "${with_system_ss+set}" = set; then
3332
withval="$with_system_ss"
3336
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3337
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3338
if test "x$with_system_ss" = xyes ; then
3340
echo "$as_me:$LINENO: result: system" >&5
3341
echo "${ECHO_T}system" >&6
3342
# todo: check for various libraries we might need
3343
# in the meantime...
3344
test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3346
LIBS="$LIBS $SS_LIB"
3347
echo "$as_me:$LINENO: checking whether system ss package works" >&5
3348
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3349
if test "${krb5_cv_system_ss_okay+set}" = set; then
3350
echo $ECHO_N "(cached) $ECHO_C" >&6
3353
if test "$cross_compiling" = yes; then
3354
krb5_cv_system_ss_okay="assumed"
3356
cat >conftest.$ac_ext <<_ACEOF
3359
cat confdefs.h >>conftest.$ac_ext
3360
cat >>conftest.$ac_ext <<_ACEOF
3361
/* end confdefs.h. */
3364
int main(int argc, char *argv[]) {
3367
i = ss_create_invocation("foo","foo","",0,&err);
3373
rm -f conftest$ac_exeext
3374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3375
(eval $ac_link) 2>&5
3377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
(exit $ac_status); }; }; then
3384
krb5_cv_system_ss_okay=yes
3386
echo "$as_me: program exited with status $ac_status" >&5
3387
echo "$as_me: failed program was:" >&5
3388
sed 's/^/| /' conftest.$ac_ext >&5
3391
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3392
echo "$as_me: error: cannot run test program" >&2;}
3393
{ (exit 1); exit 1; }; }
3395
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3398
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3399
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3403
echo "$as_me:$LINENO: result: krb5" >&5
3404
echo "${ECHO_T}krb5" >&6
3410
# Check whether --with-system-db or --without-system-db was given.
3411
if test "${with_system_db+set}" = set; then
3412
withval="$with_system_db"
3417
if test "x$with_system_db" = xyes ; then
3419
# TODO: Do we have specific routines we should check for?
3420
# How about known, easily recognizable bugs?
3421
# We want to use bt_rseq in some cases, but no other version but
3422
# ours has it right now.
3424
# Okay, check the variables.
3425
test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3426
test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3428
if test "x${DB_HEADER}" = xdb.h ; then
3429
DB_HEADER_VERSION=sys
3431
DB_HEADER_VERSION=redirect
3433
KDB5_DB_LIB="$DB_LIB"
3437
cat >>confdefs.h <<\_ACEOF
3438
#define HAVE_BT_RSEQ 1
3442
DB_HEADER_VERSION=k5
3443
# libdb gets sucked into libkdb
3445
# needed for a couple of things that need libdb for its own sake
3453
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3454
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3455
if test "${ac_cv_c_const+set}" = set; then
3456
echo $ECHO_N "(cached) $ECHO_C" >&6
3458
cat >conftest.$ac_ext <<_ACEOF
3461
cat confdefs.h >>conftest.$ac_ext
3462
cat >>conftest.$ac_ext <<_ACEOF
3463
/* end confdefs.h. */
3468
/* FIXME: Include the comments suggested by Paul. */
3470
/* Ultrix mips cc rejects this. */
3471
typedef int charset[2];
3473
/* SunOS 4.1.1 cc rejects this. */
3474
char const *const *ccp;
3476
/* NEC SVR4.0.2 mips cc rejects this. */
3477
struct point {int x, y;};
3478
static struct point const zero = {0,0};
3479
/* AIX XL C 1.02.0.0 rejects this.
3480
It does not let you subtract one const X* pointer from another in
3481
an arm of an if-expression whose if-part is not a constant
3483
const char *g = "string";
3484
ccp = &g + (g ? g-g : 0);
3485
/* HPUX 7.0 cc rejects these. */
3488
ccp = (char const *const *) p;
3489
{ /* SCO 3.2v4 cc rejects this. */
3491
char const *s = 0 ? (char *) 0 : (char const *) 0;
3495
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3497
const int *foo = &x[0];
3500
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3501
typedef const int *iptr;
3505
{ /* AIX XL C 1.02.0.0 rejects this saying
3506
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3507
struct s { int j; const int *ap[3]; };
3508
struct s *b; b->j = 5;
3510
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3519
rm -f conftest.$ac_objext
3520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521
(eval $ac_compile) 2>conftest.er1
3523
grep -v '^ *+' conftest.er1 >conftest.err
3525
cat conftest.err >&5
3526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527
(exit $ac_status); } &&
3528
{ ac_try='test -z "$ac_c_werror_flag"
3529
|| test ! -s conftest.err'
3530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534
(exit $ac_status); }; } &&
3535
{ ac_try='test -s conftest.$ac_objext'
3536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540
(exit $ac_status); }; }; then
3543
echo "$as_me: failed program was:" >&5
3544
sed 's/^/| /' conftest.$ac_ext >&5
3548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3551
echo "${ECHO_T}$ac_cv_c_const" >&6
3552
if test $ac_cv_c_const = no; then
3554
cat >>confdefs.h <<\_ACEOF
3561
# Check whether --with-netlib or --without-netlib was given.
3562
if test "${with_netlib+set}" = set; then
3563
withval="$with_netlib"
3564
if test "$withval" = yes -o "$withval" = no ; then
3565
echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3566
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3568
LIBS="$LIBS $withval"
3569
echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3570
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3575
# Most operating systems have gethostbyname() in the default searched
3576
# libraries (i.e. libc):
3577
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3578
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3579
if test "${ac_cv_func_gethostbyname+set}" = set; then
3580
echo $ECHO_N "(cached) $ECHO_C" >&6
3582
cat >conftest.$ac_ext <<_ACEOF
3585
cat confdefs.h >>conftest.$ac_ext
3586
cat >>conftest.$ac_ext <<_ACEOF
3587
/* end confdefs.h. */
3588
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3589
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3590
#define gethostbyname innocuous_gethostbyname
3592
/* System header to define __stub macros and hopefully few prototypes,
3593
which can conflict with char gethostbyname (); below.
3594
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595
<limits.h> exists even on freestanding compilers. */
3598
# include <limits.h>
3600
# include <assert.h>
3603
#undef gethostbyname
3605
/* Override any gcc2 internal prototype to avoid an error. */
3610
/* We use char because int might match the return type of a gcc2
3611
builtin and then its argument prototype would still apply. */
3612
char gethostbyname ();
3613
/* The GNU C library defines this for functions which it implements
3614
to always fail with ENOSYS. Some functions are actually named
3615
something starting with __ and the normal name is an alias. */
3616
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3619
char (*f) () = gethostbyname;
3628
return f != gethostbyname;
3633
rm -f conftest.$ac_objext conftest$ac_exeext
3634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635
(eval $ac_link) 2>conftest.er1
3637
grep -v '^ *+' conftest.er1 >conftest.err
3639
cat conftest.err >&5
3640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
(exit $ac_status); } &&
3642
{ ac_try='test -z "$ac_c_werror_flag"
3643
|| test ! -s conftest.err'
3644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648
(exit $ac_status); }; } &&
3649
{ ac_try='test -s conftest$ac_exeext'
3650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
(exit $ac_status); }; }; then
3655
ac_cv_func_gethostbyname=yes
3657
echo "$as_me: failed program was:" >&5
3658
sed 's/^/| /' conftest.$ac_ext >&5
3660
ac_cv_func_gethostbyname=no
3662
rm -f conftest.err conftest.$ac_objext \
3663
conftest$ac_exeext conftest.$ac_ext
3665
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3666
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3667
if test $ac_cv_func_gethostbyname = yes; then
3671
# Some OSes (eg. Solaris) place it in libnsl:
3673
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3674
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3675
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3676
echo $ECHO_N "(cached) $ECHO_C" >&6
3678
ac_check_lib_save_LIBS=$LIBS
3680
cat >conftest.$ac_ext <<_ACEOF
3683
cat confdefs.h >>conftest.$ac_ext
3684
cat >>conftest.$ac_ext <<_ACEOF
3685
/* end confdefs.h. */
3687
/* Override any gcc2 internal prototype to avoid an error. */
3691
/* We use char because int might match the return type of a gcc2
3692
builtin and then its argument prototype would still apply. */
3693
char gethostbyname ();
3702
rm -f conftest.$ac_objext conftest$ac_exeext
3703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704
(eval $ac_link) 2>conftest.er1
3706
grep -v '^ *+' conftest.er1 >conftest.err
3708
cat conftest.err >&5
3709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710
(exit $ac_status); } &&
3711
{ ac_try='test -z "$ac_c_werror_flag"
3712
|| test ! -s conftest.err'
3713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717
(exit $ac_status); }; } &&
3718
{ ac_try='test -s conftest$ac_exeext'
3719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723
(exit $ac_status); }; }; then
3724
ac_cv_lib_nsl_gethostbyname=yes
3726
echo "$as_me: failed program was:" >&5
3727
sed 's/^/| /' conftest.$ac_ext >&5
3729
ac_cv_lib_nsl_gethostbyname=no
3731
rm -f conftest.err conftest.$ac_objext \
3732
conftest$ac_exeext conftest.$ac_ext
3733
LIBS=$ac_check_lib_save_LIBS
3735
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3736
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3737
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3738
cat >>confdefs.h <<_ACEOF
3739
#define HAVE_LIBNSL 1
3746
# Some strange OSes (SINIX) have it in libsocket:
3748
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3749
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3750
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3751
echo $ECHO_N "(cached) $ECHO_C" >&6
3753
ac_check_lib_save_LIBS=$LIBS
3754
LIBS="-lsocket $LIBS"
3755
cat >conftest.$ac_ext <<_ACEOF
3758
cat confdefs.h >>conftest.$ac_ext
3759
cat >>conftest.$ac_ext <<_ACEOF
3760
/* end confdefs.h. */
3762
/* Override any gcc2 internal prototype to avoid an error. */
3766
/* We use char because int might match the return type of a gcc2
3767
builtin and then its argument prototype would still apply. */
3768
char gethostbyname ();
3777
rm -f conftest.$ac_objext conftest$ac_exeext
3778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779
(eval $ac_link) 2>conftest.er1
3781
grep -v '^ *+' conftest.er1 >conftest.err
3783
cat conftest.err >&5
3784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
(exit $ac_status); } &&
3786
{ ac_try='test -z "$ac_c_werror_flag"
3787
|| test ! -s conftest.err'
3788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
(exit $ac_status); }; } &&
3793
{ ac_try='test -s conftest$ac_exeext'
3794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
(exit $ac_status); }; }; then
3799
ac_cv_lib_socket_gethostbyname=yes
3801
echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3804
ac_cv_lib_socket_gethostbyname=no
3806
rm -f conftest.err conftest.$ac_objext \
3807
conftest$ac_exeext conftest.$ac_ext
3808
LIBS=$ac_check_lib_save_LIBS
3810
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3811
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3812
if test $ac_cv_lib_socket_gethostbyname = yes; then
3813
cat >>confdefs.h <<_ACEOF
3814
#define HAVE_LIBSOCKET 1
3817
LIBS="-lsocket $LIBS"
3821
# Unfortunately libsocket sometimes depends on libnsl.
3822
# AC_CHECK_LIB's API is essentially broken so the following
3823
# ugliness is necessary:
3824
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3825
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3826
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3827
echo $ECHO_N "(cached) $ECHO_C" >&6
3829
ac_check_lib_save_LIBS=$LIBS
3830
LIBS="-lsocket -lnsl $LIBS"
3831
cat >conftest.$ac_ext <<_ACEOF
3834
cat confdefs.h >>conftest.$ac_ext
3835
cat >>conftest.$ac_ext <<_ACEOF
3836
/* end confdefs.h. */
3838
/* Override any gcc2 internal prototype to avoid an error. */
3842
/* We use char because int might match the return type of a gcc2
3843
builtin and then its argument prototype would still apply. */
3844
char gethostbyname ();
3853
rm -f conftest.$ac_objext conftest$ac_exeext
3854
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855
(eval $ac_link) 2>conftest.er1
3857
grep -v '^ *+' conftest.er1 >conftest.err
3859
cat conftest.err >&5
3860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861
(exit $ac_status); } &&
3862
{ ac_try='test -z "$ac_c_werror_flag"
3863
|| test ! -s conftest.err'
3864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
(exit $ac_status); }; } &&
3869
{ ac_try='test -s conftest$ac_exeext'
3870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
(exit $ac_status); }; }; then
3875
ac_cv_lib_socket_gethostbyname=yes
3877
echo "$as_me: failed program was:" >&5
3878
sed 's/^/| /' conftest.$ac_ext >&5
3880
ac_cv_lib_socket_gethostbyname=no
3882
rm -f conftest.err conftest.$ac_objext \
3883
conftest$ac_exeext conftest.$ac_ext
3884
LIBS=$ac_check_lib_save_LIBS
3886
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3887
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3888
if test $ac_cv_lib_socket_gethostbyname = yes; then
3889
LIBS="-lsocket -lnsl $LIBS"
3891
echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3892
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3893
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3894
echo $ECHO_N "(cached) $ECHO_C" >&6
3896
ac_check_lib_save_LIBS=$LIBS
3897
LIBS="-lresolv $LIBS"
3898
cat >conftest.$ac_ext <<_ACEOF
3901
cat confdefs.h >>conftest.$ac_ext
3902
cat >>conftest.$ac_ext <<_ACEOF
3903
/* end confdefs.h. */
3905
/* Override any gcc2 internal prototype to avoid an error. */
3909
/* We use char because int might match the return type of a gcc2
3910
builtin and then its argument prototype would still apply. */
3911
char gethostbyname ();
3920
rm -f conftest.$ac_objext conftest$ac_exeext
3921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922
(eval $ac_link) 2>conftest.er1
3924
grep -v '^ *+' conftest.er1 >conftest.err
3926
cat conftest.err >&5
3927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
(exit $ac_status); } &&
3929
{ ac_try='test -z "$ac_c_werror_flag"
3930
|| test ! -s conftest.err'
3931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
(exit $ac_status); }; } &&
3936
{ ac_try='test -s conftest$ac_exeext'
3937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941
(exit $ac_status); }; }; then
3942
ac_cv_lib_resolv_gethostbyname=yes
3944
echo "$as_me: failed program was:" >&5
3945
sed 's/^/| /' conftest.$ac_ext >&5
3947
ac_cv_lib_resolv_gethostbyname=no
3949
rm -f conftest.err conftest.$ac_objext \
3950
conftest$ac_exeext conftest.$ac_ext
3951
LIBS=$ac_check_lib_save_LIBS
3953
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3954
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3955
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3956
LIBS="-lresolv $LIBS"
3970
echo "$as_me:$LINENO: checking for socket" >&5
3971
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3972
if test "${ac_cv_func_socket+set}" = set; then
3973
echo $ECHO_N "(cached) $ECHO_C" >&6
3975
cat >conftest.$ac_ext <<_ACEOF
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h. */
3981
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3982
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983
#define socket innocuous_socket
3985
/* System header to define __stub macros and hopefully few prototypes,
3986
which can conflict with char socket (); below.
3987
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988
<limits.h> exists even on freestanding compilers. */
3991
# include <limits.h>
3993
# include <assert.h>
3998
/* Override any gcc2 internal prototype to avoid an error. */
4003
/* We use char because int might match the return type of a gcc2
4004
builtin and then its argument prototype would still apply. */
4006
/* The GNU C library defines this for functions which it implements
4007
to always fail with ENOSYS. Some functions are actually named
4008
something starting with __ and the normal name is an alias. */
4009
#if defined (__stub_socket) || defined (__stub___socket)
4012
char (*f) () = socket;
4026
rm -f conftest.$ac_objext conftest$ac_exeext
4027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028
(eval $ac_link) 2>conftest.er1
4030
grep -v '^ *+' conftest.er1 >conftest.err
4032
cat conftest.err >&5
4033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034
(exit $ac_status); } &&
4035
{ ac_try='test -z "$ac_c_werror_flag"
4036
|| test ! -s conftest.err'
4037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041
(exit $ac_status); }; } &&
4042
{ ac_try='test -s conftest$ac_exeext'
4043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047
(exit $ac_status); }; }; then
4048
ac_cv_func_socket=yes
4050
echo "$as_me: failed program was:" >&5
4051
sed 's/^/| /' conftest.$ac_ext >&5
4053
ac_cv_func_socket=no
4055
rm -f conftest.err conftest.$ac_objext \
4056
conftest$ac_exeext conftest.$ac_ext
4058
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4059
echo "${ECHO_T}$ac_cv_func_socket" >&6
4060
if test $ac_cv_func_socket = yes; then
4064
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4065
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4066
if test "${ac_cv_lib_socket_socket+set}" = set; then
4067
echo $ECHO_N "(cached) $ECHO_C" >&6
4069
ac_check_lib_save_LIBS=$LIBS
4070
LIBS="-lsocket $LIBS"
4071
cat >conftest.$ac_ext <<_ACEOF
4074
cat confdefs.h >>conftest.$ac_ext
4075
cat >>conftest.$ac_ext <<_ACEOF
4076
/* end confdefs.h. */
4078
/* Override any gcc2 internal prototype to avoid an error. */
4082
/* We use char because int might match the return type of a gcc2
4083
builtin and then its argument prototype would still apply. */
4093
rm -f conftest.$ac_objext conftest$ac_exeext
4094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095
(eval $ac_link) 2>conftest.er1
4097
grep -v '^ *+' conftest.er1 >conftest.err
4099
cat conftest.err >&5
4100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
(exit $ac_status); } &&
4102
{ ac_try='test -z "$ac_c_werror_flag"
4103
|| test ! -s conftest.err'
4104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108
(exit $ac_status); }; } &&
4109
{ ac_try='test -s conftest$ac_exeext'
4110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
(exit $ac_status); }; }; then
4115
ac_cv_lib_socket_socket=yes
4117
echo "$as_me: failed program was:" >&5
4118
sed 's/^/| /' conftest.$ac_ext >&5
4120
ac_cv_lib_socket_socket=no
4122
rm -f conftest.err conftest.$ac_objext \
4123
conftest$ac_exeext conftest.$ac_ext
4124
LIBS=$ac_check_lib_save_LIBS
4126
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4127
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4128
if test $ac_cv_lib_socket_socket = yes; then
4129
cat >>confdefs.h <<_ACEOF
4130
#define HAVE_LIBSOCKET 1
4133
LIBS="-lsocket $LIBS"
4136
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4137
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4138
if test "${ac_cv_lib_socket_socket+set}" = set; then
4139
echo $ECHO_N "(cached) $ECHO_C" >&6
4141
ac_check_lib_save_LIBS=$LIBS
4142
LIBS="-lsocket -lnsl $LIBS"
4143
cat >conftest.$ac_ext <<_ACEOF
4146
cat confdefs.h >>conftest.$ac_ext
4147
cat >>conftest.$ac_ext <<_ACEOF
4148
/* end confdefs.h. */
4150
/* Override any gcc2 internal prototype to avoid an error. */
4154
/* We use char because int might match the return type of a gcc2
4155
builtin and then its argument prototype would still apply. */
4165
rm -f conftest.$ac_objext conftest$ac_exeext
4166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167
(eval $ac_link) 2>conftest.er1
4169
grep -v '^ *+' conftest.er1 >conftest.err
4171
cat conftest.err >&5
4172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
(exit $ac_status); } &&
4174
{ ac_try='test -z "$ac_c_werror_flag"
4175
|| test ! -s conftest.err'
4176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
(exit $ac_status); }; } &&
4181
{ ac_try='test -s conftest$ac_exeext'
4182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
(exit $ac_status); }; }; then
4187
ac_cv_lib_socket_socket=yes
4189
echo "$as_me: failed program was:" >&5
4190
sed 's/^/| /' conftest.$ac_ext >&5
4192
ac_cv_lib_socket_socket=no
4194
rm -f conftest.err conftest.$ac_objext \
4195
conftest$ac_exeext conftest.$ac_ext
4196
LIBS=$ac_check_lib_save_LIBS
4198
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4199
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4200
if test $ac_cv_lib_socket_socket = yes; then
4201
LIBS="-lsocket -lnsl $LIBS"
4210
enable_dns_for_kdc=yes
4212
cat >>confdefs.h <<\_ACEOF
4213
#define KRB5_DNS_LOOKUP_KDC 1
4217
# Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
4218
if test "${enable_dns_for_realm+set}" = set; then
4219
enableval="$enable_dns_for_realm"
4222
enable_dns_for_realm=no
4224
if test "$enable_dns_for_realm" = yes; then
4226
cat >>confdefs.h <<\_ACEOF
4227
#define KRB5_DNS_LOOKUP_REALM 1
4233
cat >>confdefs.h <<\_ACEOF
4234
#define KRB5_DNS_LOOKUP 1
4239
if test "$enable_dns" = yes ; then
4240
# We assume that if libresolv exists we can link against it.
4241
# This may get us a gethostby* that doesn't respect nsswitch.
4243
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4244
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4245
if test "${ac_cv_lib_resolv_main+set}" = set; then
4246
echo $ECHO_N "(cached) $ECHO_C" >&6
4248
ac_check_lib_save_LIBS=$LIBS
4249
LIBS="-lresolv $LIBS"
4250
cat >conftest.$ac_ext <<_ACEOF
4253
cat confdefs.h >>conftest.$ac_ext
4254
cat >>conftest.$ac_ext <<_ACEOF
4255
/* end confdefs.h. */
4266
rm -f conftest.$ac_objext conftest$ac_exeext
4267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268
(eval $ac_link) 2>conftest.er1
4270
grep -v '^ *+' conftest.er1 >conftest.err
4272
cat conftest.err >&5
4273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274
(exit $ac_status); } &&
4275
{ ac_try='test -z "$ac_c_werror_flag"
4276
|| test ! -s conftest.err'
4277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
(exit $ac_status); }; } &&
4282
{ ac_try='test -s conftest$ac_exeext'
4283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287
(exit $ac_status); }; }; then
4288
ac_cv_lib_resolv_main=yes
4290
echo "$as_me: failed program was:" >&5
4291
sed 's/^/| /' conftest.$ac_ext >&5
4293
ac_cv_lib_resolv_main=no
4295
rm -f conftest.err conftest.$ac_objext \
4296
conftest$ac_exeext conftest.$ac_ext
4297
LIBS=$ac_check_lib_save_LIBS
4299
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4300
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4301
if test $ac_cv_lib_resolv_main = yes; then
4302
cat >>confdefs.h <<_ACEOF
4303
#define HAVE_LIBRESOLV 1
4306
LIBS="-lresolv $LIBS"
4319
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4321
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4322
# doesn't export it from libresolv.so, so we use extreme paranoia here
4323
# and check both for the declaration and that we can link against the
4325
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4326
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4327
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4328
echo $ECHO_N "(cached) $ECHO_C" >&6
4330
cat >conftest.$ac_ext <<_ACEOF
4333
cat confdefs.h >>conftest.$ac_ext
4334
cat >>conftest.$ac_ext <<_ACEOF
4335
/* end confdefs.h. */
4336
#include <sys/types.h>
4337
#include <netinet/in.h>
4338
#include <arpa/nameser.h>
4344
* Use volatile, or else optimization can cause false positives.
4346
void (* volatile p)() = (void (*)())$krb5_func;
4351
rm -f conftest.$ac_objext conftest$ac_exeext
4352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353
(eval $ac_link) 2>conftest.er1
4355
grep -v '^ *+' conftest.er1 >conftest.err
4357
cat conftest.err >&5
4358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
(exit $ac_status); } &&
4360
{ ac_try='test -z "$ac_c_werror_flag"
4361
|| test ! -s conftest.err'
4362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366
(exit $ac_status); }; } &&
4367
{ ac_try='test -s conftest$ac_exeext'
4368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372
(exit $ac_status); }; }; then
4373
eval "krb5_cv_func_$krb5_func=yes"
4375
echo "$as_me: failed program was:" >&5
4376
sed 's/^/| /' conftest.$ac_ext >&5
4378
eval "krb5_cv_func_$krb5_func=no"
4380
rm -f conftest.err conftest.$ac_objext \
4381
conftest$ac_exeext conftest.$ac_ext
4383
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4384
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4385
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4387
cat >>confdefs.h <<_ACEOF
4388
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4395
if test $krb5_cv_func_res_nsearch = no \
4396
&& test $krb5_cv_func_res_search = no; then
4397
# Attempt to link with res_search(), in case it's not prototyped.
4398
echo "$as_me:$LINENO: checking for res_search" >&5
4399
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4400
if test "${ac_cv_func_res_search+set}" = set; then
4401
echo $ECHO_N "(cached) $ECHO_C" >&6
4403
cat >conftest.$ac_ext <<_ACEOF
4406
cat confdefs.h >>conftest.$ac_ext
4407
cat >>conftest.$ac_ext <<_ACEOF
4408
/* end confdefs.h. */
4409
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4410
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4411
#define res_search innocuous_res_search
4413
/* System header to define __stub macros and hopefully few prototypes,
4414
which can conflict with char res_search (); below.
4415
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416
<limits.h> exists even on freestanding compilers. */
4419
# include <limits.h>
4421
# include <assert.h>
4426
/* Override any gcc2 internal prototype to avoid an error. */
4431
/* We use char because int might match the return type of a gcc2
4432
builtin and then its argument prototype would still apply. */
4434
/* The GNU C library defines this for functions which it implements
4435
to always fail with ENOSYS. Some functions are actually named
4436
something starting with __ and the normal name is an alias. */
4437
#if defined (__stub_res_search) || defined (__stub___res_search)
4440
char (*f) () = res_search;
4449
return f != res_search;
4454
rm -f conftest.$ac_objext conftest$ac_exeext
4455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456
(eval $ac_link) 2>conftest.er1
4458
grep -v '^ *+' conftest.er1 >conftest.err
4460
cat conftest.err >&5
4461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462
(exit $ac_status); } &&
4463
{ ac_try='test -z "$ac_c_werror_flag"
4464
|| test ! -s conftest.err'
4465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
(exit $ac_status); }; } &&
4470
{ ac_try='test -s conftest$ac_exeext'
4471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
(exit $ac_status); }; }; then
4476
ac_cv_func_res_search=yes
4478
echo "$as_me: failed program was:" >&5
4479
sed 's/^/| /' conftest.$ac_ext >&5
4481
ac_cv_func_res_search=no
4483
rm -f conftest.err conftest.$ac_objext \
4484
conftest$ac_exeext conftest.$ac_ext
4486
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4487
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4488
if test $ac_cv_func_res_search = yes; then
4490
cat >>confdefs.h <<\_ACEOF
4491
#define HAVE_RES_SEARCH 1
4495
{ { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4496
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4497
{ (exit 1); exit 1; }; }
4505
# Check whether --with-hesiod or --without-hesiod was given.
4506
if test "${with_hesiod+set}" = set; then
4507
withval="$with_hesiod"
4512
if test "$with_hesiod" != "no"; then
4513
HESIOD_DEFS=-DHESIOD
4514
echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4515
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4516
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4517
echo $ECHO_N "(cached) $ECHO_C" >&6
4519
ac_check_lib_save_LIBS=$LIBS
4520
LIBS="-lresolv $LIBS"
4521
cat >conftest.$ac_ext <<_ACEOF
4524
cat confdefs.h >>conftest.$ac_ext
4525
cat >>conftest.$ac_ext <<_ACEOF
4526
/* end confdefs.h. */
4528
/* Override any gcc2 internal prototype to avoid an error. */
4532
/* We use char because int might match the return type of a gcc2
4533
builtin and then its argument prototype would still apply. */
4543
rm -f conftest.$ac_objext conftest$ac_exeext
4544
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545
(eval $ac_link) 2>conftest.er1
4547
grep -v '^ *+' conftest.er1 >conftest.err
4549
cat conftest.err >&5
4550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
(exit $ac_status); } &&
4552
{ ac_try='test -z "$ac_c_werror_flag"
4553
|| test ! -s conftest.err'
4554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558
(exit $ac_status); }; } &&
4559
{ ac_try='test -s conftest$ac_exeext'
4560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
(exit $ac_status); }; }; then
4565
ac_cv_lib_resolv_res_send=yes
4567
echo "$as_me: failed program was:" >&5
4568
sed 's/^/| /' conftest.$ac_ext >&5
4570
ac_cv_lib_resolv_res_send=no
4572
rm -f conftest.err conftest.$ac_objext \
4573
conftest$ac_exeext conftest.$ac_ext
4574
LIBS=$ac_check_lib_save_LIBS
4576
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4577
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4578
if test $ac_cv_lib_resolv_res_send = yes; then
4582
if test "$hesiod" != "yes"; then
4583
HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4585
HESIOD_LIBS="-lhesiod $res_lib"
4592
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4593
if test "${enable_maintainer_mode+set}" = set; then
4594
enableval="$enable_maintainer_mode"
4595
USE_MAINTAINER_MODE=$enableval
4597
USE_MAINTAINER_MODE=no
4599
if test "$USE_MAINTAINER_MODE" = yes; then
4600
MAINTAINER_MODE_TRUE=
4601
MAINTAINER_MODE_FALSE='#'
4602
{ echo "$as_me:$LINENO: enabling maintainer mode" >&5
4603
echo "$as_me: enabling maintainer mode" >&6;}
4605
MAINTAINER_MODE_TRUE='#'
4606
MAINTAINER_MODE_FALSE=
4608
MAINT=$MAINTAINER_MODE_TRUE
4612
test "$program_prefix" != NONE &&
4613
program_transform_name="s,^,$program_prefix,;$program_transform_name"
4614
# Use a double $ so make ignores it.
4615
test "$program_suffix" != NONE &&
4616
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4617
# Double any \ or $. echo might interpret backslashes.
4618
# By default was `s,x,x', remove it if useless.
4619
cat <<\_ACEOF >conftest.sed
4620
s/[\\$]/&&/g;s/;s,x,x,$//
4622
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4624
CONFIG_RELTOPDIR=$ac_reltopdir
4627
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4629
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4631
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4633
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4634
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4635
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4636
echo $ECHO_N "(cached) $ECHO_C" >&6
4638
cat >conftest.$ac_ext <<_ACEOF
4641
cat confdefs.h >>conftest.$ac_ext
4642
cat >>conftest.$ac_ext <<_ACEOF
4643
/* end confdefs.h. */
4645
extern int flurbl(void);
4649
if (&flurbl != 0) return flurbl();
4654
rm -f conftest.$ac_objext conftest$ac_exeext
4655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656
(eval $ac_link) 2>conftest.er1
4658
grep -v '^ *+' conftest.er1 >conftest.err
4660
cat conftest.err >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); } &&
4663
{ ac_try='test -z "$ac_c_werror_flag"
4664
|| test ! -s conftest.err'
4665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669
(exit $ac_status); }; } &&
4670
{ ac_try='test -s conftest$ac_exeext'
4671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); }; }; then
4676
krb5_cv_pragma_weak_ref=yes
4678
echo "$as_me: failed program was:" >&5
4679
sed 's/^/| /' conftest.$ac_ext >&5
4681
krb5_cv_pragma_weak_ref=no
4683
rm -f conftest.err conftest.$ac_objext \
4684
conftest$ac_exeext conftest.$ac_ext
4686
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4687
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4688
if test $krb5_cv_pragma_weak_ref = yes ; then
4690
cat >>confdefs.h <<\_ACEOF
4691
#define HAVE_PRAGMA_WEAK_REF 1
4697
# Check whether --with-ldap or --without-ldap was given.
4698
if test "${with_ldap+set}" = set; then
4699
withval="$with_ldap"
4701
OPENLDAP) with_ldap=yes ;;
4703
EDIRECTORY) { { echo "$as_me:$LINENO: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&5
4704
echo "$as_me: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&2;}
4705
{ (exit 1); exit 1; }; } ;;
4706
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-ldap=\"$withval\"" >&5
4707
echo "$as_me: error: Invalid option value --with-ldap=\"$withval\"" >&2;}
4708
{ (exit 1); exit 1; }; } ;;
4713
# Check whether --with-edirectory or --without-edirectory was given.
4714
if test "${with_edirectory+set}" = set; then
4715
withval="$with_edirectory"
4718
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-edirectory=\"$withval\"" >&5
4719
echo "$as_me: error: Invalid option value --with-edirectory=\"$withval\"" >&2;}
4720
{ (exit 1); exit 1; }; } ;;
4725
if test $with_ldap = yes; then
4726
if test $with_edirectory = yes; then
4727
{ { echo "$as_me:$LINENO: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&5
4728
echo "$as_me: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&2;}
4729
{ (exit 1); exit 1; }; }
4731
{ echo "$as_me:$LINENO: enabling OpenLDAP database backend module support" >&5
4732
echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
4734
elif test $with_edirectory = yes; then
4735
{ echo "$as_me:$LINENO: enabling eDirectory database backend module support" >&5
4736
echo "$as_me: enabling eDirectory database backend module support" >&6;}
4739
cat >>confdefs.h <<\_ACEOF
4740
#define HAVE_EDIRECTORY 1
4750
. $ac_topdir/config/shlib.conf
4752
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4753
if test "${enable_delayed_initialization+set}" = set; then
4754
enableval="$enable_delayed_initialization"
4757
enable_delayed_initialization=yes
4759
case "$enable_delayed_initialization" in
4762
cat >>confdefs.h <<\_ACEOF
4763
#define DELAY_INITIALIZER 1
4767
*) { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4768
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4769
{ (exit 1); exit 1; }; } ;;
4771
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4772
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4773
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4774
echo $ECHO_N "(cached) $ECHO_C" >&6
4776
rm -f conftest.1 conftest.2
4777
if test -r conftest.1 || test -r conftest.2 ; then
4778
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4779
echo "$as_me: error: write error in local file system?" >&2;}
4780
{ (exit 1); exit 1; }; }
4784
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4785
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4786
echo "$as_me: error: write error in local file system?" >&2;}
4787
{ (exit 1); exit 1; }; }
4791
# blindly assume we have 'unlink'...
4792
if test "$cross_compiling" = yes; then
4793
{ { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4794
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4795
{ (exit 1); exit 1; }; }
4797
cat >conftest.$ac_ext <<_ACEOF
4800
cat confdefs.h >>conftest.$ac_ext
4801
cat >>conftest.$ac_ext <<_ACEOF
4802
/* end confdefs.h. */
4803
void foo1() __attribute__((constructor));
4804
void foo1() { unlink("conftest.1"); }
4805
void foo2() __attribute__((destructor));
4806
void foo2() { unlink("conftest.2"); }
4807
int main () { return 0; }
4809
rm -f conftest$ac_exeext
4810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811
(eval $ac_link) 2>&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
(exit $ac_status); }; }; then
4820
test -r conftest.1 || a=yes
4821
test -r conftest.2 || b=yes
4823
echo "$as_me: program exited with status $ac_status" >&5
4824
echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4828
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4830
case $krb5_cv_host in
4832
# Under AIX 4.3.3, at least, shared library destructor functions
4833
# appear to get executed in reverse link order (right to left),
4834
# so that a library's destructor function may run after that of
4835
# libraries it depends on, and may still have to access in the
4838
# That counts as "not working", for me, but it's a much more
4839
# complicated test case to set up.
4843
krb5_cv_attr_constructor_destructor="$a,$b"
4846
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4847
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4848
# Okay, krb5_cv_... should be set now.
4849
case $krb5_cv_attr_constructor_destructor in
4852
cat >>confdefs.h <<\_ACEOF
4853
#define CONSTRUCTOR_ATTR_WORKS 1
4857
case $krb5_cv_attr_constructor_destructor in
4860
cat >>confdefs.h <<\_ACEOF
4861
#define DESTRUCTOR_ATTR_WORKS 1
4866
if test -z "$use_linker_init_option" ; then
4867
{ { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4868
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4869
{ (exit 1); exit 1; }; }
4871
if test "$use_linker_init_option" = yes; then
4873
cat >>confdefs.h <<\_ACEOF
4874
#define USE_LINKER_INIT_OPTION 1
4878
if test "$use_linker_fini_option" = yes; then
4880
cat >>confdefs.h <<\_ACEOF
4881
#define USE_LINKER_FINI_OPTION 1
4887
# Check whether --enable-thread-support or --disable-thread-support was given.
4888
if test "${enable_thread_support+set}" = set; then
4889
enableval="$enable_thread_support"
4892
enable_thread_support=yes
4894
if test "$enable_thread_support" = yes ; then
4895
{ echo "$as_me:$LINENO: enabling thread support" >&5
4896
echo "$as_me: enabling thread support" >&6;}
4898
cat >>confdefs.h <<\_ACEOF
4899
#define ENABLE_THREADS 1
4903
if test "$enable_thread_support" = yes; then
4909
ac_cpp='$CPP $CPPFLAGS'
4910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
# We used to check for pthread.h first, but this fails if pthread.h
4917
# requires special compiler flags (e.g. on True64 or Sequent).
4918
# It gets checked for in the link test anyway.
4920
# First of all, check if the user has set any of the PTHREAD_LIBS,
4921
# etcetera environment variables, and if threads linking works using
4923
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4924
save_CFLAGS="$CFLAGS"
4925
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4927
LIBS="$PTHREAD_LIBS $LIBS"
4928
echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4929
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4930
cat >conftest.$ac_ext <<_ACEOF
4933
cat confdefs.h >>conftest.$ac_ext
4934
cat >>conftest.$ac_ext <<_ACEOF
4935
/* end confdefs.h. */
4937
/* Override any gcc2 internal prototype to avoid an error. */
4941
/* We use char because int might match the return type of a gcc2
4942
builtin and then its argument prototype would still apply. */
4943
char pthread_join ();
4952
rm -f conftest.$ac_objext conftest$ac_exeext
4953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954
(eval $ac_link) 2>conftest.er1
4956
grep -v '^ *+' conftest.er1 >conftest.err
4958
cat conftest.err >&5
4959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960
(exit $ac_status); } &&
4961
{ ac_try='test -z "$ac_c_werror_flag"
4962
|| test ! -s conftest.err'
4963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967
(exit $ac_status); }; } &&
4968
{ ac_try='test -s conftest$ac_exeext'
4969
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973
(exit $ac_status); }; }; then
4976
echo "$as_me: failed program was:" >&5
4977
sed 's/^/| /' conftest.$ac_ext >&5
4980
rm -f conftest.err conftest.$ac_objext \
4981
conftest$ac_exeext conftest.$ac_ext
4982
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4983
echo "${ECHO_T}$acx_pthread_ok" >&6
4984
if test x"$acx_pthread_ok" = xno; then
4989
CFLAGS="$save_CFLAGS"
4992
# We must check for the threads library under a number of different
4993
# names; the ordering is very important because some systems
4994
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4995
# libraries is broken (non-POSIX).
4997
# Create a list of thread flags to try. Items starting with a "-" are
4998
# C compiler flags, and other items are library names, except for "none"
4999
# which indicates that we try without any flags at all, and "pthread-config"
5000
# which is a program returning the flags for the Pth emulation library.
5002
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5004
# The ordering *is* (sometimes) important. Some notes on the
5005
# individual items follow:
5007
# pthreads: AIX (must check this before -lpthread)
5008
# none: in case threads are in libc; should be tried before -Kthread and
5009
# other compiler flags to prevent continual compiler warnings
5010
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5011
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5012
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5013
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5014
# -pthreads: Solaris/gcc
5015
# -mthreads: Mingw32/gcc, Lynx/gcc
5016
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5017
# doesn't hurt to check since this sometimes defines pthreads too;
5018
# also defines -D_REENTRANT)
5019
# pthread: Linux, etcetera
5020
# --thread-safe: KAI C++
5021
# pthread-config: use pthread-config program (for GNU Pth library)
5023
case "${host_cpu}-${host_os}" in
5026
# On Solaris (at least, for some versions), libc contains stubbed
5027
# (non-functional) versions of the pthreads routines, so link-based
5028
# tests will erroneously succeed. (We need to link with -pthread or
5029
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5030
# a function called by this macro, so we could check for that, but
5031
# who knows whether they'll stub that too in a future libc.) So,
5032
# we'll just look for -pthreads and -lpthread first:
5034
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5038
if test x"$acx_pthread_ok" = xno; then
5039
for flag in $acx_pthread_flags; do
5043
echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
5044
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
5048
echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
5049
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
5050
PTHREAD_CFLAGS="$flag"
5054
# Extract the first word of "pthread-config", so it can be a program name with args.
5055
set dummy pthread-config; ac_word=$2
5056
echo "$as_me:$LINENO: checking for $ac_word" >&5
5057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
5059
echo $ECHO_N "(cached) $ECHO_C" >&6
5061
if test -n "$acx_pthread_config"; then
5062
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068
test -z "$as_dir" && as_dir=.
5069
for ac_exec_ext in '' $ac_executable_extensions; do
5070
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071
ac_cv_prog_acx_pthread_config="yes"
5072
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5081
acx_pthread_config=$ac_cv_prog_acx_pthread_config
5082
if test -n "$acx_pthread_config"; then
5083
echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
5084
echo "${ECHO_T}$acx_pthread_config" >&6
5086
echo "$as_me:$LINENO: result: no" >&5
5087
echo "${ECHO_T}no" >&6
5090
if test x"$acx_pthread_config" = xno; then continue; fi
5091
PTHREAD_CFLAGS="`pthread-config --cflags`"
5092
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5096
echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
5097
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
5098
PTHREAD_LIBS="-l$flag"
5103
save_CFLAGS="$CFLAGS"
5104
LIBS="$PTHREAD_LIBS $LIBS"
5105
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5107
# Check for various functions. We must include pthread.h,
5108
# since some functions may be macros. (On the Sequent, we
5109
# need a special flag -Kthread to make this header compile.)
5110
# We check for pthread_join because it is in -lpthread on IRIX
5111
# while pthread_create is in libc. We check for pthread_attr_init
5112
# due to DEC craziness with -lpthreads. We check for
5113
# pthread_cleanup_push because it is one of the few pthread
5114
# functions on Solaris that doesn't have a non-functional libc stub.
5115
# We try pthread_create on general principles.
5116
cat >conftest.$ac_ext <<_ACEOF
5119
cat confdefs.h >>conftest.$ac_ext
5120
cat >>conftest.$ac_ext <<_ACEOF
5121
/* end confdefs.h. */
5122
#include <pthread.h>
5126
pthread_t th; pthread_join(th, 0);
5127
pthread_attr_init(0); pthread_cleanup_push(0, 0);
5128
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5133
rm -f conftest.$ac_objext conftest$ac_exeext
5134
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135
(eval $ac_link) 2>conftest.er1
5137
grep -v '^ *+' conftest.er1 >conftest.err
5139
cat conftest.err >&5
5140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141
(exit $ac_status); } &&
5142
{ ac_try='test -z "$ac_c_werror_flag"
5143
|| test ! -s conftest.err'
5144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
(exit $ac_status); }; } &&
5149
{ ac_try='test -s conftest$ac_exeext'
5150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); }; }; then
5157
echo "$as_me: failed program was:" >&5
5158
sed 's/^/| /' conftest.$ac_ext >&5
5161
rm -f conftest.err conftest.$ac_objext \
5162
conftest$ac_exeext conftest.$ac_ext
5165
CFLAGS="$save_CFLAGS"
5167
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
5168
echo "${ECHO_T}$acx_pthread_ok" >&6
5169
if test "x$acx_pthread_ok" = xyes; then
5178
# Various other checks:
5179
if test "x$acx_pthread_ok" = xyes; then
5181
LIBS="$PTHREAD_LIBS $LIBS"
5182
save_CFLAGS="$CFLAGS"
5183
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5185
# Detect AIX lossage: threads are created detached by default
5186
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5187
echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
5188
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
5189
cat >conftest.$ac_ext <<_ACEOF
5192
cat confdefs.h >>conftest.$ac_ext
5193
cat >>conftest.$ac_ext <<_ACEOF
5194
/* end confdefs.h. */
5195
#include <pthread.h>
5199
int attr=PTHREAD_CREATE_JOINABLE;
5204
rm -f conftest.$ac_objext conftest$ac_exeext
5205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206
(eval $ac_link) 2>conftest.er1
5208
grep -v '^ *+' conftest.er1 >conftest.err
5210
cat conftest.err >&5
5211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
(exit $ac_status); } &&
5213
{ ac_try='test -z "$ac_c_werror_flag"
5214
|| test ! -s conftest.err'
5215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
(exit $ac_status); }; } &&
5220
{ ac_try='test -s conftest$ac_exeext'
5221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
(exit $ac_status); }; }; then
5226
ok=PTHREAD_CREATE_JOINABLE
5228
echo "$as_me: failed program was:" >&5
5229
sed 's/^/| /' conftest.$ac_ext >&5
5233
rm -f conftest.err conftest.$ac_objext \
5234
conftest$ac_exeext conftest.$ac_ext
5235
if test x"$ok" = xunknown; then
5236
cat >conftest.$ac_ext <<_ACEOF
5239
cat confdefs.h >>conftest.$ac_ext
5240
cat >>conftest.$ac_ext <<_ACEOF
5241
/* end confdefs.h. */
5242
#include <pthread.h>
5246
int attr=PTHREAD_CREATE_UNDETACHED;
5251
rm -f conftest.$ac_objext conftest$ac_exeext
5252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253
(eval $ac_link) 2>conftest.er1
5255
grep -v '^ *+' conftest.er1 >conftest.err
5257
cat conftest.err >&5
5258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259
(exit $ac_status); } &&
5260
{ ac_try='test -z "$ac_c_werror_flag"
5261
|| test ! -s conftest.err'
5262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
(exit $ac_status); }; } &&
5267
{ ac_try='test -s conftest$ac_exeext'
5268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
(exit $ac_status); }; }; then
5273
ok=PTHREAD_CREATE_UNDETACHED
5275
echo "$as_me: failed program was:" >&5
5276
sed 's/^/| /' conftest.$ac_ext >&5
5280
rm -f conftest.err conftest.$ac_objext \
5281
conftest$ac_exeext conftest.$ac_ext
5283
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5285
cat >>confdefs.h <<\_ACEOF
5286
#define PTHREAD_CREATE_JOINABLE $ok
5290
echo "$as_me:$LINENO: result: ${ok}" >&5
5291
echo "${ECHO_T}${ok}" >&6
5292
if test x"$ok" = xunknown; then
5293
{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
5294
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5297
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
5298
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
5300
case "${host_cpu}-${host_os}" in
5301
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
5302
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5304
echo "$as_me:$LINENO: result: ${flag}" >&5
5305
echo "${ECHO_T}${flag}" >&6
5306
if test "x$flag" != xno; then
5307
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5311
CFLAGS="$save_CFLAGS"
5313
# More AIX lossage: must compile with cc_r
5314
# Extract the first word of "cc_r", so it can be a program name with args.
5315
set dummy cc_r; ac_word=$2
5316
echo "$as_me:$LINENO: checking for $ac_word" >&5
5317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5319
echo $ECHO_N "(cached) $ECHO_C" >&6
5321
if test -n "$PTHREAD_CC"; then
5322
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328
test -z "$as_dir" && as_dir=.
5329
for ac_exec_ext in '' $ac_executable_extensions; do
5330
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331
ac_cv_prog_PTHREAD_CC="cc_r"
5332
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5341
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5342
if test -n "$PTHREAD_CC"; then
5343
echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5344
echo "${ECHO_T}$PTHREAD_CC" >&6
5346
echo "$as_me:$LINENO: result: no" >&5
5347
echo "${ECHO_T}no" >&6
5358
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5359
if test x"$acx_pthread_ok" = xyes; then
5361
cat >>confdefs.h <<\_ACEOF
5362
#define HAVE_PTHREAD 1
5368
{ { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support; try --disable-thread-support" >&5
5369
echo "$as_me: error: cannot determine options for enabling thread support; try --disable-thread-support" >&2;}
5370
{ (exit 1); exit 1; }; }
5373
ac_cpp='$CPP $CPPFLAGS'
5374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
{ echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5380
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5381
{ echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5382
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5383
{ echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5384
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5385
# AIX and Tru64 don't support weak references, and don't have
5386
# stub versions of the pthread code in libc.
5387
case "${host_os}" in
5389
# On these platforms, we'll always pull in the thread support.
5390
LIBS="$LIBS $PTHREAD_LIBS"
5391
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5392
# We don't need to sometimes add the flags we've just folded in...
5397
# These are the flags that "gcc -pthread" adds. But we don't
5398
# want "-pthread" because that has link-time effects, and we
5399
# don't exclude CFLAGS when linking. *sigh*
5400
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5403
# On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
5404
# get the right result.
5405
if test "$GCC" = yes ; then
5406
PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
5420
for ac_func in pthread_once pthread_rwlock_init
5422
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5423
echo "$as_me:$LINENO: checking for $ac_func" >&5
5424
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5425
if eval "test \"\${$as_ac_var+set}\" = set"; then
5426
echo $ECHO_N "(cached) $ECHO_C" >&6
5428
cat >conftest.$ac_ext <<_ACEOF
5431
cat confdefs.h >>conftest.$ac_ext
5432
cat >>conftest.$ac_ext <<_ACEOF
5433
/* end confdefs.h. */
5434
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5435
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5436
#define $ac_func innocuous_$ac_func
5438
/* System header to define __stub macros and hopefully few prototypes,
5439
which can conflict with char $ac_func (); below.
5440
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5441
<limits.h> exists even on freestanding compilers. */
5444
# include <limits.h>
5446
# include <assert.h>
5451
/* Override any gcc2 internal prototype to avoid an error. */
5456
/* We use char because int might match the return type of a gcc2
5457
builtin and then its argument prototype would still apply. */
5459
/* The GNU C library defines this for functions which it implements
5460
to always fail with ENOSYS. Some functions are actually named
5461
something starting with __ and the normal name is an alias. */
5462
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5465
char (*f) () = $ac_func;
5474
return f != $ac_func;
5479
rm -f conftest.$ac_objext conftest$ac_exeext
5480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481
(eval $ac_link) 2>conftest.er1
5483
grep -v '^ *+' conftest.er1 >conftest.err
5485
cat conftest.err >&5
5486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
(exit $ac_status); } &&
5488
{ ac_try='test -z "$ac_c_werror_flag"
5489
|| test ! -s conftest.err'
5490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
(exit $ac_status); }; } &&
5495
{ ac_try='test -s conftest$ac_exeext'
5496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
(exit $ac_status); }; }; then
5501
eval "$as_ac_var=yes"
5503
echo "$as_me: failed program was:" >&5
5504
sed 's/^/| /' conftest.$ac_ext >&5
5506
eval "$as_ac_var=no"
5508
rm -f conftest.err conftest.$ac_objext \
5509
conftest$ac_exeext conftest.$ac_ext
5511
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5512
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5513
if test `eval echo '${'$as_ac_var'}'` = yes; then
5514
cat >>confdefs.h <<_ACEOF
5515
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5522
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5523
old_CFLAGS="$CFLAGS"
5524
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5525
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5528
LIBS="$PTHREAD_LIBS $LIBS"
5529
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5530
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5531
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5532
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5533
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5534
echo $ECHO_N "(cached) $ECHO_C" >&6
5536
ac_check_lib_save_LIBS=$LIBS
5538
cat >conftest.$ac_ext <<_ACEOF
5541
cat confdefs.h >>conftest.$ac_ext
5542
cat >>conftest.$ac_ext <<_ACEOF
5543
/* end confdefs.h. */
5545
/* Override any gcc2 internal prototype to avoid an error. */
5549
/* We use char because int might match the return type of a gcc2
5550
builtin and then its argument prototype would still apply. */
5551
char pthread_rwlock_init ();
5555
pthread_rwlock_init ();
5560
rm -f conftest.$ac_objext conftest$ac_exeext
5561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562
(eval $ac_link) 2>conftest.er1
5564
grep -v '^ *+' conftest.er1 >conftest.err
5566
cat conftest.err >&5
5567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568
(exit $ac_status); } &&
5569
{ ac_try='test -z "$ac_c_werror_flag"
5570
|| test ! -s conftest.err'
5571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575
(exit $ac_status); }; } &&
5576
{ ac_try='test -s conftest$ac_exeext'
5577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
(exit $ac_status); }; }; then
5582
ac_cv_lib_c_pthread_rwlock_init=yes
5584
echo "$as_me: failed program was:" >&5
5585
sed 's/^/| /' conftest.$ac_ext >&5
5587
ac_cv_lib_c_pthread_rwlock_init=no
5589
rm -f conftest.err conftest.$ac_objext \
5590
conftest$ac_exeext conftest.$ac_ext
5591
LIBS=$ac_check_lib_save_LIBS
5593
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5594
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5595
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5597
cat >>confdefs.h <<\_ACEOF
5598
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5605
CFLAGS="$old_CFLAGS"
5610
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5611
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5612
if test "${ac_cv_search_dlopen+set}" = set; then
5613
echo $ECHO_N "(cached) $ECHO_C" >&6
5615
ac_func_search_save_LIBS=$LIBS
5616
ac_cv_search_dlopen=no
5617
cat >conftest.$ac_ext <<_ACEOF
5620
cat confdefs.h >>conftest.$ac_ext
5621
cat >>conftest.$ac_ext <<_ACEOF
5622
/* end confdefs.h. */
5624
/* Override any gcc2 internal prototype to avoid an error. */
5628
/* We use char because int might match the return type of a gcc2
5629
builtin and then its argument prototype would still apply. */
5639
rm -f conftest.$ac_objext conftest$ac_exeext
5640
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641
(eval $ac_link) 2>conftest.er1
5643
grep -v '^ *+' conftest.er1 >conftest.err
5645
cat conftest.err >&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } &&
5648
{ ac_try='test -z "$ac_c_werror_flag"
5649
|| test ! -s conftest.err'
5650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
(exit $ac_status); }; } &&
5655
{ ac_try='test -s conftest$ac_exeext'
5656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660
(exit $ac_status); }; }; then
5661
ac_cv_search_dlopen="none required"
5663
echo "$as_me: failed program was:" >&5
5664
sed 's/^/| /' conftest.$ac_ext >&5
5667
rm -f conftest.err conftest.$ac_objext \
5668
conftest$ac_exeext conftest.$ac_ext
5669
if test "$ac_cv_search_dlopen" = no; then
5670
for ac_lib in dl; do
5671
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5672
cat >conftest.$ac_ext <<_ACEOF
5675
cat confdefs.h >>conftest.$ac_ext
5676
cat >>conftest.$ac_ext <<_ACEOF
5677
/* end confdefs.h. */
5679
/* Override any gcc2 internal prototype to avoid an error. */
5683
/* We use char because int might match the return type of a gcc2
5684
builtin and then its argument prototype would still apply. */
5694
rm -f conftest.$ac_objext conftest$ac_exeext
5695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696
(eval $ac_link) 2>conftest.er1
5698
grep -v '^ *+' conftest.er1 >conftest.err
5700
cat conftest.err >&5
5701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
(exit $ac_status); } &&
5703
{ ac_try='test -z "$ac_c_werror_flag"
5704
|| test ! -s conftest.err'
5705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709
(exit $ac_status); }; } &&
5710
{ ac_try='test -s conftest$ac_exeext'
5711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715
(exit $ac_status); }; }; then
5716
ac_cv_search_dlopen="-l$ac_lib"
5719
echo "$as_me: failed program was:" >&5
5720
sed 's/^/| /' conftest.$ac_ext >&5
5723
rm -f conftest.err conftest.$ac_objext \
5724
conftest$ac_exeext conftest.$ac_ext
5727
LIBS=$ac_func_search_save_LIBS
5729
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5730
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5731
if test "$ac_cv_search_dlopen" != no; then
5732
test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5734
if test "$ac_cv_search_dlopen" != "none required"; then
5735
DL_LIB=$ac_cv_search_dlopen
5739
cat >>confdefs.h <<\_ACEOF
5740
#define USE_DLOPEN 1
5749
for ac_header in keyutils.h
5751
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5752
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5753
echo "$as_me:$LINENO: checking for $ac_header" >&5
5754
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5755
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5756
echo $ECHO_N "(cached) $ECHO_C" >&6
5758
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5759
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5761
# Is the header compilable?
5762
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5763
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5764
cat >conftest.$ac_ext <<_ACEOF
5767
cat confdefs.h >>conftest.$ac_ext
5768
cat >>conftest.$ac_ext <<_ACEOF
5769
/* end confdefs.h. */
5770
$ac_includes_default
5771
#include <$ac_header>
5773
rm -f conftest.$ac_objext
5774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775
(eval $ac_compile) 2>conftest.er1
5777
grep -v '^ *+' conftest.er1 >conftest.err
5779
cat conftest.err >&5
5780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781
(exit $ac_status); } &&
5782
{ ac_try='test -z "$ac_c_werror_flag"
5783
|| test ! -s conftest.err'
5784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788
(exit $ac_status); }; } &&
5789
{ ac_try='test -s conftest.$ac_objext'
5790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
(exit $ac_status); }; }; then
5795
ac_header_compiler=yes
5797
echo "$as_me: failed program was:" >&5
5798
sed 's/^/| /' conftest.$ac_ext >&5
5800
ac_header_compiler=no
5802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5804
echo "${ECHO_T}$ac_header_compiler" >&6
5806
# Is the header present?
5807
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5808
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5809
cat >conftest.$ac_ext <<_ACEOF
5812
cat confdefs.h >>conftest.$ac_ext
5813
cat >>conftest.$ac_ext <<_ACEOF
5814
/* end confdefs.h. */
5815
#include <$ac_header>
5817
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5818
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5820
grep -v '^ *+' conftest.er1 >conftest.err
5822
cat conftest.err >&5
5823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
(exit $ac_status); } >/dev/null; then
5825
if test -s conftest.err; then
5826
ac_cpp_err=$ac_c_preproc_warn_flag
5827
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5834
if test -z "$ac_cpp_err"; then
5835
ac_header_preproc=yes
5837
echo "$as_me: failed program was:" >&5
5838
sed 's/^/| /' conftest.$ac_ext >&5
5840
ac_header_preproc=no
5842
rm -f conftest.err conftest.$ac_ext
5843
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5844
echo "${ECHO_T}$ac_header_preproc" >&6
5846
# So? What about this header?
5847
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5849
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5850
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5851
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5852
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5853
ac_header_preproc=yes
5856
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5857
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5858
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5859
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5860
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5861
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5862
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5863
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5864
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5865
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5866
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5867
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5870
## -------------------------------- ##
5871
## Report this to krb5-bugs@mit.edu ##
5872
## -------------------------------- ##
5875
sed "s/^/$as_me: WARNING: /" >&2
5878
echo "$as_me:$LINENO: checking for $ac_header" >&5
5879
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5880
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5881
echo $ECHO_N "(cached) $ECHO_C" >&6
5883
eval "$as_ac_Header=\$ac_header_preproc"
5885
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5886
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890
cat >>confdefs.h <<_ACEOF
5891
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5893
echo "$as_me:$LINENO: checking for add_key in -lkeyutils" >&5
5894
echo $ECHO_N "checking for add_key in -lkeyutils... $ECHO_C" >&6
5895
if test "${ac_cv_lib_keyutils_add_key+set}" = set; then
5896
echo $ECHO_N "(cached) $ECHO_C" >&6
5898
ac_check_lib_save_LIBS=$LIBS
5899
LIBS="-lkeyutils $LIBS"
5900
cat >conftest.$ac_ext <<_ACEOF
5903
cat confdefs.h >>conftest.$ac_ext
5904
cat >>conftest.$ac_ext <<_ACEOF
5905
/* end confdefs.h. */
5907
/* Override any gcc2 internal prototype to avoid an error. */
5911
/* We use char because int might match the return type of a gcc2
5912
builtin and then its argument prototype would still apply. */
5922
rm -f conftest.$ac_objext conftest$ac_exeext
5923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924
(eval $ac_link) 2>conftest.er1
5926
grep -v '^ *+' conftest.er1 >conftest.err
5928
cat conftest.err >&5
5929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
(exit $ac_status); } &&
5931
{ ac_try='test -z "$ac_c_werror_flag"
5932
|| test ! -s conftest.err'
5933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
(exit $ac_status); }; } &&
5938
{ ac_try='test -s conftest$ac_exeext'
5939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
(exit $ac_status); }; }; then
5944
ac_cv_lib_keyutils_add_key=yes
5946
echo "$as_me: failed program was:" >&5
5947
sed 's/^/| /' conftest.$ac_ext >&5
5949
ac_cv_lib_keyutils_add_key=no
5951
rm -f conftest.err conftest.$ac_objext \
5952
conftest$ac_exeext conftest.$ac_ext
5953
LIBS=$ac_check_lib_save_LIBS
5955
echo "$as_me:$LINENO: result: $ac_cv_lib_keyutils_add_key" >&5
5956
echo "${ECHO_T}$ac_cv_lib_keyutils_add_key" >&6
5957
if test $ac_cv_lib_keyutils_add_key = yes; then
5959
cat >>confdefs.h <<\_ACEOF
5960
#define USE_KEYRING_CCACHE 1
5963
LIBS="-lkeyutils $LIBS"
5973
for ac_prog in flex lex
5975
# Extract the first word of "$ac_prog", so it can be a program name with args.
5976
set dummy $ac_prog; ac_word=$2
5977
echo "$as_me:$LINENO: checking for $ac_word" >&5
5978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979
if test "${ac_cv_prog_LEX+set}" = set; then
5980
echo $ECHO_N "(cached) $ECHO_C" >&6
5982
if test -n "$LEX"; then
5983
ac_cv_prog_LEX="$LEX" # Let the user override the test.
5985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989
test -z "$as_dir" && as_dir=.
5990
for ac_exec_ext in '' $ac_executable_extensions; do
5991
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992
ac_cv_prog_LEX="$ac_prog"
5993
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002
if test -n "$LEX"; then
6003
echo "$as_me:$LINENO: result: $LEX" >&5
6004
echo "${ECHO_T}$LEX" >&6
6006
echo "$as_me:$LINENO: result: no" >&5
6007
echo "${ECHO_T}no" >&6
6010
test -n "$LEX" && break
6012
test -n "$LEX" || LEX=":"
6014
if test -z "$LEXLIB"
6016
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6017
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6018
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6019
echo $ECHO_N "(cached) $ECHO_C" >&6
6021
ac_check_lib_save_LIBS=$LIBS
6023
cat >conftest.$ac_ext <<_ACEOF
6026
cat confdefs.h >>conftest.$ac_ext
6027
cat >>conftest.$ac_ext <<_ACEOF
6028
/* end confdefs.h. */
6030
/* Override any gcc2 internal prototype to avoid an error. */
6034
/* We use char because int might match the return type of a gcc2
6035
builtin and then its argument prototype would still apply. */
6045
rm -f conftest.$ac_objext conftest$ac_exeext
6046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047
(eval $ac_link) 2>conftest.er1
6049
grep -v '^ *+' conftest.er1 >conftest.err
6051
cat conftest.err >&5
6052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053
(exit $ac_status); } &&
6054
{ ac_try='test -z "$ac_c_werror_flag"
6055
|| test ! -s conftest.err'
6056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060
(exit $ac_status); }; } &&
6061
{ ac_try='test -s conftest$ac_exeext'
6062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
(exit $ac_status); }; }; then
6067
ac_cv_lib_fl_yywrap=yes
6069
echo "$as_me: failed program was:" >&5
6070
sed 's/^/| /' conftest.$ac_ext >&5
6072
ac_cv_lib_fl_yywrap=no
6074
rm -f conftest.err conftest.$ac_objext \
6075
conftest$ac_exeext conftest.$ac_ext
6076
LIBS=$ac_check_lib_save_LIBS
6078
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6079
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6080
if test $ac_cv_lib_fl_yywrap = yes; then
6083
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6084
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6085
if test "${ac_cv_lib_l_yywrap+set}" = set; then
6086
echo $ECHO_N "(cached) $ECHO_C" >&6
6088
ac_check_lib_save_LIBS=$LIBS
6090
cat >conftest.$ac_ext <<_ACEOF
6093
cat confdefs.h >>conftest.$ac_ext
6094
cat >>conftest.$ac_ext <<_ACEOF
6095
/* end confdefs.h. */
6097
/* Override any gcc2 internal prototype to avoid an error. */
6101
/* We use char because int might match the return type of a gcc2
6102
builtin and then its argument prototype would still apply. */
6112
rm -f conftest.$ac_objext conftest$ac_exeext
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114
(eval $ac_link) 2>conftest.er1
6116
grep -v '^ *+' conftest.er1 >conftest.err
6118
cat conftest.err >&5
6119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120
(exit $ac_status); } &&
6121
{ ac_try='test -z "$ac_c_werror_flag"
6122
|| test ! -s conftest.err'
6123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127
(exit $ac_status); }; } &&
6128
{ ac_try='test -s conftest$ac_exeext'
6129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133
(exit $ac_status); }; }; then
6134
ac_cv_lib_l_yywrap=yes
6136
echo "$as_me: failed program was:" >&5
6137
sed 's/^/| /' conftest.$ac_ext >&5
6139
ac_cv_lib_l_yywrap=no
6141
rm -f conftest.err conftest.$ac_objext \
6142
conftest$ac_exeext conftest.$ac_ext
6143
LIBS=$ac_check_lib_save_LIBS
6145
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6146
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6147
if test $ac_cv_lib_l_yywrap = yes; then
6155
if test "x$LEX" != "x:"; then
6156
echo "$as_me:$LINENO: checking lex output file root" >&5
6157
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6158
if test "${ac_cv_prog_lex_root+set}" = set; then
6159
echo $ECHO_N "(cached) $ECHO_C" >&6
6161
# The minimal lex program is just a single line: %%. But some broken lexes
6162
# (Solaris, I think it was) want two %% lines, so accommodate them.
6163
cat >conftest.l <<_ACEOF
6167
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6168
(eval $LEX conftest.l) 2>&5
6170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171
(exit $ac_status); }
6172
if test -f lex.yy.c; then
6173
ac_cv_prog_lex_root=lex.yy
6174
elif test -f lexyy.c; then
6175
ac_cv_prog_lex_root=lexyy
6177
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6178
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6179
{ (exit 1); exit 1; }; }
6182
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6183
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6185
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6187
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6188
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6189
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6190
echo $ECHO_N "(cached) $ECHO_C" >&6
6192
# POSIX says lex can declare yytext either as a pointer or an array; the
6193
# default is implementation-dependent. Figure out which it is, since
6194
# not all implementations provide the %pointer and %array declarations.
6195
ac_cv_prog_lex_yytext_pointer=no
6196
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6198
LIBS="$LIBS $LEXLIB"
6199
cat >conftest.$ac_ext <<_ACEOF
6200
`cat $LEX_OUTPUT_ROOT.c`
6202
rm -f conftest.$ac_objext conftest$ac_exeext
6203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204
(eval $ac_link) 2>conftest.er1
6206
grep -v '^ *+' conftest.er1 >conftest.err
6208
cat conftest.err >&5
6209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
(exit $ac_status); } &&
6211
{ ac_try='test -z "$ac_c_werror_flag"
6212
|| test ! -s conftest.err'
6213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217
(exit $ac_status); }; } &&
6218
{ ac_try='test -s conftest$ac_exeext'
6219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223
(exit $ac_status); }; }; then
6224
ac_cv_prog_lex_yytext_pointer=yes
6226
echo "$as_me: failed program was:" >&5
6227
sed 's/^/| /' conftest.$ac_ext >&5
6230
rm -f conftest.err conftest.$ac_objext \
6231
conftest$ac_exeext conftest.$ac_ext
6233
rm -f "${LEX_OUTPUT_ROOT}.c"
6236
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6237
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6238
if test $ac_cv_prog_lex_yytext_pointer = yes; then
6240
cat >>confdefs.h <<\_ACEOF
6241
#define YYTEXT_POINTER 1
6247
for ac_prog in 'bison -y' byacc
6249
# Extract the first word of "$ac_prog", so it can be a program name with args.
6250
set dummy $ac_prog; ac_word=$2
6251
echo "$as_me:$LINENO: checking for $ac_word" >&5
6252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253
if test "${ac_cv_prog_YACC+set}" = set; then
6254
echo $ECHO_N "(cached) $ECHO_C" >&6
6256
if test -n "$YACC"; then
6257
ac_cv_prog_YACC="$YACC" # Let the user override the test.
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263
test -z "$as_dir" && as_dir=.
6264
for ac_exec_ext in '' $ac_executable_extensions; do
6265
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266
ac_cv_prog_YACC="$ac_prog"
6267
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275
YACC=$ac_cv_prog_YACC
6276
if test -n "$YACC"; then
6277
echo "$as_me:$LINENO: result: $YACC" >&5
6278
echo "${ECHO_T}$YACC" >&6
6280
echo "$as_me:$LINENO: result: no" >&5
6281
echo "${ECHO_T}no" >&6
6284
test -n "$YACC" && break
6286
test -n "$YACC" || YACC="yacc"
6288
for ac_prog in gawk mawk nawk awk
6290
# Extract the first word of "$ac_prog", so it can be a program name with args.
6291
set dummy $ac_prog; ac_word=$2
6292
echo "$as_me:$LINENO: checking for $ac_word" >&5
6293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294
if test "${ac_cv_prog_AWK+set}" = set; then
6295
echo $ECHO_N "(cached) $ECHO_C" >&6
6297
if test -n "$AWK"; then
6298
ac_cv_prog_AWK="$AWK" # Let the user override the test.
6300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304
test -z "$as_dir" && as_dir=.
6305
for ac_exec_ext in '' $ac_executable_extensions; do
6306
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307
ac_cv_prog_AWK="$ac_prog"
6308
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317
if test -n "$AWK"; then
6318
echo "$as_me:$LINENO: result: $AWK" >&5
6319
echo "${ECHO_T}$AWK" >&6
6321
echo "$as_me:$LINENO: result: no" >&5
6322
echo "${ECHO_T}no" >&6
6325
test -n "$AWK" && break
6328
echo "$as_me:$LINENO: checking for yylineno declaration" >&5
6329
echo $ECHO_N "checking for yylineno declaration... $ECHO_C" >&6
6330
if test "${krb5_cv_type_yylineno+set}" = set; then
6331
echo $ECHO_N "(cached) $ECHO_C" >&6
6333
# some systems have yylineno, others don't...
6335
%%' | ${LEX} -t > conftest.out
6336
if egrep yylineno conftest.out >/dev/null 2>&1; then
6337
krb5_cv_type_yylineno=yes
6339
krb5_cv_type_yylineno=no
6344
echo "$as_me:$LINENO: result: $krb5_cv_type_yylineno" >&5
6345
echo "${ECHO_T}$krb5_cv_type_yylineno" >&6
6346
if test $krb5_cv_type_yylineno = no; then
6348
cat >>confdefs.h <<\_ACEOF
6349
#define NO_YYLINENO 1
6355
for ac_func in strdup
6357
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358
echo "$as_me:$LINENO: checking for $ac_func" >&5
6359
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6360
if eval "test \"\${$as_ac_var+set}\" = set"; then
6361
echo $ECHO_N "(cached) $ECHO_C" >&6
6363
cat >conftest.$ac_ext <<_ACEOF
6366
cat confdefs.h >>conftest.$ac_ext
6367
cat >>conftest.$ac_ext <<_ACEOF
6368
/* end confdefs.h. */
6369
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6370
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6371
#define $ac_func innocuous_$ac_func
6373
/* System header to define __stub macros and hopefully few prototypes,
6374
which can conflict with char $ac_func (); below.
6375
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6376
<limits.h> exists even on freestanding compilers. */
6379
# include <limits.h>
6381
# include <assert.h>
6386
/* Override any gcc2 internal prototype to avoid an error. */
6391
/* We use char because int might match the return type of a gcc2
6392
builtin and then its argument prototype would still apply. */
6394
/* The GNU C library defines this for functions which it implements
6395
to always fail with ENOSYS. Some functions are actually named
6396
something starting with __ and the normal name is an alias. */
6397
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6400
char (*f) () = $ac_func;
6409
return f != $ac_func;
6414
rm -f conftest.$ac_objext conftest$ac_exeext
6415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416
(eval $ac_link) 2>conftest.er1
6418
grep -v '^ *+' conftest.er1 >conftest.err
6420
cat conftest.err >&5
6421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422
(exit $ac_status); } &&
6423
{ ac_try='test -z "$ac_c_werror_flag"
6424
|| test ! -s conftest.err'
6425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429
(exit $ac_status); }; } &&
6430
{ ac_try='test -s conftest$ac_exeext'
6431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435
(exit $ac_status); }; }; then
6436
eval "$as_ac_var=yes"
6438
echo "$as_me: failed program was:" >&5
6439
sed 's/^/| /' conftest.$ac_ext >&5
6441
eval "$as_ac_var=no"
6443
rm -f conftest.err conftest.$ac_objext \
6444
conftest$ac_exeext conftest.$ac_ext
6446
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6447
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6448
if test `eval echo '${'$as_ac_var'}'` = yes; then
6449
cat >>confdefs.h <<_ACEOF
6450
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6457
if test "${ac_cv_header_dirent_h+set}" = set; then
6458
echo "$as_me:$LINENO: checking for dirent.h" >&5
6459
echo $ECHO_N "checking for dirent.h... $ECHO_C" >&6
6460
if test "${ac_cv_header_dirent_h+set}" = set; then
6461
echo $ECHO_N "(cached) $ECHO_C" >&6
6463
echo "$as_me:$LINENO: result: $ac_cv_header_dirent_h" >&5
6464
echo "${ECHO_T}$ac_cv_header_dirent_h" >&6
6466
# Is the header compilable?
6467
echo "$as_me:$LINENO: checking dirent.h usability" >&5
6468
echo $ECHO_N "checking dirent.h usability... $ECHO_C" >&6
6469
cat >conftest.$ac_ext <<_ACEOF
6472
cat confdefs.h >>conftest.$ac_ext
6473
cat >>conftest.$ac_ext <<_ACEOF
6474
/* end confdefs.h. */
6475
$ac_includes_default
6478
rm -f conftest.$ac_objext
6479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480
(eval $ac_compile) 2>conftest.er1
6482
grep -v '^ *+' conftest.er1 >conftest.err
6484
cat conftest.err >&5
6485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486
(exit $ac_status); } &&
6487
{ ac_try='test -z "$ac_c_werror_flag"
6488
|| test ! -s conftest.err'
6489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493
(exit $ac_status); }; } &&
6494
{ ac_try='test -s conftest.$ac_objext'
6495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
(exit $ac_status); }; }; then
6500
ac_header_compiler=yes
6502
echo "$as_me: failed program was:" >&5
6503
sed 's/^/| /' conftest.$ac_ext >&5
6505
ac_header_compiler=no
6507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509
echo "${ECHO_T}$ac_header_compiler" >&6
6511
# Is the header present?
6512
echo "$as_me:$LINENO: checking dirent.h presence" >&5
6513
echo $ECHO_N "checking dirent.h presence... $ECHO_C" >&6
6514
cat >conftest.$ac_ext <<_ACEOF
6517
cat confdefs.h >>conftest.$ac_ext
6518
cat >>conftest.$ac_ext <<_ACEOF
6519
/* end confdefs.h. */
6522
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525
grep -v '^ *+' conftest.er1 >conftest.err
6527
cat conftest.err >&5
6528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
(exit $ac_status); } >/dev/null; then
6530
if test -s conftest.err; then
6531
ac_cpp_err=$ac_c_preproc_warn_flag
6532
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6539
if test -z "$ac_cpp_err"; then
6540
ac_header_preproc=yes
6542
echo "$as_me: failed program was:" >&5
6543
sed 's/^/| /' conftest.$ac_ext >&5
6545
ac_header_preproc=no
6547
rm -f conftest.err conftest.$ac_ext
6548
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549
echo "${ECHO_T}$ac_header_preproc" >&6
6551
# So? What about this header?
6552
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554
{ echo "$as_me:$LINENO: WARNING: dirent.h: accepted by the compiler, rejected by the preprocessor!" >&5
6555
echo "$as_me: WARNING: dirent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556
{ echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the compiler's result" >&5
6557
echo "$as_me: WARNING: dirent.h: proceeding with the compiler's result" >&2;}
6558
ac_header_preproc=yes
6561
{ echo "$as_me:$LINENO: WARNING: dirent.h: present but cannot be compiled" >&5
6562
echo "$as_me: WARNING: dirent.h: present but cannot be compiled" >&2;}
6563
{ echo "$as_me:$LINENO: WARNING: dirent.h: check for missing prerequisite headers?" >&5
6564
echo "$as_me: WARNING: dirent.h: check for missing prerequisite headers?" >&2;}
6565
{ echo "$as_me:$LINENO: WARNING: dirent.h: see the Autoconf documentation" >&5
6566
echo "$as_me: WARNING: dirent.h: see the Autoconf documentation" >&2;}
6567
{ echo "$as_me:$LINENO: WARNING: dirent.h: section \"Present But Cannot Be Compiled\"" >&5
6568
echo "$as_me: WARNING: dirent.h: section \"Present But Cannot Be Compiled\"" >&2;}
6569
{ echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the preprocessor's result" >&5
6570
echo "$as_me: WARNING: dirent.h: proceeding with the preprocessor's result" >&2;}
6571
{ echo "$as_me:$LINENO: WARNING: dirent.h: in the future, the compiler will take precedence" >&5
6572
echo "$as_me: WARNING: dirent.h: in the future, the compiler will take precedence" >&2;}
6575
## -------------------------------- ##
6576
## Report this to krb5-bugs@mit.edu ##
6577
## -------------------------------- ##
6580
sed "s/^/$as_me: WARNING: /" >&2
6583
echo "$as_me:$LINENO: checking for dirent.h" >&5
6584
echo $ECHO_N "checking for dirent.h... $ECHO_C" >&6
6585
if test "${ac_cv_header_dirent_h+set}" = set; then
6586
echo $ECHO_N "(cached) $ECHO_C" >&6
6588
ac_cv_header_dirent_h=$ac_header_preproc
6590
echo "$as_me:$LINENO: result: $ac_cv_header_dirent_h" >&5
6591
echo "${ECHO_T}$ac_cv_header_dirent_h" >&6
6594
if test $ac_cv_header_dirent_h = yes; then
6596
cat >>confdefs.h <<\_ACEOF
6597
#define USE_DIRENT_H 1
6604
echo "$as_me:$LINENO: checking if argument to wait is int *" >&5
6605
echo $ECHO_N "checking if argument to wait is int *... $ECHO_C" >&6
6606
if test "${krb5_cv_struct_wait+set}" = set; then
6607
echo $ECHO_N "(cached) $ECHO_C" >&6
6609
cat >conftest.$ac_ext <<_ACEOF
6612
cat confdefs.h >>conftest.$ac_ext
6613
cat >>conftest.$ac_ext <<_ACEOF
6614
/* end confdefs.h. */
6615
#include <sys/types.h>
6616
#include <sys/wait.h>
6617
extern pid_t wait(int *);
6626
rm -f conftest.$ac_objext
6627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628
(eval $ac_compile) 2>conftest.er1
6630
grep -v '^ *+' conftest.er1 >conftest.err
6632
cat conftest.err >&5
6633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
(exit $ac_status); } &&
6635
{ ac_try='test -z "$ac_c_werror_flag"
6636
|| test ! -s conftest.err'
6637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
(exit $ac_status); }; } &&
6642
{ ac_try='test -s conftest.$ac_objext'
6643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
(exit $ac_status); }; }; then
6648
krb5_cv_struct_wait=no
6650
echo "$as_me: failed program was:" >&5
6651
sed 's/^/| /' conftest.$ac_ext >&5
6653
cat >conftest.$ac_ext <<_ACEOF
6656
cat confdefs.h >>conftest.$ac_ext
6657
cat >>conftest.$ac_ext <<_ACEOF
6658
/* end confdefs.h. */
6659
#include <sys/wait.h>
6672
rm -f conftest.$ac_objext
6673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674
(eval $ac_compile) 2>conftest.er1
6676
grep -v '^ *+' conftest.er1 >conftest.err
6678
cat conftest.err >&5
6679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680
(exit $ac_status); } &&
6681
{ ac_try='test -z "$ac_c_werror_flag"
6682
|| test ! -s conftest.err'
6683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687
(exit $ac_status); }; } &&
6688
{ ac_try='test -s conftest.$ac_objext'
6689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693
(exit $ac_status); }; }; then
6694
krb5_cv_struct_wait=yes
6696
echo "$as_me: failed program was:" >&5
6697
sed 's/^/| /' conftest.$ac_ext >&5
6699
krb5_cv_struct_wait=no
6701
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706
echo "$as_me:$LINENO: result: $krb5_cv_struct_wait" >&5
6707
echo "${ECHO_T}$krb5_cv_struct_wait" >&6
6708
if test $krb5_cv_struct_wait = no; then
6710
cat >>confdefs.h <<\_ACEOF
6711
#define WAIT_USES_INT 1
6717
echo "$as_me:$LINENO: checking for sigprocmask" >&5
6718
echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6
6719
if test "${ac_cv_func_sigprocmask+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
cat >conftest.$ac_ext <<_ACEOF
6725
cat confdefs.h >>conftest.$ac_ext
6726
cat >>conftest.$ac_ext <<_ACEOF
6727
/* end confdefs.h. */
6728
/* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
6729
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6730
#define sigprocmask innocuous_sigprocmask
6732
/* System header to define __stub macros and hopefully few prototypes,
6733
which can conflict with char sigprocmask (); below.
6734
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6735
<limits.h> exists even on freestanding compilers. */
6738
# include <limits.h>
6740
# include <assert.h>
6745
/* Override any gcc2 internal prototype to avoid an error. */
6750
/* We use char because int might match the return type of a gcc2
6751
builtin and then its argument prototype would still apply. */
6752
char sigprocmask ();
6753
/* The GNU C library defines this for functions which it implements
6754
to always fail with ENOSYS. Some functions are actually named
6755
something starting with __ and the normal name is an alias. */
6756
#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
6759
char (*f) () = sigprocmask;
6768
return f != sigprocmask;
6773
rm -f conftest.$ac_objext conftest$ac_exeext
6774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775
(eval $ac_link) 2>conftest.er1
6777
grep -v '^ *+' conftest.er1 >conftest.err
6779
cat conftest.err >&5
6780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781
(exit $ac_status); } &&
6782
{ ac_try='test -z "$ac_c_werror_flag"
6783
|| test ! -s conftest.err'
6784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788
(exit $ac_status); }; } &&
6789
{ ac_try='test -s conftest$ac_exeext'
6790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794
(exit $ac_status); }; }; then
6795
ac_cv_func_sigprocmask=yes
6797
echo "$as_me: failed program was:" >&5
6798
sed 's/^/| /' conftest.$ac_ext >&5
6800
ac_cv_func_sigprocmask=no
6802
rm -f conftest.err conftest.$ac_objext \
6803
conftest$ac_exeext conftest.$ac_ext
6805
echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
6806
echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6
6807
if test $ac_cv_func_sigprocmask = yes; then
6808
echo "$as_me:$LINENO: checking for sigset_t and POSIX_SIGNALS" >&5
6809
echo $ECHO_N "checking for sigset_t and POSIX_SIGNALS... $ECHO_C" >&6
6810
if test "${krb5_cv_type_sigset_t+set}" = set; then
6811
echo $ECHO_N "(cached) $ECHO_C" >&6
6813
cat >conftest.$ac_ext <<_ACEOF
6816
cat confdefs.h >>conftest.$ac_ext
6817
cat >>conftest.$ac_ext <<_ACEOF
6818
/* end confdefs.h. */
6828
rm -f conftest.$ac_objext
6829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830
(eval $ac_compile) 2>conftest.er1
6832
grep -v '^ *+' conftest.er1 >conftest.err
6834
cat conftest.err >&5
6835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836
(exit $ac_status); } &&
6837
{ ac_try='test -z "$ac_c_werror_flag"
6838
|| test ! -s conftest.err'
6839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
(exit $ac_status); }; } &&
6844
{ ac_try='test -s conftest.$ac_objext'
6845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849
(exit $ac_status); }; }; then
6850
krb5_cv_type_sigset_t=yes
6852
echo "$as_me: failed program was:" >&5
6853
sed 's/^/| /' conftest.$ac_ext >&5
6855
krb5_cv_type_sigset_t=no
6857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860
echo "$as_me:$LINENO: result: $krb5_cv_type_sigset_t" >&5
6861
echo "${ECHO_T}$krb5_cv_type_sigset_t" >&6
6862
if test $krb5_cv_type_sigset_t = yes; then
6864
cat >>confdefs.h <<\_ACEOF
6865
#define POSIX_SIGNALS 1
6873
echo "$as_me:$LINENO: checking for use of sigprocmask" >&5
6874
echo $ECHO_N "checking for use of sigprocmask... $ECHO_C" >&6
6875
if test "${krb5_cv_func_sigprocmask_use+set}" = set; then
6876
echo $ECHO_N "(cached) $ECHO_C" >&6
6878
cat >conftest.$ac_ext <<_ACEOF
6881
cat confdefs.h >>conftest.$ac_ext
6882
cat >>conftest.$ac_ext <<_ACEOF
6883
/* end confdefs.h. */
6888
sigprocmask(SIG_SETMASK,0,0);
6893
rm -f conftest.$ac_objext conftest$ac_exeext
6894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895
(eval $ac_link) 2>conftest.er1
6897
grep -v '^ *+' conftest.er1 >conftest.err
6899
cat conftest.err >&5
6900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901
(exit $ac_status); } &&
6902
{ ac_try='test -z "$ac_c_werror_flag"
6903
|| test ! -s conftest.err'
6904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908
(exit $ac_status); }; } &&
6909
{ ac_try='test -s conftest$ac_exeext'
6910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914
(exit $ac_status); }; }; then
6915
krb5_cv_func_sigprocmask_use=yes
6917
echo "$as_me: failed program was:" >&5
6918
sed 's/^/| /' conftest.$ac_ext >&5
6920
cat >conftest.$ac_ext <<_ACEOF
6923
cat confdefs.h >>conftest.$ac_ext
6924
cat >>conftest.$ac_ext <<_ACEOF
6925
/* end confdefs.h. */
6935
rm -f conftest.$ac_objext conftest$ac_exeext
6936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937
(eval $ac_link) 2>conftest.er1
6939
grep -v '^ *+' conftest.er1 >conftest.err
6941
cat conftest.err >&5
6942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943
(exit $ac_status); } &&
6944
{ ac_try='test -z "$ac_c_werror_flag"
6945
|| test ! -s conftest.err'
6946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950
(exit $ac_status); }; } &&
6951
{ ac_try='test -s conftest$ac_exeext'
6952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956
(exit $ac_status); }; }; then
6957
krb5_cv_func_sigprocmask_use=no
6959
echo "$as_me: failed program was:" >&5
6960
sed 's/^/| /' conftest.$ac_ext >&5
6962
krb5_cv_func_sigprocmask_use=yes
6964
rm -f conftest.err conftest.$ac_objext \
6965
conftest$ac_exeext conftest.$ac_ext
6967
rm -f conftest.err conftest.$ac_objext \
6968
conftest$ac_exeext conftest.$ac_ext
6971
echo "$as_me:$LINENO: result: $krb5_cv_func_sigprocmask_use" >&5
6972
echo "${ECHO_T}$krb5_cv_func_sigprocmask_use" >&6
6973
if test $krb5_cv_func_sigprocmask_use = yes; then
6975
cat >>confdefs.h <<\_ACEOF
6976
#define USE_SIGPROCMASK 1
6981
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6982
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6983
if test "${ac_cv_type_signal+set}" = set; then
6984
echo $ECHO_N "(cached) $ECHO_C" >&6
6986
cat >conftest.$ac_ext <<_ACEOF
6989
cat confdefs.h >>conftest.$ac_ext
6990
cat >>conftest.$ac_ext <<_ACEOF
6991
/* end confdefs.h. */
6992
#include <sys/types.h>
6998
extern "C" void (*signal (int, void (*)(int)))(int);
7000
void (*signal ()) ();
7011
rm -f conftest.$ac_objext
7012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013
(eval $ac_compile) 2>conftest.er1
7015
grep -v '^ *+' conftest.er1 >conftest.err
7017
cat conftest.err >&5
7018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019
(exit $ac_status); } &&
7020
{ ac_try='test -z "$ac_c_werror_flag"
7021
|| test ! -s conftest.err'
7022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026
(exit $ac_status); }; } &&
7027
{ ac_try='test -s conftest.$ac_objext'
7028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032
(exit $ac_status); }; }; then
7033
ac_cv_type_signal=void
7035
echo "$as_me: failed program was:" >&5
7036
sed 's/^/| /' conftest.$ac_ext >&5
7038
ac_cv_type_signal=int
7040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7043
echo "${ECHO_T}$ac_cv_type_signal" >&6
7045
cat >>confdefs.h <<_ACEOF
7046
#define RETSIGTYPE $ac_cv_type_signal
7052
echo "$as_me:$LINENO: checking for stdarg.h" >&5
7053
echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7054
if test "${ac_cv_header_stdarg_h+set}" = set; then
7055
echo $ECHO_N "(cached) $ECHO_C" >&6
7057
cat >conftest.$ac_ext <<_ACEOF
7060
cat confdefs.h >>conftest.$ac_ext
7061
cat >>conftest.$ac_ext <<_ACEOF
7062
/* end confdefs.h. */
7068
} /* ac_try_compile will have started a function body */
7069
int aoeu (char *format, ...) {
7072
va_start (v, format);
7073
i = va_arg (v, int);
7080
rm -f conftest.$ac_objext
7081
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082
(eval $ac_compile) 2>conftest.er1
7084
grep -v '^ *+' conftest.er1 >conftest.err
7086
cat conftest.err >&5
7087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
(exit $ac_status); } &&
7089
{ ac_try='test -z "$ac_c_werror_flag"
7090
|| test ! -s conftest.err'
7091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095
(exit $ac_status); }; } &&
7096
{ ac_try='test -s conftest.$ac_objext'
7097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101
(exit $ac_status); }; }; then
7102
ac_cv_header_stdarg_h=yes
7104
echo "$as_me: failed program was:" >&5
7105
sed 's/^/| /' conftest.$ac_ext >&5
7107
ac_cv_header_stdarg_h=no
7109
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111
echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7112
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7113
if test $ac_cv_header_stdarg_h = yes; then
7115
cat >>confdefs.h <<\_ACEOF
7116
#define HAVE_STDARG_H 1
7121
echo "$as_me:$LINENO: checking for varargs.h" >&5
7122
echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
7123
if test "${ac_cv_header_varargs_h+set}" = set; then
7124
echo $ECHO_N "(cached) $ECHO_C" >&6
7126
cat >conftest.$ac_ext <<_ACEOF
7129
cat confdefs.h >>conftest.$ac_ext
7130
cat >>conftest.$ac_ext <<_ACEOF
7131
/* end confdefs.h. */
7132
#include <varargs.h>
7137
} /* ac_try_compile will have started a function body */
7138
int aoeu (va_alist) va_dcl {
7142
i = va_arg (v, int);
7149
rm -f conftest.$ac_objext
7150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151
(eval $ac_compile) 2>conftest.er1
7153
grep -v '^ *+' conftest.er1 >conftest.err
7155
cat conftest.err >&5
7156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157
(exit $ac_status); } &&
7158
{ ac_try='test -z "$ac_c_werror_flag"
7159
|| test ! -s conftest.err'
7160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164
(exit $ac_status); }; } &&
7165
{ ac_try='test -s conftest.$ac_objext'
7166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170
(exit $ac_status); }; }; then
7171
ac_cv_header_varargs_h=yes
7173
echo "$as_me: failed program was:" >&5
7174
sed 's/^/| /' conftest.$ac_ext >&5
7176
ac_cv_header_varargs_h=no
7178
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
7181
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
7182
if test $ac_cv_header_varargs_h = yes; then
7184
cat >>confdefs.h <<\_ACEOF
7185
#define HAVE_VARARGS_H 1
7189
{ { echo "$as_me:$LINENO: error: Neither stdarg nor varargs compile?" >&5
7190
echo "$as_me: error: Neither stdarg nor varargs compile?" >&2;}
7191
{ (exit 1); exit 1; }; }
7197
for ac_header in stdlib.h
7199
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7200
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7201
echo "$as_me:$LINENO: checking for $ac_header" >&5
7202
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7203
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7204
echo $ECHO_N "(cached) $ECHO_C" >&6
7206
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7207
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7209
# Is the header compilable?
7210
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7211
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7212
cat >conftest.$ac_ext <<_ACEOF
7215
cat confdefs.h >>conftest.$ac_ext
7216
cat >>conftest.$ac_ext <<_ACEOF
7217
/* end confdefs.h. */
7218
$ac_includes_default
7219
#include <$ac_header>
7221
rm -f conftest.$ac_objext
7222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223
(eval $ac_compile) 2>conftest.er1
7225
grep -v '^ *+' conftest.er1 >conftest.err
7227
cat conftest.err >&5
7228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229
(exit $ac_status); } &&
7230
{ ac_try='test -z "$ac_c_werror_flag"
7231
|| test ! -s conftest.err'
7232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
(exit $ac_status); }; } &&
7237
{ ac_try='test -s conftest.$ac_objext'
7238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242
(exit $ac_status); }; }; then
7243
ac_header_compiler=yes
7245
echo "$as_me: failed program was:" >&5
7246
sed 's/^/| /' conftest.$ac_ext >&5
7248
ac_header_compiler=no
7250
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7252
echo "${ECHO_T}$ac_header_compiler" >&6
7254
# Is the header present?
7255
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7256
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7257
cat >conftest.$ac_ext <<_ACEOF
7260
cat confdefs.h >>conftest.$ac_ext
7261
cat >>conftest.$ac_ext <<_ACEOF
7262
/* end confdefs.h. */
7263
#include <$ac_header>
7265
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7266
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7268
grep -v '^ *+' conftest.er1 >conftest.err
7270
cat conftest.err >&5
7271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272
(exit $ac_status); } >/dev/null; then
7273
if test -s conftest.err; then
7274
ac_cpp_err=$ac_c_preproc_warn_flag
7275
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7282
if test -z "$ac_cpp_err"; then
7283
ac_header_preproc=yes
7285
echo "$as_me: failed program was:" >&5
7286
sed 's/^/| /' conftest.$ac_ext >&5
7288
ac_header_preproc=no
7290
rm -f conftest.err conftest.$ac_ext
7291
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7292
echo "${ECHO_T}$ac_header_preproc" >&6
7294
# So? What about this header?
7295
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7297
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7298
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7299
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7300
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7301
ac_header_preproc=yes
7304
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7305
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7306
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7307
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7308
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7309
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7310
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7311
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7312
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7313
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7314
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7315
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7318
## -------------------------------- ##
7319
## Report this to krb5-bugs@mit.edu ##
7320
## -------------------------------- ##
7323
sed "s/^/$as_me: WARNING: /" >&2
7326
echo "$as_me:$LINENO: checking for $ac_header" >&5
7327
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329
echo $ECHO_N "(cached) $ECHO_C" >&6
7331
eval "$as_ac_Header=\$ac_header_preproc"
7333
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7334
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7337
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7338
cat >>confdefs.h <<_ACEOF
7339
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346
krb5_force_static=yes
7348
# Check whether to build static libraries.
7349
# Check whether --enable-static or --disable-static was given.
7350
if test "${enable_static+set}" = set; then
7351
enableval="$enable_static"
7354
enable_static=$default_static
7357
if test "$enable_static" = yes; then
7358
{ { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
7359
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
7360
{ (exit 1); exit 1; }; }
7363
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
7364
{ echo "$as_me:$LINENO: disabling static libraries" >&5
7365
echo "$as_me: disabling static libraries" >&6;}
7370
LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
7371
LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
7373
LIBINSTLIST=install-static
7375
# CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
7378
# Check whether to build shared libraries.
7379
# Check whether --enable-shared or --disable-shared was given.
7380
if test "${enable_shared+set}" = set; then
7381
enableval="$enable_shared"
7384
enable_shared=$default_shared
7387
if test "$enable_shared" != yes; then
7388
{ { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
7389
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
7390
{ (exit 1); exit 1; }; }
7393
if test "$enable_shared" = yes; then
7396
{ echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
7397
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
7399
CC_LINK="$CC_LINK_STATIC"
7402
# set this now because some logic below may reset SHLIBEXT
7404
if test "$krb5_force_static" = "yes"; then
7405
echo "$as_me:$LINENO: result: Forcing static libraries." >&5
7406
echo "${ECHO_T}Forcing static libraries." >&6
7407
# avoid duplicate rules generation for AIX and such
7408
SHLIBEXT=.so-nobuild
7409
SHLIBVEXT=.so.v-nobuild
7410
SHLIBSEXT=.so.s-nobuild
7412
{ echo "$as_me:$LINENO: enabling shared libraries" >&5
7413
echo "$as_me: enabling shared libraries" >&6;}
7414
# Clear some stuff in case of AIX, etc.
7415
if test "$STLIBEXT" = "$SHLIBEXT" ; then
7422
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
7423
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
7424
case "$SHLIBSEXT" in
7426
LIBINSTLIST="$LIBINSTLIST install-shared"
7429
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
7430
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
7431
LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
7434
OBJLISTS="$OBJLISTS OBJS.SH"
7436
CC_LINK="$CC_LINK_SHARED"
7441
CC_LINK="$CC_LINK_STATIC"
7442
SHLIBEXT=.so-nobuild
7443
SHLIBVEXT=.so.v-nobuild
7444
SHLIBSEXT=.so.s-nobuild
7447
if test "$build_dynobj" = yes; then
7448
OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
7449
OBJLISTS="$OBJLISTS OBJS.SH"
7452
if test -z "$LIBLIST"; then
7453
{ { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
7454
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
7455
{ (exit 1); exit 1; }; }
7458
# Check whether to build profiled libraries.
7459
# Check whether --enable-profiled or --disable-profiled was given.
7460
if test "${enable_profiled+set}" = set; then
7461
enableval="$enable_profiled"
7462
if test "$enableval" = yes; then
7463
{ { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
7464
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
7465
{ (exit 1); exit 1; }; }
7470
{ echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
7471
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
7474
{ echo "$as_me:$LINENO: enabling profiled libraries" >&5
7475
echo "$as_me: enabling profiled libraries" >&6;}
7476
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
7477
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
7478
OBJLISTS="$OBJLISTS OBJS.PF"
7479
LIBINSTLIST="$LIBINSTLIST install-profiled"
7484
echo "$as_me:$LINENO: checking whether ln -s works" >&5
7485
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7487
if test "$LN_S" = "ln -s"; then
7488
echo "$as_me:$LINENO: result: yes" >&5
7489
echo "${ECHO_T}yes" >&6
7491
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7492
echo "${ECHO_T}no, using $LN_S" >&6
7495
if test -n "$ac_tool_prefix"; then
7496
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7497
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7498
echo "$as_me:$LINENO: checking for $ac_word" >&5
7499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7500
if test "${ac_cv_prog_RANLIB+set}" = set; then
7501
echo $ECHO_N "(cached) $ECHO_C" >&6
7503
if test -n "$RANLIB"; then
7504
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510
test -z "$as_dir" && as_dir=.
7511
for ac_exec_ext in '' $ac_executable_extensions; do
7512
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7514
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
RANLIB=$ac_cv_prog_RANLIB
7523
if test -n "$RANLIB"; then
7524
echo "$as_me:$LINENO: result: $RANLIB" >&5
7525
echo "${ECHO_T}$RANLIB" >&6
7527
echo "$as_me:$LINENO: result: no" >&5
7528
echo "${ECHO_T}no" >&6
7532
if test -z "$ac_cv_prog_RANLIB"; then
7533
ac_ct_RANLIB=$RANLIB
7534
# Extract the first word of "ranlib", so it can be a program name with args.
7535
set dummy ranlib; ac_word=$2
7536
echo "$as_me:$LINENO: checking for $ac_word" >&5
7537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7538
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7539
echo $ECHO_N "(cached) $ECHO_C" >&6
7541
if test -n "$ac_ct_RANLIB"; then
7542
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548
test -z "$as_dir" && as_dir=.
7549
for ac_exec_ext in '' $ac_executable_extensions; do
7550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551
ac_cv_prog_ac_ct_RANLIB="ranlib"
7552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7561
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7562
if test -n "$ac_ct_RANLIB"; then
7563
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7564
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7566
echo "$as_me:$LINENO: result: no" >&5
7567
echo "${ECHO_T}no" >&6
7570
RANLIB=$ac_ct_RANLIB
7572
RANLIB="$ac_cv_prog_RANLIB"
7575
# Extract the first word of "ar", so it can be a program name with args.
7576
set dummy ar; ac_word=$2
7577
echo "$as_me:$LINENO: checking for $ac_word" >&5
7578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
7580
echo $ECHO_N "(cached) $ECHO_C" >&6
7582
if test -n "$ARCHIVE"; then
7583
ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
7585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589
test -z "$as_dir" && as_dir=.
7590
for ac_exec_ext in '' $ac_executable_extensions; do
7591
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592
ac_cv_prog_ARCHIVE="ar cqv"
7593
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599
test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
7602
ARCHIVE=$ac_cv_prog_ARCHIVE
7603
if test -n "$ARCHIVE"; then
7604
echo "$as_me:$LINENO: result: $ARCHIVE" >&5
7605
echo "${ECHO_T}$ARCHIVE" >&6
7607
echo "$as_me:$LINENO: result: no" >&5
7608
echo "${ECHO_T}no" >&6
7611
# Extract the first word of "ar", so it can be a program name with args.
7612
set dummy ar; ac_word=$2
7613
echo "$as_me:$LINENO: checking for $ac_word" >&5
7614
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7615
if test "${ac_cv_prog_ARADD+set}" = set; then
7616
echo $ECHO_N "(cached) $ECHO_C" >&6
7618
if test -n "$ARADD"; then
7619
ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
7621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625
test -z "$as_dir" && as_dir=.
7626
for ac_exec_ext in '' $ac_executable_extensions; do
7627
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628
ac_cv_prog_ARADD="ar cruv"
7629
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635
test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
7638
ARADD=$ac_cv_prog_ARADD
7639
if test -n "$ARADD"; then
7640
echo "$as_me:$LINENO: result: $ARADD" >&5
7641
echo "${ECHO_T}$ARADD" >&6
7643
echo "$as_me:$LINENO: result: no" >&5
7644
echo "${ECHO_T}no" >&6
7647
# Find a good install program. We prefer a C program (faster),
7648
# so one script is as good as another. But avoid the broken or
7649
# incompatible versions:
7650
# SysV /etc/install, /usr/sbin/install
7651
# SunOS /usr/etc/install
7652
# IRIX /sbin/install
7654
# AmigaOS /C/install, which installs bootblocks on floppy discs
7655
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7656
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7657
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7658
# OS/2's system install, which has a completely different semantic
7659
# ./install, which can be erroneously created by make from ./install.sh.
7660
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7661
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7662
if test -z "$INSTALL"; then
7663
if test "${ac_cv_path_install+set}" = set; then
7664
echo $ECHO_N "(cached) $ECHO_C" >&6
7666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670
test -z "$as_dir" && as_dir=.
7671
# Account for people who put trailing slashes in PATH elements.
7673
./ | .// | /cC/* | \
7674
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7675
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7678
# OSF1 and SCO ODT 3.0 have their own names for install.
7679
# Don't use installbsd from OSF since it installs stuff as root
7681
for ac_prog in ginstall scoinst install; do
7682
for ac_exec_ext in '' $ac_executable_extensions; do
7683
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7684
if test $ac_prog = install &&
7685
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7686
# AIX install. It has an incompatible calling convention.
7688
elif test $ac_prog = install &&
7689
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690
# program-specific install script used by HP pwplus--don't use.
7693
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7705
if test "${ac_cv_path_install+set}" = set; then
7706
INSTALL=$ac_cv_path_install
7708
# As a last resort, use the slow shell script. We don't cache a
7709
# path for INSTALL within a source directory, because that will
7710
# break other packages using the cache if that directory is
7711
# removed, or if the path is relative.
7712
INSTALL=$ac_install_sh
7715
echo "$as_me:$LINENO: result: $INSTALL" >&5
7716
echo "${ECHO_T}$INSTALL" >&6
7718
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7719
# It thinks the first close brace ends the variable substitution.
7720
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7722
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7724
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7726
# Extract the first word of "ar", so it can be a program name with args.
7727
set dummy ar; ac_word=$2
7728
echo "$as_me:$LINENO: checking for $ac_word" >&5
7729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730
if test "${ac_cv_prog_AR+set}" = set; then
7731
echo $ECHO_N "(cached) $ECHO_C" >&6
7733
if test -n "$AR"; then
7734
ac_cv_prog_AR="$AR" # Let the user override the test.
7736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740
test -z "$as_dir" && as_dir=.
7741
for ac_exec_ext in '' $ac_executable_extensions; do
7742
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
7754
if test -n "$AR"; then
7755
echo "$as_me:$LINENO: result: $AR" >&5
7756
echo "${ECHO_T}$AR" >&6
7758
echo "$as_me:$LINENO: result: no" >&5
7759
echo "${ECHO_T}no" >&6
7762
# Extract the first word of "perl", so it can be a program name with args.
7763
set dummy perl; ac_word=$2
7764
echo "$as_me:$LINENO: checking for $ac_word" >&5
7765
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7766
if test "${ac_cv_prog_PERL+set}" = set; then
7767
echo $ECHO_N "(cached) $ECHO_C" >&6
7769
if test -n "$PERL"; then
7770
ac_cv_prog_PERL="$PERL" # Let the user override the test.
7772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776
test -z "$as_dir" && as_dir=.
7777
for ac_exec_ext in '' $ac_executable_extensions; do
7778
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779
ac_cv_prog_PERL="perl"
7780
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
7789
PERL=$ac_cv_prog_PERL
7790
if test -n "$PERL"; then
7791
echo "$as_me:$LINENO: result: $PERL" >&5
7792
echo "${ECHO_T}$PERL" >&6
7794
echo "$as_me:$LINENO: result: no" >&5
7795
echo "${ECHO_T}no" >&6
7798
if test "$ac_cv_prog_PERL" = "false"; then
7799
{ { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
7800
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
7801
{ (exit 1); exit 1; }; }
7821
# null out SHLIB_EXPFLAGS because we lack any dependencies
7823
# If we're only building static libraries, they're for build-time use only,
7833
ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in"
7835
cat >confcache <<\_ACEOF
7836
# This file is a shell script that caches the results of configure
7837
# tests run on this system so they can be shared between configure
7838
# scripts and configure runs, see configure's option --config-cache.
7839
# It is not useful on other systems. If it contains results you don't
7840
# want to keep, you may remove or edit it.
7842
# config.status only pays attention to the cache file if you give it
7843
# the --recheck option to rerun configure.
7845
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7846
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7851
# The following way of writing the cache mishandles newlines in values,
7852
# but we know of no workaround that is simple, portable, and efficient.
7853
# So, don't put newlines in cache variables' values.
7854
# Ultrix sh set writes to stderr and can't be redirected directly,
7855
# and sets the high bit in the cache file unless we assign to the vars.
7858
case `(ac_space=' '; set | grep ac_space) 2>&1` in
7860
# `set' does not quote correctly, so add quotes (double-quote
7861
# substitution turns \\\\ into \\, and sed turns \\ into \).
7864
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7867
# `set' quotes correctly as required by POSIX, so do not add quotes.
7869
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7876
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7878
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7880
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7881
if test -w $cache_file; then
7882
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7883
cat confcache >$cache_file
7885
echo "not updating unwritable cache $cache_file"
7890
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7891
# Let make expand exec_prefix.
7892
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7894
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7895
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7896
# trailing colons and then remove the whole line if VPATH becomes empty
7897
# (actually we leave an empty line to preserve line numbers).
7898
if test "x$srcdir" = x.; then
7899
ac_vpsub='/^[ ]*VPATH[ ]*=/{
7900
s/:*\$(srcdir):*/:/;
7901
s/:*\${srcdir}:*/:/;
7903
s/^\([^=]*=[ ]*\):*/\1/;
7909
# Transform confdefs.h into DEFS.
7910
# Protect against shell expansion while executing Makefile rules.
7911
# Protect against Makefile macro expansion.
7913
# If the first sed substitution is executed (which looks for macros that
7914
# take arguments), then we branch to the quote section. Otherwise,
7915
# look for a macro that doesn't take arguments.
7916
cat >confdef2opt.sed <<\_ACEOF
7919
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7921
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7925
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7931
# We use echo to avoid assuming a particular line-breaking character.
7932
# The extra dot is to prevent the shell from consuming trailing
7933
# line-breaks from the sub-command output. A line-break within
7934
# single-quotes doesn't work because, if this script is created in a
7935
# platform that uses two characters for line-breaks (e.g., DOS), tr
7937
ac_LF_and_DOT=`echo; echo .`
7938
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7939
rm -f confdef2opt.sed
7944
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7945
# 1. Remove the extension, and $U if already installed.
7946
ac_i=`echo "$ac_i" |
7947
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7949
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7950
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7954
LTLIBOBJS=$ac_ltlibobjs
7958
: ${CONFIG_STATUS=./config.status}
7959
ac_clean_files_save=$ac_clean_files
7960
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7961
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7962
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7963
cat >$CONFIG_STATUS <<_ACEOF
7965
# Generated by $as_me.
7966
# Run this file to recreate the current configuration.
7967
# Compiler output produced by configure, useful for debugging
7968
# configure, is in config.log if it exists.
7973
SHELL=\${CONFIG_SHELL-$SHELL}
7976
cat >>$CONFIG_STATUS <<\_ACEOF
7977
## --------------------- ##
7978
## M4sh Initialization. ##
7979
## --------------------- ##
7981
# Be Bourne compatible
7982
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7985
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7986
# is contrary to our usage. Disable this feature.
7987
alias -g '${1+"$@"}'='"$@"'
7988
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7991
DUALCASE=1; export DUALCASE # for MKS sh
7993
# Support unset when possible.
7994
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8001
# Work around bugs in pre-3.0 UWIN ksh.
8002
$as_unset ENV MAIL MAILPATH
8009
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8010
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8011
LC_TELEPHONE LC_TIME
8013
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8014
eval $as_var=C; export $as_var
8020
# Required to use basename.
8021
if expr a : '\(a\)' >/dev/null 2>&1; then
8027
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8028
as_basename=basename
8034
# Name of the executable.
8035
as_me=`$as_basename "$0" ||
8036
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8037
X"$0" : 'X\(//\)$' \| \
8038
X"$0" : 'X\(/\)$' \| \
8039
. : '\(.\)' 2>/dev/null ||
8041
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8042
/^X\/\(\/\/\)$/{ s//\1/; q; }
8043
/^X\/\(\/\).*/{ s//\1/; q; }
8047
# PATH needs CR, and LINENO needs CR and PATH.
8048
# Avoid depending upon Character Ranges.
8049
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8050
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8051
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8052
as_cr_digits='0123456789'
8053
as_cr_alnum=$as_cr_Letters$as_cr_digits
8055
# The user is always right.
8056
if test "${PATH_SEPARATOR+set}" != set; then
8057
echo "#! /bin/sh" >conf$$.sh
8058
echo "exit 0" >>conf$$.sh
8060
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8071
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8072
test "x$as_lineno_1" != "x$as_lineno_2" &&
8073
test "x$as_lineno_3" = "x$as_lineno_2" || {
8074
# Find who we are. Look in the path if we contain no path at all
8077
*[\\/]* ) as_myself=$0 ;;
8078
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082
test -z "$as_dir" && as_dir=.
8083
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8088
# We did not find ourselves, most probably we were run as `sh COMMAND'
8089
# in which case we are not to be found in the path.
8090
if test "x$as_myself" = x; then
8093
if test ! -f "$as_myself"; then
8094
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8095
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8096
{ (exit 1); exit 1; }; }
8098
case $CONFIG_SHELL in
8100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8104
test -z "$as_dir" && as_dir=.
8105
for as_base in sh bash ksh sh5; do
8108
if ("$as_dir/$as_base" -c '
8111
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8112
test "x$as_lineno_1" != "x$as_lineno_2" &&
8113
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8114
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8115
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8116
CONFIG_SHELL=$as_dir/$as_base
8118
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8126
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8127
# uniformly replaced by the line number. The first 'sed' inserts a
8128
# line-number line before each line; the second 'sed' does the real
8129
# work. The second script uses 'N' to pair each line-number line
8130
# with the numbered line, and appends trailing '-' during
8131
# substitution so that $LINENO is not a special case at line end.
8132
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8133
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8134
sed '=' <$as_myself |
8139
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8142
s,^['$as_cr_digits']*\n,,
8144
chmod +x $as_me.lineno ||
8145
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8146
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8147
{ (exit 1); exit 1; }; }
8149
# Don't try to exec as it changes $[0], causing all sort of problems
8150
# (the dirname of $[0] is not the place where we might find the
8151
# original and so on. Autoconf is especially sensible to this).
8153
# Exit status is that of the last command.
8158
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8159
*c*,-n*) ECHO_N= ECHO_C='
8161
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8162
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8165
if expr a : '\(a\)' >/dev/null 2>&1; then
8171
rm -f conf$$ conf$$.exe conf$$.file
8173
if ln -s conf$$.file conf$$ 2>/dev/null; then
8174
# We could just check for DJGPP; but this test a) works b) is more generic
8175
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8176
if test -f conf$$.exe; then
8177
# Don't use ln at all; we don't have any links
8182
elif ln conf$$.file conf$$ 2>/dev/null; then
8187
rm -f conf$$ conf$$.exe conf$$.file
8189
if mkdir -p . 2>/dev/null; then
8192
test -d ./-p && rmdir ./-p
8196
as_executable_p="test -f"
8198
# Sed expression to map a string onto a valid CPP name.
8199
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8201
# Sed expression to map a string onto a valid variable name.
8202
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8206
# We need space, tab and new line, in precisely that order.
8216
# Open the log real soon, to keep \$[0] and so on meaningful, and to
8217
# report actual input values of CONFIG_FILES etc. instead of their
8218
# values after options handling. Logging --version etc. is OK.
8222
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8223
## Running $as_me. ##
8228
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
8229
generated by GNU Autoconf 2.59. Invocation command line was
8231
CONFIG_FILES = $CONFIG_FILES
8232
CONFIG_HEADERS = $CONFIG_HEADERS
8233
CONFIG_LINKS = $CONFIG_LINKS
8234
CONFIG_COMMANDS = $CONFIG_COMMANDS
8238
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8242
# Files that config.status was made for.
8243
if test -n "$ac_config_files"; then
8244
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8247
if test -n "$ac_config_headers"; then
8248
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8251
if test -n "$ac_config_links"; then
8252
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8255
if test -n "$ac_config_commands"; then
8256
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8259
cat >>$CONFIG_STATUS <<\_ACEOF
8262
\`$as_me' instantiates files from templates according to the
8263
current configuration.
8265
Usage: $0 [OPTIONS] [FILE]...
8267
-h, --help print this help, then exit
8268
-V, --version print version number, then exit
8269
-q, --quiet do not print progress messages
8270
-d, --debug don't remove temporary files
8271
--recheck update $as_me by reconfiguring in the same conditions
8272
--file=FILE[:TEMPLATE]
8273
instantiate the configuration file FILE
8275
Configuration files:
8278
Report bugs to <bug-autoconf@gnu.org>."
8281
cat >>$CONFIG_STATUS <<_ACEOF
8283
Kerberos 5 config.status 1.6.4-beta1
8284
configured by $0, generated by GNU Autoconf 2.59,
8285
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8287
Copyright (C) 2003 Free Software Foundation, Inc.
8288
This config.status script is free software; the Free Software Foundation
8289
gives unlimited permission to copy, distribute and modify it."
8294
cat >>$CONFIG_STATUS <<\_ACEOF
8295
# If no file are specified by the user, then we need to provide default
8296
# value. By we need to know if files were specified by the user.
8302
ac_option=`expr "x$1" : 'x\([^=]*\)='`
8303
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8311
*) # This is not an option, so the user has probably given explicit
8314
ac_need_defaults=false;;
8318
# Handling of the options.
8320
cat >>$CONFIG_STATUS <<\_ACEOF
8321
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8323
--version | --vers* | -V )
8324
echo "$ac_cs_version"; exit 0 ;;
8326
# Conflict between --help and --header
8327
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
8328
Try \`$0 --help' for more information." >&5
8329
echo "$as_me: error: ambiguous option: $1
8330
Try \`$0 --help' for more information." >&2;}
8331
{ (exit 1); exit 1; }; };;
8332
--help | --hel | -h )
8333
echo "$ac_cs_usage"; exit 0 ;;
8334
--debug | --d* | -d )
8336
--file | --fil | --fi | --f )
8338
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8339
ac_need_defaults=false;;
8340
--header | --heade | --head | --hea )
8342
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8343
ac_need_defaults=false;;
8344
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
8345
| -silent | --silent | --silen | --sile | --sil | --si | --s)
8349
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8350
Try \`$0 --help' for more information." >&5
8351
echo "$as_me: error: unrecognized option: $1
8352
Try \`$0 --help' for more information." >&2;}
8353
{ (exit 1); exit 1; }; } ;;
8355
*) ac_config_targets="$ac_config_targets $1" ;;
8361
ac_configure_extra_args=
8363
if $ac_cs_silent; then
8365
ac_configure_extra_args="$ac_configure_extra_args --silent"
8369
cat >>$CONFIG_STATUS <<_ACEOF
8370
if \$ac_cs_recheck; then
8371
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8372
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8381
cat >>$CONFIG_STATUS <<\_ACEOF
8382
for ac_config_target in $ac_config_targets
8384
case "$ac_config_target" in
8385
# Handling of arguments.
8386
"./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in" ;;
8387
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8388
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8389
{ (exit 1); exit 1; }; };;
8393
# If the user did not use the arguments to specify the items to instantiate,
8394
# then the envvar interface is used. Set only those that are not.
8395
# We use the long form for the default assignment because of an extremely
8396
# bizarre bug on SunOS 4.1.3.
8397
if $ac_need_defaults; then
8398
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8401
# Have a temporary directory for convenience. Make it in the build tree
8402
# simply because there is no reason to put it here, and in addition,
8403
# creating and moving files from /tmp can sometimes cause problems.
8404
# Create a temporary directory, and hook for its removal unless debugging.
8407
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8408
trap '{ (exit 1); exit 1; }' 1 2 13 15
8411
# Create a (secure) tmp directory for tmp files.
8414
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8415
test -n "$tmp" && test -d "$tmp"
8418
tmp=./confstat$$-$RANDOM
8419
(umask 077 && mkdir $tmp)
8422
echo "$me: cannot create a temporary directory in ." >&2
8423
{ (exit 1); exit 1; }
8428
cat >>$CONFIG_STATUS <<_ACEOF
8431
# CONFIG_FILES section.
8434
# No need to generate the scripts if there are no CONFIG_FILES.
8435
# This happens for instance when ./config.status config.h
8436
if test -n "\$CONFIG_FILES"; then
8437
# Protect against being on the right side of a sed subst in config.status.
8438
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8439
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8440
s,@SHELL@,$SHELL,;t t
8441
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8442
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8443
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8444
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8445
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8446
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8447
s,@exec_prefix@,$exec_prefix,;t t
8448
s,@prefix@,$prefix,;t t
8449
s,@program_transform_name@,$program_transform_name,;t t
8450
s,@bindir@,$bindir,;t t
8451
s,@sbindir@,$sbindir,;t t
8452
s,@libexecdir@,$libexecdir,;t t
8453
s,@datadir@,$datadir,;t t
8454
s,@sysconfdir@,$sysconfdir,;t t
8455
s,@sharedstatedir@,$sharedstatedir,;t t
8456
s,@localstatedir@,$localstatedir,;t t
8457
s,@libdir@,$libdir,;t t
8458
s,@includedir@,$includedir,;t t
8459
s,@oldincludedir@,$oldincludedir,;t t
8460
s,@infodir@,$infodir,;t t
8461
s,@mandir@,$mandir,;t t
8462
s,@build_alias@,$build_alias,;t t
8463
s,@host_alias@,$host_alias,;t t
8464
s,@target_alias@,$target_alias,;t t
8466
s,@ECHO_C@,$ECHO_C,;t t
8467
s,@ECHO_N@,$ECHO_N,;t t
8468
s,@ECHO_T@,$ECHO_T,;t t
8470
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
8472
s,@CFLAGS@,$CFLAGS,;t t
8473
s,@LDFLAGS@,$LDFLAGS,;t t
8474
s,@CPPFLAGS@,$CPPFLAGS,;t t
8475
s,@ac_ct_CC@,$ac_ct_CC,;t t
8476
s,@EXEEXT@,$EXEEXT,;t t
8477
s,@OBJEXT@,$OBJEXT,;t t
8478
s,@HAVE_GCC@,$HAVE_GCC,;t t
8481
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
8482
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
8483
s,@KRB4_LIB@,$KRB4_LIB,;t t
8484
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
8485
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
8486
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
8487
s,@DES425_LIB@,$DES425_LIB,;t t
8488
s,@compile_et@,$compile_et,;t t
8489
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
8490
s,@SS_LIB@,$SS_LIB,;t t
8491
s,@SS_VERSION@,$SS_VERSION,;t t
8492
s,@DB_HEADER@,$DB_HEADER,;t t
8493
s,@DB_LIB@,$DB_LIB,;t t
8494
s,@DB_VERSION@,$DB_VERSION,;t t
8495
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
8496
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
8497
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
8498
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
8499
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8500
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8501
s,@MAINT@,$MAINT,;t t
8502
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
8503
s,@subdirs@,$subdirs,;t t
8504
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
8505
s,@build@,$build,;t t
8506
s,@build_cpu@,$build_cpu,;t t
8507
s,@build_vendor@,$build_vendor,;t t
8508
s,@build_os@,$build_os,;t t
8510
s,@host_cpu@,$host_cpu,;t t
8511
s,@host_vendor@,$host_vendor,;t t
8512
s,@host_os@,$host_os,;t t
8513
s,@krb5_cv_host@,$krb5_cv_host,;t t
8514
s,@acx_pthread_config@,$acx_pthread_config,;t t
8515
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
8516
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
8517
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
8518
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
8519
s,@DL_LIB@,$DL_LIB,;t t
8520
s,@EGREP@,$EGREP,;t t
8522
s,@LEXLIB@,$LEXLIB,;t t
8523
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8527
s,@RANLIB@,$RANLIB,;t t
8528
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8529
s,@ARCHIVE@,$ARCHIVE,;t t
8530
s,@ARADD@,$ARADD,;t t
8531
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8532
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8533
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8536
s,@LIBLIST@,$LIBLIST,;t t
8537
s,@LIBLINKS@,$LIBLINKS,;t t
8538
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
8539
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
8540
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
8541
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
8542
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
8543
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
8544
s,@STLIBEXT@,$STLIBEXT,;t t
8545
s,@SHLIBEXT@,$SHLIBEXT,;t t
8546
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
8547
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
8548
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
8549
s,@PFLIBEXT@,$PFLIBEXT,;t t
8550
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
8551
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
8552
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
8553
s,@OBJLISTS@,$OBJLISTS,;t t
8554
s,@STOBJEXT@,$STOBJEXT,;t t
8555
s,@SHOBJEXT@,$SHOBJEXT,;t t
8556
s,@PFOBJEXT@,$PFOBJEXT,;t t
8557
s,@PICFLAGS@,$PICFLAGS,;t t
8558
s,@PROFFLAGS@,$PROFFLAGS,;t t
8559
s,@LIBOBJS@,$LIBOBJS,;t t
8560
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8561
/@lib_frag@/r $lib_frag
8563
/@libobj_frag@/r $libobj_frag
8564
s,@libobj_frag@,,;t t
8565
/@libnover_frag@/r $libnover_frag
8566
s,@libnover_frag@,,;t t
8571
cat >>$CONFIG_STATUS <<\_ACEOF
8572
# Split the substitutions into bite-sized pieces for seds with
8573
# small command number limits, like on Digital OSF/1 and HP-UX.
8575
ac_sed_frag=1 # Number of current file.
8576
ac_beg=1 # First line for current file.
8577
ac_end=$ac_max_sed_lines # Line after last line for current file.
8580
while $ac_more_lines; do
8581
if test $ac_beg -gt 1; then
8582
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8584
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8586
if test ! -s $tmp/subs.frag; then
8589
# The purpose of the label and of the branching condition is to
8590
# speed up the sed processing (if there are no `@' at all, there
8591
# is no need to browse any of the substitutions).
8592
# These are the two extra sed commands mentioned above.
8594
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8595
if test -z "$ac_sed_cmds"; then
8596
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8598
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8600
ac_sed_frag=`expr $ac_sed_frag + 1`
8602
ac_end=`expr $ac_end + $ac_max_sed_lines`
8605
if test -z "$ac_sed_cmds"; then
8608
fi # test -n "$CONFIG_FILES"
8611
cat >>$CONFIG_STATUS <<\_ACEOF
8612
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8613
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8615
- | *:- | *:-:* ) # input from stdin
8617
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8618
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8619
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8620
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8621
* ) ac_file_in=$ac_file.in ;;
8624
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8625
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8626
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8627
X"$ac_file" : 'X\(//\)[^/]' \| \
8628
X"$ac_file" : 'X\(//\)$' \| \
8629
X"$ac_file" : 'X\(/\)' \| \
8630
. : '\(.\)' 2>/dev/null ||
8632
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8633
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8634
/^X\(\/\/\)$/{ s//\1/; q; }
8635
/^X\(\/\).*/{ s//\1/; q; }
8637
{ if $as_mkdir_p; then
8642
while test ! -d "$as_dir"; do
8643
as_dirs="$as_dir $as_dirs"
8644
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8645
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8646
X"$as_dir" : 'X\(//\)[^/]' \| \
8647
X"$as_dir" : 'X\(//\)$' \| \
8648
X"$as_dir" : 'X\(/\)' \| \
8649
. : '\(.\)' 2>/dev/null ||
8651
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8652
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8653
/^X\(\/\/\)$/{ s//\1/; q; }
8654
/^X\(\/\).*/{ s//\1/; q; }
8657
test ! -n "$as_dirs" || mkdir $as_dirs
8658
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8659
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8660
{ (exit 1); exit 1; }; }; }
8664
if test "$ac_dir" != .; then
8665
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8666
# A "../" for each directory in $ac_dir_suffix.
8667
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8669
ac_dir_suffix= ac_top_builddir=
8673
.) # No --srcdir option. We are building in place.
8675
if test -z "$ac_top_builddir"; then
8678
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8680
[\\/]* | ?:[\\/]* ) # Absolute path.
8681
ac_srcdir=$srcdir$ac_dir_suffix;
8682
ac_top_srcdir=$srcdir ;;
8684
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8685
ac_top_srcdir=$ac_top_builddir$srcdir ;;
8688
# Do not use `cd foo && pwd` to compute absolute paths, because
8689
# the directories may not exist.
8691
.) ac_abs_builddir="$ac_dir";;
8694
.) ac_abs_builddir=`pwd`;;
8695
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8696
*) ac_abs_builddir=`pwd`/"$ac_dir";;
8699
case $ac_abs_builddir in
8700
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8702
case ${ac_top_builddir}. in
8703
.) ac_abs_top_builddir=$ac_abs_builddir;;
8704
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8705
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8708
case $ac_abs_builddir in
8709
.) ac_abs_srcdir=$ac_srcdir;;
8712
.) ac_abs_srcdir=$ac_abs_builddir;;
8713
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8714
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8717
case $ac_abs_builddir in
8718
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8720
case $ac_top_srcdir in
8721
.) ac_abs_top_srcdir=$ac_abs_builddir;;
8722
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8723
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8729
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8730
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8733
if test x"$ac_file" != x-; then
8734
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8735
echo "$as_me: creating $ac_file" >&6;}
8738
# Let's still pretend it is `configure' which instantiates (i.e., don't
8739
# use $as_me), people would be surprised to read:
8740
# /* config.h. Generated by config.status. */
8741
if test x"$ac_file" = x-; then
8744
configure_input="$ac_file. "
8746
configure_input=$configure_input"Generated from `echo $ac_file_in |
8747
sed 's,.*/,,'` by configure."
8749
# First look for the input files in the build tree, otherwise in the
8751
ac_file_inputs=`IFS=:
8752
for f in $ac_file_in; do
8754
-) echo $tmp/stdin ;;
8756
# Absolute (can't be DOS-style, as IFS=:)
8757
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8758
echo "$as_me: error: cannot find input file: $f" >&2;}
8759
{ (exit 1); exit 1; }; }
8762
if test -f "$f"; then
8765
elif test -f "$srcdir/$f"; then
8770
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8771
echo "$as_me: error: cannot find input file: $f" >&2;}
8772
{ (exit 1); exit 1; }; }
8775
done` || { (exit 1); exit 1; }
8777
cat >>$CONFIG_STATUS <<_ACEOF
8781
cat >>$CONFIG_STATUS <<\_ACEOF
8783
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8784
s,@configure_input@,$configure_input,;t t
8785
s,@srcdir@,$ac_srcdir,;t t
8786
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8787
s,@top_srcdir@,$ac_top_srcdir,;t t
8788
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8789
s,@builddir@,$ac_builddir,;t t
8790
s,@abs_builddir@,$ac_abs_builddir,;t t
8791
s,@top_builddir@,$ac_top_builddir,;t t
8792
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8793
s,@INSTALL@,$ac_INSTALL,;t t
8794
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8796
if test x"$ac_file" != x-; then
8797
mv $tmp/out $ac_file
8806
cat >>$CONFIG_STATUS <<\_ACEOF
8808
{ (exit 0); exit 0; }
8810
chmod +x $CONFIG_STATUS
8811
ac_clean_files=$ac_clean_files_save
8814
# configure is writing to config.log, and then calls config.status.
8815
# config.status does its own redirection, appending to config.log.
8816
# Unfortunately, on DOS this fails, as config.log is still kept open
8817
# by configure, so config.status won't be able to write to it; its
8818
# output is simply discarded. So we exec the FD to /dev/null,
8819
# effectively closing config.log, so it can be properly (re)opened and
8820
# appended to by config.status. When coming back to configure, we
8821
# need to make the FD available again.
8822
if test "$no_create" != yes; then
8824
ac_config_status_args=
8825
test "$silent" = yes &&
8826
ac_config_status_args="$ac_config_status_args --quiet"
8828
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8830
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8831
# would make configure fail if this is the last instruction.
8832
$ac_cs_success || { (exit 1); exit 1; }