~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/plugins/locate/python/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for Kerberos 5 1.6.4-beta1.
4
 
#
5
 
# Report bugs to <krb5-bugs@mit.edu>.
6
 
#
7
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8
 
# Massachusetts Institute of Technology.
9
 
#
10
 
#
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
 
## --------------------- ##
17
 
 
18
 
# Be Bourne compatible
19
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
 
  emulate sh
21
 
  NULLCMD=:
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
26
 
  set -o posix
27
 
fi
28
 
DUALCASE=1; export DUALCASE # for MKS sh
29
 
 
30
 
# Support unset when possible.
31
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
 
  as_unset=unset
33
 
else
34
 
  as_unset=false
35
 
fi
36
 
 
37
 
 
38
 
# Work around bugs in pre-3.0 UWIN ksh.
39
 
$as_unset ENV MAIL MAILPATH
40
 
PS1='$ '
41
 
PS2='> '
42
 
PS4='+ '
43
 
 
44
 
# NLS nuisances.
45
 
for as_var in \
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 \
48
 
  LC_TELEPHONE LC_TIME
49
 
do
50
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
 
    eval $as_var=C; export $as_var
52
 
  else
53
 
    $as_unset $as_var
54
 
  fi
55
 
done
56
 
 
57
 
# Required to use basename.
58
 
if expr a : '\(a\)' >/dev/null 2>&1; then
59
 
  as_expr=expr
60
 
else
61
 
  as_expr=false
62
 
fi
63
 
 
64
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
 
  as_basename=basename
66
 
else
67
 
  as_basename=false
68
 
fi
69
 
 
70
 
 
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 ||
77
 
echo X/"$0" |
78
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
80
 
          /^X\/\(\/\).*/{ s//\1/; q; }
81
 
          s/.*/./; q'`
82
 
 
83
 
 
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
91
 
 
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
96
 
  chmod +x conf$$.sh
97
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98
 
    PATH_SEPARATOR=';'
99
 
  else
100
 
    PATH_SEPARATOR=:
101
 
  fi
102
 
  rm -f conf$$.sh
103
 
fi
104
 
 
105
 
 
106
 
  as_lineno_1=$LINENO
107
 
  as_lineno_2=$LINENO
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
112
 
  # relative or not.
113
 
  case $0 in
114
 
    *[\\/]* ) as_myself=$0 ;;
115
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
 
for as_dir in $PATH
117
 
do
118
 
  IFS=$as_save_IFS
119
 
  test -z "$as_dir" && as_dir=.
120
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
 
done
122
 
 
123
 
       ;;
124
 
  esac
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
128
 
    as_myself=$0
129
 
  fi
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; }; }
133
 
  fi
134
 
  case $CONFIG_SHELL in
135
 
  '')
136
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138
 
do
139
 
  IFS=$as_save_IFS
140
 
  test -z "$as_dir" && as_dir=.
141
 
  for as_base in sh bash ksh sh5; do
142
 
         case $as_dir in
143
 
         /*)
144
 
           if ("$as_dir/$as_base" -c '
145
 
  as_lineno_1=$LINENO
146
 
  as_lineno_2=$LINENO
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
153
 
             export CONFIG_SHELL
154
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155
 
           fi;;
156
 
         esac
157
 
       done
158
 
done
159
 
;;
160
 
  esac
161
 
 
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 |
171
 
    sed '
172
 
      N
173
 
      s,$,-,
174
 
      : loop
175
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176
 
      t loop
177
 
      s,-$,,
178
 
      s,^['$as_cr_digits']*\n,,
179
 
    ' >$as_me.lineno &&
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; }; }
183
 
 
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).
187
 
  . ./$as_me.lineno
188
 
  # Exit status is that of the last command.
189
 
  exit
190
 
}
191
 
 
192
 
 
193
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
 
  *c*,-n*) ECHO_N= ECHO_C='
195
 
' ECHO_T='      ' ;;
196
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198
 
esac
199
 
 
200
 
if expr a : '\(a\)' >/dev/null 2>&1; then
201
 
  as_expr=expr
202
 
else
203
 
  as_expr=false
204
 
fi
205
 
 
206
 
rm -f conf$$ conf$$.exe conf$$.file
207
 
echo >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
213
 
    as_ln_s='cp -p'
214
 
  else
215
 
    as_ln_s='ln -s'
216
 
  fi
217
 
elif ln conf$$.file conf$$ 2>/dev/null; then
218
 
  as_ln_s=ln
219
 
else
220
 
  as_ln_s='cp -p'
221
 
fi
222
 
rm -f conf$$ conf$$.exe conf$$.file
223
 
 
224
 
if mkdir -p . 2>/dev/null; then
225
 
  as_mkdir_p=:
226
 
else
227
 
  test -d ./-p && rmdir ./-p
228
 
  as_mkdir_p=false
229
 
fi
230
 
 
231
 
as_executable_p="test -f"
232
 
 
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'"
235
 
 
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'"
238
 
 
239
 
 
240
 
# IFS
241
 
# We need space, tab and new line, in precisely that order.
242
 
as_nl='
243
 
'
244
 
IFS="   $as_nl"
245
 
 
246
 
# CDPATH.
247
 
$as_unset CDPATH
248
 
 
249
 
 
250
 
# Name of the host.
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`
254
 
 
255
 
exec 6>&1
256
 
 
257
 
#
258
 
# Initializations.
259
 
#
260
 
ac_default_prefix=/usr/local
261
 
ac_config_libobj_dir=.
262
 
cross_compiling=no
263
 
subdirs=
264
 
MFLAGS=
265
 
MAKEFLAGS=
266
 
SHELL=${CONFIG_SHELL-/bin/sh}
267
 
 
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}
272
 
 
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'
279
 
 
280
 
ac_unique_file="configure.in"
281
 
# Factoring default headers for most tests.
282
 
ac_includes_default="\
283
 
#include <stdio.h>
284
 
#if HAVE_SYS_TYPES_H
285
 
# include <sys/types.h>
286
 
#endif
287
 
#if HAVE_SYS_STAT_H
288
 
# include <sys/stat.h>
289
 
#endif
290
 
#if STDC_HEADERS
291
 
# include <stdlib.h>
292
 
# include <stddef.h>
293
 
#else
294
 
# if HAVE_STDLIB_H
295
 
#  include <stdlib.h>
296
 
# endif
297
 
#endif
298
 
#if HAVE_STRING_H
299
 
# if !STDC_HEADERS && HAVE_MEMORY_H
300
 
#  include <memory.h>
301
 
# endif
302
 
# include <string.h>
303
 
#endif
304
 
#if HAVE_STRINGS_H
305
 
# include <strings.h>
306
 
#endif
307
 
#if HAVE_INTTYPES_H
308
 
# include <inttypes.h>
309
 
#else
310
 
# if HAVE_STDINT_H
311
 
#  include <stdint.h>
312
 
# endif
313
 
#endif
314
 
#if HAVE_UNISTD_H
315
 
# include <unistd.h>
316
 
#endif"
317
 
 
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 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 DEPLIBEXT PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND LIBOBJS LTLIBOBJS'
319
 
ac_subst_files='lib_frag libobj_frag libnover_frag'
320
 
 
321
 
# Initialize some variables set by options.
322
 
ac_init_help=
323
 
ac_init_version=false
324
 
# The variables have the same names as the options, with
325
 
# dashes changed to underlines.
326
 
cache_file=/dev/null
327
 
exec_prefix=NONE
328
 
no_create=
329
 
no_recursion=
330
 
prefix=NONE
331
 
program_prefix=NONE
332
 
program_suffix=NONE
333
 
program_transform_name=s,x,x,
334
 
silent=
335
 
site=
336
 
srcdir=
337
 
verbose=
338
 
x_includes=NONE
339
 
x_libraries=NONE
340
 
 
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'
358
 
 
359
 
ac_prev=
360
 
for ac_option
361
 
do
362
 
  # If the previous option needs an argument, assign it.
363
 
  if test -n "$ac_prev"; then
364
 
    eval "$ac_prev=\$ac_option"
365
 
    ac_prev=
366
 
    continue
367
 
  fi
368
 
 
369
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
 
 
371
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
372
 
 
373
 
  case $ac_option in
374
 
 
375
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
376
 
    ac_prev=bindir ;;
377
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378
 
    bindir=$ac_optarg ;;
379
 
 
380
 
  -build | --build | --buil | --bui | --bu)
381
 
    ac_prev=build_alias ;;
382
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383
 
    build_alias=$ac_optarg ;;
384
 
 
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 ;;
391
 
 
392
 
  --config-cache | -C)
393
 
    cache_file=config.cache ;;
394
 
 
395
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396
 
    ac_prev=datadir ;;
397
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398
 
  | --da=*)
399
 
    datadir=$ac_optarg ;;
400
 
 
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" ;;
409
 
 
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'`
417
 
    case $ac_option in
418
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419
 
      *) ac_optarg=yes ;;
420
 
    esac
421
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
422
 
 
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 ;;
431
 
 
432
 
  -gas | --gas | --ga | --g)
433
 
    # Obsolete; use --with-gas.
434
 
    with_gas=yes ;;
435
 
 
436
 
  -help | --help | --hel | --he | -h)
437
 
    ac_init_help=long ;;
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 ;;
442
 
 
443
 
  -host | --host | --hos | --ho)
444
 
    ac_prev=host_alias ;;
445
 
  -host=* | --host=* | --hos=* | --ho=*)
446
 
    host_alias=$ac_optarg ;;
447
 
 
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 ;;
454
 
 
455
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
456
 
    ac_prev=infodir ;;
457
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458
 
    infodir=$ac_optarg ;;
459
 
 
460
 
  -libdir | --libdir | --libdi | --libd)
461
 
    ac_prev=libdir ;;
462
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
463
 
    libdir=$ac_optarg ;;
464
 
 
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 ;;
471
 
 
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 ;;
480
 
 
481
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482
 
    ac_prev=mandir ;;
483
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484
 
    mandir=$ac_optarg ;;
485
 
 
486
 
  -nfp | --nfp | --nf)
487
 
    # Obsolete; use --without-fp.
488
 
    with_fp=no ;;
489
 
 
490
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491
 
  | --no-cr | --no-c | -n)
492
 
    no_create=yes ;;
493
 
 
494
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496
 
    no_recursion=yes ;;
497
 
 
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 ;;
506
 
 
507
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508
 
    ac_prev=prefix ;;
509
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510
 
    prefix=$ac_optarg ;;
511
 
 
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 ;;
518
 
 
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 ;;
525
 
 
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 ;;
542
 
 
543
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544
 
  | -silent | --silent | --silen | --sile | --sil)
545
 
    silent=yes ;;
546
 
 
547
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548
 
    ac_prev=sbindir ;;
549
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550
 
  | --sbi=* | --sb=*)
551
 
    sbindir=$ac_optarg ;;
552
 
 
553
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
554
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555
 
  | --sharedst | --shareds | --shared | --share | --shar \
556
 
  | --sha | --sh)
557
 
    ac_prev=sharedstatedir ;;
558
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561
 
  | --sha=* | --sh=*)
562
 
    sharedstatedir=$ac_optarg ;;
563
 
 
564
 
  -site | --site | --sit)
565
 
    ac_prev=site ;;
566
 
  -site=* | --site=* | --sit=*)
567
 
    site=$ac_optarg ;;
568
 
 
569
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570
 
    ac_prev=srcdir ;;
571
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572
 
    srcdir=$ac_optarg ;;
573
 
 
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 ;;
580
 
 
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 ;;
585
 
 
586
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
587
 
    verbose=yes ;;
588
 
 
589
 
  -version | --version | --versio | --versi | --vers | -V)
590
 
    ac_init_version=: ;;
591
 
 
592
 
  -with-* | --with-*)
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'`
599
 
    case $ac_option in
600
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601
 
      *) ac_optarg=yes ;;
602
 
    esac
603
 
    eval "with_$ac_package='$ac_optarg'" ;;
604
 
 
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" ;;
613
 
 
614
 
  --x)
615
 
    # Obsolete; use --with-x.
616
 
    with_x=yes ;;
617
 
 
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 ;;
624
 
 
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 ;;
631
 
 
632
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
633
 
Try \`$0 --help' for more information." >&2
634
 
   { (exit 1); exit 1; }; }
635
 
    ;;
636
 
 
637
 
  *=*)
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'"
645
 
    export $ac_envvar ;;
646
 
 
647
 
  *)
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}
653
 
    ;;
654
 
 
655
 
  esac
656
 
done
657
 
 
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; }; }
662
 
fi
663
 
 
664
 
# Be sure to have absolute paths.
665
 
for ac_var in exec_prefix prefix
666
 
do
667
 
  eval ac_val=$`echo $ac_var`
668
 
  case $ac_val in
669
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
 
   { (exit 1); exit 1; }; };;
672
 
  esac
673
 
done
674
 
 
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
678
 
do
679
 
  eval ac_val=$`echo $ac_var`
680
 
  case $ac_val in
681
 
    [\\/$]* | ?:[\\/]* ) ;;
682
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683
 
   { (exit 1); exit 1; }; };;
684
 
  esac
685
 
done
686
 
 
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.
690
 
build=$build_alias
691
 
host=$host_alias
692
 
target=$target_alias
693
 
 
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
701
 
    cross_compiling=yes
702
 
  fi
703
 
fi
704
 
 
705
 
ac_tool_prefix=
706
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
 
 
708
 
test "$silent" = yes && exec 6>/dev/null
709
 
 
710
 
 
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 ||
721
 
echo X"$0" |
722
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724
 
          /^X\(\/\/\)$/{ s//\1/; q; }
725
 
          /^X\(\/\).*/{ s//\1/; q; }
726
 
          s/.*/./; q'`
727
 
  srcdir=$ac_confdir
728
 
  if test ! -r $srcdir/$ac_unique_file; then
729
 
    srcdir=..
730
 
  fi
731
 
else
732
 
  ac_srcdir_defaulted=no
733
 
fi
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; }; }
738
 
  else
739
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740
 
   { (exit 1); exit 1; }; }
741
 
  fi
742
 
fi
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}
760
 
ac_env_CC_value=$CC
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}
780
 
ac_env_LD_value=$LD
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
795
 
 
796
 
#
797
 
# Report the --help message.
798
 
#
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.
802
 
  cat <<_ACEOF
803
 
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
804
 
 
805
 
Usage: $0 [OPTION]... [VAR=VALUE]...
806
 
 
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.
809
 
 
810
 
Defaults for the options are specified in brackets.
811
 
 
812
 
Configuration:
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 \`..']
822
 
 
823
 
_ACEOF
824
 
 
825
 
  cat <<_ACEOF
826
 
Installation directories:
827
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
828
 
                          [$ac_default_prefix]
829
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
830
 
                          [PREFIX]
831
 
 
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'.
836
 
 
837
 
For better control, use the options below.
838
 
 
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]
852
 
_ACEOF
853
 
 
854
 
  cat <<\_ACEOF
855
 
 
856
 
Program names:
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
860
 
 
861
 
System types:
862
 
  --build=BUILD     configure for building on BUILD [guessed]
863
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
864
 
_ACEOF
865
 
fi
866
 
 
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:";;
870
 
   esac
871
 
  cat <<\_ACEOF
872
 
 
873
 
Optional Features:
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
881
 
                          first use]
882
 
  --disable-thread-support
883
 
                          don't enable thread support [enabled]
884
 
 
885
 
 
886
 
Optional Packages:
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
900
 
 
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>
908
 
  CPP         C preprocessor
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]
913
 
 
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.
916
 
 
917
 
Report bugs to <krb5-bugs@mit.edu>.
918
 
_ACEOF
919
 
fi
920
 
 
921
 
if test "$ac_init_help" = "recursive"; then
922
 
  # If there are subdirs, report their specific --help.
923
 
  ac_popdir=`pwd`
924
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
 
    test -d $ac_dir || continue
926
 
    ac_builddir=.
927
 
 
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'`
932
 
else
933
 
  ac_dir_suffix= ac_top_builddir=
934
 
fi
935
 
 
936
 
case $srcdir in
937
 
  .)  # No --srcdir option.  We are building in place.
938
 
    ac_srcdir=.
939
 
    if test -z "$ac_top_builddir"; then
940
 
       ac_top_srcdir=.
941
 
    else
942
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943
 
    fi ;;
944
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
945
 
    ac_srcdir=$srcdir$ac_dir_suffix;
946
 
    ac_top_srcdir=$srcdir ;;
947
 
  *) # Relative path.
948
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
950
 
esac
951
 
 
952
 
# Do not use `cd foo && pwd` to compute absolute paths, because
953
 
# the directories may not exist.
954
 
case `pwd` in
955
 
.) ac_abs_builddir="$ac_dir";;
956
 
*)
957
 
  case "$ac_dir" in
958
 
  .) ac_abs_builddir=`pwd`;;
959
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
961
 
  esac;;
962
 
esac
963
 
case $ac_abs_builddir in
964
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
965
 
*)
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}.;;
970
 
  esac;;
971
 
esac
972
 
case $ac_abs_builddir in
973
 
.) ac_abs_srcdir=$ac_srcdir;;
974
 
*)
975
 
  case $ac_srcdir in
976
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
977
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979
 
  esac;;
980
 
esac
981
 
case $ac_abs_builddir in
982
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
983
 
*)
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;;
988
 
  esac;;
989
 
esac
990
 
 
991
 
    cd $ac_dir
992
 
    # Check for guested configure; otherwise get Cygnus style configure.
993
 
    if test -f $ac_srcdir/configure.gnu; then
994
 
      echo
995
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
996
 
    elif test -f $ac_srcdir/configure; then
997
 
      echo
998
 
      $SHELL $ac_srcdir/configure  --help=recursive
999
 
    elif test -f $ac_srcdir/configure.ac ||
1000
 
           test -f $ac_srcdir/configure.in; then
1001
 
      echo
1002
 
      $ac_configure --help
1003
 
    else
1004
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005
 
    fi
1006
 
    cd $ac_popdir
1007
 
  done
1008
 
fi
1009
 
 
1010
 
test -n "$ac_init_help" && exit 0
1011
 
if $ac_init_version; then
1012
 
  cat <<\_ACEOF
1013
 
Kerberos 5 configure 1.6.4-beta1
1014
 
generated by GNU Autoconf 2.59
1015
 
 
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.
1019
 
 
1020
 
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1021
 
Massachusetts Institute of Technology.
1022
 
 
1023
 
_ACEOF
1024
 
  exit 0
1025
 
fi
1026
 
exec 5>config.log
1027
 
cat >&5 <<_ACEOF
1028
 
This file contains any messages produced by compilers while
1029
 
running configure, to aid debugging if configure makes a mistake.
1030
 
 
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
1033
 
 
1034
 
  $ $0 $@
1035
 
 
1036
 
_ACEOF
1037
 
{
1038
 
cat <<_ASUNAME
1039
 
## --------- ##
1040
 
## Platform. ##
1041
 
## --------- ##
1042
 
 
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`
1048
 
 
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`
1051
 
 
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`
1059
 
 
1060
 
_ASUNAME
1061
 
 
1062
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063
 
for as_dir in $PATH
1064
 
do
1065
 
  IFS=$as_save_IFS
1066
 
  test -z "$as_dir" && as_dir=.
1067
 
  echo "PATH: $as_dir"
1068
 
done
1069
 
 
1070
 
} >&5
1071
 
 
1072
 
cat >&5 <<_ACEOF
1073
 
 
1074
 
 
1075
 
## ----------- ##
1076
 
## Core tests. ##
1077
 
## ----------- ##
1078
 
 
1079
 
_ACEOF
1080
 
 
1081
 
 
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.
1087
 
ac_configure_args=
1088
 
ac_configure_args0=
1089
 
ac_configure_args1=
1090
 
ac_sep=
1091
 
ac_must_keep_next=false
1092
 
for ac_pass in 1 2
1093
 
do
1094
 
  for ac_arg
1095
 
  do
1096
 
    case $ac_arg in
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)
1100
 
      continue ;;
1101
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103
 
    esac
1104
 
    case $ac_pass in
1105
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106
 
    2)
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.
1110
 
      else
1111
 
        case $ac_arg in
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 ;;
1118
 
            esac
1119
 
            ;;
1120
 
          -* ) ac_must_keep_next=true ;;
1121
 
        esac
1122
 
      fi
1123
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124
 
      # Get rid of the leading space.
1125
 
      ac_sep=" "
1126
 
      ;;
1127
 
    esac
1128
 
  done
1129
 
done
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; }
1132
 
 
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.
1140
 
  {
1141
 
    echo
1142
 
 
1143
 
    cat <<\_ASBOX
1144
 
## ---------------- ##
1145
 
## Cache variables. ##
1146
 
## ---------------- ##
1147
 
_ASBOX
1148
 
    echo
1149
 
    # The following way of writing the cache mishandles newlines in values,
1150
 
{
1151
 
  (set) 2>&1 |
1152
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153
 
    *ac_space=\ *)
1154
 
      sed -n \
1155
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157
 
      ;;
1158
 
    *)
1159
 
      sed -n \
1160
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161
 
      ;;
1162
 
    esac;
1163
 
}
1164
 
    echo
1165
 
 
1166
 
    cat <<\_ASBOX
1167
 
## ----------------- ##
1168
 
## Output variables. ##
1169
 
## ----------------- ##
1170
 
_ASBOX
1171
 
    echo
1172
 
    for ac_var in $ac_subst_vars
1173
 
    do
1174
 
      eval ac_val=$`echo $ac_var`
1175
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1176
 
    done | sort
1177
 
    echo
1178
 
 
1179
 
    if test -n "$ac_subst_files"; then
1180
 
      cat <<\_ASBOX
1181
 
## ------------- ##
1182
 
## Output files. ##
1183
 
## ------------- ##
1184
 
_ASBOX
1185
 
      echo
1186
 
      for ac_var in $ac_subst_files
1187
 
      do
1188
 
        eval ac_val=$`echo $ac_var`
1189
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1190
 
      done | sort
1191
 
      echo
1192
 
    fi
1193
 
 
1194
 
    if test -s confdefs.h; then
1195
 
      cat <<\_ASBOX
1196
 
## ----------- ##
1197
 
## confdefs.h. ##
1198
 
## ----------- ##
1199
 
_ASBOX
1200
 
      echo
1201
 
      sed "/^$/d" confdefs.h | sort
1202
 
      echo
1203
 
    fi
1204
 
    test "$ac_signal" != 0 &&
1205
 
      echo "$as_me: caught signal $ac_signal"
1206
 
    echo "$as_me: exit $exit_status"
1207
 
  } >&5
1208
 
  rm -f core *.core &&
1209
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210
 
    exit $exit_status
1211
 
     ' 0
1212
 
for ac_signal in 1 2 13 15; do
1213
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214
 
done
1215
 
ac_signal=0
1216
 
 
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.
1220
 
echo >confdefs.h
1221
 
 
1222
 
# Predefined preprocessor variables.
1223
 
 
1224
 
cat >>confdefs.h <<_ACEOF
1225
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1226
 
_ACEOF
1227
 
 
1228
 
 
1229
 
cat >>confdefs.h <<_ACEOF
1230
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231
 
_ACEOF
1232
 
 
1233
 
 
1234
 
cat >>confdefs.h <<_ACEOF
1235
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1236
 
_ACEOF
1237
 
 
1238
 
 
1239
 
cat >>confdefs.h <<_ACEOF
1240
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1241
 
_ACEOF
1242
 
 
1243
 
 
1244
 
cat >>confdefs.h <<_ACEOF
1245
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246
 
_ACEOF
1247
 
 
1248
 
 
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"
1254
 
  else
1255
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256
 
  fi
1257
 
fi
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
1263
 
    . "$ac_site_file"
1264
 
  fi
1265
 
done
1266
 
 
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;}
1273
 
    case $cache_file in
1274
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1275
 
      *)                      . ./$cache_file;;
1276
 
    esac
1277
 
  fi
1278
 
else
1279
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280
 
echo "$as_me: creating cache $cache_file" >&6;}
1281
 
  >$cache_file
1282
 
fi
1283
 
 
1284
 
# Check that the precious variables saved in the cache have kept the same
1285
 
# value.
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
1294
 
    set,)
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=: ;;
1298
 
    ,set)
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=: ;;
1302
 
    ,);;
1303
 
    *)
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=:
1312
 
      fi;;
1313
 
  esac
1314
 
  # Pass precious variables to config.status.
1315
 
  if test "$ac_new_set" = set; then
1316
 
    case $ac_new_val in
1317
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1320
 
    esac
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'" ;;
1324
 
    esac
1325
 
  fi
1326
 
done
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; }; }
1333
 
fi
1334
 
 
1335
 
ac_ext=c
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
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
build_dynobj=no
1369
 
enable_shared=yes
1370
 
build_dynobj=yes
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; }; }
1376
 
fi
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
1381
 
  ac_aux_dir=
1382
 
for ac_dir in ../../../config $srcdir/../../../config; do
1383
 
  if test -f $ac_dir/install-sh; then
1384
 
    ac_aux_dir=$ac_dir
1385
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1386
 
    break
1387
 
  elif test -f $ac_dir/install.sh; then
1388
 
    ac_aux_dir=$ac_dir
1389
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1390
 
    break
1391
 
  elif test -f $ac_dir/shtool; then
1392
 
    ac_aux_dir=$ac_dir
1393
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1394
 
    break
1395
 
  fi
1396
 
done
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; }; }
1401
 
fi
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.
1405
 
 
1406
 
else
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; }; }
1410
 
fi
1411
 
 
1412
 
 
1413
 
 
1414
 
krb5_ac_cflags_set=${CFLAGS+set}
1415
 
 
1416
 
ac_ext=c
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
1428
 
else
1429
 
  if test -n "$CC"; then
1430
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1431
 
else
1432
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433
 
for as_dir in $PATH
1434
 
do
1435
 
  IFS=$as_save_IFS
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
1441
 
    break 2
1442
 
  fi
1443
 
done
1444
 
done
1445
 
 
1446
 
fi
1447
 
fi
1448
 
CC=$ac_cv_prog_CC
1449
 
if test -n "$CC"; then
1450
 
  echo "$as_me:$LINENO: result: $CC" >&5
1451
 
echo "${ECHO_T}$CC" >&6
1452
 
else
1453
 
  echo "$as_me:$LINENO: result: no" >&5
1454
 
echo "${ECHO_T}no" >&6
1455
 
fi
1456
 
 
1457
 
fi
1458
 
if test -z "$ac_cv_prog_CC"; then
1459
 
  ac_ct_CC=$CC
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
1466
 
else
1467
 
  if test -n "$ac_ct_CC"; then
1468
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1469
 
else
1470
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471
 
for as_dir in $PATH
1472
 
do
1473
 
  IFS=$as_save_IFS
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
1479
 
    break 2
1480
 
  fi
1481
 
done
1482
 
done
1483
 
 
1484
 
fi
1485
 
fi
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
1490
 
else
1491
 
  echo "$as_me:$LINENO: result: no" >&5
1492
 
echo "${ECHO_T}no" >&6
1493
 
fi
1494
 
 
1495
 
  CC=$ac_ct_CC
1496
 
else
1497
 
  CC="$ac_cv_prog_CC"
1498
 
fi
1499
 
 
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
1508
 
else
1509
 
  if test -n "$CC"; then
1510
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1511
 
else
1512
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513
 
for as_dir in $PATH
1514
 
do
1515
 
  IFS=$as_save_IFS
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
1521
 
    break 2
1522
 
  fi
1523
 
done
1524
 
done
1525
 
 
1526
 
fi
1527
 
fi
1528
 
CC=$ac_cv_prog_CC
1529
 
if test -n "$CC"; then
1530
 
  echo "$as_me:$LINENO: result: $CC" >&5
1531
 
echo "${ECHO_T}$CC" >&6
1532
 
else
1533
 
  echo "$as_me:$LINENO: result: no" >&5
1534
 
echo "${ECHO_T}no" >&6
1535
 
fi
1536
 
 
1537
 
fi
1538
 
if test -z "$ac_cv_prog_CC"; then
1539
 
  ac_ct_CC=$CC
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
1546
 
else
1547
 
  if test -n "$ac_ct_CC"; then
1548
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1549
 
else
1550
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551
 
for as_dir in $PATH
1552
 
do
1553
 
  IFS=$as_save_IFS
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
1559
 
    break 2
1560
 
  fi
1561
 
done
1562
 
done
1563
 
 
1564
 
fi
1565
 
fi
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
1570
 
else
1571
 
  echo "$as_me:$LINENO: result: no" >&5
1572
 
echo "${ECHO_T}no" >&6
1573
 
fi
1574
 
 
1575
 
  CC=$ac_ct_CC
1576
 
else
1577
 
  CC="$ac_cv_prog_CC"
1578
 
fi
1579
 
 
1580
 
fi
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
1588
 
else
1589
 
  if test -n "$CC"; then
1590
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1591
 
else
1592
 
  ac_prog_rejected=no
1593
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594
 
for as_dir in $PATH
1595
 
do
1596
 
  IFS=$as_save_IFS
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
1602
 
       continue
1603
 
     fi
1604
 
    ac_cv_prog_CC="cc"
1605
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606
 
    break 2
1607
 
  fi
1608
 
done
1609
 
done
1610
 
 
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
1614
 
  shift
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.
1619
 
    shift
1620
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1621
 
  fi
1622
 
fi
1623
 
fi
1624
 
fi
1625
 
CC=$ac_cv_prog_CC
1626
 
if test -n "$CC"; then
1627
 
  echo "$as_me:$LINENO: result: $CC" >&5
1628
 
echo "${ECHO_T}$CC" >&6
1629
 
else
1630
 
  echo "$as_me:$LINENO: result: no" >&5
1631
 
echo "${ECHO_T}no" >&6
1632
 
fi
1633
 
 
1634
 
fi
1635
 
if test -z "$CC"; then
1636
 
  if test -n "$ac_tool_prefix"; then
1637
 
  for ac_prog in cl
1638
 
  do
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
1645
 
else
1646
 
  if test -n "$CC"; then
1647
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1648
 
else
1649
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650
 
for as_dir in $PATH
1651
 
do
1652
 
  IFS=$as_save_IFS
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
1658
 
    break 2
1659
 
  fi
1660
 
done
1661
 
done
1662
 
 
1663
 
fi
1664
 
fi
1665
 
CC=$ac_cv_prog_CC
1666
 
if test -n "$CC"; then
1667
 
  echo "$as_me:$LINENO: result: $CC" >&5
1668
 
echo "${ECHO_T}$CC" >&6
1669
 
else
1670
 
  echo "$as_me:$LINENO: result: no" >&5
1671
 
echo "${ECHO_T}no" >&6
1672
 
fi
1673
 
 
1674
 
    test -n "$CC" && break
1675
 
  done
1676
 
fi
1677
 
if test -z "$CC"; then
1678
 
  ac_ct_CC=$CC
1679
 
  for ac_prog in cl
1680
 
do
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
1687
 
else
1688
 
  if test -n "$ac_ct_CC"; then
1689
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1690
 
else
1691
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692
 
for as_dir in $PATH
1693
 
do
1694
 
  IFS=$as_save_IFS
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
1700
 
    break 2
1701
 
  fi
1702
 
done
1703
 
done
1704
 
 
1705
 
fi
1706
 
fi
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
1711
 
else
1712
 
  echo "$as_me:$LINENO: result: no" >&5
1713
 
echo "${ECHO_T}no" >&6
1714
 
fi
1715
 
 
1716
 
  test -n "$ac_ct_CC" && break
1717
 
done
1718
 
 
1719
 
  CC=$ac_ct_CC
1720
 
fi
1721
 
 
1722
 
fi
1723
 
 
1724
 
 
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; }; }
1730
 
 
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
1737
 
  ac_status=$?
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
1742
 
  ac_status=$?
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
1747
 
  ac_status=$?
1748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
 
  (exit $ac_status); }
1750
 
 
1751
 
cat >conftest.$ac_ext <<_ACEOF
1752
 
/* confdefs.h.  */
1753
 
_ACEOF
1754
 
cat confdefs.h >>conftest.$ac_ext
1755
 
cat >>conftest.$ac_ext <<_ACEOF
1756
 
/* end confdefs.h.  */
1757
 
 
1758
 
int
1759
 
main ()
1760
 
{
1761
 
 
1762
 
  ;
1763
 
  return 0;
1764
 
}
1765
 
_ACEOF
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
1770
 
# of exeext.
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
1776
 
  ac_status=$?
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
1781
 
# resort.
1782
 
 
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.
1785
 
ac_cv_exeext=
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
1788
 
do
1789
 
  test -f "$ac_file" || continue
1790
 
  case $ac_file in
1791
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1792
 
        ;;
1793
 
    conftest.$ac_ext )
1794
 
        # This is the source file.
1795
 
        ;;
1796
 
    [ab].out )
1797
 
        # We found the default executable, but exeext='' is most
1798
 
        # certainly right.
1799
 
        break;;
1800
 
    *.* )
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.
1805
 
        export ac_cv_exeext
1806
 
        break;;
1807
 
    * )
1808
 
        break;;
1809
 
  esac
1810
 
done
1811
 
else
1812
 
  echo "$as_me: failed program was:" >&5
1813
 
sed 's/^/| /' conftest.$ac_ext >&5
1814
 
 
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; }; }
1820
 
fi
1821
 
 
1822
 
ac_exeext=$ac_cv_exeext
1823
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1824
 
echo "${ECHO_T}$ac_file" >&6
1825
 
 
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
1835
 
  (eval $ac_try) 2>&5
1836
 
  ac_status=$?
1837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838
 
  (exit $ac_status); }; }; then
1839
 
    cross_compiling=no
1840
 
  else
1841
 
    if test "$cross_compiling" = maybe; then
1842
 
        cross_compiling=yes
1843
 
    else
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; }; }
1851
 
    fi
1852
 
  fi
1853
 
fi
1854
 
echo "$as_me:$LINENO: result: yes" >&5
1855
 
echo "${ECHO_T}yes" >&6
1856
 
 
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
1865
 
 
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
1870
 
  ac_status=$?
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
1876
 
# `rm'.
1877
 
for ac_file in conftest.exe conftest conftest.*; do
1878
 
  test -f "$ac_file" || continue
1879
 
  case $ac_file in
1880
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882
 
          export ac_cv_exeext
1883
 
          break;;
1884
 
    * ) break;;
1885
 
  esac
1886
 
done
1887
 
else
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; }; }
1893
 
fi
1894
 
 
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
1898
 
 
1899
 
rm -f conftest.$ac_ext
1900
 
EXEEXT=$ac_cv_exeext
1901
 
ac_exeext=$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
1906
 
else
1907
 
  cat >conftest.$ac_ext <<_ACEOF
1908
 
/* confdefs.h.  */
1909
 
_ACEOF
1910
 
cat confdefs.h >>conftest.$ac_ext
1911
 
cat >>conftest.$ac_ext <<_ACEOF
1912
 
/* end confdefs.h.  */
1913
 
 
1914
 
int
1915
 
main ()
1916
 
{
1917
 
 
1918
 
  ;
1919
 
  return 0;
1920
 
}
1921
 
_ACEOF
1922
 
rm -f conftest.o conftest.obj
1923
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924
 
  (eval $ac_compile) 2>&5
1925
 
  ac_status=$?
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
1929
 
  case $ac_file in
1930
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1931
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1932
 
       break;;
1933
 
  esac
1934
 
done
1935
 
else
1936
 
  echo "$as_me: failed program was:" >&5
1937
 
sed 's/^/| /' conftest.$ac_ext >&5
1938
 
 
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; }; }
1944
 
fi
1945
 
 
1946
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1947
 
fi
1948
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949
 
echo "${ECHO_T}$ac_cv_objext" >&6
1950
 
OBJEXT=$ac_cv_objext
1951
 
ac_objext=$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
1956
 
else
1957
 
  cat >conftest.$ac_ext <<_ACEOF
1958
 
/* confdefs.h.  */
1959
 
_ACEOF
1960
 
cat confdefs.h >>conftest.$ac_ext
1961
 
cat >>conftest.$ac_ext <<_ACEOF
1962
 
/* end confdefs.h.  */
1963
 
 
1964
 
int
1965
 
main ()
1966
 
{
1967
 
#ifndef __GNUC__
1968
 
       choke me
1969
 
#endif
1970
 
 
1971
 
  ;
1972
 
  return 0;
1973
 
}
1974
 
_ACEOF
1975
 
rm -f conftest.$ac_objext
1976
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977
 
  (eval $ac_compile) 2>conftest.er1
1978
 
  ac_status=$?
1979
 
  grep -v '^ *+' conftest.er1 >conftest.err
1980
 
  rm -f conftest.er1
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
1987
 
  (eval $ac_try) 2>&5
1988
 
  ac_status=$?
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
1993
 
  (eval $ac_try) 2>&5
1994
 
  ac_status=$?
1995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
 
  (exit $ac_status); }; }; then
1997
 
  ac_compiler_gnu=yes
1998
 
else
1999
 
  echo "$as_me: failed program was:" >&5
2000
 
sed 's/^/| /' conftest.$ac_ext >&5
2001
 
 
2002
 
ac_compiler_gnu=no
2003
 
fi
2004
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2006
 
 
2007
 
fi
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
2013
 
CFLAGS="-g"
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
2018
 
else
2019
 
  cat >conftest.$ac_ext <<_ACEOF
2020
 
/* confdefs.h.  */
2021
 
_ACEOF
2022
 
cat confdefs.h >>conftest.$ac_ext
2023
 
cat >>conftest.$ac_ext <<_ACEOF
2024
 
/* end confdefs.h.  */
2025
 
 
2026
 
int
2027
 
main ()
2028
 
{
2029
 
 
2030
 
  ;
2031
 
  return 0;
2032
 
}
2033
 
_ACEOF
2034
 
rm -f conftest.$ac_objext
2035
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036
 
  (eval $ac_compile) 2>conftest.er1
2037
 
  ac_status=$?
2038
 
  grep -v '^ *+' conftest.er1 >conftest.err
2039
 
  rm -f conftest.er1
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
2046
 
  (eval $ac_try) 2>&5
2047
 
  ac_status=$?
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
2052
 
  (eval $ac_try) 2>&5
2053
 
  ac_status=$?
2054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055
 
  (exit $ac_status); }; }; then
2056
 
  ac_cv_prog_cc_g=yes
2057
 
else
2058
 
  echo "$as_me: failed program was:" >&5
2059
 
sed 's/^/| /' conftest.$ac_ext >&5
2060
 
 
2061
 
ac_cv_prog_cc_g=no
2062
 
fi
2063
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2064
 
fi
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
2071
 
    CFLAGS="-g -O2"
2072
 
  else
2073
 
    CFLAGS="-g"
2074
 
  fi
2075
 
else
2076
 
  if test "$GCC" = yes; then
2077
 
    CFLAGS="-O2"
2078
 
  else
2079
 
    CFLAGS=
2080
 
  fi
2081
 
fi
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
2086
 
else
2087
 
  ac_cv_prog_cc_stdc=no
2088
 
ac_save_CC=$CC
2089
 
cat >conftest.$ac_ext <<_ACEOF
2090
 
/* confdefs.h.  */
2091
 
_ACEOF
2092
 
cat confdefs.h >>conftest.$ac_ext
2093
 
cat >>conftest.$ac_ext <<_ACEOF
2094
 
/* end confdefs.h.  */
2095
 
#include <stdarg.h>
2096
 
#include <stdio.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)
2103
 
     char **p;
2104
 
     int i;
2105
 
{
2106
 
  return p[i];
2107
 
}
2108
 
static char *f (char * (*g) (char **, int), char **p, ...)
2109
 
{
2110
 
  char *s;
2111
 
  va_list v;
2112
 
  va_start (v,p);
2113
 
  s = g (p, va_arg (v,int));
2114
 
  va_end (v);
2115
 
  return s;
2116
 
}
2117
 
 
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];
2126
 
 
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);
2131
 
int argc;
2132
 
char **argv;
2133
 
int
2134
 
main ()
2135
 
{
2136
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2137
 
  ;
2138
 
  return 0;
2139
 
}
2140
 
_ACEOF
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__"
2149
 
do
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
2154
 
  ac_status=$?
2155
 
  grep -v '^ *+' conftest.er1 >conftest.err
2156
 
  rm -f conftest.er1
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
2163
 
  (eval $ac_try) 2>&5
2164
 
  ac_status=$?
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
2169
 
  (eval $ac_try) 2>&5
2170
 
  ac_status=$?
2171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172
 
  (exit $ac_status); }; }; then
2173
 
  ac_cv_prog_cc_stdc=$ac_arg
2174
 
break
2175
 
else
2176
 
  echo "$as_me: failed program was:" >&5
2177
 
sed 's/^/| /' conftest.$ac_ext >&5
2178
 
 
2179
 
fi
2180
 
rm -f conftest.err conftest.$ac_objext
2181
 
done
2182
 
rm -f conftest.$ac_ext conftest.$ac_objext
2183
 
CC=$ac_save_CC
2184
 
 
2185
 
fi
2186
 
 
2187
 
case "x$ac_cv_prog_cc_stdc" in
2188
 
  x|xno)
2189
 
    echo "$as_me:$LINENO: result: none needed" >&5
2190
 
echo "${ECHO_T}none needed" >&6 ;;
2191
 
  *)
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" ;;
2195
 
esac
2196
 
 
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
2202
 
#ifndef __cplusplus
2203
 
  choke me
2204
 
#endif
2205
 
_ACEOF
2206
 
rm -f conftest.$ac_objext
2207
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208
 
  (eval $ac_compile) 2>conftest.er1
2209
 
  ac_status=$?
2210
 
  grep -v '^ *+' conftest.er1 >conftest.err
2211
 
  rm -f conftest.er1
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
2218
 
  (eval $ac_try) 2>&5
2219
 
  ac_status=$?
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
2224
 
  (eval $ac_try) 2>&5
2225
 
  ac_status=$?
2226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
 
  (exit $ac_status); }; }; then
2228
 
  for ac_declaration in \
2229
 
   '' \
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);' \
2234
 
   'void exit (int);'
2235
 
do
2236
 
  cat >conftest.$ac_ext <<_ACEOF
2237
 
/* confdefs.h.  */
2238
 
_ACEOF
2239
 
cat confdefs.h >>conftest.$ac_ext
2240
 
cat >>conftest.$ac_ext <<_ACEOF
2241
 
/* end confdefs.h.  */
2242
 
$ac_declaration
2243
 
#include <stdlib.h>
2244
 
int
2245
 
main ()
2246
 
{
2247
 
exit (42);
2248
 
  ;
2249
 
  return 0;
2250
 
}
2251
 
_ACEOF
2252
 
rm -f conftest.$ac_objext
2253
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254
 
  (eval $ac_compile) 2>conftest.er1
2255
 
  ac_status=$?
2256
 
  grep -v '^ *+' conftest.er1 >conftest.err
2257
 
  rm -f conftest.er1
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
2264
 
  (eval $ac_try) 2>&5
2265
 
  ac_status=$?
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
2270
 
  (eval $ac_try) 2>&5
2271
 
  ac_status=$?
2272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273
 
  (exit $ac_status); }; }; then
2274
 
  :
2275
 
else
2276
 
  echo "$as_me: failed program was:" >&5
2277
 
sed 's/^/| /' conftest.$ac_ext >&5
2278
 
 
2279
 
continue
2280
 
fi
2281
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282
 
  cat >conftest.$ac_ext <<_ACEOF
2283
 
/* confdefs.h.  */
2284
 
_ACEOF
2285
 
cat confdefs.h >>conftest.$ac_ext
2286
 
cat >>conftest.$ac_ext <<_ACEOF
2287
 
/* end confdefs.h.  */
2288
 
$ac_declaration
2289
 
int
2290
 
main ()
2291
 
{
2292
 
exit (42);
2293
 
  ;
2294
 
  return 0;
2295
 
}
2296
 
_ACEOF
2297
 
rm -f conftest.$ac_objext
2298
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299
 
  (eval $ac_compile) 2>conftest.er1
2300
 
  ac_status=$?
2301
 
  grep -v '^ *+' conftest.er1 >conftest.err
2302
 
  rm -f conftest.er1
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
2309
 
  (eval $ac_try) 2>&5
2310
 
  ac_status=$?
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
2315
 
  (eval $ac_try) 2>&5
2316
 
  ac_status=$?
2317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318
 
  (exit $ac_status); }; }; then
2319
 
  break
2320
 
else
2321
 
  echo "$as_me: failed program was:" >&5
2322
 
sed 's/^/| /' conftest.$ac_ext >&5
2323
 
 
2324
 
fi
2325
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326
 
done
2327
 
rm -f conftest*
2328
 
if test -n "$ac_declaration"; then
2329
 
  echo '#ifdef __cplusplus' >>confdefs.h
2330
 
  echo $ac_declaration      >>confdefs.h
2331
 
  echo '#endif'             >>confdefs.h
2332
 
fi
2333
 
 
2334
 
else
2335
 
  echo "$as_me: failed program was:" >&5
2336
 
sed 's/^/| /' conftest.$ac_ext >&5
2337
 
 
2338
 
fi
2339
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340
 
ac_ext=c
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
2345
 
 
2346
 
 
2347
 
ac_ext=c
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
2356
 
  CPP=
2357
 
fi
2358
 
if test -z "$CPP"; then
2359
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2360
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2361
 
else
2362
 
      # Double quotes because CPP needs to be expanded
2363
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2364
 
    do
2365
 
      ac_preproc_ok=false
2366
 
for ac_c_preproc_warn_flag in '' yes
2367
 
do
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
2375
 
/* confdefs.h.  */
2376
 
_ACEOF
2377
 
cat confdefs.h >>conftest.$ac_ext
2378
 
cat >>conftest.$ac_ext <<_ACEOF
2379
 
/* end confdefs.h.  */
2380
 
#ifdef __STDC__
2381
 
# include <limits.h>
2382
 
#else
2383
 
# include <assert.h>
2384
 
#endif
2385
 
                     Syntax error
2386
 
_ACEOF
2387
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389
 
  ac_status=$?
2390
 
  grep -v '^ *+' conftest.er1 >conftest.err
2391
 
  rm -f conftest.er1
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
2398
 
  else
2399
 
    ac_cpp_err=
2400
 
  fi
2401
 
else
2402
 
  ac_cpp_err=yes
2403
 
fi
2404
 
if test -z "$ac_cpp_err"; then
2405
 
  :
2406
 
else
2407
 
  echo "$as_me: failed program was:" >&5
2408
 
sed 's/^/| /' conftest.$ac_ext >&5
2409
 
 
2410
 
  # Broken: fails on valid input.
2411
 
continue
2412
 
fi
2413
 
rm -f conftest.err conftest.$ac_ext
2414
 
 
2415
 
  # OK, works on sane cases.  Now check whether non-existent headers
2416
 
  # can be detected and how.
2417
 
  cat >conftest.$ac_ext <<_ACEOF
2418
 
/* confdefs.h.  */
2419
 
_ACEOF
2420
 
cat confdefs.h >>conftest.$ac_ext
2421
 
cat >>conftest.$ac_ext <<_ACEOF
2422
 
/* end confdefs.h.  */
2423
 
#include <ac_nonexistent.h>
2424
 
_ACEOF
2425
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427
 
  ac_status=$?
2428
 
  grep -v '^ *+' conftest.er1 >conftest.err
2429
 
  rm -f conftest.er1
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
2436
 
  else
2437
 
    ac_cpp_err=
2438
 
  fi
2439
 
else
2440
 
  ac_cpp_err=yes
2441
 
fi
2442
 
if test -z "$ac_cpp_err"; then
2443
 
  # Broken: success on invalid input.
2444
 
continue
2445
 
else
2446
 
  echo "$as_me: failed program was:" >&5
2447
 
sed 's/^/| /' conftest.$ac_ext >&5
2448
 
 
2449
 
  # Passes both tests.
2450
 
ac_preproc_ok=:
2451
 
break
2452
 
fi
2453
 
rm -f conftest.err conftest.$ac_ext
2454
 
 
2455
 
done
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
2459
 
  break
2460
 
fi
2461
 
 
2462
 
    done
2463
 
    ac_cv_prog_CPP=$CPP
2464
 
 
2465
 
fi
2466
 
  CPP=$ac_cv_prog_CPP
2467
 
else
2468
 
  ac_cv_prog_CPP=$CPP
2469
 
fi
2470
 
echo "$as_me:$LINENO: result: $CPP" >&5
2471
 
echo "${ECHO_T}$CPP" >&6
2472
 
ac_preproc_ok=false
2473
 
for ac_c_preproc_warn_flag in '' yes
2474
 
do
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
2482
 
/* confdefs.h.  */
2483
 
_ACEOF
2484
 
cat confdefs.h >>conftest.$ac_ext
2485
 
cat >>conftest.$ac_ext <<_ACEOF
2486
 
/* end confdefs.h.  */
2487
 
#ifdef __STDC__
2488
 
# include <limits.h>
2489
 
#else
2490
 
# include <assert.h>
2491
 
#endif
2492
 
                     Syntax error
2493
 
_ACEOF
2494
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496
 
  ac_status=$?
2497
 
  grep -v '^ *+' conftest.er1 >conftest.err
2498
 
  rm -f conftest.er1
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
2505
 
  else
2506
 
    ac_cpp_err=
2507
 
  fi
2508
 
else
2509
 
  ac_cpp_err=yes
2510
 
fi
2511
 
if test -z "$ac_cpp_err"; then
2512
 
  :
2513
 
else
2514
 
  echo "$as_me: failed program was:" >&5
2515
 
sed 's/^/| /' conftest.$ac_ext >&5
2516
 
 
2517
 
  # Broken: fails on valid input.
2518
 
continue
2519
 
fi
2520
 
rm -f conftest.err conftest.$ac_ext
2521
 
 
2522
 
  # OK, works on sane cases.  Now check whether non-existent headers
2523
 
  # can be detected and how.
2524
 
  cat >conftest.$ac_ext <<_ACEOF
2525
 
/* confdefs.h.  */
2526
 
_ACEOF
2527
 
cat confdefs.h >>conftest.$ac_ext
2528
 
cat >>conftest.$ac_ext <<_ACEOF
2529
 
/* end confdefs.h.  */
2530
 
#include <ac_nonexistent.h>
2531
 
_ACEOF
2532
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534
 
  ac_status=$?
2535
 
  grep -v '^ *+' conftest.er1 >conftest.err
2536
 
  rm -f conftest.er1
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
2543
 
  else
2544
 
    ac_cpp_err=
2545
 
  fi
2546
 
else
2547
 
  ac_cpp_err=yes
2548
 
fi
2549
 
if test -z "$ac_cpp_err"; then
2550
 
  # Broken: success on invalid input.
2551
 
continue
2552
 
else
2553
 
  echo "$as_me: failed program was:" >&5
2554
 
sed 's/^/| /' conftest.$ac_ext >&5
2555
 
 
2556
 
  # Passes both tests.
2557
 
ac_preproc_ok=:
2558
 
break
2559
 
fi
2560
 
rm -f conftest.err conftest.$ac_ext
2561
 
 
2562
 
done
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
2566
 
  :
2567
 
else
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; }; }
2573
 
fi
2574
 
 
2575
 
ac_ext=c
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
2580
 
 
2581
 
 
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; }; }
2587
 
 
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
2592
 
else
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; }; }
2604
 
 
2605
 
fi
2606
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2607
 
echo "${ECHO_T}$ac_cv_build" >&6
2608
 
build=$ac_cv_build
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/'`
2612
 
 
2613
 
 
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
2618
 
else
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; }; }
2626
 
 
2627
 
fi
2628
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2629
 
echo "${ECHO_T}$ac_cv_host" >&6
2630
 
host=$ac_cv_host
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/'`
2634
 
 
2635
 
 
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
2640
 
else
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'
2644
 
    fi
2645
 
fi
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
2649
 
 
2650
 
 
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
2655
 
else
2656
 
  cat >conftest.$ac_ext <<_ACEOF
2657
 
/* confdefs.h.  */
2658
 
_ACEOF
2659
 
cat confdefs.h >>conftest.$ac_ext
2660
 
cat >>conftest.$ac_ext <<_ACEOF
2661
 
/* end confdefs.h.  */
2662
 
#include <stdlib.h>
2663
 
#include <stdarg.h>
2664
 
#include <string.h>
2665
 
#include <float.h>
2666
 
 
2667
 
int
2668
 
main ()
2669
 
{
2670
 
 
2671
 
  ;
2672
 
  return 0;
2673
 
}
2674
 
_ACEOF
2675
 
rm -f conftest.$ac_objext
2676
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677
 
  (eval $ac_compile) 2>conftest.er1
2678
 
  ac_status=$?
2679
 
  grep -v '^ *+' conftest.er1 >conftest.err
2680
 
  rm -f conftest.er1
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
2687
 
  (eval $ac_try) 2>&5
2688
 
  ac_status=$?
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
2693
 
  (eval $ac_try) 2>&5
2694
 
  ac_status=$?
2695
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
 
  (exit $ac_status); }; }; then
2697
 
  ac_cv_header_stdc=yes
2698
 
else
2699
 
  echo "$as_me: failed program was:" >&5
2700
 
sed 's/^/| /' conftest.$ac_ext >&5
2701
 
 
2702
 
ac_cv_header_stdc=no
2703
 
fi
2704
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705
 
 
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
2709
 
/* confdefs.h.  */
2710
 
_ACEOF
2711
 
cat confdefs.h >>conftest.$ac_ext
2712
 
cat >>conftest.$ac_ext <<_ACEOF
2713
 
/* end confdefs.h.  */
2714
 
#include <string.h>
2715
 
 
2716
 
_ACEOF
2717
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2718
 
  $EGREP "memchr" >/dev/null 2>&1; then
2719
 
  :
2720
 
else
2721
 
  ac_cv_header_stdc=no
2722
 
fi
2723
 
rm -f conftest*
2724
 
 
2725
 
fi
2726
 
 
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
2730
 
/* confdefs.h.  */
2731
 
_ACEOF
2732
 
cat confdefs.h >>conftest.$ac_ext
2733
 
cat >>conftest.$ac_ext <<_ACEOF
2734
 
/* end confdefs.h.  */
2735
 
#include <stdlib.h>
2736
 
 
2737
 
_ACEOF
2738
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2739
 
  $EGREP "free" >/dev/null 2>&1; then
2740
 
  :
2741
 
else
2742
 
  ac_cv_header_stdc=no
2743
 
fi
2744
 
rm -f conftest*
2745
 
 
2746
 
fi
2747
 
 
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
2751
 
  :
2752
 
else
2753
 
  cat >conftest.$ac_ext <<_ACEOF
2754
 
/* confdefs.h.  */
2755
 
_ACEOF
2756
 
cat confdefs.h >>conftest.$ac_ext
2757
 
cat >>conftest.$ac_ext <<_ACEOF
2758
 
/* end confdefs.h.  */
2759
 
#include <ctype.h>
2760
 
#if ((' ' & 0x0FF) == 0x020)
2761
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2762
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2763
 
#else
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))
2769
 
#endif
2770
 
 
2771
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2772
 
int
2773
 
main ()
2774
 
{
2775
 
  int i;
2776
 
  for (i = 0; i < 256; i++)
2777
 
    if (XOR (islower (i), ISLOWER (i))
2778
 
        || toupper (i) != TOUPPER (i))
2779
 
      exit(2);
2780
 
  exit (0);
2781
 
}
2782
 
_ACEOF
2783
 
rm -f conftest$ac_exeext
2784
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2785
 
  (eval $ac_link) 2>&5
2786
 
  ac_status=$?
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
2790
 
  (eval $ac_try) 2>&5
2791
 
  ac_status=$?
2792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
 
  (exit $ac_status); }; }; then
2794
 
  :
2795
 
else
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
2799
 
 
2800
 
( exit $ac_status )
2801
 
ac_cv_header_stdc=no
2802
 
fi
2803
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2804
 
fi
2805
 
fi
2806
 
fi
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
2810
 
 
2811
 
cat >>confdefs.h <<\_ACEOF
2812
 
#define STDC_HEADERS 1
2813
 
_ACEOF
2814
 
 
2815
 
fi
2816
 
 
2817
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2818
 
 
2819
 
 
2820
 
 
2821
 
 
2822
 
 
2823
 
 
2824
 
 
2825
 
 
2826
 
 
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
2829
 
do
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
2835
 
else
2836
 
  cat >conftest.$ac_ext <<_ACEOF
2837
 
/* confdefs.h.  */
2838
 
_ACEOF
2839
 
cat confdefs.h >>conftest.$ac_ext
2840
 
cat >>conftest.$ac_ext <<_ACEOF
2841
 
/* end confdefs.h.  */
2842
 
$ac_includes_default
2843
 
 
2844
 
#include <$ac_header>
2845
 
_ACEOF
2846
 
rm -f conftest.$ac_objext
2847
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848
 
  (eval $ac_compile) 2>conftest.er1
2849
 
  ac_status=$?
2850
 
  grep -v '^ *+' conftest.er1 >conftest.err
2851
 
  rm -f conftest.er1
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
2858
 
  (eval $ac_try) 2>&5
2859
 
  ac_status=$?
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
2864
 
  (eval $ac_try) 2>&5
2865
 
  ac_status=$?
2866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
 
  (exit $ac_status); }; }; then
2868
 
  eval "$as_ac_Header=yes"
2869
 
else
2870
 
  echo "$as_me: failed program was:" >&5
2871
 
sed 's/^/| /' conftest.$ac_ext >&5
2872
 
 
2873
 
eval "$as_ac_Header=no"
2874
 
fi
2875
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876
 
fi
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
2882
 
_ACEOF
2883
 
 
2884
 
fi
2885
 
 
2886
 
done
2887
 
 
2888
 
 
2889
 
 EXTRA_FILES=""
2890
 
 
2891
 
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2892
 
if test $ac_cv_c_compiler_gnu = yes ; then
2893
 
     HAVE_GCC=yes
2894
 
     else HAVE_GCC=
2895
 
fi
2896
 
 
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
2901
 
else
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
2906
 
  (eval $ac_try) 2>&5
2907
 
  ac_status=$?
2908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
 
  (exit $ac_status); }; }; then
2910
 
    krb5_cv_prog_gnu_ld=yes
2911
 
  fi
2912
 
fi
2913
 
fi
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;}
2925
 
  else
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;}
2935
 
    else
2936
 
      CFLAGS="$CFLAGS -pedantic"
2937
 
    fi
2938
 
  fi
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
2949
 
    *)
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"
2953
 
      ;;
2954
 
    esac
2955
 
    case "$LD $LDFLAGS" in
2956
 
    *-Wl,-search_paths_first*) ;;
2957
 
    *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2958
 
    esac
2959
 
  fi
2960
 
else
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
2967
 
      *-qhalt=*) ;;
2968
 
      *)
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;}
2972
 
        ;;
2973
 
    esac
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
2979
 
      *-O*) ;;
2980
 
      *)
2981
 
        CFLAGS="$CFLAGS -O"
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;}
2984
 
        ;;
2985
 
    esac
2986
 
  fi
2987
 
fi
2988
 
 
2989
 
if test -z "$LD" ; then LD=$CC; fi
2990
 
 
2991
 
 
2992
 
 
2993
 
# Check whether --with-krb4 or --without-krb4 was given.
2994
 
if test "${with_krb4+set}" = set; then
2995
 
  withval="$with_krb4"
2996
 
 
2997
 
else
2998
 
  withval=yes
2999
 
 
3000
 
fi; if test $withval = no; then
3001
 
        { echo "$as_me:$LINENO: no krb4 support" >&5
3002
 
echo "$as_me: no krb4 support" >&6;}
3003
 
        KRB4_LIB=
3004
 
        KRB4_DEPLIB=
3005
 
        KRB4_INCLUDES=
3006
 
        KRB4_LIBPATH=
3007
 
        KRB_ERR_H_DEP=
3008
 
        krb5_cv_build_krb4_libs=no
3009
 
        krb5_cv_krb4_libdir=
3010
 
else
3011
 
 
3012
 
cat >>confdefs.h <<\_ACEOF
3013
 
#define KRB5_KRB4_COMPAT 1
3014
 
_ACEOF
3015
 
 
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)'
3020
 
        KRB4_LIB=-lkrb4
3021
 
        KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3022
 
        KRB4_LIBPATH=
3023
 
        KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3024
 
        krb5_cv_build_krb4_libs=yes
3025
 
        krb5_cv_krb4_libdir=
3026
 
 else
3027
 
        { echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3028
 
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3029
 
        KRB4_LIB="-lkrb"
3030
 
        KRB4_INCLUDES="-I$withval/include"
3031
 
        KRB4_LIBPATH="-L$withval/lib"
3032
 
        KRB_ERR_H_DEP=
3033
 
        krb5_cv_build_krb4_libs=no
3034
 
        krb5_cv_krb4_libdir="$withval/lib"
3035
 
 fi
3036
 
fi
3037
 
 
3038
 
 
3039
 
 
3040
 
 
3041
 
 
3042
 
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3043
 
DES425_LIB=-ldes425
3044
 
 
3045
 
 
3046
 
 
3047
 
 
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"
3051
 
 
3052
 
fi;
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
3056
 
  COM_ERR_VERSION=sys
3057
 
  echo "$as_me:$LINENO: result: system" >&5
3058
 
echo "${ECHO_T}system" >&6
3059
 
else
3060
 
  COM_ERR_VERSION=k5
3061
 
  echo "$as_me:$LINENO: result: krb5" >&5
3062
 
echo "${ECHO_T}krb5" >&6
3063
 
fi
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
3070
 
else
3071
 
  ac_check_lib_save_LIBS=$LIBS
3072
 
LIBS="-lcom_err  $LIBS"
3073
 
cat >conftest.$ac_ext <<_ACEOF
3074
 
/* confdefs.h.  */
3075
 
_ACEOF
3076
 
cat confdefs.h >>conftest.$ac_ext
3077
 
cat >>conftest.$ac_ext <<_ACEOF
3078
 
/* end confdefs.h.  */
3079
 
 
3080
 
/* Override any gcc2 internal prototype to avoid an error.  */
3081
 
#ifdef __cplusplus
3082
 
extern "C"
3083
 
#endif
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 ();
3087
 
int
3088
 
main ()
3089
 
{
3090
 
add_error_table ();
3091
 
  ;
3092
 
  return 0;
3093
 
}
3094
 
_ACEOF
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
3098
 
  ac_status=$?
3099
 
  grep -v '^ *+' conftest.er1 >conftest.err
3100
 
  rm -f conftest.er1
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
3107
 
  (eval $ac_try) 2>&5
3108
 
  ac_status=$?
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
3113
 
  (eval $ac_try) 2>&5
3114
 
  ac_status=$?
3115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
 
  (exit $ac_status); }; }; then
3117
 
  ac_cv_lib_com_err_add_error_table=yes
3118
 
else
3119
 
  echo "$as_me: failed program was:" >&5
3120
 
sed 's/^/| /' conftest.$ac_ext >&5
3121
 
 
3122
 
ac_cv_lib_com_err_add_error_table=no
3123
 
fi
3124
 
rm -f conftest.err conftest.$ac_objext \
3125
 
      conftest$ac_exeext conftest.$ac_ext
3126
 
LIBS=$ac_check_lib_save_LIBS
3127
 
fi
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
3131
 
  :
3132
 
else
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; }; }
3136
 
fi
3137
 
 
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
3142
 
else
3143
 
  ac_check_lib_save_LIBS=$LIBS
3144
 
LIBS="-lcom_err  $LIBS"
3145
 
cat >conftest.$ac_ext <<_ACEOF
3146
 
/* confdefs.h.  */
3147
 
_ACEOF
3148
 
cat confdefs.h >>conftest.$ac_ext
3149
 
cat >>conftest.$ac_ext <<_ACEOF
3150
 
/* end confdefs.h.  */
3151
 
 
3152
 
/* Override any gcc2 internal prototype to avoid an error.  */
3153
 
#ifdef __cplusplus
3154
 
extern "C"
3155
 
#endif
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 ();
3159
 
int
3160
 
main ()
3161
 
{
3162
 
remove_error_table ();
3163
 
  ;
3164
 
  return 0;
3165
 
}
3166
 
_ACEOF
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
3170
 
  ac_status=$?
3171
 
  grep -v '^ *+' conftest.er1 >conftest.err
3172
 
  rm -f conftest.er1
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
3179
 
  (eval $ac_try) 2>&5
3180
 
  ac_status=$?
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
3185
 
  (eval $ac_try) 2>&5
3186
 
  ac_status=$?
3187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
 
  (exit $ac_status); }; }; then
3189
 
  ac_cv_lib_com_err_remove_error_table=yes
3190
 
else
3191
 
  echo "$as_me: failed program was:" >&5
3192
 
sed 's/^/| /' conftest.$ac_ext >&5
3193
 
 
3194
 
ac_cv_lib_com_err_remove_error_table=no
3195
 
fi
3196
 
rm -f conftest.err conftest.$ac_objext \
3197
 
      conftest$ac_exeext conftest.$ac_ext
3198
 
LIBS=$ac_check_lib_save_LIBS
3199
 
fi
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
3203
 
  :
3204
 
else
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; }; }
3208
 
fi
3209
 
 
3210
 
  # make sure compile_et provides "et_foo" name
3211
 
  cat >> conf$$e.et <<EOF
3212
 
error_table foo
3213
 
error_code ERR_FOO, "foo"
3214
 
end
3215
 
EOF
3216
 
  for ac_prog in compile_et
3217
 
do
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
3224
 
else
3225
 
  if test -n "$compile_et"; then
3226
 
  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
3227
 
else
3228
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229
 
for as_dir in $PATH
3230
 
do
3231
 
  IFS=$as_save_IFS
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
3237
 
    break 2
3238
 
  fi
3239
 
done
3240
 
done
3241
 
 
3242
 
fi
3243
 
fi
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
3248
 
else
3249
 
  echo "$as_me:$LINENO: result: no" >&5
3250
 
echo "${ECHO_T}no" >&6
3251
 
fi
3252
 
 
3253
 
  test -n "$compile_et" && break
3254
 
done
3255
 
test -n "$compile_et" || compile_et="false"
3256
 
 
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; }; }
3261
 
  fi
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
3266
 
else
3267
 
 
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; }; }
3272
 
  fi
3273
 
  cat >conftest.$ac_ext <<_ACEOF
3274
 
/* confdefs.h.  */
3275
 
_ACEOF
3276
 
cat confdefs.h >>conftest.$ac_ext
3277
 
cat >>conftest.$ac_ext <<_ACEOF
3278
 
/* end confdefs.h.  */
3279
 
#include "conf$$e.h"
3280
 
 
3281
 
int
3282
 
main ()
3283
 
{
3284
 
 &et_foo_error_table;
3285
 
  ;
3286
 
  return 0;
3287
 
}
3288
 
_ACEOF
3289
 
rm -f conftest.$ac_objext
3290
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291
 
  (eval $ac_compile) 2>conftest.er1
3292
 
  ac_status=$?
3293
 
  grep -v '^ *+' conftest.er1 >conftest.err
3294
 
  rm -f conftest.er1
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
3301
 
  (eval $ac_try) 2>&5
3302
 
  ac_status=$?
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
3307
 
  (eval $ac_try) 2>&5
3308
 
  ac_status=$?
3309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
 
  (exit $ac_status); }; }; then
3311
 
  :
3312
 
else
3313
 
  echo "$as_me: failed program was:" >&5
3314
 
sed 's/^/| /' conftest.$ac_ext >&5
3315
 
 
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; }; }
3319
 
fi
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
3324
 
 
3325
 
fi
3326
 
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3327
 
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3328
 
fi
3329
 
 
3330
 
 
3331
 
 
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"
3335
 
 
3336
 
fi;
3337
 
 
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
3341
 
  SS_VERSION=sys
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
3347
 
  old_LIBS="$LIBS"
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
3353
 
else
3354
 
 
3355
 
  if test "$cross_compiling" = yes; then
3356
 
  krb5_cv_system_ss_okay="assumed"
3357
 
else
3358
 
  cat >conftest.$ac_ext <<_ACEOF
3359
 
/* confdefs.h.  */
3360
 
_ACEOF
3361
 
cat confdefs.h >>conftest.$ac_ext
3362
 
cat >>conftest.$ac_ext <<_ACEOF
3363
 
/* end confdefs.h.  */
3364
 
 
3365
 
#include <ss/ss.h>
3366
 
int main(int argc, char *argv[]) {
3367
 
  if (argc == 42) {
3368
 
    int i, err;
3369
 
    i = ss_create_invocation("foo","foo","",0,&err);
3370
 
    ss_listen(i);
3371
 
  }
3372
 
  return 0;
3373
 
}
3374
 
_ACEOF
3375
 
rm -f conftest$ac_exeext
3376
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377
 
  (eval $ac_link) 2>&5
3378
 
  ac_status=$?
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
3382
 
  (eval $ac_try) 2>&5
3383
 
  ac_status=$?
3384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385
 
  (exit $ac_status); }; }; then
3386
 
  krb5_cv_system_ss_okay=yes
3387
 
else
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
3391
 
 
3392
 
( exit $ac_status )
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; }; }
3396
 
fi
3397
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3398
 
fi
3399
 
fi
3400
 
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3401
 
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3402
 
  LIBS="$old_LIBS"
3403
 
else
3404
 
  SS_VERSION=k5
3405
 
  echo "$as_me:$LINENO: result: krb5" >&5
3406
 
echo "${ECHO_T}krb5" >&6
3407
 
fi
3408
 
 
3409
 
 
3410
 
 
3411
 
 
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"
3415
 
 
3416
 
fi;
3417
 
 
3418
 
 
3419
 
if test "x$with_system_db" = xyes ; then
3420
 
  DB_VERSION=sys
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.
3425
 
  #
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
3429
 
  #
3430
 
  if test "x${DB_HEADER}" = xdb.h ; then
3431
 
    DB_HEADER_VERSION=sys
3432
 
  else
3433
 
    DB_HEADER_VERSION=redirect
3434
 
  fi
3435
 
  KDB5_DB_LIB="$DB_LIB"
3436
 
else
3437
 
  DB_VERSION=k5
3438
 
 
3439
 
cat >>confdefs.h <<\_ACEOF
3440
 
#define HAVE_BT_RSEQ 1
3441
 
_ACEOF
3442
 
 
3443
 
  DB_HEADER=db.h
3444
 
  DB_HEADER_VERSION=k5
3445
 
  # libdb gets sucked into libkdb
3446
 
  KDB5_DB_LIB=
3447
 
  # needed for a couple of things that need libdb for its own sake
3448
 
  DB_LIB=-ldb
3449
 
fi
3450
 
 
3451
 
 
3452
 
 
3453
 
 
3454
 
 
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
3459
 
else
3460
 
  cat >conftest.$ac_ext <<_ACEOF
3461
 
/* confdefs.h.  */
3462
 
_ACEOF
3463
 
cat confdefs.h >>conftest.$ac_ext
3464
 
cat >>conftest.$ac_ext <<_ACEOF
3465
 
/* end confdefs.h.  */
3466
 
 
3467
 
int
3468
 
main ()
3469
 
{
3470
 
/* FIXME: Include the comments suggested by Paul. */
3471
 
#ifndef __cplusplus
3472
 
  /* Ultrix mips cc rejects this.  */
3473
 
  typedef int charset[2];
3474
 
  const charset x;
3475
 
  /* SunOS 4.1.1 cc rejects this.  */
3476
 
  char const *const *ccp;
3477
 
  char **p;
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
3484
 
     expression */
3485
 
  const char *g = "string";
3486
 
  ccp = &g + (g ? g-g : 0);
3487
 
  /* HPUX 7.0 cc rejects these. */
3488
 
  ++ccp;
3489
 
  p = (char**) ccp;
3490
 
  ccp = (char const *const *) p;
3491
 
  { /* SCO 3.2v4 cc rejects this.  */
3492
 
    char *t;
3493
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3494
 
 
3495
 
    *t++ = 0;
3496
 
  }
3497
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3498
 
    int x[] = {25, 17};
3499
 
    const int *foo = &x[0];
3500
 
    ++foo;
3501
 
  }
3502
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3503
 
    typedef const int *iptr;
3504
 
    iptr p = 0;
3505
 
    ++p;
3506
 
  }
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;
3511
 
  }
3512
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3513
 
    const int foo = 10;
3514
 
  }
3515
 
#endif
3516
 
 
3517
 
  ;
3518
 
  return 0;
3519
 
}
3520
 
_ACEOF
3521
 
rm -f conftest.$ac_objext
3522
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523
 
  (eval $ac_compile) 2>conftest.er1
3524
 
  ac_status=$?
3525
 
  grep -v '^ *+' conftest.er1 >conftest.err
3526
 
  rm -f conftest.er1
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
3533
 
  (eval $ac_try) 2>&5
3534
 
  ac_status=$?
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
3539
 
  (eval $ac_try) 2>&5
3540
 
  ac_status=$?
3541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542
 
  (exit $ac_status); }; }; then
3543
 
  ac_cv_c_const=yes
3544
 
else
3545
 
  echo "$as_me: failed program was:" >&5
3546
 
sed 's/^/| /' conftest.$ac_ext >&5
3547
 
 
3548
 
ac_cv_c_const=no
3549
 
fi
3550
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551
 
fi
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
3555
 
 
3556
 
cat >>confdefs.h <<\_ACEOF
3557
 
#define const
3558
 
_ACEOF
3559
 
 
3560
 
fi
3561
 
 
3562
 
 
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
3569
 
  else
3570
 
        LIBS="$LIBS $withval"
3571
 
        echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3572
 
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3573
 
  fi
3574
 
 
3575
 
else
3576
 
 
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
3583
 
else
3584
 
  cat >conftest.$ac_ext <<_ACEOF
3585
 
/* confdefs.h.  */
3586
 
_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
3593
 
 
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.  */
3598
 
 
3599
 
#ifdef __STDC__
3600
 
# include <limits.h>
3601
 
#else
3602
 
# include <assert.h>
3603
 
#endif
3604
 
 
3605
 
#undef gethostbyname
3606
 
 
3607
 
/* Override any gcc2 internal prototype to avoid an error.  */
3608
 
#ifdef __cplusplus
3609
 
extern "C"
3610
 
{
3611
 
#endif
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)
3619
 
choke me
3620
 
#else
3621
 
char (*f) () = gethostbyname;
3622
 
#endif
3623
 
#ifdef __cplusplus
3624
 
}
3625
 
#endif
3626
 
 
3627
 
int
3628
 
main ()
3629
 
{
3630
 
return f != gethostbyname;
3631
 
  ;
3632
 
  return 0;
3633
 
}
3634
 
_ACEOF
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
3638
 
  ac_status=$?
3639
 
  grep -v '^ *+' conftest.er1 >conftest.err
3640
 
  rm -f conftest.er1
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
3647
 
  (eval $ac_try) 2>&5
3648
 
  ac_status=$?
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
3653
 
  (eval $ac_try) 2>&5
3654
 
  ac_status=$?
3655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656
 
  (exit $ac_status); }; }; then
3657
 
  ac_cv_func_gethostbyname=yes
3658
 
else
3659
 
  echo "$as_me: failed program was:" >&5
3660
 
sed 's/^/| /' conftest.$ac_ext >&5
3661
 
 
3662
 
ac_cv_func_gethostbyname=no
3663
 
fi
3664
 
rm -f conftest.err conftest.$ac_objext \
3665
 
      conftest$ac_exeext conftest.$ac_ext
3666
 
fi
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
3670
 
  :
3671
 
else
3672
 
 
3673
 
     # Some OSes (eg. Solaris) place it in libnsl:
3674
 
 
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
3679
 
else
3680
 
  ac_check_lib_save_LIBS=$LIBS
3681
 
LIBS="-lnsl  $LIBS"
3682
 
cat >conftest.$ac_ext <<_ACEOF
3683
 
/* confdefs.h.  */
3684
 
_ACEOF
3685
 
cat confdefs.h >>conftest.$ac_ext
3686
 
cat >>conftest.$ac_ext <<_ACEOF
3687
 
/* end confdefs.h.  */
3688
 
 
3689
 
/* Override any gcc2 internal prototype to avoid an error.  */
3690
 
#ifdef __cplusplus
3691
 
extern "C"
3692
 
#endif
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 ();
3696
 
int
3697
 
main ()
3698
 
{
3699
 
gethostbyname ();
3700
 
  ;
3701
 
  return 0;
3702
 
}
3703
 
_ACEOF
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
3707
 
  ac_status=$?
3708
 
  grep -v '^ *+' conftest.er1 >conftest.err
3709
 
  rm -f conftest.er1
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
3716
 
  (eval $ac_try) 2>&5
3717
 
  ac_status=$?
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
3722
 
  (eval $ac_try) 2>&5
3723
 
  ac_status=$?
3724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725
 
  (exit $ac_status); }; }; then
3726
 
  ac_cv_lib_nsl_gethostbyname=yes
3727
 
else
3728
 
  echo "$as_me: failed program was:" >&5
3729
 
sed 's/^/| /' conftest.$ac_ext >&5
3730
 
 
3731
 
ac_cv_lib_nsl_gethostbyname=no
3732
 
fi
3733
 
rm -f conftest.err conftest.$ac_objext \
3734
 
      conftest$ac_exeext conftest.$ac_ext
3735
 
LIBS=$ac_check_lib_save_LIBS
3736
 
fi
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
3742
 
_ACEOF
3743
 
 
3744
 
  LIBS="-lnsl $LIBS"
3745
 
 
3746
 
else
3747
 
 
3748
 
       # Some strange OSes (SINIX) have it in libsocket:
3749
 
 
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
3754
 
else
3755
 
  ac_check_lib_save_LIBS=$LIBS
3756
 
LIBS="-lsocket  $LIBS"
3757
 
cat >conftest.$ac_ext <<_ACEOF
3758
 
/* confdefs.h.  */
3759
 
_ACEOF
3760
 
cat confdefs.h >>conftest.$ac_ext
3761
 
cat >>conftest.$ac_ext <<_ACEOF
3762
 
/* end confdefs.h.  */
3763
 
 
3764
 
/* Override any gcc2 internal prototype to avoid an error.  */
3765
 
#ifdef __cplusplus
3766
 
extern "C"
3767
 
#endif
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 ();
3771
 
int
3772
 
main ()
3773
 
{
3774
 
gethostbyname ();
3775
 
  ;
3776
 
  return 0;
3777
 
}
3778
 
_ACEOF
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
3782
 
  ac_status=$?
3783
 
  grep -v '^ *+' conftest.er1 >conftest.err
3784
 
  rm -f conftest.er1
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
3791
 
  (eval $ac_try) 2>&5
3792
 
  ac_status=$?
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
3797
 
  (eval $ac_try) 2>&5
3798
 
  ac_status=$?
3799
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800
 
  (exit $ac_status); }; }; then
3801
 
  ac_cv_lib_socket_gethostbyname=yes
3802
 
else
3803
 
  echo "$as_me: failed program was:" >&5
3804
 
sed 's/^/| /' conftest.$ac_ext >&5
3805
 
 
3806
 
ac_cv_lib_socket_gethostbyname=no
3807
 
fi
3808
 
rm -f conftest.err conftest.$ac_objext \
3809
 
      conftest$ac_exeext conftest.$ac_ext
3810
 
LIBS=$ac_check_lib_save_LIBS
3811
 
fi
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
3817
 
_ACEOF
3818
 
 
3819
 
  LIBS="-lsocket $LIBS"
3820
 
 
3821
 
else
3822
 
 
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
3830
 
else
3831
 
  ac_check_lib_save_LIBS=$LIBS
3832
 
LIBS="-lsocket -lnsl $LIBS"
3833
 
cat >conftest.$ac_ext <<_ACEOF
3834
 
/* confdefs.h.  */
3835
 
_ACEOF
3836
 
cat confdefs.h >>conftest.$ac_ext
3837
 
cat >>conftest.$ac_ext <<_ACEOF
3838
 
/* end confdefs.h.  */
3839
 
 
3840
 
/* Override any gcc2 internal prototype to avoid an error.  */
3841
 
#ifdef __cplusplus
3842
 
extern "C"
3843
 
#endif
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 ();
3847
 
int
3848
 
main ()
3849
 
{
3850
 
gethostbyname ();
3851
 
  ;
3852
 
  return 0;
3853
 
}
3854
 
_ACEOF
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
3858
 
  ac_status=$?
3859
 
  grep -v '^ *+' conftest.er1 >conftest.err
3860
 
  rm -f conftest.er1
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
3867
 
  (eval $ac_try) 2>&5
3868
 
  ac_status=$?
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
3873
 
  (eval $ac_try) 2>&5
3874
 
  ac_status=$?
3875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
 
  (exit $ac_status); }; }; then
3877
 
  ac_cv_lib_socket_gethostbyname=yes
3878
 
else
3879
 
  echo "$as_me: failed program was:" >&5
3880
 
sed 's/^/| /' conftest.$ac_ext >&5
3881
 
 
3882
 
ac_cv_lib_socket_gethostbyname=no
3883
 
fi
3884
 
rm -f conftest.err conftest.$ac_objext \
3885
 
      conftest$ac_exeext conftest.$ac_ext
3886
 
LIBS=$ac_check_lib_save_LIBS
3887
 
fi
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"
3892
 
else
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
3897
 
else
3898
 
  ac_check_lib_save_LIBS=$LIBS
3899
 
LIBS="-lresolv  $LIBS"
3900
 
cat >conftest.$ac_ext <<_ACEOF
3901
 
/* confdefs.h.  */
3902
 
_ACEOF
3903
 
cat confdefs.h >>conftest.$ac_ext
3904
 
cat >>conftest.$ac_ext <<_ACEOF
3905
 
/* end confdefs.h.  */
3906
 
 
3907
 
/* Override any gcc2 internal prototype to avoid an error.  */
3908
 
#ifdef __cplusplus
3909
 
extern "C"
3910
 
#endif
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 ();
3914
 
int
3915
 
main ()
3916
 
{
3917
 
gethostbyname ();
3918
 
  ;
3919
 
  return 0;
3920
 
}
3921
 
_ACEOF
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
3925
 
  ac_status=$?
3926
 
  grep -v '^ *+' conftest.er1 >conftest.err
3927
 
  rm -f conftest.er1
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
3934
 
  (eval $ac_try) 2>&5
3935
 
  ac_status=$?
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
3940
 
  (eval $ac_try) 2>&5
3941
 
  ac_status=$?
3942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
 
  (exit $ac_status); }; }; then
3944
 
  ac_cv_lib_resolv_gethostbyname=yes
3945
 
else
3946
 
  echo "$as_me: failed program was:" >&5
3947
 
sed 's/^/| /' conftest.$ac_ext >&5
3948
 
 
3949
 
ac_cv_lib_resolv_gethostbyname=no
3950
 
fi
3951
 
rm -f conftest.err conftest.$ac_objext \
3952
 
      conftest$ac_exeext conftest.$ac_ext
3953
 
LIBS=$ac_check_lib_save_LIBS
3954
 
fi
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"
3959
 
fi
3960
 
 
3961
 
fi
3962
 
 
3963
 
 
3964
 
fi
3965
 
 
3966
 
 
3967
 
fi
3968
 
 
3969
 
 
3970
 
fi
3971
 
 
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
3976
 
else
3977
 
  cat >conftest.$ac_ext <<_ACEOF
3978
 
/* confdefs.h.  */
3979
 
_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
3986
 
 
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.  */
3991
 
 
3992
 
#ifdef __STDC__
3993
 
# include <limits.h>
3994
 
#else
3995
 
# include <assert.h>
3996
 
#endif
3997
 
 
3998
 
#undef socket
3999
 
 
4000
 
/* Override any gcc2 internal prototype to avoid an error.  */
4001
 
#ifdef __cplusplus
4002
 
extern "C"
4003
 
{
4004
 
#endif
4005
 
/* We use char because int might match the return type of a gcc2
4006
 
   builtin and then its argument prototype would still apply.  */
4007
 
char socket ();
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)
4012
 
choke me
4013
 
#else
4014
 
char (*f) () = socket;
4015
 
#endif
4016
 
#ifdef __cplusplus
4017
 
}
4018
 
#endif
4019
 
 
4020
 
int
4021
 
main ()
4022
 
{
4023
 
return f != socket;
4024
 
  ;
4025
 
  return 0;
4026
 
}
4027
 
_ACEOF
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
4031
 
  ac_status=$?
4032
 
  grep -v '^ *+' conftest.er1 >conftest.err
4033
 
  rm -f conftest.er1
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
4040
 
  (eval $ac_try) 2>&5
4041
 
  ac_status=$?
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
4046
 
  (eval $ac_try) 2>&5
4047
 
  ac_status=$?
4048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049
 
  (exit $ac_status); }; }; then
4050
 
  ac_cv_func_socket=yes
4051
 
else
4052
 
  echo "$as_me: failed program was:" >&5
4053
 
sed 's/^/| /' conftest.$ac_ext >&5
4054
 
 
4055
 
ac_cv_func_socket=no
4056
 
fi
4057
 
rm -f conftest.err conftest.$ac_objext \
4058
 
      conftest$ac_exeext conftest.$ac_ext
4059
 
fi
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
4063
 
  :
4064
 
else
4065
 
 
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
4070
 
else
4071
 
  ac_check_lib_save_LIBS=$LIBS
4072
 
LIBS="-lsocket  $LIBS"
4073
 
cat >conftest.$ac_ext <<_ACEOF
4074
 
/* confdefs.h.  */
4075
 
_ACEOF
4076
 
cat confdefs.h >>conftest.$ac_ext
4077
 
cat >>conftest.$ac_ext <<_ACEOF
4078
 
/* end confdefs.h.  */
4079
 
 
4080
 
/* Override any gcc2 internal prototype to avoid an error.  */
4081
 
#ifdef __cplusplus
4082
 
extern "C"
4083
 
#endif
4084
 
/* We use char because int might match the return type of a gcc2
4085
 
   builtin and then its argument prototype would still apply.  */
4086
 
char socket ();
4087
 
int
4088
 
main ()
4089
 
{
4090
 
socket ();
4091
 
  ;
4092
 
  return 0;
4093
 
}
4094
 
_ACEOF
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
4098
 
  ac_status=$?
4099
 
  grep -v '^ *+' conftest.er1 >conftest.err
4100
 
  rm -f conftest.er1
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
4107
 
  (eval $ac_try) 2>&5
4108
 
  ac_status=$?
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
4113
 
  (eval $ac_try) 2>&5
4114
 
  ac_status=$?
4115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
 
  (exit $ac_status); }; }; then
4117
 
  ac_cv_lib_socket_socket=yes
4118
 
else
4119
 
  echo "$as_me: failed program was:" >&5
4120
 
sed 's/^/| /' conftest.$ac_ext >&5
4121
 
 
4122
 
ac_cv_lib_socket_socket=no
4123
 
fi
4124
 
rm -f conftest.err conftest.$ac_objext \
4125
 
      conftest$ac_exeext conftest.$ac_ext
4126
 
LIBS=$ac_check_lib_save_LIBS
4127
 
fi
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
4133
 
_ACEOF
4134
 
 
4135
 
  LIBS="-lsocket $LIBS"
4136
 
 
4137
 
else
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
4142
 
else
4143
 
  ac_check_lib_save_LIBS=$LIBS
4144
 
LIBS="-lsocket -lnsl $LIBS"
4145
 
cat >conftest.$ac_ext <<_ACEOF
4146
 
/* confdefs.h.  */
4147
 
_ACEOF
4148
 
cat confdefs.h >>conftest.$ac_ext
4149
 
cat >>conftest.$ac_ext <<_ACEOF
4150
 
/* end confdefs.h.  */
4151
 
 
4152
 
/* Override any gcc2 internal prototype to avoid an error.  */
4153
 
#ifdef __cplusplus
4154
 
extern "C"
4155
 
#endif
4156
 
/* We use char because int might match the return type of a gcc2
4157
 
   builtin and then its argument prototype would still apply.  */
4158
 
char socket ();
4159
 
int
4160
 
main ()
4161
 
{
4162
 
socket ();
4163
 
  ;
4164
 
  return 0;
4165
 
}
4166
 
_ACEOF
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
4170
 
  ac_status=$?
4171
 
  grep -v '^ *+' conftest.er1 >conftest.err
4172
 
  rm -f conftest.er1
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
4179
 
  (eval $ac_try) 2>&5
4180
 
  ac_status=$?
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
4185
 
  (eval $ac_try) 2>&5
4186
 
  ac_status=$?
4187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
 
  (exit $ac_status); }; }; then
4189
 
  ac_cv_lib_socket_socket=yes
4190
 
else
4191
 
  echo "$as_me: failed program was:" >&5
4192
 
sed 's/^/| /' conftest.$ac_ext >&5
4193
 
 
4194
 
ac_cv_lib_socket_socket=no
4195
 
fi
4196
 
rm -f conftest.err conftest.$ac_objext \
4197
 
      conftest$ac_exeext conftest.$ac_ext
4198
 
LIBS=$ac_check_lib_save_LIBS
4199
 
fi
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"
4204
 
fi
4205
 
 
4206
 
fi
4207
 
 
4208
 
fi
4209
 
 
4210
 
 
4211
 
enable_dns=yes
4212
 
enable_dns_for_kdc=yes
4213
 
 
4214
 
cat >>confdefs.h <<\_ACEOF
4215
 
#define KRB5_DNS_LOOKUP_KDC 1
4216
 
_ACEOF
4217
 
 
4218
 
 
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"
4222
 
 
4223
 
else
4224
 
  enable_dns_for_realm=no
4225
 
fi;
4226
 
  if test "$enable_dns_for_realm" = yes; then
4227
 
 
4228
 
cat >>confdefs.h <<\_ACEOF
4229
 
#define KRB5_DNS_LOOKUP_REALM 1
4230
 
_ACEOF
4231
 
 
4232
 
  fi
4233
 
 
4234
 
 
4235
 
cat >>confdefs.h <<\_ACEOF
4236
 
#define KRB5_DNS_LOOKUP 1
4237
 
_ACEOF
4238
 
 
4239
 
 
4240
 
 
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.
4244
 
 
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
4249
 
else
4250
 
  ac_check_lib_save_LIBS=$LIBS
4251
 
LIBS="-lresolv  $LIBS"
4252
 
cat >conftest.$ac_ext <<_ACEOF
4253
 
/* confdefs.h.  */
4254
 
_ACEOF
4255
 
cat confdefs.h >>conftest.$ac_ext
4256
 
cat >>conftest.$ac_ext <<_ACEOF
4257
 
/* end confdefs.h.  */
4258
 
 
4259
 
 
4260
 
int
4261
 
main ()
4262
 
{
4263
 
main ();
4264
 
  ;
4265
 
  return 0;
4266
 
}
4267
 
_ACEOF
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
4271
 
  ac_status=$?
4272
 
  grep -v '^ *+' conftest.er1 >conftest.err
4273
 
  rm -f conftest.er1
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
4280
 
  (eval $ac_try) 2>&5
4281
 
  ac_status=$?
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
4286
 
  (eval $ac_try) 2>&5
4287
 
  ac_status=$?
4288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
 
  (exit $ac_status); }; }; then
4290
 
  ac_cv_lib_resolv_main=yes
4291
 
else
4292
 
  echo "$as_me: failed program was:" >&5
4293
 
sed 's/^/| /' conftest.$ac_ext >&5
4294
 
 
4295
 
ac_cv_lib_resolv_main=no
4296
 
fi
4297
 
rm -f conftest.err conftest.$ac_objext \
4298
 
      conftest$ac_exeext conftest.$ac_ext
4299
 
LIBS=$ac_check_lib_save_LIBS
4300
 
fi
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
4306
 
_ACEOF
4307
 
 
4308
 
  LIBS="-lresolv $LIBS"
4309
 
 
4310
 
fi
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
 
 
4318
 
 
4319
 
 
4320
 
 
4321
 
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4322
 
 
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
4326
 
# function.
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
4331
 
else
4332
 
  cat >conftest.$ac_ext <<_ACEOF
4333
 
/* confdefs.h.  */
4334
 
_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>
4341
 
#include <resolv.h>
4342
 
int
4343
 
main ()
4344
 
{
4345
 
/*
4346
 
 * Use volatile, or else optimization can cause false positives.
4347
 
 */
4348
 
void (* volatile p)() = (void (*)())$krb5_func;
4349
 
  ;
4350
 
  return 0;
4351
 
}
4352
 
_ACEOF
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
4356
 
  ac_status=$?
4357
 
  grep -v '^ *+' conftest.er1 >conftest.err
4358
 
  rm -f conftest.er1
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
4365
 
  (eval $ac_try) 2>&5
4366
 
  ac_status=$?
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
4371
 
  (eval $ac_try) 2>&5
4372
 
  ac_status=$?
4373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374
 
  (exit $ac_status); }; }; then
4375
 
  eval "krb5_cv_func_$krb5_func=yes"
4376
 
else
4377
 
  echo "$as_me: failed program was:" >&5
4378
 
sed 's/^/| /' conftest.$ac_ext >&5
4379
 
 
4380
 
eval "krb5_cv_func_$krb5_func=no"
4381
 
fi
4382
 
rm -f conftest.err conftest.$ac_objext \
4383
 
      conftest$ac_exeext conftest.$ac_ext
4384
 
fi
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
4388
 
 
4389
 
cat >>confdefs.h <<_ACEOF
4390
 
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4391
 
_ACEOF
4392
 
 
4393
 
fi
4394
 
 
4395
 
done
4396
 
 
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
4404
 
else
4405
 
  cat >conftest.$ac_ext <<_ACEOF
4406
 
/* confdefs.h.  */
4407
 
_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
4414
 
 
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.  */
4419
 
 
4420
 
#ifdef __STDC__
4421
 
# include <limits.h>
4422
 
#else
4423
 
# include <assert.h>
4424
 
#endif
4425
 
 
4426
 
#undef res_search
4427
 
 
4428
 
/* Override any gcc2 internal prototype to avoid an error.  */
4429
 
#ifdef __cplusplus
4430
 
extern "C"
4431
 
{
4432
 
#endif
4433
 
/* We use char because int might match the return type of a gcc2
4434
 
   builtin and then its argument prototype would still apply.  */
4435
 
char res_search ();
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)
4440
 
choke me
4441
 
#else
4442
 
char (*f) () = res_search;
4443
 
#endif
4444
 
#ifdef __cplusplus
4445
 
}
4446
 
#endif
4447
 
 
4448
 
int
4449
 
main ()
4450
 
{
4451
 
return f != res_search;
4452
 
  ;
4453
 
  return 0;
4454
 
}
4455
 
_ACEOF
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
4459
 
  ac_status=$?
4460
 
  grep -v '^ *+' conftest.er1 >conftest.err
4461
 
  rm -f conftest.er1
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
4468
 
  (eval $ac_try) 2>&5
4469
 
  ac_status=$?
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
4474
 
  (eval $ac_try) 2>&5
4475
 
  ac_status=$?
4476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
 
  (exit $ac_status); }; }; then
4478
 
  ac_cv_func_res_search=yes
4479
 
else
4480
 
  echo "$as_me: failed program was:" >&5
4481
 
sed 's/^/| /' conftest.$ac_ext >&5
4482
 
 
4483
 
ac_cv_func_res_search=no
4484
 
fi
4485
 
rm -f conftest.err conftest.$ac_objext \
4486
 
      conftest$ac_exeext conftest.$ac_ext
4487
 
fi
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
4491
 
 
4492
 
cat >>confdefs.h <<\_ACEOF
4493
 
#define HAVE_RES_SEARCH 1
4494
 
_ACEOF
4495
 
 
4496
 
else
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; }; }
4500
 
fi
4501
 
 
4502
 
    fi
4503
 
  fi
4504
 
 
4505
 
 
4506
 
fi;
4507
 
# Check whether --with-hesiod or --without-hesiod was given.
4508
 
if test "${with_hesiod+set}" = set; then
4509
 
  withval="$with_hesiod"
4510
 
  hesiod=$with_hesiod
4511
 
else
4512
 
  with_hesiod=no
4513
 
fi;
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
4520
 
else
4521
 
  ac_check_lib_save_LIBS=$LIBS
4522
 
LIBS="-lresolv  $LIBS"
4523
 
cat >conftest.$ac_ext <<_ACEOF
4524
 
/* confdefs.h.  */
4525
 
_ACEOF
4526
 
cat confdefs.h >>conftest.$ac_ext
4527
 
cat >>conftest.$ac_ext <<_ACEOF
4528
 
/* end confdefs.h.  */
4529
 
 
4530
 
/* Override any gcc2 internal prototype to avoid an error.  */
4531
 
#ifdef __cplusplus
4532
 
extern "C"
4533
 
#endif
4534
 
/* We use char because int might match the return type of a gcc2
4535
 
   builtin and then its argument prototype would still apply.  */
4536
 
char res_send ();
4537
 
int
4538
 
main ()
4539
 
{
4540
 
res_send ();
4541
 
  ;
4542
 
  return 0;
4543
 
}
4544
 
_ACEOF
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
4548
 
  ac_status=$?
4549
 
  grep -v '^ *+' conftest.er1 >conftest.err
4550
 
  rm -f conftest.er1
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
4557
 
  (eval $ac_try) 2>&5
4558
 
  ac_status=$?
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
4563
 
  (eval $ac_try) 2>&5
4564
 
  ac_status=$?
4565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566
 
  (exit $ac_status); }; }; then
4567
 
  ac_cv_lib_resolv_res_send=yes
4568
 
else
4569
 
  echo "$as_me: failed program was:" >&5
4570
 
sed 's/^/| /' conftest.$ac_ext >&5
4571
 
 
4572
 
ac_cv_lib_resolv_res_send=no
4573
 
fi
4574
 
rm -f conftest.err conftest.$ac_objext \
4575
 
      conftest$ac_exeext conftest.$ac_ext
4576
 
LIBS=$ac_check_lib_save_LIBS
4577
 
fi
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
4581
 
  res_lib=-lresolv
4582
 
fi
4583
 
 
4584
 
        if test "$hesiod" != "yes"; then
4585
 
                HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4586
 
        else
4587
 
                HESIOD_LIBS="-lhesiod $res_lib"
4588
 
        fi
4589
 
else
4590
 
        HESIOD_DEFS=
4591
 
        HESIOD_LIBS=
4592
 
fi
4593
 
 
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
4598
 
else
4599
 
  USE_MAINTAINER_MODE=no
4600
 
fi;
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;}
4606
 
else
4607
 
  MAINTAINER_MODE_TRUE='#'
4608
 
  MAINTAINER_MODE_FALSE=
4609
 
fi
4610
 
MAINT=$MAINTAINER_MODE_TRUE
4611
 
 
4612
 
 
4613
 
 
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,$//
4623
 
_ACEOF
4624
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4625
 
rm conftest.sed
4626
 
 CONFIG_RELTOPDIR=$ac_reltopdir
4627
 
 
4628
 
 
4629
 
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4630
 
 
4631
 
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4632
 
 
4633
 
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4634
 
 
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
4639
 
else
4640
 
  cat >conftest.$ac_ext <<_ACEOF
4641
 
/* confdefs.h.  */
4642
 
_ACEOF
4643
 
cat confdefs.h >>conftest.$ac_ext
4644
 
cat >>conftest.$ac_ext <<_ACEOF
4645
 
/* end confdefs.h.  */
4646
 
#pragma weak flurbl
4647
 
extern int flurbl(void);
4648
 
int
4649
 
main ()
4650
 
{
4651
 
if (&flurbl != 0) return flurbl();
4652
 
  ;
4653
 
  return 0;
4654
 
}
4655
 
_ACEOF
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
4659
 
  ac_status=$?
4660
 
  grep -v '^ *+' conftest.er1 >conftest.err
4661
 
  rm -f conftest.er1
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
4668
 
  (eval $ac_try) 2>&5
4669
 
  ac_status=$?
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
4674
 
  (eval $ac_try) 2>&5
4675
 
  ac_status=$?
4676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677
 
  (exit $ac_status); }; }; then
4678
 
  krb5_cv_pragma_weak_ref=yes
4679
 
else
4680
 
  echo "$as_me: failed program was:" >&5
4681
 
sed 's/^/| /' conftest.$ac_ext >&5
4682
 
 
4683
 
krb5_cv_pragma_weak_ref=no
4684
 
fi
4685
 
rm -f conftest.err conftest.$ac_objext \
4686
 
      conftest$ac_exeext conftest.$ac_ext
4687
 
fi
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
4691
 
 
4692
 
cat >>confdefs.h <<\_ACEOF
4693
 
#define HAVE_PRAGMA_WEAK_REF 1
4694
 
_ACEOF
4695
 
 
4696
 
fi
4697
 
 
4698
 
 
4699
 
# Check whether --with-ldap or --without-ldap was given.
4700
 
if test "${with_ldap+set}" = set; then
4701
 
  withval="$with_ldap"
4702
 
  case "$withval" in
4703
 
    OPENLDAP) with_ldap=yes ;;
4704
 
    yes | no) ;;
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; }; } ;;
4711
 
esac
4712
 
else
4713
 
  with_ldap=no
4714
 
fi;
4715
 
# Check whether --with-edirectory or --without-edirectory was given.
4716
 
if test "${with_edirectory+set}" = set; then
4717
 
  withval="$with_edirectory"
4718
 
  case "$withval" in
4719
 
    yes | no) ;;
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; }; } ;;
4723
 
esac
4724
 
else
4725
 
  with_edirectory=no
4726
 
fi;
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; }; }
4732
 
  fi
4733
 
  { echo "$as_me:$LINENO: enabling OpenLDAP database backend module support" >&5
4734
 
echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
4735
 
  OPENLDAP_PLUGIN=yes
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;}
4739
 
  OPENLDAP_PLUGIN=yes
4740
 
 
4741
 
cat >>confdefs.h <<\_ACEOF
4742
 
#define HAVE_EDIRECTORY 1
4743
 
_ACEOF
4744
 
 
4745
 
else
4746
 
  : # neither enabled
4747
 
fi
4748
 
 
4749
 
 
4750
 
krb5_cv_host=$host
4751
 
 
4752
 
. $ac_topdir/config/shlib.conf
4753
 
 
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"
4757
 
 
4758
 
else
4759
 
  enable_delayed_initialization=yes
4760
 
fi;
4761
 
case "$enable_delayed_initialization" in
4762
 
  yes)
4763
 
 
4764
 
cat >>confdefs.h <<\_ACEOF
4765
 
#define DELAY_INITIALIZER 1
4766
 
_ACEOF
4767
 
 ;;
4768
 
  no) ;;
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; }; } ;;
4772
 
esac
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
4777
 
else
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; }; }
4783
 
fi
4784
 
true > conftest.1
4785
 
true > conftest.2
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; }; }
4790
 
fi
4791
 
a=no
4792
 
b=no
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; }; }
4798
 
else
4799
 
  cat >conftest.$ac_ext <<_ACEOF
4800
 
/* confdefs.h.  */
4801
 
_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; }
4810
 
_ACEOF
4811
 
rm -f conftest$ac_exeext
4812
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813
 
  (eval $ac_link) 2>&5
4814
 
  ac_status=$?
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
4818
 
  (eval $ac_try) 2>&5
4819
 
  ac_status=$?
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
4824
 
else
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
4828
 
 
4829
 
fi
4830
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4831
 
fi
4832
 
case $krb5_cv_host in
4833
 
*-*-aix4.*)
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
4838
 
        # destructor.
4839
 
        #
4840
 
        # That counts as "not working", for me, but it's a much more
4841
 
        # complicated test case to set up.
4842
 
        b=no
4843
 
        ;;
4844
 
esac
4845
 
krb5_cv_attr_constructor_destructor="$a,$b"
4846
 
 
4847
 
fi
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
4852
 
  yes,*)
4853
 
 
4854
 
cat >>confdefs.h <<\_ACEOF
4855
 
#define CONSTRUCTOR_ATTR_WORKS 1
4856
 
_ACEOF
4857
 
 ;;
4858
 
esac
4859
 
case $krb5_cv_attr_constructor_destructor in
4860
 
  *,yes)
4861
 
 
4862
 
cat >>confdefs.h <<\_ACEOF
4863
 
#define DESTRUCTOR_ATTR_WORKS 1
4864
 
_ACEOF
4865
 
 ;;
4866
 
esac
4867
 
 
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; }; }
4872
 
fi
4873
 
if test "$use_linker_init_option" = yes; then
4874
 
 
4875
 
cat >>confdefs.h <<\_ACEOF
4876
 
#define USE_LINKER_INIT_OPTION 1
4877
 
_ACEOF
4878
 
 
4879
 
fi
4880
 
if test "$use_linker_fini_option" = yes; then
4881
 
 
4882
 
cat >>confdefs.h <<\_ACEOF
4883
 
#define USE_LINKER_FINI_OPTION 1
4884
 
_ACEOF
4885
 
 
4886
 
fi
4887
 
 
4888
 
 
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"
4892
 
 
4893
 
else
4894
 
  enable_thread_support=yes
4895
 
fi;
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;}
4899
 
 
4900
 
cat >>confdefs.h <<\_ACEOF
4901
 
#define ENABLE_THREADS 1
4902
 
_ACEOF
4903
 
 
4904
 
fi
4905
 
if test "$enable_thread_support" = yes; then
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
 
ac_ext=c
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
4915
 
 
4916
 
acx_pthread_ok=no
4917
 
 
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.
4921
 
 
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
4924
 
# them:
4925
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4926
 
        save_CFLAGS="$CFLAGS"
4927
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4928
 
        save_LIBS="$LIBS"
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
4933
 
/* confdefs.h.  */
4934
 
_ACEOF
4935
 
cat confdefs.h >>conftest.$ac_ext
4936
 
cat >>conftest.$ac_ext <<_ACEOF
4937
 
/* end confdefs.h.  */
4938
 
 
4939
 
/* Override any gcc2 internal prototype to avoid an error.  */
4940
 
#ifdef __cplusplus
4941
 
extern "C"
4942
 
#endif
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 ();
4946
 
int
4947
 
main ()
4948
 
{
4949
 
pthread_join ();
4950
 
  ;
4951
 
  return 0;
4952
 
}
4953
 
_ACEOF
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
4957
 
  ac_status=$?
4958
 
  grep -v '^ *+' conftest.er1 >conftest.err
4959
 
  rm -f conftest.er1
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
4966
 
  (eval $ac_try) 2>&5
4967
 
  ac_status=$?
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
4972
 
  (eval $ac_try) 2>&5
4973
 
  ac_status=$?
4974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
 
  (exit $ac_status); }; }; then
4976
 
  acx_pthread_ok=yes
4977
 
else
4978
 
  echo "$as_me: failed program was:" >&5
4979
 
sed 's/^/| /' conftest.$ac_ext >&5
4980
 
 
4981
 
fi
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
4987
 
                PTHREAD_LIBS=""
4988
 
                PTHREAD_CFLAGS=""
4989
 
        fi
4990
 
        LIBS="$save_LIBS"
4991
 
        CFLAGS="$save_CFLAGS"
4992
 
fi
4993
 
 
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).
4998
 
 
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.
5003
 
 
5004
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5005
 
 
5006
 
# The ordering *is* (sometimes) important.  Some notes on the
5007
 
# individual items follow:
5008
 
 
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)
5024
 
 
5025
 
case "${host_cpu}-${host_os}" in
5026
 
        *solaris*)
5027
 
 
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:
5035
 
 
5036
 
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5037
 
        ;;
5038
 
esac
5039
 
 
5040
 
if test x"$acx_pthread_ok" = xno; then
5041
 
for flag in $acx_pthread_flags; do
5042
 
 
5043
 
        case $flag in
5044
 
                none)
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
5047
 
                ;;
5048
 
 
5049
 
                -*)
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"
5053
 
                ;;
5054
 
 
5055
 
                pthread-config)
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
5062
 
else
5063
 
  if test -n "$acx_pthread_config"; then
5064
 
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5065
 
else
5066
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067
 
for as_dir in $PATH
5068
 
do
5069
 
  IFS=$as_save_IFS
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
5075
 
    break 2
5076
 
  fi
5077
 
done
5078
 
done
5079
 
 
5080
 
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5081
 
fi
5082
 
fi
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
5087
 
else
5088
 
  echo "$as_me:$LINENO: result: no" >&5
5089
 
echo "${ECHO_T}no" >&6
5090
 
fi
5091
 
 
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`"
5095
 
                ;;
5096
 
 
5097
 
                *)
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"
5101
 
                ;;
5102
 
        esac
5103
 
 
5104
 
        save_LIBS="$LIBS"
5105
 
        save_CFLAGS="$CFLAGS"
5106
 
        LIBS="$PTHREAD_LIBS $LIBS"
5107
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5108
 
 
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
5119
 
/* confdefs.h.  */
5120
 
_ACEOF
5121
 
cat confdefs.h >>conftest.$ac_ext
5122
 
cat >>conftest.$ac_ext <<_ACEOF
5123
 
/* end confdefs.h.  */
5124
 
#include <pthread.h>
5125
 
int
5126
 
main ()
5127
 
{
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);
5131
 
  ;
5132
 
  return 0;
5133
 
}
5134
 
_ACEOF
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
5138
 
  ac_status=$?
5139
 
  grep -v '^ *+' conftest.er1 >conftest.err
5140
 
  rm -f conftest.er1
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
5147
 
  (eval $ac_try) 2>&5
5148
 
  ac_status=$?
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
5153
 
  (eval $ac_try) 2>&5
5154
 
  ac_status=$?
5155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
 
  (exit $ac_status); }; }; then
5157
 
  acx_pthread_ok=yes
5158
 
else
5159
 
  echo "$as_me: failed program was:" >&5
5160
 
sed 's/^/| /' conftest.$ac_ext >&5
5161
 
 
5162
 
fi
5163
 
rm -f conftest.err conftest.$ac_objext \
5164
 
      conftest$ac_exeext conftest.$ac_ext
5165
 
 
5166
 
        LIBS="$save_LIBS"
5167
 
        CFLAGS="$save_CFLAGS"
5168
 
 
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
5172
 
                break;
5173
 
        fi
5174
 
 
5175
 
        PTHREAD_LIBS=""
5176
 
        PTHREAD_CFLAGS=""
5177
 
done
5178
 
fi
5179
 
 
5180
 
# Various other checks:
5181
 
if test "x$acx_pthread_ok" = xyes; then
5182
 
        save_LIBS="$LIBS"
5183
 
        LIBS="$PTHREAD_LIBS $LIBS"
5184
 
        save_CFLAGS="$CFLAGS"
5185
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5186
 
 
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
5192
 
/* confdefs.h.  */
5193
 
_ACEOF
5194
 
cat confdefs.h >>conftest.$ac_ext
5195
 
cat >>conftest.$ac_ext <<_ACEOF
5196
 
/* end confdefs.h.  */
5197
 
#include <pthread.h>
5198
 
int
5199
 
main ()
5200
 
{
5201
 
int attr=PTHREAD_CREATE_JOINABLE;
5202
 
  ;
5203
 
  return 0;
5204
 
}
5205
 
_ACEOF
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
5209
 
  ac_status=$?
5210
 
  grep -v '^ *+' conftest.er1 >conftest.err
5211
 
  rm -f conftest.er1
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
5218
 
  (eval $ac_try) 2>&5
5219
 
  ac_status=$?
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
5224
 
  (eval $ac_try) 2>&5
5225
 
  ac_status=$?
5226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
 
  (exit $ac_status); }; }; then
5228
 
  ok=PTHREAD_CREATE_JOINABLE
5229
 
else
5230
 
  echo "$as_me: failed program was:" >&5
5231
 
sed 's/^/| /' conftest.$ac_ext >&5
5232
 
 
5233
 
ok=unknown
5234
 
fi
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
5239
 
/* confdefs.h.  */
5240
 
_ACEOF
5241
 
cat confdefs.h >>conftest.$ac_ext
5242
 
cat >>conftest.$ac_ext <<_ACEOF
5243
 
/* end confdefs.h.  */
5244
 
#include <pthread.h>
5245
 
int
5246
 
main ()
5247
 
{
5248
 
int attr=PTHREAD_CREATE_UNDETACHED;
5249
 
  ;
5250
 
  return 0;
5251
 
}
5252
 
_ACEOF
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
5256
 
  ac_status=$?
5257
 
  grep -v '^ *+' conftest.er1 >conftest.err
5258
 
  rm -f conftest.er1
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
5265
 
  (eval $ac_try) 2>&5
5266
 
  ac_status=$?
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
5271
 
  (eval $ac_try) 2>&5
5272
 
  ac_status=$?
5273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274
 
  (exit $ac_status); }; }; then
5275
 
  ok=PTHREAD_CREATE_UNDETACHED
5276
 
else
5277
 
  echo "$as_me: failed program was:" >&5
5278
 
sed 's/^/| /' conftest.$ac_ext >&5
5279
 
 
5280
 
ok=unknown
5281
 
fi
5282
 
rm -f conftest.err conftest.$ac_objext \
5283
 
      conftest$ac_exeext conftest.$ac_ext
5284
 
        fi
5285
 
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5286
 
 
5287
 
cat >>confdefs.h <<\_ACEOF
5288
 
#define PTHREAD_CREATE_JOINABLE $ok
5289
 
_ACEOF
5290
 
 
5291
 
        fi
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;}
5297
 
        fi
5298
 
 
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
5301
 
        flag=no
5302
 
        case "${host_cpu}-${host_os}" in
5303
 
                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
5304
 
                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5305
 
        esac
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"
5310
 
        fi
5311
 
 
5312
 
        LIBS="$save_LIBS"
5313
 
        CFLAGS="$save_CFLAGS"
5314
 
 
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
5322
 
else
5323
 
  if test -n "$PTHREAD_CC"; then
5324
 
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5325
 
else
5326
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327
 
for as_dir in $PATH
5328
 
do
5329
 
  IFS=$as_save_IFS
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
5335
 
    break 2
5336
 
  fi
5337
 
done
5338
 
done
5339
 
 
5340
 
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5341
 
fi
5342
 
fi
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
5347
 
else
5348
 
  echo "$as_me:$LINENO: result: no" >&5
5349
 
echo "${ECHO_T}no" >&6
5350
 
fi
5351
 
 
5352
 
else
5353
 
        PTHREAD_CC="$CC"
5354
 
fi
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5361
 
if test x"$acx_pthread_ok" = xyes; then
5362
 
 
5363
 
cat >>confdefs.h <<\_ACEOF
5364
 
#define HAVE_PTHREAD 1
5365
 
_ACEOF
5366
 
 
5367
 
        :
5368
 
else
5369
 
        acx_pthread_ok=no
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; }; }
5373
 
fi
5374
 
ac_ext=c
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
5379
 
 
5380
 
 
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
5390
 
    aix* | osf*)
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...
5395
 
      PTHREAD_LIBS=
5396
 
      PTHREAD_CFLAGS=
5397
 
      ;;
5398
 
    hpux*)
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"
5403
 
      ;;
5404
 
    solaris*)
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"
5409
 
      fi
5410
 
      ;;
5411
 
  esac
5412
 
  THREAD_SUPPORT=1
5413
 
else
5414
 
  PTHREAD_CC="$CC"
5415
 
  PTHREAD_CFLAGS=""
5416
 
  PTHREAD_LIBS=""
5417
 
  THREAD_SUPPORT=0
5418
 
fi
5419
 
 
5420
 
 
5421
 
 
5422
 
for ac_func in pthread_once pthread_rwlock_init
5423
 
do
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
5429
 
else
5430
 
  cat >conftest.$ac_ext <<_ACEOF
5431
 
/* confdefs.h.  */
5432
 
_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
5439
 
 
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.  */
5444
 
 
5445
 
#ifdef __STDC__
5446
 
# include <limits.h>
5447
 
#else
5448
 
# include <assert.h>
5449
 
#endif
5450
 
 
5451
 
#undef $ac_func
5452
 
 
5453
 
/* Override any gcc2 internal prototype to avoid an error.  */
5454
 
#ifdef __cplusplus
5455
 
extern "C"
5456
 
{
5457
 
#endif
5458
 
/* We use char because int might match the return type of a gcc2
5459
 
   builtin and then its argument prototype would still apply.  */
5460
 
char $ac_func ();
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)
5465
 
choke me
5466
 
#else
5467
 
char (*f) () = $ac_func;
5468
 
#endif
5469
 
#ifdef __cplusplus
5470
 
}
5471
 
#endif
5472
 
 
5473
 
int
5474
 
main ()
5475
 
{
5476
 
return f != $ac_func;
5477
 
  ;
5478
 
  return 0;
5479
 
}
5480
 
_ACEOF
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
5484
 
  ac_status=$?
5485
 
  grep -v '^ *+' conftest.er1 >conftest.err
5486
 
  rm -f conftest.er1
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
5493
 
  (eval $ac_try) 2>&5
5494
 
  ac_status=$?
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
5499
 
  (eval $ac_try) 2>&5
5500
 
  ac_status=$?
5501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502
 
  (exit $ac_status); }; }; then
5503
 
  eval "$as_ac_var=yes"
5504
 
else
5505
 
  echo "$as_me: failed program was:" >&5
5506
 
sed 's/^/| /' conftest.$ac_ext >&5
5507
 
 
5508
 
eval "$as_ac_var=no"
5509
 
fi
5510
 
rm -f conftest.err conftest.$ac_objext \
5511
 
      conftest$ac_exeext conftest.$ac_ext
5512
 
fi
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
5518
 
_ACEOF
5519
 
 
5520
 
fi
5521
 
done
5522
 
 
5523
 
old_CC="$CC"
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"
5528
 
 
5529
 
old_LIBS="$LIBS"
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
5537
 
else
5538
 
  ac_check_lib_save_LIBS=$LIBS
5539
 
LIBS="-lc  $LIBS"
5540
 
cat >conftest.$ac_ext <<_ACEOF
5541
 
/* confdefs.h.  */
5542
 
_ACEOF
5543
 
cat confdefs.h >>conftest.$ac_ext
5544
 
cat >>conftest.$ac_ext <<_ACEOF
5545
 
/* end confdefs.h.  */
5546
 
 
5547
 
/* Override any gcc2 internal prototype to avoid an error.  */
5548
 
#ifdef __cplusplus
5549
 
extern "C"
5550
 
#endif
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 ();
5554
 
int
5555
 
main ()
5556
 
{
5557
 
pthread_rwlock_init ();
5558
 
  ;
5559
 
  return 0;
5560
 
}
5561
 
_ACEOF
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
5565
 
  ac_status=$?
5566
 
  grep -v '^ *+' conftest.er1 >conftest.err
5567
 
  rm -f conftest.er1
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
5574
 
  (eval $ac_try) 2>&5
5575
 
  ac_status=$?
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
5580
 
  (eval $ac_try) 2>&5
5581
 
  ac_status=$?
5582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
 
  (exit $ac_status); }; }; then
5584
 
  ac_cv_lib_c_pthread_rwlock_init=yes
5585
 
else
5586
 
  echo "$as_me: failed program was:" >&5
5587
 
sed 's/^/| /' conftest.$ac_ext >&5
5588
 
 
5589
 
ac_cv_lib_c_pthread_rwlock_init=no
5590
 
fi
5591
 
rm -f conftest.err conftest.$ac_objext \
5592
 
      conftest$ac_exeext conftest.$ac_ext
5593
 
LIBS=$ac_check_lib_save_LIBS
5594
 
fi
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
5598
 
 
5599
 
cat >>confdefs.h <<\_ACEOF
5600
 
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5601
 
_ACEOF
5602
 
 
5603
 
fi
5604
 
 
5605
 
LIBS="$old_LIBS"
5606
 
CC="$old_CC"
5607
 
CFLAGS="$old_CFLAGS"
5608
 
 
5609
 
 
5610
 
old_LIBS="$LIBS"
5611
 
DL_LIB=
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
5616
 
else
5617
 
  ac_func_search_save_LIBS=$LIBS
5618
 
ac_cv_search_dlopen=no
5619
 
cat >conftest.$ac_ext <<_ACEOF
5620
 
/* confdefs.h.  */
5621
 
_ACEOF
5622
 
cat confdefs.h >>conftest.$ac_ext
5623
 
cat >>conftest.$ac_ext <<_ACEOF
5624
 
/* end confdefs.h.  */
5625
 
 
5626
 
/* Override any gcc2 internal prototype to avoid an error.  */
5627
 
#ifdef __cplusplus
5628
 
extern "C"
5629
 
#endif
5630
 
/* We use char because int might match the return type of a gcc2
5631
 
   builtin and then its argument prototype would still apply.  */
5632
 
char dlopen ();
5633
 
int
5634
 
main ()
5635
 
{
5636
 
dlopen ();
5637
 
  ;
5638
 
  return 0;
5639
 
}
5640
 
_ACEOF
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
5644
 
  ac_status=$?
5645
 
  grep -v '^ *+' conftest.er1 >conftest.err
5646
 
  rm -f conftest.er1
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
5653
 
  (eval $ac_try) 2>&5
5654
 
  ac_status=$?
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
5659
 
  (eval $ac_try) 2>&5
5660
 
  ac_status=$?
5661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662
 
  (exit $ac_status); }; }; then
5663
 
  ac_cv_search_dlopen="none required"
5664
 
else
5665
 
  echo "$as_me: failed program was:" >&5
5666
 
sed 's/^/| /' conftest.$ac_ext >&5
5667
 
 
5668
 
fi
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
5675
 
/* confdefs.h.  */
5676
 
_ACEOF
5677
 
cat confdefs.h >>conftest.$ac_ext
5678
 
cat >>conftest.$ac_ext <<_ACEOF
5679
 
/* end confdefs.h.  */
5680
 
 
5681
 
/* Override any gcc2 internal prototype to avoid an error.  */
5682
 
#ifdef __cplusplus
5683
 
extern "C"
5684
 
#endif
5685
 
/* We use char because int might match the return type of a gcc2
5686
 
   builtin and then its argument prototype would still apply.  */
5687
 
char dlopen ();
5688
 
int
5689
 
main ()
5690
 
{
5691
 
dlopen ();
5692
 
  ;
5693
 
  return 0;
5694
 
}
5695
 
_ACEOF
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
5699
 
  ac_status=$?
5700
 
  grep -v '^ *+' conftest.er1 >conftest.err
5701
 
  rm -f conftest.er1
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
5708
 
  (eval $ac_try) 2>&5
5709
 
  ac_status=$?
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
5714
 
  (eval $ac_try) 2>&5
5715
 
  ac_status=$?
5716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
 
  (exit $ac_status); }; }; then
5718
 
  ac_cv_search_dlopen="-l$ac_lib"
5719
 
break
5720
 
else
5721
 
  echo "$as_me: failed program was:" >&5
5722
 
sed 's/^/| /' conftest.$ac_ext >&5
5723
 
 
5724
 
fi
5725
 
rm -f conftest.err conftest.$ac_objext \
5726
 
      conftest$ac_exeext conftest.$ac_ext
5727
 
  done
5728
 
fi
5729
 
LIBS=$ac_func_search_save_LIBS
5730
 
fi
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"
5735
 
 
5736
 
if test "$ac_cv_search_dlopen" != "none required"; then
5737
 
  DL_LIB=$ac_cv_search_dlopen
5738
 
fi
5739
 
LIBS="$old_LIBS"
5740
 
 
5741
 
cat >>confdefs.h <<\_ACEOF
5742
 
#define USE_DLOPEN 1
5743
 
_ACEOF
5744
 
 
5745
 
fi
5746
 
 
5747
 
 
5748
 
 
5749
 
 
5750
 
 
5751
 
for ac_header in keyutils.h
5752
 
do
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
5759
 
fi
5760
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5761
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5762
 
else
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
5767
 
/* confdefs.h.  */
5768
 
_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>
5774
 
_ACEOF
5775
 
rm -f conftest.$ac_objext
5776
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777
 
  (eval $ac_compile) 2>conftest.er1
5778
 
  ac_status=$?
5779
 
  grep -v '^ *+' conftest.er1 >conftest.err
5780
 
  rm -f conftest.er1
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
5787
 
  (eval $ac_try) 2>&5
5788
 
  ac_status=$?
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
5793
 
  (eval $ac_try) 2>&5
5794
 
  ac_status=$?
5795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
 
  (exit $ac_status); }; }; then
5797
 
  ac_header_compiler=yes
5798
 
else
5799
 
  echo "$as_me: failed program was:" >&5
5800
 
sed 's/^/| /' conftest.$ac_ext >&5
5801
 
 
5802
 
ac_header_compiler=no
5803
 
fi
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
5807
 
 
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
5812
 
/* confdefs.h.  */
5813
 
_ACEOF
5814
 
cat confdefs.h >>conftest.$ac_ext
5815
 
cat >>conftest.$ac_ext <<_ACEOF
5816
 
/* end confdefs.h.  */
5817
 
#include <$ac_header>
5818
 
_ACEOF
5819
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5821
 
  ac_status=$?
5822
 
  grep -v '^ *+' conftest.er1 >conftest.err
5823
 
  rm -f conftest.er1
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
5830
 
  else
5831
 
    ac_cpp_err=
5832
 
  fi
5833
 
else
5834
 
  ac_cpp_err=yes
5835
 
fi
5836
 
if test -z "$ac_cpp_err"; then
5837
 
  ac_header_preproc=yes
5838
 
else
5839
 
  echo "$as_me: failed program was:" >&5
5840
 
sed 's/^/| /' conftest.$ac_ext >&5
5841
 
 
5842
 
  ac_header_preproc=no
5843
 
fi
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
5847
 
 
5848
 
# So?  What about this header?
5849
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5850
 
  yes:no: )
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
5856
 
    ;;
5857
 
  no: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;}
5870
 
    (
5871
 
      cat <<\_ASBOX
5872
 
## -------------------------------- ##
5873
 
## Report this to krb5-bugs@mit.edu ##
5874
 
## -------------------------------- ##
5875
 
_ASBOX
5876
 
    ) |
5877
 
      sed "s/^/$as_me: WARNING:     /" >&2
5878
 
    ;;
5879
 
esac
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
5884
 
else
5885
 
  eval "$as_ac_Header=\$ac_header_preproc"
5886
 
fi
5887
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
 
 
5890
 
fi
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
5894
 
_ACEOF
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
5899
 
else
5900
 
  ac_check_lib_save_LIBS=$LIBS
5901
 
LIBS="-lkeyutils  $LIBS"
5902
 
cat >conftest.$ac_ext <<_ACEOF
5903
 
/* confdefs.h.  */
5904
 
_ACEOF
5905
 
cat confdefs.h >>conftest.$ac_ext
5906
 
cat >>conftest.$ac_ext <<_ACEOF
5907
 
/* end confdefs.h.  */
5908
 
 
5909
 
/* Override any gcc2 internal prototype to avoid an error.  */
5910
 
#ifdef __cplusplus
5911
 
extern "C"
5912
 
#endif
5913
 
/* We use char because int might match the return type of a gcc2
5914
 
   builtin and then its argument prototype would still apply.  */
5915
 
char add_key ();
5916
 
int
5917
 
main ()
5918
 
{
5919
 
add_key ();
5920
 
  ;
5921
 
  return 0;
5922
 
}
5923
 
_ACEOF
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
5927
 
  ac_status=$?
5928
 
  grep -v '^ *+' conftest.er1 >conftest.err
5929
 
  rm -f conftest.er1
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
5936
 
  (eval $ac_try) 2>&5
5937
 
  ac_status=$?
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
5942
 
  (eval $ac_try) 2>&5
5943
 
  ac_status=$?
5944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945
 
  (exit $ac_status); }; }; then
5946
 
  ac_cv_lib_keyutils_add_key=yes
5947
 
else
5948
 
  echo "$as_me: failed program was:" >&5
5949
 
sed 's/^/| /' conftest.$ac_ext >&5
5950
 
 
5951
 
ac_cv_lib_keyutils_add_key=no
5952
 
fi
5953
 
rm -f conftest.err conftest.$ac_objext \
5954
 
      conftest$ac_exeext conftest.$ac_ext
5955
 
LIBS=$ac_check_lib_save_LIBS
5956
 
fi
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
5960
 
 
5961
 
cat >>confdefs.h <<\_ACEOF
5962
 
#define USE_KEYRING_CCACHE 1
5963
 
_ACEOF
5964
 
 
5965
 
       LIBS="-lkeyutils $LIBS"
5966
 
 
5967
 
fi
5968
 
 
5969
 
fi
5970
 
 
5971
 
done
5972
 
 
5973
 
 
5974
 
 
5975
 
 
5976
 
 
5977
 
for ac_header in Python.h python2.3/Python.h
5978
 
do
5979
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5981
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5982
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5983
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5984
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5985
 
fi
5986
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5987
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988
 
else
5989
 
  # Is the header compilable?
5990
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5991
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5992
 
cat >conftest.$ac_ext <<_ACEOF
5993
 
/* confdefs.h.  */
5994
 
_ACEOF
5995
 
cat confdefs.h >>conftest.$ac_ext
5996
 
cat >>conftest.$ac_ext <<_ACEOF
5997
 
/* end confdefs.h.  */
5998
 
$ac_includes_default
5999
 
#include <$ac_header>
6000
 
_ACEOF
6001
 
rm -f conftest.$ac_objext
6002
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003
 
  (eval $ac_compile) 2>conftest.er1
6004
 
  ac_status=$?
6005
 
  grep -v '^ *+' conftest.er1 >conftest.err
6006
 
  rm -f conftest.er1
6007
 
  cat conftest.err >&5
6008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009
 
  (exit $ac_status); } &&
6010
 
         { ac_try='test -z "$ac_c_werror_flag"
6011
 
                         || test ! -s conftest.err'
6012
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013
 
  (eval $ac_try) 2>&5
6014
 
  ac_status=$?
6015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016
 
  (exit $ac_status); }; } &&
6017
 
         { ac_try='test -s conftest.$ac_objext'
6018
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019
 
  (eval $ac_try) 2>&5
6020
 
  ac_status=$?
6021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022
 
  (exit $ac_status); }; }; then
6023
 
  ac_header_compiler=yes
6024
 
else
6025
 
  echo "$as_me: failed program was:" >&5
6026
 
sed 's/^/| /' conftest.$ac_ext >&5
6027
 
 
6028
 
ac_header_compiler=no
6029
 
fi
6030
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6032
 
echo "${ECHO_T}$ac_header_compiler" >&6
6033
 
 
6034
 
# Is the header present?
6035
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6036
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6037
 
cat >conftest.$ac_ext <<_ACEOF
6038
 
/* confdefs.h.  */
6039
 
_ACEOF
6040
 
cat confdefs.h >>conftest.$ac_ext
6041
 
cat >>conftest.$ac_ext <<_ACEOF
6042
 
/* end confdefs.h.  */
6043
 
#include <$ac_header>
6044
 
_ACEOF
6045
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6046
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047
 
  ac_status=$?
6048
 
  grep -v '^ *+' conftest.er1 >conftest.err
6049
 
  rm -f conftest.er1
6050
 
  cat conftest.err >&5
6051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052
 
  (exit $ac_status); } >/dev/null; then
6053
 
  if test -s conftest.err; then
6054
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6055
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6056
 
  else
6057
 
    ac_cpp_err=
6058
 
  fi
6059
 
else
6060
 
  ac_cpp_err=yes
6061
 
fi
6062
 
if test -z "$ac_cpp_err"; then
6063
 
  ac_header_preproc=yes
6064
 
else
6065
 
  echo "$as_me: failed program was:" >&5
6066
 
sed 's/^/| /' conftest.$ac_ext >&5
6067
 
 
6068
 
  ac_header_preproc=no
6069
 
fi
6070
 
rm -f conftest.err conftest.$ac_ext
6071
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6072
 
echo "${ECHO_T}$ac_header_preproc" >&6
6073
 
 
6074
 
# So?  What about this header?
6075
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6076
 
  yes:no: )
6077
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6078
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6079
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6080
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6081
 
    ac_header_preproc=yes
6082
 
    ;;
6083
 
  no:yes:* )
6084
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6085
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6086
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6087
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6088
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6089
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6090
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6091
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6092
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6093
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6094
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6095
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6096
 
    (
6097
 
      cat <<\_ASBOX
6098
 
## -------------------------------- ##
6099
 
## Report this to krb5-bugs@mit.edu ##
6100
 
## -------------------------------- ##
6101
 
_ASBOX
6102
 
    ) |
6103
 
      sed "s/^/$as_me: WARNING:     /" >&2
6104
 
    ;;
6105
 
esac
6106
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6107
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6108
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6110
 
else
6111
 
  eval "$as_ac_Header=\$ac_header_preproc"
6112
 
fi
6113
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6114
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6115
 
 
6116
 
fi
6117
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6118
 
  cat >>confdefs.h <<_ACEOF
6119
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120
 
_ACEOF
6121
 
 
6122
 
fi
6123
 
 
6124
 
done
6125
 
 
6126
 
 
6127
 
 
6128
 
# Check whether to build static libraries.
6129
 
# Check whether --enable-static or --disable-static was given.
6130
 
if test "${enable_static+set}" = set; then
6131
 
  enableval="$enable_static"
6132
 
 
6133
 
else
6134
 
  enable_static=$default_static
6135
 
fi;
6136
 
 
6137
 
if test "$enable_static" = yes; then
6138
 
  { { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6139
 
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6140
 
   { (exit 1); exit 1; }; }
6141
 
fi
6142
 
 
6143
 
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6144
 
        { echo "$as_me:$LINENO: disabling static libraries" >&5
6145
 
echo "$as_me: disabling static libraries" >&6;}
6146
 
        LIBLINKS=
6147
 
        LIBLIST=
6148
 
        OBJLISTS=
6149
 
else
6150
 
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6151
 
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6152
 
        OBJLISTS=OBJS.ST
6153
 
        LIBINSTLIST=install-static
6154
 
        DEPLIBEXT=$STLIBEXT
6155
 
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6156
 
fi
6157
 
 
6158
 
# Check whether to build shared libraries.
6159
 
# Check whether --enable-shared or --disable-shared was given.
6160
 
if test "${enable_shared+set}" = set; then
6161
 
  enableval="$enable_shared"
6162
 
 
6163
 
else
6164
 
  enable_shared=$default_shared
6165
 
fi;
6166
 
 
6167
 
if test "$enable_shared" != yes; then
6168
 
  { { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6169
 
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6170
 
   { (exit 1); exit 1; }; }
6171
 
fi
6172
 
 
6173
 
if test "$enable_shared" = yes; then
6174
 
        case "$SHLIBEXT" in
6175
 
        .so-nobuild)
6176
 
                { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6177
 
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6178
 
                RUN_ENV=
6179
 
                CC_LINK="$CC_LINK_STATIC"
6180
 
                ;;
6181
 
        *)
6182
 
                # set this now because some logic below may reset SHLIBEXT
6183
 
                DEPLIBEXT=$SHLIBEXT
6184
 
                if test "$krb5_force_static" = "yes"; then
6185
 
                        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6186
 
echo "${ECHO_T}Forcing static libraries." >&6
6187
 
                        # avoid duplicate rules generation for AIX and such
6188
 
                        SHLIBEXT=.so-nobuild
6189
 
                        SHLIBVEXT=.so.v-nobuild
6190
 
                        SHLIBSEXT=.so.s-nobuild
6191
 
                else
6192
 
                        { echo "$as_me:$LINENO: enabling shared libraries" >&5
6193
 
echo "$as_me: enabling shared libraries" >&6;}
6194
 
                        # Clear some stuff in case of AIX, etc.
6195
 
                        if test "$STLIBEXT" = "$SHLIBEXT" ; then
6196
 
                                STLIBEXT=.a-nobuild
6197
 
                                LIBLIST=
6198
 
                                LIBLINKS=
6199
 
                                OBJLISTS=
6200
 
                                LIBINSTLIST=
6201
 
                        fi
6202
 
                        LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6203
 
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6204
 
                        case "$SHLIBSEXT" in
6205
 
                        .so.s-nobuild)
6206
 
                                LIBINSTLIST="$LIBINSTLIST install-shared"
6207
 
                                ;;
6208
 
                        *)
6209
 
                                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6210
 
                                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6211
 
                                LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6212
 
                                ;;
6213
 
                        esac
6214
 
                        OBJLISTS="$OBJLISTS OBJS.SH"
6215
 
                fi
6216
 
                CC_LINK="$CC_LINK_SHARED"
6217
 
                ;;
6218
 
        esac
6219
 
else
6220
 
        RUN_ENV=
6221
 
        CC_LINK="$CC_LINK_STATIC"
6222
 
        SHLIBEXT=.so-nobuild
6223
 
        SHLIBVEXT=.so.v-nobuild
6224
 
        SHLIBSEXT=.so.s-nobuild
6225
 
fi
6226
 
 
6227
 
if test "$build_dynobj" = yes; then
6228
 
        OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6229
 
        OBJLISTS="$OBJLISTS OBJS.SH"
6230
 
fi
6231
 
 
6232
 
if test -z "$LIBLIST"; then
6233
 
        { { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6234
 
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
6235
 
   { (exit 1); exit 1; }; }
6236
 
fi
6237
 
 
6238
 
# Check whether to build profiled libraries.
6239
 
# Check whether --enable-profiled or --disable-profiled was given.
6240
 
if test "${enable_profiled+set}" = set; then
6241
 
  enableval="$enable_profiled"
6242
 
  if test "$enableval" = yes; then
6243
 
  { { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
6244
 
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6245
 
   { (exit 1); exit 1; }; }
6246
 
fi
6247
 
if false; then
6248
 
        case $PFLIBEXT in
6249
 
        .po-nobuild)
6250
 
                { echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6251
 
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6252
 
                ;;
6253
 
        *)
6254
 
                { echo "$as_me:$LINENO: enabling profiled libraries" >&5
6255
 
echo "$as_me: enabling profiled libraries" >&6;}
6256
 
                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6257
 
                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6258
 
                OBJLISTS="$OBJLISTS OBJS.PF"
6259
 
                LIBINSTLIST="$LIBINSTLIST install-profiled"
6260
 
                ;;
6261
 
        esac
6262
 
fi
6263
 
fi;
6264
 
 
6265
 
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6271
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6272
 
LN_S=$as_ln_s
6273
 
if test "$LN_S" = "ln -s"; then
6274
 
  echo "$as_me:$LINENO: result: yes" >&5
6275
 
echo "${ECHO_T}yes" >&6
6276
 
else
6277
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6278
 
echo "${ECHO_T}no, using $LN_S" >&6
6279
 
fi
6280
 
 
6281
 
if test -n "$ac_tool_prefix"; then
6282
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6283
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6284
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6285
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6288
 
else
6289
 
  if test -n "$RANLIB"; then
6290
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6291
 
else
6292
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293
 
for as_dir in $PATH
6294
 
do
6295
 
  IFS=$as_save_IFS
6296
 
  test -z "$as_dir" && as_dir=.
6297
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6298
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6300
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301
 
    break 2
6302
 
  fi
6303
 
done
6304
 
done
6305
 
 
6306
 
fi
6307
 
fi
6308
 
RANLIB=$ac_cv_prog_RANLIB
6309
 
if test -n "$RANLIB"; then
6310
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6311
 
echo "${ECHO_T}$RANLIB" >&6
6312
 
else
6313
 
  echo "$as_me:$LINENO: result: no" >&5
6314
 
echo "${ECHO_T}no" >&6
6315
 
fi
6316
 
 
6317
 
fi
6318
 
if test -z "$ac_cv_prog_RANLIB"; then
6319
 
  ac_ct_RANLIB=$RANLIB
6320
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6321
 
set dummy ranlib; ac_word=$2
6322
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6323
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6324
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6326
 
else
6327
 
  if test -n "$ac_ct_RANLIB"; then
6328
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329
 
else
6330
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331
 
for as_dir in $PATH
6332
 
do
6333
 
  IFS=$as_save_IFS
6334
 
  test -z "$as_dir" && as_dir=.
6335
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6336
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6338
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339
 
    break 2
6340
 
  fi
6341
 
done
6342
 
done
6343
 
 
6344
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6345
 
fi
6346
 
fi
6347
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348
 
if test -n "$ac_ct_RANLIB"; then
6349
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6350
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6351
 
else
6352
 
  echo "$as_me:$LINENO: result: no" >&5
6353
 
echo "${ECHO_T}no" >&6
6354
 
fi
6355
 
 
6356
 
  RANLIB=$ac_ct_RANLIB
6357
 
else
6358
 
  RANLIB="$ac_cv_prog_RANLIB"
6359
 
fi
6360
 
 
6361
 
# Extract the first word of "ar", so it can be a program name with args.
6362
 
set dummy ar; ac_word=$2
6363
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6364
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365
 
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
6366
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6367
 
else
6368
 
  if test -n "$ARCHIVE"; then
6369
 
  ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
6370
 
else
6371
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372
 
for as_dir in $PATH
6373
 
do
6374
 
  IFS=$as_save_IFS
6375
 
  test -z "$as_dir" && as_dir=.
6376
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6377
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378
 
    ac_cv_prog_ARCHIVE="ar cqv"
6379
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380
 
    break 2
6381
 
  fi
6382
 
done
6383
 
done
6384
 
 
6385
 
  test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
6386
 
fi
6387
 
fi
6388
 
ARCHIVE=$ac_cv_prog_ARCHIVE
6389
 
if test -n "$ARCHIVE"; then
6390
 
  echo "$as_me:$LINENO: result: $ARCHIVE" >&5
6391
 
echo "${ECHO_T}$ARCHIVE" >&6
6392
 
else
6393
 
  echo "$as_me:$LINENO: result: no" >&5
6394
 
echo "${ECHO_T}no" >&6
6395
 
fi
6396
 
 
6397
 
# Extract the first word of "ar", so it can be a program name with args.
6398
 
set dummy ar; ac_word=$2
6399
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6400
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401
 
if test "${ac_cv_prog_ARADD+set}" = set; then
6402
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6403
 
else
6404
 
  if test -n "$ARADD"; then
6405
 
  ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
6406
 
else
6407
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408
 
for as_dir in $PATH
6409
 
do
6410
 
  IFS=$as_save_IFS
6411
 
  test -z "$as_dir" && as_dir=.
6412
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6413
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414
 
    ac_cv_prog_ARADD="ar cruv"
6415
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416
 
    break 2
6417
 
  fi
6418
 
done
6419
 
done
6420
 
 
6421
 
  test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
6422
 
fi
6423
 
fi
6424
 
ARADD=$ac_cv_prog_ARADD
6425
 
if test -n "$ARADD"; then
6426
 
  echo "$as_me:$LINENO: result: $ARADD" >&5
6427
 
echo "${ECHO_T}$ARADD" >&6
6428
 
else
6429
 
  echo "$as_me:$LINENO: result: no" >&5
6430
 
echo "${ECHO_T}no" >&6
6431
 
fi
6432
 
 
6433
 
# Find a good install program.  We prefer a C program (faster),
6434
 
# so one script is as good as another.  But avoid the broken or
6435
 
# incompatible versions:
6436
 
# SysV /etc/install, /usr/sbin/install
6437
 
# SunOS /usr/etc/install
6438
 
# IRIX /sbin/install
6439
 
# AIX /bin/install
6440
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
6441
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6442
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6443
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6444
 
# OS/2's system install, which has a completely different semantic
6445
 
# ./install, which can be erroneously created by make from ./install.sh.
6446
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6447
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6448
 
if test -z "$INSTALL"; then
6449
 
if test "${ac_cv_path_install+set}" = set; then
6450
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6451
 
else
6452
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453
 
for as_dir in $PATH
6454
 
do
6455
 
  IFS=$as_save_IFS
6456
 
  test -z "$as_dir" && as_dir=.
6457
 
  # Account for people who put trailing slashes in PATH elements.
6458
 
case $as_dir/ in
6459
 
  ./ | .// | /cC/* | \
6460
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6461
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6462
 
  /usr/ucb/* ) ;;
6463
 
  *)
6464
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
6465
 
    # Don't use installbsd from OSF since it installs stuff as root
6466
 
    # by default.
6467
 
    for ac_prog in ginstall scoinst install; do
6468
 
      for ac_exec_ext in '' $ac_executable_extensions; do
6469
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6470
 
          if test $ac_prog = install &&
6471
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6472
 
            # AIX install.  It has an incompatible calling convention.
6473
 
            :
6474
 
          elif test $ac_prog = install &&
6475
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6476
 
            # program-specific install script used by HP pwplus--don't use.
6477
 
            :
6478
 
          else
6479
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6480
 
            break 3
6481
 
          fi
6482
 
        fi
6483
 
      done
6484
 
    done
6485
 
    ;;
6486
 
esac
6487
 
done
6488
 
 
6489
 
 
6490
 
fi
6491
 
  if test "${ac_cv_path_install+set}" = set; then
6492
 
    INSTALL=$ac_cv_path_install
6493
 
  else
6494
 
    # As a last resort, use the slow shell script.  We don't cache a
6495
 
    # path for INSTALL within a source directory, because that will
6496
 
    # break other packages using the cache if that directory is
6497
 
    # removed, or if the path is relative.
6498
 
    INSTALL=$ac_install_sh
6499
 
  fi
6500
 
fi
6501
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
6502
 
echo "${ECHO_T}$INSTALL" >&6
6503
 
 
6504
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6505
 
# It thinks the first close brace ends the variable substitution.
6506
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6507
 
 
6508
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6509
 
 
6510
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6511
 
 
6512
 
# Extract the first word of "ar", so it can be a program name with args.
6513
 
set dummy ar; ac_word=$2
6514
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6515
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516
 
if test "${ac_cv_prog_AR+set}" = set; then
6517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6518
 
else
6519
 
  if test -n "$AR"; then
6520
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6521
 
else
6522
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523
 
for as_dir in $PATH
6524
 
do
6525
 
  IFS=$as_save_IFS
6526
 
  test -z "$as_dir" && as_dir=.
6527
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6528
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529
 
    ac_cv_prog_AR="ar"
6530
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531
 
    break 2
6532
 
  fi
6533
 
done
6534
 
done
6535
 
 
6536
 
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
6537
 
fi
6538
 
fi
6539
 
AR=$ac_cv_prog_AR
6540
 
if test -n "$AR"; then
6541
 
  echo "$as_me:$LINENO: result: $AR" >&5
6542
 
echo "${ECHO_T}$AR" >&6
6543
 
else
6544
 
  echo "$as_me:$LINENO: result: no" >&5
6545
 
echo "${ECHO_T}no" >&6
6546
 
fi
6547
 
 
6548
 
# Extract the first word of "perl", so it can be a program name with args.
6549
 
set dummy perl; ac_word=$2
6550
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6551
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552
 
if test "${ac_cv_prog_PERL+set}" = set; then
6553
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6554
 
else
6555
 
  if test -n "$PERL"; then
6556
 
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
6557
 
else
6558
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559
 
for as_dir in $PATH
6560
 
do
6561
 
  IFS=$as_save_IFS
6562
 
  test -z "$as_dir" && as_dir=.
6563
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6564
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565
 
    ac_cv_prog_PERL="perl"
6566
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567
 
    break 2
6568
 
  fi
6569
 
done
6570
 
done
6571
 
 
6572
 
  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
6573
 
fi
6574
 
fi
6575
 
PERL=$ac_cv_prog_PERL
6576
 
if test -n "$PERL"; then
6577
 
  echo "$as_me:$LINENO: result: $PERL" >&5
6578
 
echo "${ECHO_T}$PERL" >&6
6579
 
else
6580
 
  echo "$as_me:$LINENO: result: no" >&5
6581
 
echo "${ECHO_T}no" >&6
6582
 
fi
6583
 
 
6584
 
if test "$ac_cv_prog_PERL" = "false"; then
6585
 
  { { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
6586
 
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
6587
 
   { (exit 1); exit 1; }; }
6588
 
fi
6589
 
 
6590
 
 
6591
 
 
6592
 
 
6593
 
 
6594
 
 
6595
 
 
6596
 
 
6597
 
 
6598
 
 
6599
 
 
6600
 
 
6601
 
 
6602
 
 
6603
 
 
6604
 
 
6605
 
 
6606
 
 
6607
 
 
6608
 
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in"
6609
 
 
6610
 
cat >confcache <<\_ACEOF
6611
 
# This file is a shell script that caches the results of configure
6612
 
# tests run on this system so they can be shared between configure
6613
 
# scripts and configure runs, see configure's option --config-cache.
6614
 
# It is not useful on other systems.  If it contains results you don't
6615
 
# want to keep, you may remove or edit it.
6616
 
#
6617
 
# config.status only pays attention to the cache file if you give it
6618
 
# the --recheck option to rerun configure.
6619
 
#
6620
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6621
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6622
 
# following values.
6623
 
 
6624
 
_ACEOF
6625
 
 
6626
 
# The following way of writing the cache mishandles newlines in values,
6627
 
# but we know of no workaround that is simple, portable, and efficient.
6628
 
# So, don't put newlines in cache variables' values.
6629
 
# Ultrix sh set writes to stderr and can't be redirected directly,
6630
 
# and sets the high bit in the cache file unless we assign to the vars.
6631
 
{
6632
 
  (set) 2>&1 |
6633
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6634
 
    *ac_space=\ *)
6635
 
      # `set' does not quote correctly, so add quotes (double-quote
6636
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
6637
 
      sed -n \
6638
 
        "s/'/'\\\\''/g;
6639
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6640
 
      ;;
6641
 
    *)
6642
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6643
 
      sed -n \
6644
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6645
 
      ;;
6646
 
    esac;
6647
 
} |
6648
 
  sed '
6649
 
     t clear
6650
 
     : clear
6651
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6652
 
     t end
6653
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6654
 
     : end' >>confcache
6655
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6656
 
  if test -w $cache_file; then
6657
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6658
 
    cat confcache >$cache_file
6659
 
  else
6660
 
    echo "not updating unwritable cache $cache_file"
6661
 
  fi
6662
 
fi
6663
 
rm -f confcache
6664
 
 
6665
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6666
 
# Let make expand exec_prefix.
6667
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6668
 
 
6669
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6670
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6671
 
# trailing colons and then remove the whole line if VPATH becomes empty
6672
 
# (actually we leave an empty line to preserve line numbers).
6673
 
if test "x$srcdir" = x.; then
6674
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6675
 
s/:*\$(srcdir):*/:/;
6676
 
s/:*\${srcdir}:*/:/;
6677
 
s/:*@srcdir@:*/:/;
6678
 
s/^\([^=]*=[     ]*\):*/\1/;
6679
 
s/:*$//;
6680
 
s/^[^=]*=[       ]*$//;
6681
 
}'
6682
 
fi
6683
 
 
6684
 
# Transform confdefs.h into DEFS.
6685
 
# Protect against shell expansion while executing Makefile rules.
6686
 
# Protect against Makefile macro expansion.
6687
 
#
6688
 
# If the first sed substitution is executed (which looks for macros that
6689
 
# take arguments), then we branch to the quote section.  Otherwise,
6690
 
# look for a macro that doesn't take arguments.
6691
 
cat >confdef2opt.sed <<\_ACEOF
6692
 
t clear
6693
 
: clear
6694
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6695
 
t quote
6696
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6697
 
t quote
6698
 
d
6699
 
: quote
6700
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6701
 
s,\[,\\&,g
6702
 
s,\],\\&,g
6703
 
s,\$,$$,g
6704
 
p
6705
 
_ACEOF
6706
 
# We use echo to avoid assuming a particular line-breaking character.
6707
 
# The extra dot is to prevent the shell from consuming trailing
6708
 
# line-breaks from the sub-command output.  A line-break within
6709
 
# single-quotes doesn't work because, if this script is created in a
6710
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
6711
 
# would break.
6712
 
ac_LF_and_DOT=`echo; echo .`
6713
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6714
 
rm -f confdef2opt.sed
6715
 
 
6716
 
 
6717
 
ac_libobjs=
6718
 
ac_ltlibobjs=
6719
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6720
 
  # 1. Remove the extension, and $U if already installed.
6721
 
  ac_i=`echo "$ac_i" |
6722
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6723
 
  # 2. Add them.
6724
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6725
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6726
 
done
6727
 
LIBOBJS=$ac_libobjs
6728
 
 
6729
 
LTLIBOBJS=$ac_ltlibobjs
6730
 
 
6731
 
 
6732
 
 
6733
 
: ${CONFIG_STATUS=./config.status}
6734
 
ac_clean_files_save=$ac_clean_files
6735
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6736
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6737
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6738
 
cat >$CONFIG_STATUS <<_ACEOF
6739
 
#! $SHELL
6740
 
# Generated by $as_me.
6741
 
# Run this file to recreate the current configuration.
6742
 
# Compiler output produced by configure, useful for debugging
6743
 
# configure, is in config.log if it exists.
6744
 
 
6745
 
debug=false
6746
 
ac_cs_recheck=false
6747
 
ac_cs_silent=false
6748
 
SHELL=\${CONFIG_SHELL-$SHELL}
6749
 
_ACEOF
6750
 
 
6751
 
cat >>$CONFIG_STATUS <<\_ACEOF
6752
 
## --------------------- ##
6753
 
## M4sh Initialization.  ##
6754
 
## --------------------- ##
6755
 
 
6756
 
# Be Bourne compatible
6757
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6758
 
  emulate sh
6759
 
  NULLCMD=:
6760
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6761
 
  # is contrary to our usage.  Disable this feature.
6762
 
  alias -g '${1+"$@"}'='"$@"'
6763
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6764
 
  set -o posix
6765
 
fi
6766
 
DUALCASE=1; export DUALCASE # for MKS sh
6767
 
 
6768
 
# Support unset when possible.
6769
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6770
 
  as_unset=unset
6771
 
else
6772
 
  as_unset=false
6773
 
fi
6774
 
 
6775
 
 
6776
 
# Work around bugs in pre-3.0 UWIN ksh.
6777
 
$as_unset ENV MAIL MAILPATH
6778
 
PS1='$ '
6779
 
PS2='> '
6780
 
PS4='+ '
6781
 
 
6782
 
# NLS nuisances.
6783
 
for as_var in \
6784
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6785
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6786
 
  LC_TELEPHONE LC_TIME
6787
 
do
6788
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6789
 
    eval $as_var=C; export $as_var
6790
 
  else
6791
 
    $as_unset $as_var
6792
 
  fi
6793
 
done
6794
 
 
6795
 
# Required to use basename.
6796
 
if expr a : '\(a\)' >/dev/null 2>&1; then
6797
 
  as_expr=expr
6798
 
else
6799
 
  as_expr=false
6800
 
fi
6801
 
 
6802
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6803
 
  as_basename=basename
6804
 
else
6805
 
  as_basename=false
6806
 
fi
6807
 
 
6808
 
 
6809
 
# Name of the executable.
6810
 
as_me=`$as_basename "$0" ||
6811
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6812
 
         X"$0" : 'X\(//\)$' \| \
6813
 
         X"$0" : 'X\(/\)$' \| \
6814
 
         .     : '\(.\)' 2>/dev/null ||
6815
 
echo X/"$0" |
6816
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6817
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
6818
 
          /^X\/\(\/\).*/{ s//\1/; q; }
6819
 
          s/.*/./; q'`
6820
 
 
6821
 
 
6822
 
# PATH needs CR, and LINENO needs CR and PATH.
6823
 
# Avoid depending upon Character Ranges.
6824
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6825
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6826
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6827
 
as_cr_digits='0123456789'
6828
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
6829
 
 
6830
 
# The user is always right.
6831
 
if test "${PATH_SEPARATOR+set}" != set; then
6832
 
  echo "#! /bin/sh" >conf$$.sh
6833
 
  echo  "exit 0"   >>conf$$.sh
6834
 
  chmod +x conf$$.sh
6835
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6836
 
    PATH_SEPARATOR=';'
6837
 
  else
6838
 
    PATH_SEPARATOR=:
6839
 
  fi
6840
 
  rm -f conf$$.sh
6841
 
fi
6842
 
 
6843
 
 
6844
 
  as_lineno_1=$LINENO
6845
 
  as_lineno_2=$LINENO
6846
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6847
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6848
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6849
 
  # Find who we are.  Look in the path if we contain no path at all
6850
 
  # relative or not.
6851
 
  case $0 in
6852
 
    *[\\/]* ) as_myself=$0 ;;
6853
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854
 
for as_dir in $PATH
6855
 
do
6856
 
  IFS=$as_save_IFS
6857
 
  test -z "$as_dir" && as_dir=.
6858
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6859
 
done
6860
 
 
6861
 
       ;;
6862
 
  esac
6863
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
6864
 
  # in which case we are not to be found in the path.
6865
 
  if test "x$as_myself" = x; then
6866
 
    as_myself=$0
6867
 
  fi
6868
 
  if test ! -f "$as_myself"; then
6869
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6870
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6871
 
   { (exit 1); exit 1; }; }
6872
 
  fi
6873
 
  case $CONFIG_SHELL in
6874
 
  '')
6875
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6877
 
do
6878
 
  IFS=$as_save_IFS
6879
 
  test -z "$as_dir" && as_dir=.
6880
 
  for as_base in sh bash ksh sh5; do
6881
 
         case $as_dir in
6882
 
         /*)
6883
 
           if ("$as_dir/$as_base" -c '
6884
 
  as_lineno_1=$LINENO
6885
 
  as_lineno_2=$LINENO
6886
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6887
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6888
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6889
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6890
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6891
 
             CONFIG_SHELL=$as_dir/$as_base
6892
 
             export CONFIG_SHELL
6893
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6894
 
           fi;;
6895
 
         esac
6896
 
       done
6897
 
done
6898
 
;;
6899
 
  esac
6900
 
 
6901
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6902
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
6903
 
  # line-number line before each line; the second 'sed' does the real
6904
 
  # work.  The second script uses 'N' to pair each line-number line
6905
 
  # with the numbered line, and appends trailing '-' during
6906
 
  # substitution so that $LINENO is not a special case at line end.
6907
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6908
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6909
 
  sed '=' <$as_myself |
6910
 
    sed '
6911
 
      N
6912
 
      s,$,-,
6913
 
      : loop
6914
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6915
 
      t loop
6916
 
      s,-$,,
6917
 
      s,^['$as_cr_digits']*\n,,
6918
 
    ' >$as_me.lineno &&
6919
 
  chmod +x $as_me.lineno ||
6920
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6921
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6922
 
   { (exit 1); exit 1; }; }
6923
 
 
6924
 
  # Don't try to exec as it changes $[0], causing all sort of problems
6925
 
  # (the dirname of $[0] is not the place where we might find the
6926
 
  # original and so on.  Autoconf is especially sensible to this).
6927
 
  . ./$as_me.lineno
6928
 
  # Exit status is that of the last command.
6929
 
  exit
6930
 
}
6931
 
 
6932
 
 
6933
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6934
 
  *c*,-n*) ECHO_N= ECHO_C='
6935
 
' ECHO_T='      ' ;;
6936
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6937
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6938
 
esac
6939
 
 
6940
 
if expr a : '\(a\)' >/dev/null 2>&1; then
6941
 
  as_expr=expr
6942
 
else
6943
 
  as_expr=false
6944
 
fi
6945
 
 
6946
 
rm -f conf$$ conf$$.exe conf$$.file
6947
 
echo >conf$$.file
6948
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
6949
 
  # We could just check for DJGPP; but this test a) works b) is more generic
6950
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6951
 
  if test -f conf$$.exe; then
6952
 
    # Don't use ln at all; we don't have any links
6953
 
    as_ln_s='cp -p'
6954
 
  else
6955
 
    as_ln_s='ln -s'
6956
 
  fi
6957
 
elif ln conf$$.file conf$$ 2>/dev/null; then
6958
 
  as_ln_s=ln
6959
 
else
6960
 
  as_ln_s='cp -p'
6961
 
fi
6962
 
rm -f conf$$ conf$$.exe conf$$.file
6963
 
 
6964
 
if mkdir -p . 2>/dev/null; then
6965
 
  as_mkdir_p=:
6966
 
else
6967
 
  test -d ./-p && rmdir ./-p
6968
 
  as_mkdir_p=false
6969
 
fi
6970
 
 
6971
 
as_executable_p="test -f"
6972
 
 
6973
 
# Sed expression to map a string onto a valid CPP name.
6974
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6975
 
 
6976
 
# Sed expression to map a string onto a valid variable name.
6977
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6978
 
 
6979
 
 
6980
 
# IFS
6981
 
# We need space, tab and new line, in precisely that order.
6982
 
as_nl='
6983
 
'
6984
 
IFS="   $as_nl"
6985
 
 
6986
 
# CDPATH.
6987
 
$as_unset CDPATH
6988
 
 
6989
 
exec 6>&1
6990
 
 
6991
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6992
 
# report actual input values of CONFIG_FILES etc. instead of their
6993
 
# values after options handling.  Logging --version etc. is OK.
6994
 
exec 5>>config.log
6995
 
{
6996
 
  echo
6997
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6998
 
## Running $as_me. ##
6999
 
_ASBOX
7000
 
} >&5
7001
 
cat >&5 <<_CSEOF
7002
 
 
7003
 
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
7004
 
generated by GNU Autoconf 2.59.  Invocation command line was
7005
 
 
7006
 
  CONFIG_FILES    = $CONFIG_FILES
7007
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
7008
 
  CONFIG_LINKS    = $CONFIG_LINKS
7009
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7010
 
  $ $0 $@
7011
 
 
7012
 
_CSEOF
7013
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7014
 
echo >&5
7015
 
_ACEOF
7016
 
 
7017
 
# Files that config.status was made for.
7018
 
if test -n "$ac_config_files"; then
7019
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7020
 
fi
7021
 
 
7022
 
if test -n "$ac_config_headers"; then
7023
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7024
 
fi
7025
 
 
7026
 
if test -n "$ac_config_links"; then
7027
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7028
 
fi
7029
 
 
7030
 
if test -n "$ac_config_commands"; then
7031
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7032
 
fi
7033
 
 
7034
 
cat >>$CONFIG_STATUS <<\_ACEOF
7035
 
 
7036
 
ac_cs_usage="\
7037
 
\`$as_me' instantiates files from templates according to the
7038
 
current configuration.
7039
 
 
7040
 
Usage: $0 [OPTIONS] [FILE]...
7041
 
 
7042
 
  -h, --help       print this help, then exit
7043
 
  -V, --version    print version number, then exit
7044
 
  -q, --quiet      do not print progress messages
7045
 
  -d, --debug      don't remove temporary files
7046
 
      --recheck    update $as_me by reconfiguring in the same conditions
7047
 
  --file=FILE[:TEMPLATE]
7048
 
                   instantiate the configuration file FILE
7049
 
 
7050
 
Configuration files:
7051
 
$config_files
7052
 
 
7053
 
Report bugs to <bug-autoconf@gnu.org>."
7054
 
_ACEOF
7055
 
 
7056
 
cat >>$CONFIG_STATUS <<_ACEOF
7057
 
ac_cs_version="\\
7058
 
Kerberos 5 config.status 1.6.4-beta1
7059
 
configured by $0, generated by GNU Autoconf 2.59,
7060
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7061
 
 
7062
 
Copyright (C) 2003 Free Software Foundation, Inc.
7063
 
This config.status script is free software; the Free Software Foundation
7064
 
gives unlimited permission to copy, distribute and modify it."
7065
 
srcdir=$srcdir
7066
 
INSTALL="$INSTALL"
7067
 
_ACEOF
7068
 
 
7069
 
cat >>$CONFIG_STATUS <<\_ACEOF
7070
 
# If no file are specified by the user, then we need to provide default
7071
 
# value.  By we need to know if files were specified by the user.
7072
 
ac_need_defaults=:
7073
 
while test $# != 0
7074
 
do
7075
 
  case $1 in
7076
 
  --*=*)
7077
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7078
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7079
 
    ac_shift=:
7080
 
    ;;
7081
 
  -*)
7082
 
    ac_option=$1
7083
 
    ac_optarg=$2
7084
 
    ac_shift=shift
7085
 
    ;;
7086
 
  *) # This is not an option, so the user has probably given explicit
7087
 
     # arguments.
7088
 
     ac_option=$1
7089
 
     ac_need_defaults=false;;
7090
 
  esac
7091
 
 
7092
 
  case $ac_option in
7093
 
  # Handling of the options.
7094
 
_ACEOF
7095
 
cat >>$CONFIG_STATUS <<\_ACEOF
7096
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7097
 
    ac_cs_recheck=: ;;
7098
 
  --version | --vers* | -V )
7099
 
    echo "$ac_cs_version"; exit 0 ;;
7100
 
  --he | --h)
7101
 
    # Conflict between --help and --header
7102
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7103
 
Try \`$0 --help' for more information." >&5
7104
 
echo "$as_me: error: ambiguous option: $1
7105
 
Try \`$0 --help' for more information." >&2;}
7106
 
   { (exit 1); exit 1; }; };;
7107
 
  --help | --hel | -h )
7108
 
    echo "$ac_cs_usage"; exit 0 ;;
7109
 
  --debug | --d* | -d )
7110
 
    debug=: ;;
7111
 
  --file | --fil | --fi | --f )
7112
 
    $ac_shift
7113
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7114
 
    ac_need_defaults=false;;
7115
 
  --header | --heade | --head | --hea )
7116
 
    $ac_shift
7117
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7118
 
    ac_need_defaults=false;;
7119
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7120
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7121
 
    ac_cs_silent=: ;;
7122
 
 
7123
 
  # This is an error.
7124
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7125
 
Try \`$0 --help' for more information." >&5
7126
 
echo "$as_me: error: unrecognized option: $1
7127
 
Try \`$0 --help' for more information." >&2;}
7128
 
   { (exit 1); exit 1; }; } ;;
7129
 
 
7130
 
  *) ac_config_targets="$ac_config_targets $1" ;;
7131
 
 
7132
 
  esac
7133
 
  shift
7134
 
done
7135
 
 
7136
 
ac_configure_extra_args=
7137
 
 
7138
 
if $ac_cs_silent; then
7139
 
  exec 6>/dev/null
7140
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7141
 
fi
7142
 
 
7143
 
_ACEOF
7144
 
cat >>$CONFIG_STATUS <<_ACEOF
7145
 
if \$ac_cs_recheck; then
7146
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7147
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7148
 
fi
7149
 
 
7150
 
_ACEOF
7151
 
 
7152
 
 
7153
 
 
7154
 
 
7155
 
 
7156
 
cat >>$CONFIG_STATUS <<\_ACEOF
7157
 
for ac_config_target in $ac_config_targets
7158
 
do
7159
 
  case "$ac_config_target" in
7160
 
  # Handling of arguments.
7161
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in" ;;
7162
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7163
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7164
 
   { (exit 1); exit 1; }; };;
7165
 
  esac
7166
 
done
7167
 
 
7168
 
# If the user did not use the arguments to specify the items to instantiate,
7169
 
# then the envvar interface is used.  Set only those that are not.
7170
 
# We use the long form for the default assignment because of an extremely
7171
 
# bizarre bug on SunOS 4.1.3.
7172
 
if $ac_need_defaults; then
7173
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7174
 
fi
7175
 
 
7176
 
# Have a temporary directory for convenience.  Make it in the build tree
7177
 
# simply because there is no reason to put it here, and in addition,
7178
 
# creating and moving files from /tmp can sometimes cause problems.
7179
 
# Create a temporary directory, and hook for its removal unless debugging.
7180
 
$debug ||
7181
 
{
7182
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7183
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
7184
 
}
7185
 
 
7186
 
# Create a (secure) tmp directory for tmp files.
7187
 
 
7188
 
{
7189
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7190
 
  test -n "$tmp" && test -d "$tmp"
7191
 
}  ||
7192
 
{
7193
 
  tmp=./confstat$$-$RANDOM
7194
 
  (umask 077 && mkdir $tmp)
7195
 
} ||
7196
 
{
7197
 
   echo "$me: cannot create a temporary directory in ." >&2
7198
 
   { (exit 1); exit 1; }
7199
 
}
7200
 
 
7201
 
_ACEOF
7202
 
 
7203
 
cat >>$CONFIG_STATUS <<_ACEOF
7204
 
 
7205
 
#
7206
 
# CONFIG_FILES section.
7207
 
#
7208
 
 
7209
 
# No need to generate the scripts if there are no CONFIG_FILES.
7210
 
# This happens for instance when ./config.status config.h
7211
 
if test -n "\$CONFIG_FILES"; then
7212
 
  # Protect against being on the right side of a sed subst in config.status.
7213
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7214
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7215
 
s,@SHELL@,$SHELL,;t t
7216
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7217
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7218
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7219
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7220
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7221
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7222
 
s,@exec_prefix@,$exec_prefix,;t t
7223
 
s,@prefix@,$prefix,;t t
7224
 
s,@program_transform_name@,$program_transform_name,;t t
7225
 
s,@bindir@,$bindir,;t t
7226
 
s,@sbindir@,$sbindir,;t t
7227
 
s,@libexecdir@,$libexecdir,;t t
7228
 
s,@datadir@,$datadir,;t t
7229
 
s,@sysconfdir@,$sysconfdir,;t t
7230
 
s,@sharedstatedir@,$sharedstatedir,;t t
7231
 
s,@localstatedir@,$localstatedir,;t t
7232
 
s,@libdir@,$libdir,;t t
7233
 
s,@includedir@,$includedir,;t t
7234
 
s,@oldincludedir@,$oldincludedir,;t t
7235
 
s,@infodir@,$infodir,;t t
7236
 
s,@mandir@,$mandir,;t t
7237
 
s,@build_alias@,$build_alias,;t t
7238
 
s,@host_alias@,$host_alias,;t t
7239
 
s,@target_alias@,$target_alias,;t t
7240
 
s,@DEFS@,$DEFS,;t t
7241
 
s,@ECHO_C@,$ECHO_C,;t t
7242
 
s,@ECHO_N@,$ECHO_N,;t t
7243
 
s,@ECHO_T@,$ECHO_T,;t t
7244
 
s,@LIBS@,$LIBS,;t t
7245
 
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
7246
 
s,@CC@,$CC,;t t
7247
 
s,@CFLAGS@,$CFLAGS,;t t
7248
 
s,@LDFLAGS@,$LDFLAGS,;t t
7249
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
7250
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
7251
 
s,@EXEEXT@,$EXEEXT,;t t
7252
 
s,@OBJEXT@,$OBJEXT,;t t
7253
 
s,@HAVE_GCC@,$HAVE_GCC,;t t
7254
 
s,@CPP@,$CPP,;t t
7255
 
s,@LD@,$LD,;t t
7256
 
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
7257
 
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
7258
 
s,@KRB4_LIB@,$KRB4_LIB,;t t
7259
 
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
7260
 
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
7261
 
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
7262
 
s,@DES425_LIB@,$DES425_LIB,;t t
7263
 
s,@compile_et@,$compile_et,;t t
7264
 
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
7265
 
s,@SS_LIB@,$SS_LIB,;t t
7266
 
s,@SS_VERSION@,$SS_VERSION,;t t
7267
 
s,@DB_HEADER@,$DB_HEADER,;t t
7268
 
s,@DB_LIB@,$DB_LIB,;t t
7269
 
s,@DB_VERSION@,$DB_VERSION,;t t
7270
 
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
7271
 
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
7272
 
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
7273
 
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
7274
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7275
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7276
 
s,@MAINT@,$MAINT,;t t
7277
 
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
7278
 
s,@subdirs@,$subdirs,;t t
7279
 
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
7280
 
s,@build@,$build,;t t
7281
 
s,@build_cpu@,$build_cpu,;t t
7282
 
s,@build_vendor@,$build_vendor,;t t
7283
 
s,@build_os@,$build_os,;t t
7284
 
s,@host@,$host,;t t
7285
 
s,@host_cpu@,$host_cpu,;t t
7286
 
s,@host_vendor@,$host_vendor,;t t
7287
 
s,@host_os@,$host_os,;t t
7288
 
s,@krb5_cv_host@,$krb5_cv_host,;t t
7289
 
s,@acx_pthread_config@,$acx_pthread_config,;t t
7290
 
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
7291
 
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
7292
 
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
7293
 
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
7294
 
s,@DL_LIB@,$DL_LIB,;t t
7295
 
s,@EGREP@,$EGREP,;t t
7296
 
s,@OBJLISTS@,$OBJLISTS,;t t
7297
 
s,@STOBJEXT@,$STOBJEXT,;t t
7298
 
s,@SHOBJEXT@,$SHOBJEXT,;t t
7299
 
s,@PFOBJEXT@,$PFOBJEXT,;t t
7300
 
s,@PICFLAGS@,$PICFLAGS,;t t
7301
 
s,@PROFFLAGS@,$PROFFLAGS,;t t
7302
 
s,@LN_S@,$LN_S,;t t
7303
 
s,@RANLIB@,$RANLIB,;t t
7304
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7305
 
s,@ARCHIVE@,$ARCHIVE,;t t
7306
 
s,@ARADD@,$ARADD,;t t
7307
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7308
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7309
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7310
 
s,@AR@,$AR,;t t
7311
 
s,@PERL@,$PERL,;t t
7312
 
s,@LIBLIST@,$LIBLIST,;t t
7313
 
s,@LIBLINKS@,$LIBLINKS,;t t
7314
 
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
7315
 
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
7316
 
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
7317
 
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
7318
 
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
7319
 
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
7320
 
s,@STLIBEXT@,$STLIBEXT,;t t
7321
 
s,@SHLIBEXT@,$SHLIBEXT,;t t
7322
 
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
7323
 
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
7324
 
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
7325
 
s,@PFLIBEXT@,$PFLIBEXT,;t t
7326
 
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
7327
 
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
7328
 
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
7329
 
s,@LIBOBJS@,$LIBOBJS,;t t
7330
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7331
 
/@lib_frag@/r $lib_frag
7332
 
s,@lib_frag@,,;t t
7333
 
/@libobj_frag@/r $libobj_frag
7334
 
s,@libobj_frag@,,;t t
7335
 
/@libnover_frag@/r $libnover_frag
7336
 
s,@libnover_frag@,,;t t
7337
 
CEOF
7338
 
 
7339
 
_ACEOF
7340
 
 
7341
 
  cat >>$CONFIG_STATUS <<\_ACEOF
7342
 
  # Split the substitutions into bite-sized pieces for seds with
7343
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
7344
 
  ac_max_sed_lines=48
7345
 
  ac_sed_frag=1 # Number of current file.
7346
 
  ac_beg=1 # First line for current file.
7347
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
7348
 
  ac_more_lines=:
7349
 
  ac_sed_cmds=
7350
 
  while $ac_more_lines; do
7351
 
    if test $ac_beg -gt 1; then
7352
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7353
 
    else
7354
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7355
 
    fi
7356
 
    if test ! -s $tmp/subs.frag; then
7357
 
      ac_more_lines=false
7358
 
    else
7359
 
      # The purpose of the label and of the branching condition is to
7360
 
      # speed up the sed processing (if there are no `@' at all, there
7361
 
      # is no need to browse any of the substitutions).
7362
 
      # These are the two extra sed commands mentioned above.
7363
 
      (echo ':t
7364
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7365
 
      if test -z "$ac_sed_cmds"; then
7366
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7367
 
      else
7368
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7369
 
      fi
7370
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
7371
 
      ac_beg=$ac_end
7372
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
7373
 
    fi
7374
 
  done
7375
 
  if test -z "$ac_sed_cmds"; then
7376
 
    ac_sed_cmds=cat
7377
 
  fi
7378
 
fi # test -n "$CONFIG_FILES"
7379
 
 
7380
 
_ACEOF
7381
 
cat >>$CONFIG_STATUS <<\_ACEOF
7382
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7383
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7384
 
  case $ac_file in
7385
 
  - | *:- | *:-:* ) # input from stdin
7386
 
        cat >$tmp/stdin
7387
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7388
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7389
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7390
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7391
 
  * )   ac_file_in=$ac_file.in ;;
7392
 
  esac
7393
 
 
7394
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7395
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7396
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7397
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7398
 
         X"$ac_file" : 'X\(//\)$' \| \
7399
 
         X"$ac_file" : 'X\(/\)' \| \
7400
 
         .     : '\(.\)' 2>/dev/null ||
7401
 
echo X"$ac_file" |
7402
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7403
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7404
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7405
 
          /^X\(\/\).*/{ s//\1/; q; }
7406
 
          s/.*/./; q'`
7407
 
  { if $as_mkdir_p; then
7408
 
    mkdir -p "$ac_dir"
7409
 
  else
7410
 
    as_dir="$ac_dir"
7411
 
    as_dirs=
7412
 
    while test ! -d "$as_dir"; do
7413
 
      as_dirs="$as_dir $as_dirs"
7414
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7415
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7416
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7417
 
         X"$as_dir" : 'X\(//\)$' \| \
7418
 
         X"$as_dir" : 'X\(/\)' \| \
7419
 
         .     : '\(.\)' 2>/dev/null ||
7420
 
echo X"$as_dir" |
7421
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7422
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7423
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7424
 
          /^X\(\/\).*/{ s//\1/; q; }
7425
 
          s/.*/./; q'`
7426
 
    done
7427
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7428
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7429
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7430
 
   { (exit 1); exit 1; }; }; }
7431
 
 
7432
 
  ac_builddir=.
7433
 
 
7434
 
if test "$ac_dir" != .; then
7435
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7436
 
  # A "../" for each directory in $ac_dir_suffix.
7437
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7438
 
else
7439
 
  ac_dir_suffix= ac_top_builddir=
7440
 
fi
7441
 
 
7442
 
case $srcdir in
7443
 
  .)  # No --srcdir option.  We are building in place.
7444
 
    ac_srcdir=.
7445
 
    if test -z "$ac_top_builddir"; then
7446
 
       ac_top_srcdir=.
7447
 
    else
7448
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7449
 
    fi ;;
7450
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
7451
 
    ac_srcdir=$srcdir$ac_dir_suffix;
7452
 
    ac_top_srcdir=$srcdir ;;
7453
 
  *) # Relative path.
7454
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7455
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7456
 
esac
7457
 
 
7458
 
# Do not use `cd foo && pwd` to compute absolute paths, because
7459
 
# the directories may not exist.
7460
 
case `pwd` in
7461
 
.) ac_abs_builddir="$ac_dir";;
7462
 
*)
7463
 
  case "$ac_dir" in
7464
 
  .) ac_abs_builddir=`pwd`;;
7465
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7466
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7467
 
  esac;;
7468
 
esac
7469
 
case $ac_abs_builddir in
7470
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7471
 
*)
7472
 
  case ${ac_top_builddir}. in
7473
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7474
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7475
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7476
 
  esac;;
7477
 
esac
7478
 
case $ac_abs_builddir in
7479
 
.) ac_abs_srcdir=$ac_srcdir;;
7480
 
*)
7481
 
  case $ac_srcdir in
7482
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
7483
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7484
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7485
 
  esac;;
7486
 
esac
7487
 
case $ac_abs_builddir in
7488
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7489
 
*)
7490
 
  case $ac_top_srcdir in
7491
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7492
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7493
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7494
 
  esac;;
7495
 
esac
7496
 
 
7497
 
 
7498
 
  case $INSTALL in
7499
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7500
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7501
 
  esac
7502
 
 
7503
 
  if test x"$ac_file" != x-; then
7504
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7505
 
echo "$as_me: creating $ac_file" >&6;}
7506
 
    rm -f "$ac_file"
7507
 
  fi
7508
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7509
 
  # use $as_me), people would be surprised to read:
7510
 
  #    /* config.h.  Generated by config.status.  */
7511
 
  if test x"$ac_file" = x-; then
7512
 
    configure_input=
7513
 
  else
7514
 
    configure_input="$ac_file.  "
7515
 
  fi
7516
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
7517
 
                                     sed 's,.*/,,'` by configure."
7518
 
 
7519
 
  # First look for the input files in the build tree, otherwise in the
7520
 
  # src tree.
7521
 
  ac_file_inputs=`IFS=:
7522
 
    for f in $ac_file_in; do
7523
 
      case $f in
7524
 
      -) echo $tmp/stdin ;;
7525
 
      [\\/$]*)
7526
 
         # Absolute (can't be DOS-style, as IFS=:)
7527
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7528
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7529
 
   { (exit 1); exit 1; }; }
7530
 
         echo "$f";;
7531
 
      *) # Relative
7532
 
         if test -f "$f"; then
7533
 
           # Build tree
7534
 
           echo "$f"
7535
 
         elif test -f "$srcdir/$f"; then
7536
 
           # Source tree
7537
 
           echo "$srcdir/$f"
7538
 
         else
7539
 
           # /dev/null tree
7540
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7541
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7542
 
   { (exit 1); exit 1; }; }
7543
 
         fi;;
7544
 
      esac
7545
 
    done` || { (exit 1); exit 1; }
7546
 
_ACEOF
7547
 
cat >>$CONFIG_STATUS <<_ACEOF
7548
 
  sed "$ac_vpsub
7549
 
$extrasub
7550
 
_ACEOF
7551
 
cat >>$CONFIG_STATUS <<\_ACEOF
7552
 
:t
7553
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7554
 
s,@configure_input@,$configure_input,;t t
7555
 
s,@srcdir@,$ac_srcdir,;t t
7556
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7557
 
s,@top_srcdir@,$ac_top_srcdir,;t t
7558
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7559
 
s,@builddir@,$ac_builddir,;t t
7560
 
s,@abs_builddir@,$ac_abs_builddir,;t t
7561
 
s,@top_builddir@,$ac_top_builddir,;t t
7562
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7563
 
s,@INSTALL@,$ac_INSTALL,;t t
7564
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7565
 
  rm -f $tmp/stdin
7566
 
  if test x"$ac_file" != x-; then
7567
 
    mv $tmp/out $ac_file
7568
 
  else
7569
 
    cat $tmp/out
7570
 
    rm -f $tmp/out
7571
 
  fi
7572
 
 
7573
 
done
7574
 
_ACEOF
7575
 
 
7576
 
cat >>$CONFIG_STATUS <<\_ACEOF
7577
 
 
7578
 
{ (exit 0); exit 0; }
7579
 
_ACEOF
7580
 
chmod +x $CONFIG_STATUS
7581
 
ac_clean_files=$ac_clean_files_save
7582
 
 
7583
 
 
7584
 
# configure is writing to config.log, and then calls config.status.
7585
 
# config.status does its own redirection, appending to config.log.
7586
 
# Unfortunately, on DOS this fails, as config.log is still kept open
7587
 
# by configure, so config.status won't be able to write to it; its
7588
 
# output is simply discarded.  So we exec the FD to /dev/null,
7589
 
# effectively closing config.log, so it can be properly (re)opened and
7590
 
# appended to by config.status.  When coming back to configure, we
7591
 
# need to make the FD available again.
7592
 
if test "$no_create" != yes; then
7593
 
  ac_cs_success=:
7594
 
  ac_config_status_args=
7595
 
  test "$silent" = yes &&
7596
 
    ac_config_status_args="$ac_config_status_args --quiet"
7597
 
  exec 5>/dev/null
7598
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7599
 
  exec 5>>config.log
7600
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7601
 
  # would make configure fail if this is the last instruction.
7602
 
  $ac_cs_success || { (exit 1); exit 1; }
7603
 
fi
7604