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