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="configure.in"
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 KRB5_RUN_ENV GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS 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 PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND LIBOBJS LTLIBOBJS'
319
ac_subst_files='lib_frag libobj_frag libnover_frag'
321
# Initialize some variables set by options.
323
ac_init_version=false
324
# The variables have the same names as the options, with
325
# dashes changed to underlines.
333
program_transform_name=s,x,x,
341
# Installation directory options.
342
# These are left unexpanded so users can "make install exec_prefix=/foo"
343
# and all the variables that are supposed to be based on exec_prefix
344
# by default will actually change.
345
# Use braces instead of parens because sh, perl, etc. also accept them.
346
bindir='${exec_prefix}/bin'
347
sbindir='${exec_prefix}/sbin'
348
libexecdir='${exec_prefix}/libexec'
349
datadir='${prefix}/share'
350
sysconfdir='${prefix}/etc'
351
sharedstatedir='${prefix}/com'
352
localstatedir='${prefix}/var'
353
libdir='${exec_prefix}/lib'
354
includedir='${prefix}/include'
355
oldincludedir='/usr/include'
356
infodir='${prefix}/info'
357
mandir='${prefix}/man'
362
# If the previous option needs an argument, assign it.
363
if test -n "$ac_prev"; then
364
eval "$ac_prev=\$ac_option"
369
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371
# Accept the important Cygnus configure options, so we can diagnose typos.
375
-bindir | --bindir | --bindi | --bind | --bin | --bi)
377
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380
-build | --build | --buil | --bui | --bu)
381
ac_prev=build_alias ;;
382
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
383
build_alias=$ac_optarg ;;
385
-cache-file | --cache-file | --cache-fil | --cache-fi \
386
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387
ac_prev=cache_file ;;
388
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390
cache_file=$ac_optarg ;;
393
cache_file=config.cache ;;
395
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399
datadir=$ac_optarg ;;
401
-disable-* | --disable-*)
402
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403
# Reject names that are not valid shell variable names.
404
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
406
{ (exit 1); exit 1; }; }
407
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408
eval "enable_$ac_feature=no" ;;
410
-enable-* | --enable-*)
411
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412
# Reject names that are not valid shell variable names.
413
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
415
{ (exit 1); exit 1; }; }
416
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421
eval "enable_$ac_feature='$ac_optarg'" ;;
423
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425
| --exec | --exe | --ex)
426
ac_prev=exec_prefix ;;
427
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429
| --exec=* | --exe=* | --ex=*)
430
exec_prefix=$ac_optarg ;;
432
-gas | --gas | --ga | --g)
433
# Obsolete; use --with-gas.
436
-help | --help | --hel | --he | -h)
438
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439
ac_init_help=recursive ;;
440
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441
ac_init_help=short ;;
443
-host | --host | --hos | --ho)
444
ac_prev=host_alias ;;
445
-host=* | --host=* | --hos=* | --ho=*)
446
host_alias=$ac_optarg ;;
448
-includedir | --includedir | --includedi | --included | --include \
449
| --includ | --inclu | --incl | --inc)
450
ac_prev=includedir ;;
451
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452
| --includ=* | --inclu=* | --incl=* | --inc=*)
453
includedir=$ac_optarg ;;
455
-infodir | --infodir | --infodi | --infod | --info | --inf)
457
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458
infodir=$ac_optarg ;;
460
-libdir | --libdir | --libdi | --libd)
462
-libdir=* | --libdir=* | --libdi=* | --libd=*)
465
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466
| --libexe | --libex | --libe)
467
ac_prev=libexecdir ;;
468
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469
| --libexe=* | --libex=* | --libe=*)
470
libexecdir=$ac_optarg ;;
472
-localstatedir | --localstatedir | --localstatedi | --localstated \
473
| --localstate | --localstat | --localsta | --localst \
474
| --locals | --local | --loca | --loc | --lo)
475
ac_prev=localstatedir ;;
476
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
478
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479
localstatedir=$ac_optarg ;;
481
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487
# Obsolete; use --without-fp.
490
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
491
| --no-cr | --no-c | -n)
494
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
495
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500
| --oldin | --oldi | --old | --ol | --o)
501
ac_prev=oldincludedir ;;
502
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505
oldincludedir=$ac_optarg ;;
507
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512
-program-prefix | --program-prefix | --program-prefi | --program-pref \
513
| --program-pre | --program-pr | --program-p)
514
ac_prev=program_prefix ;;
515
-program-prefix=* | --program-prefix=* | --program-prefi=* \
516
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517
program_prefix=$ac_optarg ;;
519
-program-suffix | --program-suffix | --program-suffi | --program-suff \
520
| --program-suf | --program-su | --program-s)
521
ac_prev=program_suffix ;;
522
-program-suffix=* | --program-suffix=* | --program-suffi=* \
523
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524
program_suffix=$ac_optarg ;;
526
-program-transform-name | --program-transform-name \
527
| --program-transform-nam | --program-transform-na \
528
| --program-transform-n | --program-transform- \
529
| --program-transform | --program-transfor \
530
| --program-transfo | --program-transf \
531
| --program-trans | --program-tran \
532
| --progr-tra | --program-tr | --program-t)
533
ac_prev=program_transform_name ;;
534
-program-transform-name=* | --program-transform-name=* \
535
| --program-transform-nam=* | --program-transform-na=* \
536
| --program-transform-n=* | --program-transform-=* \
537
| --program-transform=* | --program-transfor=* \
538
| --program-transfo=* | --program-transf=* \
539
| --program-trans=* | --program-tran=* \
540
| --progr-tra=* | --program-tr=* | --program-t=*)
541
program_transform_name=$ac_optarg ;;
543
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
544
| -silent | --silent | --silen | --sile | --sil)
547
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551
sbindir=$ac_optarg ;;
553
-sharedstatedir | --sharedstatedir | --sharedstatedi \
554
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555
| --sharedst | --shareds | --shared | --share | --shar \
557
ac_prev=sharedstatedir ;;
558
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562
sharedstatedir=$ac_optarg ;;
564
-site | --site | --sit)
566
-site=* | --site=* | --sit=*)
569
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575
| --syscon | --sysco | --sysc | --sys | --sy)
576
ac_prev=sysconfdir ;;
577
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579
sysconfdir=$ac_optarg ;;
581
-target | --target | --targe | --targ | --tar | --ta | --t)
582
ac_prev=target_alias ;;
583
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584
target_alias=$ac_optarg ;;
586
-v | -verbose | --verbose | --verbos | --verbo | --verb)
589
-version | --version | --versio | --versi | --vers | -V)
593
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594
# Reject names that are not valid shell variable names.
595
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596
{ echo "$as_me: error: invalid package name: $ac_package" >&2
597
{ (exit 1); exit 1; }; }
598
ac_package=`echo $ac_package| sed 's/-/_/g'`
600
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603
eval "with_$ac_package='$ac_optarg'" ;;
605
-without-* | --without-*)
606
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607
# Reject names that are not valid shell variable names.
608
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609
{ echo "$as_me: error: invalid package name: $ac_package" >&2
610
{ (exit 1); exit 1; }; }
611
ac_package=`echo $ac_package | sed 's/-/_/g'`
612
eval "with_$ac_package=no" ;;
615
# Obsolete; use --with-x.
618
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619
| --x-incl | --x-inc | --x-in | --x-i)
620
ac_prev=x_includes ;;
621
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623
x_includes=$ac_optarg ;;
625
-x-libraries | --x-libraries | --x-librarie | --x-librari \
626
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627
ac_prev=x_libraries ;;
628
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630
x_libraries=$ac_optarg ;;
632
-*) { echo "$as_me: error: unrecognized option: $ac_option
633
Try \`$0 --help' for more information." >&2
634
{ (exit 1); exit 1; }; }
638
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639
# Reject names that are not valid shell variable names.
640
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642
{ (exit 1); exit 1; }; }
643
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644
eval "$ac_envvar='$ac_optarg'"
648
# FIXME: should be removed in autoconf 3.0.
649
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658
if test -n "$ac_prev"; then
659
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660
{ echo "$as_me: error: missing argument to $ac_option" >&2
661
{ (exit 1); exit 1; }; }
664
# Be sure to have absolute paths.
665
for ac_var in exec_prefix prefix
667
eval ac_val=$`echo $ac_var`
669
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
{ (exit 1); exit 1; }; };;
675
# Be sure to have absolute paths.
676
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677
localstatedir libdir includedir oldincludedir infodir mandir
679
eval ac_val=$`echo $ac_var`
681
[\\/$]* | ?:[\\/]* ) ;;
682
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683
{ (exit 1); exit 1; }; };;
687
# There might be people who depend on the old broken behavior: `$host'
688
# used to hold the argument of --host etc.
689
# FIXME: To remove some day.
694
# FIXME: To remove some day.
695
if test "x$host_alias" != x; then
696
if test "x$build_alias" = x; then
697
cross_compiling=maybe
698
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699
If a cross compiler is detected then cross compile mode will be used." >&2
700
elif test "x$build_alias" != "x$host_alias"; then
706
test -n "$host_alias" && ac_tool_prefix=$host_alias-
708
test "$silent" = yes && exec 6>/dev/null
711
# Find the source files, if location was not specified.
712
if test -z "$srcdir"; then
713
ac_srcdir_defaulted=yes
714
# Try the directory containing this script, then its parent.
715
ac_confdir=`(dirname "$0") 2>/dev/null ||
716
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717
X"$0" : 'X\(//\)[^/]' \| \
718
X"$0" : 'X\(//\)$' \| \
719
X"$0" : 'X\(/\)' \| \
720
. : '\(.\)' 2>/dev/null ||
722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
724
/^X\(\/\/\)$/{ s//\1/; q; }
725
/^X\(\/\).*/{ s//\1/; q; }
728
if test ! -r $srcdir/$ac_unique_file; then
732
ac_srcdir_defaulted=no
734
if test ! -r $srcdir/$ac_unique_file; then
735
if test "$ac_srcdir_defaulted" = yes; then
736
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737
{ (exit 1); exit 1; }; }
739
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740
{ (exit 1); exit 1; }; }
743
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745
{ (exit 1); exit 1; }; }
746
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747
ac_env_build_alias_set=${build_alias+set}
748
ac_env_build_alias_value=$build_alias
749
ac_cv_env_build_alias_set=${build_alias+set}
750
ac_cv_env_build_alias_value=$build_alias
751
ac_env_host_alias_set=${host_alias+set}
752
ac_env_host_alias_value=$host_alias
753
ac_cv_env_host_alias_set=${host_alias+set}
754
ac_cv_env_host_alias_value=$host_alias
755
ac_env_target_alias_set=${target_alias+set}
756
ac_env_target_alias_value=$target_alias
757
ac_cv_env_target_alias_set=${target_alias+set}
758
ac_cv_env_target_alias_value=$target_alias
759
ac_env_CC_set=${CC+set}
761
ac_cv_env_CC_set=${CC+set}
762
ac_cv_env_CC_value=$CC
763
ac_env_CFLAGS_set=${CFLAGS+set}
764
ac_env_CFLAGS_value=$CFLAGS
765
ac_cv_env_CFLAGS_set=${CFLAGS+set}
766
ac_cv_env_CFLAGS_value=$CFLAGS
767
ac_env_LDFLAGS_set=${LDFLAGS+set}
768
ac_env_LDFLAGS_value=$LDFLAGS
769
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770
ac_cv_env_LDFLAGS_value=$LDFLAGS
771
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772
ac_env_CPPFLAGS_value=$CPPFLAGS
773
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775
ac_env_CPP_set=${CPP+set}
776
ac_env_CPP_value=$CPP
777
ac_cv_env_CPP_set=${CPP+set}
778
ac_cv_env_CPP_value=$CPP
779
ac_env_LD_set=${LD+set}
781
ac_cv_env_LD_set=${LD+set}
782
ac_cv_env_LD_value=$LD
783
ac_env_SS_LIB_set=${SS_LIB+set}
784
ac_env_SS_LIB_value=$SS_LIB
785
ac_cv_env_SS_LIB_set=${SS_LIB+set}
786
ac_cv_env_SS_LIB_value=$SS_LIB
787
ac_env_DB_HEADER_set=${DB_HEADER+set}
788
ac_env_DB_HEADER_value=$DB_HEADER
789
ac_cv_env_DB_HEADER_set=${DB_HEADER+set}
790
ac_cv_env_DB_HEADER_value=$DB_HEADER
791
ac_env_DB_LIB_set=${DB_LIB+set}
792
ac_env_DB_LIB_value=$DB_LIB
793
ac_cv_env_DB_LIB_set=${DB_LIB+set}
794
ac_cv_env_DB_LIB_value=$DB_LIB
797
# Report the --help message.
799
if test "$ac_init_help" = "long"; then
800
# Omit some internal or obsolete options to make the list less imposing.
801
# This message is too long to be a string in the A/UX 3.1 sh.
803
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
805
Usage: $0 [OPTION]... [VAR=VALUE]...
807
To assign environment variables (e.g., CC, CFLAGS...), specify them as
808
VAR=VALUE. See below for descriptions of some of the useful variables.
810
Defaults for the options are specified in brackets.
813
-h, --help display this help and exit
814
--help=short display options specific to this package
815
--help=recursive display the short help of all the included packages
816
-V, --version display version information and exit
817
-q, --quiet, --silent do not print \`checking...' messages
818
--cache-file=FILE cache test results in FILE [disabled]
819
-C, --config-cache alias for \`--cache-file=config.cache'
820
-n, --no-create do not create output files
821
--srcdir=DIR find the sources in DIR [configure dir or \`..']
826
Installation directories:
827
--prefix=PREFIX install architecture-independent files in PREFIX
829
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832
By default, \`make install' will install all the files in
833
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835
for instance \`--prefix=\$HOME'.
837
For better control, use the options below.
839
Fine tuning of the installation directories:
840
--bindir=DIR user executables [EPREFIX/bin]
841
--sbindir=DIR system admin executables [EPREFIX/sbin]
842
--libexecdir=DIR program executables [EPREFIX/libexec]
843
--datadir=DIR read-only architecture-independent data [PREFIX/share]
844
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
847
--libdir=DIR object code libraries [EPREFIX/lib]
848
--includedir=DIR C header files [PREFIX/include]
849
--oldincludedir=DIR C header files for non-gcc [/usr/include]
850
--infodir=DIR info documentation [PREFIX/info]
851
--mandir=DIR man documentation [PREFIX/man]
857
--program-prefix=PREFIX prepend PREFIX to installed program names
858
--program-suffix=SUFFIX append SUFFIX to installed program names
859
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
862
--build=BUILD configure for building on BUILD [guessed]
863
--host=HOST cross-compile to build programs to run on HOST [BUILD]
867
if test -n "$ac_init_help"; then
868
case $ac_init_help in
869
short | recursive ) echo "Configuration of Kerberos 5 1.6.4-beta1:";;
874
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876
--enable-dns-for-realm enable DNS lookups of Kerberos realm names
877
--enable-maintainer-mode
878
enable rebuilding of source files, Makefiles, etc
879
--disable-delayed-initialization
880
initialize library code when loaded [delay until
882
--disable-thread-support
883
don't enable thread support [enabled]
887
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
888
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
889
--without-krb4 don't include Kerberos V4 backwards compatibility
890
--with-krb4 use V4 libraries included with V5 (default)
891
--with-krb4=KRB4DIR use preinstalled V4 libraries
892
--with-system-et use system compile_et and -lcom_err [default:
893
build and install a local version]
894
--with-system-ss use system -lss and mk_cmds [private version]
895
--with-system-db use system Berkeley db [private version]
896
--with-netlib=LIBS use user defined resolver library
897
--with-hesiod=path compile with hesiod support [omitted]
898
--with-ldap compile OpenLDAP database backend module
899
--with-edirectory compile eDirectory database backend module
901
Some influential environment variables:
902
CC C compiler command
903
CFLAGS C compiler flags
904
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905
nonstandard directory <lib dir>
906
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907
headers in a nonstandard directory <include dir>
909
LD linker command [CC]
910
SS_LIB system libraries for 'ss' package [-lss]
911
DB_HEADER header file for system Berkeley db package [db.h]
912
DB_LIB library for system Berkeley db package [-ldb]
914
Use these variables to override the choices made by `configure' or to help
915
it to find libraries and programs with nonstandard names/locations.
917
Report bugs to <krb5-bugs@mit.edu>.
921
if test "$ac_init_help" = "recursive"; then
922
# If there are subdirs, report their specific --help.
924
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
test -d $ac_dir || continue
928
if test "$ac_dir" != .; then
929
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930
# A "../" for each directory in $ac_dir_suffix.
931
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933
ac_dir_suffix= ac_top_builddir=
937
.) # No --srcdir option. We are building in place.
939
if test -z "$ac_top_builddir"; then
942
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944
[\\/]* | ?:[\\/]* ) # Absolute path.
945
ac_srcdir=$srcdir$ac_dir_suffix;
946
ac_top_srcdir=$srcdir ;;
948
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
ac_top_srcdir=$ac_top_builddir$srcdir ;;
952
# Do not use `cd foo && pwd` to compute absolute paths, because
953
# the directories may not exist.
955
.) ac_abs_builddir="$ac_dir";;
958
.) ac_abs_builddir=`pwd`;;
959
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
*) ac_abs_builddir=`pwd`/"$ac_dir";;
963
case $ac_abs_builddir in
964
.) ac_abs_top_builddir=${ac_top_builddir}.;;
966
case ${ac_top_builddir}. in
967
.) ac_abs_top_builddir=$ac_abs_builddir;;
968
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972
case $ac_abs_builddir in
973
.) ac_abs_srcdir=$ac_srcdir;;
976
.) ac_abs_srcdir=$ac_abs_builddir;;
977
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981
case $ac_abs_builddir in
982
.) ac_abs_top_srcdir=$ac_top_srcdir;;
984
case $ac_top_srcdir in
985
.) ac_abs_top_srcdir=$ac_abs_builddir;;
986
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992
# Check for guested configure; otherwise get Cygnus style configure.
993
if test -f $ac_srcdir/configure.gnu; then
995
$SHELL $ac_srcdir/configure.gnu --help=recursive
996
elif test -f $ac_srcdir/configure; then
998
$SHELL $ac_srcdir/configure --help=recursive
999
elif test -f $ac_srcdir/configure.ac ||
1000
test -f $ac_srcdir/configure.in; then
1002
$ac_configure --help
1004
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010
test -n "$ac_init_help" && exit 0
1011
if $ac_init_version; then
1013
Kerberos 5 configure 1.6.4-beta1
1014
generated by GNU Autoconf 2.59
1016
Copyright (C) 2003 Free Software Foundation, Inc.
1017
This configure script is free software; the Free Software Foundation
1018
gives unlimited permission to copy, distribute and modify it.
1020
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1021
Massachusetts Institute of Technology.
1028
This file contains any messages produced by compilers while
1029
running configure, to aid debugging if configure makes a mistake.
1031
It was created by Kerberos 5 $as_me 1.6.4-beta1, which was
1032
generated by GNU Autoconf 2.59. Invocation command line was
1043
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1066
test -z "$as_dir" && as_dir=.
1067
echo "PATH: $as_dir"
1082
# Keep a trace of the command line.
1083
# Strip out --no-create and --no-recursion so they do not pile up.
1084
# Strip out --silent because we don't want to record it for future runs.
1085
# Also quote any args containing shell meta-characters.
1086
# Make two passes to allow for proper duplicate-argument suppression.
1091
ac_must_keep_next=false
1097
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099
| -silent | --silent | --silen | --sile | --sil)
1101
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108
if test $ac_must_keep_next = true; then
1109
ac_must_keep_next=false # Got value, back to normal.
1112
*=* | --config-cache | -C | -disable-* | --disable-* \
1113
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115
| -with-* | --with-* | -without-* | --without-* | --x)
1116
case "$ac_configure_args0 " in
1117
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120
-* ) ac_must_keep_next=true ;;
1123
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124
# Get rid of the leading space.
1130
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133
# When interrupted or exit'd, cleanup temporary files, and complete
1134
# config.log. We remove comments because anyway the quotes in there
1135
# would cause problems or look ugly.
1136
# WARNING: Be sure not to use single quotes in there, as some shells,
1137
# such as our DU 5.0 friend, will then `close' the trap.
1138
trap 'exit_status=$?
1139
# Save into config.log some information that might help in debugging.
1144
## ---------------- ##
1145
## Cache variables. ##
1146
## ---------------- ##
1149
# The following way of writing the cache mishandles newlines in values,
1152
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1160
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167
## ----------------- ##
1168
## Output variables. ##
1169
## ----------------- ##
1172
for ac_var in $ac_subst_vars
1174
eval ac_val=$`echo $ac_var`
1175
echo "$ac_var='"'"'$ac_val'"'"'"
1179
if test -n "$ac_subst_files"; then
1186
for ac_var in $ac_subst_files
1188
eval ac_val=$`echo $ac_var`
1189
echo "$ac_var='"'"'$ac_val'"'"'"
1194
if test -s confdefs.h; then
1201
sed "/^$/d" confdefs.h | sort
1204
test "$ac_signal" != 0 &&
1205
echo "$as_me: caught signal $ac_signal"
1206
echo "$as_me: exit $exit_status"
1208
rm -f core *.core &&
1209
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212
for ac_signal in 1 2 13 15; do
1213
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1217
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1218
rm -rf conftest* confdefs.h
1219
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222
# Predefined preprocessor variables.
1224
cat >>confdefs.h <<_ACEOF
1225
#define PACKAGE_NAME "$PACKAGE_NAME"
1229
cat >>confdefs.h <<_ACEOF
1230
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1239
cat >>confdefs.h <<_ACEOF
1240
#define PACKAGE_STRING "$PACKAGE_STRING"
1244
cat >>confdefs.h <<_ACEOF
1245
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1249
# Let the site file select an alternate cache file if it wants to.
1250
# Prefer explicitly selected file to automatically selected ones.
1251
if test -z "$CONFIG_SITE"; then
1252
if test "x$prefix" != xNONE; then
1253
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258
for ac_site_file in $CONFIG_SITE; do
1259
if test -r "$ac_site_file"; then
1260
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261
echo "$as_me: loading site script $ac_site_file" >&6;}
1262
sed 's/^/| /' "$ac_site_file" >&5
1267
if test -r "$cache_file"; then
1268
# Some versions of bash will fail to source /dev/null (special
1269
# files actually), so we avoid doing that.
1270
if test -f "$cache_file"; then
1271
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272
echo "$as_me: loading cache $cache_file" >&6;}
1274
[\\/]* | ?:[\\/]* ) . $cache_file;;
1275
*) . ./$cache_file;;
1279
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280
echo "$as_me: creating cache $cache_file" >&6;}
1284
# Check that the precious variables saved in the cache have kept the same
1286
ac_cache_corrupted=false
1287
for ac_var in `(set) 2>&1 |
1288
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290
eval ac_new_set=\$ac_env_${ac_var}_set
1291
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292
eval ac_new_val="\$ac_env_${ac_var}_value"
1293
case $ac_old_set,$ac_new_set in
1295
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297
ac_cache_corrupted=: ;;
1299
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301
ac_cache_corrupted=: ;;
1304
if test "x$ac_old_val" != "x$ac_new_val"; then
1305
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308
echo "$as_me: former value: $ac_old_val" >&2;}
1309
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310
echo "$as_me: current value: $ac_new_val" >&2;}
1311
ac_cache_corrupted=:
1314
# Pass precious variables to config.status.
1315
if test "$ac_new_set" = set; then
1317
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319
*) ac_arg=$ac_var=$ac_new_val ;;
1321
case " $ac_configure_args " in
1322
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327
if $ac_cache_corrupted; then
1328
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332
{ (exit 1); exit 1; }; }
1336
ac_cpp='$CPP $CPPFLAGS'
1337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371
ac_reltopdir="../../.."
1372
if test ! -r "$srcdir/../../../aclocal.m4"; then
1373
{ { echo "$as_me:$LINENO: error: Configure could not determine the relative topdir" >&5
1374
echo "$as_me: error: Configure could not determine the relative topdir" >&2;}
1375
{ (exit 1); exit 1; }; }
1377
ac_topdir=$srcdir/$ac_reltopdir
1378
ac_config_fragdir=$ac_reltopdir/config
1379
# echo "Looking for $srcdir/$ac_config_fragdir"
1380
if test -d "$srcdir/$ac_config_fragdir"; then
1382
for ac_dir in ../../../config $srcdir/../../../config; do
1383
if test -f $ac_dir/install-sh; then
1385
ac_install_sh="$ac_aux_dir/install-sh -c"
1387
elif test -f $ac_dir/install.sh; then
1389
ac_install_sh="$ac_aux_dir/install.sh -c"
1391
elif test -f $ac_dir/shtool; then
1393
ac_install_sh="$ac_aux_dir/shtool install -c"
1397
if test -z "$ac_aux_dir"; then
1398
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5
1399
echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;}
1400
{ (exit 1); exit 1; }; }
1402
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1403
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1404
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1407
{ { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1408
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1409
{ (exit 1); exit 1; }; }
1414
krb5_ac_cflags_set=${CFLAGS+set}
1417
ac_cpp='$CPP $CPPFLAGS'
1418
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421
if test -n "$ac_tool_prefix"; then
1422
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1423
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1424
echo "$as_me:$LINENO: checking for $ac_word" >&5
1425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426
if test "${ac_cv_prog_CC+set}" = set; then
1427
echo $ECHO_N "(cached) $ECHO_C" >&6
1429
if test -n "$CC"; then
1430
ac_cv_prog_CC="$CC" # Let the user override the test.
1432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436
test -z "$as_dir" && as_dir=.
1437
for ac_exec_ext in '' $ac_executable_extensions; do
1438
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1440
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449
if test -n "$CC"; then
1450
echo "$as_me:$LINENO: result: $CC" >&5
1451
echo "${ECHO_T}$CC" >&6
1453
echo "$as_me:$LINENO: result: no" >&5
1454
echo "${ECHO_T}no" >&6
1458
if test -z "$ac_cv_prog_CC"; then
1460
# Extract the first word of "gcc", so it can be a program name with args.
1461
set dummy gcc; ac_word=$2
1462
echo "$as_me:$LINENO: checking for $ac_word" >&5
1463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1465
echo $ECHO_N "(cached) $ECHO_C" >&6
1467
if test -n "$ac_ct_CC"; then
1468
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474
test -z "$as_dir" && as_dir=.
1475
for ac_exec_ext in '' $ac_executable_extensions; do
1476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477
ac_cv_prog_ac_ct_CC="gcc"
1478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1487
if test -n "$ac_ct_CC"; then
1488
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1489
echo "${ECHO_T}$ac_ct_CC" >&6
1491
echo "$as_me:$LINENO: result: no" >&5
1492
echo "${ECHO_T}no" >&6
1500
if test -z "$CC"; then
1501
if test -n "$ac_tool_prefix"; then
1502
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1503
set dummy ${ac_tool_prefix}cc; ac_word=$2
1504
echo "$as_me:$LINENO: checking for $ac_word" >&5
1505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506
if test "${ac_cv_prog_CC+set}" = set; then
1507
echo $ECHO_N "(cached) $ECHO_C" >&6
1509
if test -n "$CC"; then
1510
ac_cv_prog_CC="$CC" # Let the user override the test.
1512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516
test -z "$as_dir" && as_dir=.
1517
for ac_exec_ext in '' $ac_executable_extensions; do
1518
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519
ac_cv_prog_CC="${ac_tool_prefix}cc"
1520
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529
if test -n "$CC"; then
1530
echo "$as_me:$LINENO: result: $CC" >&5
1531
echo "${ECHO_T}$CC" >&6
1533
echo "$as_me:$LINENO: result: no" >&5
1534
echo "${ECHO_T}no" >&6
1538
if test -z "$ac_cv_prog_CC"; then
1540
# Extract the first word of "cc", so it can be a program name with args.
1541
set dummy cc; ac_word=$2
1542
echo "$as_me:$LINENO: checking for $ac_word" >&5
1543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1545
echo $ECHO_N "(cached) $ECHO_C" >&6
1547
if test -n "$ac_ct_CC"; then
1548
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554
test -z "$as_dir" && as_dir=.
1555
for ac_exec_ext in '' $ac_executable_extensions; do
1556
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557
ac_cv_prog_ac_ct_CC="cc"
1558
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1567
if test -n "$ac_ct_CC"; then
1568
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1569
echo "${ECHO_T}$ac_ct_CC" >&6
1571
echo "$as_me:$LINENO: result: no" >&5
1572
echo "${ECHO_T}no" >&6
1581
if test -z "$CC"; then
1582
# Extract the first word of "cc", so it can be a program name with args.
1583
set dummy cc; ac_word=$2
1584
echo "$as_me:$LINENO: checking for $ac_word" >&5
1585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586
if test "${ac_cv_prog_CC+set}" = set; then
1587
echo $ECHO_N "(cached) $ECHO_C" >&6
1589
if test -n "$CC"; then
1590
ac_cv_prog_CC="$CC" # Let the user override the test.
1593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597
test -z "$as_dir" && as_dir=.
1598
for ac_exec_ext in '' $ac_executable_extensions; do
1599
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1601
ac_prog_rejected=yes
1605
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611
if test $ac_prog_rejected = yes; then
1612
# We found a bogon in the path, so make sure we never use it.
1613
set dummy $ac_cv_prog_CC
1615
if test $# != 0; then
1616
# We chose a different compiler from the bogus one.
1617
# However, it has the same basename, so the bogon will be chosen
1618
# first if we set CC to just the basename; use the full file name.
1620
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1626
if test -n "$CC"; then
1627
echo "$as_me:$LINENO: result: $CC" >&5
1628
echo "${ECHO_T}$CC" >&6
1630
echo "$as_me:$LINENO: result: no" >&5
1631
echo "${ECHO_T}no" >&6
1635
if test -z "$CC"; then
1636
if test -n "$ac_tool_prefix"; then
1639
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1640
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1641
echo "$as_me:$LINENO: checking for $ac_word" >&5
1642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643
if test "${ac_cv_prog_CC+set}" = set; then
1644
echo $ECHO_N "(cached) $ECHO_C" >&6
1646
if test -n "$CC"; then
1647
ac_cv_prog_CC="$CC" # Let the user override the test.
1649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
test -z "$as_dir" && as_dir=.
1654
for ac_exec_ext in '' $ac_executable_extensions; do
1655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666
if test -n "$CC"; then
1667
echo "$as_me:$LINENO: result: $CC" >&5
1668
echo "${ECHO_T}$CC" >&6
1670
echo "$as_me:$LINENO: result: no" >&5
1671
echo "${ECHO_T}no" >&6
1674
test -n "$CC" && break
1677
if test -z "$CC"; then
1681
# Extract the first word of "$ac_prog", so it can be a program name with args.
1682
set dummy $ac_prog; ac_word=$2
1683
echo "$as_me:$LINENO: checking for $ac_word" >&5
1684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1686
echo $ECHO_N "(cached) $ECHO_C" >&6
1688
if test -n "$ac_ct_CC"; then
1689
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695
test -z "$as_dir" && as_dir=.
1696
for ac_exec_ext in '' $ac_executable_extensions; do
1697
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698
ac_cv_prog_ac_ct_CC="$ac_prog"
1699
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1708
if test -n "$ac_ct_CC"; then
1709
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1710
echo "${ECHO_T}$ac_ct_CC" >&6
1712
echo "$as_me:$LINENO: result: no" >&5
1713
echo "${ECHO_T}no" >&6
1716
test -n "$ac_ct_CC" && break
1725
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1726
See \`config.log' for more details." >&5
1727
echo "$as_me: error: no acceptable C compiler found in \$PATH
1728
See \`config.log' for more details." >&2;}
1729
{ (exit 1); exit 1; }; }
1731
# Provide some information about the compiler.
1732
echo "$as_me:$LINENO:" \
1733
"checking for C compiler version" >&5
1734
ac_compiler=`set X $ac_compile; echo $2`
1735
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736
(eval $ac_compiler --version </dev/null >&5) 2>&5
1738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739
(exit $ac_status); }
1740
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741
(eval $ac_compiler -v </dev/null >&5) 2>&5
1743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744
(exit $ac_status); }
1745
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746
(eval $ac_compiler -V </dev/null >&5) 2>&5
1748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
(exit $ac_status); }
1751
cat >conftest.$ac_ext <<_ACEOF
1754
cat confdefs.h >>conftest.$ac_ext
1755
cat >>conftest.$ac_ext <<_ACEOF
1756
/* end confdefs.h. */
1766
ac_clean_files_save=$ac_clean_files
1767
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1768
# Try to create an executable without -o first, disregard a.out.
1769
# It will help us diagnose broken compilers, and finding out an intuition
1771
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1772
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775
(eval $ac_link_default) 2>&5
1777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778
(exit $ac_status); }; then
1779
# Find the output, starting from the most likely. This scheme is
1780
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783
# Be careful to initialize this variable, since it used to be cached.
1784
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1786
# b.out is created by i960 compilers.
1787
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1789
test -f "$ac_file" || continue
1791
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794
# This is the source file.
1797
# We found the default executable, but exeext='' is most
1801
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802
# FIXME: I believe we export ac_cv_exeext for Libtool,
1803
# but it would be cool to find out if it's true. Does anybody
1804
# maintain Libtool? --akim.
1812
echo "$as_me: failed program was:" >&5
1813
sed 's/^/| /' conftest.$ac_ext >&5
1815
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1816
See \`config.log' for more details." >&5
1817
echo "$as_me: error: C compiler cannot create executables
1818
See \`config.log' for more details." >&2;}
1819
{ (exit 77); exit 77; }; }
1822
ac_exeext=$ac_cv_exeext
1823
echo "$as_me:$LINENO: result: $ac_file" >&5
1824
echo "${ECHO_T}$ac_file" >&6
1826
# Check the compiler produces executables we can run. If not, either
1827
# the compiler is broken, or we cross compile.
1828
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831
# If not cross compiling, check that we can run a simple program.
1832
if test "$cross_compiling" != yes; then
1833
if { ac_try='./$ac_file'
1834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838
(exit $ac_status); }; }; then
1841
if test "$cross_compiling" = maybe; then
1844
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1845
If you meant to cross compile, use \`--host'.
1846
See \`config.log' for more details." >&5
1847
echo "$as_me: error: cannot run C compiled programs.
1848
If you meant to cross compile, use \`--host'.
1849
See \`config.log' for more details." >&2;}
1850
{ (exit 1); exit 1; }; }
1854
echo "$as_me:$LINENO: result: yes" >&5
1855
echo "${ECHO_T}yes" >&6
1857
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1858
ac_clean_files=$ac_clean_files_save
1859
# Check the compiler produces executables we can run. If not, either
1860
# the compiler is broken, or we cross compile.
1861
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864
echo "${ECHO_T}$cross_compiling" >&6
1866
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869
(eval $ac_link) 2>&5
1871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872
(exit $ac_status); }; then
1873
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1874
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875
# work properly (i.e., refer to `conftest.exe'), while it won't with
1877
for ac_file in conftest.exe conftest conftest.*; do
1878
test -f "$ac_file" || continue
1880
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1888
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1889
See \`config.log' for more details." >&5
1890
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1891
See \`config.log' for more details." >&2;}
1892
{ (exit 1); exit 1; }; }
1895
rm -f conftest$ac_cv_exeext
1896
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897
echo "${ECHO_T}$ac_cv_exeext" >&6
1899
rm -f conftest.$ac_ext
1900
EXEEXT=$ac_cv_exeext
1902
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904
if test "${ac_cv_objext+set}" = set; then
1905
echo $ECHO_N "(cached) $ECHO_C" >&6
1907
cat >conftest.$ac_ext <<_ACEOF
1910
cat confdefs.h >>conftest.$ac_ext
1911
cat >>conftest.$ac_ext <<_ACEOF
1912
/* end confdefs.h. */
1922
rm -f conftest.o conftest.obj
1923
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924
(eval $ac_compile) 2>&5
1926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927
(exit $ac_status); }; then
1928
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1930
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1931
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1936
echo "$as_me: failed program was:" >&5
1937
sed 's/^/| /' conftest.$ac_ext >&5
1939
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1940
See \`config.log' for more details." >&5
1941
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1942
See \`config.log' for more details." >&2;}
1943
{ (exit 1); exit 1; }; }
1946
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1948
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949
echo "${ECHO_T}$ac_cv_objext" >&6
1950
OBJEXT=$ac_cv_objext
1952
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955
echo $ECHO_N "(cached) $ECHO_C" >&6
1957
cat >conftest.$ac_ext <<_ACEOF
1960
cat confdefs.h >>conftest.$ac_ext
1961
cat >>conftest.$ac_ext <<_ACEOF
1962
/* end confdefs.h. */
1975
rm -f conftest.$ac_objext
1976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977
(eval $ac_compile) 2>conftest.er1
1979
grep -v '^ *+' conftest.er1 >conftest.err
1981
cat conftest.err >&5
1982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983
(exit $ac_status); } &&
1984
{ ac_try='test -z "$ac_c_werror_flag"
1985
|| test ! -s conftest.err'
1986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
(exit $ac_status); }; } &&
1991
{ ac_try='test -s conftest.$ac_objext'
1992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
(exit $ac_status); }; }; then
1999
echo "$as_me: failed program was:" >&5
2000
sed 's/^/| /' conftest.$ac_ext >&5
2004
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010
GCC=`test $ac_compiler_gnu = yes && echo yes`
2011
ac_test_CFLAGS=${CFLAGS+set}
2012
ac_save_CFLAGS=$CFLAGS
2014
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016
if test "${ac_cv_prog_cc_g+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
cat >conftest.$ac_ext <<_ACEOF
2022
cat confdefs.h >>conftest.$ac_ext
2023
cat >>conftest.$ac_ext <<_ACEOF
2024
/* end confdefs.h. */
2034
rm -f conftest.$ac_objext
2035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036
(eval $ac_compile) 2>conftest.er1
2038
grep -v '^ *+' conftest.er1 >conftest.err
2040
cat conftest.err >&5
2041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042
(exit $ac_status); } &&
2043
{ ac_try='test -z "$ac_c_werror_flag"
2044
|| test ! -s conftest.err'
2045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
(exit $ac_status); }; } &&
2050
{ ac_try='test -s conftest.$ac_objext'
2051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055
(exit $ac_status); }; }; then
2058
echo "$as_me: failed program was:" >&5
2059
sed 's/^/| /' conftest.$ac_ext >&5
2063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2065
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2066
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2067
if test "$ac_test_CFLAGS" = set; then
2068
CFLAGS=$ac_save_CFLAGS
2069
elif test $ac_cv_prog_cc_g = yes; then
2070
if test "$GCC" = yes; then
2076
if test "$GCC" = yes; then
2082
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2083
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085
echo $ECHO_N "(cached) $ECHO_C" >&6
2087
ac_cv_prog_cc_stdc=no
2089
cat >conftest.$ac_ext <<_ACEOF
2092
cat confdefs.h >>conftest.$ac_ext
2093
cat >>conftest.$ac_ext <<_ACEOF
2094
/* end confdefs.h. */
2097
#include <sys/types.h>
2098
#include <sys/stat.h>
2099
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2100
struct buf { int x; };
2101
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2102
static char *e (p, i)
2108
static char *f (char * (*g) (char **, int), char **p, ...)
2113
s = g (p, va_arg (v,int));
2118
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2119
function prototypes and stuff, but not '\xHH' hex character constants.
2120
These don't provoke an error unfortunately, instead are silently treated
2121
as 'x'. The following induces an error, until -std1 is added to get
2122
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2123
array size at least. It's necessary to write '\x00'==0 to get something
2124
that's true only with -std1. */
2125
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2127
int test (int i, double x);
2128
struct s1 {int (*f) (int a);};
2129
struct s2 {int (*f) (double a);};
2130
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2136
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2141
# Don't try gcc -ansi; that turns off useful extensions and
2142
# breaks some systems' header files.
2143
# AIX -qlanglvl=ansi
2144
# Ultrix and OSF/1 -std1
2145
# HP-UX 10.20 and later -Ae
2146
# HP-UX older versions -Aa -D_HPUX_SOURCE
2147
# SVR4 -Xc -D__EXTENSIONS__
2148
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2150
CC="$ac_save_CC $ac_arg"
2151
rm -f conftest.$ac_objext
2152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153
(eval $ac_compile) 2>conftest.er1
2155
grep -v '^ *+' conftest.er1 >conftest.err
2157
cat conftest.err >&5
2158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
(exit $ac_status); } &&
2160
{ ac_try='test -z "$ac_c_werror_flag"
2161
|| test ! -s conftest.err'
2162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
(exit $ac_status); }; } &&
2167
{ ac_try='test -s conftest.$ac_objext'
2168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172
(exit $ac_status); }; }; then
2173
ac_cv_prog_cc_stdc=$ac_arg
2176
echo "$as_me: failed program was:" >&5
2177
sed 's/^/| /' conftest.$ac_ext >&5
2180
rm -f conftest.err conftest.$ac_objext
2182
rm -f conftest.$ac_ext conftest.$ac_objext
2187
case "x$ac_cv_prog_cc_stdc" in
2189
echo "$as_me:$LINENO: result: none needed" >&5
2190
echo "${ECHO_T}none needed" >&6 ;;
2192
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2193
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2194
CC="$CC $ac_cv_prog_cc_stdc" ;;
2197
# Some people use a C++ compiler to compile C. Since we use `exit',
2198
# in C++ we need to declare it. In case someone uses the same compiler
2199
# for both compiling C and C++ we need to have the C++ compiler decide
2200
# the declaration of exit, since it's the most demanding environment.
2201
cat >conftest.$ac_ext <<_ACEOF
2206
rm -f conftest.$ac_objext
2207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208
(eval $ac_compile) 2>conftest.er1
2210
grep -v '^ *+' conftest.er1 >conftest.err
2212
cat conftest.err >&5
2213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214
(exit $ac_status); } &&
2215
{ ac_try='test -z "$ac_c_werror_flag"
2216
|| test ! -s conftest.err'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; } &&
2222
{ ac_try='test -s conftest.$ac_objext'
2223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
(exit $ac_status); }; }; then
2228
for ac_declaration in \
2230
'extern "C" void std::exit (int) throw (); using std::exit;' \
2231
'extern "C" void std::exit (int); using std::exit;' \
2232
'extern "C" void exit (int) throw ();' \
2233
'extern "C" void exit (int);' \
2236
cat >conftest.$ac_ext <<_ACEOF
2239
cat confdefs.h >>conftest.$ac_ext
2240
cat >>conftest.$ac_ext <<_ACEOF
2241
/* end confdefs.h. */
2252
rm -f conftest.$ac_objext
2253
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254
(eval $ac_compile) 2>conftest.er1
2256
grep -v '^ *+' conftest.er1 >conftest.err
2258
cat conftest.err >&5
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260
(exit $ac_status); } &&
2261
{ ac_try='test -z "$ac_c_werror_flag"
2262
|| test ! -s conftest.err'
2263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); }; } &&
2268
{ ac_try='test -s conftest.$ac_objext'
2269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273
(exit $ac_status); }; }; then
2276
echo "$as_me: failed program was:" >&5
2277
sed 's/^/| /' conftest.$ac_ext >&5
2281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282
cat >conftest.$ac_ext <<_ACEOF
2285
cat confdefs.h >>conftest.$ac_ext
2286
cat >>conftest.$ac_ext <<_ACEOF
2287
/* end confdefs.h. */
2297
rm -f conftest.$ac_objext
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299
(eval $ac_compile) 2>conftest.er1
2301
grep -v '^ *+' conftest.er1 >conftest.err
2303
cat conftest.err >&5
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305
(exit $ac_status); } &&
2306
{ ac_try='test -z "$ac_c_werror_flag"
2307
|| test ! -s conftest.err'
2308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
(exit $ac_status); }; } &&
2313
{ ac_try='test -s conftest.$ac_objext'
2314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318
(exit $ac_status); }; }; then
2321
echo "$as_me: failed program was:" >&5
2322
sed 's/^/| /' conftest.$ac_ext >&5
2325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328
if test -n "$ac_declaration"; then
2329
echo '#ifdef __cplusplus' >>confdefs.h
2330
echo $ac_declaration >>confdefs.h
2331
echo '#endif' >>confdefs.h
2335
echo "$as_me: failed program was:" >&5
2336
sed 's/^/| /' conftest.$ac_ext >&5
2339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341
ac_cpp='$CPP $CPPFLAGS'
2342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
ac_cpp='$CPP $CPPFLAGS'
2349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2353
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2354
# On Suns, sometimes $CPP names a directory.
2355
if test -n "$CPP" && test -d "$CPP"; then
2358
if test -z "$CPP"; then
2359
if test "${ac_cv_prog_CPP+set}" = set; then
2360
echo $ECHO_N "(cached) $ECHO_C" >&6
2362
# Double quotes because CPP needs to be expanded
2363
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2366
for ac_c_preproc_warn_flag in '' yes
2368
# Use a header file that comes with gcc, so configuring glibc
2369
# with a fresh cross-compiler works.
2370
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2371
# <limits.h> exists even on freestanding compilers.
2372
# On the NeXT, cc -E runs the code through the compiler's parser,
2373
# not just through cpp. "Syntax error" is here to catch this case.
2374
cat >conftest.$ac_ext <<_ACEOF
2377
cat confdefs.h >>conftest.$ac_ext
2378
cat >>conftest.$ac_ext <<_ACEOF
2379
/* end confdefs.h. */
2381
# include <limits.h>
2383
# include <assert.h>
2387
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390
grep -v '^ *+' conftest.er1 >conftest.err
2392
cat conftest.err >&5
2393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394
(exit $ac_status); } >/dev/null; then
2395
if test -s conftest.err; then
2396
ac_cpp_err=$ac_c_preproc_warn_flag
2397
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2404
if test -z "$ac_cpp_err"; then
2407
echo "$as_me: failed program was:" >&5
2408
sed 's/^/| /' conftest.$ac_ext >&5
2410
# Broken: fails on valid input.
2413
rm -f conftest.err conftest.$ac_ext
2415
# OK, works on sane cases. Now check whether non-existent headers
2416
# can be detected and how.
2417
cat >conftest.$ac_ext <<_ACEOF
2420
cat confdefs.h >>conftest.$ac_ext
2421
cat >>conftest.$ac_ext <<_ACEOF
2422
/* end confdefs.h. */
2423
#include <ac_nonexistent.h>
2425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428
grep -v '^ *+' conftest.er1 >conftest.err
2430
cat conftest.err >&5
2431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432
(exit $ac_status); } >/dev/null; then
2433
if test -s conftest.err; then
2434
ac_cpp_err=$ac_c_preproc_warn_flag
2435
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2442
if test -z "$ac_cpp_err"; then
2443
# Broken: success on invalid input.
2446
echo "$as_me: failed program was:" >&5
2447
sed 's/^/| /' conftest.$ac_ext >&5
2449
# Passes both tests.
2453
rm -f conftest.err conftest.$ac_ext
2456
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2457
rm -f conftest.err conftest.$ac_ext
2458
if $ac_preproc_ok; then
2470
echo "$as_me:$LINENO: result: $CPP" >&5
2471
echo "${ECHO_T}$CPP" >&6
2473
for ac_c_preproc_warn_flag in '' yes
2475
# Use a header file that comes with gcc, so configuring glibc
2476
# with a fresh cross-compiler works.
2477
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2478
# <limits.h> exists even on freestanding compilers.
2479
# On the NeXT, cc -E runs the code through the compiler's parser,
2480
# not just through cpp. "Syntax error" is here to catch this case.
2481
cat >conftest.$ac_ext <<_ACEOF
2484
cat confdefs.h >>conftest.$ac_ext
2485
cat >>conftest.$ac_ext <<_ACEOF
2486
/* end confdefs.h. */
2488
# include <limits.h>
2490
# include <assert.h>
2494
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497
grep -v '^ *+' conftest.er1 >conftest.err
2499
cat conftest.err >&5
2500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501
(exit $ac_status); } >/dev/null; then
2502
if test -s conftest.err; then
2503
ac_cpp_err=$ac_c_preproc_warn_flag
2504
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2511
if test -z "$ac_cpp_err"; then
2514
echo "$as_me: failed program was:" >&5
2515
sed 's/^/| /' conftest.$ac_ext >&5
2517
# Broken: fails on valid input.
2520
rm -f conftest.err conftest.$ac_ext
2522
# OK, works on sane cases. Now check whether non-existent headers
2523
# can be detected and how.
2524
cat >conftest.$ac_ext <<_ACEOF
2527
cat confdefs.h >>conftest.$ac_ext
2528
cat >>conftest.$ac_ext <<_ACEOF
2529
/* end confdefs.h. */
2530
#include <ac_nonexistent.h>
2532
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535
grep -v '^ *+' conftest.er1 >conftest.err
2537
cat conftest.err >&5
2538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539
(exit $ac_status); } >/dev/null; then
2540
if test -s conftest.err; then
2541
ac_cpp_err=$ac_c_preproc_warn_flag
2542
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2549
if test -z "$ac_cpp_err"; then
2550
# Broken: success on invalid input.
2553
echo "$as_me: failed program was:" >&5
2554
sed 's/^/| /' conftest.$ac_ext >&5
2556
# Passes both tests.
2560
rm -f conftest.err conftest.$ac_ext
2563
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2564
rm -f conftest.err conftest.$ac_ext
2565
if $ac_preproc_ok; then
2568
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2569
See \`config.log' for more details." >&5
2570
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2571
See \`config.log' for more details." >&2;}
2572
{ (exit 1); exit 1; }; }
2576
ac_cpp='$CPP $CPPFLAGS'
2577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
# Make sure we can run config.sub.
2583
$ac_config_sub sun4 >/dev/null 2>&1 ||
2584
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2585
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2586
{ (exit 1); exit 1; }; }
2588
echo "$as_me:$LINENO: checking build system type" >&5
2589
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2590
if test "${ac_cv_build+set}" = set; then
2591
echo $ECHO_N "(cached) $ECHO_C" >&6
2593
ac_cv_build_alias=$build_alias
2594
test -z "$ac_cv_build_alias" &&
2595
ac_cv_build_alias=`$ac_config_guess`
2596
test -z "$ac_cv_build_alias" &&
2597
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2598
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2599
{ (exit 1); exit 1; }; }
2600
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2601
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2602
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2603
{ (exit 1); exit 1; }; }
2606
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2607
echo "${ECHO_T}$ac_cv_build" >&6
2609
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2610
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2611
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2614
echo "$as_me:$LINENO: checking host system type" >&5
2615
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2616
if test "${ac_cv_host+set}" = set; then
2617
echo $ECHO_N "(cached) $ECHO_C" >&6
2619
ac_cv_host_alias=$host_alias
2620
test -z "$ac_cv_host_alias" &&
2621
ac_cv_host_alias=$ac_cv_build_alias
2622
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2623
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2624
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2625
{ (exit 1); exit 1; }; }
2628
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2629
echo "${ECHO_T}$ac_cv_host" >&6
2631
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2632
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2633
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2636
echo "$as_me:$LINENO: checking for egrep" >&5
2637
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2638
if test "${ac_cv_prog_egrep+set}" = set; then
2639
echo $ECHO_N "(cached) $ECHO_C" >&6
2641
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2642
then ac_cv_prog_egrep='grep -E'
2643
else ac_cv_prog_egrep='egrep'
2646
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2647
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2648
EGREP=$ac_cv_prog_egrep
2651
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2652
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2653
if test "${ac_cv_header_stdc+set}" = set; then
2654
echo $ECHO_N "(cached) $ECHO_C" >&6
2656
cat >conftest.$ac_ext <<_ACEOF
2659
cat confdefs.h >>conftest.$ac_ext
2660
cat >>conftest.$ac_ext <<_ACEOF
2661
/* end confdefs.h. */
2675
rm -f conftest.$ac_objext
2676
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677
(eval $ac_compile) 2>conftest.er1
2679
grep -v '^ *+' conftest.er1 >conftest.err
2681
cat conftest.err >&5
2682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
(exit $ac_status); } &&
2684
{ ac_try='test -z "$ac_c_werror_flag"
2685
|| test ! -s conftest.err'
2686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690
(exit $ac_status); }; } &&
2691
{ ac_try='test -s conftest.$ac_objext'
2692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); }; }; then
2697
ac_cv_header_stdc=yes
2699
echo "$as_me: failed program was:" >&5
2700
sed 's/^/| /' conftest.$ac_ext >&5
2702
ac_cv_header_stdc=no
2704
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706
if test $ac_cv_header_stdc = yes; then
2707
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2708
cat >conftest.$ac_ext <<_ACEOF
2711
cat confdefs.h >>conftest.$ac_ext
2712
cat >>conftest.$ac_ext <<_ACEOF
2713
/* end confdefs.h. */
2717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2718
$EGREP "memchr" >/dev/null 2>&1; then
2721
ac_cv_header_stdc=no
2727
if test $ac_cv_header_stdc = yes; then
2728
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2729
cat >conftest.$ac_ext <<_ACEOF
2732
cat confdefs.h >>conftest.$ac_ext
2733
cat >>conftest.$ac_ext <<_ACEOF
2734
/* end confdefs.h. */
2738
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2739
$EGREP "free" >/dev/null 2>&1; then
2742
ac_cv_header_stdc=no
2748
if test $ac_cv_header_stdc = yes; then
2749
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2750
if test "$cross_compiling" = yes; then
2753
cat >conftest.$ac_ext <<_ACEOF
2756
cat confdefs.h >>conftest.$ac_ext
2757
cat >>conftest.$ac_ext <<_ACEOF
2758
/* end confdefs.h. */
2760
#if ((' ' & 0x0FF) == 0x020)
2761
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2762
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2764
# define ISLOWER(c) \
2765
(('a' <= (c) && (c) <= 'i') \
2766
|| ('j' <= (c) && (c) <= 'r') \
2767
|| ('s' <= (c) && (c) <= 'z'))
2768
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2771
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2776
for (i = 0; i < 256; i++)
2777
if (XOR (islower (i), ISLOWER (i))
2778
|| toupper (i) != TOUPPER (i))
2783
rm -f conftest$ac_exeext
2784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2785
(eval $ac_link) 2>&5
2787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
(exit $ac_status); }; }; then
2796
echo "$as_me: program exited with status $ac_status" >&5
2797
echo "$as_me: failed program was:" >&5
2798
sed 's/^/| /' conftest.$ac_ext >&5
2801
ac_cv_header_stdc=no
2803
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2807
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2808
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2809
if test $ac_cv_header_stdc = yes; then
2811
cat >>confdefs.h <<\_ACEOF
2812
#define STDC_HEADERS 1
2817
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2827
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2828
inttypes.h stdint.h unistd.h
2830
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2831
echo "$as_me:$LINENO: checking for $ac_header" >&5
2832
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2833
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2834
echo $ECHO_N "(cached) $ECHO_C" >&6
2836
cat >conftest.$ac_ext <<_ACEOF
2839
cat confdefs.h >>conftest.$ac_ext
2840
cat >>conftest.$ac_ext <<_ACEOF
2841
/* end confdefs.h. */
2842
$ac_includes_default
2844
#include <$ac_header>
2846
rm -f conftest.$ac_objext
2847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848
(eval $ac_compile) 2>conftest.er1
2850
grep -v '^ *+' conftest.er1 >conftest.err
2852
cat conftest.err >&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); } &&
2855
{ ac_try='test -z "$ac_c_werror_flag"
2856
|| test ! -s conftest.err'
2857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861
(exit $ac_status); }; } &&
2862
{ ac_try='test -s conftest.$ac_objext'
2863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
(exit $ac_status); }; }; then
2868
eval "$as_ac_Header=yes"
2870
echo "$as_me: failed program was:" >&5
2871
sed 's/^/| /' conftest.$ac_ext >&5
2873
eval "$as_ac_Header=no"
2875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2878
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2879
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2880
cat >>confdefs.h <<_ACEOF
2881
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2891
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2892
if test $ac_cv_c_compiler_gnu = yes ; then
2897
echo "$as_me:$LINENO: checking for GNU linker" >&5
2898
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2899
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2900
echo $ECHO_N "(cached) $ECHO_C" >&6
2902
krb5_cv_prog_gnu_ld=no
2903
if test "$GCC" = yes; then
2904
if { ac_try='$CC -Wl,-v 2>&1 | grep "GNU ld" > /dev/null'
2905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
(exit $ac_status); }; }; then
2910
krb5_cv_prog_gnu_ld=yes
2914
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2915
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2916
# maybe add -Waggregate-return, or can we assume that actually works by now?
2917
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2918
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2919
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2920
-Wcast-align -Wconversion -Wshadow"
2921
if test "$GCC" = yes ; then
2922
if test "x$krb5_ac_cflags_set" = xset ; then
2923
{ echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2924
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2926
{ echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2927
echo "$as_me: adding extra warning flags for gcc" >&6;}
2928
CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2929
if test "`uname -s`" = Darwin ; then
2930
{ echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2931
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2932
elif test "`uname -s`" = Linux ; then
2933
{ echo "$as_me:$LINENO: skipping pedantic warnings on Linux" >&5
2934
echo "$as_me: skipping pedantic warnings on Linux" >&6;}
2936
CFLAGS="$CFLAGS -pedantic"
2939
if test "`uname -s`" = Darwin ; then
2940
# Someday this should be a feature test.
2941
# One current (Jaguar = OS 10.2) problem:
2942
# Archive library with foo.o undef sym X and bar.o common sym X,
2943
# if foo.o is pulled in at link time, bar.o may not be, causing
2944
# the linker to complain.
2945
# Dynamic library problems too?
2946
case "$CC $CFLAGS" in
2947
*-fcommon*) ;; # why someone would do this, I don't know
2948
*-fno-common*) ;; # okay, they're already doing the right thing
2950
{ echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2951
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2952
CFLAGS="$CFLAGS -fno-common"
2955
case "$LD $LDFLAGS" in
2956
*-Wl,-search_paths_first*) ;;
2957
*) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2961
if test "`uname -s`" = AIX ; then
2962
# Using AIX but not GCC, assume native compiler.
2963
# The native compiler appears not to give a nonzero exit
2964
# status for certain classes of errors, like missing arguments
2965
# in function calls. Let's try to fix that with -qhalt=e.
2966
case "$CC $CFLAGS" in
2969
CFLAGS="$CFLAGS -qhalt=e"
2970
{ echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2971
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2974
# Also, the optimizer isn't turned on by default, which means
2975
# the static inline functions get left in random object files,
2976
# leading to references to pthread_mutex_lock from anything that
2977
# includes k5-int.h whether it uses threads or not.
2978
case "$CC $CFLAGS" in
2982
{ echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2983
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2989
if test -z "$LD" ; then LD=$CC; fi
2993
# Check whether --with-krb4 or --without-krb4 was given.
2994
if test "${with_krb4+set}" = set; then
2995
withval="$with_krb4"
3000
fi; if test $withval = no; then
3001
{ echo "$as_me:$LINENO: no krb4 support" >&5
3002
echo "$as_me: no krb4 support" >&6;}
3008
krb5_cv_build_krb4_libs=no
3009
krb5_cv_krb4_libdir=
3012
cat >>confdefs.h <<\_ACEOF
3013
#define KRB5_KRB4_COMPAT 1
3016
if test $withval = yes; then
3017
{ echo "$as_me:$LINENO: enabling built in krb4 support" >&5
3018
echo "$as_me: enabling built in krb4 support" >&6;}
3019
KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
3021
KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3023
KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3024
krb5_cv_build_krb4_libs=yes
3025
krb5_cv_krb4_libdir=
3027
{ echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3028
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3030
KRB4_INCLUDES="-I$withval/include"
3031
KRB4_LIBPATH="-L$withval/lib"
3033
krb5_cv_build_krb4_libs=no
3034
krb5_cv_krb4_libdir="$withval/lib"
3042
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3048
# Check whether --with-system-et or --without-system-et was given.
3049
if test "${with_system_et+set}" = set; then
3050
withval="$with_system_et"
3053
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
3054
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
3055
if test "x$with_system_et" = xyes ; then
3057
echo "$as_me:$LINENO: result: system" >&5
3058
echo "${ECHO_T}system" >&6
3061
echo "$as_me:$LINENO: result: krb5" >&5
3062
echo "${ECHO_T}krb5" >&6
3064
if test $COM_ERR_VERSION = sys; then
3065
# check for various functions we need
3066
echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
3067
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
3068
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
3069
echo $ECHO_N "(cached) $ECHO_C" >&6
3071
ac_check_lib_save_LIBS=$LIBS
3072
LIBS="-lcom_err $LIBS"
3073
cat >conftest.$ac_ext <<_ACEOF
3076
cat confdefs.h >>conftest.$ac_ext
3077
cat >>conftest.$ac_ext <<_ACEOF
3078
/* end confdefs.h. */
3080
/* Override any gcc2 internal prototype to avoid an error. */
3084
/* We use char because int might match the return type of a gcc2
3085
builtin and then its argument prototype would still apply. */
3086
char add_error_table ();
3095
rm -f conftest.$ac_objext conftest$ac_exeext
3096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097
(eval $ac_link) 2>conftest.er1
3099
grep -v '^ *+' conftest.er1 >conftest.err
3101
cat conftest.err >&5
3102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); } &&
3104
{ ac_try='test -z "$ac_c_werror_flag"
3105
|| test ! -s conftest.err'
3106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110
(exit $ac_status); }; } &&
3111
{ ac_try='test -s conftest$ac_exeext'
3112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
(exit $ac_status); }; }; then
3117
ac_cv_lib_com_err_add_error_table=yes
3119
echo "$as_me: failed program was:" >&5
3120
sed 's/^/| /' conftest.$ac_ext >&5
3122
ac_cv_lib_com_err_add_error_table=no
3124
rm -f conftest.err conftest.$ac_objext \
3125
conftest$ac_exeext conftest.$ac_ext
3126
LIBS=$ac_check_lib_save_LIBS
3128
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
3129
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
3130
if test $ac_cv_lib_com_err_add_error_table = yes; then
3133
{ { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
3134
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
3135
{ (exit 1); exit 1; }; }
3138
echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
3139
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
3140
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
3141
echo $ECHO_N "(cached) $ECHO_C" >&6
3143
ac_check_lib_save_LIBS=$LIBS
3144
LIBS="-lcom_err $LIBS"
3145
cat >conftest.$ac_ext <<_ACEOF
3148
cat confdefs.h >>conftest.$ac_ext
3149
cat >>conftest.$ac_ext <<_ACEOF
3150
/* end confdefs.h. */
3152
/* Override any gcc2 internal prototype to avoid an error. */
3156
/* We use char because int might match the return type of a gcc2
3157
builtin and then its argument prototype would still apply. */
3158
char remove_error_table ();
3162
remove_error_table ();
3167
rm -f conftest.$ac_objext conftest$ac_exeext
3168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169
(eval $ac_link) 2>conftest.er1
3171
grep -v '^ *+' conftest.er1 >conftest.err
3173
cat conftest.err >&5
3174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175
(exit $ac_status); } &&
3176
{ ac_try='test -z "$ac_c_werror_flag"
3177
|| test ! -s conftest.err'
3178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); }; } &&
3183
{ ac_try='test -s conftest$ac_exeext'
3184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); }; }; then
3189
ac_cv_lib_com_err_remove_error_table=yes
3191
echo "$as_me: failed program was:" >&5
3192
sed 's/^/| /' conftest.$ac_ext >&5
3194
ac_cv_lib_com_err_remove_error_table=no
3196
rm -f conftest.err conftest.$ac_objext \
3197
conftest$ac_exeext conftest.$ac_ext
3198
LIBS=$ac_check_lib_save_LIBS
3200
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
3201
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
3202
if test $ac_cv_lib_com_err_remove_error_table = yes; then
3205
{ { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
3206
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
3207
{ (exit 1); exit 1; }; }
3210
# make sure compile_et provides "et_foo" name
3211
cat >> conf$$e.et <<EOF
3213
error_code ERR_FOO, "foo"
3216
for ac_prog in compile_et
3218
# Extract the first word of "$ac_prog", so it can be a program name with args.
3219
set dummy $ac_prog; ac_word=$2
3220
echo "$as_me:$LINENO: checking for $ac_word" >&5
3221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222
if test "${ac_cv_prog_compile_et+set}" = set; then
3223
echo $ECHO_N "(cached) $ECHO_C" >&6
3225
if test -n "$compile_et"; then
3226
ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
3228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232
test -z "$as_dir" && as_dir=.
3233
for ac_exec_ext in '' $ac_executable_extensions; do
3234
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235
ac_cv_prog_compile_et="$ac_prog"
3236
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244
compile_et=$ac_cv_prog_compile_et
3245
if test -n "$compile_et"; then
3246
echo "$as_me:$LINENO: result: $compile_et" >&5
3247
echo "${ECHO_T}$compile_et" >&6
3249
echo "$as_me:$LINENO: result: no" >&5
3250
echo "${ECHO_T}no" >&6
3253
test -n "$compile_et" && break
3255
test -n "$compile_et" || compile_et="false"
3257
if test "$compile_et" = false; then
3258
{ { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
3259
echo "$as_me: error: cannot find compile_et" >&2;}
3260
{ (exit 1); exit 1; }; }
3262
echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3263
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3264
if test "${krb5_cv_compile_et_useful+set}" = set; then
3265
echo $ECHO_N "(cached) $ECHO_C" >&6
3268
if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3269
{ { echo "$as_me:$LINENO: error: execution failed" >&5
3270
echo "$as_me: error: execution failed" >&2;}
3271
{ (exit 1); exit 1; }; }
3273
cat >conftest.$ac_ext <<_ACEOF
3276
cat confdefs.h >>conftest.$ac_ext
3277
cat >>conftest.$ac_ext <<_ACEOF
3278
/* end confdefs.h. */
3279
#include "conf$$e.h"
3284
&et_foo_error_table;
3289
rm -f conftest.$ac_objext
3290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291
(eval $ac_compile) 2>conftest.er1
3293
grep -v '^ *+' conftest.er1 >conftest.err
3295
cat conftest.err >&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); } &&
3298
{ ac_try='test -z "$ac_c_werror_flag"
3299
|| test ! -s conftest.err'
3300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304
(exit $ac_status); }; } &&
3305
{ ac_try='test -s conftest.$ac_objext'
3306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
(exit $ac_status); }; }; then
3313
echo "$as_me: failed program was:" >&5
3314
sed 's/^/| /' conftest.$ac_ext >&5
3316
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3317
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3318
{ (exit 1); exit 1; }; }
3320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321
# Anything else we need to test for?
3322
rm -f conf$$e.et conf$$e.c conf$$e.h
3323
krb5_cv_compile_et_useful=yes
3326
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3327
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3332
# Check whether --with-system-ss or --without-system-ss was given.
3333
if test "${with_system_ss+set}" = set; then
3334
withval="$with_system_ss"
3338
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3339
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3340
if test "x$with_system_ss" = xyes ; then
3342
echo "$as_me:$LINENO: result: system" >&5
3343
echo "${ECHO_T}system" >&6
3344
# todo: check for various libraries we might need
3345
# in the meantime...
3346
test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3348
LIBS="$LIBS $SS_LIB"
3349
echo "$as_me:$LINENO: checking whether system ss package works" >&5
3350
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3351
if test "${krb5_cv_system_ss_okay+set}" = set; then
3352
echo $ECHO_N "(cached) $ECHO_C" >&6
3355
if test "$cross_compiling" = yes; then
3356
krb5_cv_system_ss_okay="assumed"
3358
cat >conftest.$ac_ext <<_ACEOF
3361
cat confdefs.h >>conftest.$ac_ext
3362
cat >>conftest.$ac_ext <<_ACEOF
3363
/* end confdefs.h. */
3366
int main(int argc, char *argv[]) {
3369
i = ss_create_invocation("foo","foo","",0,&err);
3375
rm -f conftest$ac_exeext
3376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377
(eval $ac_link) 2>&5
3379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385
(exit $ac_status); }; }; then
3386
krb5_cv_system_ss_okay=yes
3388
echo "$as_me: program exited with status $ac_status" >&5
3389
echo "$as_me: failed program was:" >&5
3390
sed 's/^/| /' conftest.$ac_ext >&5
3393
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3394
echo "$as_me: error: cannot run test program" >&2;}
3395
{ (exit 1); exit 1; }; }
3397
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3401
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3405
echo "$as_me:$LINENO: result: krb5" >&5
3406
echo "${ECHO_T}krb5" >&6
3412
# Check whether --with-system-db or --without-system-db was given.
3413
if test "${with_system_db+set}" = set; then
3414
withval="$with_system_db"
3419
if test "x$with_system_db" = xyes ; then
3421
# TODO: Do we have specific routines we should check for?
3422
# How about known, easily recognizable bugs?
3423
# We want to use bt_rseq in some cases, but no other version but
3424
# ours has it right now.
3426
# Okay, check the variables.
3427
test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3428
test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3430
if test "x${DB_HEADER}" = xdb.h ; then
3431
DB_HEADER_VERSION=sys
3433
DB_HEADER_VERSION=redirect
3435
KDB5_DB_LIB="$DB_LIB"
3439
cat >>confdefs.h <<\_ACEOF
3440
#define HAVE_BT_RSEQ 1
3444
DB_HEADER_VERSION=k5
3445
# libdb gets sucked into libkdb
3447
# needed for a couple of things that need libdb for its own sake
3455
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3456
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3457
if test "${ac_cv_c_const+set}" = set; then
3458
echo $ECHO_N "(cached) $ECHO_C" >&6
3460
cat >conftest.$ac_ext <<_ACEOF
3463
cat confdefs.h >>conftest.$ac_ext
3464
cat >>conftest.$ac_ext <<_ACEOF
3465
/* end confdefs.h. */
3470
/* FIXME: Include the comments suggested by Paul. */
3472
/* Ultrix mips cc rejects this. */
3473
typedef int charset[2];
3475
/* SunOS 4.1.1 cc rejects this. */
3476
char const *const *ccp;
3478
/* NEC SVR4.0.2 mips cc rejects this. */
3479
struct point {int x, y;};
3480
static struct point const zero = {0,0};
3481
/* AIX XL C 1.02.0.0 rejects this.
3482
It does not let you subtract one const X* pointer from another in
3483
an arm of an if-expression whose if-part is not a constant
3485
const char *g = "string";
3486
ccp = &g + (g ? g-g : 0);
3487
/* HPUX 7.0 cc rejects these. */
3490
ccp = (char const *const *) p;
3491
{ /* SCO 3.2v4 cc rejects this. */
3493
char const *s = 0 ? (char *) 0 : (char const *) 0;
3497
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3499
const int *foo = &x[0];
3502
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3503
typedef const int *iptr;
3507
{ /* AIX XL C 1.02.0.0 rejects this saying
3508
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3509
struct s { int j; const int *ap[3]; };
3510
struct s *b; b->j = 5;
3512
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3521
rm -f conftest.$ac_objext
3522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523
(eval $ac_compile) 2>conftest.er1
3525
grep -v '^ *+' conftest.er1 >conftest.err
3527
cat conftest.err >&5
3528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529
(exit $ac_status); } &&
3530
{ ac_try='test -z "$ac_c_werror_flag"
3531
|| test ! -s conftest.err'
3532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536
(exit $ac_status); }; } &&
3537
{ ac_try='test -s conftest.$ac_objext'
3538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542
(exit $ac_status); }; }; then
3545
echo "$as_me: failed program was:" >&5
3546
sed 's/^/| /' conftest.$ac_ext >&5
3550
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3553
echo "${ECHO_T}$ac_cv_c_const" >&6
3554
if test $ac_cv_c_const = no; then
3556
cat >>confdefs.h <<\_ACEOF
3563
# Check whether --with-netlib or --without-netlib was given.
3564
if test "${with_netlib+set}" = set; then
3565
withval="$with_netlib"
3566
if test "$withval" = yes -o "$withval" = no ; then
3567
echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3568
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3570
LIBS="$LIBS $withval"
3571
echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3572
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3577
# Most operating systems have gethostbyname() in the default searched
3578
# libraries (i.e. libc):
3579
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3580
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3581
if test "${ac_cv_func_gethostbyname+set}" = set; then
3582
echo $ECHO_N "(cached) $ECHO_C" >&6
3584
cat >conftest.$ac_ext <<_ACEOF
3587
cat confdefs.h >>conftest.$ac_ext
3588
cat >>conftest.$ac_ext <<_ACEOF
3589
/* end confdefs.h. */
3590
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3591
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3592
#define gethostbyname innocuous_gethostbyname
3594
/* System header to define __stub macros and hopefully few prototypes,
3595
which can conflict with char gethostbyname (); below.
3596
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597
<limits.h> exists even on freestanding compilers. */
3600
# include <limits.h>
3602
# include <assert.h>
3605
#undef gethostbyname
3607
/* Override any gcc2 internal prototype to avoid an error. */
3612
/* We use char because int might match the return type of a gcc2
3613
builtin and then its argument prototype would still apply. */
3614
char gethostbyname ();
3615
/* The GNU C library defines this for functions which it implements
3616
to always fail with ENOSYS. Some functions are actually named
3617
something starting with __ and the normal name is an alias. */
3618
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3621
char (*f) () = gethostbyname;
3630
return f != gethostbyname;
3635
rm -f conftest.$ac_objext conftest$ac_exeext
3636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3637
(eval $ac_link) 2>conftest.er1
3639
grep -v '^ *+' conftest.er1 >conftest.err
3641
cat conftest.err >&5
3642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
(exit $ac_status); } &&
3644
{ ac_try='test -z "$ac_c_werror_flag"
3645
|| test ! -s conftest.err'
3646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650
(exit $ac_status); }; } &&
3651
{ ac_try='test -s conftest$ac_exeext'
3652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656
(exit $ac_status); }; }; then
3657
ac_cv_func_gethostbyname=yes
3659
echo "$as_me: failed program was:" >&5
3660
sed 's/^/| /' conftest.$ac_ext >&5
3662
ac_cv_func_gethostbyname=no
3664
rm -f conftest.err conftest.$ac_objext \
3665
conftest$ac_exeext conftest.$ac_ext
3667
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3668
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3669
if test $ac_cv_func_gethostbyname = yes; then
3673
# Some OSes (eg. Solaris) place it in libnsl:
3675
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3676
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3677
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3678
echo $ECHO_N "(cached) $ECHO_C" >&6
3680
ac_check_lib_save_LIBS=$LIBS
3682
cat >conftest.$ac_ext <<_ACEOF
3685
cat confdefs.h >>conftest.$ac_ext
3686
cat >>conftest.$ac_ext <<_ACEOF
3687
/* end confdefs.h. */
3689
/* Override any gcc2 internal prototype to avoid an error. */
3693
/* We use char because int might match the return type of a gcc2
3694
builtin and then its argument prototype would still apply. */
3695
char gethostbyname ();
3704
rm -f conftest.$ac_objext conftest$ac_exeext
3705
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706
(eval $ac_link) 2>conftest.er1
3708
grep -v '^ *+' conftest.er1 >conftest.err
3710
cat conftest.err >&5
3711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712
(exit $ac_status); } &&
3713
{ ac_try='test -z "$ac_c_werror_flag"
3714
|| test ! -s conftest.err'
3715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); }; } &&
3720
{ ac_try='test -s conftest$ac_exeext'
3721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725
(exit $ac_status); }; }; then
3726
ac_cv_lib_nsl_gethostbyname=yes
3728
echo "$as_me: failed program was:" >&5
3729
sed 's/^/| /' conftest.$ac_ext >&5
3731
ac_cv_lib_nsl_gethostbyname=no
3733
rm -f conftest.err conftest.$ac_objext \
3734
conftest$ac_exeext conftest.$ac_ext
3735
LIBS=$ac_check_lib_save_LIBS
3737
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3738
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3739
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3740
cat >>confdefs.h <<_ACEOF
3741
#define HAVE_LIBNSL 1
3748
# Some strange OSes (SINIX) have it in libsocket:
3750
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3751
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3752
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3753
echo $ECHO_N "(cached) $ECHO_C" >&6
3755
ac_check_lib_save_LIBS=$LIBS
3756
LIBS="-lsocket $LIBS"
3757
cat >conftest.$ac_ext <<_ACEOF
3760
cat confdefs.h >>conftest.$ac_ext
3761
cat >>conftest.$ac_ext <<_ACEOF
3762
/* end confdefs.h. */
3764
/* Override any gcc2 internal prototype to avoid an error. */
3768
/* We use char because int might match the return type of a gcc2
3769
builtin and then its argument prototype would still apply. */
3770
char gethostbyname ();
3779
rm -f conftest.$ac_objext conftest$ac_exeext
3780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781
(eval $ac_link) 2>conftest.er1
3783
grep -v '^ *+' conftest.er1 >conftest.err
3785
cat conftest.err >&5
3786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787
(exit $ac_status); } &&
3788
{ ac_try='test -z "$ac_c_werror_flag"
3789
|| test ! -s conftest.err'
3790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
(exit $ac_status); }; } &&
3795
{ ac_try='test -s conftest$ac_exeext'
3796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800
(exit $ac_status); }; }; then
3801
ac_cv_lib_socket_gethostbyname=yes
3803
echo "$as_me: failed program was:" >&5
3804
sed 's/^/| /' conftest.$ac_ext >&5
3806
ac_cv_lib_socket_gethostbyname=no
3808
rm -f conftest.err conftest.$ac_objext \
3809
conftest$ac_exeext conftest.$ac_ext
3810
LIBS=$ac_check_lib_save_LIBS
3812
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3813
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3814
if test $ac_cv_lib_socket_gethostbyname = yes; then
3815
cat >>confdefs.h <<_ACEOF
3816
#define HAVE_LIBSOCKET 1
3819
LIBS="-lsocket $LIBS"
3823
# Unfortunately libsocket sometimes depends on libnsl.
3824
# AC_CHECK_LIB's API is essentially broken so the following
3825
# ugliness is necessary:
3826
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3827
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3828
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3829
echo $ECHO_N "(cached) $ECHO_C" >&6
3831
ac_check_lib_save_LIBS=$LIBS
3832
LIBS="-lsocket -lnsl $LIBS"
3833
cat >conftest.$ac_ext <<_ACEOF
3836
cat confdefs.h >>conftest.$ac_ext
3837
cat >>conftest.$ac_ext <<_ACEOF
3838
/* end confdefs.h. */
3840
/* Override any gcc2 internal prototype to avoid an error. */
3844
/* We use char because int might match the return type of a gcc2
3845
builtin and then its argument prototype would still apply. */
3846
char gethostbyname ();
3855
rm -f conftest.$ac_objext conftest$ac_exeext
3856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857
(eval $ac_link) 2>conftest.er1
3859
grep -v '^ *+' conftest.er1 >conftest.err
3861
cat conftest.err >&5
3862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863
(exit $ac_status); } &&
3864
{ ac_try='test -z "$ac_c_werror_flag"
3865
|| test ! -s conftest.err'
3866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
(exit $ac_status); }; } &&
3871
{ ac_try='test -s conftest$ac_exeext'
3872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
(exit $ac_status); }; }; then
3877
ac_cv_lib_socket_gethostbyname=yes
3879
echo "$as_me: failed program was:" >&5
3880
sed 's/^/| /' conftest.$ac_ext >&5
3882
ac_cv_lib_socket_gethostbyname=no
3884
rm -f conftest.err conftest.$ac_objext \
3885
conftest$ac_exeext conftest.$ac_ext
3886
LIBS=$ac_check_lib_save_LIBS
3888
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3889
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3890
if test $ac_cv_lib_socket_gethostbyname = yes; then
3891
LIBS="-lsocket -lnsl $LIBS"
3893
echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3894
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3895
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3896
echo $ECHO_N "(cached) $ECHO_C" >&6
3898
ac_check_lib_save_LIBS=$LIBS
3899
LIBS="-lresolv $LIBS"
3900
cat >conftest.$ac_ext <<_ACEOF
3903
cat confdefs.h >>conftest.$ac_ext
3904
cat >>conftest.$ac_ext <<_ACEOF
3905
/* end confdefs.h. */
3907
/* Override any gcc2 internal prototype to avoid an error. */
3911
/* We use char because int might match the return type of a gcc2
3912
builtin and then its argument prototype would still apply. */
3913
char gethostbyname ();
3922
rm -f conftest.$ac_objext conftest$ac_exeext
3923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924
(eval $ac_link) 2>conftest.er1
3926
grep -v '^ *+' conftest.er1 >conftest.err
3928
cat conftest.err >&5
3929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
(exit $ac_status); } &&
3931
{ ac_try='test -z "$ac_c_werror_flag"
3932
|| test ! -s conftest.err'
3933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
(exit $ac_status); }; } &&
3938
{ ac_try='test -s conftest$ac_exeext'
3939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
(exit $ac_status); }; }; then
3944
ac_cv_lib_resolv_gethostbyname=yes
3946
echo "$as_me: failed program was:" >&5
3947
sed 's/^/| /' conftest.$ac_ext >&5
3949
ac_cv_lib_resolv_gethostbyname=no
3951
rm -f conftest.err conftest.$ac_objext \
3952
conftest$ac_exeext conftest.$ac_ext
3953
LIBS=$ac_check_lib_save_LIBS
3955
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3956
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3957
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3958
LIBS="-lresolv $LIBS"
3972
echo "$as_me:$LINENO: checking for socket" >&5
3973
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3974
if test "${ac_cv_func_socket+set}" = set; then
3975
echo $ECHO_N "(cached) $ECHO_C" >&6
3977
cat >conftest.$ac_ext <<_ACEOF
3980
cat confdefs.h >>conftest.$ac_ext
3981
cat >>conftest.$ac_ext <<_ACEOF
3982
/* end confdefs.h. */
3983
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3984
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3985
#define socket innocuous_socket
3987
/* System header to define __stub macros and hopefully few prototypes,
3988
which can conflict with char socket (); below.
3989
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3990
<limits.h> exists even on freestanding compilers. */
3993
# include <limits.h>
3995
# include <assert.h>
4000
/* Override any gcc2 internal prototype to avoid an error. */
4005
/* We use char because int might match the return type of a gcc2
4006
builtin and then its argument prototype would still apply. */
4008
/* The GNU C library defines this for functions which it implements
4009
to always fail with ENOSYS. Some functions are actually named
4010
something starting with __ and the normal name is an alias. */
4011
#if defined (__stub_socket) || defined (__stub___socket)
4014
char (*f) () = socket;
4028
rm -f conftest.$ac_objext conftest$ac_exeext
4029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030
(eval $ac_link) 2>conftest.er1
4032
grep -v '^ *+' conftest.er1 >conftest.err
4034
cat conftest.err >&5
4035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036
(exit $ac_status); } &&
4037
{ ac_try='test -z "$ac_c_werror_flag"
4038
|| test ! -s conftest.err'
4039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
(exit $ac_status); }; } &&
4044
{ ac_try='test -s conftest$ac_exeext'
4045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049
(exit $ac_status); }; }; then
4050
ac_cv_func_socket=yes
4052
echo "$as_me: failed program was:" >&5
4053
sed 's/^/| /' conftest.$ac_ext >&5
4055
ac_cv_func_socket=no
4057
rm -f conftest.err conftest.$ac_objext \
4058
conftest$ac_exeext conftest.$ac_ext
4060
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4061
echo "${ECHO_T}$ac_cv_func_socket" >&6
4062
if test $ac_cv_func_socket = yes; then
4066
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4067
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4068
if test "${ac_cv_lib_socket_socket+set}" = set; then
4069
echo $ECHO_N "(cached) $ECHO_C" >&6
4071
ac_check_lib_save_LIBS=$LIBS
4072
LIBS="-lsocket $LIBS"
4073
cat >conftest.$ac_ext <<_ACEOF
4076
cat confdefs.h >>conftest.$ac_ext
4077
cat >>conftest.$ac_ext <<_ACEOF
4078
/* end confdefs.h. */
4080
/* Override any gcc2 internal prototype to avoid an error. */
4084
/* We use char because int might match the return type of a gcc2
4085
builtin and then its argument prototype would still apply. */
4095
rm -f conftest.$ac_objext conftest$ac_exeext
4096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097
(eval $ac_link) 2>conftest.er1
4099
grep -v '^ *+' conftest.er1 >conftest.err
4101
cat conftest.err >&5
4102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103
(exit $ac_status); } &&
4104
{ ac_try='test -z "$ac_c_werror_flag"
4105
|| test ! -s conftest.err'
4106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110
(exit $ac_status); }; } &&
4111
{ ac_try='test -s conftest$ac_exeext'
4112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
(exit $ac_status); }; }; then
4117
ac_cv_lib_socket_socket=yes
4119
echo "$as_me: failed program was:" >&5
4120
sed 's/^/| /' conftest.$ac_ext >&5
4122
ac_cv_lib_socket_socket=no
4124
rm -f conftest.err conftest.$ac_objext \
4125
conftest$ac_exeext conftest.$ac_ext
4126
LIBS=$ac_check_lib_save_LIBS
4128
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4129
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4130
if test $ac_cv_lib_socket_socket = yes; then
4131
cat >>confdefs.h <<_ACEOF
4132
#define HAVE_LIBSOCKET 1
4135
LIBS="-lsocket $LIBS"
4138
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4139
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4140
if test "${ac_cv_lib_socket_socket+set}" = set; then
4141
echo $ECHO_N "(cached) $ECHO_C" >&6
4143
ac_check_lib_save_LIBS=$LIBS
4144
LIBS="-lsocket -lnsl $LIBS"
4145
cat >conftest.$ac_ext <<_ACEOF
4148
cat confdefs.h >>conftest.$ac_ext
4149
cat >>conftest.$ac_ext <<_ACEOF
4150
/* end confdefs.h. */
4152
/* Override any gcc2 internal prototype to avoid an error. */
4156
/* We use char because int might match the return type of a gcc2
4157
builtin and then its argument prototype would still apply. */
4167
rm -f conftest.$ac_objext conftest$ac_exeext
4168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169
(eval $ac_link) 2>conftest.er1
4171
grep -v '^ *+' conftest.er1 >conftest.err
4173
cat conftest.err >&5
4174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
(exit $ac_status); } &&
4176
{ ac_try='test -z "$ac_c_werror_flag"
4177
|| test ! -s conftest.err'
4178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
(exit $ac_status); }; } &&
4183
{ ac_try='test -s conftest$ac_exeext'
4184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
(exit $ac_status); }; }; then
4189
ac_cv_lib_socket_socket=yes
4191
echo "$as_me: failed program was:" >&5
4192
sed 's/^/| /' conftest.$ac_ext >&5
4194
ac_cv_lib_socket_socket=no
4196
rm -f conftest.err conftest.$ac_objext \
4197
conftest$ac_exeext conftest.$ac_ext
4198
LIBS=$ac_check_lib_save_LIBS
4200
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4201
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4202
if test $ac_cv_lib_socket_socket = yes; then
4203
LIBS="-lsocket -lnsl $LIBS"
4212
enable_dns_for_kdc=yes
4214
cat >>confdefs.h <<\_ACEOF
4215
#define KRB5_DNS_LOOKUP_KDC 1
4219
# Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
4220
if test "${enable_dns_for_realm+set}" = set; then
4221
enableval="$enable_dns_for_realm"
4224
enable_dns_for_realm=no
4226
if test "$enable_dns_for_realm" = yes; then
4228
cat >>confdefs.h <<\_ACEOF
4229
#define KRB5_DNS_LOOKUP_REALM 1
4235
cat >>confdefs.h <<\_ACEOF
4236
#define KRB5_DNS_LOOKUP 1
4241
if test "$enable_dns" = yes ; then
4242
# We assume that if libresolv exists we can link against it.
4243
# This may get us a gethostby* that doesn't respect nsswitch.
4245
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4246
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4247
if test "${ac_cv_lib_resolv_main+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
ac_check_lib_save_LIBS=$LIBS
4251
LIBS="-lresolv $LIBS"
4252
cat >conftest.$ac_ext <<_ACEOF
4255
cat confdefs.h >>conftest.$ac_ext
4256
cat >>conftest.$ac_ext <<_ACEOF
4257
/* end confdefs.h. */
4268
rm -f conftest.$ac_objext conftest$ac_exeext
4269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270
(eval $ac_link) 2>conftest.er1
4272
grep -v '^ *+' conftest.er1 >conftest.err
4274
cat conftest.err >&5
4275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
(exit $ac_status); } &&
4277
{ ac_try='test -z "$ac_c_werror_flag"
4278
|| test ! -s conftest.err'
4279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283
(exit $ac_status); }; } &&
4284
{ ac_try='test -s conftest$ac_exeext'
4285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
(exit $ac_status); }; }; then
4290
ac_cv_lib_resolv_main=yes
4292
echo "$as_me: failed program was:" >&5
4293
sed 's/^/| /' conftest.$ac_ext >&5
4295
ac_cv_lib_resolv_main=no
4297
rm -f conftest.err conftest.$ac_objext \
4298
conftest$ac_exeext conftest.$ac_ext
4299
LIBS=$ac_check_lib_save_LIBS
4301
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4302
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4303
if test $ac_cv_lib_resolv_main = yes; then
4304
cat >>confdefs.h <<_ACEOF
4305
#define HAVE_LIBRESOLV 1
4308
LIBS="-lresolv $LIBS"
4321
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4323
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4324
# doesn't export it from libresolv.so, so we use extreme paranoia here
4325
# and check both for the declaration and that we can link against the
4327
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4328
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4329
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4330
echo $ECHO_N "(cached) $ECHO_C" >&6
4332
cat >conftest.$ac_ext <<_ACEOF
4335
cat confdefs.h >>conftest.$ac_ext
4336
cat >>conftest.$ac_ext <<_ACEOF
4337
/* end confdefs.h. */
4338
#include <sys/types.h>
4339
#include <netinet/in.h>
4340
#include <arpa/nameser.h>
4346
* Use volatile, or else optimization can cause false positives.
4348
void (* volatile p)() = (void (*)())$krb5_func;
4353
rm -f conftest.$ac_objext conftest$ac_exeext
4354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355
(eval $ac_link) 2>conftest.er1
4357
grep -v '^ *+' conftest.er1 >conftest.err
4359
cat conftest.err >&5
4360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
(exit $ac_status); } &&
4362
{ ac_try='test -z "$ac_c_werror_flag"
4363
|| test ! -s conftest.err'
4364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); }; } &&
4369
{ ac_try='test -s conftest$ac_exeext'
4370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374
(exit $ac_status); }; }; then
4375
eval "krb5_cv_func_$krb5_func=yes"
4377
echo "$as_me: failed program was:" >&5
4378
sed 's/^/| /' conftest.$ac_ext >&5
4380
eval "krb5_cv_func_$krb5_func=no"
4382
rm -f conftest.err conftest.$ac_objext \
4383
conftest$ac_exeext conftest.$ac_ext
4385
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4386
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4387
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4389
cat >>confdefs.h <<_ACEOF
4390
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4397
if test $krb5_cv_func_res_nsearch = no \
4398
&& test $krb5_cv_func_res_search = no; then
4399
# Attempt to link with res_search(), in case it's not prototyped.
4400
echo "$as_me:$LINENO: checking for res_search" >&5
4401
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4402
if test "${ac_cv_func_res_search+set}" = set; then
4403
echo $ECHO_N "(cached) $ECHO_C" >&6
4405
cat >conftest.$ac_ext <<_ACEOF
4408
cat confdefs.h >>conftest.$ac_ext
4409
cat >>conftest.$ac_ext <<_ACEOF
4410
/* end confdefs.h. */
4411
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4412
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4413
#define res_search innocuous_res_search
4415
/* System header to define __stub macros and hopefully few prototypes,
4416
which can conflict with char res_search (); below.
4417
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418
<limits.h> exists even on freestanding compilers. */
4421
# include <limits.h>
4423
# include <assert.h>
4428
/* Override any gcc2 internal prototype to avoid an error. */
4433
/* We use char because int might match the return type of a gcc2
4434
builtin and then its argument prototype would still apply. */
4436
/* The GNU C library defines this for functions which it implements
4437
to always fail with ENOSYS. Some functions are actually named
4438
something starting with __ and the normal name is an alias. */
4439
#if defined (__stub_res_search) || defined (__stub___res_search)
4442
char (*f) () = res_search;
4451
return f != res_search;
4456
rm -f conftest.$ac_objext conftest$ac_exeext
4457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458
(eval $ac_link) 2>conftest.er1
4460
grep -v '^ *+' conftest.er1 >conftest.err
4462
cat conftest.err >&5
4463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464
(exit $ac_status); } &&
4465
{ ac_try='test -z "$ac_c_werror_flag"
4466
|| test ! -s conftest.err'
4467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
(exit $ac_status); }; } &&
4472
{ ac_try='test -s conftest$ac_exeext'
4473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
(exit $ac_status); }; }; then
4478
ac_cv_func_res_search=yes
4480
echo "$as_me: failed program was:" >&5
4481
sed 's/^/| /' conftest.$ac_ext >&5
4483
ac_cv_func_res_search=no
4485
rm -f conftest.err conftest.$ac_objext \
4486
conftest$ac_exeext conftest.$ac_ext
4488
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4489
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4490
if test $ac_cv_func_res_search = yes; then
4492
cat >>confdefs.h <<\_ACEOF
4493
#define HAVE_RES_SEARCH 1
4497
{ { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4498
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4499
{ (exit 1); exit 1; }; }
4507
# Check whether --with-hesiod or --without-hesiod was given.
4508
if test "${with_hesiod+set}" = set; then
4509
withval="$with_hesiod"
4514
if test "$with_hesiod" != "no"; then
4515
HESIOD_DEFS=-DHESIOD
4516
echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4517
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4518
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4519
echo $ECHO_N "(cached) $ECHO_C" >&6
4521
ac_check_lib_save_LIBS=$LIBS
4522
LIBS="-lresolv $LIBS"
4523
cat >conftest.$ac_ext <<_ACEOF
4526
cat confdefs.h >>conftest.$ac_ext
4527
cat >>conftest.$ac_ext <<_ACEOF
4528
/* end confdefs.h. */
4530
/* Override any gcc2 internal prototype to avoid an error. */
4534
/* We use char because int might match the return type of a gcc2
4535
builtin and then its argument prototype would still apply. */
4545
rm -f conftest.$ac_objext conftest$ac_exeext
4546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547
(eval $ac_link) 2>conftest.er1
4549
grep -v '^ *+' conftest.er1 >conftest.err
4551
cat conftest.err >&5
4552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553
(exit $ac_status); } &&
4554
{ ac_try='test -z "$ac_c_werror_flag"
4555
|| test ! -s conftest.err'
4556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560
(exit $ac_status); }; } &&
4561
{ ac_try='test -s conftest$ac_exeext'
4562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566
(exit $ac_status); }; }; then
4567
ac_cv_lib_resolv_res_send=yes
4569
echo "$as_me: failed program was:" >&5
4570
sed 's/^/| /' conftest.$ac_ext >&5
4572
ac_cv_lib_resolv_res_send=no
4574
rm -f conftest.err conftest.$ac_objext \
4575
conftest$ac_exeext conftest.$ac_ext
4576
LIBS=$ac_check_lib_save_LIBS
4578
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4579
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4580
if test $ac_cv_lib_resolv_res_send = yes; then
4584
if test "$hesiod" != "yes"; then
4585
HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4587
HESIOD_LIBS="-lhesiod $res_lib"
4594
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4595
if test "${enable_maintainer_mode+set}" = set; then
4596
enableval="$enable_maintainer_mode"
4597
USE_MAINTAINER_MODE=$enableval
4599
USE_MAINTAINER_MODE=no
4601
if test "$USE_MAINTAINER_MODE" = yes; then
4602
MAINTAINER_MODE_TRUE=
4603
MAINTAINER_MODE_FALSE='#'
4604
{ echo "$as_me:$LINENO: enabling maintainer mode" >&5
4605
echo "$as_me: enabling maintainer mode" >&6;}
4607
MAINTAINER_MODE_TRUE='#'
4608
MAINTAINER_MODE_FALSE=
4610
MAINT=$MAINTAINER_MODE_TRUE
4614
test "$program_prefix" != NONE &&
4615
program_transform_name="s,^,$program_prefix,;$program_transform_name"
4616
# Use a double $ so make ignores it.
4617
test "$program_suffix" != NONE &&
4618
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4619
# Double any \ or $. echo might interpret backslashes.
4620
# By default was `s,x,x', remove it if useless.
4621
cat <<\_ACEOF >conftest.sed
4622
s/[\\$]/&&/g;s/;s,x,x,$//
4624
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4626
CONFIG_RELTOPDIR=$ac_reltopdir
4629
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4631
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4633
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4635
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4636
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4637
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4638
echo $ECHO_N "(cached) $ECHO_C" >&6
4640
cat >conftest.$ac_ext <<_ACEOF
4643
cat confdefs.h >>conftest.$ac_ext
4644
cat >>conftest.$ac_ext <<_ACEOF
4645
/* end confdefs.h. */
4647
extern int flurbl(void);
4651
if (&flurbl != 0) return flurbl();
4656
rm -f conftest.$ac_objext conftest$ac_exeext
4657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658
(eval $ac_link) 2>conftest.er1
4660
grep -v '^ *+' conftest.er1 >conftest.err
4662
cat conftest.err >&5
4663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
(exit $ac_status); } &&
4665
{ ac_try='test -z "$ac_c_werror_flag"
4666
|| test ! -s conftest.err'
4667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671
(exit $ac_status); }; } &&
4672
{ ac_try='test -s conftest$ac_exeext'
4673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677
(exit $ac_status); }; }; then
4678
krb5_cv_pragma_weak_ref=yes
4680
echo "$as_me: failed program was:" >&5
4681
sed 's/^/| /' conftest.$ac_ext >&5
4683
krb5_cv_pragma_weak_ref=no
4685
rm -f conftest.err conftest.$ac_objext \
4686
conftest$ac_exeext conftest.$ac_ext
4688
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4689
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4690
if test $krb5_cv_pragma_weak_ref = yes ; then
4692
cat >>confdefs.h <<\_ACEOF
4693
#define HAVE_PRAGMA_WEAK_REF 1
4699
# Check whether --with-ldap or --without-ldap was given.
4700
if test "${with_ldap+set}" = set; then
4701
withval="$with_ldap"
4703
OPENLDAP) with_ldap=yes ;;
4705
EDIRECTORY) { { echo "$as_me:$LINENO: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&5
4706
echo "$as_me: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&2;}
4707
{ (exit 1); exit 1; }; } ;;
4708
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-ldap=\"$withval\"" >&5
4709
echo "$as_me: error: Invalid option value --with-ldap=\"$withval\"" >&2;}
4710
{ (exit 1); exit 1; }; } ;;
4715
# Check whether --with-edirectory or --without-edirectory was given.
4716
if test "${with_edirectory+set}" = set; then
4717
withval="$with_edirectory"
4720
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-edirectory=\"$withval\"" >&5
4721
echo "$as_me: error: Invalid option value --with-edirectory=\"$withval\"" >&2;}
4722
{ (exit 1); exit 1; }; } ;;
4727
if test $with_ldap = yes; then
4728
if test $with_edirectory = yes; then
4729
{ { echo "$as_me:$LINENO: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&5
4730
echo "$as_me: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&2;}
4731
{ (exit 1); exit 1; }; }
4733
{ echo "$as_me:$LINENO: enabling OpenLDAP database backend module support" >&5
4734
echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
4736
elif test $with_edirectory = yes; then
4737
{ echo "$as_me:$LINENO: enabling eDirectory database backend module support" >&5
4738
echo "$as_me: enabling eDirectory database backend module support" >&6;}
4741
cat >>confdefs.h <<\_ACEOF
4742
#define HAVE_EDIRECTORY 1
4752
. $ac_topdir/config/shlib.conf
4754
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4755
if test "${enable_delayed_initialization+set}" = set; then
4756
enableval="$enable_delayed_initialization"
4759
enable_delayed_initialization=yes
4761
case "$enable_delayed_initialization" in
4764
cat >>confdefs.h <<\_ACEOF
4765
#define DELAY_INITIALIZER 1
4769
*) { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4770
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4771
{ (exit 1); exit 1; }; } ;;
4773
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4774
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4775
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4776
echo $ECHO_N "(cached) $ECHO_C" >&6
4778
rm -f conftest.1 conftest.2
4779
if test -r conftest.1 || test -r conftest.2 ; then
4780
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4781
echo "$as_me: error: write error in local file system?" >&2;}
4782
{ (exit 1); exit 1; }; }
4786
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4787
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4788
echo "$as_me: error: write error in local file system?" >&2;}
4789
{ (exit 1); exit 1; }; }
4793
# blindly assume we have 'unlink'...
4794
if test "$cross_compiling" = yes; then
4795
{ { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4796
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4797
{ (exit 1); exit 1; }; }
4799
cat >conftest.$ac_ext <<_ACEOF
4802
cat confdefs.h >>conftest.$ac_ext
4803
cat >>conftest.$ac_ext <<_ACEOF
4804
/* end confdefs.h. */
4805
void foo1() __attribute__((constructor));
4806
void foo1() { unlink("conftest.1"); }
4807
void foo2() __attribute__((destructor));
4808
void foo2() { unlink("conftest.2"); }
4809
int main () { return 0; }
4811
rm -f conftest$ac_exeext
4812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813
(eval $ac_link) 2>&5
4815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; }; then
4822
test -r conftest.1 || a=yes
4823
test -r conftest.2 || b=yes
4825
echo "$as_me: program exited with status $ac_status" >&5
4826
echo "$as_me: failed program was:" >&5
4827
sed 's/^/| /' conftest.$ac_ext >&5
4830
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4832
case $krb5_cv_host in
4834
# Under AIX 4.3.3, at least, shared library destructor functions
4835
# appear to get executed in reverse link order (right to left),
4836
# so that a library's destructor function may run after that of
4837
# libraries it depends on, and may still have to access in the
4840
# That counts as "not working", for me, but it's a much more
4841
# complicated test case to set up.
4845
krb5_cv_attr_constructor_destructor="$a,$b"
4848
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4849
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4850
# Okay, krb5_cv_... should be set now.
4851
case $krb5_cv_attr_constructor_destructor in
4854
cat >>confdefs.h <<\_ACEOF
4855
#define CONSTRUCTOR_ATTR_WORKS 1
4859
case $krb5_cv_attr_constructor_destructor in
4862
cat >>confdefs.h <<\_ACEOF
4863
#define DESTRUCTOR_ATTR_WORKS 1
4868
if test -z "$use_linker_init_option" ; then
4869
{ { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4870
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4871
{ (exit 1); exit 1; }; }
4873
if test "$use_linker_init_option" = yes; then
4875
cat >>confdefs.h <<\_ACEOF
4876
#define USE_LINKER_INIT_OPTION 1
4880
if test "$use_linker_fini_option" = yes; then
4882
cat >>confdefs.h <<\_ACEOF
4883
#define USE_LINKER_FINI_OPTION 1
4889
# Check whether --enable-thread-support or --disable-thread-support was given.
4890
if test "${enable_thread_support+set}" = set; then
4891
enableval="$enable_thread_support"
4894
enable_thread_support=yes
4896
if test "$enable_thread_support" = yes ; then
4897
{ echo "$as_me:$LINENO: enabling thread support" >&5
4898
echo "$as_me: enabling thread support" >&6;}
4900
cat >>confdefs.h <<\_ACEOF
4901
#define ENABLE_THREADS 1
4905
if test "$enable_thread_support" = yes; then
4911
ac_cpp='$CPP $CPPFLAGS'
4912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
# We used to check for pthread.h first, but this fails if pthread.h
4919
# requires special compiler flags (e.g. on True64 or Sequent).
4920
# It gets checked for in the link test anyway.
4922
# First of all, check if the user has set any of the PTHREAD_LIBS,
4923
# etcetera environment variables, and if threads linking works using
4925
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4926
save_CFLAGS="$CFLAGS"
4927
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4929
LIBS="$PTHREAD_LIBS $LIBS"
4930
echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4931
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4932
cat >conftest.$ac_ext <<_ACEOF
4935
cat confdefs.h >>conftest.$ac_ext
4936
cat >>conftest.$ac_ext <<_ACEOF
4937
/* end confdefs.h. */
4939
/* Override any gcc2 internal prototype to avoid an error. */
4943
/* We use char because int might match the return type of a gcc2
4944
builtin and then its argument prototype would still apply. */
4945
char pthread_join ();
4954
rm -f conftest.$ac_objext conftest$ac_exeext
4955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956
(eval $ac_link) 2>conftest.er1
4958
grep -v '^ *+' conftest.er1 >conftest.err
4960
cat conftest.err >&5
4961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
(exit $ac_status); } &&
4963
{ ac_try='test -z "$ac_c_werror_flag"
4964
|| test ! -s conftest.err'
4965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969
(exit $ac_status); }; } &&
4970
{ ac_try='test -s conftest$ac_exeext'
4971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
(exit $ac_status); }; }; then
4978
echo "$as_me: failed program was:" >&5
4979
sed 's/^/| /' conftest.$ac_ext >&5
4982
rm -f conftest.err conftest.$ac_objext \
4983
conftest$ac_exeext conftest.$ac_ext
4984
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4985
echo "${ECHO_T}$acx_pthread_ok" >&6
4986
if test x"$acx_pthread_ok" = xno; then
4991
CFLAGS="$save_CFLAGS"
4994
# We must check for the threads library under a number of different
4995
# names; the ordering is very important because some systems
4996
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4997
# libraries is broken (non-POSIX).
4999
# Create a list of thread flags to try. Items starting with a "-" are
5000
# C compiler flags, and other items are library names, except for "none"
5001
# which indicates that we try without any flags at all, and "pthread-config"
5002
# which is a program returning the flags for the Pth emulation library.
5004
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5006
# The ordering *is* (sometimes) important. Some notes on the
5007
# individual items follow:
5009
# pthreads: AIX (must check this before -lpthread)
5010
# none: in case threads are in libc; should be tried before -Kthread and
5011
# other compiler flags to prevent continual compiler warnings
5012
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5013
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5014
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5015
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5016
# -pthreads: Solaris/gcc
5017
# -mthreads: Mingw32/gcc, Lynx/gcc
5018
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5019
# doesn't hurt to check since this sometimes defines pthreads too;
5020
# also defines -D_REENTRANT)
5021
# pthread: Linux, etcetera
5022
# --thread-safe: KAI C++
5023
# pthread-config: use pthread-config program (for GNU Pth library)
5025
case "${host_cpu}-${host_os}" in
5028
# On Solaris (at least, for some versions), libc contains stubbed
5029
# (non-functional) versions of the pthreads routines, so link-based
5030
# tests will erroneously succeed. (We need to link with -pthread or
5031
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5032
# a function called by this macro, so we could check for that, but
5033
# who knows whether they'll stub that too in a future libc.) So,
5034
# we'll just look for -pthreads and -lpthread first:
5036
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5040
if test x"$acx_pthread_ok" = xno; then
5041
for flag in $acx_pthread_flags; do
5045
echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
5046
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
5050
echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
5051
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
5052
PTHREAD_CFLAGS="$flag"
5056
# Extract the first word of "pthread-config", so it can be a program name with args.
5057
set dummy pthread-config; ac_word=$2
5058
echo "$as_me:$LINENO: checking for $ac_word" >&5
5059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
5061
echo $ECHO_N "(cached) $ECHO_C" >&6
5063
if test -n "$acx_pthread_config"; then
5064
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070
test -z "$as_dir" && as_dir=.
5071
for ac_exec_ext in '' $ac_executable_extensions; do
5072
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073
ac_cv_prog_acx_pthread_config="yes"
5074
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5083
acx_pthread_config=$ac_cv_prog_acx_pthread_config
5084
if test -n "$acx_pthread_config"; then
5085
echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
5086
echo "${ECHO_T}$acx_pthread_config" >&6
5088
echo "$as_me:$LINENO: result: no" >&5
5089
echo "${ECHO_T}no" >&6
5092
if test x"$acx_pthread_config" = xno; then continue; fi
5093
PTHREAD_CFLAGS="`pthread-config --cflags`"
5094
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5098
echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
5099
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
5100
PTHREAD_LIBS="-l$flag"
5105
save_CFLAGS="$CFLAGS"
5106
LIBS="$PTHREAD_LIBS $LIBS"
5107
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5109
# Check for various functions. We must include pthread.h,
5110
# since some functions may be macros. (On the Sequent, we
5111
# need a special flag -Kthread to make this header compile.)
5112
# We check for pthread_join because it is in -lpthread on IRIX
5113
# while pthread_create is in libc. We check for pthread_attr_init
5114
# due to DEC craziness with -lpthreads. We check for
5115
# pthread_cleanup_push because it is one of the few pthread
5116
# functions on Solaris that doesn't have a non-functional libc stub.
5117
# We try pthread_create on general principles.
5118
cat >conftest.$ac_ext <<_ACEOF
5121
cat confdefs.h >>conftest.$ac_ext
5122
cat >>conftest.$ac_ext <<_ACEOF
5123
/* end confdefs.h. */
5124
#include <pthread.h>
5128
pthread_t th; pthread_join(th, 0);
5129
pthread_attr_init(0); pthread_cleanup_push(0, 0);
5130
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5135
rm -f conftest.$ac_objext conftest$ac_exeext
5136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137
(eval $ac_link) 2>conftest.er1
5139
grep -v '^ *+' conftest.er1 >conftest.err
5141
cat conftest.err >&5
5142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143
(exit $ac_status); } &&
5144
{ ac_try='test -z "$ac_c_werror_flag"
5145
|| test ! -s conftest.err'
5146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150
(exit $ac_status); }; } &&
5151
{ ac_try='test -s conftest$ac_exeext'
5152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
(exit $ac_status); }; }; then
5159
echo "$as_me: failed program was:" >&5
5160
sed 's/^/| /' conftest.$ac_ext >&5
5163
rm -f conftest.err conftest.$ac_objext \
5164
conftest$ac_exeext conftest.$ac_ext
5167
CFLAGS="$save_CFLAGS"
5169
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
5170
echo "${ECHO_T}$acx_pthread_ok" >&6
5171
if test "x$acx_pthread_ok" = xyes; then
5180
# Various other checks:
5181
if test "x$acx_pthread_ok" = xyes; then
5183
LIBS="$PTHREAD_LIBS $LIBS"
5184
save_CFLAGS="$CFLAGS"
5185
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5187
# Detect AIX lossage: threads are created detached by default
5188
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5189
echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
5190
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
5191
cat >conftest.$ac_ext <<_ACEOF
5194
cat confdefs.h >>conftest.$ac_ext
5195
cat >>conftest.$ac_ext <<_ACEOF
5196
/* end confdefs.h. */
5197
#include <pthread.h>
5201
int attr=PTHREAD_CREATE_JOINABLE;
5206
rm -f conftest.$ac_objext conftest$ac_exeext
5207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208
(eval $ac_link) 2>conftest.er1
5210
grep -v '^ *+' conftest.er1 >conftest.err
5212
cat conftest.err >&5
5213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
(exit $ac_status); } &&
5215
{ ac_try='test -z "$ac_c_werror_flag"
5216
|| test ! -s conftest.err'
5217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221
(exit $ac_status); }; } &&
5222
{ ac_try='test -s conftest$ac_exeext'
5223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
(exit $ac_status); }; }; then
5228
ok=PTHREAD_CREATE_JOINABLE
5230
echo "$as_me: failed program was:" >&5
5231
sed 's/^/| /' conftest.$ac_ext >&5
5235
rm -f conftest.err conftest.$ac_objext \
5236
conftest$ac_exeext conftest.$ac_ext
5237
if test x"$ok" = xunknown; then
5238
cat >conftest.$ac_ext <<_ACEOF
5241
cat confdefs.h >>conftest.$ac_ext
5242
cat >>conftest.$ac_ext <<_ACEOF
5243
/* end confdefs.h. */
5244
#include <pthread.h>
5248
int attr=PTHREAD_CREATE_UNDETACHED;
5253
rm -f conftest.$ac_objext conftest$ac_exeext
5254
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255
(eval $ac_link) 2>conftest.er1
5257
grep -v '^ *+' conftest.er1 >conftest.err
5259
cat conftest.err >&5
5260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261
(exit $ac_status); } &&
5262
{ ac_try='test -z "$ac_c_werror_flag"
5263
|| test ! -s conftest.err'
5264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268
(exit $ac_status); }; } &&
5269
{ ac_try='test -s conftest$ac_exeext'
5270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274
(exit $ac_status); }; }; then
5275
ok=PTHREAD_CREATE_UNDETACHED
5277
echo "$as_me: failed program was:" >&5
5278
sed 's/^/| /' conftest.$ac_ext >&5
5282
rm -f conftest.err conftest.$ac_objext \
5283
conftest$ac_exeext conftest.$ac_ext
5285
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5287
cat >>confdefs.h <<\_ACEOF
5288
#define PTHREAD_CREATE_JOINABLE $ok
5292
echo "$as_me:$LINENO: result: ${ok}" >&5
5293
echo "${ECHO_T}${ok}" >&6
5294
if test x"$ok" = xunknown; then
5295
{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
5296
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5299
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
5300
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
5302
case "${host_cpu}-${host_os}" in
5303
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
5304
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5306
echo "$as_me:$LINENO: result: ${flag}" >&5
5307
echo "${ECHO_T}${flag}" >&6
5308
if test "x$flag" != xno; then
5309
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5313
CFLAGS="$save_CFLAGS"
5315
# More AIX lossage: must compile with cc_r
5316
# Extract the first word of "cc_r", so it can be a program name with args.
5317
set dummy cc_r; ac_word=$2
5318
echo "$as_me:$LINENO: checking for $ac_word" >&5
5319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5321
echo $ECHO_N "(cached) $ECHO_C" >&6
5323
if test -n "$PTHREAD_CC"; then
5324
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330
test -z "$as_dir" && as_dir=.
5331
for ac_exec_ext in '' $ac_executable_extensions; do
5332
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333
ac_cv_prog_PTHREAD_CC="cc_r"
5334
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5343
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5344
if test -n "$PTHREAD_CC"; then
5345
echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5346
echo "${ECHO_T}$PTHREAD_CC" >&6
5348
echo "$as_me:$LINENO: result: no" >&5
5349
echo "${ECHO_T}no" >&6
5360
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5361
if test x"$acx_pthread_ok" = xyes; then
5363
cat >>confdefs.h <<\_ACEOF
5364
#define HAVE_PTHREAD 1
5370
{ { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support; try --disable-thread-support" >&5
5371
echo "$as_me: error: cannot determine options for enabling thread support; try --disable-thread-support" >&2;}
5372
{ (exit 1); exit 1; }; }
5375
ac_cpp='$CPP $CPPFLAGS'
5376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
{ echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5382
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5383
{ echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5384
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5385
{ echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5386
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5387
# AIX and Tru64 don't support weak references, and don't have
5388
# stub versions of the pthread code in libc.
5389
case "${host_os}" in
5391
# On these platforms, we'll always pull in the thread support.
5392
LIBS="$LIBS $PTHREAD_LIBS"
5393
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5394
# We don't need to sometimes add the flags we've just folded in...
5399
# These are the flags that "gcc -pthread" adds. But we don't
5400
# want "-pthread" because that has link-time effects, and we
5401
# don't exclude CFLAGS when linking. *sigh*
5402
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5405
# On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
5406
# get the right result.
5407
if test "$GCC" = yes ; then
5408
PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
5422
for ac_func in pthread_once pthread_rwlock_init
5424
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5425
echo "$as_me:$LINENO: checking for $ac_func" >&5
5426
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5427
if eval "test \"\${$as_ac_var+set}\" = set"; then
5428
echo $ECHO_N "(cached) $ECHO_C" >&6
5430
cat >conftest.$ac_ext <<_ACEOF
5433
cat confdefs.h >>conftest.$ac_ext
5434
cat >>conftest.$ac_ext <<_ACEOF
5435
/* end confdefs.h. */
5436
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5437
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5438
#define $ac_func innocuous_$ac_func
5440
/* System header to define __stub macros and hopefully few prototypes,
5441
which can conflict with char $ac_func (); below.
5442
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443
<limits.h> exists even on freestanding compilers. */
5446
# include <limits.h>
5448
# include <assert.h>
5453
/* Override any gcc2 internal prototype to avoid an error. */
5458
/* We use char because int might match the return type of a gcc2
5459
builtin and then its argument prototype would still apply. */
5461
/* The GNU C library defines this for functions which it implements
5462
to always fail with ENOSYS. Some functions are actually named
5463
something starting with __ and the normal name is an alias. */
5464
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467
char (*f) () = $ac_func;
5476
return f != $ac_func;
5481
rm -f conftest.$ac_objext conftest$ac_exeext
5482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483
(eval $ac_link) 2>conftest.er1
5485
grep -v '^ *+' conftest.er1 >conftest.err
5487
cat conftest.err >&5
5488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); } &&
5490
{ ac_try='test -z "$ac_c_werror_flag"
5491
|| test ! -s conftest.err'
5492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
(exit $ac_status); }; } &&
5497
{ ac_try='test -s conftest$ac_exeext'
5498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502
(exit $ac_status); }; }; then
5503
eval "$as_ac_var=yes"
5505
echo "$as_me: failed program was:" >&5
5506
sed 's/^/| /' conftest.$ac_ext >&5
5508
eval "$as_ac_var=no"
5510
rm -f conftest.err conftest.$ac_objext \
5511
conftest$ac_exeext conftest.$ac_ext
5513
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5514
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5515
if test `eval echo '${'$as_ac_var'}'` = yes; then
5516
cat >>confdefs.h <<_ACEOF
5517
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5524
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5525
old_CFLAGS="$CFLAGS"
5526
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5527
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5530
LIBS="$PTHREAD_LIBS $LIBS"
5531
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5532
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5533
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5534
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5535
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5536
echo $ECHO_N "(cached) $ECHO_C" >&6
5538
ac_check_lib_save_LIBS=$LIBS
5540
cat >conftest.$ac_ext <<_ACEOF
5543
cat confdefs.h >>conftest.$ac_ext
5544
cat >>conftest.$ac_ext <<_ACEOF
5545
/* end confdefs.h. */
5547
/* Override any gcc2 internal prototype to avoid an error. */
5551
/* We use char because int might match the return type of a gcc2
5552
builtin and then its argument prototype would still apply. */
5553
char pthread_rwlock_init ();
5557
pthread_rwlock_init ();
5562
rm -f conftest.$ac_objext conftest$ac_exeext
5563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564
(eval $ac_link) 2>conftest.er1
5566
grep -v '^ *+' conftest.er1 >conftest.err
5568
cat conftest.err >&5
5569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
(exit $ac_status); } &&
5571
{ ac_try='test -z "$ac_c_werror_flag"
5572
|| test ! -s conftest.err'
5573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); }; } &&
5578
{ ac_try='test -s conftest$ac_exeext'
5579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
(exit $ac_status); }; }; then
5584
ac_cv_lib_c_pthread_rwlock_init=yes
5586
echo "$as_me: failed program was:" >&5
5587
sed 's/^/| /' conftest.$ac_ext >&5
5589
ac_cv_lib_c_pthread_rwlock_init=no
5591
rm -f conftest.err conftest.$ac_objext \
5592
conftest$ac_exeext conftest.$ac_ext
5593
LIBS=$ac_check_lib_save_LIBS
5595
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5596
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5597
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5599
cat >>confdefs.h <<\_ACEOF
5600
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5607
CFLAGS="$old_CFLAGS"
5612
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5613
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5614
if test "${ac_cv_search_dlopen+set}" = set; then
5615
echo $ECHO_N "(cached) $ECHO_C" >&6
5617
ac_func_search_save_LIBS=$LIBS
5618
ac_cv_search_dlopen=no
5619
cat >conftest.$ac_ext <<_ACEOF
5622
cat confdefs.h >>conftest.$ac_ext
5623
cat >>conftest.$ac_ext <<_ACEOF
5624
/* end confdefs.h. */
5626
/* Override any gcc2 internal prototype to avoid an error. */
5630
/* We use char because int might match the return type of a gcc2
5631
builtin and then its argument prototype would still apply. */
5641
rm -f conftest.$ac_objext conftest$ac_exeext
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643
(eval $ac_link) 2>conftest.er1
5645
grep -v '^ *+' conftest.er1 >conftest.err
5647
cat conftest.err >&5
5648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649
(exit $ac_status); } &&
5650
{ ac_try='test -z "$ac_c_werror_flag"
5651
|| test ! -s conftest.err'
5652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); }; } &&
5657
{ ac_try='test -s conftest$ac_exeext'
5658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662
(exit $ac_status); }; }; then
5663
ac_cv_search_dlopen="none required"
5665
echo "$as_me: failed program was:" >&5
5666
sed 's/^/| /' conftest.$ac_ext >&5
5669
rm -f conftest.err conftest.$ac_objext \
5670
conftest$ac_exeext conftest.$ac_ext
5671
if test "$ac_cv_search_dlopen" = no; then
5672
for ac_lib in dl; do
5673
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5674
cat >conftest.$ac_ext <<_ACEOF
5677
cat confdefs.h >>conftest.$ac_ext
5678
cat >>conftest.$ac_ext <<_ACEOF
5679
/* end confdefs.h. */
5681
/* Override any gcc2 internal prototype to avoid an error. */
5685
/* We use char because int might match the return type of a gcc2
5686
builtin and then its argument prototype would still apply. */
5696
rm -f conftest.$ac_objext conftest$ac_exeext
5697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698
(eval $ac_link) 2>conftest.er1
5700
grep -v '^ *+' conftest.er1 >conftest.err
5702
cat conftest.err >&5
5703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
(exit $ac_status); } &&
5705
{ ac_try='test -z "$ac_c_werror_flag"
5706
|| test ! -s conftest.err'
5707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711
(exit $ac_status); }; } &&
5712
{ ac_try='test -s conftest$ac_exeext'
5713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
(exit $ac_status); }; }; then
5718
ac_cv_search_dlopen="-l$ac_lib"
5721
echo "$as_me: failed program was:" >&5
5722
sed 's/^/| /' conftest.$ac_ext >&5
5725
rm -f conftest.err conftest.$ac_objext \
5726
conftest$ac_exeext conftest.$ac_ext
5729
LIBS=$ac_func_search_save_LIBS
5731
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5732
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5733
if test "$ac_cv_search_dlopen" != no; then
5734
test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5736
if test "$ac_cv_search_dlopen" != "none required"; then
5737
DL_LIB=$ac_cv_search_dlopen
5741
cat >>confdefs.h <<\_ACEOF
5742
#define USE_DLOPEN 1
5751
for ac_header in keyutils.h
5753
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755
echo "$as_me:$LINENO: checking for $ac_header" >&5
5756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758
echo $ECHO_N "(cached) $ECHO_C" >&6
5760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763
# Is the header compilable?
5764
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5765
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5766
cat >conftest.$ac_ext <<_ACEOF
5769
cat confdefs.h >>conftest.$ac_ext
5770
cat >>conftest.$ac_ext <<_ACEOF
5771
/* end confdefs.h. */
5772
$ac_includes_default
5773
#include <$ac_header>
5775
rm -f conftest.$ac_objext
5776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777
(eval $ac_compile) 2>conftest.er1
5779
grep -v '^ *+' conftest.er1 >conftest.err
5781
cat conftest.err >&5
5782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783
(exit $ac_status); } &&
5784
{ ac_try='test -z "$ac_c_werror_flag"
5785
|| test ! -s conftest.err'
5786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
(exit $ac_status); }; } &&
5791
{ ac_try='test -s conftest.$ac_objext'
5792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
(exit $ac_status); }; }; then
5797
ac_header_compiler=yes
5799
echo "$as_me: failed program was:" >&5
5800
sed 's/^/| /' conftest.$ac_ext >&5
5802
ac_header_compiler=no
5804
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806
echo "${ECHO_T}$ac_header_compiler" >&6
5808
# Is the header present?
5809
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5810
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5811
cat >conftest.$ac_ext <<_ACEOF
5814
cat confdefs.h >>conftest.$ac_ext
5815
cat >>conftest.$ac_ext <<_ACEOF
5816
/* end confdefs.h. */
5817
#include <$ac_header>
5819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822
grep -v '^ *+' conftest.er1 >conftest.err
5824
cat conftest.err >&5
5825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826
(exit $ac_status); } >/dev/null; then
5827
if test -s conftest.err; then
5828
ac_cpp_err=$ac_c_preproc_warn_flag
5829
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836
if test -z "$ac_cpp_err"; then
5837
ac_header_preproc=yes
5839
echo "$as_me: failed program was:" >&5
5840
sed 's/^/| /' conftest.$ac_ext >&5
5842
ac_header_preproc=no
5844
rm -f conftest.err conftest.$ac_ext
5845
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846
echo "${ECHO_T}$ac_header_preproc" >&6
5848
# So? What about this header?
5849
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5852
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5854
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5855
ac_header_preproc=yes
5858
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5859
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5860
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5861
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5862
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5863
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5864
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5865
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5866
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5868
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5869
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5872
## -------------------------------- ##
5873
## Report this to krb5-bugs@mit.edu ##
5874
## -------------------------------- ##
5877
sed "s/^/$as_me: WARNING: /" >&2
5880
echo "$as_me:$LINENO: checking for $ac_header" >&5
5881
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883
echo $ECHO_N "(cached) $ECHO_C" >&6
5885
eval "$as_ac_Header=\$ac_header_preproc"
5887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892
cat >>confdefs.h <<_ACEOF
5893
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895
echo "$as_me:$LINENO: checking for add_key in -lkeyutils" >&5
5896
echo $ECHO_N "checking for add_key in -lkeyutils... $ECHO_C" >&6
5897
if test "${ac_cv_lib_keyutils_add_key+set}" = set; then
5898
echo $ECHO_N "(cached) $ECHO_C" >&6
5900
ac_check_lib_save_LIBS=$LIBS
5901
LIBS="-lkeyutils $LIBS"
5902
cat >conftest.$ac_ext <<_ACEOF
5905
cat confdefs.h >>conftest.$ac_ext
5906
cat >>conftest.$ac_ext <<_ACEOF
5907
/* end confdefs.h. */
5909
/* Override any gcc2 internal prototype to avoid an error. */
5913
/* We use char because int might match the return type of a gcc2
5914
builtin and then its argument prototype would still apply. */
5924
rm -f conftest.$ac_objext conftest$ac_exeext
5925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926
(eval $ac_link) 2>conftest.er1
5928
grep -v '^ *+' conftest.er1 >conftest.err
5930
cat conftest.err >&5
5931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932
(exit $ac_status); } &&
5933
{ ac_try='test -z "$ac_c_werror_flag"
5934
|| test ! -s conftest.err'
5935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
(exit $ac_status); }; } &&
5940
{ ac_try='test -s conftest$ac_exeext'
5941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945
(exit $ac_status); }; }; then
5946
ac_cv_lib_keyutils_add_key=yes
5948
echo "$as_me: failed program was:" >&5
5949
sed 's/^/| /' conftest.$ac_ext >&5
5951
ac_cv_lib_keyutils_add_key=no
5953
rm -f conftest.err conftest.$ac_objext \
5954
conftest$ac_exeext conftest.$ac_ext
5955
LIBS=$ac_check_lib_save_LIBS
5957
echo "$as_me:$LINENO: result: $ac_cv_lib_keyutils_add_key" >&5
5958
echo "${ECHO_T}$ac_cv_lib_keyutils_add_key" >&6
5959
if test $ac_cv_lib_keyutils_add_key = yes; then
5961
cat >>confdefs.h <<\_ACEOF
5962
#define USE_KEYRING_CCACHE 1
5965
LIBS="-lkeyutils $LIBS"
5978
for ac_header in errno.h string.h
5980
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5981
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5982
echo "$as_me:$LINENO: checking for $ac_header" >&5
5983
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985
echo $ECHO_N "(cached) $ECHO_C" >&6
5987
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5988
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5990
# Is the header compilable?
5991
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5992
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5993
cat >conftest.$ac_ext <<_ACEOF
5996
cat confdefs.h >>conftest.$ac_ext
5997
cat >>conftest.$ac_ext <<_ACEOF
5998
/* end confdefs.h. */
5999
$ac_includes_default
6000
#include <$ac_header>
6002
rm -f conftest.$ac_objext
6003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004
(eval $ac_compile) 2>conftest.er1
6006
grep -v '^ *+' conftest.er1 >conftest.err
6008
cat conftest.err >&5
6009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010
(exit $ac_status); } &&
6011
{ ac_try='test -z "$ac_c_werror_flag"
6012
|| test ! -s conftest.err'
6013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
(exit $ac_status); }; } &&
6018
{ ac_try='test -s conftest.$ac_objext'
6019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023
(exit $ac_status); }; }; then
6024
ac_header_compiler=yes
6026
echo "$as_me: failed program was:" >&5
6027
sed 's/^/| /' conftest.$ac_ext >&5
6029
ac_header_compiler=no
6031
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6033
echo "${ECHO_T}$ac_header_compiler" >&6
6035
# Is the header present?
6036
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6037
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6038
cat >conftest.$ac_ext <<_ACEOF
6041
cat confdefs.h >>conftest.$ac_ext
6042
cat >>conftest.$ac_ext <<_ACEOF
6043
/* end confdefs.h. */
6044
#include <$ac_header>
6046
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6049
grep -v '^ *+' conftest.er1 >conftest.err
6051
cat conftest.err >&5
6052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053
(exit $ac_status); } >/dev/null; then
6054
if test -s conftest.err; then
6055
ac_cpp_err=$ac_c_preproc_warn_flag
6056
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6063
if test -z "$ac_cpp_err"; then
6064
ac_header_preproc=yes
6066
echo "$as_me: failed program was:" >&5
6067
sed 's/^/| /' conftest.$ac_ext >&5
6069
ac_header_preproc=no
6071
rm -f conftest.err conftest.$ac_ext
6072
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6073
echo "${ECHO_T}$ac_header_preproc" >&6
6075
# So? What about this header?
6076
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6078
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6079
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6080
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6081
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6082
ac_header_preproc=yes
6085
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6086
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6087
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6088
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6089
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6090
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6091
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6092
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6093
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6094
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6095
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6096
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6099
## -------------------------------- ##
6100
## Report this to krb5-bugs@mit.edu ##
6101
## -------------------------------- ##
6104
sed "s/^/$as_me: WARNING: /" >&2
6107
echo "$as_me:$LINENO: checking for $ac_header" >&5
6108
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6109
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110
echo $ECHO_N "(cached) $ECHO_C" >&6
6112
eval "$as_ac_Header=\$ac_header_preproc"
6114
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6118
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6119
cat >>confdefs.h <<_ACEOF
6120
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6129
# Check whether to build static libraries.
6130
# Check whether --enable-static or --disable-static was given.
6131
if test "${enable_static+set}" = set; then
6132
enableval="$enable_static"
6135
enable_static=$default_static
6138
if test "$enable_static" = yes; then
6139
{ { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6140
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6141
{ (exit 1); exit 1; }; }
6144
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6145
{ echo "$as_me:$LINENO: disabling static libraries" >&5
6146
echo "$as_me: disabling static libraries" >&6;}
6151
LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6152
LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6154
LIBINSTLIST=install-static
6156
# CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6159
# Check whether to build shared libraries.
6160
# Check whether --enable-shared or --disable-shared was given.
6161
if test "${enable_shared+set}" = set; then
6162
enableval="$enable_shared"
6165
enable_shared=$default_shared
6168
if test "$enable_shared" != yes; then
6169
{ { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6170
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6171
{ (exit 1); exit 1; }; }
6174
if test "$enable_shared" = yes; then
6177
{ echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6178
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6180
CC_LINK="$CC_LINK_STATIC"
6183
# set this now because some logic below may reset SHLIBEXT
6185
if test "$krb5_force_static" = "yes"; then
6186
echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6187
echo "${ECHO_T}Forcing static libraries." >&6
6188
# avoid duplicate rules generation for AIX and such
6189
SHLIBEXT=.so-nobuild
6190
SHLIBVEXT=.so.v-nobuild
6191
SHLIBSEXT=.so.s-nobuild
6193
{ echo "$as_me:$LINENO: enabling shared libraries" >&5
6194
echo "$as_me: enabling shared libraries" >&6;}
6195
# Clear some stuff in case of AIX, etc.
6196
if test "$STLIBEXT" = "$SHLIBEXT" ; then
6203
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6204
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6205
case "$SHLIBSEXT" in
6207
LIBINSTLIST="$LIBINSTLIST install-shared"
6210
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6211
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6212
LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6215
OBJLISTS="$OBJLISTS OBJS.SH"
6217
CC_LINK="$CC_LINK_SHARED"
6222
CC_LINK="$CC_LINK_STATIC"
6223
SHLIBEXT=.so-nobuild
6224
SHLIBVEXT=.so.v-nobuild
6225
SHLIBSEXT=.so.s-nobuild
6228
if test "$build_dynobj" = yes; then
6229
OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6230
OBJLISTS="$OBJLISTS OBJS.SH"
6233
if test -z "$LIBLIST"; then
6234
{ { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6235
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
6236
{ (exit 1); exit 1; }; }
6239
# Check whether to build profiled libraries.
6240
# Check whether --enable-profiled or --disable-profiled was given.
6241
if test "${enable_profiled+set}" = set; then
6242
enableval="$enable_profiled"
6243
if test "$enableval" = yes; then
6244
{ { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
6245
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6246
{ (exit 1); exit 1; }; }
6251
{ echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6252
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6255
{ echo "$as_me:$LINENO: enabling profiled libraries" >&5
6256
echo "$as_me: enabling profiled libraries" >&6;}
6257
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6258
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6259
OBJLISTS="$OBJLISTS OBJS.PF"
6260
LIBINSTLIST="$LIBINSTLIST install-profiled"
6265
KRB5_RUN_ENV="$RUN_ENV"
6268
echo "$as_me:$LINENO: checking for working regcomp" >&5
6269
echo $ECHO_N "checking for working regcomp... $ECHO_C" >&6
6270
if test "${ac_cv_func_regcomp+set}" = set; then
6271
echo $ECHO_N "(cached) $ECHO_C" >&6
6274
if test "$cross_compiling" = yes; then
6275
{ { echo "$as_me:$LINENO: error: Cannot test regcomp when cross compiling" >&5
6276
echo "$as_me: error: Cannot test regcomp when cross compiling" >&2;}
6277
{ (exit 1); exit 1; }; }
6279
cat >conftest.$ac_ext <<_ACEOF
6282
cat confdefs.h >>conftest.$ac_ext
6283
cat >>conftest.$ac_ext <<_ACEOF
6284
/* end confdefs.h. */
6286
#include <sys/types.h>
6288
regex_t x; regmatch_t m;
6289
int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
6292
rm -f conftest$ac_exeext
6293
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294
(eval $ac_link) 2>&5
6296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302
(exit $ac_status); }; }; then
6303
ac_cv_func_regcomp=yes
6305
echo "$as_me: program exited with status $ac_status" >&5
6306
echo "$as_me: failed program was:" >&5
6307
sed 's/^/| /' conftest.$ac_ext >&5
6310
ac_cv_func_regcomp=no
6312
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6316
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
6317
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
6318
test $ac_cv_func_regcomp = yes &&
6319
cat >>confdefs.h <<\_ACEOF
6320
#define HAVE_REGCOMP 1
6323
if test $ac_cv_func_regcomp = no; then
6328
for ac_func in compile step
6330
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6331
echo "$as_me:$LINENO: checking for $ac_func" >&5
6332
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6333
if eval "test \"\${$as_ac_var+set}\" = set"; then
6334
echo $ECHO_N "(cached) $ECHO_C" >&6
6336
cat >conftest.$ac_ext <<_ACEOF
6339
cat confdefs.h >>conftest.$ac_ext
6340
cat >>conftest.$ac_ext <<_ACEOF
6341
/* end confdefs.h. */
6342
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6343
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6344
#define $ac_func innocuous_$ac_func
6346
/* System header to define __stub macros and hopefully few prototypes,
6347
which can conflict with char $ac_func (); below.
6348
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6349
<limits.h> exists even on freestanding compilers. */
6352
# include <limits.h>
6354
# include <assert.h>
6359
/* Override any gcc2 internal prototype to avoid an error. */
6364
/* We use char because int might match the return type of a gcc2
6365
builtin and then its argument prototype would still apply. */
6367
/* The GNU C library defines this for functions which it implements
6368
to always fail with ENOSYS. Some functions are actually named
6369
something starting with __ and the normal name is an alias. */
6370
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6373
char (*f) () = $ac_func;
6382
return f != $ac_func;
6387
rm -f conftest.$ac_objext conftest$ac_exeext
6388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389
(eval $ac_link) 2>conftest.er1
6391
grep -v '^ *+' conftest.er1 >conftest.err
6393
cat conftest.err >&5
6394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395
(exit $ac_status); } &&
6396
{ ac_try='test -z "$ac_c_werror_flag"
6397
|| test ! -s conftest.err'
6398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402
(exit $ac_status); }; } &&
6403
{ ac_try='test -s conftest$ac_exeext'
6404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408
(exit $ac_status); }; }; then
6409
eval "$as_ac_var=yes"
6411
echo "$as_me: failed program was:" >&5
6412
sed 's/^/| /' conftest.$ac_ext >&5
6414
eval "$as_ac_var=no"
6416
rm -f conftest.err conftest.$ac_objext \
6417
conftest$ac_exeext conftest.$ac_ext
6419
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6420
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6421
if test `eval echo '${'$as_ac_var'}'` = yes; then
6422
cat >>confdefs.h <<_ACEOF
6423
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6430
echo "$as_me:$LINENO: checking for compile in -lgen" >&5
6431
echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
6432
if test "${ac_cv_lib_gen_compile+set}" = set; then
6433
echo $ECHO_N "(cached) $ECHO_C" >&6
6435
ac_check_lib_save_LIBS=$LIBS
6437
cat >conftest.$ac_ext <<_ACEOF
6440
cat confdefs.h >>conftest.$ac_ext
6441
cat >>conftest.$ac_ext <<_ACEOF
6442
/* end confdefs.h. */
6444
/* Override any gcc2 internal prototype to avoid an error. */
6448
/* We use char because int might match the return type of a gcc2
6449
builtin and then its argument prototype would still apply. */
6459
rm -f conftest.$ac_objext conftest$ac_exeext
6460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461
(eval $ac_link) 2>conftest.er1
6463
grep -v '^ *+' conftest.er1 >conftest.err
6465
cat conftest.err >&5
6466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467
(exit $ac_status); } &&
6468
{ ac_try='test -z "$ac_c_werror_flag"
6469
|| test ! -s conftest.err'
6470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
(exit $ac_status); }; } &&
6475
{ ac_try='test -s conftest$ac_exeext'
6476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480
(exit $ac_status); }; }; then
6481
ac_cv_lib_gen_compile=yes
6483
echo "$as_me: failed program was:" >&5
6484
sed 's/^/| /' conftest.$ac_ext >&5
6486
ac_cv_lib_gen_compile=no
6488
rm -f conftest.err conftest.$ac_objext \
6489
conftest$ac_exeext conftest.$ac_ext
6490
LIBS=$ac_check_lib_save_LIBS
6492
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
6493
echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
6494
if test $ac_cv_lib_gen_compile = yes; then
6512
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6513
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6515
if test "$LN_S" = "ln -s"; then
6516
echo "$as_me:$LINENO: result: yes" >&5
6517
echo "${ECHO_T}yes" >&6
6519
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6520
echo "${ECHO_T}no, using $LN_S" >&6
6523
if test -n "$ac_tool_prefix"; then
6524
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6525
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6526
echo "$as_me:$LINENO: checking for $ac_word" >&5
6527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528
if test "${ac_cv_prog_RANLIB+set}" = set; then
6529
echo $ECHO_N "(cached) $ECHO_C" >&6
6531
if test -n "$RANLIB"; then
6532
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538
test -z "$as_dir" && as_dir=.
6539
for ac_exec_ext in '' $ac_executable_extensions; do
6540
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6542
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550
RANLIB=$ac_cv_prog_RANLIB
6551
if test -n "$RANLIB"; then
6552
echo "$as_me:$LINENO: result: $RANLIB" >&5
6553
echo "${ECHO_T}$RANLIB" >&6
6555
echo "$as_me:$LINENO: result: no" >&5
6556
echo "${ECHO_T}no" >&6
6560
if test -z "$ac_cv_prog_RANLIB"; then
6561
ac_ct_RANLIB=$RANLIB
6562
# Extract the first word of "ranlib", so it can be a program name with args.
6563
set dummy ranlib; ac_word=$2
6564
echo "$as_me:$LINENO: checking for $ac_word" >&5
6565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6567
echo $ECHO_N "(cached) $ECHO_C" >&6
6569
if test -n "$ac_ct_RANLIB"; then
6570
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576
test -z "$as_dir" && as_dir=.
6577
for ac_exec_ext in '' $ac_executable_extensions; do
6578
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579
ac_cv_prog_ac_ct_RANLIB="ranlib"
6580
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6589
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6590
if test -n "$ac_ct_RANLIB"; then
6591
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6592
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6594
echo "$as_me:$LINENO: result: no" >&5
6595
echo "${ECHO_T}no" >&6
6598
RANLIB=$ac_ct_RANLIB
6600
RANLIB="$ac_cv_prog_RANLIB"
6603
# Extract the first word of "ar", so it can be a program name with args.
6604
set dummy ar; ac_word=$2
6605
echo "$as_me:$LINENO: checking for $ac_word" >&5
6606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6607
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
6608
echo $ECHO_N "(cached) $ECHO_C" >&6
6610
if test -n "$ARCHIVE"; then
6611
ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
6613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617
test -z "$as_dir" && as_dir=.
6618
for ac_exec_ext in '' $ac_executable_extensions; do
6619
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620
ac_cv_prog_ARCHIVE="ar cqv"
6621
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627
test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
6630
ARCHIVE=$ac_cv_prog_ARCHIVE
6631
if test -n "$ARCHIVE"; then
6632
echo "$as_me:$LINENO: result: $ARCHIVE" >&5
6633
echo "${ECHO_T}$ARCHIVE" >&6
6635
echo "$as_me:$LINENO: result: no" >&5
6636
echo "${ECHO_T}no" >&6
6639
# Extract the first word of "ar", so it can be a program name with args.
6640
set dummy ar; ac_word=$2
6641
echo "$as_me:$LINENO: checking for $ac_word" >&5
6642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643
if test "${ac_cv_prog_ARADD+set}" = set; then
6644
echo $ECHO_N "(cached) $ECHO_C" >&6
6646
if test -n "$ARADD"; then
6647
ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
6649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653
test -z "$as_dir" && as_dir=.
6654
for ac_exec_ext in '' $ac_executable_extensions; do
6655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656
ac_cv_prog_ARADD="ar cruv"
6657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663
test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
6666
ARADD=$ac_cv_prog_ARADD
6667
if test -n "$ARADD"; then
6668
echo "$as_me:$LINENO: result: $ARADD" >&5
6669
echo "${ECHO_T}$ARADD" >&6
6671
echo "$as_me:$LINENO: result: no" >&5
6672
echo "${ECHO_T}no" >&6
6675
# Find a good install program. We prefer a C program (faster),
6676
# so one script is as good as another. But avoid the broken or
6677
# incompatible versions:
6678
# SysV /etc/install, /usr/sbin/install
6679
# SunOS /usr/etc/install
6680
# IRIX /sbin/install
6682
# AmigaOS /C/install, which installs bootblocks on floppy discs
6683
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6684
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6685
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6686
# OS/2's system install, which has a completely different semantic
6687
# ./install, which can be erroneously created by make from ./install.sh.
6688
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6689
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6690
if test -z "$INSTALL"; then
6691
if test "${ac_cv_path_install+set}" = set; then
6692
echo $ECHO_N "(cached) $ECHO_C" >&6
6694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698
test -z "$as_dir" && as_dir=.
6699
# Account for people who put trailing slashes in PATH elements.
6701
./ | .// | /cC/* | \
6702
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6703
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6706
# OSF1 and SCO ODT 3.0 have their own names for install.
6707
# Don't use installbsd from OSF since it installs stuff as root
6709
for ac_prog in ginstall scoinst install; do
6710
for ac_exec_ext in '' $ac_executable_extensions; do
6711
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6712
if test $ac_prog = install &&
6713
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6714
# AIX install. It has an incompatible calling convention.
6716
elif test $ac_prog = install &&
6717
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6718
# program-specific install script used by HP pwplus--don't use.
6721
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6733
if test "${ac_cv_path_install+set}" = set; then
6734
INSTALL=$ac_cv_path_install
6736
# As a last resort, use the slow shell script. We don't cache a
6737
# path for INSTALL within a source directory, because that will
6738
# break other packages using the cache if that directory is
6739
# removed, or if the path is relative.
6740
INSTALL=$ac_install_sh
6743
echo "$as_me:$LINENO: result: $INSTALL" >&5
6744
echo "${ECHO_T}$INSTALL" >&6
6746
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6747
# It thinks the first close brace ends the variable substitution.
6748
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6750
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6752
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6754
# Extract the first word of "ar", so it can be a program name with args.
6755
set dummy ar; ac_word=$2
6756
echo "$as_me:$LINENO: checking for $ac_word" >&5
6757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758
if test "${ac_cv_prog_AR+set}" = set; then
6759
echo $ECHO_N "(cached) $ECHO_C" >&6
6761
if test -n "$AR"; then
6762
ac_cv_prog_AR="$AR" # Let the user override the test.
6764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768
test -z "$as_dir" && as_dir=.
6769
for ac_exec_ext in '' $ac_executable_extensions; do
6770
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
6782
if test -n "$AR"; then
6783
echo "$as_me:$LINENO: result: $AR" >&5
6784
echo "${ECHO_T}$AR" >&6
6786
echo "$as_me:$LINENO: result: no" >&5
6787
echo "${ECHO_T}no" >&6
6790
# Extract the first word of "perl", so it can be a program name with args.
6791
set dummy perl; ac_word=$2
6792
echo "$as_me:$LINENO: checking for $ac_word" >&5
6793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794
if test "${ac_cv_prog_PERL+set}" = set; then
6795
echo $ECHO_N "(cached) $ECHO_C" >&6
6797
if test -n "$PERL"; then
6798
ac_cv_prog_PERL="$PERL" # Let the user override the test.
6800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804
test -z "$as_dir" && as_dir=.
6805
for ac_exec_ext in '' $ac_executable_extensions; do
6806
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807
ac_cv_prog_PERL="perl"
6808
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
6817
PERL=$ac_cv_prog_PERL
6818
if test -n "$PERL"; then
6819
echo "$as_me:$LINENO: result: $PERL" >&5
6820
echo "${ECHO_T}$PERL" >&6
6822
echo "$as_me:$LINENO: result: no" >&5
6823
echo "${ECHO_T}no" >&6
6826
if test "$ac_cv_prog_PERL" = "false"; then
6827
{ { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
6828
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
6829
{ (exit 1); exit 1; }; }
6849
ac_config_headers="$ac_config_headers config.h"
6852
ac_config_files="$ac_config_files ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in"
6854
cat >confcache <<\_ACEOF
6855
# This file is a shell script that caches the results of configure
6856
# tests run on this system so they can be shared between configure
6857
# scripts and configure runs, see configure's option --config-cache.
6858
# It is not useful on other systems. If it contains results you don't
6859
# want to keep, you may remove or edit it.
6861
# config.status only pays attention to the cache file if you give it
6862
# the --recheck option to rerun configure.
6864
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6865
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6870
# The following way of writing the cache mishandles newlines in values,
6871
# but we know of no workaround that is simple, portable, and efficient.
6872
# So, don't put newlines in cache variables' values.
6873
# Ultrix sh set writes to stderr and can't be redirected directly,
6874
# and sets the high bit in the cache file unless we assign to the vars.
6877
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6879
# `set' does not quote correctly, so add quotes (double-quote
6880
# substitution turns \\\\ into \\, and sed turns \\ into \).
6883
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6886
# `set' quotes correctly as required by POSIX, so do not add quotes.
6888
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6895
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6897
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6899
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6900
if test -w $cache_file; then
6901
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6902
cat confcache >$cache_file
6904
echo "not updating unwritable cache $cache_file"
6909
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6910
# Let make expand exec_prefix.
6911
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6913
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6914
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6915
# trailing colons and then remove the whole line if VPATH becomes empty
6916
# (actually we leave an empty line to preserve line numbers).
6917
if test "x$srcdir" = x.; then
6918
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6919
s/:*\$(srcdir):*/:/;
6920
s/:*\${srcdir}:*/:/;
6922
s/^\([^=]*=[ ]*\):*/\1/;
6928
DEFS=-DHAVE_CONFIG_H
6932
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6933
# 1. Remove the extension, and $U if already installed.
6934
ac_i=`echo "$ac_i" |
6935
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6937
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6938
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6942
LTLIBOBJS=$ac_ltlibobjs
6946
: ${CONFIG_STATUS=./config.status}
6947
ac_clean_files_save=$ac_clean_files
6948
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6949
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6950
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6951
cat >$CONFIG_STATUS <<_ACEOF
6953
# Generated by $as_me.
6954
# Run this file to recreate the current configuration.
6955
# Compiler output produced by configure, useful for debugging
6956
# configure, is in config.log if it exists.
6961
SHELL=\${CONFIG_SHELL-$SHELL}
6964
cat >>$CONFIG_STATUS <<\_ACEOF
6965
## --------------------- ##
6966
## M4sh Initialization. ##
6967
## --------------------- ##
6969
# Be Bourne compatible
6970
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6973
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6974
# is contrary to our usage. Disable this feature.
6975
alias -g '${1+"$@"}'='"$@"'
6976
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6979
DUALCASE=1; export DUALCASE # for MKS sh
6981
# Support unset when possible.
6982
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6989
# Work around bugs in pre-3.0 UWIN ksh.
6990
$as_unset ENV MAIL MAILPATH
6997
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6998
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6999
LC_TELEPHONE LC_TIME
7001
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7002
eval $as_var=C; export $as_var
7008
# Required to use basename.
7009
if expr a : '\(a\)' >/dev/null 2>&1; then
7015
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7016
as_basename=basename
7022
# Name of the executable.
7023
as_me=`$as_basename "$0" ||
7024
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7025
X"$0" : 'X\(//\)$' \| \
7026
X"$0" : 'X\(/\)$' \| \
7027
. : '\(.\)' 2>/dev/null ||
7029
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7030
/^X\/\(\/\/\)$/{ s//\1/; q; }
7031
/^X\/\(\/\).*/{ s//\1/; q; }
7035
# PATH needs CR, and LINENO needs CR and PATH.
7036
# Avoid depending upon Character Ranges.
7037
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7038
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7039
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7040
as_cr_digits='0123456789'
7041
as_cr_alnum=$as_cr_Letters$as_cr_digits
7043
# The user is always right.
7044
if test "${PATH_SEPARATOR+set}" != set; then
7045
echo "#! /bin/sh" >conf$$.sh
7046
echo "exit 0" >>conf$$.sh
7048
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7059
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7060
test "x$as_lineno_1" != "x$as_lineno_2" &&
7061
test "x$as_lineno_3" = "x$as_lineno_2" || {
7062
# Find who we are. Look in the path if we contain no path at all
7065
*[\\/]* ) as_myself=$0 ;;
7066
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070
test -z "$as_dir" && as_dir=.
7071
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7076
# We did not find ourselves, most probably we were run as `sh COMMAND'
7077
# in which case we are not to be found in the path.
7078
if test "x$as_myself" = x; then
7081
if test ! -f "$as_myself"; then
7082
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7083
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7084
{ (exit 1); exit 1; }; }
7086
case $CONFIG_SHELL in
7088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7092
test -z "$as_dir" && as_dir=.
7093
for as_base in sh bash ksh sh5; do
7096
if ("$as_dir/$as_base" -c '
7099
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7100
test "x$as_lineno_1" != "x$as_lineno_2" &&
7101
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7102
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7103
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7104
CONFIG_SHELL=$as_dir/$as_base
7106
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7114
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7115
# uniformly replaced by the line number. The first 'sed' inserts a
7116
# line-number line before each line; the second 'sed' does the real
7117
# work. The second script uses 'N' to pair each line-number line
7118
# with the numbered line, and appends trailing '-' during
7119
# substitution so that $LINENO is not a special case at line end.
7120
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7121
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7122
sed '=' <$as_myself |
7127
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7130
s,^['$as_cr_digits']*\n,,
7132
chmod +x $as_me.lineno ||
7133
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7134
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7135
{ (exit 1); exit 1; }; }
7137
# Don't try to exec as it changes $[0], causing all sort of problems
7138
# (the dirname of $[0] is not the place where we might find the
7139
# original and so on. Autoconf is especially sensible to this).
7141
# Exit status is that of the last command.
7146
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7147
*c*,-n*) ECHO_N= ECHO_C='
7149
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7150
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7153
if expr a : '\(a\)' >/dev/null 2>&1; then
7159
rm -f conf$$ conf$$.exe conf$$.file
7161
if ln -s conf$$.file conf$$ 2>/dev/null; then
7162
# We could just check for DJGPP; but this test a) works b) is more generic
7163
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7164
if test -f conf$$.exe; then
7165
# Don't use ln at all; we don't have any links
7170
elif ln conf$$.file conf$$ 2>/dev/null; then
7175
rm -f conf$$ conf$$.exe conf$$.file
7177
if mkdir -p . 2>/dev/null; then
7180
test -d ./-p && rmdir ./-p
7184
as_executable_p="test -f"
7186
# Sed expression to map a string onto a valid CPP name.
7187
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7189
# Sed expression to map a string onto a valid variable name.
7190
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7194
# We need space, tab and new line, in precisely that order.
7204
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7205
# report actual input values of CONFIG_FILES etc. instead of their
7206
# values after options handling. Logging --version etc. is OK.
7210
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7211
## Running $as_me. ##
7216
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
7217
generated by GNU Autoconf 2.59. Invocation command line was
7219
CONFIG_FILES = $CONFIG_FILES
7220
CONFIG_HEADERS = $CONFIG_HEADERS
7221
CONFIG_LINKS = $CONFIG_LINKS
7222
CONFIG_COMMANDS = $CONFIG_COMMANDS
7226
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7230
# Files that config.status was made for.
7231
if test -n "$ac_config_files"; then
7232
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7235
if test -n "$ac_config_headers"; then
7236
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7239
if test -n "$ac_config_links"; then
7240
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7243
if test -n "$ac_config_commands"; then
7244
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7247
cat >>$CONFIG_STATUS <<\_ACEOF
7250
\`$as_me' instantiates files from templates according to the
7251
current configuration.
7253
Usage: $0 [OPTIONS] [FILE]...
7255
-h, --help print this help, then exit
7256
-V, --version print version number, then exit
7257
-q, --quiet do not print progress messages
7258
-d, --debug don't remove temporary files
7259
--recheck update $as_me by reconfiguring in the same conditions
7260
--file=FILE[:TEMPLATE]
7261
instantiate the configuration file FILE
7262
--header=FILE[:TEMPLATE]
7263
instantiate the configuration header FILE
7265
Configuration files:
7268
Configuration headers:
7271
Report bugs to <bug-autoconf@gnu.org>."
7274
cat >>$CONFIG_STATUS <<_ACEOF
7276
Kerberos 5 config.status 1.6.4-beta1
7277
configured by $0, generated by GNU Autoconf 2.59,
7278
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7280
Copyright (C) 2003 Free Software Foundation, Inc.
7281
This config.status script is free software; the Free Software Foundation
7282
gives unlimited permission to copy, distribute and modify it."
7287
cat >>$CONFIG_STATUS <<\_ACEOF
7288
# If no file are specified by the user, then we need to provide default
7289
# value. By we need to know if files were specified by the user.
7295
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7296
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7304
*) # This is not an option, so the user has probably given explicit
7307
ac_need_defaults=false;;
7311
# Handling of the options.
7313
cat >>$CONFIG_STATUS <<\_ACEOF
7314
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7316
--version | --vers* | -V )
7317
echo "$ac_cs_version"; exit 0 ;;
7319
# Conflict between --help and --header
7320
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7321
Try \`$0 --help' for more information." >&5
7322
echo "$as_me: error: ambiguous option: $1
7323
Try \`$0 --help' for more information." >&2;}
7324
{ (exit 1); exit 1; }; };;
7325
--help | --hel | -h )
7326
echo "$ac_cs_usage"; exit 0 ;;
7327
--debug | --d* | -d )
7329
--file | --fil | --fi | --f )
7331
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7332
ac_need_defaults=false;;
7333
--header | --heade | --head | --hea )
7335
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7336
ac_need_defaults=false;;
7337
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7338
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7342
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7343
Try \`$0 --help' for more information." >&5
7344
echo "$as_me: error: unrecognized option: $1
7345
Try \`$0 --help' for more information." >&2;}
7346
{ (exit 1); exit 1; }; } ;;
7348
*) ac_config_targets="$ac_config_targets $1" ;;
7354
ac_configure_extra_args=
7356
if $ac_cs_silent; then
7358
ac_configure_extra_args="$ac_configure_extra_args --silent"
7362
cat >>$CONFIG_STATUS <<_ACEOF
7363
if \$ac_cs_recheck; then
7364
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7365
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7374
cat >>$CONFIG_STATUS <<\_ACEOF
7375
for ac_config_target in $ac_config_targets
7377
case "$ac_config_target" in
7378
# Handling of arguments.
7379
"./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in" ;;
7380
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7381
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7382
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7383
{ (exit 1); exit 1; }; };;
7387
# If the user did not use the arguments to specify the items to instantiate,
7388
# then the envvar interface is used. Set only those that are not.
7389
# We use the long form for the default assignment because of an extremely
7390
# bizarre bug on SunOS 4.1.3.
7391
if $ac_need_defaults; then
7392
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7393
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7396
# Have a temporary directory for convenience. Make it in the build tree
7397
# simply because there is no reason to put it here, and in addition,
7398
# creating and moving files from /tmp can sometimes cause problems.
7399
# Create a temporary directory, and hook for its removal unless debugging.
7402
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7403
trap '{ (exit 1); exit 1; }' 1 2 13 15
7406
# Create a (secure) tmp directory for tmp files.
7409
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7410
test -n "$tmp" && test -d "$tmp"
7413
tmp=./confstat$$-$RANDOM
7414
(umask 077 && mkdir $tmp)
7417
echo "$me: cannot create a temporary directory in ." >&2
7418
{ (exit 1); exit 1; }
7423
cat >>$CONFIG_STATUS <<_ACEOF
7426
# CONFIG_FILES section.
7429
# No need to generate the scripts if there are no CONFIG_FILES.
7430
# This happens for instance when ./config.status config.h
7431
if test -n "\$CONFIG_FILES"; then
7432
# Protect against being on the right side of a sed subst in config.status.
7433
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7434
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7435
s,@SHELL@,$SHELL,;t t
7436
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7437
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7438
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7439
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7440
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7441
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7442
s,@exec_prefix@,$exec_prefix,;t t
7443
s,@prefix@,$prefix,;t t
7444
s,@program_transform_name@,$program_transform_name,;t t
7445
s,@bindir@,$bindir,;t t
7446
s,@sbindir@,$sbindir,;t t
7447
s,@libexecdir@,$libexecdir,;t t
7448
s,@datadir@,$datadir,;t t
7449
s,@sysconfdir@,$sysconfdir,;t t
7450
s,@sharedstatedir@,$sharedstatedir,;t t
7451
s,@localstatedir@,$localstatedir,;t t
7452
s,@libdir@,$libdir,;t t
7453
s,@includedir@,$includedir,;t t
7454
s,@oldincludedir@,$oldincludedir,;t t
7455
s,@infodir@,$infodir,;t t
7456
s,@mandir@,$mandir,;t t
7457
s,@build_alias@,$build_alias,;t t
7458
s,@host_alias@,$host_alias,;t t
7459
s,@target_alias@,$target_alias,;t t
7461
s,@ECHO_C@,$ECHO_C,;t t
7462
s,@ECHO_N@,$ECHO_N,;t t
7463
s,@ECHO_T@,$ECHO_T,;t t
7465
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
7467
s,@CFLAGS@,$CFLAGS,;t t
7468
s,@LDFLAGS@,$LDFLAGS,;t t
7469
s,@CPPFLAGS@,$CPPFLAGS,;t t
7470
s,@ac_ct_CC@,$ac_ct_CC,;t t
7471
s,@EXEEXT@,$EXEEXT,;t t
7472
s,@OBJEXT@,$OBJEXT,;t t
7473
s,@HAVE_GCC@,$HAVE_GCC,;t t
7476
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
7477
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
7478
s,@KRB4_LIB@,$KRB4_LIB,;t t
7479
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
7480
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
7481
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
7482
s,@DES425_LIB@,$DES425_LIB,;t t
7483
s,@compile_et@,$compile_et,;t t
7484
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
7485
s,@SS_LIB@,$SS_LIB,;t t
7486
s,@SS_VERSION@,$SS_VERSION,;t t
7487
s,@DB_HEADER@,$DB_HEADER,;t t
7488
s,@DB_LIB@,$DB_LIB,;t t
7489
s,@DB_VERSION@,$DB_VERSION,;t t
7490
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
7491
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
7492
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
7493
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
7494
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7495
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7496
s,@MAINT@,$MAINT,;t t
7497
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
7498
s,@subdirs@,$subdirs,;t t
7499
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
7500
s,@build@,$build,;t t
7501
s,@build_cpu@,$build_cpu,;t t
7502
s,@build_vendor@,$build_vendor,;t t
7503
s,@build_os@,$build_os,;t t
7505
s,@host_cpu@,$host_cpu,;t t
7506
s,@host_vendor@,$host_vendor,;t t
7507
s,@host_os@,$host_os,;t t
7508
s,@krb5_cv_host@,$krb5_cv_host,;t t
7509
s,@acx_pthread_config@,$acx_pthread_config,;t t
7510
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
7511
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
7512
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
7513
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
7514
s,@DL_LIB@,$DL_LIB,;t t
7515
s,@EGREP@,$EGREP,;t t
7516
s,@KRB5_RUN_ENV@,$KRB5_RUN_ENV,;t t
7517
s,@GEN_LIB@,$GEN_LIB,;t t
7518
s,@CC_LINK@,$CC_LINK,;t t
7519
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
7520
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
7521
s,@OBJLISTS@,$OBJLISTS,;t t
7522
s,@STOBJEXT@,$STOBJEXT,;t t
7523
s,@SHOBJEXT@,$SHOBJEXT,;t t
7524
s,@PFOBJEXT@,$PFOBJEXT,;t t
7525
s,@PICFLAGS@,$PICFLAGS,;t t
7526
s,@PROFFLAGS@,$PROFFLAGS,;t t
7528
s,@RANLIB@,$RANLIB,;t t
7529
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7530
s,@ARCHIVE@,$ARCHIVE,;t t
7531
s,@ARADD@,$ARADD,;t t
7532
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7533
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7534
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7537
s,@LIBLIST@,$LIBLIST,;t t
7538
s,@LIBLINKS@,$LIBLINKS,;t t
7539
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
7540
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
7541
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
7542
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
7543
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
7544
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
7545
s,@STLIBEXT@,$STLIBEXT,;t t
7546
s,@SHLIBEXT@,$SHLIBEXT,;t t
7547
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
7548
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
7549
s,@PFLIBEXT@,$PFLIBEXT,;t t
7550
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
7551
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
7552
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
7553
s,@LIBOBJS@,$LIBOBJS,;t t
7554
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7555
/@lib_frag@/r $lib_frag
7557
/@libobj_frag@/r $libobj_frag
7558
s,@libobj_frag@,,;t t
7559
/@libnover_frag@/r $libnover_frag
7560
s,@libnover_frag@,,;t t
7565
cat >>$CONFIG_STATUS <<\_ACEOF
7566
# Split the substitutions into bite-sized pieces for seds with
7567
# small command number limits, like on Digital OSF/1 and HP-UX.
7569
ac_sed_frag=1 # Number of current file.
7570
ac_beg=1 # First line for current file.
7571
ac_end=$ac_max_sed_lines # Line after last line for current file.
7574
while $ac_more_lines; do
7575
if test $ac_beg -gt 1; then
7576
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7578
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7580
if test ! -s $tmp/subs.frag; then
7583
# The purpose of the label and of the branching condition is to
7584
# speed up the sed processing (if there are no `@' at all, there
7585
# is no need to browse any of the substitutions).
7586
# These are the two extra sed commands mentioned above.
7588
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7589
if test -z "$ac_sed_cmds"; then
7590
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7592
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7594
ac_sed_frag=`expr $ac_sed_frag + 1`
7596
ac_end=`expr $ac_end + $ac_max_sed_lines`
7599
if test -z "$ac_sed_cmds"; then
7602
fi # test -n "$CONFIG_FILES"
7605
cat >>$CONFIG_STATUS <<\_ACEOF
7606
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7607
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7609
- | *:- | *:-:* ) # input from stdin
7611
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7612
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7613
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7614
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7615
* ) ac_file_in=$ac_file.in ;;
7618
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7619
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7620
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7621
X"$ac_file" : 'X\(//\)[^/]' \| \
7622
X"$ac_file" : 'X\(//\)$' \| \
7623
X"$ac_file" : 'X\(/\)' \| \
7624
. : '\(.\)' 2>/dev/null ||
7626
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7627
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7628
/^X\(\/\/\)$/{ s//\1/; q; }
7629
/^X\(\/\).*/{ s//\1/; q; }
7631
{ if $as_mkdir_p; then
7636
while test ! -d "$as_dir"; do
7637
as_dirs="$as_dir $as_dirs"
7638
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7639
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7640
X"$as_dir" : 'X\(//\)[^/]' \| \
7641
X"$as_dir" : 'X\(//\)$' \| \
7642
X"$as_dir" : 'X\(/\)' \| \
7643
. : '\(.\)' 2>/dev/null ||
7645
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7646
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7647
/^X\(\/\/\)$/{ s//\1/; q; }
7648
/^X\(\/\).*/{ s//\1/; q; }
7651
test ! -n "$as_dirs" || mkdir $as_dirs
7652
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7653
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7654
{ (exit 1); exit 1; }; }; }
7658
if test "$ac_dir" != .; then
7659
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7660
# A "../" for each directory in $ac_dir_suffix.
7661
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7663
ac_dir_suffix= ac_top_builddir=
7667
.) # No --srcdir option. We are building in place.
7669
if test -z "$ac_top_builddir"; then
7672
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7674
[\\/]* | ?:[\\/]* ) # Absolute path.
7675
ac_srcdir=$srcdir$ac_dir_suffix;
7676
ac_top_srcdir=$srcdir ;;
7678
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7679
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7682
# Do not use `cd foo && pwd` to compute absolute paths, because
7683
# the directories may not exist.
7685
.) ac_abs_builddir="$ac_dir";;
7688
.) ac_abs_builddir=`pwd`;;
7689
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7690
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7693
case $ac_abs_builddir in
7694
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7696
case ${ac_top_builddir}. in
7697
.) ac_abs_top_builddir=$ac_abs_builddir;;
7698
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7699
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7702
case $ac_abs_builddir in
7703
.) ac_abs_srcdir=$ac_srcdir;;
7706
.) ac_abs_srcdir=$ac_abs_builddir;;
7707
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7708
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7711
case $ac_abs_builddir in
7712
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7714
case $ac_top_srcdir in
7715
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7716
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7717
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7723
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7724
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7727
if test x"$ac_file" != x-; then
7728
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7729
echo "$as_me: creating $ac_file" >&6;}
7732
# Let's still pretend it is `configure' which instantiates (i.e., don't
7733
# use $as_me), people would be surprised to read:
7734
# /* config.h. Generated by config.status. */
7735
if test x"$ac_file" = x-; then
7738
configure_input="$ac_file. "
7740
configure_input=$configure_input"Generated from `echo $ac_file_in |
7741
sed 's,.*/,,'` by configure."
7743
# First look for the input files in the build tree, otherwise in the
7745
ac_file_inputs=`IFS=:
7746
for f in $ac_file_in; do
7748
-) echo $tmp/stdin ;;
7750
# Absolute (can't be DOS-style, as IFS=:)
7751
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7752
echo "$as_me: error: cannot find input file: $f" >&2;}
7753
{ (exit 1); exit 1; }; }
7756
if test -f "$f"; then
7759
elif test -f "$srcdir/$f"; then
7764
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7765
echo "$as_me: error: cannot find input file: $f" >&2;}
7766
{ (exit 1); exit 1; }; }
7769
done` || { (exit 1); exit 1; }
7771
cat >>$CONFIG_STATUS <<_ACEOF
7775
cat >>$CONFIG_STATUS <<\_ACEOF
7777
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7778
s,@configure_input@,$configure_input,;t t
7779
s,@srcdir@,$ac_srcdir,;t t
7780
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7781
s,@top_srcdir@,$ac_top_srcdir,;t t
7782
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7783
s,@builddir@,$ac_builddir,;t t
7784
s,@abs_builddir@,$ac_abs_builddir,;t t
7785
s,@top_builddir@,$ac_top_builddir,;t t
7786
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7787
s,@INSTALL@,$ac_INSTALL,;t t
7788
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7790
if test x"$ac_file" != x-; then
7791
mv $tmp/out $ac_file
7799
cat >>$CONFIG_STATUS <<\_ACEOF
7802
# CONFIG_HEADER section.
7805
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7806
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7808
# ac_d sets the value in "#define NAME VALUE" lines.
7809
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7810
ac_dB='[ ].*$,\1#\2'
7813
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7814
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7815
ac_uB='$,\1#\2define\3'
7819
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7820
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7822
- | *:- | *:-:* ) # input from stdin
7824
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7825
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7826
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7827
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7828
* ) ac_file_in=$ac_file.in ;;
7831
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7832
echo "$as_me: creating $ac_file" >&6;}
7834
# First look for the input files in the build tree, otherwise in the
7836
ac_file_inputs=`IFS=:
7837
for f in $ac_file_in; do
7839
-) echo $tmp/stdin ;;
7841
# Absolute (can't be DOS-style, as IFS=:)
7842
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7843
echo "$as_me: error: cannot find input file: $f" >&2;}
7844
{ (exit 1); exit 1; }; }
7845
# Do quote $f, to prevent DOS paths from being IFS'd.
7848
if test -f "$f"; then
7851
elif test -f "$srcdir/$f"; then
7856
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7857
echo "$as_me: error: cannot find input file: $f" >&2;}
7858
{ (exit 1); exit 1; }; }
7861
done` || { (exit 1); exit 1; }
7862
# Remove the trailing spaces.
7863
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7867
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7868
# `conftest.undefs', that substitutes the proper values into
7869
# config.h.in to produce config.h. The first handles `#define'
7870
# templates, and the second `#undef' templates.
7871
# And first: Protect against being on the right side of a sed subst in
7872
# config.status. Protect against being in an unquoted here document
7874
rm -f conftest.defines conftest.undefs
7875
# Using a here document instead of a string reduces the quoting nightmare.
7876
# Putting comments in sed scripts is not portable.
7878
# `end' is used to avoid that the second main sed command (meant for
7879
# 0-ary CPP macros) applies to n-ary macro definitions.
7880
# See the Autoconf documentation for `clear'.
7881
cat >confdef2sed.sed <<\_ACEOF
7886
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7888
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7891
# If some macros were called several times there might be several times
7892
# the same #defines, which is useless. Nevertheless, we may not want to
7893
# sort them, since we want the *last* AC-DEFINE to be honored.
7894
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7895
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7896
rm -f confdef2sed.sed
7898
# This sed command replaces #undef with comments. This is necessary, for
7899
# example, in the case of _POSIX_SOURCE, which is predefined and required
7900
# on some systems where configure will not decide to define it.
7901
cat >>conftest.undefs <<\_ACEOF
7902
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7905
# Break up conftest.defines because some shells have a limit on the size
7906
# of here documents, and old seds have small limits too (100 cmds).
7907
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7908
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7909
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7910
echo ' :' >>$CONFIG_STATUS
7912
while grep . conftest.defines >/dev/null
7914
# Write a limited-size here document to $tmp/defines.sed.
7915
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7916
# Speed up: don't consider the non `#define' lines.
7917
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7918
# Work around the forget-to-reset-the-flag bug.
7919
echo 't clr' >>$CONFIG_STATUS
7920
echo ': clr' >>$CONFIG_STATUS
7921
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7923
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7927
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7928
rm -f conftest.defines
7929
mv conftest.tail conftest.defines
7931
rm -f conftest.defines
7932
echo ' fi # grep' >>$CONFIG_STATUS
7933
echo >>$CONFIG_STATUS
7935
# Break up conftest.undefs because some shells have a limit on the size
7936
# of here documents, and old seds have small limits too (100 cmds).
7937
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7939
while grep . conftest.undefs >/dev/null
7941
# Write a limited-size here document to $tmp/undefs.sed.
7942
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7943
# Speed up: don't consider the non `#undef'
7944
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7945
# Work around the forget-to-reset-the-flag bug.
7946
echo 't clr' >>$CONFIG_STATUS
7947
echo ': clr' >>$CONFIG_STATUS
7948
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7950
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7954
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7955
rm -f conftest.undefs
7956
mv conftest.tail conftest.undefs
7958
rm -f conftest.undefs
7960
cat >>$CONFIG_STATUS <<\_ACEOF
7961
# Let's still pretend it is `configure' which instantiates (i.e., don't
7962
# use $as_me), people would be surprised to read:
7963
# /* config.h. Generated by config.status. */
7964
if test x"$ac_file" = x-; then
7965
echo "/* Generated by configure. */" >$tmp/config.h
7967
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7969
cat $tmp/in >>$tmp/config.h
7971
if test x"$ac_file" != x-; then
7972
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7973
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7974
echo "$as_me: $ac_file is unchanged" >&6;}
7976
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7977
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7978
X"$ac_file" : 'X\(//\)[^/]' \| \
7979
X"$ac_file" : 'X\(//\)$' \| \
7980
X"$ac_file" : 'X\(/\)' \| \
7981
. : '\(.\)' 2>/dev/null ||
7983
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7984
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7985
/^X\(\/\/\)$/{ s//\1/; q; }
7986
/^X\(\/\).*/{ s//\1/; q; }
7988
{ if $as_mkdir_p; then
7993
while test ! -d "$as_dir"; do
7994
as_dirs="$as_dir $as_dirs"
7995
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7996
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7997
X"$as_dir" : 'X\(//\)[^/]' \| \
7998
X"$as_dir" : 'X\(//\)$' \| \
7999
X"$as_dir" : 'X\(/\)' \| \
8000
. : '\(.\)' 2>/dev/null ||
8002
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8003
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8004
/^X\(\/\/\)$/{ s//\1/; q; }
8005
/^X\(\/\).*/{ s//\1/; q; }
8008
test ! -n "$as_dirs" || mkdir $as_dirs
8009
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8010
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8011
{ (exit 1); exit 1; }; }; }
8014
mv $tmp/config.h $ac_file
8023
cat >>$CONFIG_STATUS <<\_ACEOF
8025
{ (exit 0); exit 0; }
8027
chmod +x $CONFIG_STATUS
8028
ac_clean_files=$ac_clean_files_save
8031
# configure is writing to config.log, and then calls config.status.
8032
# config.status does its own redirection, appending to config.log.
8033
# Unfortunately, on DOS this fails, as config.log is still kept open
8034
# by configure, so config.status won't be able to write to it; its
8035
# output is simply discarded. So we exec the FD to /dev/null,
8036
# effectively closing config.log, so it can be properly (re)opened and
8037
# appended to by config.status. When coming back to configure, we
8038
# need to make the FD available again.
8039
if test "$no_create" != yes; then
8041
ac_config_status_args=
8042
test "$silent" = yes &&
8043
ac_config_status_args="$ac_config_status_args --quiet"
8045
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8047
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8048
# would make configure fail if this is the last instruction.
8049
$ac_cs_success || { (exit 1); exit 1; }