~ubuntu-branches/ubuntu/hardy/freeradius/hardy-proposed

« back to all changes in this revision

Viewing changes to src/modules/rlm_krb5/configure

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-12-16 20:45:11 UTC
  • mfrom: (3.1.10 feisty)
  • Revision ID: james.westby@ubuntu.com-20061216204511-3pbbsu4s8jtehsor
Tags: 1.1.3-3
Fix POSIX compliance problem in init script.  Closes: #403384. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
 
2
# From configure.in Revision: 1.7 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
4
# Generated by GNU Autoconf 2.59.
6
5
#
 
6
# Copyright (C) 2003 Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
DUALCASE=1; export DUALCASE # for MKS sh
 
24
 
 
25
# Support unset when possible.
 
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
27
  as_unset=unset
 
28
else
 
29
  as_unset=false
 
30
fi
 
31
 
 
32
 
 
33
# Work around bugs in pre-3.0 UWIN ksh.
 
34
$as_unset ENV MAIL MAILPATH
 
35
PS1='$ '
 
36
PS2='> '
 
37
PS4='+ '
 
38
 
 
39
# NLS nuisances.
 
40
for as_var in \
 
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43
  LC_TELEPHONE LC_TIME
 
44
do
 
45
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
    eval $as_var=C; export $as_var
 
47
  else
 
48
    $as_unset $as_var
 
49
  fi
 
50
done
 
51
 
 
52
# Required to use basename.
 
53
if expr a : '\(a\)' >/dev/null 2>&1; then
 
54
  as_expr=expr
 
55
else
 
56
  as_expr=false
 
57
fi
 
58
 
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
60
  as_basename=basename
 
61
else
 
62
  as_basename=false
 
63
fi
 
64
 
 
65
 
 
66
# Name of the executable.
 
67
as_me=`$as_basename "$0" ||
 
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
69
         X"$0" : 'X\(//\)$' \| \
 
70
         X"$0" : 'X\(/\)$' \| \
 
71
         .     : '\(.\)' 2>/dev/null ||
 
72
echo X/"$0" |
 
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
75
          /^X\/\(\/\).*/{ s//\1/; q; }
 
76
          s/.*/./; q'`
 
77
 
 
78
 
 
79
# PATH needs CR, and LINENO needs CR and PATH.
 
80
# Avoid depending upon Character Ranges.
 
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
84
as_cr_digits='0123456789'
 
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
86
 
 
87
# The user is always right.
 
88
if test "${PATH_SEPARATOR+set}" != set; then
 
89
  echo "#! /bin/sh" >conf$$.sh
 
90
  echo  "exit 0"   >>conf$$.sh
 
91
  chmod +x conf$$.sh
 
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
93
    PATH_SEPARATOR=';'
 
94
  else
 
95
    PATH_SEPARATOR=:
 
96
  fi
 
97
  rm -f conf$$.sh
 
98
fi
 
99
 
 
100
 
 
101
  as_lineno_1=$LINENO
 
102
  as_lineno_2=$LINENO
 
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
106
  # Find who we are.  Look in the path if we contain no path at all
 
107
  # relative or not.
 
108
  case $0 in
 
109
    *[\\/]* ) as_myself=$0 ;;
 
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
111
for as_dir in $PATH
 
112
do
 
113
  IFS=$as_save_IFS
 
114
  test -z "$as_dir" && as_dir=.
 
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
116
done
 
117
 
 
118
       ;;
 
119
  esac
 
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
121
  # in which case we are not to be found in the path.
 
122
  if test "x$as_myself" = x; then
 
123
    as_myself=$0
 
124
  fi
 
125
  if test ! -f "$as_myself"; then
 
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
127
   { (exit 1); exit 1; }; }
 
128
  fi
 
129
  case $CONFIG_SHELL in
 
130
  '')
 
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
do
 
134
  IFS=$as_save_IFS
 
135
  test -z "$as_dir" && as_dir=.
 
136
  for as_base in sh bash ksh sh5; do
 
137
         case $as_dir in
 
138
         /*)
 
139
           if ("$as_dir/$as_base" -c '
 
140
  as_lineno_1=$LINENO
 
141
  as_lineno_2=$LINENO
 
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
147
             CONFIG_SHELL=$as_dir/$as_base
 
148
             export CONFIG_SHELL
 
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
150
           fi;;
 
151
         esac
 
152
       done
 
153
done
 
154
;;
 
155
  esac
 
156
 
 
157
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
159
  # line-number line before each line; the second 'sed' does the real
 
160
  # work.  The second script uses 'N' to pair each line-number line
 
161
  # with the numbered line, and appends trailing '-' during
 
162
  # substitution so that $LINENO is not a special case at line end.
 
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
165
  sed '=' <$as_myself |
 
166
    sed '
 
167
      N
 
168
      s,$,-,
 
169
      : loop
 
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
171
      t loop
 
172
      s,-$,,
 
173
      s,^['$as_cr_digits']*\n,,
 
174
    ' >$as_me.lineno &&
 
175
  chmod +x $as_me.lineno ||
 
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
177
   { (exit 1); exit 1; }; }
 
178
 
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
 
180
  # (the dirname of $[0] is not the place where we might find the
 
181
  # original and so on.  Autoconf is especially sensible to this).
 
182
  . ./$as_me.lineno
 
183
  # Exit status is that of the last command.
 
184
  exit
 
185
}
 
186
 
 
187
 
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
189
  *c*,-n*) ECHO_N= ECHO_C='
 
190
' ECHO_T='      ' ;;
 
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
193
esac
 
194
 
 
195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
196
  as_expr=expr
 
197
else
 
198
  as_expr=false
 
199
fi
 
200
 
 
201
rm -f conf$$ conf$$.exe conf$$.file
 
202
echo >conf$$.file
 
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
204
  # We could just check for DJGPP; but this test a) works b) is more generic
 
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
206
  if test -f conf$$.exe; then
 
207
    # Don't use ln at all; we don't have any links
 
208
    as_ln_s='cp -p'
 
209
  else
 
210
    as_ln_s='ln -s'
 
211
  fi
 
212
elif ln conf$$.file conf$$ 2>/dev/null; then
 
213
  as_ln_s=ln
 
214
else
 
215
  as_ln_s='cp -p'
 
216
fi
 
217
rm -f conf$$ conf$$.exe conf$$.file
 
218
 
 
219
if mkdir -p . 2>/dev/null; then
 
220
  as_mkdir_p=:
 
221
else
 
222
  test -d ./-p && rmdir ./-p
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
# Name of the host.
 
246
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
247
# so uname gets run too.
 
248
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
249
 
 
250
exec 6>&1
 
251
 
 
252
#
 
253
# Initializations.
 
254
#
12
255
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-rlm-krb5-lib-dir=DIR       Directory for krb5 library files []"
16
 
ac_help="$ac_help
17
 
  --with-rlm-krb5-include-dir=DIR   Directory for krb5 include files []"
18
 
ac_help="$ac_help
19
 
  --enable-heimdal-krb5             Enable if you have heimdal krb5"
 
256
ac_config_libobj_dir=.
 
257
cross_compiling=no
 
258
subdirs=
 
259
MFLAGS=
 
260
MAKEFLAGS=
 
261
SHELL=${CONFIG_SHELL-/bin/sh}
 
262
 
 
263
# Maximum number of lines to put in a shell here document.
 
264
# This variable seems obsolete.  It should probably be removed, and
 
265
# only ac_max_sed_lines should be used.
 
266
: ${ac_max_here_lines=38}
 
267
 
 
268
# Identity of this package.
 
269
PACKAGE_NAME=
 
270
PACKAGE_TARNAME=
 
271
PACKAGE_VERSION=
 
272
PACKAGE_STRING=
 
273
PACKAGE_BUGREPORT=
 
274
 
 
275
ac_unique_file="rlm_krb5.c"
 
276
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP krb5_cflags krb5_ldflags targetname LIBOBJS LTLIBOBJS'
 
277
ac_subst_files=''
20
278
 
21
279
# Initialize some variables set by options.
 
280
ac_init_help=
 
281
ac_init_version=false
22
282
# The variables have the same names as the options, with
23
283
# dashes changed to underlines.
24
 
build=NONE
25
 
cache_file=./config.cache
 
284
cache_file=/dev/null
26
285
exec_prefix=NONE
27
 
host=NONE
28
286
no_create=
29
 
nonopt=NONE
30
287
no_recursion=
31
288
prefix=NONE
32
289
program_prefix=NONE
35
292
silent=
36
293
site=
37
294
srcdir=
38
 
target=NONE
39
295
verbose=
40
296
x_includes=NONE
41
297
x_libraries=NONE
 
298
 
 
299
# Installation directory options.
 
300
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
301
# and all the variables that are supposed to be based on exec_prefix
 
302
# by default will actually change.
 
303
# Use braces instead of parens because sh, perl, etc. also accept them.
42
304
bindir='${exec_prefix}/bin'
43
305
sbindir='${exec_prefix}/sbin'
44
306
libexecdir='${exec_prefix}/libexec'
52
314
infodir='${prefix}/info'
53
315
mandir='${prefix}/man'
54
316
 
55
 
# Initialize some other variables.
56
 
subdirs=
57
 
MFLAGS= MAKEFLAGS=
58
 
SHELL=${CONFIG_SHELL-/bin/sh}
59
 
# Maximum number of lines to put in a shell here document.
60
 
ac_max_here_lines=12
61
 
 
62
317
ac_prev=
63
318
for ac_option
64
319
do
65
 
 
66
320
  # If the previous option needs an argument, assign it.
67
321
  if test -n "$ac_prev"; then
68
322
    eval "$ac_prev=\$ac_option"
70
324
    continue
71
325
  fi
72
326
 
73
 
  case "$ac_option" in
74
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75
 
  *) ac_optarg= ;;
76
 
  esac
 
327
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
77
328
 
78
329
  # Accept the important Cygnus configure options, so we can diagnose typos.
79
330
 
80
 
  case "$ac_option" in
 
331
  case $ac_option in
81
332
 
82
333
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
83
334
    ac_prev=bindir ;;
84
335
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85
 
    bindir="$ac_optarg" ;;
 
336
    bindir=$ac_optarg ;;
86
337
 
87
338
  -build | --build | --buil | --bui | --bu)
88
 
    ac_prev=build ;;
 
339
    ac_prev=build_alias ;;
89
340
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90
 
    build="$ac_optarg" ;;
 
341
    build_alias=$ac_optarg ;;
91
342
 
92
343
  -cache-file | --cache-file | --cache-fil | --cache-fi \
93
344
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94
345
    ac_prev=cache_file ;;
95
346
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96
347
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97
 
    cache_file="$ac_optarg" ;;
 
348
    cache_file=$ac_optarg ;;
 
349
 
 
350
  --config-cache | -C)
 
351
    cache_file=config.cache ;;
98
352
 
99
353
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100
354
    ac_prev=datadir ;;
101
355
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102
356
  | --da=*)
103
 
    datadir="$ac_optarg" ;;
 
357
    datadir=$ac_optarg ;;
104
358
 
105
359
  -disable-* | --disable-*)
106
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
360
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
107
361
    # Reject names that are not valid shell variable names.
108
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110
 
    fi
111
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112
 
    eval "enable_${ac_feature}=no" ;;
 
362
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
363
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
364
   { (exit 1); exit 1; }; }
 
365
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
366
    eval "enable_$ac_feature=no" ;;
113
367
 
114
368
  -enable-* | --enable-*)
115
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
369
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
116
370
    # Reject names that are not valid shell variable names.
117
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119
 
    fi
120
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121
 
    case "$ac_option" in
122
 
      *=*) ;;
 
371
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
372
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
373
   { (exit 1); exit 1; }; }
 
374
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
375
    case $ac_option in
 
376
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
123
377
      *) ac_optarg=yes ;;
124
378
    esac
125
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
379
    eval "enable_$ac_feature='$ac_optarg'" ;;
126
380
 
127
381
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128
382
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
385
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132
386
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133
387
  | --exec=* | --exe=* | --ex=*)
134
 
    exec_prefix="$ac_optarg" ;;
 
388
    exec_prefix=$ac_optarg ;;
135
389
 
136
390
  -gas | --gas | --ga | --g)
137
391
    # Obsolete; use --with-gas.
138
392
    with_gas=yes ;;
139
393
 
140
 
  -help | --help | --hel | --he)
141
 
    # Omit some internal or obsolete options to make the list less imposing.
142
 
    # This message is too long to be a string in the A/UX 3.1 sh.
143
 
    cat << EOF
144
 
Usage: configure [options] [host]
145
 
Options: [defaults in brackets after descriptions]
146
 
Configuration:
147
 
  --cache-file=FILE       cache test results in FILE
148
 
  --help                  print this message
149
 
  --no-create             do not create output files
150
 
  --quiet, --silent       do not print \`checking...' messages
151
 
  --version               print the version of autoconf that created configure
152
 
Directory and file names:
153
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
154
 
                          [$ac_default_prefix]
155
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
156
 
                          [same as prefix]
157
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
158
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
159
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
160
 
  --datadir=DIR           read-only architecture-independent data in DIR
161
 
                          [PREFIX/share]
162
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
163
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
164
 
                          [PREFIX/com]
165
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
166
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
167
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
168
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
169
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
170
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
171
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
172
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
173
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
174
 
  --program-transform-name=PROGRAM
175
 
                          run sed PROGRAM on installed program names
176
 
EOF
177
 
    cat << EOF
178
 
Host type:
179
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
180
 
  --host=HOST             configure for HOST [guessed]
181
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
182
 
Features and packages:
183
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
184
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
185
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
186
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
187
 
  --x-includes=DIR        X include files are in DIR
188
 
  --x-libraries=DIR       X library files are in DIR
189
 
EOF
190
 
    if test -n "$ac_help"; then
191
 
      echo "--enable and --with options recognized:$ac_help"
192
 
    fi
193
 
    exit 0 ;;
 
394
  -help | --help | --hel | --he | -h)
 
395
    ac_init_help=long ;;
 
396
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
397
    ac_init_help=recursive ;;
 
398
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
399
    ac_init_help=short ;;
194
400
 
195
401
  -host | --host | --hos | --ho)
196
 
    ac_prev=host ;;
 
402
    ac_prev=host_alias ;;
197
403
  -host=* | --host=* | --hos=* | --ho=*)
198
 
    host="$ac_optarg" ;;
 
404
    host_alias=$ac_optarg ;;
199
405
 
200
406
  -includedir | --includedir | --includedi | --included | --include \
201
407
  | --includ | --inclu | --incl | --inc)
202
408
    ac_prev=includedir ;;
203
409
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204
410
  | --includ=* | --inclu=* | --incl=* | --inc=*)
205
 
    includedir="$ac_optarg" ;;
 
411
    includedir=$ac_optarg ;;
206
412
 
207
413
  -infodir | --infodir | --infodi | --infod | --info | --inf)
208
414
    ac_prev=infodir ;;
209
415
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210
 
    infodir="$ac_optarg" ;;
 
416
    infodir=$ac_optarg ;;
211
417
 
212
418
  -libdir | --libdir | --libdi | --libd)
213
419
    ac_prev=libdir ;;
214
420
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
215
 
    libdir="$ac_optarg" ;;
 
421
    libdir=$ac_optarg ;;
216
422
 
217
423
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218
424
  | --libexe | --libex | --libe)
219
425
    ac_prev=libexecdir ;;
220
426
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221
427
  | --libexe=* | --libex=* | --libe=*)
222
 
    libexecdir="$ac_optarg" ;;
 
428
    libexecdir=$ac_optarg ;;
223
429
 
224
430
  -localstatedir | --localstatedir | --localstatedi | --localstated \
225
431
  | --localstate | --localstat | --localsta | --localst \
228
434
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229
435
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230
436
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231
 
    localstatedir="$ac_optarg" ;;
 
437
    localstatedir=$ac_optarg ;;
232
438
 
233
439
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234
440
    ac_prev=mandir ;;
235
441
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236
 
    mandir="$ac_optarg" ;;
 
442
    mandir=$ac_optarg ;;
237
443
 
238
444
  -nfp | --nfp | --nf)
239
445
    # Obsolete; use --without-fp.
240
446
    with_fp=no ;;
241
447
 
242
448
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243
 
  | --no-cr | --no-c)
 
449
  | --no-cr | --no-c | -n)
244
450
    no_create=yes ;;
245
451
 
246
452
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254
460
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255
461
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256
462
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257
 
    oldincludedir="$ac_optarg" ;;
 
463
    oldincludedir=$ac_optarg ;;
258
464
 
259
465
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260
466
    ac_prev=prefix ;;
261
467
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262
 
    prefix="$ac_optarg" ;;
 
468
    prefix=$ac_optarg ;;
263
469
 
264
470
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
265
471
  | --program-pre | --program-pr | --program-p)
266
472
    ac_prev=program_prefix ;;
267
473
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
268
474
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269
 
    program_prefix="$ac_optarg" ;;
 
475
    program_prefix=$ac_optarg ;;
270
476
 
271
477
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
272
478
  | --program-suf | --program-su | --program-s)
273
479
    ac_prev=program_suffix ;;
274
480
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
275
481
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276
 
    program_suffix="$ac_optarg" ;;
 
482
    program_suffix=$ac_optarg ;;
277
483
 
278
484
  -program-transform-name | --program-transform-name \
279
485
  | --program-transform-nam | --program-transform-na \
290
496
  | --program-transfo=* | --program-transf=* \
291
497
  | --program-trans=* | --program-tran=* \
292
498
  | --progr-tra=* | --program-tr=* | --program-t=*)
293
 
    program_transform_name="$ac_optarg" ;;
 
499
    program_transform_name=$ac_optarg ;;
294
500
 
295
501
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296
502
  | -silent | --silent | --silen | --sile | --sil)
300
506
    ac_prev=sbindir ;;
301
507
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302
508
  | --sbi=* | --sb=*)
303
 
    sbindir="$ac_optarg" ;;
 
509
    sbindir=$ac_optarg ;;
304
510
 
305
511
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
306
512
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311
517
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312
518
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313
519
  | --sha=* | --sh=*)
314
 
    sharedstatedir="$ac_optarg" ;;
 
520
    sharedstatedir=$ac_optarg ;;
315
521
 
316
522
  -site | --site | --sit)
317
523
    ac_prev=site ;;
318
524
  -site=* | --site=* | --sit=*)
319
 
    site="$ac_optarg" ;;
 
525
    site=$ac_optarg ;;
320
526
 
321
527
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322
528
    ac_prev=srcdir ;;
323
529
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324
 
    srcdir="$ac_optarg" ;;
 
530
    srcdir=$ac_optarg ;;
325
531
 
326
532
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327
533
  | --syscon | --sysco | --sysc | --sys | --sy)
328
534
    ac_prev=sysconfdir ;;
329
535
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330
536
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331
 
    sysconfdir="$ac_optarg" ;;
 
537
    sysconfdir=$ac_optarg ;;
332
538
 
333
539
  -target | --target | --targe | --targ | --tar | --ta | --t)
334
 
    ac_prev=target ;;
 
540
    ac_prev=target_alias ;;
335
541
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336
 
    target="$ac_optarg" ;;
 
542
    target_alias=$ac_optarg ;;
337
543
 
338
544
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
339
545
    verbose=yes ;;
340
546
 
341
 
  -version | --version | --versio | --versi | --vers)
342
 
    echo "configure generated by autoconf version 2.13"
343
 
    exit 0 ;;
 
547
  -version | --version | --versio | --versi | --vers | -V)
 
548
    ac_init_version=: ;;
344
549
 
345
550
  -with-* | --with-*)
346
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
551
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
347
552
    # Reject names that are not valid shell variable names.
348
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350
 
    fi
 
553
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
555
   { (exit 1); exit 1; }; }
351
556
    ac_package=`echo $ac_package| sed 's/-/_/g'`
352
 
    case "$ac_option" in
353
 
      *=*) ;;
 
557
    case $ac_option in
 
558
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
354
559
      *) ac_optarg=yes ;;
355
560
    esac
356
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
561
    eval "with_$ac_package='$ac_optarg'" ;;
357
562
 
358
563
  -without-* | --without-*)
359
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
564
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
360
565
    # Reject names that are not valid shell variable names.
361
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363
 
    fi
364
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
365
 
    eval "with_${ac_package}=no" ;;
 
566
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
567
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
568
   { (exit 1); exit 1; }; }
 
569
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
570
    eval "with_$ac_package=no" ;;
366
571
 
367
572
  --x)
368
573
    # Obsolete; use --with-x.
373
578
    ac_prev=x_includes ;;
374
579
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375
580
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376
 
    x_includes="$ac_optarg" ;;
 
581
    x_includes=$ac_optarg ;;
377
582
 
378
583
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
379
584
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380
585
    ac_prev=x_libraries ;;
381
586
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382
587
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383
 
    x_libraries="$ac_optarg" ;;
 
588
    x_libraries=$ac_optarg ;;
384
589
 
385
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
590
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
591
Try \`$0 --help' for more information." >&2
 
592
   { (exit 1); exit 1; }; }
386
593
    ;;
387
594
 
 
595
  *=*)
 
596
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
597
    # Reject names that are not valid shell variable names.
 
598
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
599
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
600
   { (exit 1); exit 1; }; }
 
601
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
602
    eval "$ac_envvar='$ac_optarg'"
 
603
    export $ac_envvar ;;
 
604
 
388
605
  *)
389
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
391
 
    fi
392
 
    if test "x$nonopt" != xNONE; then
393
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394
 
    fi
395
 
    nonopt="$ac_option"
 
606
    # FIXME: should be removed in autoconf 3.0.
 
607
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
608
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
609
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
610
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
396
611
    ;;
397
612
 
398
613
  esac
399
614
done
400
615
 
401
616
if test -n "$ac_prev"; then
402
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403
 
fi
404
 
 
405
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
 
 
407
 
# File descriptor usage:
408
 
# 0 standard input
409
 
# 1 file creation
410
 
# 2 errors and warnings
411
 
# 3 some systems may open it to /dev/tty
412
 
# 4 used on the Kubota Titan
413
 
# 6 checking for... messages and results
414
 
# 5 compiler messages saved in config.log
415
 
if test "$silent" = yes; then
416
 
  exec 6>/dev/null
417
 
else
418
 
  exec 6>&1
419
 
fi
420
 
exec 5>./config.log
421
 
 
422
 
echo "\
423
 
This file contains any messages produced by compilers while
424
 
running configure, to aid debugging if configure makes a mistake.
425
 
" 1>&5
426
 
 
427
 
# Strip out --no-create and --no-recursion so they do not pile up.
428
 
# Also quote any args containing shell metacharacters.
429
 
ac_configure_args=
430
 
for ac_arg
431
 
do
432
 
  case "$ac_arg" in
433
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434
 
  | --no-cr | --no-c) ;;
435
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440
 
  esac
441
 
done
442
 
 
443
 
# NLS nuisances.
444
 
# Only set these to C if already set.  These must not be set unconditionally
445
 
# because not all systems understand e.g. LANG=C (notably SCO).
446
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447
 
# Non-C LC_CTYPE values break the ctype check.
448
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
449
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
452
 
 
453
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
454
 
rm -rf conftest* confdefs.h
455
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456
 
echo > confdefs.h
457
 
 
458
 
# A filename unique to this package, relative to the directory that
459
 
# configure is in, which we can look for to find out if srcdir is correct.
460
 
ac_unique_file=rlm_krb5.c
 
617
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
618
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
619
   { (exit 1); exit 1; }; }
 
620
fi
 
621
 
 
622
# Be sure to have absolute paths.
 
623
for ac_var in exec_prefix prefix
 
624
do
 
625
  eval ac_val=$`echo $ac_var`
 
626
  case $ac_val in
 
627
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
628
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
629
   { (exit 1); exit 1; }; };;
 
630
  esac
 
631
done
 
632
 
 
633
# Be sure to have absolute paths.
 
634
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
635
              localstatedir libdir includedir oldincludedir infodir mandir
 
636
do
 
637
  eval ac_val=$`echo $ac_var`
 
638
  case $ac_val in
 
639
    [\\/$]* | ?:[\\/]* ) ;;
 
640
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
641
   { (exit 1); exit 1; }; };;
 
642
  esac
 
643
done
 
644
 
 
645
# There might be people who depend on the old broken behavior: `$host'
 
646
# used to hold the argument of --host etc.
 
647
# FIXME: To remove some day.
 
648
build=$build_alias
 
649
host=$host_alias
 
650
target=$target_alias
 
651
 
 
652
# FIXME: To remove some day.
 
653
if test "x$host_alias" != x; then
 
654
  if test "x$build_alias" = x; then
 
655
    cross_compiling=maybe
 
656
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
657
    If a cross compiler is detected then cross compile mode will be used." >&2
 
658
  elif test "x$build_alias" != "x$host_alias"; then
 
659
    cross_compiling=yes
 
660
  fi
 
661
fi
 
662
 
 
663
ac_tool_prefix=
 
664
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
665
 
 
666
test "$silent" = yes && exec 6>/dev/null
 
667
 
461
668
 
462
669
# Find the source files, if location was not specified.
463
670
if test -z "$srcdir"; then
464
671
  ac_srcdir_defaulted=yes
465
672
  # Try the directory containing this script, then its parent.
466
 
  ac_prog=$0
467
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
673
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
674
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
675
         X"$0" : 'X\(//\)[^/]' \| \
 
676
         X"$0" : 'X\(//\)$' \| \
 
677
         X"$0" : 'X\(/\)' \| \
 
678
         .     : '\(.\)' 2>/dev/null ||
 
679
echo X"$0" |
 
680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
681
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
682
          /^X\(\/\/\)$/{ s//\1/; q; }
 
683
          /^X\(\/\).*/{ s//\1/; q; }
 
684
          s/.*/./; q'`
469
685
  srcdir=$ac_confdir
470
686
  if test ! -r $srcdir/$ac_unique_file; then
471
687
    srcdir=..
475
691
fi
476
692
if test ! -r $srcdir/$ac_unique_file; then
477
693
  if test "$ac_srcdir_defaulted" = yes; then
478
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
694
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
695
   { (exit 1); exit 1; }; }
479
696
  else
480
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
697
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
698
   { (exit 1); exit 1; }; }
481
699
  fi
482
700
fi
483
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
 
 
 
701
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
702
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
703
   { (exit 1); exit 1; }; }
 
704
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
705
ac_env_build_alias_set=${build_alias+set}
 
706
ac_env_build_alias_value=$build_alias
 
707
ac_cv_env_build_alias_set=${build_alias+set}
 
708
ac_cv_env_build_alias_value=$build_alias
 
709
ac_env_host_alias_set=${host_alias+set}
 
710
ac_env_host_alias_value=$host_alias
 
711
ac_cv_env_host_alias_set=${host_alias+set}
 
712
ac_cv_env_host_alias_value=$host_alias
 
713
ac_env_target_alias_set=${target_alias+set}
 
714
ac_env_target_alias_value=$target_alias
 
715
ac_cv_env_target_alias_set=${target_alias+set}
 
716
ac_cv_env_target_alias_value=$target_alias
 
717
ac_env_CC_set=${CC+set}
 
718
ac_env_CC_value=$CC
 
719
ac_cv_env_CC_set=${CC+set}
 
720
ac_cv_env_CC_value=$CC
 
721
ac_env_CFLAGS_set=${CFLAGS+set}
 
722
ac_env_CFLAGS_value=$CFLAGS
 
723
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
724
ac_cv_env_CFLAGS_value=$CFLAGS
 
725
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
726
ac_env_LDFLAGS_value=$LDFLAGS
 
727
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
728
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
729
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
730
ac_env_CPPFLAGS_value=$CPPFLAGS
 
731
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
732
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
733
ac_env_CPP_set=${CPP+set}
 
734
ac_env_CPP_value=$CPP
 
735
ac_cv_env_CPP_set=${CPP+set}
 
736
ac_cv_env_CPP_value=$CPP
 
737
 
 
738
#
 
739
# Report the --help message.
 
740
#
 
741
if test "$ac_init_help" = "long"; then
 
742
  # Omit some internal or obsolete options to make the list less imposing.
 
743
  # This message is too long to be a string in the A/UX 3.1 sh.
 
744
  cat <<_ACEOF
 
745
\`configure' configures this package to adapt to many kinds of systems.
 
746
 
 
747
Usage: $0 [OPTION]... [VAR=VALUE]...
 
748
 
 
749
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
750
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
751
 
 
752
Defaults for the options are specified in brackets.
 
753
 
 
754
Configuration:
 
755
  -h, --help              display this help and exit
 
756
      --help=short        display options specific to this package
 
757
      --help=recursive    display the short help of all the included packages
 
758
  -V, --version           display version information and exit
 
759
  -q, --quiet, --silent   do not print \`checking...' messages
 
760
      --cache-file=FILE   cache test results in FILE [disabled]
 
761
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
762
  -n, --no-create         do not create output files
 
763
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
764
 
 
765
_ACEOF
 
766
 
 
767
  cat <<_ACEOF
 
768
Installation directories:
 
769
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
770
                          [$ac_default_prefix]
 
771
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
772
                          [PREFIX]
 
773
 
 
774
By default, \`make install' will install all the files in
 
775
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
776
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
777
for instance \`--prefix=\$HOME'.
 
778
 
 
779
For better control, use the options below.
 
780
 
 
781
Fine tuning of the installation directories:
 
782
  --bindir=DIR           user executables [EPREFIX/bin]
 
783
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
784
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
785
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
786
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
787
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
788
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
789
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
790
  --includedir=DIR       C header files [PREFIX/include]
 
791
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
792
  --infodir=DIR          info documentation [PREFIX/info]
 
793
  --mandir=DIR           man documentation [PREFIX/man]
 
794
_ACEOF
 
795
 
 
796
  cat <<\_ACEOF
 
797
_ACEOF
 
798
fi
 
799
 
 
800
if test -n "$ac_init_help"; then
 
801
 
 
802
  cat <<\_ACEOF
 
803
 
 
804
Optional Features:
 
805
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
806
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
807
  --enable-heimdal-krb5             Enable if you have heimdal krb5
 
808
 
 
809
Optional Packages:
 
810
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
811
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
812
  --with-rlm-krb5-lib-dir=DIR       Directory for krb5 library files
 
813
  --with-rlm-krb5-include-dir=DIR   Directory for krb5 include files
 
814
 
 
815
Some influential environment variables:
 
816
  CC          C compiler command
 
817
  CFLAGS      C compiler flags
 
818
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
819
              nonstandard directory <lib dir>
 
820
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
821
              headers in a nonstandard directory <include dir>
 
822
  CPP         C preprocessor
 
823
 
 
824
Use these variables to override the choices made by `configure' or to help
 
825
it to find libraries and programs with nonstandard names/locations.
 
826
 
 
827
_ACEOF
 
828
fi
 
829
 
 
830
if test "$ac_init_help" = "recursive"; then
 
831
  # If there are subdirs, report their specific --help.
 
832
  ac_popdir=`pwd`
 
833
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
834
    test -d $ac_dir || continue
 
835
    ac_builddir=.
 
836
 
 
837
if test "$ac_dir" != .; then
 
838
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
839
  # A "../" for each directory in $ac_dir_suffix.
 
840
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
841
else
 
842
  ac_dir_suffix= ac_top_builddir=
 
843
fi
 
844
 
 
845
case $srcdir in
 
846
  .)  # No --srcdir option.  We are building in place.
 
847
    ac_srcdir=.
 
848
    if test -z "$ac_top_builddir"; then
 
849
       ac_top_srcdir=.
 
850
    else
 
851
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
852
    fi ;;
 
853
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
854
    ac_srcdir=$srcdir$ac_dir_suffix;
 
855
    ac_top_srcdir=$srcdir ;;
 
856
  *) # Relative path.
 
857
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
858
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
859
esac
 
860
 
 
861
# Do not use `cd foo && pwd` to compute absolute paths, because
 
862
# the directories may not exist.
 
863
case `pwd` in
 
864
.) ac_abs_builddir="$ac_dir";;
 
865
*)
 
866
  case "$ac_dir" in
 
867
  .) ac_abs_builddir=`pwd`;;
 
868
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
869
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
870
  esac;;
 
871
esac
 
872
case $ac_abs_builddir in
 
873
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
874
*)
 
875
  case ${ac_top_builddir}. in
 
876
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
877
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
878
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
879
  esac;;
 
880
esac
 
881
case $ac_abs_builddir in
 
882
.) ac_abs_srcdir=$ac_srcdir;;
 
883
*)
 
884
  case $ac_srcdir in
 
885
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
886
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
887
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
888
  esac;;
 
889
esac
 
890
case $ac_abs_builddir in
 
891
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
892
*)
 
893
  case $ac_top_srcdir in
 
894
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
895
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
896
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
897
  esac;;
 
898
esac
 
899
 
 
900
    cd $ac_dir
 
901
    # Check for guested configure; otherwise get Cygnus style configure.
 
902
    if test -f $ac_srcdir/configure.gnu; then
 
903
      echo
 
904
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
905
    elif test -f $ac_srcdir/configure; then
 
906
      echo
 
907
      $SHELL $ac_srcdir/configure  --help=recursive
 
908
    elif test -f $ac_srcdir/configure.ac ||
 
909
           test -f $ac_srcdir/configure.in; then
 
910
      echo
 
911
      $ac_configure --help
 
912
    else
 
913
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
914
    fi
 
915
    cd $ac_popdir
 
916
  done
 
917
fi
 
918
 
 
919
test -n "$ac_init_help" && exit 0
 
920
if $ac_init_version; then
 
921
  cat <<\_ACEOF
 
922
 
 
923
Copyright (C) 2003 Free Software Foundation, Inc.
 
924
This configure script is free software; the Free Software Foundation
 
925
gives unlimited permission to copy, distribute and modify it.
 
926
_ACEOF
 
927
  exit 0
 
928
fi
 
929
exec 5>config.log
 
930
cat >&5 <<_ACEOF
 
931
This file contains any messages produced by compilers while
 
932
running configure, to aid debugging if configure makes a mistake.
 
933
 
 
934
It was created by $as_me, which was
 
935
generated by GNU Autoconf 2.59.  Invocation command line was
 
936
 
 
937
  $ $0 $@
 
938
 
 
939
_ACEOF
 
940
{
 
941
cat <<_ASUNAME
 
942
## --------- ##
 
943
## Platform. ##
 
944
## --------- ##
 
945
 
 
946
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
947
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
948
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
949
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
950
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
951
 
 
952
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
953
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
954
 
 
955
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
956
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
957
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
958
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
959
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
960
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
961
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
962
 
 
963
_ASUNAME
 
964
 
 
965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
966
for as_dir in $PATH
 
967
do
 
968
  IFS=$as_save_IFS
 
969
  test -z "$as_dir" && as_dir=.
 
970
  echo "PATH: $as_dir"
 
971
done
 
972
 
 
973
} >&5
 
974
 
 
975
cat >&5 <<_ACEOF
 
976
 
 
977
 
 
978
## ----------- ##
 
979
## Core tests. ##
 
980
## ----------- ##
 
981
 
 
982
_ACEOF
 
983
 
 
984
 
 
985
# Keep a trace of the command line.
 
986
# Strip out --no-create and --no-recursion so they do not pile up.
 
987
# Strip out --silent because we don't want to record it for future runs.
 
988
# Also quote any args containing shell meta-characters.
 
989
# Make two passes to allow for proper duplicate-argument suppression.
 
990
ac_configure_args=
 
991
ac_configure_args0=
 
992
ac_configure_args1=
 
993
ac_sep=
 
994
ac_must_keep_next=false
 
995
for ac_pass in 1 2
 
996
do
 
997
  for ac_arg
 
998
  do
 
999
    case $ac_arg in
 
1000
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1001
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1002
    | -silent | --silent | --silen | --sile | --sil)
 
1003
      continue ;;
 
1004
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1005
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1006
    esac
 
1007
    case $ac_pass in
 
1008
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1009
    2)
 
1010
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1011
      if test $ac_must_keep_next = true; then
 
1012
        ac_must_keep_next=false # Got value, back to normal.
 
1013
      else
 
1014
        case $ac_arg in
 
1015
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1016
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1017
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1018
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1019
            case "$ac_configure_args0 " in
 
1020
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1021
            esac
 
1022
            ;;
 
1023
          -* ) ac_must_keep_next=true ;;
 
1024
        esac
 
1025
      fi
 
1026
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1027
      # Get rid of the leading space.
 
1028
      ac_sep=" "
 
1029
      ;;
 
1030
    esac
 
1031
  done
 
1032
done
 
1033
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1034
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1035
 
 
1036
# When interrupted or exit'd, cleanup temporary files, and complete
 
1037
# config.log.  We remove comments because anyway the quotes in there
 
1038
# would cause problems or look ugly.
 
1039
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1040
# such as our DU 5.0 friend, will then `close' the trap.
 
1041
trap 'exit_status=$?
 
1042
  # Save into config.log some information that might help in debugging.
 
1043
  {
 
1044
    echo
 
1045
 
 
1046
    cat <<\_ASBOX
 
1047
## ---------------- ##
 
1048
## Cache variables. ##
 
1049
## ---------------- ##
 
1050
_ASBOX
 
1051
    echo
 
1052
    # The following way of writing the cache mishandles newlines in values,
 
1053
{
 
1054
  (set) 2>&1 |
 
1055
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1056
    *ac_space=\ *)
 
1057
      sed -n \
 
1058
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1059
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1060
      ;;
 
1061
    *)
 
1062
      sed -n \
 
1063
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1064
      ;;
 
1065
    esac;
 
1066
}
 
1067
    echo
 
1068
 
 
1069
    cat <<\_ASBOX
 
1070
## ----------------- ##
 
1071
## Output variables. ##
 
1072
## ----------------- ##
 
1073
_ASBOX
 
1074
    echo
 
1075
    for ac_var in $ac_subst_vars
 
1076
    do
 
1077
      eval ac_val=$`echo $ac_var`
 
1078
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1079
    done | sort
 
1080
    echo
 
1081
 
 
1082
    if test -n "$ac_subst_files"; then
 
1083
      cat <<\_ASBOX
 
1084
## ------------- ##
 
1085
## Output files. ##
 
1086
## ------------- ##
 
1087
_ASBOX
 
1088
      echo
 
1089
      for ac_var in $ac_subst_files
 
1090
      do
 
1091
        eval ac_val=$`echo $ac_var`
 
1092
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1093
      done | sort
 
1094
      echo
 
1095
    fi
 
1096
 
 
1097
    if test -s confdefs.h; then
 
1098
      cat <<\_ASBOX
 
1099
## ----------- ##
 
1100
## confdefs.h. ##
 
1101
## ----------- ##
 
1102
_ASBOX
 
1103
      echo
 
1104
      sed "/^$/d" confdefs.h | sort
 
1105
      echo
 
1106
    fi
 
1107
    test "$ac_signal" != 0 &&
 
1108
      echo "$as_me: caught signal $ac_signal"
 
1109
    echo "$as_me: exit $exit_status"
 
1110
  } >&5
 
1111
  rm -f core *.core &&
 
1112
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1113
    exit $exit_status
 
1114
     ' 0
 
1115
for ac_signal in 1 2 13 15; do
 
1116
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1117
done
 
1118
ac_signal=0
 
1119
 
 
1120
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1121
rm -rf conftest* confdefs.h
 
1122
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1123
echo >confdefs.h
 
1124
 
 
1125
# Predefined preprocessor variables.
 
1126
 
 
1127
cat >>confdefs.h <<_ACEOF
 
1128
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1129
_ACEOF
 
1130
 
 
1131
 
 
1132
cat >>confdefs.h <<_ACEOF
 
1133
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1134
_ACEOF
 
1135
 
 
1136
 
 
1137
cat >>confdefs.h <<_ACEOF
 
1138
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1139
_ACEOF
 
1140
 
 
1141
 
 
1142
cat >>confdefs.h <<_ACEOF
 
1143
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1144
_ACEOF
 
1145
 
 
1146
 
 
1147
cat >>confdefs.h <<_ACEOF
 
1148
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1149
_ACEOF
 
1150
 
 
1151
 
 
1152
# Let the site file select an alternate cache file if it wants to.
485
1153
# Prefer explicitly selected file to automatically selected ones.
486
1154
if test -z "$CONFIG_SITE"; then
487
1155
  if test "x$prefix" != xNONE; then
492
1160
fi
493
1161
for ac_site_file in $CONFIG_SITE; do
494
1162
  if test -r "$ac_site_file"; then
495
 
    echo "loading site script $ac_site_file"
 
1163
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1164
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1165
    sed 's/^/| /' "$ac_site_file" >&5
496
1166
    . "$ac_site_file"
497
1167
  fi
498
1168
done
499
1169
 
500
1170
if test -r "$cache_file"; then
501
 
  echo "loading cache $cache_file"
502
 
  . $cache_file
 
1171
  # Some versions of bash will fail to source /dev/null (special
 
1172
  # files actually), so we avoid doing that.
 
1173
  if test -f "$cache_file"; then
 
1174
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1175
echo "$as_me: loading cache $cache_file" >&6;}
 
1176
    case $cache_file in
 
1177
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1178
      *)                      . ./$cache_file;;
 
1179
    esac
 
1180
  fi
503
1181
else
504
 
  echo "creating cache $cache_file"
505
 
  > $cache_file
 
1182
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1183
echo "$as_me: creating cache $cache_file" >&6;}
 
1184
  >$cache_file
 
1185
fi
 
1186
 
 
1187
# Check that the precious variables saved in the cache have kept the same
 
1188
# value.
 
1189
ac_cache_corrupted=false
 
1190
for ac_var in `(set) 2>&1 |
 
1191
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1192
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1193
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1194
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1195
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1196
  case $ac_old_set,$ac_new_set in
 
1197
    set,)
 
1198
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1199
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1200
      ac_cache_corrupted=: ;;
 
1201
    ,set)
 
1202
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1203
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1204
      ac_cache_corrupted=: ;;
 
1205
    ,);;
 
1206
    *)
 
1207
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1208
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1209
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1210
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1211
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1212
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1213
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1214
        ac_cache_corrupted=:
 
1215
      fi;;
 
1216
  esac
 
1217
  # Pass precious variables to config.status.
 
1218
  if test "$ac_new_set" = set; then
 
1219
    case $ac_new_val in
 
1220
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1221
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1222
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1223
    esac
 
1224
    case " $ac_configure_args " in
 
1225
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1226
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1227
    esac
 
1228
  fi
 
1229
done
 
1230
if $ac_cache_corrupted; then
 
1231
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1232
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1233
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1234
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1235
   { (exit 1); exit 1; }; }
506
1236
fi
507
1237
 
508
1238
ac_ext=c
509
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510
1239
ac_cpp='$CPP $CPPFLAGS'
511
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
 
cross_compiling=$ac_cv_prog_cc_cross
514
 
 
515
 
ac_exeext=
516
 
ac_objext=o
517
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520
 
    ac_n= ac_c='
521
 
' ac_t='        '
522
 
  else
523
 
    ac_n=-n ac_c= ac_t=
524
 
  fi
525
 
else
526
 
  ac_n= ac_c='\c' ac_t=
527
 
fi
528
 
 
529
 
 
530
 
# From configure.in Revision: 1.7 
 
1240
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1241
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1242
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1243
 
 
1244
 
 
1245
 
 
1246
 
 
1247
 
 
1248
 
 
1249
 
 
1250
 
 
1251
 
 
1252
 
 
1253
 
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
 
 
1262
 
531
1263
 
532
1264
 
533
1265
if test x$with_rlm_krb5 != xno; then
534
1266
 
535
 
        # Extract the first word of "gcc", so it can be a program name with args.
 
1267
        ac_ext=c
 
1268
ac_cpp='$CPP $CPPFLAGS'
 
1269
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1270
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1271
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1272
if test -n "$ac_tool_prefix"; then
 
1273
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1274
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1275
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1277
if test "${ac_cv_prog_CC+set}" = set; then
 
1278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1279
else
 
1280
  if test -n "$CC"; then
 
1281
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1282
else
 
1283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1284
for as_dir in $PATH
 
1285
do
 
1286
  IFS=$as_save_IFS
 
1287
  test -z "$as_dir" && as_dir=.
 
1288
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1289
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1290
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1291
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1292
    break 2
 
1293
  fi
 
1294
done
 
1295
done
 
1296
 
 
1297
fi
 
1298
fi
 
1299
CC=$ac_cv_prog_CC
 
1300
if test -n "$CC"; then
 
1301
  echo "$as_me:$LINENO: result: $CC" >&5
 
1302
echo "${ECHO_T}$CC" >&6
 
1303
else
 
1304
  echo "$as_me:$LINENO: result: no" >&5
 
1305
echo "${ECHO_T}no" >&6
 
1306
fi
 
1307
 
 
1308
fi
 
1309
if test -z "$ac_cv_prog_CC"; then
 
1310
  ac_ct_CC=$CC
 
1311
  # Extract the first word of "gcc", so it can be a program name with args.
536
1312
set dummy gcc; ac_word=$2
537
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538
 
echo "configure:539: checking for $ac_word" >&5
539
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
540
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1313
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1315
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1317
else
 
1318
  if test -n "$ac_ct_CC"; then
 
1319
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1320
else
 
1321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1322
for as_dir in $PATH
 
1323
do
 
1324
  IFS=$as_save_IFS
 
1325
  test -z "$as_dir" && as_dir=.
 
1326
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1327
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1328
    ac_cv_prog_ac_ct_CC="gcc"
 
1329
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1330
    break 2
 
1331
  fi
 
1332
done
 
1333
done
 
1334
 
 
1335
fi
 
1336
fi
 
1337
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1338
if test -n "$ac_ct_CC"; then
 
1339
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1340
echo "${ECHO_T}$ac_ct_CC" >&6
 
1341
else
 
1342
  echo "$as_me:$LINENO: result: no" >&5
 
1343
echo "${ECHO_T}no" >&6
 
1344
fi
 
1345
 
 
1346
  CC=$ac_ct_CC
 
1347
else
 
1348
  CC="$ac_cv_prog_CC"
 
1349
fi
 
1350
 
 
1351
if test -z "$CC"; then
 
1352
  if test -n "$ac_tool_prefix"; then
 
1353
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1354
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1355
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1357
if test "${ac_cv_prog_CC+set}" = set; then
 
1358
  echo $ECHO_N "(cached) $ECHO_C" >&6
541
1359
else
542
1360
  if test -n "$CC"; then
543
1361
  ac_cv_prog_CC="$CC" # Let the user override the test.
544
1362
else
545
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
546
 
  ac_dummy="$PATH"
547
 
  for ac_dir in $ac_dummy; do
548
 
    test -z "$ac_dir" && ac_dir=.
549
 
    if test -f $ac_dir/$ac_word; then
550
 
      ac_cv_prog_CC="gcc"
551
 
      break
552
 
    fi
553
 
  done
554
 
  IFS="$ac_save_ifs"
555
 
fi
556
 
fi
557
 
CC="$ac_cv_prog_CC"
 
1363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1364
for as_dir in $PATH
 
1365
do
 
1366
  IFS=$as_save_IFS
 
1367
  test -z "$as_dir" && as_dir=.
 
1368
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1369
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1370
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1371
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1372
    break 2
 
1373
  fi
 
1374
done
 
1375
done
 
1376
 
 
1377
fi
 
1378
fi
 
1379
CC=$ac_cv_prog_CC
558
1380
if test -n "$CC"; then
559
 
  echo "$ac_t""$CC" 1>&6
560
 
else
561
 
  echo "$ac_t""no" 1>&6
562
 
fi
563
 
 
 
1381
  echo "$as_me:$LINENO: result: $CC" >&5
 
1382
echo "${ECHO_T}$CC" >&6
 
1383
else
 
1384
  echo "$as_me:$LINENO: result: no" >&5
 
1385
echo "${ECHO_T}no" >&6
 
1386
fi
 
1387
 
 
1388
fi
 
1389
if test -z "$ac_cv_prog_CC"; then
 
1390
  ac_ct_CC=$CC
 
1391
  # Extract the first word of "cc", so it can be a program name with args.
 
1392
set dummy cc; ac_word=$2
 
1393
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1395
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1397
else
 
1398
  if test -n "$ac_ct_CC"; then
 
1399
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1400
else
 
1401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1402
for as_dir in $PATH
 
1403
do
 
1404
  IFS=$as_save_IFS
 
1405
  test -z "$as_dir" && as_dir=.
 
1406
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1407
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1408
    ac_cv_prog_ac_ct_CC="cc"
 
1409
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1410
    break 2
 
1411
  fi
 
1412
done
 
1413
done
 
1414
 
 
1415
fi
 
1416
fi
 
1417
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1418
if test -n "$ac_ct_CC"; then
 
1419
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1420
echo "${ECHO_T}$ac_ct_CC" >&6
 
1421
else
 
1422
  echo "$as_me:$LINENO: result: no" >&5
 
1423
echo "${ECHO_T}no" >&6
 
1424
fi
 
1425
 
 
1426
  CC=$ac_ct_CC
 
1427
else
 
1428
  CC="$ac_cv_prog_CC"
 
1429
fi
 
1430
 
 
1431
fi
564
1432
if test -z "$CC"; then
565
1433
  # Extract the first word of "cc", so it can be a program name with args.
566
1434
set dummy cc; ac_word=$2
567
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568
 
echo "configure:569: checking for $ac_word" >&5
569
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1435
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1436
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1437
if test "${ac_cv_prog_CC+set}" = set; then
 
1438
  echo $ECHO_N "(cached) $ECHO_C" >&6
571
1439
else
572
1440
  if test -n "$CC"; then
573
1441
  ac_cv_prog_CC="$CC" # Let the user override the test.
574
1442
else
575
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
576
1443
  ac_prog_rejected=no
577
 
  ac_dummy="$PATH"
578
 
  for ac_dir in $ac_dummy; do
579
 
    test -z "$ac_dir" && ac_dir=.
580
 
    if test -f $ac_dir/$ac_word; then
581
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
582
 
        ac_prog_rejected=yes
583
 
        continue
584
 
      fi
585
 
      ac_cv_prog_CC="cc"
586
 
      break
587
 
    fi
588
 
  done
589
 
  IFS="$ac_save_ifs"
 
1444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1445
for as_dir in $PATH
 
1446
do
 
1447
  IFS=$as_save_IFS
 
1448
  test -z "$as_dir" && as_dir=.
 
1449
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1450
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1451
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1452
       ac_prog_rejected=yes
 
1453
       continue
 
1454
     fi
 
1455
    ac_cv_prog_CC="cc"
 
1456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1457
    break 2
 
1458
  fi
 
1459
done
 
1460
done
 
1461
 
590
1462
if test $ac_prog_rejected = yes; then
591
1463
  # We found a bogon in the path, so make sure we never use it.
592
1464
  set dummy $ac_cv_prog_CC
593
1465
  shift
594
 
  if test $# -gt 0; then
 
1466
  if test $# != 0; then
595
1467
    # We chose a different compiler from the bogus one.
596
1468
    # However, it has the same basename, so the bogon will be chosen
597
1469
    # first if we set CC to just the basename; use the full file name.
598
1470
    shift
599
 
    set dummy "$ac_dir/$ac_word" "$@"
600
 
    shift
601
 
    ac_cv_prog_CC="$@"
 
1471
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
602
1472
  fi
603
1473
fi
604
1474
fi
605
1475
fi
606
 
CC="$ac_cv_prog_CC"
 
1476
CC=$ac_cv_prog_CC
607
1477
if test -n "$CC"; then
608
 
  echo "$ac_t""$CC" 1>&6
 
1478
  echo "$as_me:$LINENO: result: $CC" >&5
 
1479
echo "${ECHO_T}$CC" >&6
609
1480
else
610
 
  echo "$ac_t""no" 1>&6
 
1481
  echo "$as_me:$LINENO: result: no" >&5
 
1482
echo "${ECHO_T}no" >&6
611
1483
fi
612
1484
 
613
 
  if test -z "$CC"; then
614
 
    case "`uname -s`" in
615
 
    *win32* | *WIN32*)
616
 
      # Extract the first word of "cl", so it can be a program name with args.
617
 
set dummy cl; ac_word=$2
618
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
619
 
echo "configure:620: checking for $ac_word" >&5
620
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
621
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1485
fi
 
1486
if test -z "$CC"; then
 
1487
  if test -n "$ac_tool_prefix"; then
 
1488
  for ac_prog in cl
 
1489
  do
 
1490
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1491
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1492
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1494
if test "${ac_cv_prog_CC+set}" = set; then
 
1495
  echo $ECHO_N "(cached) $ECHO_C" >&6
622
1496
else
623
1497
  if test -n "$CC"; then
624
1498
  ac_cv_prog_CC="$CC" # Let the user override the test.
625
1499
else
626
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
627
 
  ac_dummy="$PATH"
628
 
  for ac_dir in $ac_dummy; do
629
 
    test -z "$ac_dir" && ac_dir=.
630
 
    if test -f $ac_dir/$ac_word; then
631
 
      ac_cv_prog_CC="cl"
632
 
      break
633
 
    fi
 
1500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1501
for as_dir in $PATH
 
1502
do
 
1503
  IFS=$as_save_IFS
 
1504
  test -z "$as_dir" && as_dir=.
 
1505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1507
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1509
    break 2
 
1510
  fi
 
1511
done
 
1512
done
 
1513
 
 
1514
fi
 
1515
fi
 
1516
CC=$ac_cv_prog_CC
 
1517
if test -n "$CC"; then
 
1518
  echo "$as_me:$LINENO: result: $CC" >&5
 
1519
echo "${ECHO_T}$CC" >&6
 
1520
else
 
1521
  echo "$as_me:$LINENO: result: no" >&5
 
1522
echo "${ECHO_T}no" >&6
 
1523
fi
 
1524
 
 
1525
    test -n "$CC" && break
634
1526
  done
635
 
  IFS="$ac_save_ifs"
636
 
fi
637
 
fi
638
 
CC="$ac_cv_prog_CC"
639
 
if test -n "$CC"; then
640
 
  echo "$ac_t""$CC" 1>&6
641
 
else
642
 
  echo "$ac_t""no" 1>&6
643
 
fi
644
 
 ;;
645
 
    esac
 
1527
fi
 
1528
if test -z "$CC"; then
 
1529
  ac_ct_CC=$CC
 
1530
  for ac_prog in cl
 
1531
do
 
1532
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1533
set dummy $ac_prog; ac_word=$2
 
1534
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1536
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1538
else
 
1539
  if test -n "$ac_ct_CC"; then
 
1540
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1541
else
 
1542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1543
for as_dir in $PATH
 
1544
do
 
1545
  IFS=$as_save_IFS
 
1546
  test -z "$as_dir" && as_dir=.
 
1547
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1548
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1549
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1550
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1551
    break 2
646
1552
  fi
647
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
648
 
fi
649
 
 
650
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
651
 
echo "configure:652: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
652
 
 
653
 
ac_ext=c
654
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
655
 
ac_cpp='$CPP $CPPFLAGS'
656
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
657
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
658
 
cross_compiling=$ac_cv_prog_cc_cross
659
 
 
660
 
cat > conftest.$ac_ext << EOF
661
 
 
662
 
#line 663 "configure"
663
 
#include "confdefs.h"
664
 
 
665
 
main(){return(0);}
666
 
EOF
667
 
if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
668
 
  ac_cv_prog_cc_works=yes
669
 
  # If we can't run a trivial program, we are probably using a cross compiler.
670
 
  if (./conftest; exit) 2>/dev/null; then
671
 
    ac_cv_prog_cc_cross=no
 
1553
done
 
1554
done
 
1555
 
 
1556
fi
 
1557
fi
 
1558
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1559
if test -n "$ac_ct_CC"; then
 
1560
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1561
echo "${ECHO_T}$ac_ct_CC" >&6
 
1562
else
 
1563
  echo "$as_me:$LINENO: result: no" >&5
 
1564
echo "${ECHO_T}no" >&6
 
1565
fi
 
1566
 
 
1567
  test -n "$ac_ct_CC" && break
 
1568
done
 
1569
 
 
1570
  CC=$ac_ct_CC
 
1571
fi
 
1572
 
 
1573
fi
 
1574
 
 
1575
 
 
1576
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1577
See \`config.log' for more details." >&5
 
1578
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1579
See \`config.log' for more details." >&2;}
 
1580
   { (exit 1); exit 1; }; }
 
1581
 
 
1582
# Provide some information about the compiler.
 
1583
echo "$as_me:$LINENO:" \
 
1584
     "checking for C compiler version" >&5
 
1585
ac_compiler=`set X $ac_compile; echo $2`
 
1586
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1587
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1588
  ac_status=$?
 
1589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1590
  (exit $ac_status); }
 
1591
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1592
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1593
  ac_status=$?
 
1594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1595
  (exit $ac_status); }
 
1596
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1597
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1598
  ac_status=$?
 
1599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1600
  (exit $ac_status); }
 
1601
 
 
1602
cat >conftest.$ac_ext <<_ACEOF
 
1603
/* confdefs.h.  */
 
1604
_ACEOF
 
1605
cat confdefs.h >>conftest.$ac_ext
 
1606
cat >>conftest.$ac_ext <<_ACEOF
 
1607
/* end confdefs.h.  */
 
1608
 
 
1609
int
 
1610
main ()
 
1611
{
 
1612
 
 
1613
  ;
 
1614
  return 0;
 
1615
}
 
1616
_ACEOF
 
1617
ac_clean_files_save=$ac_clean_files
 
1618
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1619
# Try to create an executable without -o first, disregard a.out.
 
1620
# It will help us diagnose broken compilers, and finding out an intuition
 
1621
# of exeext.
 
1622
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1623
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1624
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1625
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1626
  (eval $ac_link_default) 2>&5
 
1627
  ac_status=$?
 
1628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1629
  (exit $ac_status); }; then
 
1630
  # Find the output, starting from the most likely.  This scheme is
 
1631
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1632
# resort.
 
1633
 
 
1634
# Be careful to initialize this variable, since it used to be cached.
 
1635
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1636
ac_cv_exeext=
 
1637
# b.out is created by i960 compilers.
 
1638
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1639
do
 
1640
  test -f "$ac_file" || continue
 
1641
  case $ac_file in
 
1642
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1643
        ;;
 
1644
    conftest.$ac_ext )
 
1645
        # This is the source file.
 
1646
        ;;
 
1647
    [ab].out )
 
1648
        # We found the default executable, but exeext='' is most
 
1649
        # certainly right.
 
1650
        break;;
 
1651
    *.* )
 
1652
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1653
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1654
        # but it would be cool to find out if it's true.  Does anybody
 
1655
        # maintain Libtool? --akim.
 
1656
        export ac_cv_exeext
 
1657
        break;;
 
1658
    * )
 
1659
        break;;
 
1660
  esac
 
1661
done
 
1662
else
 
1663
  echo "$as_me: failed program was:" >&5
 
1664
sed 's/^/| /' conftest.$ac_ext >&5
 
1665
 
 
1666
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1667
See \`config.log' for more details." >&5
 
1668
echo "$as_me: error: C compiler cannot create executables
 
1669
See \`config.log' for more details." >&2;}
 
1670
   { (exit 77); exit 77; }; }
 
1671
fi
 
1672
 
 
1673
ac_exeext=$ac_cv_exeext
 
1674
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1675
echo "${ECHO_T}$ac_file" >&6
 
1676
 
 
1677
# Check the compiler produces executables we can run.  If not, either
 
1678
# the compiler is broken, or we cross compile.
 
1679
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1680
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1681
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1682
# If not cross compiling, check that we can run a simple program.
 
1683
if test "$cross_compiling" != yes; then
 
1684
  if { ac_try='./$ac_file'
 
1685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1686
  (eval $ac_try) 2>&5
 
1687
  ac_status=$?
 
1688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1689
  (exit $ac_status); }; }; then
 
1690
    cross_compiling=no
672
1691
  else
673
 
    ac_cv_prog_cc_cross=yes
 
1692
    if test "$cross_compiling" = maybe; then
 
1693
        cross_compiling=yes
 
1694
    else
 
1695
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1696
If you meant to cross compile, use \`--host'.
 
1697
See \`config.log' for more details." >&5
 
1698
echo "$as_me: error: cannot run C compiled programs.
 
1699
If you meant to cross compile, use \`--host'.
 
1700
See \`config.log' for more details." >&2;}
 
1701
   { (exit 1); exit 1; }; }
 
1702
    fi
674
1703
  fi
675
 
else
676
 
  echo "configure: failed program was:" >&5
677
 
  cat conftest.$ac_ext >&5
678
 
  ac_cv_prog_cc_works=no
679
 
fi
680
 
rm -fr conftest*
681
 
ac_ext=c
682
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683
 
ac_cpp='$CPP $CPPFLAGS'
684
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
685
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
686
 
cross_compiling=$ac_cv_prog_cc_cross
687
 
 
688
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
689
 
if test $ac_cv_prog_cc_works = no; then
690
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
691
 
fi
692
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
693
 
echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
694
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
695
 
cross_compiling=$ac_cv_prog_cc_cross
696
 
 
697
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
698
 
echo "configure:699: checking whether we are using GNU C" >&5
699
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
700
 
  echo $ac_n "(cached) $ac_c" 1>&6
701
 
else
702
 
  cat > conftest.c <<EOF
703
 
#ifdef __GNUC__
704
 
  yes;
 
1704
fi
 
1705
echo "$as_me:$LINENO: result: yes" >&5
 
1706
echo "${ECHO_T}yes" >&6
 
1707
 
 
1708
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1709
ac_clean_files=$ac_clean_files_save
 
1710
# Check the compiler produces executables we can run.  If not, either
 
1711
# the compiler is broken, or we cross compile.
 
1712
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1713
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1714
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1715
echo "${ECHO_T}$cross_compiling" >&6
 
1716
 
 
1717
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1718
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1720
  (eval $ac_link) 2>&5
 
1721
  ac_status=$?
 
1722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1723
  (exit $ac_status); }; then
 
1724
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1725
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1726
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1727
# `rm'.
 
1728
for ac_file in conftest.exe conftest conftest.*; do
 
1729
  test -f "$ac_file" || continue
 
1730
  case $ac_file in
 
1731
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1732
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1733
          export ac_cv_exeext
 
1734
          break;;
 
1735
    * ) break;;
 
1736
  esac
 
1737
done
 
1738
else
 
1739
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1740
See \`config.log' for more details." >&5
 
1741
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1742
See \`config.log' for more details." >&2;}
 
1743
   { (exit 1); exit 1; }; }
 
1744
fi
 
1745
 
 
1746
rm -f conftest$ac_cv_exeext
 
1747
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1748
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1749
 
 
1750
rm -f conftest.$ac_ext
 
1751
EXEEXT=$ac_cv_exeext
 
1752
ac_exeext=$EXEEXT
 
1753
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1754
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1755
if test "${ac_cv_objext+set}" = set; then
 
1756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1757
else
 
1758
  cat >conftest.$ac_ext <<_ACEOF
 
1759
/* confdefs.h.  */
 
1760
_ACEOF
 
1761
cat confdefs.h >>conftest.$ac_ext
 
1762
cat >>conftest.$ac_ext <<_ACEOF
 
1763
/* end confdefs.h.  */
 
1764
 
 
1765
int
 
1766
main ()
 
1767
{
 
1768
 
 
1769
  ;
 
1770
  return 0;
 
1771
}
 
1772
_ACEOF
 
1773
rm -f conftest.o conftest.obj
 
1774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1775
  (eval $ac_compile) 2>&5
 
1776
  ac_status=$?
 
1777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1778
  (exit $ac_status); }; then
 
1779
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1780
  case $ac_file in
 
1781
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1782
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1783
       break;;
 
1784
  esac
 
1785
done
 
1786
else
 
1787
  echo "$as_me: failed program was:" >&5
 
1788
sed 's/^/| /' conftest.$ac_ext >&5
 
1789
 
 
1790
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1791
See \`config.log' for more details." >&5
 
1792
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1793
See \`config.log' for more details." >&2;}
 
1794
   { (exit 1); exit 1; }; }
 
1795
fi
 
1796
 
 
1797
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1798
fi
 
1799
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1800
echo "${ECHO_T}$ac_cv_objext" >&6
 
1801
OBJEXT=$ac_cv_objext
 
1802
ac_objext=$OBJEXT
 
1803
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1804
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1805
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1807
else
 
1808
  cat >conftest.$ac_ext <<_ACEOF
 
1809
/* confdefs.h.  */
 
1810
_ACEOF
 
1811
cat confdefs.h >>conftest.$ac_ext
 
1812
cat >>conftest.$ac_ext <<_ACEOF
 
1813
/* end confdefs.h.  */
 
1814
 
 
1815
int
 
1816
main ()
 
1817
{
 
1818
#ifndef __GNUC__
 
1819
       choke me
705
1820
#endif
706
 
EOF
707
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
708
 
  ac_cv_prog_gcc=yes
709
 
else
710
 
  ac_cv_prog_gcc=no
711
 
fi
712
 
fi
713
 
 
714
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
715
 
 
716
 
if test $ac_cv_prog_gcc = yes; then
717
 
  GCC=yes
718
 
else
719
 
  GCC=
720
 
fi
721
 
 
722
 
ac_test_CFLAGS="${CFLAGS+set}"
723
 
ac_save_CFLAGS="$CFLAGS"
724
 
CFLAGS=
725
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
726
 
echo "configure:727: checking whether ${CC-cc} accepts -g" >&5
727
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
728
 
  echo $ac_n "(cached) $ac_c" 1>&6
729
 
else
730
 
  echo 'void f(){}' > conftest.c
731
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1821
 
 
1822
  ;
 
1823
  return 0;
 
1824
}
 
1825
_ACEOF
 
1826
rm -f conftest.$ac_objext
 
1827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1828
  (eval $ac_compile) 2>conftest.er1
 
1829
  ac_status=$?
 
1830
  grep -v '^ *+' conftest.er1 >conftest.err
 
1831
  rm -f conftest.er1
 
1832
  cat conftest.err >&5
 
1833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1834
  (exit $ac_status); } &&
 
1835
         { ac_try='test -z "$ac_c_werror_flag"
 
1836
                         || test ! -s conftest.err'
 
1837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1838
  (eval $ac_try) 2>&5
 
1839
  ac_status=$?
 
1840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1841
  (exit $ac_status); }; } &&
 
1842
         { ac_try='test -s conftest.$ac_objext'
 
1843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1844
  (eval $ac_try) 2>&5
 
1845
  ac_status=$?
 
1846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1847
  (exit $ac_status); }; }; then
 
1848
  ac_compiler_gnu=yes
 
1849
else
 
1850
  echo "$as_me: failed program was:" >&5
 
1851
sed 's/^/| /' conftest.$ac_ext >&5
 
1852
 
 
1853
ac_compiler_gnu=no
 
1854
fi
 
1855
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1856
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1857
 
 
1858
fi
 
1859
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
1860
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
1861
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
1862
ac_test_CFLAGS=${CFLAGS+set}
 
1863
ac_save_CFLAGS=$CFLAGS
 
1864
CFLAGS="-g"
 
1865
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
1866
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
1867
if test "${ac_cv_prog_cc_g+set}" = set; then
 
1868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1869
else
 
1870
  cat >conftest.$ac_ext <<_ACEOF
 
1871
/* confdefs.h.  */
 
1872
_ACEOF
 
1873
cat confdefs.h >>conftest.$ac_ext
 
1874
cat >>conftest.$ac_ext <<_ACEOF
 
1875
/* end confdefs.h.  */
 
1876
 
 
1877
int
 
1878
main ()
 
1879
{
 
1880
 
 
1881
  ;
 
1882
  return 0;
 
1883
}
 
1884
_ACEOF
 
1885
rm -f conftest.$ac_objext
 
1886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1887
  (eval $ac_compile) 2>conftest.er1
 
1888
  ac_status=$?
 
1889
  grep -v '^ *+' conftest.er1 >conftest.err
 
1890
  rm -f conftest.er1
 
1891
  cat conftest.err >&5
 
1892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1893
  (exit $ac_status); } &&
 
1894
         { ac_try='test -z "$ac_c_werror_flag"
 
1895
                         || test ! -s conftest.err'
 
1896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1897
  (eval $ac_try) 2>&5
 
1898
  ac_status=$?
 
1899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1900
  (exit $ac_status); }; } &&
 
1901
         { ac_try='test -s conftest.$ac_objext'
 
1902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1903
  (eval $ac_try) 2>&5
 
1904
  ac_status=$?
 
1905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1906
  (exit $ac_status); }; }; then
732
1907
  ac_cv_prog_cc_g=yes
733
1908
else
734
 
  ac_cv_prog_cc_g=no
735
 
fi
736
 
rm -f conftest*
737
 
 
738
 
fi
739
 
 
740
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1909
  echo "$as_me: failed program was:" >&5
 
1910
sed 's/^/| /' conftest.$ac_ext >&5
 
1911
 
 
1912
ac_cv_prog_cc_g=no
 
1913
fi
 
1914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1915
fi
 
1916
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
1917
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
741
1918
if test "$ac_test_CFLAGS" = set; then
742
 
  CFLAGS="$ac_save_CFLAGS"
 
1919
  CFLAGS=$ac_save_CFLAGS
743
1920
elif test $ac_cv_prog_cc_g = yes; then
744
1921
  if test "$GCC" = yes; then
745
1922
    CFLAGS="-g -O2"
753
1930
    CFLAGS=
754
1931
  fi
755
1932
fi
756
 
 
757
 
        echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
758
 
echo "configure:759: checking how to run the C preprocessor" >&5
 
1933
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
1934
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
1935
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
1936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1937
else
 
1938
  ac_cv_prog_cc_stdc=no
 
1939
ac_save_CC=$CC
 
1940
cat >conftest.$ac_ext <<_ACEOF
 
1941
/* confdefs.h.  */
 
1942
_ACEOF
 
1943
cat confdefs.h >>conftest.$ac_ext
 
1944
cat >>conftest.$ac_ext <<_ACEOF
 
1945
/* end confdefs.h.  */
 
1946
#include <stdarg.h>
 
1947
#include <stdio.h>
 
1948
#include <sys/types.h>
 
1949
#include <sys/stat.h>
 
1950
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
1951
struct buf { int x; };
 
1952
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
1953
static char *e (p, i)
 
1954
     char **p;
 
1955
     int i;
 
1956
{
 
1957
  return p[i];
 
1958
}
 
1959
static char *f (char * (*g) (char **, int), char **p, ...)
 
1960
{
 
1961
  char *s;
 
1962
  va_list v;
 
1963
  va_start (v,p);
 
1964
  s = g (p, va_arg (v,int));
 
1965
  va_end (v);
 
1966
  return s;
 
1967
}
 
1968
 
 
1969
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
1970
   function prototypes and stuff, but not '\xHH' hex character constants.
 
1971
   These don't provoke an error unfortunately, instead are silently treated
 
1972
   as 'x'.  The following induces an error, until -std1 is added to get
 
1973
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
1974
   array size at least.  It's necessary to write '\x00'==0 to get something
 
1975
   that's true only with -std1.  */
 
1976
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
1977
 
 
1978
int test (int i, double x);
 
1979
struct s1 {int (*f) (int a);};
 
1980
struct s2 {int (*f) (double a);};
 
1981
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
1982
int argc;
 
1983
char **argv;
 
1984
int
 
1985
main ()
 
1986
{
 
1987
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
1988
  ;
 
1989
  return 0;
 
1990
}
 
1991
_ACEOF
 
1992
# Don't try gcc -ansi; that turns off useful extensions and
 
1993
# breaks some systems' header files.
 
1994
# AIX                   -qlanglvl=ansi
 
1995
# Ultrix and OSF/1      -std1
 
1996
# HP-UX 10.20 and later -Ae
 
1997
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
1998
# SVR4                  -Xc -D__EXTENSIONS__
 
1999
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2000
do
 
2001
  CC="$ac_save_CC $ac_arg"
 
2002
  rm -f conftest.$ac_objext
 
2003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2004
  (eval $ac_compile) 2>conftest.er1
 
2005
  ac_status=$?
 
2006
  grep -v '^ *+' conftest.er1 >conftest.err
 
2007
  rm -f conftest.er1
 
2008
  cat conftest.err >&5
 
2009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2010
  (exit $ac_status); } &&
 
2011
         { ac_try='test -z "$ac_c_werror_flag"
 
2012
                         || test ! -s conftest.err'
 
2013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2014
  (eval $ac_try) 2>&5
 
2015
  ac_status=$?
 
2016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2017
  (exit $ac_status); }; } &&
 
2018
         { ac_try='test -s conftest.$ac_objext'
 
2019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2020
  (eval $ac_try) 2>&5
 
2021
  ac_status=$?
 
2022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2023
  (exit $ac_status); }; }; then
 
2024
  ac_cv_prog_cc_stdc=$ac_arg
 
2025
break
 
2026
else
 
2027
  echo "$as_me: failed program was:" >&5
 
2028
sed 's/^/| /' conftest.$ac_ext >&5
 
2029
 
 
2030
fi
 
2031
rm -f conftest.err conftest.$ac_objext
 
2032
done
 
2033
rm -f conftest.$ac_ext conftest.$ac_objext
 
2034
CC=$ac_save_CC
 
2035
 
 
2036
fi
 
2037
 
 
2038
case "x$ac_cv_prog_cc_stdc" in
 
2039
  x|xno)
 
2040
    echo "$as_me:$LINENO: result: none needed" >&5
 
2041
echo "${ECHO_T}none needed" >&6 ;;
 
2042
  *)
 
2043
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2044
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2045
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2046
esac
 
2047
 
 
2048
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2049
# in C++ we need to declare it.  In case someone uses the same compiler
 
2050
# for both compiling C and C++ we need to have the C++ compiler decide
 
2051
# the declaration of exit, since it's the most demanding environment.
 
2052
cat >conftest.$ac_ext <<_ACEOF
 
2053
#ifndef __cplusplus
 
2054
  choke me
 
2055
#endif
 
2056
_ACEOF
 
2057
rm -f conftest.$ac_objext
 
2058
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2059
  (eval $ac_compile) 2>conftest.er1
 
2060
  ac_status=$?
 
2061
  grep -v '^ *+' conftest.er1 >conftest.err
 
2062
  rm -f conftest.er1
 
2063
  cat conftest.err >&5
 
2064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2065
  (exit $ac_status); } &&
 
2066
         { ac_try='test -z "$ac_c_werror_flag"
 
2067
                         || test ! -s conftest.err'
 
2068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2069
  (eval $ac_try) 2>&5
 
2070
  ac_status=$?
 
2071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2072
  (exit $ac_status); }; } &&
 
2073
         { ac_try='test -s conftest.$ac_objext'
 
2074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2075
  (eval $ac_try) 2>&5
 
2076
  ac_status=$?
 
2077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2078
  (exit $ac_status); }; }; then
 
2079
  for ac_declaration in \
 
2080
   '' \
 
2081
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2082
   'extern "C" void std::exit (int); using std::exit;' \
 
2083
   'extern "C" void exit (int) throw ();' \
 
2084
   'extern "C" void exit (int);' \
 
2085
   'void exit (int);'
 
2086
do
 
2087
  cat >conftest.$ac_ext <<_ACEOF
 
2088
/* confdefs.h.  */
 
2089
_ACEOF
 
2090
cat confdefs.h >>conftest.$ac_ext
 
2091
cat >>conftest.$ac_ext <<_ACEOF
 
2092
/* end confdefs.h.  */
 
2093
$ac_declaration
 
2094
#include <stdlib.h>
 
2095
int
 
2096
main ()
 
2097
{
 
2098
exit (42);
 
2099
  ;
 
2100
  return 0;
 
2101
}
 
2102
_ACEOF
 
2103
rm -f conftest.$ac_objext
 
2104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2105
  (eval $ac_compile) 2>conftest.er1
 
2106
  ac_status=$?
 
2107
  grep -v '^ *+' conftest.er1 >conftest.err
 
2108
  rm -f conftest.er1
 
2109
  cat conftest.err >&5
 
2110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2111
  (exit $ac_status); } &&
 
2112
         { ac_try='test -z "$ac_c_werror_flag"
 
2113
                         || test ! -s conftest.err'
 
2114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2115
  (eval $ac_try) 2>&5
 
2116
  ac_status=$?
 
2117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2118
  (exit $ac_status); }; } &&
 
2119
         { ac_try='test -s conftest.$ac_objext'
 
2120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2121
  (eval $ac_try) 2>&5
 
2122
  ac_status=$?
 
2123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2124
  (exit $ac_status); }; }; then
 
2125
  :
 
2126
else
 
2127
  echo "$as_me: failed program was:" >&5
 
2128
sed 's/^/| /' conftest.$ac_ext >&5
 
2129
 
 
2130
continue
 
2131
fi
 
2132
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2133
  cat >conftest.$ac_ext <<_ACEOF
 
2134
/* confdefs.h.  */
 
2135
_ACEOF
 
2136
cat confdefs.h >>conftest.$ac_ext
 
2137
cat >>conftest.$ac_ext <<_ACEOF
 
2138
/* end confdefs.h.  */
 
2139
$ac_declaration
 
2140
int
 
2141
main ()
 
2142
{
 
2143
exit (42);
 
2144
  ;
 
2145
  return 0;
 
2146
}
 
2147
_ACEOF
 
2148
rm -f conftest.$ac_objext
 
2149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2150
  (eval $ac_compile) 2>conftest.er1
 
2151
  ac_status=$?
 
2152
  grep -v '^ *+' conftest.er1 >conftest.err
 
2153
  rm -f conftest.er1
 
2154
  cat conftest.err >&5
 
2155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2156
  (exit $ac_status); } &&
 
2157
         { ac_try='test -z "$ac_c_werror_flag"
 
2158
                         || test ! -s conftest.err'
 
2159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2160
  (eval $ac_try) 2>&5
 
2161
  ac_status=$?
 
2162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2163
  (exit $ac_status); }; } &&
 
2164
         { ac_try='test -s conftest.$ac_objext'
 
2165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2166
  (eval $ac_try) 2>&5
 
2167
  ac_status=$?
 
2168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2169
  (exit $ac_status); }; }; then
 
2170
  break
 
2171
else
 
2172
  echo "$as_me: failed program was:" >&5
 
2173
sed 's/^/| /' conftest.$ac_ext >&5
 
2174
 
 
2175
fi
 
2176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2177
done
 
2178
rm -f conftest*
 
2179
if test -n "$ac_declaration"; then
 
2180
  echo '#ifdef __cplusplus' >>confdefs.h
 
2181
  echo $ac_declaration      >>confdefs.h
 
2182
  echo '#endif'             >>confdefs.h
 
2183
fi
 
2184
 
 
2185
else
 
2186
  echo "$as_me: failed program was:" >&5
 
2187
sed 's/^/| /' conftest.$ac_ext >&5
 
2188
 
 
2189
fi
 
2190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2191
ac_ext=c
 
2192
ac_cpp='$CPP $CPPFLAGS'
 
2193
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2194
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2195
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2196
 
 
2197
        ac_ext=c
 
2198
ac_cpp='$CPP $CPPFLAGS'
 
2199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2202
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2203
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
759
2204
# On Suns, sometimes $CPP names a directory.
760
2205
if test -n "$CPP" && test -d "$CPP"; then
761
2206
  CPP=
762
2207
fi
763
2208
if test -z "$CPP"; then
764
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
765
 
  echo $ac_n "(cached) $ac_c" 1>&6
766
 
else
767
 
    # This must be in double quotes, not single quotes, because CPP may get
768
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
769
 
  CPP="${CC-cc} -E"
770
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
771
 
  # not just through cpp.
772
 
  cat > conftest.$ac_ext <<EOF
773
 
#line 774 "configure"
774
 
#include "confdefs.h"
775
 
#include <assert.h>
776
 
Syntax Error
777
 
EOF
778
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
779
 
{ (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
780
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
781
 
if test -z "$ac_err"; then
782
 
  :
783
 
else
784
 
  echo "$ac_err" >&5
785
 
  echo "configure: failed program was:" >&5
786
 
  cat conftest.$ac_ext >&5
787
 
  rm -rf conftest*
788
 
  CPP="${CC-cc} -E -traditional-cpp"
789
 
  cat > conftest.$ac_ext <<EOF
790
 
#line 791 "configure"
791
 
#include "confdefs.h"
792
 
#include <assert.h>
793
 
Syntax Error
794
 
EOF
795
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
796
 
{ (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
797
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
798
 
if test -z "$ac_err"; then
799
 
  :
800
 
else
801
 
  echo "$ac_err" >&5
802
 
  echo "configure: failed program was:" >&5
803
 
  cat conftest.$ac_ext >&5
804
 
  rm -rf conftest*
805
 
  CPP="${CC-cc} -nologo -E"
806
 
  cat > conftest.$ac_ext <<EOF
807
 
#line 808 "configure"
808
 
#include "confdefs.h"
809
 
#include <assert.h>
810
 
Syntax Error
811
 
EOF
812
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
813
 
{ (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
814
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
815
 
if test -z "$ac_err"; then
816
 
  :
817
 
else
818
 
  echo "$ac_err" >&5
819
 
  echo "configure: failed program was:" >&5
820
 
  cat conftest.$ac_ext >&5
821
 
  rm -rf conftest*
822
 
  CPP=/lib/cpp
823
 
fi
824
 
rm -f conftest*
825
 
fi
826
 
rm -f conftest*
827
 
fi
828
 
rm -f conftest*
829
 
  ac_cv_prog_CPP="$CPP"
830
 
fi
831
 
  CPP="$ac_cv_prog_CPP"
832
 
else
833
 
  ac_cv_prog_CPP="$CPP"
834
 
fi
835
 
echo "$ac_t""$CPP" 1>&6
 
2209
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2211
else
 
2212
      # Double quotes because CPP needs to be expanded
 
2213
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2214
    do
 
2215
      ac_preproc_ok=false
 
2216
for ac_c_preproc_warn_flag in '' yes
 
2217
do
 
2218
  # Use a header file that comes with gcc, so configuring glibc
 
2219
  # with a fresh cross-compiler works.
 
2220
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2221
  # <limits.h> exists even on freestanding compilers.
 
2222
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2223
  # not just through cpp. "Syntax error" is here to catch this case.
 
2224
  cat >conftest.$ac_ext <<_ACEOF
 
2225
/* confdefs.h.  */
 
2226
_ACEOF
 
2227
cat confdefs.h >>conftest.$ac_ext
 
2228
cat >>conftest.$ac_ext <<_ACEOF
 
2229
/* end confdefs.h.  */
 
2230
#ifdef __STDC__
 
2231
# include <limits.h>
 
2232
#else
 
2233
# include <assert.h>
 
2234
#endif
 
2235
                     Syntax error
 
2236
_ACEOF
 
2237
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2238
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2239
  ac_status=$?
 
2240
  grep -v '^ *+' conftest.er1 >conftest.err
 
2241
  rm -f conftest.er1
 
2242
  cat conftest.err >&5
 
2243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2244
  (exit $ac_status); } >/dev/null; then
 
2245
  if test -s conftest.err; then
 
2246
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2247
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2248
  else
 
2249
    ac_cpp_err=
 
2250
  fi
 
2251
else
 
2252
  ac_cpp_err=yes
 
2253
fi
 
2254
if test -z "$ac_cpp_err"; then
 
2255
  :
 
2256
else
 
2257
  echo "$as_me: failed program was:" >&5
 
2258
sed 's/^/| /' conftest.$ac_ext >&5
 
2259
 
 
2260
  # Broken: fails on valid input.
 
2261
continue
 
2262
fi
 
2263
rm -f conftest.err conftest.$ac_ext
 
2264
 
 
2265
  # OK, works on sane cases.  Now check whether non-existent headers
 
2266
  # can be detected and how.
 
2267
  cat >conftest.$ac_ext <<_ACEOF
 
2268
/* confdefs.h.  */
 
2269
_ACEOF
 
2270
cat confdefs.h >>conftest.$ac_ext
 
2271
cat >>conftest.$ac_ext <<_ACEOF
 
2272
/* end confdefs.h.  */
 
2273
#include <ac_nonexistent.h>
 
2274
_ACEOF
 
2275
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2276
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2277
  ac_status=$?
 
2278
  grep -v '^ *+' conftest.er1 >conftest.err
 
2279
  rm -f conftest.er1
 
2280
  cat conftest.err >&5
 
2281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2282
  (exit $ac_status); } >/dev/null; then
 
2283
  if test -s conftest.err; then
 
2284
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2285
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2286
  else
 
2287
    ac_cpp_err=
 
2288
  fi
 
2289
else
 
2290
  ac_cpp_err=yes
 
2291
fi
 
2292
if test -z "$ac_cpp_err"; then
 
2293
  # Broken: success on invalid input.
 
2294
continue
 
2295
else
 
2296
  echo "$as_me: failed program was:" >&5
 
2297
sed 's/^/| /' conftest.$ac_ext >&5
 
2298
 
 
2299
  # Passes both tests.
 
2300
ac_preproc_ok=:
 
2301
break
 
2302
fi
 
2303
rm -f conftest.err conftest.$ac_ext
 
2304
 
 
2305
done
 
2306
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2307
rm -f conftest.err conftest.$ac_ext
 
2308
if $ac_preproc_ok; then
 
2309
  break
 
2310
fi
 
2311
 
 
2312
    done
 
2313
    ac_cv_prog_CPP=$CPP
 
2314
 
 
2315
fi
 
2316
  CPP=$ac_cv_prog_CPP
 
2317
else
 
2318
  ac_cv_prog_CPP=$CPP
 
2319
fi
 
2320
echo "$as_me:$LINENO: result: $CPP" >&5
 
2321
echo "${ECHO_T}$CPP" >&6
 
2322
ac_preproc_ok=false
 
2323
for ac_c_preproc_warn_flag in '' yes
 
2324
do
 
2325
  # Use a header file that comes with gcc, so configuring glibc
 
2326
  # with a fresh cross-compiler works.
 
2327
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2328
  # <limits.h> exists even on freestanding compilers.
 
2329
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2330
  # not just through cpp. "Syntax error" is here to catch this case.
 
2331
  cat >conftest.$ac_ext <<_ACEOF
 
2332
/* confdefs.h.  */
 
2333
_ACEOF
 
2334
cat confdefs.h >>conftest.$ac_ext
 
2335
cat >>conftest.$ac_ext <<_ACEOF
 
2336
/* end confdefs.h.  */
 
2337
#ifdef __STDC__
 
2338
# include <limits.h>
 
2339
#else
 
2340
# include <assert.h>
 
2341
#endif
 
2342
                     Syntax error
 
2343
_ACEOF
 
2344
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2345
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2346
  ac_status=$?
 
2347
  grep -v '^ *+' conftest.er1 >conftest.err
 
2348
  rm -f conftest.er1
 
2349
  cat conftest.err >&5
 
2350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2351
  (exit $ac_status); } >/dev/null; then
 
2352
  if test -s conftest.err; then
 
2353
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2354
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2355
  else
 
2356
    ac_cpp_err=
 
2357
  fi
 
2358
else
 
2359
  ac_cpp_err=yes
 
2360
fi
 
2361
if test -z "$ac_cpp_err"; then
 
2362
  :
 
2363
else
 
2364
  echo "$as_me: failed program was:" >&5
 
2365
sed 's/^/| /' conftest.$ac_ext >&5
 
2366
 
 
2367
  # Broken: fails on valid input.
 
2368
continue
 
2369
fi
 
2370
rm -f conftest.err conftest.$ac_ext
 
2371
 
 
2372
  # OK, works on sane cases.  Now check whether non-existent headers
 
2373
  # can be detected and how.
 
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
#include <ac_nonexistent.h>
 
2381
_ACEOF
 
2382
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2383
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2384
  ac_status=$?
 
2385
  grep -v '^ *+' conftest.er1 >conftest.err
 
2386
  rm -f conftest.er1
 
2387
  cat conftest.err >&5
 
2388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2389
  (exit $ac_status); } >/dev/null; then
 
2390
  if test -s conftest.err; then
 
2391
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2392
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2393
  else
 
2394
    ac_cpp_err=
 
2395
  fi
 
2396
else
 
2397
  ac_cpp_err=yes
 
2398
fi
 
2399
if test -z "$ac_cpp_err"; then
 
2400
  # Broken: success on invalid input.
 
2401
continue
 
2402
else
 
2403
  echo "$as_me: failed program was:" >&5
 
2404
sed 's/^/| /' conftest.$ac_ext >&5
 
2405
 
 
2406
  # Passes both tests.
 
2407
ac_preproc_ok=:
 
2408
break
 
2409
fi
 
2410
rm -f conftest.err conftest.$ac_ext
 
2411
 
 
2412
done
 
2413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2414
rm -f conftest.err conftest.$ac_ext
 
2415
if $ac_preproc_ok; then
 
2416
  :
 
2417
else
 
2418
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2419
See \`config.log' for more details." >&5
 
2420
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2421
See \`config.log' for more details." >&2;}
 
2422
   { (exit 1); exit 1; }; }
 
2423
fi
 
2424
 
 
2425
ac_ext=c
 
2426
ac_cpp='$CPP $CPPFLAGS'
 
2427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
836
2430
 
837
2431
 
838
2432
                rlm_krb5_lib_dir=
839
 
        # Check whether --with-rlm-krb5-lib-dir or --without-rlm-krb5-lib-dir was given.
 
2433
 
 
2434
# Check whether --with-rlm-krb5-lib-dir or --without-rlm-krb5-lib-dir was given.
840
2435
if test "${with_rlm_krb5_lib_dir+set}" = set; then
841
2436
  withval="$with_rlm_krb5_lib_dir"
842
2437
   case "$withval" in
843
2438
            no)
844
 
                { echo "configure: error: Need rlm-krb5-lib-dir" 1>&2; exit 1; }
 
2439
                { { echo "$as_me:$LINENO: error: Need rlm-krb5-lib-dir" >&5
 
2440
echo "$as_me: error: Need rlm-krb5-lib-dir" >&2;}
 
2441
   { (exit 1); exit 1; }; }
845
2442
                ;;
846
2443
            yes)
847
2444
                ;;
848
2445
            *)
849
2446
                rlm_krb5_lib_dir="$withval"
850
2447
                ;;
851
 
          esac 
852
 
        
853
 
fi
 
2448
          esac
854
2449
 
 
2450
fi;
855
2451
 
856
2452
                rlm_krb5_inc_dir=
857
 
        # Check whether --with-rlm-krb5-include-dir or --without-rlm-krb5-include-dir was given.
 
2453
 
 
2454
# Check whether --with-rlm-krb5-include-dir or --without-rlm-krb5-include-dir was given.
858
2455
if test "${with_rlm_krb5_include_dir+set}" = set; then
859
2456
  withval="$with_rlm_krb5_include_dir"
860
2457
   case "$withval" in
861
2458
            no)
862
 
                { echo "configure: error: Need rlm-krb5-include-dir" 1>&2; exit 1; }
 
2459
                { { echo "$as_me:$LINENO: error: Need rlm-krb5-include-dir" >&5
 
2460
echo "$as_me: error: Need rlm-krb5-include-dir" >&2;}
 
2461
   { (exit 1); exit 1; }; }
863
2462
                ;;
864
2463
            yes)
865
2464
                ;;
866
2465
            *)
867
2466
                rlm_krb5_include_dir="$withval"
868
2467
                ;;
869
 
          esac 
870
 
        
871
 
fi
 
2468
          esac
872
2469
 
 
2470
fi;
873
2471
 
874
2472
              # Check whether --enable-heimdal-krb5 or --disable-heimdal-krb5 was given.
875
2473
if test "${enable_heimdal_krb5+set}" = set; then
878
2476
               yes)
879
2477
                       krb5_h_cflags="-DHEIMDAL_KRB5"
880
2478
                       ;;
881
 
         esac 
882
 
       
883
 
fi
 
2479
         esac
884
2480
 
 
2481
fi;
885
2482
 
886
2483
        smart_try_dir=$rlm_krb5_include_dir
887
 
        
 
2484
 
 
2485
 
888
2486
 
889
2487
ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
890
 
echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
891
 
echo "configure:892: checking for krb5.h" >&5
 
2488
echo "$as_me:$LINENO: checking for krb5.h" >&5
 
2489
echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
892
2490
 
 
2491
old_CFLAGS="$CFLAGS"
893
2492
smart_include=
894
2493
smart_include_dir=
895
2494
 
896
 
  old_CFLAGS="$CFLAGS"
897
 
  cat > conftest.$ac_ext <<EOF
898
 
#line 899 "configure"
899
 
#include "confdefs.h"
 
2495
if test "x$smart_try_dir" != "x"; then
 
2496
  for try in $smart_try_dir; do
 
2497
    CFLAGS="$old_CFLAGS -I$try"
 
2498
    cat >conftest.$ac_ext <<_ACEOF
 
2499
/* confdefs.h.  */
 
2500
_ACEOF
 
2501
cat confdefs.h >>conftest.$ac_ext
 
2502
cat >>conftest.$ac_ext <<_ACEOF
 
2503
/* end confdefs.h.  */
 
2504
 
 
2505
                    #include <krb5.h>
 
2506
int
 
2507
main ()
 
2508
{
 
2509
 int a = 1;
 
2510
  ;
 
2511
  return 0;
 
2512
}
 
2513
_ACEOF
 
2514
rm -f conftest.$ac_objext
 
2515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2516
  (eval $ac_compile) 2>conftest.er1
 
2517
  ac_status=$?
 
2518
  grep -v '^ *+' conftest.er1 >conftest.err
 
2519
  rm -f conftest.er1
 
2520
  cat conftest.err >&5
 
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2522
  (exit $ac_status); } &&
 
2523
         { ac_try='test -z "$ac_c_werror_flag"
 
2524
                         || test ! -s conftest.err'
 
2525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2526
  (eval $ac_try) 2>&5
 
2527
  ac_status=$?
 
2528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2529
  (exit $ac_status); }; } &&
 
2530
         { ac_try='test -s conftest.$ac_objext'
 
2531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2532
  (eval $ac_try) 2>&5
 
2533
  ac_status=$?
 
2534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2535
  (exit $ac_status); }; }; then
 
2536
  smart_include="-I$try"
 
2537
else
 
2538
  echo "$as_me: failed program was:" >&5
 
2539
sed 's/^/| /' conftest.$ac_ext >&5
 
2540
 
 
2541
smart_include=
 
2542
fi
 
2543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2544
    if test "x$smart_include" != "x"; then
 
2545
      break;
 
2546
    fi
 
2547
  done
 
2548
  CFLAGS="$old_CFLAGS"
 
2549
fi
 
2550
 
 
2551
if test "x$smart_include" = "x"; then
 
2552
  cat >conftest.$ac_ext <<_ACEOF
 
2553
/* confdefs.h.  */
 
2554
_ACEOF
 
2555
cat confdefs.h >>conftest.$ac_ext
 
2556
cat >>conftest.$ac_ext <<_ACEOF
 
2557
/* end confdefs.h.  */
900
2558
 
901
2559
                  #include <krb5.h>
902
 
int main() {
 
2560
int
 
2561
main ()
 
2562
{
903
2563
 int a = 1;
904
 
; return 0; }
905
 
EOF
906
 
if { (eval echo configure:907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
907
 
  rm -rf conftest*
 
2564
  ;
 
2565
  return 0;
 
2566
}
 
2567
_ACEOF
 
2568
rm -f conftest.$ac_objext
 
2569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2570
  (eval $ac_compile) 2>conftest.er1
 
2571
  ac_status=$?
 
2572
  grep -v '^ *+' conftest.er1 >conftest.err
 
2573
  rm -f conftest.er1
 
2574
  cat conftest.err >&5
 
2575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2576
  (exit $ac_status); } &&
 
2577
         { ac_try='test -z "$ac_c_werror_flag"
 
2578
                         || test ! -s conftest.err'
 
2579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2580
  (eval $ac_try) 2>&5
 
2581
  ac_status=$?
 
2582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2583
  (exit $ac_status); }; } &&
 
2584
         { ac_try='test -s conftest.$ac_objext'
 
2585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2586
  (eval $ac_try) 2>&5
 
2587
  ac_status=$?
 
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2589
  (exit $ac_status); }; }; then
908
2590
  smart_include=" "
909
2591
else
910
 
  echo "configure: failed program was:" >&5
911
 
  cat conftest.$ac_ext >&5
912
 
  rm -rf conftest*
913
 
  smart_include=
914
 
fi
915
 
rm -f conftest*
916
 
 
917
 
  if test "x$smart_include" = "x"; then
918
 
    
 
2592
  echo "$as_me: failed program was:" >&5
 
2593
sed 's/^/| /' conftest.$ac_ext >&5
 
2594
 
 
2595
smart_include=
 
2596
fi
 
2597
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2598
fi
 
2599
 
 
2600
if test "x$smart_include" = "x"; then
 
2601
 
919
2602
 
920
2603
if test "x$LOCATE" != "x"; then
921
2604
        DIRS=
943
2626
eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
944
2627
 
945
2628
 
946
 
    for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
947
 
      CFLAGS="$old_CFLAGS -I$try"
948
 
 
949
 
      cat > conftest.$ac_ext <<EOF
950
 
#line 951 "configure"
951
 
#include "confdefs.h"
952
 
 
953
 
                       #include <krb5.h>
954
 
int main() {
 
2629
  for try in $smart_include_dir /usr/local/include /opt/include; do
 
2630
    CFLAGS="$old_CFLAGS -I$try"
 
2631
    cat >conftest.$ac_ext <<_ACEOF
 
2632
/* confdefs.h.  */
 
2633
_ACEOF
 
2634
cat confdefs.h >>conftest.$ac_ext
 
2635
cat >>conftest.$ac_ext <<_ACEOF
 
2636
/* end confdefs.h.  */
 
2637
 
 
2638
                    #include <krb5.h>
 
2639
int
 
2640
main ()
 
2641
{
955
2642
 int a = 1;
956
 
; return 0; }
957
 
EOF
958
 
if { (eval echo configure:959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
959
 
  rm -rf conftest*
 
2643
  ;
 
2644
  return 0;
 
2645
}
 
2646
_ACEOF
 
2647
rm -f conftest.$ac_objext
 
2648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2649
  (eval $ac_compile) 2>conftest.er1
 
2650
  ac_status=$?
 
2651
  grep -v '^ *+' conftest.er1 >conftest.err
 
2652
  rm -f conftest.er1
 
2653
  cat conftest.err >&5
 
2654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2655
  (exit $ac_status); } &&
 
2656
         { ac_try='test -z "$ac_c_werror_flag"
 
2657
                         || test ! -s conftest.err'
 
2658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2659
  (eval $ac_try) 2>&5
 
2660
  ac_status=$?
 
2661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2662
  (exit $ac_status); }; } &&
 
2663
         { ac_try='test -s conftest.$ac_objext'
 
2664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2665
  (eval $ac_try) 2>&5
 
2666
  ac_status=$?
 
2667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2668
  (exit $ac_status); }; }; then
960
2669
  smart_include="-I$try"
961
2670
else
962
 
  echo "configure: failed program was:" >&5
963
 
  cat conftest.$ac_ext >&5
964
 
  rm -rf conftest*
965
 
  smart_include=
966
 
fi
967
 
rm -f conftest*
968
 
 
969
 
      if test "x$smart_include" != "x"; then
970
 
        break;
971
 
      fi
972
 
    done
973
 
    CFLAGS="$old_CFLAGS"
974
 
  fi
975
 
 
976
 
        if test "x$smart_include" != "x"; then
977
 
    echo "$ac_t""yes" 1>&6
978
 
    eval "ac_cv_header_$ac_safe=yes"
979
 
    CFLAGS="$old_CFLAGS $smart_include"
980
 
    SMART_CFLAGS="$SMART_CFLAGS $smart_include"
981
 
  else
982
 
    echo "$ac_t""no" 1>&6 
 
2671
  echo "$as_me: failed program was:" >&5
 
2672
sed 's/^/| /' conftest.$ac_ext >&5
 
2673
 
 
2674
smart_include=
 
2675
fi
 
2676
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2677
    if test "x$smart_include" != "x"; then
 
2678
      break;
 
2679
    fi
 
2680
  done
 
2681
  CFLAGS="$old_CFLAGS"
 
2682
fi
 
2683
 
 
2684
if test "x$smart_include" != "x"; then
 
2685
  echo "$as_me:$LINENO: result: yes" >&5
 
2686
echo "${ECHO_T}yes" >&6
 
2687
  eval "ac_cv_header_$ac_safe=yes"
 
2688
  CFLAGS="$old_CFLAGS $smart_include"
 
2689
  SMART_CFLAGS="$SMART_CFLAGS $smart_include"
 
2690
else
 
2691
  echo "$as_me:$LINENO: result: no" >&5
 
2692
echo "${ECHO_T}no" >&6
983
2693
fi
984
2694
 
985
2695
 
986
2696
        smart_try_dir=$rlm_krb5_lib_dir
987
2697
 
988
 
        
 
2698
 
989
2699
 
990
2700
sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
991
2701
sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
992
 
echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
993
 
echo "configure:994: checking for krb5_encrypt_data in -lk5crypto" >&5
 
2702
echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
 
2703
echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
994
2704
 
 
2705
old_LIBS="$LIBS"
995
2706
smart_lib=
996
2707
smart_lib_dir=
997
2708
 
998
 
  old_LIBS="$LIBS"
999
 
  LIBS="$LIBS -lk5crypto"
1000
 
  cat > conftest.$ac_ext <<EOF
1001
 
#line 1002 "configure"
1002
 
#include "confdefs.h"
1003
 
extern char krb5_encrypt_data();
1004
 
int main() {
1005
 
 krb5_encrypt_data()
1006
 
; return 0; }
1007
 
EOF
1008
 
if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1009
 
  rm -rf conftest*
 
2709
if test "x$smart_try_dir" != "x"; then
 
2710
  for try in $smart_try_dir; do
 
2711
    LIBS="-L$try -lk5crypto $old_LIBS"
 
2712
    cat >conftest.$ac_ext <<_ACEOF
 
2713
/* confdefs.h.  */
 
2714
_ACEOF
 
2715
cat confdefs.h >>conftest.$ac_ext
 
2716
cat >>conftest.$ac_ext <<_ACEOF
 
2717
/* end confdefs.h.  */
 
2718
extern char krb5_encrypt_data();
 
2719
int
 
2720
main ()
 
2721
{
 
2722
 krb5_encrypt_data()
 
2723
  ;
 
2724
  return 0;
 
2725
}
 
2726
_ACEOF
 
2727
rm -f conftest.$ac_objext conftest$ac_exeext
 
2728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2729
  (eval $ac_link) 2>conftest.er1
 
2730
  ac_status=$?
 
2731
  grep -v '^ *+' conftest.er1 >conftest.err
 
2732
  rm -f conftest.er1
 
2733
  cat conftest.err >&5
 
2734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2735
  (exit $ac_status); } &&
 
2736
         { ac_try='test -z "$ac_c_werror_flag"
 
2737
                         || test ! -s conftest.err'
 
2738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2739
  (eval $ac_try) 2>&5
 
2740
  ac_status=$?
 
2741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2742
  (exit $ac_status); }; } &&
 
2743
         { ac_try='test -s conftest$ac_exeext'
 
2744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2745
  (eval $ac_try) 2>&5
 
2746
  ac_status=$?
 
2747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2748
  (exit $ac_status); }; }; then
 
2749
  smart_lib="-L$try -lk5crypto"
 
2750
else
 
2751
  echo "$as_me: failed program was:" >&5
 
2752
sed 's/^/| /' conftest.$ac_ext >&5
 
2753
 
 
2754
fi
 
2755
rm -f conftest.err conftest.$ac_objext \
 
2756
      conftest$ac_exeext conftest.$ac_ext
 
2757
    if test "x$smart_lib" != "x"; then
 
2758
      break;
 
2759
    fi
 
2760
  done
 
2761
  LIBS="$old_LIBS"
 
2762
fi
 
2763
 
 
2764
if test "x$smart_lib" = "x"; then
 
2765
  LIBS="-lk5crypto $old_LIBS"
 
2766
  cat >conftest.$ac_ext <<_ACEOF
 
2767
/* confdefs.h.  */
 
2768
_ACEOF
 
2769
cat confdefs.h >>conftest.$ac_ext
 
2770
cat >>conftest.$ac_ext <<_ACEOF
 
2771
/* end confdefs.h.  */
 
2772
extern char krb5_encrypt_data();
 
2773
int
 
2774
main ()
 
2775
{
 
2776
 krb5_encrypt_data()
 
2777
  ;
 
2778
  return 0;
 
2779
}
 
2780
_ACEOF
 
2781
rm -f conftest.$ac_objext conftest$ac_exeext
 
2782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2783
  (eval $ac_link) 2>conftest.er1
 
2784
  ac_status=$?
 
2785
  grep -v '^ *+' conftest.er1 >conftest.err
 
2786
  rm -f conftest.er1
 
2787
  cat conftest.err >&5
 
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2789
  (exit $ac_status); } &&
 
2790
         { ac_try='test -z "$ac_c_werror_flag"
 
2791
                         || test ! -s conftest.err'
 
2792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2793
  (eval $ac_try) 2>&5
 
2794
  ac_status=$?
 
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2796
  (exit $ac_status); }; } &&
 
2797
         { ac_try='test -s conftest$ac_exeext'
 
2798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2799
  (eval $ac_try) 2>&5
 
2800
  ac_status=$?
 
2801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2802
  (exit $ac_status); }; }; then
1010
2803
  smart_lib="-lk5crypto"
1011
2804
else
1012
 
  echo "configure: failed program was:" >&5
1013
 
  cat conftest.$ac_ext >&5
1014
 
fi
1015
 
rm -f conftest*
1016
 
 
1017
 
  if test "x$smart_lib" = "x"; then
1018
 
    
 
2805
  echo "$as_me: failed program was:" >&5
 
2806
sed 's/^/| /' conftest.$ac_ext >&5
 
2807
 
 
2808
fi
 
2809
rm -f conftest.err conftest.$ac_objext \
 
2810
      conftest$ac_exeext conftest.$ac_ext
 
2811
  LIBS="$old_LIBS"
 
2812
fi
 
2813
 
 
2814
if test "x$smart_lib" = "x"; then
 
2815
 
1019
2816
 
1020
2817
if test "x$LOCATE" != "x"; then
1021
2818
        DIRS=
1042
2839
 
1043
2840
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1044
2841
 
1045
 
    
 
2842
 
1046
2843
 
1047
2844
if test "x$LOCATE" != "x"; then
1048
2845
        DIRS=
1070
2867
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1071
2868
 
1072
2869
 
1073
 
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1074
 
      LIBS="$old_LIBS -L$try -lk5crypto"
1075
 
 
1076
 
      cat > conftest.$ac_ext <<EOF
1077
 
#line 1078 "configure"
1078
 
#include "confdefs.h"
 
2870
  for try in $smart_lib_dir /usr/local/lib /opt/lib; do
 
2871
    LIBS="-L$try -lk5crypto $old_LIBS"
 
2872
    cat >conftest.$ac_ext <<_ACEOF
 
2873
/* confdefs.h.  */
 
2874
_ACEOF
 
2875
cat confdefs.h >>conftest.$ac_ext
 
2876
cat >>conftest.$ac_ext <<_ACEOF
 
2877
/* end confdefs.h.  */
1079
2878
extern char krb5_encrypt_data();
1080
 
int main() {
 
2879
int
 
2880
main ()
 
2881
{
1081
2882
 krb5_encrypt_data()
1082
 
; return 0; }
1083
 
EOF
1084
 
if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1085
 
  rm -rf conftest*
 
2883
  ;
 
2884
  return 0;
 
2885
}
 
2886
_ACEOF
 
2887
rm -f conftest.$ac_objext conftest$ac_exeext
 
2888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2889
  (eval $ac_link) 2>conftest.er1
 
2890
  ac_status=$?
 
2891
  grep -v '^ *+' conftest.er1 >conftest.err
 
2892
  rm -f conftest.er1
 
2893
  cat conftest.err >&5
 
2894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2895
  (exit $ac_status); } &&
 
2896
         { ac_try='test -z "$ac_c_werror_flag"
 
2897
                         || test ! -s conftest.err'
 
2898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2899
  (eval $ac_try) 2>&5
 
2900
  ac_status=$?
 
2901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2902
  (exit $ac_status); }; } &&
 
2903
         { ac_try='test -s conftest$ac_exeext'
 
2904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2905
  (eval $ac_try) 2>&5
 
2906
  ac_status=$?
 
2907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2908
  (exit $ac_status); }; }; then
1086
2909
  smart_lib="-L$try -lk5crypto"
1087
2910
else
1088
 
  echo "configure: failed program was:" >&5
1089
 
  cat conftest.$ac_ext >&5
1090
 
fi
1091
 
rm -f conftest*
1092
 
      if test "x$smart_lib" != "x"; then
1093
 
        break;
1094
 
      fi
1095
 
    done
1096
 
    LIBS="$old_LIBS"
1097
 
  fi
1098
 
 
1099
 
        if test "x$smart_lib" != "x"; then
1100
 
    echo "$ac_t""yes" 1>&6
1101
 
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1102
 
    LIBS="$old_LIBS $smart_lib"
1103
 
    SMART_LIBS="$SMART_LIBS $smart_lib"
1104
 
  else
1105
 
    echo "$ac_t""no" 1>&6 
 
2911
  echo "$as_me: failed program was:" >&5
 
2912
sed 's/^/| /' conftest.$ac_ext >&5
 
2913
 
 
2914
fi
 
2915
rm -f conftest.err conftest.$ac_objext \
 
2916
      conftest$ac_exeext conftest.$ac_ext
 
2917
    if test "x$smart_lib" != "x"; then
 
2918
      break;
 
2919
    fi
 
2920
  done
 
2921
  LIBS="$old_LIBS"
 
2922
fi
 
2923
 
 
2924
if test "x$smart_lib" != "x"; then
 
2925
  echo "$as_me:$LINENO: result: yes" >&5
 
2926
echo "${ECHO_T}yes" >&6
 
2927
  eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
2928
  LIBS="$smart_lib $old_LIBS"
 
2929
  SMART_LIBS="$smart_lib $SMART_LIBS"
 
2930
else
 
2931
  echo "$as_me:$LINENO: result: no" >&5
 
2932
echo "${ECHO_T}no" >&6
1106
2933
fi
1107
2934
 
1108
2935
        if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = "xyes"; then
1109
2936
                krb5libcrypto="-lk5crypto"
1110
2937
        fi
1111
2938
 
1112
 
        
 
2939
 
1113
2940
 
1114
2941
sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
1115
2942
sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
1116
 
echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
1117
 
echo "configure:1118: checking for DH_new in -lcrypto" >&5
 
2943
echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
 
2944
echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
1118
2945
 
 
2946
old_LIBS="$LIBS"
1119
2947
smart_lib=
1120
2948
smart_lib_dir=
1121
2949
 
1122
 
  old_LIBS="$LIBS"
1123
 
  LIBS="$LIBS -lcrypto"
1124
 
  cat > conftest.$ac_ext <<EOF
1125
 
#line 1126 "configure"
1126
 
#include "confdefs.h"
1127
 
extern char DH_new();
1128
 
int main() {
1129
 
 DH_new()
1130
 
; return 0; }
1131
 
EOF
1132
 
if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133
 
  rm -rf conftest*
 
2950
if test "x$smart_try_dir" != "x"; then
 
2951
  for try in $smart_try_dir; do
 
2952
    LIBS="-L$try -lcrypto $old_LIBS"
 
2953
    cat >conftest.$ac_ext <<_ACEOF
 
2954
/* confdefs.h.  */
 
2955
_ACEOF
 
2956
cat confdefs.h >>conftest.$ac_ext
 
2957
cat >>conftest.$ac_ext <<_ACEOF
 
2958
/* end confdefs.h.  */
 
2959
extern char DH_new();
 
2960
int
 
2961
main ()
 
2962
{
 
2963
 DH_new()
 
2964
  ;
 
2965
  return 0;
 
2966
}
 
2967
_ACEOF
 
2968
rm -f conftest.$ac_objext conftest$ac_exeext
 
2969
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2970
  (eval $ac_link) 2>conftest.er1
 
2971
  ac_status=$?
 
2972
  grep -v '^ *+' conftest.er1 >conftest.err
 
2973
  rm -f conftest.er1
 
2974
  cat conftest.err >&5
 
2975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2976
  (exit $ac_status); } &&
 
2977
         { ac_try='test -z "$ac_c_werror_flag"
 
2978
                         || test ! -s conftest.err'
 
2979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2980
  (eval $ac_try) 2>&5
 
2981
  ac_status=$?
 
2982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2983
  (exit $ac_status); }; } &&
 
2984
         { ac_try='test -s conftest$ac_exeext'
 
2985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2986
  (eval $ac_try) 2>&5
 
2987
  ac_status=$?
 
2988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2989
  (exit $ac_status); }; }; then
 
2990
  smart_lib="-L$try -lcrypto"
 
2991
else
 
2992
  echo "$as_me: failed program was:" >&5
 
2993
sed 's/^/| /' conftest.$ac_ext >&5
 
2994
 
 
2995
fi
 
2996
rm -f conftest.err conftest.$ac_objext \
 
2997
      conftest$ac_exeext conftest.$ac_ext
 
2998
    if test "x$smart_lib" != "x"; then
 
2999
      break;
 
3000
    fi
 
3001
  done
 
3002
  LIBS="$old_LIBS"
 
3003
fi
 
3004
 
 
3005
if test "x$smart_lib" = "x"; then
 
3006
  LIBS="-lcrypto $old_LIBS"
 
3007
  cat >conftest.$ac_ext <<_ACEOF
 
3008
/* confdefs.h.  */
 
3009
_ACEOF
 
3010
cat confdefs.h >>conftest.$ac_ext
 
3011
cat >>conftest.$ac_ext <<_ACEOF
 
3012
/* end confdefs.h.  */
 
3013
extern char DH_new();
 
3014
int
 
3015
main ()
 
3016
{
 
3017
 DH_new()
 
3018
  ;
 
3019
  return 0;
 
3020
}
 
3021
_ACEOF
 
3022
rm -f conftest.$ac_objext conftest$ac_exeext
 
3023
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3024
  (eval $ac_link) 2>conftest.er1
 
3025
  ac_status=$?
 
3026
  grep -v '^ *+' conftest.er1 >conftest.err
 
3027
  rm -f conftest.er1
 
3028
  cat conftest.err >&5
 
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3030
  (exit $ac_status); } &&
 
3031
         { ac_try='test -z "$ac_c_werror_flag"
 
3032
                         || test ! -s conftest.err'
 
3033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3034
  (eval $ac_try) 2>&5
 
3035
  ac_status=$?
 
3036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3037
  (exit $ac_status); }; } &&
 
3038
         { ac_try='test -s conftest$ac_exeext'
 
3039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3040
  (eval $ac_try) 2>&5
 
3041
  ac_status=$?
 
3042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3043
  (exit $ac_status); }; }; then
1134
3044
  smart_lib="-lcrypto"
1135
3045
else
1136
 
  echo "configure: failed program was:" >&5
1137
 
  cat conftest.$ac_ext >&5
1138
 
fi
1139
 
rm -f conftest*
1140
 
 
1141
 
  if test "x$smart_lib" = "x"; then
1142
 
    
 
3046
  echo "$as_me: failed program was:" >&5
 
3047
sed 's/^/| /' conftest.$ac_ext >&5
 
3048
 
 
3049
fi
 
3050
rm -f conftest.err conftest.$ac_objext \
 
3051
      conftest$ac_exeext conftest.$ac_ext
 
3052
  LIBS="$old_LIBS"
 
3053
fi
 
3054
 
 
3055
if test "x$smart_lib" = "x"; then
 
3056
 
1143
3057
 
1144
3058
if test "x$LOCATE" != "x"; then
1145
3059
        DIRS=
1166
3080
 
1167
3081
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1168
3082
 
1169
 
    
 
3083
 
1170
3084
 
1171
3085
if test "x$LOCATE" != "x"; then
1172
3086
        DIRS=
1194
3108
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1195
3109
 
1196
3110
 
1197
 
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1198
 
      LIBS="$old_LIBS -L$try -lcrypto"
1199
 
 
1200
 
      cat > conftest.$ac_ext <<EOF
1201
 
#line 1202 "configure"
1202
 
#include "confdefs.h"
 
3111
  for try in $smart_lib_dir /usr/local/lib /opt/lib; do
 
3112
    LIBS="-L$try -lcrypto $old_LIBS"
 
3113
    cat >conftest.$ac_ext <<_ACEOF
 
3114
/* confdefs.h.  */
 
3115
_ACEOF
 
3116
cat confdefs.h >>conftest.$ac_ext
 
3117
cat >>conftest.$ac_ext <<_ACEOF
 
3118
/* end confdefs.h.  */
1203
3119
extern char DH_new();
1204
 
int main() {
 
3120
int
 
3121
main ()
 
3122
{
1205
3123
 DH_new()
1206
 
; return 0; }
1207
 
EOF
1208
 
if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209
 
  rm -rf conftest*
 
3124
  ;
 
3125
  return 0;
 
3126
}
 
3127
_ACEOF
 
3128
rm -f conftest.$ac_objext conftest$ac_exeext
 
3129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3130
  (eval $ac_link) 2>conftest.er1
 
3131
  ac_status=$?
 
3132
  grep -v '^ *+' conftest.er1 >conftest.err
 
3133
  rm -f conftest.er1
 
3134
  cat conftest.err >&5
 
3135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3136
  (exit $ac_status); } &&
 
3137
         { ac_try='test -z "$ac_c_werror_flag"
 
3138
                         || test ! -s conftest.err'
 
3139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3140
  (eval $ac_try) 2>&5
 
3141
  ac_status=$?
 
3142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3143
  (exit $ac_status); }; } &&
 
3144
         { ac_try='test -s conftest$ac_exeext'
 
3145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3146
  (eval $ac_try) 2>&5
 
3147
  ac_status=$?
 
3148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3149
  (exit $ac_status); }; }; then
1210
3150
  smart_lib="-L$try -lcrypto"
1211
3151
else
1212
 
  echo "configure: failed program was:" >&5
1213
 
  cat conftest.$ac_ext >&5
1214
 
fi
1215
 
rm -f conftest*
1216
 
      if test "x$smart_lib" != "x"; then
1217
 
        break;
1218
 
      fi
1219
 
    done
1220
 
    LIBS="$old_LIBS"
1221
 
  fi
1222
 
 
1223
 
        if test "x$smart_lib" != "x"; then
1224
 
    echo "$ac_t""yes" 1>&6
1225
 
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1226
 
    LIBS="$old_LIBS $smart_lib"
1227
 
    SMART_LIBS="$SMART_LIBS $smart_lib"
1228
 
  else
1229
 
    echo "$ac_t""no" 1>&6 
 
3152
  echo "$as_me: failed program was:" >&5
 
3153
sed 's/^/| /' conftest.$ac_ext >&5
 
3154
 
 
3155
fi
 
3156
rm -f conftest.err conftest.$ac_objext \
 
3157
      conftest$ac_exeext conftest.$ac_ext
 
3158
    if test "x$smart_lib" != "x"; then
 
3159
      break;
 
3160
    fi
 
3161
  done
 
3162
  LIBS="$old_LIBS"
 
3163
fi
 
3164
 
 
3165
if test "x$smart_lib" != "x"; then
 
3166
  echo "$as_me:$LINENO: result: yes" >&5
 
3167
echo "${ECHO_T}yes" >&6
 
3168
  eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
3169
  LIBS="$smart_lib $old_LIBS"
 
3170
  SMART_LIBS="$smart_lib $SMART_LIBS"
 
3171
else
 
3172
  echo "$as_me:$LINENO: result: no" >&5
 
3173
echo "${ECHO_T}no" >&6
1230
3174
fi
1231
3175
 
1232
3176
        if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
1234
3178
        fi
1235
3179
 
1236
3180
        if test x$krb5libcrypto = x; then
1237
 
                echo "configure: warning: neither krb5 'k5crypto' nor 'crypto' libraries are found!" 1>&2
 
3181
                { echo "$as_me:$LINENO: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
 
3182
echo "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
1238
3183
        fi
1239
3184
 
1240
 
        
 
3185
 
1241
3186
 
1242
3187
sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
1243
3188
sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
1244
 
echo $ac_n "checking for set_com_err_hook in -lcom_err""... $ac_c" 1>&6
1245
 
echo "configure:1246: checking for set_com_err_hook in -lcom_err" >&5
 
3189
echo "$as_me:$LINENO: checking for set_com_err_hook in -lcom_err" >&5
 
3190
echo $ECHO_N "checking for set_com_err_hook in -lcom_err... $ECHO_C" >&6
1246
3191
 
 
3192
old_LIBS="$LIBS"
1247
3193
smart_lib=
1248
3194
smart_lib_dir=
1249
3195
 
1250
 
  old_LIBS="$LIBS"
1251
 
  LIBS="$LIBS -lcom_err"
1252
 
  cat > conftest.$ac_ext <<EOF
1253
 
#line 1254 "configure"
1254
 
#include "confdefs.h"
1255
 
extern char set_com_err_hook();
1256
 
int main() {
1257
 
 set_com_err_hook()
1258
 
; return 0; }
1259
 
EOF
1260
 
if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1261
 
  rm -rf conftest*
 
3196
if test "x$smart_try_dir" != "x"; then
 
3197
  for try in $smart_try_dir; do
 
3198
    LIBS="-L$try -lcom_err $old_LIBS"
 
3199
    cat >conftest.$ac_ext <<_ACEOF
 
3200
/* confdefs.h.  */
 
3201
_ACEOF
 
3202
cat confdefs.h >>conftest.$ac_ext
 
3203
cat >>conftest.$ac_ext <<_ACEOF
 
3204
/* end confdefs.h.  */
 
3205
extern char set_com_err_hook();
 
3206
int
 
3207
main ()
 
3208
{
 
3209
 set_com_err_hook()
 
3210
  ;
 
3211
  return 0;
 
3212
}
 
3213
_ACEOF
 
3214
rm -f conftest.$ac_objext conftest$ac_exeext
 
3215
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3216
  (eval $ac_link) 2>conftest.er1
 
3217
  ac_status=$?
 
3218
  grep -v '^ *+' conftest.er1 >conftest.err
 
3219
  rm -f conftest.er1
 
3220
  cat conftest.err >&5
 
3221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3222
  (exit $ac_status); } &&
 
3223
         { ac_try='test -z "$ac_c_werror_flag"
 
3224
                         || test ! -s conftest.err'
 
3225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3226
  (eval $ac_try) 2>&5
 
3227
  ac_status=$?
 
3228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3229
  (exit $ac_status); }; } &&
 
3230
         { ac_try='test -s conftest$ac_exeext'
 
3231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3232
  (eval $ac_try) 2>&5
 
3233
  ac_status=$?
 
3234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3235
  (exit $ac_status); }; }; then
 
3236
  smart_lib="-L$try -lcom_err"
 
3237
else
 
3238
  echo "$as_me: failed program was:" >&5
 
3239
sed 's/^/| /' conftest.$ac_ext >&5
 
3240
 
 
3241
fi
 
3242
rm -f conftest.err conftest.$ac_objext \
 
3243
      conftest$ac_exeext conftest.$ac_ext
 
3244
    if test "x$smart_lib" != "x"; then
 
3245
      break;
 
3246
    fi
 
3247
  done
 
3248
  LIBS="$old_LIBS"
 
3249
fi
 
3250
 
 
3251
if test "x$smart_lib" = "x"; then
 
3252
  LIBS="-lcom_err $old_LIBS"
 
3253
  cat >conftest.$ac_ext <<_ACEOF
 
3254
/* confdefs.h.  */
 
3255
_ACEOF
 
3256
cat confdefs.h >>conftest.$ac_ext
 
3257
cat >>conftest.$ac_ext <<_ACEOF
 
3258
/* end confdefs.h.  */
 
3259
extern char set_com_err_hook();
 
3260
int
 
3261
main ()
 
3262
{
 
3263
 set_com_err_hook()
 
3264
  ;
 
3265
  return 0;
 
3266
}
 
3267
_ACEOF
 
3268
rm -f conftest.$ac_objext conftest$ac_exeext
 
3269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3270
  (eval $ac_link) 2>conftest.er1
 
3271
  ac_status=$?
 
3272
  grep -v '^ *+' conftest.er1 >conftest.err
 
3273
  rm -f conftest.er1
 
3274
  cat conftest.err >&5
 
3275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3276
  (exit $ac_status); } &&
 
3277
         { ac_try='test -z "$ac_c_werror_flag"
 
3278
                         || test ! -s conftest.err'
 
3279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3280
  (eval $ac_try) 2>&5
 
3281
  ac_status=$?
 
3282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3283
  (exit $ac_status); }; } &&
 
3284
         { ac_try='test -s conftest$ac_exeext'
 
3285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3286
  (eval $ac_try) 2>&5
 
3287
  ac_status=$?
 
3288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); }; }; then
1262
3290
  smart_lib="-lcom_err"
1263
3291
else
1264
 
  echo "configure: failed program was:" >&5
1265
 
  cat conftest.$ac_ext >&5
1266
 
fi
1267
 
rm -f conftest*
1268
 
 
1269
 
  if test "x$smart_lib" = "x"; then
1270
 
    
 
3292
  echo "$as_me: failed program was:" >&5
 
3293
sed 's/^/| /' conftest.$ac_ext >&5
 
3294
 
 
3295
fi
 
3296
rm -f conftest.err conftest.$ac_objext \
 
3297
      conftest$ac_exeext conftest.$ac_ext
 
3298
  LIBS="$old_LIBS"
 
3299
fi
 
3300
 
 
3301
if test "x$smart_lib" = "x"; then
 
3302
 
1271
3303
 
1272
3304
if test "x$LOCATE" != "x"; then
1273
3305
        DIRS=
1294
3326
 
1295
3327
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1296
3328
 
1297
 
    
 
3329
 
1298
3330
 
1299
3331
if test "x$LOCATE" != "x"; then
1300
3332
        DIRS=
1322
3354
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1323
3355
 
1324
3356
 
1325
 
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1326
 
      LIBS="$old_LIBS -L$try -lcom_err"
1327
 
 
1328
 
      cat > conftest.$ac_ext <<EOF
1329
 
#line 1330 "configure"
1330
 
#include "confdefs.h"
 
3357
  for try in $smart_lib_dir /usr/local/lib /opt/lib; do
 
3358
    LIBS="-L$try -lcom_err $old_LIBS"
 
3359
    cat >conftest.$ac_ext <<_ACEOF
 
3360
/* confdefs.h.  */
 
3361
_ACEOF
 
3362
cat confdefs.h >>conftest.$ac_ext
 
3363
cat >>conftest.$ac_ext <<_ACEOF
 
3364
/* end confdefs.h.  */
1331
3365
extern char set_com_err_hook();
1332
 
int main() {
 
3366
int
 
3367
main ()
 
3368
{
1333
3369
 set_com_err_hook()
1334
 
; return 0; }
1335
 
EOF
1336
 
if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1337
 
  rm -rf conftest*
 
3370
  ;
 
3371
  return 0;
 
3372
}
 
3373
_ACEOF
 
3374
rm -f conftest.$ac_objext conftest$ac_exeext
 
3375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3376
  (eval $ac_link) 2>conftest.er1
 
3377
  ac_status=$?
 
3378
  grep -v '^ *+' conftest.er1 >conftest.err
 
3379
  rm -f conftest.er1
 
3380
  cat conftest.err >&5
 
3381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3382
  (exit $ac_status); } &&
 
3383
         { ac_try='test -z "$ac_c_werror_flag"
 
3384
                         || test ! -s conftest.err'
 
3385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3386
  (eval $ac_try) 2>&5
 
3387
  ac_status=$?
 
3388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3389
  (exit $ac_status); }; } &&
 
3390
         { ac_try='test -s conftest$ac_exeext'
 
3391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3392
  (eval $ac_try) 2>&5
 
3393
  ac_status=$?
 
3394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3395
  (exit $ac_status); }; }; then
1338
3396
  smart_lib="-L$try -lcom_err"
1339
3397
else
1340
 
  echo "configure: failed program was:" >&5
1341
 
  cat conftest.$ac_ext >&5
1342
 
fi
1343
 
rm -f conftest*
1344
 
      if test "x$smart_lib" != "x"; then
1345
 
        break;
1346
 
      fi
1347
 
    done
1348
 
    LIBS="$old_LIBS"
1349
 
  fi
1350
 
 
1351
 
        if test "x$smart_lib" != "x"; then
1352
 
    echo "$ac_t""yes" 1>&6
1353
 
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1354
 
    LIBS="$old_LIBS $smart_lib"
1355
 
    SMART_LIBS="$SMART_LIBS $smart_lib"
1356
 
  else
1357
 
    echo "$ac_t""no" 1>&6 
 
3398
  echo "$as_me: failed program was:" >&5
 
3399
sed 's/^/| /' conftest.$ac_ext >&5
 
3400
 
 
3401
fi
 
3402
rm -f conftest.err conftest.$ac_objext \
 
3403
      conftest$ac_exeext conftest.$ac_ext
 
3404
    if test "x$smart_lib" != "x"; then
 
3405
      break;
 
3406
    fi
 
3407
  done
 
3408
  LIBS="$old_LIBS"
 
3409
fi
 
3410
 
 
3411
if test "x$smart_lib" != "x"; then
 
3412
  echo "$as_me:$LINENO: result: yes" >&5
 
3413
echo "${ECHO_T}yes" >&6
 
3414
  eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
3415
  LIBS="$smart_lib $old_LIBS"
 
3416
  SMART_LIBS="$smart_lib $SMART_LIBS"
 
3417
else
 
3418
  echo "$as_me:$LINENO: result: no" >&5
 
3419
echo "${ECHO_T}no" >&6
1358
3420
fi
1359
3421
 
1360
3422
        if test "x$ac_cv_lib_com_err_set_com_err_hook" != "xyes"; then
1361
 
                echo "configure: warning: the comm_err library isn't found!" 1>&2 
 
3423
                { echo "$as_me:$LINENO: WARNING: the comm_err library isn't found!" >&5
 
3424
echo "$as_me: WARNING: the comm_err library isn't found!" >&2;}
1362
3425
        fi
1363
3426
 
1364
 
        
 
3427
 
1365
3428
 
1366
3429
sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
1367
3430
sm_func_safe=`echo "krb5_init_context" | sed 'y%./+-%__p_%'`
1368
 
echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
1369
 
echo "configure:1370: checking for krb5_init_context in -lkrb5" >&5
 
3431
echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
 
3432
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
1370
3433
 
 
3434
old_LIBS="$LIBS"
1371
3435
smart_lib=
1372
3436
smart_lib_dir=
1373
3437
 
1374
 
  old_LIBS="$LIBS"
1375
 
  LIBS="$LIBS -lkrb5"
1376
 
  cat > conftest.$ac_ext <<EOF
1377
 
#line 1378 "configure"
1378
 
#include "confdefs.h"
1379
 
extern char krb5_init_context();
1380
 
int main() {
1381
 
 krb5_init_context()
1382
 
; return 0; }
1383
 
EOF
1384
 
if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385
 
  rm -rf conftest*
 
3438
if test "x$smart_try_dir" != "x"; then
 
3439
  for try in $smart_try_dir; do
 
3440
    LIBS="-L$try -lkrb5 $old_LIBS"
 
3441
    cat >conftest.$ac_ext <<_ACEOF
 
3442
/* confdefs.h.  */
 
3443
_ACEOF
 
3444
cat confdefs.h >>conftest.$ac_ext
 
3445
cat >>conftest.$ac_ext <<_ACEOF
 
3446
/* end confdefs.h.  */
 
3447
extern char krb5_init_context();
 
3448
int
 
3449
main ()
 
3450
{
 
3451
 krb5_init_context()
 
3452
  ;
 
3453
  return 0;
 
3454
}
 
3455
_ACEOF
 
3456
rm -f conftest.$ac_objext conftest$ac_exeext
 
3457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3458
  (eval $ac_link) 2>conftest.er1
 
3459
  ac_status=$?
 
3460
  grep -v '^ *+' conftest.er1 >conftest.err
 
3461
  rm -f conftest.er1
 
3462
  cat conftest.err >&5
 
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3464
  (exit $ac_status); } &&
 
3465
         { ac_try='test -z "$ac_c_werror_flag"
 
3466
                         || test ! -s conftest.err'
 
3467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3468
  (eval $ac_try) 2>&5
 
3469
  ac_status=$?
 
3470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3471
  (exit $ac_status); }; } &&
 
3472
         { ac_try='test -s conftest$ac_exeext'
 
3473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3474
  (eval $ac_try) 2>&5
 
3475
  ac_status=$?
 
3476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3477
  (exit $ac_status); }; }; then
 
3478
  smart_lib="-L$try -lkrb5"
 
3479
else
 
3480
  echo "$as_me: failed program was:" >&5
 
3481
sed 's/^/| /' conftest.$ac_ext >&5
 
3482
 
 
3483
fi
 
3484
rm -f conftest.err conftest.$ac_objext \
 
3485
      conftest$ac_exeext conftest.$ac_ext
 
3486
    if test "x$smart_lib" != "x"; then
 
3487
      break;
 
3488
    fi
 
3489
  done
 
3490
  LIBS="$old_LIBS"
 
3491
fi
 
3492
 
 
3493
if test "x$smart_lib" = "x"; then
 
3494
  LIBS="-lkrb5 $old_LIBS"
 
3495
  cat >conftest.$ac_ext <<_ACEOF
 
3496
/* confdefs.h.  */
 
3497
_ACEOF
 
3498
cat confdefs.h >>conftest.$ac_ext
 
3499
cat >>conftest.$ac_ext <<_ACEOF
 
3500
/* end confdefs.h.  */
 
3501
extern char krb5_init_context();
 
3502
int
 
3503
main ()
 
3504
{
 
3505
 krb5_init_context()
 
3506
  ;
 
3507
  return 0;
 
3508
}
 
3509
_ACEOF
 
3510
rm -f conftest.$ac_objext conftest$ac_exeext
 
3511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3512
  (eval $ac_link) 2>conftest.er1
 
3513
  ac_status=$?
 
3514
  grep -v '^ *+' conftest.er1 >conftest.err
 
3515
  rm -f conftest.er1
 
3516
  cat conftest.err >&5
 
3517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3518
  (exit $ac_status); } &&
 
3519
         { ac_try='test -z "$ac_c_werror_flag"
 
3520
                         || test ! -s conftest.err'
 
3521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3522
  (eval $ac_try) 2>&5
 
3523
  ac_status=$?
 
3524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3525
  (exit $ac_status); }; } &&
 
3526
         { ac_try='test -s conftest$ac_exeext'
 
3527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3528
  (eval $ac_try) 2>&5
 
3529
  ac_status=$?
 
3530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3531
  (exit $ac_status); }; }; then
1386
3532
  smart_lib="-lkrb5"
1387
3533
else
1388
 
  echo "configure: failed program was:" >&5
1389
 
  cat conftest.$ac_ext >&5
1390
 
fi
1391
 
rm -f conftest*
1392
 
 
1393
 
  if test "x$smart_lib" = "x"; then
1394
 
    
 
3534
  echo "$as_me: failed program was:" >&5
 
3535
sed 's/^/| /' conftest.$ac_ext >&5
 
3536
 
 
3537
fi
 
3538
rm -f conftest.err conftest.$ac_objext \
 
3539
      conftest$ac_exeext conftest.$ac_ext
 
3540
  LIBS="$old_LIBS"
 
3541
fi
 
3542
 
 
3543
if test "x$smart_lib" = "x"; then
 
3544
 
1395
3545
 
1396
3546
if test "x$LOCATE" != "x"; then
1397
3547
        DIRS=
1418
3568
 
1419
3569
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1420
3570
 
1421
 
    
 
3571
 
1422
3572
 
1423
3573
if test "x$LOCATE" != "x"; then
1424
3574
        DIRS=
1446
3596
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1447
3597
 
1448
3598
 
1449
 
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1450
 
      LIBS="$old_LIBS -L$try -lkrb5"
1451
 
 
1452
 
      cat > conftest.$ac_ext <<EOF
1453
 
#line 1454 "configure"
1454
 
#include "confdefs.h"
 
3599
  for try in $smart_lib_dir /usr/local/lib /opt/lib; do
 
3600
    LIBS="-L$try -lkrb5 $old_LIBS"
 
3601
    cat >conftest.$ac_ext <<_ACEOF
 
3602
/* confdefs.h.  */
 
3603
_ACEOF
 
3604
cat confdefs.h >>conftest.$ac_ext
 
3605
cat >>conftest.$ac_ext <<_ACEOF
 
3606
/* end confdefs.h.  */
1455
3607
extern char krb5_init_context();
1456
 
int main() {
 
3608
int
 
3609
main ()
 
3610
{
1457
3611
 krb5_init_context()
1458
 
; return 0; }
1459
 
EOF
1460
 
if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461
 
  rm -rf conftest*
 
3612
  ;
 
3613
  return 0;
 
3614
}
 
3615
_ACEOF
 
3616
rm -f conftest.$ac_objext conftest$ac_exeext
 
3617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3618
  (eval $ac_link) 2>conftest.er1
 
3619
  ac_status=$?
 
3620
  grep -v '^ *+' conftest.er1 >conftest.err
 
3621
  rm -f conftest.er1
 
3622
  cat conftest.err >&5
 
3623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3624
  (exit $ac_status); } &&
 
3625
         { ac_try='test -z "$ac_c_werror_flag"
 
3626
                         || test ! -s conftest.err'
 
3627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3628
  (eval $ac_try) 2>&5
 
3629
  ac_status=$?
 
3630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3631
  (exit $ac_status); }; } &&
 
3632
         { ac_try='test -s conftest$ac_exeext'
 
3633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3634
  (eval $ac_try) 2>&5
 
3635
  ac_status=$?
 
3636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3637
  (exit $ac_status); }; }; then
1462
3638
  smart_lib="-L$try -lkrb5"
1463
3639
else
1464
 
  echo "configure: failed program was:" >&5
1465
 
  cat conftest.$ac_ext >&5
1466
 
fi
1467
 
rm -f conftest*
1468
 
      if test "x$smart_lib" != "x"; then
1469
 
        break;
1470
 
      fi
1471
 
    done
1472
 
    LIBS="$old_LIBS"
1473
 
  fi
1474
 
 
1475
 
        if test "x$smart_lib" != "x"; then
1476
 
    echo "$ac_t""yes" 1>&6
1477
 
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1478
 
    LIBS="$old_LIBS $smart_lib"
1479
 
    SMART_LIBS="$SMART_LIBS $smart_lib"
1480
 
  else
1481
 
    echo "$ac_t""no" 1>&6 
 
3640
  echo "$as_me: failed program was:" >&5
 
3641
sed 's/^/| /' conftest.$ac_ext >&5
 
3642
 
 
3643
fi
 
3644
rm -f conftest.err conftest.$ac_objext \
 
3645
      conftest$ac_exeext conftest.$ac_ext
 
3646
    if test "x$smart_lib" != "x"; then
 
3647
      break;
 
3648
    fi
 
3649
  done
 
3650
  LIBS="$old_LIBS"
 
3651
fi
 
3652
 
 
3653
if test "x$smart_lib" != "x"; then
 
3654
  echo "$as_me:$LINENO: result: yes" >&5
 
3655
echo "${ECHO_T}yes" >&6
 
3656
  eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
3657
  LIBS="$smart_lib $old_LIBS"
 
3658
  SMART_LIBS="$smart_lib $SMART_LIBS"
 
3659
else
 
3660
  echo "$as_me:$LINENO: result: no" >&5
 
3661
echo "${ECHO_T}no" >&6
1482
3662
fi
1483
3663
 
1484
3664
        if test "x$ac_cv_lib_krb5_krb5_init_context" != "xyes"; then
1493
3673
 
1494
3674
if test x"$fail" != x""; then
1495
3675
        if test x"${enable_strict_dependencies}" = x"yes"; then
1496
 
                { echo "configure: error: set --without-rlm_krb5 to disable it explicitly." 1>&2; exit 1; }
 
3676
                { { echo "$as_me:$LINENO: error: set --without-rlm_krb5 to disable it explicitly." >&5
 
3677
echo "$as_me: error: set --without-rlm_krb5 to disable it explicitly." >&2;}
 
3678
   { (exit 1); exit 1; }; }
1497
3679
        else
1498
 
                echo "configure: warning: silently not building rlm_krb5." 1>&2
1499
 
                echo "configure: warning: FAILURE: rlm_krb5 requires: $fail." 1>&2; 
 
3680
                { echo "$as_me:$LINENO: WARNING: silently not building rlm_krb5." >&5
 
3681
echo "$as_me: WARNING: silently not building rlm_krb5." >&2;}
 
3682
                { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
 
3683
echo "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
1500
3684
                targetname=""
1501
3685
        fi
1502
3686
fi
1507
3691
 
1508
3692
 
1509
3693
 
1510
 
trap '' 1 2 15
1511
 
cat > confcache <<\EOF
 
3694
          ac_config_files="$ac_config_files Makefile"
 
3695
cat >confcache <<\_ACEOF
1512
3696
# This file is a shell script that caches the results of configure
1513
3697
# tests run on this system so they can be shared between configure
1514
 
# scripts and configure runs.  It is not useful on other systems.
1515
 
# If it contains results you don't want to keep, you may remove or edit it.
1516
 
#
1517
 
# By default, configure uses ./config.cache as the cache file,
1518
 
# creating it if it does not exist already.  You can give configure
1519
 
# the --cache-file=FILE option to use a different cache file; that is
1520
 
# what configure does when it calls configure scripts in
1521
 
# subdirectories, so they share the cache.
1522
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1523
 
# config.status only pays attention to the cache file if you give it the
1524
 
# --recheck option to rerun configure.
1525
 
#
1526
 
EOF
 
3698
# scripts and configure runs, see configure's option --config-cache.
 
3699
# It is not useful on other systems.  If it contains results you don't
 
3700
# want to keep, you may remove or edit it.
 
3701
#
 
3702
# config.status only pays attention to the cache file if you give it
 
3703
# the --recheck option to rerun configure.
 
3704
#
 
3705
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
3706
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3707
# following values.
 
3708
 
 
3709
_ACEOF
 
3710
 
1527
3711
# The following way of writing the cache mishandles newlines in values,
1528
3712
# but we know of no workaround that is simple, portable, and efficient.
1529
3713
# So, don't put newlines in cache variables' values.
1530
3714
# Ultrix sh set writes to stderr and can't be redirected directly,
1531
3715
# and sets the high bit in the cache file unless we assign to the vars.
1532
 
(set) 2>&1 |
1533
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1534
 
  *ac_space=\ *)
1535
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
1536
 
    # turns \\\\ into \\, and sed turns \\ into \).
1537
 
    sed -n \
1538
 
      -e "s/'/'\\\\''/g" \
1539
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1540
 
    ;;
1541
 
  *)
1542
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1543
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1544
 
    ;;
1545
 
  esac >> confcache
1546
 
if cmp -s $cache_file confcache; then
1547
 
  :
1548
 
else
 
3716
{
 
3717
  (set) 2>&1 |
 
3718
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3719
    *ac_space=\ *)
 
3720
      # `set' does not quote correctly, so add quotes (double-quote
 
3721
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3722
      sed -n \
 
3723
        "s/'/'\\\\''/g;
 
3724
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3725
      ;;
 
3726
    *)
 
3727
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3728
      sed -n \
 
3729
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3730
      ;;
 
3731
    esac;
 
3732
} |
 
3733
  sed '
 
3734
     t clear
 
3735
     : clear
 
3736
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3737
     t end
 
3738
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3739
     : end' >>confcache
 
3740
if diff $cache_file confcache >/dev/null 2>&1; then :; else
1549
3741
  if test -w $cache_file; then
1550
 
    echo "updating cache $cache_file"
1551
 
    cat confcache > $cache_file
 
3742
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3743
    cat confcache >$cache_file
1552
3744
  else
1553
3745
    echo "not updating unwritable cache $cache_file"
1554
3746
  fi
1555
3747
fi
1556
3748
rm -f confcache
1557
3749
 
1558
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1559
 
 
1560
3750
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1561
3751
# Let make expand exec_prefix.
1562
3752
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1563
3753
 
1564
 
# Any assignment to VPATH causes Sun make to only execute
1565
 
# the first set of double-colon rules, so remove it if not needed.
1566
 
# If there is a colon in the path, we need to keep it.
 
3754
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
3755
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
3756
# trailing colons and then remove the whole line if VPATH becomes empty
 
3757
# (actually we leave an empty line to preserve line numbers).
1567
3758
if test "x$srcdir" = x.; then
1568
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
3759
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
3760
s/:*\$(srcdir):*/:/;
 
3761
s/:*\${srcdir}:*/:/;
 
3762
s/:*@srcdir@:*/:/;
 
3763
s/^\([^=]*=[     ]*\):*/\1/;
 
3764
s/:*$//;
 
3765
s/^[^=]*=[       ]*$//;
 
3766
}'
1569
3767
fi
1570
3768
 
1571
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1572
 
 
1573
3769
# Transform confdefs.h into DEFS.
1574
3770
# Protect against shell expansion while executing Makefile rules.
1575
3771
# Protect against Makefile macro expansion.
1576
 
cat > conftest.defs <<\EOF
1577
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1578
 
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1579
 
s%\[%\\&%g
1580
 
s%\]%\\&%g
1581
 
s%\$%$$%g
1582
 
EOF
1583
 
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1584
 
rm -f conftest.defs
1585
 
 
1586
 
 
1587
 
# Without the "./", some shells look in PATH for config.status.
 
3772
#
 
3773
# If the first sed substitution is executed (which looks for macros that
 
3774
# take arguments), then we branch to the quote section.  Otherwise,
 
3775
# look for a macro that doesn't take arguments.
 
3776
cat >confdef2opt.sed <<\_ACEOF
 
3777
t clear
 
3778
: clear
 
3779
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
3780
t quote
 
3781
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
3782
t quote
 
3783
d
 
3784
: quote
 
3785
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
3786
s,\[,\\&,g
 
3787
s,\],\\&,g
 
3788
s,\$,$$,g
 
3789
p
 
3790
_ACEOF
 
3791
# We use echo to avoid assuming a particular line-breaking character.
 
3792
# The extra dot is to prevent the shell from consuming trailing
 
3793
# line-breaks from the sub-command output.  A line-break within
 
3794
# single-quotes doesn't work because, if this script is created in a
 
3795
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
3796
# would break.
 
3797
ac_LF_and_DOT=`echo; echo .`
 
3798
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
3799
rm -f confdef2opt.sed
 
3800
 
 
3801
 
 
3802
ac_libobjs=
 
3803
ac_ltlibobjs=
 
3804
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
3805
  # 1. Remove the extension, and $U if already installed.
 
3806
  ac_i=`echo "$ac_i" |
 
3807
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
3808
  # 2. Add them.
 
3809
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
3810
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
3811
done
 
3812
LIBOBJS=$ac_libobjs
 
3813
 
 
3814
LTLIBOBJS=$ac_ltlibobjs
 
3815
 
 
3816
 
 
3817
 
1588
3818
: ${CONFIG_STATUS=./config.status}
1589
 
 
1590
 
echo creating $CONFIG_STATUS
1591
 
rm -f $CONFIG_STATUS
1592
 
cat > $CONFIG_STATUS <<EOF
1593
 
#! /bin/sh
1594
 
# Generated automatically by configure.
 
3819
ac_clean_files_save=$ac_clean_files
 
3820
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
3821
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
3822
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
3823
cat >$CONFIG_STATUS <<_ACEOF
 
3824
#! $SHELL
 
3825
# Generated by $as_me.
1595
3826
# Run this file to recreate the current configuration.
1596
 
# This directory was configured as follows,
1597
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1598
 
#
1599
 
# $0 $ac_configure_args
1600
 
#
1601
3827
# Compiler output produced by configure, useful for debugging
1602
 
# configure, is in ./config.log if it exists.
1603
 
 
1604
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1605
 
for ac_option
1606
 
do
1607
 
  case "\$ac_option" in
 
3828
# configure, is in config.log if it exists.
 
3829
 
 
3830
debug=false
 
3831
ac_cs_recheck=false
 
3832
ac_cs_silent=false
 
3833
SHELL=\${CONFIG_SHELL-$SHELL}
 
3834
_ACEOF
 
3835
 
 
3836
cat >>$CONFIG_STATUS <<\_ACEOF
 
3837
## --------------------- ##
 
3838
## M4sh Initialization.  ##
 
3839
## --------------------- ##
 
3840
 
 
3841
# Be Bourne compatible
 
3842
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
3843
  emulate sh
 
3844
  NULLCMD=:
 
3845
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
3846
  # is contrary to our usage.  Disable this feature.
 
3847
  alias -g '${1+"$@"}'='"$@"'
 
3848
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
3849
  set -o posix
 
3850
fi
 
3851
DUALCASE=1; export DUALCASE # for MKS sh
 
3852
 
 
3853
# Support unset when possible.
 
3854
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
3855
  as_unset=unset
 
3856
else
 
3857
  as_unset=false
 
3858
fi
 
3859
 
 
3860
 
 
3861
# Work around bugs in pre-3.0 UWIN ksh.
 
3862
$as_unset ENV MAIL MAILPATH
 
3863
PS1='$ '
 
3864
PS2='> '
 
3865
PS4='+ '
 
3866
 
 
3867
# NLS nuisances.
 
3868
for as_var in \
 
3869
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
3870
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
3871
  LC_TELEPHONE LC_TIME
 
3872
do
 
3873
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
3874
    eval $as_var=C; export $as_var
 
3875
  else
 
3876
    $as_unset $as_var
 
3877
  fi
 
3878
done
 
3879
 
 
3880
# Required to use basename.
 
3881
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3882
  as_expr=expr
 
3883
else
 
3884
  as_expr=false
 
3885
fi
 
3886
 
 
3887
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
3888
  as_basename=basename
 
3889
else
 
3890
  as_basename=false
 
3891
fi
 
3892
 
 
3893
 
 
3894
# Name of the executable.
 
3895
as_me=`$as_basename "$0" ||
 
3896
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
3897
         X"$0" : 'X\(//\)$' \| \
 
3898
         X"$0" : 'X\(/\)$' \| \
 
3899
         .     : '\(.\)' 2>/dev/null ||
 
3900
echo X/"$0" |
 
3901
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
3902
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
3903
          /^X\/\(\/\).*/{ s//\1/; q; }
 
3904
          s/.*/./; q'`
 
3905
 
 
3906
 
 
3907
# PATH needs CR, and LINENO needs CR and PATH.
 
3908
# Avoid depending upon Character Ranges.
 
3909
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
3910
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
3911
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
3912
as_cr_digits='0123456789'
 
3913
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
3914
 
 
3915
# The user is always right.
 
3916
if test "${PATH_SEPARATOR+set}" != set; then
 
3917
  echo "#! /bin/sh" >conf$$.sh
 
3918
  echo  "exit 0"   >>conf$$.sh
 
3919
  chmod +x conf$$.sh
 
3920
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3921
    PATH_SEPARATOR=';'
 
3922
  else
 
3923
    PATH_SEPARATOR=:
 
3924
  fi
 
3925
  rm -f conf$$.sh
 
3926
fi
 
3927
 
 
3928
 
 
3929
  as_lineno_1=$LINENO
 
3930
  as_lineno_2=$LINENO
 
3931
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3932
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3933
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
3934
  # Find who we are.  Look in the path if we contain no path at all
 
3935
  # relative or not.
 
3936
  case $0 in
 
3937
    *[\\/]* ) as_myself=$0 ;;
 
3938
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3939
for as_dir in $PATH
 
3940
do
 
3941
  IFS=$as_save_IFS
 
3942
  test -z "$as_dir" && as_dir=.
 
3943
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
3944
done
 
3945
 
 
3946
       ;;
 
3947
  esac
 
3948
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
3949
  # in which case we are not to be found in the path.
 
3950
  if test "x$as_myself" = x; then
 
3951
    as_myself=$0
 
3952
  fi
 
3953
  if test ! -f "$as_myself"; then
 
3954
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
3955
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
3956
   { (exit 1); exit 1; }; }
 
3957
  fi
 
3958
  case $CONFIG_SHELL in
 
3959
  '')
 
3960
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3961
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
3962
do
 
3963
  IFS=$as_save_IFS
 
3964
  test -z "$as_dir" && as_dir=.
 
3965
  for as_base in sh bash ksh sh5; do
 
3966
         case $as_dir in
 
3967
         /*)
 
3968
           if ("$as_dir/$as_base" -c '
 
3969
  as_lineno_1=$LINENO
 
3970
  as_lineno_2=$LINENO
 
3971
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3972
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3973
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
3974
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
3975
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
3976
             CONFIG_SHELL=$as_dir/$as_base
 
3977
             export CONFIG_SHELL
 
3978
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
3979
           fi;;
 
3980
         esac
 
3981
       done
 
3982
done
 
3983
;;
 
3984
  esac
 
3985
 
 
3986
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
3987
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
3988
  # line-number line before each line; the second 'sed' does the real
 
3989
  # work.  The second script uses 'N' to pair each line-number line
 
3990
  # with the numbered line, and appends trailing '-' during
 
3991
  # substitution so that $LINENO is not a special case at line end.
 
3992
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
3993
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
3994
  sed '=' <$as_myself |
 
3995
    sed '
 
3996
      N
 
3997
      s,$,-,
 
3998
      : loop
 
3999
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
4000
      t loop
 
4001
      s,-$,,
 
4002
      s,^['$as_cr_digits']*\n,,
 
4003
    ' >$as_me.lineno &&
 
4004
  chmod +x $as_me.lineno ||
 
4005
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
4006
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
4007
   { (exit 1); exit 1; }; }
 
4008
 
 
4009
  # Don't try to exec as it changes $[0], causing all sort of problems
 
4010
  # (the dirname of $[0] is not the place where we might find the
 
4011
  # original and so on.  Autoconf is especially sensible to this).
 
4012
  . ./$as_me.lineno
 
4013
  # Exit status is that of the last command.
 
4014
  exit
 
4015
}
 
4016
 
 
4017
 
 
4018
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
4019
  *c*,-n*) ECHO_N= ECHO_C='
 
4020
' ECHO_T='      ' ;;
 
4021
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
4022
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
4023
esac
 
4024
 
 
4025
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4026
  as_expr=expr
 
4027
else
 
4028
  as_expr=false
 
4029
fi
 
4030
 
 
4031
rm -f conf$$ conf$$.exe conf$$.file
 
4032
echo >conf$$.file
 
4033
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
4034
  # We could just check for DJGPP; but this test a) works b) is more generic
 
4035
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
4036
  if test -f conf$$.exe; then
 
4037
    # Don't use ln at all; we don't have any links
 
4038
    as_ln_s='cp -p'
 
4039
  else
 
4040
    as_ln_s='ln -s'
 
4041
  fi
 
4042
elif ln conf$$.file conf$$ 2>/dev/null; then
 
4043
  as_ln_s=ln
 
4044
else
 
4045
  as_ln_s='cp -p'
 
4046
fi
 
4047
rm -f conf$$ conf$$.exe conf$$.file
 
4048
 
 
4049
if mkdir -p . 2>/dev/null; then
 
4050
  as_mkdir_p=:
 
4051
else
 
4052
  test -d ./-p && rmdir ./-p
 
4053
  as_mkdir_p=false
 
4054
fi
 
4055
 
 
4056
as_executable_p="test -f"
 
4057
 
 
4058
# Sed expression to map a string onto a valid CPP name.
 
4059
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
4060
 
 
4061
# Sed expression to map a string onto a valid variable name.
 
4062
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
4063
 
 
4064
 
 
4065
# IFS
 
4066
# We need space, tab and new line, in precisely that order.
 
4067
as_nl='
 
4068
'
 
4069
IFS="   $as_nl"
 
4070
 
 
4071
# CDPATH.
 
4072
$as_unset CDPATH
 
4073
 
 
4074
exec 6>&1
 
4075
 
 
4076
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4077
# report actual input values of CONFIG_FILES etc. instead of their
 
4078
# values after options handling.  Logging --version etc. is OK.
 
4079
exec 5>>config.log
 
4080
{
 
4081
  echo
 
4082
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4083
## Running $as_me. ##
 
4084
_ASBOX
 
4085
} >&5
 
4086
cat >&5 <<_CSEOF
 
4087
 
 
4088
This file was extended by $as_me, which was
 
4089
generated by GNU Autoconf 2.59.  Invocation command line was
 
4090
 
 
4091
  CONFIG_FILES    = $CONFIG_FILES
 
4092
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4093
  CONFIG_LINKS    = $CONFIG_LINKS
 
4094
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4095
  $ $0 $@
 
4096
 
 
4097
_CSEOF
 
4098
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
4099
echo >&5
 
4100
_ACEOF
 
4101
 
 
4102
# Files that config.status was made for.
 
4103
if test -n "$ac_config_files"; then
 
4104
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
4105
fi
 
4106
 
 
4107
if test -n "$ac_config_headers"; then
 
4108
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
4109
fi
 
4110
 
 
4111
if test -n "$ac_config_links"; then
 
4112
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
4113
fi
 
4114
 
 
4115
if test -n "$ac_config_commands"; then
 
4116
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
4117
fi
 
4118
 
 
4119
cat >>$CONFIG_STATUS <<\_ACEOF
 
4120
 
 
4121
ac_cs_usage="\
 
4122
\`$as_me' instantiates files from templates according to the
 
4123
current configuration.
 
4124
 
 
4125
Usage: $0 [OPTIONS] [FILE]...
 
4126
 
 
4127
  -h, --help       print this help, then exit
 
4128
  -V, --version    print version number, then exit
 
4129
  -q, --quiet      do not print progress messages
 
4130
  -d, --debug      don't remove temporary files
 
4131
      --recheck    update $as_me by reconfiguring in the same conditions
 
4132
  --file=FILE[:TEMPLATE]
 
4133
                   instantiate the configuration file FILE
 
4134
 
 
4135
Configuration files:
 
4136
$config_files
 
4137
 
 
4138
Report bugs to <bug-autoconf@gnu.org>."
 
4139
_ACEOF
 
4140
 
 
4141
cat >>$CONFIG_STATUS <<_ACEOF
 
4142
ac_cs_version="\\
 
4143
config.status
 
4144
configured by $0, generated by GNU Autoconf 2.59,
 
4145
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4146
 
 
4147
Copyright (C) 2003 Free Software Foundation, Inc.
 
4148
This config.status script is free software; the Free Software Foundation
 
4149
gives unlimited permission to copy, distribute and modify it."
 
4150
srcdir=$srcdir
 
4151
_ACEOF
 
4152
 
 
4153
cat >>$CONFIG_STATUS <<\_ACEOF
 
4154
# If no file are specified by the user, then we need to provide default
 
4155
# value.  By we need to know if files were specified by the user.
 
4156
ac_need_defaults=:
 
4157
while test $# != 0
 
4158
do
 
4159
  case $1 in
 
4160
  --*=*)
 
4161
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
4162
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4163
    ac_shift=:
 
4164
    ;;
 
4165
  -*)
 
4166
    ac_option=$1
 
4167
    ac_optarg=$2
 
4168
    ac_shift=shift
 
4169
    ;;
 
4170
  *) # This is not an option, so the user has probably given explicit
 
4171
     # arguments.
 
4172
     ac_option=$1
 
4173
     ac_need_defaults=false;;
 
4174
  esac
 
4175
 
 
4176
  case $ac_option in
 
4177
  # Handling of the options.
 
4178
_ACEOF
 
4179
cat >>$CONFIG_STATUS <<\_ACEOF
1608
4180
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1609
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1610
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1611
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1612
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1613
 
    exit 0 ;;
1614
 
  -help | --help | --hel | --he | --h)
1615
 
    echo "\$ac_cs_usage"; exit 0 ;;
1616
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
1617
 
  esac
1618
 
done
1619
 
 
1620
 
ac_given_srcdir=$srcdir
1621
 
 
1622
 
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1623
 
EOF
1624
 
cat >> $CONFIG_STATUS <<EOF
1625
 
 
1626
 
# Protect against being on the right side of a sed subst in config.status.
1627
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1628
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1629
 
$ac_vpsub
1630
 
$extrasub
1631
 
s%@SHELL@%$SHELL%g
1632
 
s%@CFLAGS@%$CFLAGS%g
1633
 
s%@CPPFLAGS@%$CPPFLAGS%g
1634
 
s%@CXXFLAGS@%$CXXFLAGS%g
1635
 
s%@FFLAGS@%$FFLAGS%g
1636
 
s%@DEFS@%$DEFS%g
1637
 
s%@LDFLAGS@%$LDFLAGS%g
1638
 
s%@LIBS@%$LIBS%g
1639
 
s%@exec_prefix@%$exec_prefix%g
1640
 
s%@prefix@%$prefix%g
1641
 
s%@program_transform_name@%$program_transform_name%g
1642
 
s%@bindir@%$bindir%g
1643
 
s%@sbindir@%$sbindir%g
1644
 
s%@libexecdir@%$libexecdir%g
1645
 
s%@datadir@%$datadir%g
1646
 
s%@sysconfdir@%$sysconfdir%g
1647
 
s%@sharedstatedir@%$sharedstatedir%g
1648
 
s%@localstatedir@%$localstatedir%g
1649
 
s%@libdir@%$libdir%g
1650
 
s%@includedir@%$includedir%g
1651
 
s%@oldincludedir@%$oldincludedir%g
1652
 
s%@infodir@%$infodir%g
1653
 
s%@mandir@%$mandir%g
1654
 
s%@CC@%$CC%g
1655
 
s%@CPP@%$CPP%g
1656
 
s%@krb5_cflags@%$krb5_cflags%g
1657
 
s%@krb5_ldflags@%$krb5_ldflags%g
1658
 
s%@targetname@%$targetname%g
1659
 
 
 
4181
    ac_cs_recheck=: ;;
 
4182
  --version | --vers* | -V )
 
4183
    echo "$ac_cs_version"; exit 0 ;;
 
4184
  --he | --h)
 
4185
    # Conflict between --help and --header
 
4186
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
4187
Try \`$0 --help' for more information." >&5
 
4188
echo "$as_me: error: ambiguous option: $1
 
4189
Try \`$0 --help' for more information." >&2;}
 
4190
   { (exit 1); exit 1; }; };;
 
4191
  --help | --hel | -h )
 
4192
    echo "$ac_cs_usage"; exit 0 ;;
 
4193
  --debug | --d* | -d )
 
4194
    debug=: ;;
 
4195
  --file | --fil | --fi | --f )
 
4196
    $ac_shift
 
4197
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
4198
    ac_need_defaults=false;;
 
4199
  --header | --heade | --head | --hea )
 
4200
    $ac_shift
 
4201
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
4202
    ac_need_defaults=false;;
 
4203
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
4204
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
4205
    ac_cs_silent=: ;;
 
4206
 
 
4207
  # This is an error.
 
4208
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
4209
Try \`$0 --help' for more information." >&5
 
4210
echo "$as_me: error: unrecognized option: $1
 
4211
Try \`$0 --help' for more information." >&2;}
 
4212
   { (exit 1); exit 1; }; } ;;
 
4213
 
 
4214
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4215
 
 
4216
  esac
 
4217
  shift
 
4218
done
 
4219
 
 
4220
ac_configure_extra_args=
 
4221
 
 
4222
if $ac_cs_silent; then
 
4223
  exec 6>/dev/null
 
4224
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
4225
fi
 
4226
 
 
4227
_ACEOF
 
4228
cat >>$CONFIG_STATUS <<_ACEOF
 
4229
if \$ac_cs_recheck; then
 
4230
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
4231
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
4232
fi
 
4233
 
 
4234
_ACEOF
 
4235
 
 
4236
 
 
4237
 
 
4238
 
 
4239
 
 
4240
cat >>$CONFIG_STATUS <<\_ACEOF
 
4241
for ac_config_target in $ac_config_targets
 
4242
do
 
4243
  case "$ac_config_target" in
 
4244
  # Handling of arguments.
 
4245
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4246
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
4247
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
4248
   { (exit 1); exit 1; }; };;
 
4249
  esac
 
4250
done
 
4251
 
 
4252
# If the user did not use the arguments to specify the items to instantiate,
 
4253
# then the envvar interface is used.  Set only those that are not.
 
4254
# We use the long form for the default assignment because of an extremely
 
4255
# bizarre bug on SunOS 4.1.3.
 
4256
if $ac_need_defaults; then
 
4257
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
4258
fi
 
4259
 
 
4260
# Have a temporary directory for convenience.  Make it in the build tree
 
4261
# simply because there is no reason to put it here, and in addition,
 
4262
# creating and moving files from /tmp can sometimes cause problems.
 
4263
# Create a temporary directory, and hook for its removal unless debugging.
 
4264
$debug ||
 
4265
{
 
4266
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4267
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4268
}
 
4269
 
 
4270
# Create a (secure) tmp directory for tmp files.
 
4271
 
 
4272
{
 
4273
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4274
  test -n "$tmp" && test -d "$tmp"
 
4275
}  ||
 
4276
{
 
4277
  tmp=./confstat$$-$RANDOM
 
4278
  (umask 077 && mkdir $tmp)
 
4279
} ||
 
4280
{
 
4281
   echo "$me: cannot create a temporary directory in ." >&2
 
4282
   { (exit 1); exit 1; }
 
4283
}
 
4284
 
 
4285
_ACEOF
 
4286
 
 
4287
cat >>$CONFIG_STATUS <<_ACEOF
 
4288
 
 
4289
#
 
4290
# CONFIG_FILES section.
 
4291
#
 
4292
 
 
4293
# No need to generate the scripts if there are no CONFIG_FILES.
 
4294
# This happens for instance when ./config.status config.h
 
4295
if test -n "\$CONFIG_FILES"; then
 
4296
  # Protect against being on the right side of a sed subst in config.status.
 
4297
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
4298
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
4299
s,@SHELL@,$SHELL,;t t
 
4300
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
4301
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
4302
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
4303
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
4304
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
4305
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
4306
s,@exec_prefix@,$exec_prefix,;t t
 
4307
s,@prefix@,$prefix,;t t
 
4308
s,@program_transform_name@,$program_transform_name,;t t
 
4309
s,@bindir@,$bindir,;t t
 
4310
s,@sbindir@,$sbindir,;t t
 
4311
s,@libexecdir@,$libexecdir,;t t
 
4312
s,@datadir@,$datadir,;t t
 
4313
s,@sysconfdir@,$sysconfdir,;t t
 
4314
s,@sharedstatedir@,$sharedstatedir,;t t
 
4315
s,@localstatedir@,$localstatedir,;t t
 
4316
s,@libdir@,$libdir,;t t
 
4317
s,@includedir@,$includedir,;t t
 
4318
s,@oldincludedir@,$oldincludedir,;t t
 
4319
s,@infodir@,$infodir,;t t
 
4320
s,@mandir@,$mandir,;t t
 
4321
s,@build_alias@,$build_alias,;t t
 
4322
s,@host_alias@,$host_alias,;t t
 
4323
s,@target_alias@,$target_alias,;t t
 
4324
s,@DEFS@,$DEFS,;t t
 
4325
s,@ECHO_C@,$ECHO_C,;t t
 
4326
s,@ECHO_N@,$ECHO_N,;t t
 
4327
s,@ECHO_T@,$ECHO_T,;t t
 
4328
s,@LIBS@,$LIBS,;t t
 
4329
s,@CC@,$CC,;t t
 
4330
s,@CFLAGS@,$CFLAGS,;t t
 
4331
s,@LDFLAGS@,$LDFLAGS,;t t
 
4332
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
4333
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
4334
s,@EXEEXT@,$EXEEXT,;t t
 
4335
s,@OBJEXT@,$OBJEXT,;t t
 
4336
s,@CPP@,$CPP,;t t
 
4337
s,@krb5_cflags@,$krb5_cflags,;t t
 
4338
s,@krb5_ldflags@,$krb5_ldflags,;t t
 
4339
s,@targetname@,$targetname,;t t
 
4340
s,@LIBOBJS@,$LIBOBJS,;t t
 
4341
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1660
4342
CEOF
1661
 
EOF
1662
 
 
1663
 
cat >> $CONFIG_STATUS <<\EOF
1664
 
 
1665
 
# Split the substitutions into bite-sized pieces for seds with
1666
 
# small command number limits, like on Digital OSF/1 and HP-UX.
1667
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1668
 
ac_file=1 # Number of current file.
1669
 
ac_beg=1 # First line for current file.
1670
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1671
 
ac_more_lines=:
1672
 
ac_sed_cmds=""
1673
 
while $ac_more_lines; do
1674
 
  if test $ac_beg -gt 1; then
1675
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1676
 
  else
1677
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1678
 
  fi
1679
 
  if test ! -s conftest.s$ac_file; then
1680
 
    ac_more_lines=false
1681
 
    rm -f conftest.s$ac_file
1682
 
  else
1683
 
    if test -z "$ac_sed_cmds"; then
1684
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
1685
 
    else
1686
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1687
 
    fi
1688
 
    ac_file=`expr $ac_file + 1`
1689
 
    ac_beg=$ac_end
1690
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1691
 
  fi
1692
 
done
1693
 
if test -z "$ac_sed_cmds"; then
1694
 
  ac_sed_cmds=cat
1695
 
fi
1696
 
EOF
1697
 
 
1698
 
cat >> $CONFIG_STATUS <<EOF
1699
 
 
1700
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1701
 
EOF
1702
 
cat >> $CONFIG_STATUS <<\EOF
1703
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
4343
 
 
4344
_ACEOF
 
4345
 
 
4346
  cat >>$CONFIG_STATUS <<\_ACEOF
 
4347
  # Split the substitutions into bite-sized pieces for seds with
 
4348
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
4349
  ac_max_sed_lines=48
 
4350
  ac_sed_frag=1 # Number of current file.
 
4351
  ac_beg=1 # First line for current file.
 
4352
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
4353
  ac_more_lines=:
 
4354
  ac_sed_cmds=
 
4355
  while $ac_more_lines; do
 
4356
    if test $ac_beg -gt 1; then
 
4357
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4358
    else
 
4359
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4360
    fi
 
4361
    if test ! -s $tmp/subs.frag; then
 
4362
      ac_more_lines=false
 
4363
    else
 
4364
      # The purpose of the label and of the branching condition is to
 
4365
      # speed up the sed processing (if there are no `@' at all, there
 
4366
      # is no need to browse any of the substitutions).
 
4367
      # These are the two extra sed commands mentioned above.
 
4368
      (echo ':t
 
4369
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
4370
      if test -z "$ac_sed_cmds"; then
 
4371
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
4372
      else
 
4373
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
4374
      fi
 
4375
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
4376
      ac_beg=$ac_end
 
4377
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
4378
    fi
 
4379
  done
 
4380
  if test -z "$ac_sed_cmds"; then
 
4381
    ac_sed_cmds=cat
 
4382
  fi
 
4383
fi # test -n "$CONFIG_FILES"
 
4384
 
 
4385
_ACEOF
 
4386
cat >>$CONFIG_STATUS <<\_ACEOF
 
4387
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1704
4388
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1705
 
  case "$ac_file" in
1706
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1707
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1708
 
  *) ac_file_in="${ac_file}.in" ;;
 
4389
  case $ac_file in
 
4390
  - | *:- | *:-:* ) # input from stdin
 
4391
        cat >$tmp/stdin
 
4392
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4393
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4394
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4395
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4396
  * )   ac_file_in=$ac_file.in ;;
1709
4397
  esac
1710
4398
 
1711
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1712
 
 
1713
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
1714
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1715
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1716
 
    # The file is in a subdirectory.
1717
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1718
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1719
 
    # A "../" for each directory in $ac_dir_suffix.
1720
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
4399
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
4400
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4401
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4402
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4403
         X"$ac_file" : 'X\(//\)$' \| \
 
4404
         X"$ac_file" : 'X\(/\)' \| \
 
4405
         .     : '\(.\)' 2>/dev/null ||
 
4406
echo X"$ac_file" |
 
4407
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4408
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4409
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4410
          /^X\(\/\).*/{ s//\1/; q; }
 
4411
          s/.*/./; q'`
 
4412
  { if $as_mkdir_p; then
 
4413
    mkdir -p "$ac_dir"
1721
4414
  else
1722
 
    ac_dir_suffix= ac_dots=
1723
 
  fi
1724
 
 
1725
 
  case "$ac_given_srcdir" in
1726
 
  .)  srcdir=.
1727
 
      if test -z "$ac_dots"; then top_srcdir=.
1728
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1729
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
4415
    as_dir="$ac_dir"
 
4416
    as_dirs=
 
4417
    while test ! -d "$as_dir"; do
 
4418
      as_dirs="$as_dir $as_dirs"
 
4419
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4420
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4421
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4422
         X"$as_dir" : 'X\(//\)$' \| \
 
4423
         X"$as_dir" : 'X\(/\)' \| \
 
4424
         .     : '\(.\)' 2>/dev/null ||
 
4425
echo X"$as_dir" |
 
4426
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4427
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4428
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4429
          /^X\(\/\).*/{ s//\1/; q; }
 
4430
          s/.*/./; q'`
 
4431
    done
 
4432
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4433
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4434
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4435
   { (exit 1); exit 1; }; }; }
 
4436
 
 
4437
  ac_builddir=.
 
4438
 
 
4439
if test "$ac_dir" != .; then
 
4440
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
4441
  # A "../" for each directory in $ac_dir_suffix.
 
4442
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
4443
else
 
4444
  ac_dir_suffix= ac_top_builddir=
 
4445
fi
 
4446
 
 
4447
case $srcdir in
 
4448
  .)  # No --srcdir option.  We are building in place.
 
4449
    ac_srcdir=.
 
4450
    if test -z "$ac_top_builddir"; then
 
4451
       ac_top_srcdir=.
 
4452
    else
 
4453
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
4454
    fi ;;
 
4455
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4456
    ac_srcdir=$srcdir$ac_dir_suffix;
 
4457
    ac_top_srcdir=$srcdir ;;
1730
4458
  *) # Relative path.
1731
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1732
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1733
 
  esac
1734
 
 
1735
 
 
1736
 
  echo creating "$ac_file"
1737
 
  rm -f "$ac_file"
1738
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1739
 
  case "$ac_file" in
1740
 
  *Makefile*) ac_comsub="1i\\
1741
 
# $configure_input" ;;
1742
 
  *) ac_comsub= ;;
1743
 
  esac
1744
 
 
1745
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1746
 
  sed -e "$ac_comsub
1747
 
s%@configure_input@%$configure_input%g
1748
 
s%@srcdir@%$srcdir%g
1749
 
s%@top_srcdir@%$top_srcdir%g
1750
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1751
 
fi; done
1752
 
rm -f conftest.s*
1753
 
 
1754
 
EOF
1755
 
cat >> $CONFIG_STATUS <<EOF
1756
 
 
1757
 
EOF
1758
 
cat >> $CONFIG_STATUS <<\EOF
1759
 
 
1760
 
exit 0
1761
 
EOF
 
4459
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
4460
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
4461
esac
 
4462
 
 
4463
# Do not use `cd foo && pwd` to compute absolute paths, because
 
4464
# the directories may not exist.
 
4465
case `pwd` in
 
4466
.) ac_abs_builddir="$ac_dir";;
 
4467
*)
 
4468
  case "$ac_dir" in
 
4469
  .) ac_abs_builddir=`pwd`;;
 
4470
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
4471
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
4472
  esac;;
 
4473
esac
 
4474
case $ac_abs_builddir in
 
4475
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4476
*)
 
4477
  case ${ac_top_builddir}. in
 
4478
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
4479
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4480
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
4481
  esac;;
 
4482
esac
 
4483
case $ac_abs_builddir in
 
4484
.) ac_abs_srcdir=$ac_srcdir;;
 
4485
*)
 
4486
  case $ac_srcdir in
 
4487
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
4488
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
4489
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
4490
  esac;;
 
4491
esac
 
4492
case $ac_abs_builddir in
 
4493
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4494
*)
 
4495
  case $ac_top_srcdir in
 
4496
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
4497
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4498
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
4499
  esac;;
 
4500
esac
 
4501
 
 
4502
 
 
4503
 
 
4504
  if test x"$ac_file" != x-; then
 
4505
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4506
echo "$as_me: creating $ac_file" >&6;}
 
4507
    rm -f "$ac_file"
 
4508
  fi
 
4509
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4510
  # use $as_me), people would be surprised to read:
 
4511
  #    /* config.h.  Generated by config.status.  */
 
4512
  if test x"$ac_file" = x-; then
 
4513
    configure_input=
 
4514
  else
 
4515
    configure_input="$ac_file.  "
 
4516
  fi
 
4517
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
4518
                                     sed 's,.*/,,'` by configure."
 
4519
 
 
4520
  # First look for the input files in the build tree, otherwise in the
 
4521
  # src tree.
 
4522
  ac_file_inputs=`IFS=:
 
4523
    for f in $ac_file_in; do
 
4524
      case $f in
 
4525
      -) echo $tmp/stdin ;;
 
4526
      [\\/$]*)
 
4527
         # Absolute (can't be DOS-style, as IFS=:)
 
4528
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4529
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4530
   { (exit 1); exit 1; }; }
 
4531
         echo "$f";;
 
4532
      *) # Relative
 
4533
         if test -f "$f"; then
 
4534
           # Build tree
 
4535
           echo "$f"
 
4536
         elif test -f "$srcdir/$f"; then
 
4537
           # Source tree
 
4538
           echo "$srcdir/$f"
 
4539
         else
 
4540
           # /dev/null tree
 
4541
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4542
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4543
   { (exit 1); exit 1; }; }
 
4544
         fi;;
 
4545
      esac
 
4546
    done` || { (exit 1); exit 1; }
 
4547
_ACEOF
 
4548
cat >>$CONFIG_STATUS <<_ACEOF
 
4549
  sed "$ac_vpsub
 
4550
$extrasub
 
4551
_ACEOF
 
4552
cat >>$CONFIG_STATUS <<\_ACEOF
 
4553
:t
 
4554
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
4555
s,@configure_input@,$configure_input,;t t
 
4556
s,@srcdir@,$ac_srcdir,;t t
 
4557
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
4558
s,@top_srcdir@,$ac_top_srcdir,;t t
 
4559
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
4560
s,@builddir@,$ac_builddir,;t t
 
4561
s,@abs_builddir@,$ac_abs_builddir,;t t
 
4562
s,@top_builddir@,$ac_top_builddir,;t t
 
4563
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
4564
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
4565
  rm -f $tmp/stdin
 
4566
  if test x"$ac_file" != x-; then
 
4567
    mv $tmp/out $ac_file
 
4568
  else
 
4569
    cat $tmp/out
 
4570
    rm -f $tmp/out
 
4571
  fi
 
4572
 
 
4573
done
 
4574
_ACEOF
 
4575
 
 
4576
cat >>$CONFIG_STATUS <<\_ACEOF
 
4577
 
 
4578
{ (exit 0); exit 0; }
 
4579
_ACEOF
1762
4580
chmod +x $CONFIG_STATUS
1763
 
rm -fr confdefs* $ac_clean_files
1764
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
4581
ac_clean_files=$ac_clean_files_save
 
4582
 
 
4583
 
 
4584
# configure is writing to config.log, and then calls config.status.
 
4585
# config.status does its own redirection, appending to config.log.
 
4586
# Unfortunately, on DOS this fails, as config.log is still kept open
 
4587
# by configure, so config.status won't be able to write to it; its
 
4588
# output is simply discarded.  So we exec the FD to /dev/null,
 
4589
# effectively closing config.log, so it can be properly (re)opened and
 
4590
# appended to by config.status.  When coming back to configure, we
 
4591
# need to make the FD available again.
 
4592
if test "$no_create" != yes; then
 
4593
  ac_cs_success=:
 
4594
  ac_config_status_args=
 
4595
  test "$silent" = yes &&
 
4596
    ac_config_status_args="$ac_config_status_args --quiet"
 
4597
  exec 5>/dev/null
 
4598
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
4599
  exec 5>>config.log
 
4600
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
4601
  # would make configure fail if this is the last instruction.
 
4602
  $ac_cs_success || { (exit 1); exit 1; }
 
4603
fi
1765
4604