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="daemon.c"
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 LIBOBJS 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 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"
5974
for ac_func in daemon
5976
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5977
echo "$as_me:$LINENO: checking for $ac_func" >&5
5978
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5979
if eval "test \"\${$as_ac_var+set}\" = set"; then
5980
echo $ECHO_N "(cached) $ECHO_C" >&6
5982
cat >conftest.$ac_ext <<_ACEOF
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h. */
5988
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5989
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5990
#define $ac_func innocuous_$ac_func
5992
/* System header to define __stub macros and hopefully few prototypes,
5993
which can conflict with char $ac_func (); below.
5994
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995
<limits.h> exists even on freestanding compilers. */
5998
# include <limits.h>
6000
# include <assert.h>
6005
/* Override any gcc2 internal prototype to avoid an error. */
6010
/* We use char because int might match the return type of a gcc2
6011
builtin and then its argument prototype would still apply. */
6013
/* The GNU C library defines this for functions which it implements
6014
to always fail with ENOSYS. Some functions are actually named
6015
something starting with __ and the normal name is an alias. */
6016
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6019
char (*f) () = $ac_func;
6028
return f != $ac_func;
6033
rm -f conftest.$ac_objext conftest$ac_exeext
6034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035
(eval $ac_link) 2>conftest.er1
6037
grep -v '^ *+' conftest.er1 >conftest.err
6039
cat conftest.err >&5
6040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041
(exit $ac_status); } &&
6042
{ ac_try='test -z "$ac_c_werror_flag"
6043
|| test ! -s conftest.err'
6044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048
(exit $ac_status); }; } &&
6049
{ ac_try='test -s conftest$ac_exeext'
6050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
(exit $ac_status); }; }; then
6055
eval "$as_ac_var=yes"
6057
echo "$as_me: failed program was:" >&5
6058
sed 's/^/| /' conftest.$ac_ext >&5
6060
eval "$as_ac_var=no"
6062
rm -f conftest.err conftest.$ac_objext \
6063
conftest$ac_exeext conftest.$ac_ext
6065
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6066
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6067
if test `eval echo '${'$as_ac_var'}'` = yes; then
6068
cat >>confdefs.h <<_ACEOF
6069
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6074
"$ac_func.$ac_objext" | \
6075
*" $ac_func.$ac_objext" | \
6076
"$ac_func.$ac_objext "* | \
6077
*" $ac_func.$ac_objext "* ) ;;
6078
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6085
krb5_force_static=yes
6087
# Check whether to build static libraries.
6088
# Check whether --enable-static or --disable-static was given.
6089
if test "${enable_static+set}" = set; then
6090
enableval="$enable_static"
6093
enable_static=$default_static
6096
if test "$enable_static" = yes; then
6097
{ { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6098
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6099
{ (exit 1); exit 1; }; }
6102
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6103
{ echo "$as_me:$LINENO: disabling static libraries" >&5
6104
echo "$as_me: disabling static libraries" >&6;}
6109
LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6110
LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6112
LIBINSTLIST=install-static
6114
# CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6117
# Check whether to build shared libraries.
6118
# Check whether --enable-shared or --disable-shared was given.
6119
if test "${enable_shared+set}" = set; then
6120
enableval="$enable_shared"
6123
enable_shared=$default_shared
6126
if test "$enable_shared" != yes; then
6127
{ { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6128
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6129
{ (exit 1); exit 1; }; }
6132
if test "$enable_shared" = yes; then
6135
{ echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6136
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6138
CC_LINK="$CC_LINK_STATIC"
6141
# set this now because some logic below may reset SHLIBEXT
6143
if test "$krb5_force_static" = "yes"; then
6144
echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6145
echo "${ECHO_T}Forcing static libraries." >&6
6146
# avoid duplicate rules generation for AIX and such
6147
SHLIBEXT=.so-nobuild
6148
SHLIBVEXT=.so.v-nobuild
6149
SHLIBSEXT=.so.s-nobuild
6151
{ echo "$as_me:$LINENO: enabling shared libraries" >&5
6152
echo "$as_me: enabling shared libraries" >&6;}
6153
# Clear some stuff in case of AIX, etc.
6154
if test "$STLIBEXT" = "$SHLIBEXT" ; then
6161
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6162
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6163
case "$SHLIBSEXT" in
6165
LIBINSTLIST="$LIBINSTLIST install-shared"
6168
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6169
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6170
LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6173
OBJLISTS="$OBJLISTS OBJS.SH"
6175
CC_LINK="$CC_LINK_SHARED"
6180
CC_LINK="$CC_LINK_STATIC"
6181
SHLIBEXT=.so-nobuild
6182
SHLIBVEXT=.so.v-nobuild
6183
SHLIBSEXT=.so.s-nobuild
6186
if test "$build_dynobj" = yes; then
6187
OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6188
OBJLISTS="$OBJLISTS OBJS.SH"
6191
if test -z "$LIBLIST"; then
6192
{ { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6193
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
6194
{ (exit 1); exit 1; }; }
6197
# Check whether to build profiled libraries.
6198
# Check whether --enable-profiled or --disable-profiled was given.
6199
if test "${enable_profiled+set}" = set; then
6200
enableval="$enable_profiled"
6201
if test "$enableval" = yes; then
6202
{ { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
6203
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6204
{ (exit 1); exit 1; }; }
6209
{ echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6210
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6213
{ echo "$as_me:$LINENO: enabling profiled libraries" >&5
6214
echo "$as_me: enabling profiled libraries" >&6;}
6215
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6216
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6217
OBJLISTS="$OBJLISTS OBJS.PF"
6218
LIBINSTLIST="$LIBINSTLIST install-profiled"
6223
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6224
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6226
if test "$LN_S" = "ln -s"; then
6227
echo "$as_me:$LINENO: result: yes" >&5
6228
echo "${ECHO_T}yes" >&6
6230
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6231
echo "${ECHO_T}no, using $LN_S" >&6
6234
if test -n "$ac_tool_prefix"; then
6235
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6236
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237
echo "$as_me:$LINENO: checking for $ac_word" >&5
6238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239
if test "${ac_cv_prog_RANLIB+set}" = set; then
6240
echo $ECHO_N "(cached) $ECHO_C" >&6
6242
if test -n "$RANLIB"; then
6243
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249
test -z "$as_dir" && as_dir=.
6250
for ac_exec_ext in '' $ac_executable_extensions; do
6251
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6253
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261
RANLIB=$ac_cv_prog_RANLIB
6262
if test -n "$RANLIB"; then
6263
echo "$as_me:$LINENO: result: $RANLIB" >&5
6264
echo "${ECHO_T}$RANLIB" >&6
6266
echo "$as_me:$LINENO: result: no" >&5
6267
echo "${ECHO_T}no" >&6
6271
if test -z "$ac_cv_prog_RANLIB"; then
6272
ac_ct_RANLIB=$RANLIB
6273
# Extract the first word of "ranlib", so it can be a program name with args.
6274
set dummy ranlib; ac_word=$2
6275
echo "$as_me:$LINENO: checking for $ac_word" >&5
6276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6278
echo $ECHO_N "(cached) $ECHO_C" >&6
6280
if test -n "$ac_ct_RANLIB"; then
6281
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287
test -z "$as_dir" && as_dir=.
6288
for ac_exec_ext in '' $ac_executable_extensions; do
6289
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290
ac_cv_prog_ac_ct_RANLIB="ranlib"
6291
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6300
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6301
if test -n "$ac_ct_RANLIB"; then
6302
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6303
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6305
echo "$as_me:$LINENO: result: no" >&5
6306
echo "${ECHO_T}no" >&6
6309
RANLIB=$ac_ct_RANLIB
6311
RANLIB="$ac_cv_prog_RANLIB"
6314
# Extract the first word of "ar", so it can be a program name with args.
6315
set dummy ar; ac_word=$2
6316
echo "$as_me:$LINENO: checking for $ac_word" >&5
6317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6318
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
6319
echo $ECHO_N "(cached) $ECHO_C" >&6
6321
if test -n "$ARCHIVE"; then
6322
ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
6324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328
test -z "$as_dir" && as_dir=.
6329
for ac_exec_ext in '' $ac_executable_extensions; do
6330
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331
ac_cv_prog_ARCHIVE="ar cqv"
6332
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338
test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
6341
ARCHIVE=$ac_cv_prog_ARCHIVE
6342
if test -n "$ARCHIVE"; then
6343
echo "$as_me:$LINENO: result: $ARCHIVE" >&5
6344
echo "${ECHO_T}$ARCHIVE" >&6
6346
echo "$as_me:$LINENO: result: no" >&5
6347
echo "${ECHO_T}no" >&6
6350
# Extract the first word of "ar", so it can be a program name with args.
6351
set dummy ar; ac_word=$2
6352
echo "$as_me:$LINENO: checking for $ac_word" >&5
6353
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354
if test "${ac_cv_prog_ARADD+set}" = set; then
6355
echo $ECHO_N "(cached) $ECHO_C" >&6
6357
if test -n "$ARADD"; then
6358
ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
6360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364
test -z "$as_dir" && as_dir=.
6365
for ac_exec_ext in '' $ac_executable_extensions; do
6366
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367
ac_cv_prog_ARADD="ar cruv"
6368
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374
test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
6377
ARADD=$ac_cv_prog_ARADD
6378
if test -n "$ARADD"; then
6379
echo "$as_me:$LINENO: result: $ARADD" >&5
6380
echo "${ECHO_T}$ARADD" >&6
6382
echo "$as_me:$LINENO: result: no" >&5
6383
echo "${ECHO_T}no" >&6
6386
# Find a good install program. We prefer a C program (faster),
6387
# so one script is as good as another. But avoid the broken or
6388
# incompatible versions:
6389
# SysV /etc/install, /usr/sbin/install
6390
# SunOS /usr/etc/install
6391
# IRIX /sbin/install
6393
# AmigaOS /C/install, which installs bootblocks on floppy discs
6394
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6395
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6396
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6397
# OS/2's system install, which has a completely different semantic
6398
# ./install, which can be erroneously created by make from ./install.sh.
6399
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6400
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6401
if test -z "$INSTALL"; then
6402
if test "${ac_cv_path_install+set}" = set; then
6403
echo $ECHO_N "(cached) $ECHO_C" >&6
6405
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409
test -z "$as_dir" && as_dir=.
6410
# Account for people who put trailing slashes in PATH elements.
6412
./ | .// | /cC/* | \
6413
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6414
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6417
# OSF1 and SCO ODT 3.0 have their own names for install.
6418
# Don't use installbsd from OSF since it installs stuff as root
6420
for ac_prog in ginstall scoinst install; do
6421
for ac_exec_ext in '' $ac_executable_extensions; do
6422
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6423
if test $ac_prog = install &&
6424
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6425
# AIX install. It has an incompatible calling convention.
6427
elif test $ac_prog = install &&
6428
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6429
# program-specific install script used by HP pwplus--don't use.
6432
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6444
if test "${ac_cv_path_install+set}" = set; then
6445
INSTALL=$ac_cv_path_install
6447
# As a last resort, use the slow shell script. We don't cache a
6448
# path for INSTALL within a source directory, because that will
6449
# break other packages using the cache if that directory is
6450
# removed, or if the path is relative.
6451
INSTALL=$ac_install_sh
6454
echo "$as_me:$LINENO: result: $INSTALL" >&5
6455
echo "${ECHO_T}$INSTALL" >&6
6457
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6458
# It thinks the first close brace ends the variable substitution.
6459
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6461
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6463
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6465
# Extract the first word of "ar", so it can be a program name with args.
6466
set dummy ar; ac_word=$2
6467
echo "$as_me:$LINENO: checking for $ac_word" >&5
6468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469
if test "${ac_cv_prog_AR+set}" = set; then
6470
echo $ECHO_N "(cached) $ECHO_C" >&6
6472
if test -n "$AR"; then
6473
ac_cv_prog_AR="$AR" # Let the user override the test.
6475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479
test -z "$as_dir" && as_dir=.
6480
for ac_exec_ext in '' $ac_executable_extensions; do
6481
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
6493
if test -n "$AR"; then
6494
echo "$as_me:$LINENO: result: $AR" >&5
6495
echo "${ECHO_T}$AR" >&6
6497
echo "$as_me:$LINENO: result: no" >&5
6498
echo "${ECHO_T}no" >&6
6501
# Extract the first word of "perl", so it can be a program name with args.
6502
set dummy perl; ac_word=$2
6503
echo "$as_me:$LINENO: checking for $ac_word" >&5
6504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505
if test "${ac_cv_prog_PERL+set}" = set; then
6506
echo $ECHO_N "(cached) $ECHO_C" >&6
6508
if test -n "$PERL"; then
6509
ac_cv_prog_PERL="$PERL" # Let the user override the test.
6511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515
test -z "$as_dir" && as_dir=.
6516
for ac_exec_ext in '' $ac_executable_extensions; do
6517
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518
ac_cv_prog_PERL="perl"
6519
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
6528
PERL=$ac_cv_prog_PERL
6529
if test -n "$PERL"; then
6530
echo "$as_me:$LINENO: result: $PERL" >&5
6531
echo "${ECHO_T}$PERL" >&6
6533
echo "$as_me:$LINENO: result: no" >&5
6534
echo "${ECHO_T}no" >&6
6537
if test "$ac_cv_prog_PERL" = "false"; then
6538
{ { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
6539
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
6540
{ (exit 1); exit 1; }; }
6560
# null out SHLIB_EXPFLAGS because we lack any dependencies
6562
# If we're only building static libraries, they're for build-time use only,
6572
ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in"
6574
cat >confcache <<\_ACEOF
6575
# This file is a shell script that caches the results of configure
6576
# tests run on this system so they can be shared between configure
6577
# scripts and configure runs, see configure's option --config-cache.
6578
# It is not useful on other systems. If it contains results you don't
6579
# want to keep, you may remove or edit it.
6581
# config.status only pays attention to the cache file if you give it
6582
# the --recheck option to rerun configure.
6584
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6585
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6590
# The following way of writing the cache mishandles newlines in values,
6591
# but we know of no workaround that is simple, portable, and efficient.
6592
# So, don't put newlines in cache variables' values.
6593
# Ultrix sh set writes to stderr and can't be redirected directly,
6594
# and sets the high bit in the cache file unless we assign to the vars.
6597
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6599
# `set' does not quote correctly, so add quotes (double-quote
6600
# substitution turns \\\\ into \\, and sed turns \\ into \).
6603
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6606
# `set' quotes correctly as required by POSIX, so do not add quotes.
6608
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6615
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6617
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6619
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6620
if test -w $cache_file; then
6621
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6622
cat confcache >$cache_file
6624
echo "not updating unwritable cache $cache_file"
6629
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6630
# Let make expand exec_prefix.
6631
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6633
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6634
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6635
# trailing colons and then remove the whole line if VPATH becomes empty
6636
# (actually we leave an empty line to preserve line numbers).
6637
if test "x$srcdir" = x.; then
6638
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6639
s/:*\$(srcdir):*/:/;
6640
s/:*\${srcdir}:*/:/;
6642
s/^\([^=]*=[ ]*\):*/\1/;
6648
# Transform confdefs.h into DEFS.
6649
# Protect against shell expansion while executing Makefile rules.
6650
# Protect against Makefile macro expansion.
6652
# If the first sed substitution is executed (which looks for macros that
6653
# take arguments), then we branch to the quote section. Otherwise,
6654
# look for a macro that doesn't take arguments.
6655
cat >confdef2opt.sed <<\_ACEOF
6658
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6660
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6664
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6670
# We use echo to avoid assuming a particular line-breaking character.
6671
# The extra dot is to prevent the shell from consuming trailing
6672
# line-breaks from the sub-command output. A line-break within
6673
# single-quotes doesn't work because, if this script is created in a
6674
# platform that uses two characters for line-breaks (e.g., DOS), tr
6676
ac_LF_and_DOT=`echo; echo .`
6677
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6678
rm -f confdef2opt.sed
6683
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6684
# 1. Remove the extension, and $U if already installed.
6685
ac_i=`echo "$ac_i" |
6686
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6688
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6689
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6693
LTLIBOBJS=$ac_ltlibobjs
6697
: ${CONFIG_STATUS=./config.status}
6698
ac_clean_files_save=$ac_clean_files
6699
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6700
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6701
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6702
cat >$CONFIG_STATUS <<_ACEOF
6704
# Generated by $as_me.
6705
# Run this file to recreate the current configuration.
6706
# Compiler output produced by configure, useful for debugging
6707
# configure, is in config.log if it exists.
6712
SHELL=\${CONFIG_SHELL-$SHELL}
6715
cat >>$CONFIG_STATUS <<\_ACEOF
6716
## --------------------- ##
6717
## M4sh Initialization. ##
6718
## --------------------- ##
6720
# Be Bourne compatible
6721
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6724
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6725
# is contrary to our usage. Disable this feature.
6726
alias -g '${1+"$@"}'='"$@"'
6727
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6730
DUALCASE=1; export DUALCASE # for MKS sh
6732
# Support unset when possible.
6733
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6740
# Work around bugs in pre-3.0 UWIN ksh.
6741
$as_unset ENV MAIL MAILPATH
6748
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6749
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6750
LC_TELEPHONE LC_TIME
6752
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6753
eval $as_var=C; export $as_var
6759
# Required to use basename.
6760
if expr a : '\(a\)' >/dev/null 2>&1; then
6766
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6767
as_basename=basename
6773
# Name of the executable.
6774
as_me=`$as_basename "$0" ||
6775
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6776
X"$0" : 'X\(//\)$' \| \
6777
X"$0" : 'X\(/\)$' \| \
6778
. : '\(.\)' 2>/dev/null ||
6780
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6781
/^X\/\(\/\/\)$/{ s//\1/; q; }
6782
/^X\/\(\/\).*/{ s//\1/; q; }
6786
# PATH needs CR, and LINENO needs CR and PATH.
6787
# Avoid depending upon Character Ranges.
6788
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6789
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6790
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6791
as_cr_digits='0123456789'
6792
as_cr_alnum=$as_cr_Letters$as_cr_digits
6794
# The user is always right.
6795
if test "${PATH_SEPARATOR+set}" != set; then
6796
echo "#! /bin/sh" >conf$$.sh
6797
echo "exit 0" >>conf$$.sh
6799
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6810
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6811
test "x$as_lineno_1" != "x$as_lineno_2" &&
6812
test "x$as_lineno_3" = "x$as_lineno_2" || {
6813
# Find who we are. Look in the path if we contain no path at all
6816
*[\\/]* ) as_myself=$0 ;;
6817
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821
test -z "$as_dir" && as_dir=.
6822
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6827
# We did not find ourselves, most probably we were run as `sh COMMAND'
6828
# in which case we are not to be found in the path.
6829
if test "x$as_myself" = x; then
6832
if test ! -f "$as_myself"; then
6833
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6834
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6835
{ (exit 1); exit 1; }; }
6837
case $CONFIG_SHELL in
6839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6843
test -z "$as_dir" && as_dir=.
6844
for as_base in sh bash ksh sh5; do
6847
if ("$as_dir/$as_base" -c '
6850
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6851
test "x$as_lineno_1" != "x$as_lineno_2" &&
6852
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6853
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6854
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6855
CONFIG_SHELL=$as_dir/$as_base
6857
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6865
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6866
# uniformly replaced by the line number. The first 'sed' inserts a
6867
# line-number line before each line; the second 'sed' does the real
6868
# work. The second script uses 'N' to pair each line-number line
6869
# with the numbered line, and appends trailing '-' during
6870
# substitution so that $LINENO is not a special case at line end.
6871
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6872
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6873
sed '=' <$as_myself |
6878
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6881
s,^['$as_cr_digits']*\n,,
6883
chmod +x $as_me.lineno ||
6884
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6885
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6886
{ (exit 1); exit 1; }; }
6888
# Don't try to exec as it changes $[0], causing all sort of problems
6889
# (the dirname of $[0] is not the place where we might find the
6890
# original and so on. Autoconf is especially sensible to this).
6892
# Exit status is that of the last command.
6897
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6898
*c*,-n*) ECHO_N= ECHO_C='
6900
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6901
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6904
if expr a : '\(a\)' >/dev/null 2>&1; then
6910
rm -f conf$$ conf$$.exe conf$$.file
6912
if ln -s conf$$.file conf$$ 2>/dev/null; then
6913
# We could just check for DJGPP; but this test a) works b) is more generic
6914
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6915
if test -f conf$$.exe; then
6916
# Don't use ln at all; we don't have any links
6921
elif ln conf$$.file conf$$ 2>/dev/null; then
6926
rm -f conf$$ conf$$.exe conf$$.file
6928
if mkdir -p . 2>/dev/null; then
6931
test -d ./-p && rmdir ./-p
6935
as_executable_p="test -f"
6937
# Sed expression to map a string onto a valid CPP name.
6938
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6940
# Sed expression to map a string onto a valid variable name.
6941
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6945
# We need space, tab and new line, in precisely that order.
6955
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6956
# report actual input values of CONFIG_FILES etc. instead of their
6957
# values after options handling. Logging --version etc. is OK.
6961
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6962
## Running $as_me. ##
6967
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
6968
generated by GNU Autoconf 2.59. Invocation command line was
6970
CONFIG_FILES = $CONFIG_FILES
6971
CONFIG_HEADERS = $CONFIG_HEADERS
6972
CONFIG_LINKS = $CONFIG_LINKS
6973
CONFIG_COMMANDS = $CONFIG_COMMANDS
6977
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6981
# Files that config.status was made for.
6982
if test -n "$ac_config_files"; then
6983
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6986
if test -n "$ac_config_headers"; then
6987
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6990
if test -n "$ac_config_links"; then
6991
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6994
if test -n "$ac_config_commands"; then
6995
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6998
cat >>$CONFIG_STATUS <<\_ACEOF
7001
\`$as_me' instantiates files from templates according to the
7002
current configuration.
7004
Usage: $0 [OPTIONS] [FILE]...
7006
-h, --help print this help, then exit
7007
-V, --version print version number, then exit
7008
-q, --quiet do not print progress messages
7009
-d, --debug don't remove temporary files
7010
--recheck update $as_me by reconfiguring in the same conditions
7011
--file=FILE[:TEMPLATE]
7012
instantiate the configuration file FILE
7014
Configuration files:
7017
Report bugs to <bug-autoconf@gnu.org>."
7020
cat >>$CONFIG_STATUS <<_ACEOF
7022
Kerberos 5 config.status 1.6.4-beta1
7023
configured by $0, generated by GNU Autoconf 2.59,
7024
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7026
Copyright (C) 2003 Free Software Foundation, Inc.
7027
This config.status script is free software; the Free Software Foundation
7028
gives unlimited permission to copy, distribute and modify it."
7033
cat >>$CONFIG_STATUS <<\_ACEOF
7034
# If no file are specified by the user, then we need to provide default
7035
# value. By we need to know if files were specified by the user.
7041
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7042
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7050
*) # This is not an option, so the user has probably given explicit
7053
ac_need_defaults=false;;
7057
# Handling of the options.
7059
cat >>$CONFIG_STATUS <<\_ACEOF
7060
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7062
--version | --vers* | -V )
7063
echo "$ac_cs_version"; exit 0 ;;
7065
# Conflict between --help and --header
7066
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7067
Try \`$0 --help' for more information." >&5
7068
echo "$as_me: error: ambiguous option: $1
7069
Try \`$0 --help' for more information." >&2;}
7070
{ (exit 1); exit 1; }; };;
7071
--help | --hel | -h )
7072
echo "$ac_cs_usage"; exit 0 ;;
7073
--debug | --d* | -d )
7075
--file | --fil | --fi | --f )
7077
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7078
ac_need_defaults=false;;
7079
--header | --heade | --head | --hea )
7081
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7082
ac_need_defaults=false;;
7083
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7084
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7088
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7089
Try \`$0 --help' for more information." >&5
7090
echo "$as_me: error: unrecognized option: $1
7091
Try \`$0 --help' for more information." >&2;}
7092
{ (exit 1); exit 1; }; } ;;
7094
*) ac_config_targets="$ac_config_targets $1" ;;
7100
ac_configure_extra_args=
7102
if $ac_cs_silent; then
7104
ac_configure_extra_args="$ac_configure_extra_args --silent"
7108
cat >>$CONFIG_STATUS <<_ACEOF
7109
if \$ac_cs_recheck; then
7110
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7111
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7120
cat >>$CONFIG_STATUS <<\_ACEOF
7121
for ac_config_target in $ac_config_targets
7123
case "$ac_config_target" in
7124
# Handling of arguments.
7125
"./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in" ;;
7126
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7127
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7128
{ (exit 1); exit 1; }; };;
7132
# If the user did not use the arguments to specify the items to instantiate,
7133
# then the envvar interface is used. Set only those that are not.
7134
# We use the long form for the default assignment because of an extremely
7135
# bizarre bug on SunOS 4.1.3.
7136
if $ac_need_defaults; then
7137
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7140
# Have a temporary directory for convenience. Make it in the build tree
7141
# simply because there is no reason to put it here, and in addition,
7142
# creating and moving files from /tmp can sometimes cause problems.
7143
# Create a temporary directory, and hook for its removal unless debugging.
7146
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7147
trap '{ (exit 1); exit 1; }' 1 2 13 15
7150
# Create a (secure) tmp directory for tmp files.
7153
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7154
test -n "$tmp" && test -d "$tmp"
7157
tmp=./confstat$$-$RANDOM
7158
(umask 077 && mkdir $tmp)
7161
echo "$me: cannot create a temporary directory in ." >&2
7162
{ (exit 1); exit 1; }
7167
cat >>$CONFIG_STATUS <<_ACEOF
7170
# CONFIG_FILES section.
7173
# No need to generate the scripts if there are no CONFIG_FILES.
7174
# This happens for instance when ./config.status config.h
7175
if test -n "\$CONFIG_FILES"; then
7176
# Protect against being on the right side of a sed subst in config.status.
7177
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7178
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7179
s,@SHELL@,$SHELL,;t t
7180
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7181
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7182
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7183
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7184
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7185
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7186
s,@exec_prefix@,$exec_prefix,;t t
7187
s,@prefix@,$prefix,;t t
7188
s,@program_transform_name@,$program_transform_name,;t t
7189
s,@bindir@,$bindir,;t t
7190
s,@sbindir@,$sbindir,;t t
7191
s,@libexecdir@,$libexecdir,;t t
7192
s,@datadir@,$datadir,;t t
7193
s,@sysconfdir@,$sysconfdir,;t t
7194
s,@sharedstatedir@,$sharedstatedir,;t t
7195
s,@localstatedir@,$localstatedir,;t t
7196
s,@libdir@,$libdir,;t t
7197
s,@includedir@,$includedir,;t t
7198
s,@oldincludedir@,$oldincludedir,;t t
7199
s,@infodir@,$infodir,;t t
7200
s,@mandir@,$mandir,;t t
7201
s,@build_alias@,$build_alias,;t t
7202
s,@host_alias@,$host_alias,;t t
7203
s,@target_alias@,$target_alias,;t t
7205
s,@ECHO_C@,$ECHO_C,;t t
7206
s,@ECHO_N@,$ECHO_N,;t t
7207
s,@ECHO_T@,$ECHO_T,;t t
7209
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
7211
s,@CFLAGS@,$CFLAGS,;t t
7212
s,@LDFLAGS@,$LDFLAGS,;t t
7213
s,@CPPFLAGS@,$CPPFLAGS,;t t
7214
s,@ac_ct_CC@,$ac_ct_CC,;t t
7215
s,@EXEEXT@,$EXEEXT,;t t
7216
s,@OBJEXT@,$OBJEXT,;t t
7217
s,@HAVE_GCC@,$HAVE_GCC,;t t
7220
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
7221
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
7222
s,@KRB4_LIB@,$KRB4_LIB,;t t
7223
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
7224
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
7225
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
7226
s,@DES425_LIB@,$DES425_LIB,;t t
7227
s,@compile_et@,$compile_et,;t t
7228
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
7229
s,@SS_LIB@,$SS_LIB,;t t
7230
s,@SS_VERSION@,$SS_VERSION,;t t
7231
s,@DB_HEADER@,$DB_HEADER,;t t
7232
s,@DB_LIB@,$DB_LIB,;t t
7233
s,@DB_VERSION@,$DB_VERSION,;t t
7234
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
7235
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
7236
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
7237
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
7238
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7239
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7240
s,@MAINT@,$MAINT,;t t
7241
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
7242
s,@subdirs@,$subdirs,;t t
7243
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
7244
s,@build@,$build,;t t
7245
s,@build_cpu@,$build_cpu,;t t
7246
s,@build_vendor@,$build_vendor,;t t
7247
s,@build_os@,$build_os,;t t
7249
s,@host_cpu@,$host_cpu,;t t
7250
s,@host_vendor@,$host_vendor,;t t
7251
s,@host_os@,$host_os,;t t
7252
s,@krb5_cv_host@,$krb5_cv_host,;t t
7253
s,@acx_pthread_config@,$acx_pthread_config,;t t
7254
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
7255
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
7256
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
7257
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
7258
s,@DL_LIB@,$DL_LIB,;t t
7259
s,@EGREP@,$EGREP,;t t
7260
s,@LIBOBJS@,$LIBOBJS,;t t
7262
s,@RANLIB@,$RANLIB,;t t
7263
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7264
s,@ARCHIVE@,$ARCHIVE,;t t
7265
s,@ARADD@,$ARADD,;t t
7266
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7267
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7268
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7271
s,@LIBLIST@,$LIBLIST,;t t
7272
s,@LIBLINKS@,$LIBLINKS,;t t
7273
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
7274
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
7275
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
7276
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
7277
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
7278
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
7279
s,@STLIBEXT@,$STLIBEXT,;t t
7280
s,@SHLIBEXT@,$SHLIBEXT,;t t
7281
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
7282
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
7283
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
7284
s,@PFLIBEXT@,$PFLIBEXT,;t t
7285
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
7286
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
7287
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
7288
s,@OBJLISTS@,$OBJLISTS,;t t
7289
s,@STOBJEXT@,$STOBJEXT,;t t
7290
s,@SHOBJEXT@,$SHOBJEXT,;t t
7291
s,@PFOBJEXT@,$PFOBJEXT,;t t
7292
s,@PICFLAGS@,$PICFLAGS,;t t
7293
s,@PROFFLAGS@,$PROFFLAGS,;t t
7294
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7295
/@lib_frag@/r $lib_frag
7297
/@libobj_frag@/r $libobj_frag
7298
s,@libobj_frag@,,;t t
7299
/@libnover_frag@/r $libnover_frag
7300
s,@libnover_frag@,,;t t
7305
cat >>$CONFIG_STATUS <<\_ACEOF
7306
# Split the substitutions into bite-sized pieces for seds with
7307
# small command number limits, like on Digital OSF/1 and HP-UX.
7309
ac_sed_frag=1 # Number of current file.
7310
ac_beg=1 # First line for current file.
7311
ac_end=$ac_max_sed_lines # Line after last line for current file.
7314
while $ac_more_lines; do
7315
if test $ac_beg -gt 1; then
7316
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7318
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7320
if test ! -s $tmp/subs.frag; then
7323
# The purpose of the label and of the branching condition is to
7324
# speed up the sed processing (if there are no `@' at all, there
7325
# is no need to browse any of the substitutions).
7326
# These are the two extra sed commands mentioned above.
7328
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7329
if test -z "$ac_sed_cmds"; then
7330
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7332
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7334
ac_sed_frag=`expr $ac_sed_frag + 1`
7336
ac_end=`expr $ac_end + $ac_max_sed_lines`
7339
if test -z "$ac_sed_cmds"; then
7342
fi # test -n "$CONFIG_FILES"
7345
cat >>$CONFIG_STATUS <<\_ACEOF
7346
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7347
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7349
- | *:- | *:-:* ) # input from stdin
7351
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7352
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7353
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7354
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7355
* ) ac_file_in=$ac_file.in ;;
7358
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7359
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7360
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7361
X"$ac_file" : 'X\(//\)[^/]' \| \
7362
X"$ac_file" : 'X\(//\)$' \| \
7363
X"$ac_file" : 'X\(/\)' \| \
7364
. : '\(.\)' 2>/dev/null ||
7366
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7367
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7368
/^X\(\/\/\)$/{ s//\1/; q; }
7369
/^X\(\/\).*/{ s//\1/; q; }
7371
{ if $as_mkdir_p; then
7376
while test ! -d "$as_dir"; do
7377
as_dirs="$as_dir $as_dirs"
7378
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7379
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7380
X"$as_dir" : 'X\(//\)[^/]' \| \
7381
X"$as_dir" : 'X\(//\)$' \| \
7382
X"$as_dir" : 'X\(/\)' \| \
7383
. : '\(.\)' 2>/dev/null ||
7385
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7386
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7387
/^X\(\/\/\)$/{ s//\1/; q; }
7388
/^X\(\/\).*/{ s//\1/; q; }
7391
test ! -n "$as_dirs" || mkdir $as_dirs
7392
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7393
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7394
{ (exit 1); exit 1; }; }; }
7398
if test "$ac_dir" != .; then
7399
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7400
# A "../" for each directory in $ac_dir_suffix.
7401
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7403
ac_dir_suffix= ac_top_builddir=
7407
.) # No --srcdir option. We are building in place.
7409
if test -z "$ac_top_builddir"; then
7412
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7414
[\\/]* | ?:[\\/]* ) # Absolute path.
7415
ac_srcdir=$srcdir$ac_dir_suffix;
7416
ac_top_srcdir=$srcdir ;;
7418
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7419
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7422
# Do not use `cd foo && pwd` to compute absolute paths, because
7423
# the directories may not exist.
7425
.) ac_abs_builddir="$ac_dir";;
7428
.) ac_abs_builddir=`pwd`;;
7429
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7430
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7433
case $ac_abs_builddir in
7434
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7436
case ${ac_top_builddir}. in
7437
.) ac_abs_top_builddir=$ac_abs_builddir;;
7438
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7439
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7442
case $ac_abs_builddir in
7443
.) ac_abs_srcdir=$ac_srcdir;;
7446
.) ac_abs_srcdir=$ac_abs_builddir;;
7447
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7448
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7451
case $ac_abs_builddir in
7452
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7454
case $ac_top_srcdir in
7455
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7456
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7457
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7463
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7464
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7467
if test x"$ac_file" != x-; then
7468
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7469
echo "$as_me: creating $ac_file" >&6;}
7472
# Let's still pretend it is `configure' which instantiates (i.e., don't
7473
# use $as_me), people would be surprised to read:
7474
# /* config.h. Generated by config.status. */
7475
if test x"$ac_file" = x-; then
7478
configure_input="$ac_file. "
7480
configure_input=$configure_input"Generated from `echo $ac_file_in |
7481
sed 's,.*/,,'` by configure."
7483
# First look for the input files in the build tree, otherwise in the
7485
ac_file_inputs=`IFS=:
7486
for f in $ac_file_in; do
7488
-) echo $tmp/stdin ;;
7490
# Absolute (can't be DOS-style, as IFS=:)
7491
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7492
echo "$as_me: error: cannot find input file: $f" >&2;}
7493
{ (exit 1); exit 1; }; }
7496
if test -f "$f"; then
7499
elif test -f "$srcdir/$f"; then
7504
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7505
echo "$as_me: error: cannot find input file: $f" >&2;}
7506
{ (exit 1); exit 1; }; }
7509
done` || { (exit 1); exit 1; }
7511
cat >>$CONFIG_STATUS <<_ACEOF
7515
cat >>$CONFIG_STATUS <<\_ACEOF
7517
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7518
s,@configure_input@,$configure_input,;t t
7519
s,@srcdir@,$ac_srcdir,;t t
7520
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7521
s,@top_srcdir@,$ac_top_srcdir,;t t
7522
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7523
s,@builddir@,$ac_builddir,;t t
7524
s,@abs_builddir@,$ac_abs_builddir,;t t
7525
s,@top_builddir@,$ac_top_builddir,;t t
7526
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7527
s,@INSTALL@,$ac_INSTALL,;t t
7528
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7530
if test x"$ac_file" != x-; then
7531
mv $tmp/out $ac_file
7540
cat >>$CONFIG_STATUS <<\_ACEOF
7542
{ (exit 0); exit 0; }
7544
chmod +x $CONFIG_STATUS
7545
ac_clean_files=$ac_clean_files_save
7548
# configure is writing to config.log, and then calls config.status.
7549
# config.status does its own redirection, appending to config.log.
7550
# Unfortunately, on DOS this fails, as config.log is still kept open
7551
# by configure, so config.status won't be able to write to it; its
7552
# output is simply discarded. So we exec the FD to /dev/null,
7553
# effectively closing config.log, so it can be properly (re)opened and
7554
# appended to by config.status. When coming back to configure, we
7555
# need to make the FD available again.
7556
if test "$no_create" != yes; then
7558
ac_config_status_args=
7559
test "$silent" = yes &&
7560
ac_config_status_args="$ac_config_status_args --quiet"
7562
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7564
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7565
# would make configure fail if this is the last instruction.
7566
$ac_cs_success || { (exit 1); exit 1; }