source: src/router/freeradius/src/modules/rlm_krb5/configure @ 14669

Last change on this file since 14669 was 14669, checked in by BrainSlayer, 3 years ago

update to 2.1.9

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