Fix a typo
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
587
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 REGEX_EXTENDED
636 REGEX_PCRE
637 REGEX
638 CRYPTLIB
639 LIBPREFIX
640 PCAP_LIBS
641 OPENSSL_LIBS
642 OPENSSL_INCLUDE
643 LIBREADLINE
644 DIRNAME
645 LOCATE
646 AUTOHEADER
647 AUTOCONF
648 ACLOCAL
649 RUSERS
650 SNMPWALK
651 SNMPGET
652 PERL
653 modconfdir
654 raddbdir
655 radacctdir
656 logdir
657 GIT
658 FR_MAKEFLAGS
659 MAKE
660 GMAKE
661 RANLIB
662 EGREP
663 GREP
664 CPP
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 target_os
676 target_vendor
677 target_cpu
678 target
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 RADIUSD_VERSION_STRING
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 enable_developer
730 enable_largefile
731 enable_strict_dependencies
732 enable_werror
733 with_docdir
734 with_logdir
735 with_radacctdir
736 with_raddbdir
737 with_ascend_binary
738 with_threads
739 with_tcp
740 with_vmps
741 with_dhcp
742 with_static_modules
743 with_static
744 with_modules
745 with_experimental_modules
746 with_openssl
747 with_openssl_includes
748 with_openssl_libraries
749 with_rlm_FOO_lib_dir
750 with_rlm_FOO_include_dir
751 with_udpfromto
752 with_talloc_include_dir
753 with_talloc_lib_dir
754 with_rlm_pcre_lib_dir
755 with_rlm_pcre_include_dir
756 '
757       ac_precious_vars='build_alias
758 host_alias
759 target_alias
760 CC
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
765 CXX
766 CXXFLAGS
767 CCC
768 CPP'
769 ac_subdirs_all='$mysubdirs'
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823   # If the previous option needs an argument, assign it.
824   if test -n "$ac_prev"; then
825     eval $ac_prev=\$ac_option
826     ac_prev=
827     continue
828   fi
829
830   case $ac_option in
831   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832   *=)   ac_optarg= ;;
833   *)    ac_optarg=yes ;;
834   esac
835
836   # Accept the important Cygnus configure options, so we can diagnose typos.
837
838   case $ac_dashdash$ac_option in
839   --)
840     ac_dashdash=yes ;;
841
842   -bindir | --bindir | --bindi | --bind | --bin | --bi)
843     ac_prev=bindir ;;
844   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845     bindir=$ac_optarg ;;
846
847   -build | --build | --buil | --bui | --bu)
848     ac_prev=build_alias ;;
849   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850     build_alias=$ac_optarg ;;
851
852   -cache-file | --cache-file | --cache-fil | --cache-fi \
853   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854     ac_prev=cache_file ;;
855   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857     cache_file=$ac_optarg ;;
858
859   --config-cache | -C)
860     cache_file=config.cache ;;
861
862   -datadir | --datadir | --datadi | --datad)
863     ac_prev=datadir ;;
864   -datadir=* | --datadir=* | --datadi=* | --datad=*)
865     datadir=$ac_optarg ;;
866
867   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868   | --dataroo | --dataro | --datar)
869     ac_prev=datarootdir ;;
870   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872     datarootdir=$ac_optarg ;;
873
874   -disable-* | --disable-*)
875     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876     # Reject names that are not valid shell variable names.
877     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878       as_fn_error $? "invalid feature name: $ac_useropt"
879     ac_useropt_orig=$ac_useropt
880     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881     case $ac_user_opts in
882       *"
883 "enable_$ac_useropt"
884 "*) ;;
885       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886          ac_unrecognized_sep=', ';;
887     esac
888     eval enable_$ac_useropt=no ;;
889
890   -docdir | --docdir | --docdi | --doc | --do)
891     ac_prev=docdir ;;
892   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893     docdir=$ac_optarg ;;
894
895   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896     ac_prev=dvidir ;;
897   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898     dvidir=$ac_optarg ;;
899
900   -enable-* | --enable-*)
901     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904       as_fn_error $? "invalid feature name: $ac_useropt"
905     ac_useropt_orig=$ac_useropt
906     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907     case $ac_user_opts in
908       *"
909 "enable_$ac_useropt"
910 "*) ;;
911       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912          ac_unrecognized_sep=', ';;
913     esac
914     eval enable_$ac_useropt=\$ac_optarg ;;
915
916   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918   | --exec | --exe | --ex)
919     ac_prev=exec_prefix ;;
920   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922   | --exec=* | --exe=* | --ex=*)
923     exec_prefix=$ac_optarg ;;
924
925   -gas | --gas | --ga | --g)
926     # Obsolete; use --with-gas.
927     with_gas=yes ;;
928
929   -help | --help | --hel | --he | -h)
930     ac_init_help=long ;;
931   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932     ac_init_help=recursive ;;
933   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934     ac_init_help=short ;;
935
936   -host | --host | --hos | --ho)
937     ac_prev=host_alias ;;
938   -host=* | --host=* | --hos=* | --ho=*)
939     host_alias=$ac_optarg ;;
940
941   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942     ac_prev=htmldir ;;
943   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944   | --ht=*)
945     htmldir=$ac_optarg ;;
946
947   -includedir | --includedir | --includedi | --included | --include \
948   | --includ | --inclu | --incl | --inc)
949     ac_prev=includedir ;;
950   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951   | --includ=* | --inclu=* | --incl=* | --inc=*)
952     includedir=$ac_optarg ;;
953
954   -infodir | --infodir | --infodi | --infod | --info | --inf)
955     ac_prev=infodir ;;
956   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957     infodir=$ac_optarg ;;
958
959   -libdir | --libdir | --libdi | --libd)
960     ac_prev=libdir ;;
961   -libdir=* | --libdir=* | --libdi=* | --libd=*)
962     libdir=$ac_optarg ;;
963
964   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965   | --libexe | --libex | --libe)
966     ac_prev=libexecdir ;;
967   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968   | --libexe=* | --libex=* | --libe=*)
969     libexecdir=$ac_optarg ;;
970
971   -localedir | --localedir | --localedi | --localed | --locale)
972     ac_prev=localedir ;;
973   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974     localedir=$ac_optarg ;;
975
976   -localstatedir | --localstatedir | --localstatedi | --localstated \
977   | --localstate | --localstat | --localsta | --localst | --locals)
978     ac_prev=localstatedir ;;
979   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981     localstatedir=$ac_optarg ;;
982
983   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984     ac_prev=mandir ;;
985   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986     mandir=$ac_optarg ;;
987
988   -nfp | --nfp | --nf)
989     # Obsolete; use --without-fp.
990     with_fp=no ;;
991
992   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993   | --no-cr | --no-c | -n)
994     no_create=yes ;;
995
996   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998     no_recursion=yes ;;
999
1000   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002   | --oldin | --oldi | --old | --ol | --o)
1003     ac_prev=oldincludedir ;;
1004   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007     oldincludedir=$ac_optarg ;;
1008
1009   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010     ac_prev=prefix ;;
1011   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012     prefix=$ac_optarg ;;
1013
1014   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015   | --program-pre | --program-pr | --program-p)
1016     ac_prev=program_prefix ;;
1017   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019     program_prefix=$ac_optarg ;;
1020
1021   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022   | --program-suf | --program-su | --program-s)
1023     ac_prev=program_suffix ;;
1024   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026     program_suffix=$ac_optarg ;;
1027
1028   -program-transform-name | --program-transform-name \
1029   | --program-transform-nam | --program-transform-na \
1030   | --program-transform-n | --program-transform- \
1031   | --program-transform | --program-transfor \
1032   | --program-transfo | --program-transf \
1033   | --program-trans | --program-tran \
1034   | --progr-tra | --program-tr | --program-t)
1035     ac_prev=program_transform_name ;;
1036   -program-transform-name=* | --program-transform-name=* \
1037   | --program-transform-nam=* | --program-transform-na=* \
1038   | --program-transform-n=* | --program-transform-=* \
1039   | --program-transform=* | --program-transfor=* \
1040   | --program-transfo=* | --program-transf=* \
1041   | --program-trans=* | --program-tran=* \
1042   | --progr-tra=* | --program-tr=* | --program-t=*)
1043     program_transform_name=$ac_optarg ;;
1044
1045   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046     ac_prev=pdfdir ;;
1047   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048     pdfdir=$ac_optarg ;;
1049
1050   -psdir | --psdir | --psdi | --psd | --ps)
1051     ac_prev=psdir ;;
1052   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053     psdir=$ac_optarg ;;
1054
1055   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056   | -silent | --silent | --silen | --sile | --sil)
1057     silent=yes ;;
1058
1059   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060     ac_prev=sbindir ;;
1061   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062   | --sbi=* | --sb=*)
1063     sbindir=$ac_optarg ;;
1064
1065   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067   | --sharedst | --shareds | --shared | --share | --shar \
1068   | --sha | --sh)
1069     ac_prev=sharedstatedir ;;
1070   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073   | --sha=* | --sh=*)
1074     sharedstatedir=$ac_optarg ;;
1075
1076   -site | --site | --sit)
1077     ac_prev=site ;;
1078   -site=* | --site=* | --sit=*)
1079     site=$ac_optarg ;;
1080
1081   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082     ac_prev=srcdir ;;
1083   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084     srcdir=$ac_optarg ;;
1085
1086   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087   | --syscon | --sysco | --sysc | --sys | --sy)
1088     ac_prev=sysconfdir ;;
1089   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091     sysconfdir=$ac_optarg ;;
1092
1093   -target | --target | --targe | --targ | --tar | --ta | --t)
1094     ac_prev=target_alias ;;
1095   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096     target_alias=$ac_optarg ;;
1097
1098   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099     verbose=yes ;;
1100
1101   -version | --version | --versio | --versi | --vers | -V)
1102     ac_init_version=: ;;
1103
1104   -with-* | --with-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error $? "invalid package name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval with_$ac_useropt=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error $? "invalid package name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=no ;;
1135
1136   --x)
1137     # Obsolete; use --with-x.
1138     with_x=yes ;;
1139
1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141   | --x-incl | --x-inc | --x-in | --x-i)
1142     ac_prev=x_includes ;;
1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145     x_includes=$ac_optarg ;;
1146
1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149     ac_prev=x_libraries ;;
1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152     x_libraries=$ac_optarg ;;
1153
1154   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156     ;;
1157
1158   *=*)
1159     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160     # Reject names that are not valid shell variable names.
1161     case $ac_envvar in #(
1162       '' | [0-9]* | *[!_$as_cr_alnum]* )
1163       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164     esac
1165     eval $ac_envvar=\$ac_optarg
1166     export $ac_envvar ;;
1167
1168   *)
1169     # FIXME: should be removed in autoconf 3.0.
1170     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174     ;;
1175
1176   esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181   as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185   case $enable_option_checking in
1186     no) ;;
1187     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189   esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194                 datadir sysconfdir sharedstatedir localstatedir includedir \
1195                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196                 libdir localedir mandir
1197 do
1198   eval ac_val=\$$ac_var
1199   # Remove trailing slashes.
1200   case $ac_val in
1201     */ )
1202       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203       eval $ac_var=\$ac_val;;
1204   esac
1205   # Be sure to have absolute directory names.
1206   case $ac_val in
1207     [\\/$]* | ?:[\\/]* )  continue;;
1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209   esac
1210   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222   if test "x$build_alias" = x; then
1223     cross_compiling=maybe
1224   elif test "x$build_alias" != "x$host_alias"; then
1225     cross_compiling=yes
1226   fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238   as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245   ac_srcdir_defaulted=yes
1246   # Try the directory containing this script, then the parent directory.
1247   ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249          X"$as_myself" : 'X\(//\)[^/]' \| \
1250          X"$as_myself" : 'X\(//\)$' \| \
1251          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\/\)[^/].*/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\).*/{
1266             s//\1/
1267             q
1268           }
1269           s/.*/./; q'`
1270   srcdir=$ac_confdir
1271   if test ! -r "$srcdir/$ac_unique_file"; then
1272     srcdir=..
1273   fi
1274 else
1275   ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284         pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287   srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_env_${ac_var}_value=\$${ac_var}
1298   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306   # Omit some internal or obsolete options to make the list less imposing.
1307   # This message is too long to be a string in the A/UX 3.1 sh.
1308   cat <<_ACEOF
1309 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE.  See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319   -h, --help              display this help and exit
1320       --help=short        display options specific to this package
1321       --help=recursive    display the short help of all the included packages
1322   -V, --version           display version information and exit
1323   -q, --quiet, --silent   do not print \`checking ...' messages
1324       --cache-file=FILE   cache test results in FILE [disabled]
1325   -C, --config-cache      alias for \`--cache-file=config.cache'
1326   -n, --no-create         do not create output files
1327       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330   --prefix=PREFIX         install architecture-independent files in PREFIX
1331                           [$ac_default_prefix]
1332   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1333                           [PREFIX]
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343   --bindir=DIR            user executables [EPREFIX/bin]
1344   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1345   --libexecdir=DIR        program executables [EPREFIX/libexec]
1346   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1347   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1348   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1349   --libdir=DIR            object code libraries [EPREFIX/lib]
1350   --includedir=DIR        C header files [PREFIX/include]
1351   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354   --infodir=DIR           info documentation [DATAROOTDIR/info]
1355   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356   --mandir=DIR            man documentation [DATAROOTDIR/man]
1357   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1358   --htmldir=DIR           html documentation [DOCDIR]
1359   --dvidir=DIR            dvi documentation [DOCDIR]
1360   --pdfdir=DIR            pdf documentation [DOCDIR]
1361   --psdir=DIR             ps documentation [DOCDIR]
1362 _ACEOF
1363
1364   cat <<\_ACEOF
1365
1366 System types:
1367   --build=BUILD     configure for building on BUILD [guessed]
1368   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1369   --target=TARGET   configure for building compilers for TARGET [HOST]
1370 _ACEOF
1371 fi
1372
1373 if test -n "$ac_init_help"; then
1374   case $ac_init_help in
1375      short | recursive ) echo "Configuration of freeradius $Id$:";;
1376    esac
1377   cat <<\_ACEOF
1378
1379 Optional Features:
1380   --disable-option-checking  ignore unrecognized --enable/--with options
1381   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1382   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1383   --enable-developer      enables features of interest to developers.
1384   --disable-largefile     omit support for large files
1385   --enable-strict-dependencies  fail configure on lack of module dependancy.
1386   --enable-werror         causes the build to fail if any warnings are generated.
1387
1388 Optional Packages:
1389   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1392   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1393   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1394   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1395   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1396   --with-threads          Use threads, if available.  (default=yes)
1397   --with-tcp              Compile in TCP support. (default=yes)
1398   --with-vmps             Compile in VMPS support. (default=yes)
1399   --with-dhcp             Compile in DHCP support. (default=yes)
1400   --with-static-modules=QUOTED-MODULE-LIST
1401   --with-shared-libs             Build dynamic libraries and link against them. (default=yes)
1402   --with-modules=QUOTED-MODULE-LIST
1403   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1404   --with-openssl                   Use OpenSSL. (default=yes)
1405   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1406   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1407   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1408   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1409   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1410   --with-talloc-include-dir=DIR
1411                           Directory where the talloc includes may be found
1412   --with-talloc-lib-dir=DIR
1413                           Directory where the talloc libs may be found
1414   --with-pcre-lib-dir=DIR       directory for PCRE library files
1415   --with-pcre-include-dir=DIR   directory for PCRE include files
1416
1417 Some influential environment variables:
1418   CC          C compiler command
1419   CFLAGS      C compiler flags
1420   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1421               nonstandard directory <lib dir>
1422   LIBS        libraries to pass to the linker, e.g. -l<library>
1423   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424               you have headers in a nonstandard directory <include dir>
1425   CXX         C++ compiler command
1426   CXXFLAGS    C++ compiler flags
1427   CPP         C preprocessor
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to <http://bugs.freeradius.org>.
1433 freeradius home page: <http://www.freeradius.org>.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439   # If there are subdirs, report their specific --help.
1440   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441     test -d "$ac_dir" ||
1442       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443       continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 freeradius configure $Id$
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503   exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_cxx_try_compile LINENO
1549 # ----------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_cxx_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_cxx_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_cxx_try_compile
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600   ac_status=$?
1601   if test -s conftest.err; then
1602     grep -v '^ *+' conftest.err >conftest.er1
1603     cat conftest.er1 >&5
1604     mv -f conftest.er1 conftest.err
1605   fi
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } > conftest.i && {
1608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609          test ! -s conftest.err
1610        }; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616     ac_retval=1
1617 fi
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if eval \${$3+:} false; then :
1632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635   $as_echo_n "(cached) " >&6
1636 fi
1637 eval ac_res=\$$3
1638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641   # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h.  */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650   ac_header_compiler=yes
1651 else
1652   ac_header_compiler=no
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1657
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h.  */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666   ac_header_preproc=yes
1667 else
1668   ac_header_preproc=no
1669 fi
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1673
1674 # So?  What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676   yes:no: )
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681     ;;
1682   no:yes:* )
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ( $as_echo "## ----------------------------------------- ##
1694 ## Report this to http://bugs.freeradius.org ##
1695 ## ----------------------------------------- ##"
1696      ) | sed "s/^/$as_me: WARNING:     /" >&2
1697     ;;
1698 esac
1699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702   $as_echo_n "(cached) " >&6
1703 else
1704   eval "$3=\$ac_header_compiler"
1705 fi
1706 eval ac_res=\$$3
1707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712 } # ac_fn_c_check_header_mongrel
1713
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_link") 2>&5
1729   ac_status=$?
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732   { { case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_try") 2>&5
1739   ac_status=$?
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; }; }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: program exited with status $ac_status" >&5
1745        $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748        ac_retval=$ac_status
1749 fi
1750   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752   as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_run
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774   eval "$3=yes"
1775 else
1776   eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_link ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   rm -f conftest.$ac_objext conftest$ac_exeext
1794   if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_link") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && {
1810          test -z "$ac_c_werror_flag" ||
1811          test ! -s conftest.err
1812        } && test -s conftest$ac_exeext && {
1813          test "$cross_compiling" = yes ||
1814          test -x conftest$ac_exeext
1815        }; then :
1816   ac_retval=0
1817 else
1818   $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821         ac_retval=1
1822 fi
1823   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825   # interfere with the next link command; also delete a directory that is
1826   # left behind by Apple's compiler.  We do this before executing the actions.
1827   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_link
1832
1833 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1834 # -------------------------------------------
1835 # Tests whether TYPE exists after having included INCLUDES, setting cache
1836 # variable VAR accordingly.
1837 ac_fn_c_check_type ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   eval "$3=no"
1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 $4
1849 int
1850 main ()
1851 {
1852 if (sizeof ($2))
1853          return 0;
1854   ;
1855   return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 $4
1862 int
1863 main ()
1864 {
1865 if (sizeof (($2)))
1866             return 0;
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872
1873 else
1874   eval "$3=yes"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_type
1886
1887 # ac_fn_c_check_func LINENO FUNC VAR
1888 # ----------------------------------
1889 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1890 ac_fn_c_check_func ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1902 #define $2 innocuous_$2
1903
1904 /* System header to define __stub macros and hopefully few prototypes,
1905     which can conflict with char $2 (); below.
1906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907     <limits.h> exists even on freestanding compilers.  */
1908
1909 #ifdef __STDC__
1910 # include <limits.h>
1911 #else
1912 # include <assert.h>
1913 #endif
1914
1915 #undef $2
1916
1917 /* Override any GCC internal prototype to avoid an error.
1918    Use char because int might match the return type of a GCC
1919    builtin and then its argument prototype would still apply.  */
1920 #ifdef __cplusplus
1921 extern "C"
1922 #endif
1923 char $2 ();
1924 /* The GNU C library defines this for functions which it implements
1925     to always fail with ENOSYS.  Some functions are actually named
1926     something starting with __ and the normal name is an alias.  */
1927 #if defined __stub_$2 || defined __stub___$2
1928 choke me
1929 #endif
1930
1931 int
1932 main ()
1933 {
1934 return $2 ();
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_link "$LINENO"; then :
1940   eval "$3=yes"
1941 else
1942   eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext \
1945     conftest$ac_exeext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_func
1953
1954 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1955 # ---------------------------------------------
1956 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1957 # accordingly.
1958 ac_fn_c_check_decl ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   as_decl_name=`echo $2|sed 's/ *(.*//'`
1962   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1964 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1965 if eval \${$3+:} false; then :
1966   $as_echo_n "(cached) " >&6
1967 else
1968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 $4
1971 int
1972 main ()
1973 {
1974 #ifndef $as_decl_name
1975 #ifdef __cplusplus
1976   (void) $as_decl_use;
1977 #else
1978   (void) $as_decl_name;
1979 #endif
1980 #endif
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987   eval "$3=yes"
1988 else
1989   eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_decl
1999 cat >config.log <<_ACEOF
2000 This file contains any messages produced by compilers while
2001 running configure, to aid debugging if configure makes a mistake.
2002
2003 It was created by freeradius $as_me $Id$, which was
2004 generated by GNU Autoconf 2.69.  Invocation command line was
2005
2006   $ $0 $@
2007
2008 _ACEOF
2009 exec 5>>config.log
2010 {
2011 cat <<_ASUNAME
2012 ## --------- ##
2013 ## Platform. ##
2014 ## --------- ##
2015
2016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2021
2022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2024
2025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2028 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2032
2033 _ASUNAME
2034
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040     $as_echo "PATH: $as_dir"
2041   done
2042 IFS=$as_save_IFS
2043
2044 } >&5
2045
2046 cat >&5 <<_ACEOF
2047
2048
2049 ## ----------- ##
2050 ## Core tests. ##
2051 ## ----------- ##
2052
2053 _ACEOF
2054
2055
2056 # Keep a trace of the command line.
2057 # Strip out --no-create and --no-recursion so they do not pile up.
2058 # Strip out --silent because we don't want to record it for future runs.
2059 # Also quote any args containing shell meta-characters.
2060 # Make two passes to allow for proper duplicate-argument suppression.
2061 ac_configure_args=
2062 ac_configure_args0=
2063 ac_configure_args1=
2064 ac_must_keep_next=false
2065 for ac_pass in 1 2
2066 do
2067   for ac_arg
2068   do
2069     case $ac_arg in
2070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2072     | -silent | --silent | --silen | --sile | --sil)
2073       continue ;;
2074     *\'*)
2075       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076     esac
2077     case $ac_pass in
2078     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2079     2)
2080       as_fn_append ac_configure_args1 " '$ac_arg'"
2081       if test $ac_must_keep_next = true; then
2082         ac_must_keep_next=false # Got value, back to normal.
2083       else
2084         case $ac_arg in
2085           *=* | --config-cache | -C | -disable-* | --disable-* \
2086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2088           | -with-* | --with-* | -without-* | --without-* | --x)
2089             case "$ac_configure_args0 " in
2090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091             esac
2092             ;;
2093           -* ) ac_must_keep_next=true ;;
2094         esac
2095       fi
2096       as_fn_append ac_configure_args " '$ac_arg'"
2097       ;;
2098     esac
2099   done
2100 done
2101 { ac_configure_args0=; unset ac_configure_args0;}
2102 { ac_configure_args1=; unset ac_configure_args1;}
2103
2104 # When interrupted or exit'd, cleanup temporary files, and complete
2105 # config.log.  We remove comments because anyway the quotes in there
2106 # would cause problems or look ugly.
2107 # WARNING: Use '\'' to represent an apostrophe within the trap.
2108 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2109 trap 'exit_status=$?
2110   # Save into config.log some information that might help in debugging.
2111   {
2112     echo
2113
2114     $as_echo "## ---------------- ##
2115 ## Cache variables. ##
2116 ## ---------------- ##"
2117     echo
2118     # The following way of writing the cache mishandles newlines in values,
2119 (
2120   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121     eval ac_val=\$$ac_var
2122     case $ac_val in #(
2123     *${as_nl}*)
2124       case $ac_var in #(
2125       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127       esac
2128       case $ac_var in #(
2129       _ | IFS | as_nl) ;; #(
2130       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131       *) { eval $ac_var=; unset $ac_var;} ;;
2132       esac ;;
2133     esac
2134   done
2135   (set) 2>&1 |
2136     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137     *${as_nl}ac_space=\ *)
2138       sed -n \
2139         "s/'\''/'\''\\\\'\'''\''/g;
2140           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141       ;; #(
2142     *)
2143       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2144       ;;
2145     esac |
2146     sort
2147 )
2148     echo
2149
2150     $as_echo "## ----------------- ##
2151 ## Output variables. ##
2152 ## ----------------- ##"
2153     echo
2154     for ac_var in $ac_subst_vars
2155     do
2156       eval ac_val=\$$ac_var
2157       case $ac_val in
2158       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159       esac
2160       $as_echo "$ac_var='\''$ac_val'\''"
2161     done | sort
2162     echo
2163
2164     if test -n "$ac_subst_files"; then
2165       $as_echo "## ------------------- ##
2166 ## File substitutions. ##
2167 ## ------------------- ##"
2168       echo
2169       for ac_var in $ac_subst_files
2170       do
2171         eval ac_val=\$$ac_var
2172         case $ac_val in
2173         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174         esac
2175         $as_echo "$ac_var='\''$ac_val'\''"
2176       done | sort
2177       echo
2178     fi
2179
2180     if test -s confdefs.h; then
2181       $as_echo "## ----------- ##
2182 ## confdefs.h. ##
2183 ## ----------- ##"
2184       echo
2185       cat confdefs.h
2186       echo
2187     fi
2188     test "$ac_signal" != 0 &&
2189       $as_echo "$as_me: caught signal $ac_signal"
2190     $as_echo "$as_me: exit $exit_status"
2191   } >&5
2192   rm -f core *.core core.conftest.* &&
2193     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194     exit $exit_status
2195 ' 0
2196 for ac_signal in 1 2 13 15; do
2197   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 done
2199 ac_signal=0
2200
2201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2202 rm -f -r conftest* confdefs.h
2203
2204 $as_echo "/* confdefs.h */" > confdefs.h
2205
2206 # Predefined preprocessor variables.
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_URL "$PACKAGE_URL"
2230 _ACEOF
2231
2232
2233 # Let the site file select an alternate cache file if it wants to.
2234 # Prefer an explicitly selected file to automatically selected ones.
2235 ac_site_file1=NONE
2236 ac_site_file2=NONE
2237 if test -n "$CONFIG_SITE"; then
2238   # We do not want a PATH search for config.site.
2239   case $CONFIG_SITE in #((
2240     -*)  ac_site_file1=./$CONFIG_SITE;;
2241     */*) ac_site_file1=$CONFIG_SITE;;
2242     *)   ac_site_file1=./$CONFIG_SITE;;
2243   esac
2244 elif test "x$prefix" != xNONE; then
2245   ac_site_file1=$prefix/share/config.site
2246   ac_site_file2=$prefix/etc/config.site
2247 else
2248   ac_site_file1=$ac_default_prefix/share/config.site
2249   ac_site_file2=$ac_default_prefix/etc/config.site
2250 fi
2251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2252 do
2253   test "x$ac_site_file" = xNONE && continue
2254   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2255     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2257     sed 's/^/| /' "$ac_site_file" >&5
2258     . "$ac_site_file" \
2259       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 as_fn_error $? "failed to load site script $ac_site_file
2262 See \`config.log' for more details" "$LINENO" 5; }
2263   fi
2264 done
2265
2266 if test -r "$cache_file"; then
2267   # Some versions of bash will fail to source /dev/null (special files
2268   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2269   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272     case $cache_file in
2273       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274       *)                      . "./$cache_file";;
2275     esac
2276   fi
2277 else
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279 $as_echo "$as_me: creating cache $cache_file" >&6;}
2280   >$cache_file
2281 fi
2282
2283 # Check that the precious variables saved in the cache have kept the same
2284 # value.
2285 ac_cache_corrupted=false
2286 for ac_var in $ac_precious_vars; do
2287   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288   eval ac_new_set=\$ac_env_${ac_var}_set
2289   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290   eval ac_new_val=\$ac_env_${ac_var}_value
2291   case $ac_old_set,$ac_new_set in
2292     set,)
2293       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295       ac_cache_corrupted=: ;;
2296     ,set)
2297       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299       ac_cache_corrupted=: ;;
2300     ,);;
2301     *)
2302       if test "x$ac_old_val" != "x$ac_new_val"; then
2303         # differences in whitespace do not lead to failure.
2304         ac_old_val_w=`echo x $ac_old_val`
2305         ac_new_val_w=`echo x $ac_new_val`
2306         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309           ac_cache_corrupted=:
2310         else
2311           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313           eval $ac_var=\$ac_old_val
2314         fi
2315         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2316 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2317         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2318 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2319       fi;;
2320   esac
2321   # Pass precious variables to config.status.
2322   if test "$ac_new_set" = set; then
2323     case $ac_new_val in
2324     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325     *) ac_arg=$ac_var=$ac_new_val ;;
2326     esac
2327     case " $ac_configure_args " in
2328       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2329       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330     esac
2331   fi
2332 done
2333 if $ac_cache_corrupted; then
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 fi
2340 ## -------------------- ##
2341 ## Main body of script. ##
2342 ## -------------------- ##
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351
2352 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2366 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2367 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2368
2369 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2370 -v minor="$RADIUSD_MINOR_VERSION" \
2371 -v incrm="$RADIUSD_INCRM_VERSION" \
2372 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2373
2374 RADIUSD_VERSION_STRING=`cat VERSION`
2375
2376
2377
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2381 _ACEOF
2382
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2386 _ACEOF
2387
2388
2389
2390 # Check whether --enable-developer was given.
2391 if test "${enable_developer+set}" = set; then :
2392   enableval=$enable_developer;  case "$enableval" in
2393   no)
2394     developer=no
2395     ;;
2396   *)
2397     developer=yes
2398   esac
2399
2400 fi
2401
2402
2403 if test -d $srcdir/.git; then
2404   if test "x$developer" != "xno"; then
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2406 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2407     developer="yes"
2408   fi
2409 fi
2410
2411 if test "x$developer" = "xyes"; then
2412   : ${CFLAGS=-g3}
2413 fi
2414
2415
2416 ac_aux_dir=
2417 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418   if test -f "$ac_dir/install-sh"; then
2419     ac_aux_dir=$ac_dir
2420     ac_install_sh="$ac_aux_dir/install-sh -c"
2421     break
2422   elif test -f "$ac_dir/install.sh"; then
2423     ac_aux_dir=$ac_dir
2424     ac_install_sh="$ac_aux_dir/install.sh -c"
2425     break
2426   elif test -f "$ac_dir/shtool"; then
2427     ac_aux_dir=$ac_dir
2428     ac_install_sh="$ac_aux_dir/shtool install -c"
2429     break
2430   fi
2431 done
2432 if test -z "$ac_aux_dir"; then
2433   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2434 fi
2435
2436 # These three variables are undocumented and unsupported,
2437 # and are intended to be withdrawn in a future Autoconf release.
2438 # They can cause serious problems if a builder's source tree is in a directory
2439 # whose full name contains unusual characters.
2440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2442 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2443
2444
2445 # Make sure we can run config.sub.
2446 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2447   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2448
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2450 $as_echo_n "checking build system type... " >&6; }
2451 if ${ac_cv_build+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   ac_build_alias=$build_alias
2455 test "x$ac_build_alias" = x &&
2456   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2457 test "x$ac_build_alias" = x &&
2458   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2459 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2460   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2461
2462 fi
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2464 $as_echo "$ac_cv_build" >&6; }
2465 case $ac_cv_build in
2466 *-*-*) ;;
2467 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2468 esac
2469 build=$ac_cv_build
2470 ac_save_IFS=$IFS; IFS='-'
2471 set x $ac_cv_build
2472 shift
2473 build_cpu=$1
2474 build_vendor=$2
2475 shift; shift
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2478 build_os=$*
2479 IFS=$ac_save_IFS
2480 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2481
2482
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2484 $as_echo_n "checking host system type... " >&6; }
2485 if ${ac_cv_host+:} false; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   if test "x$host_alias" = x; then
2489   ac_cv_host=$ac_cv_build
2490 else
2491   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2492     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2493 fi
2494
2495 fi
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2497 $as_echo "$ac_cv_host" >&6; }
2498 case $ac_cv_host in
2499 *-*-*) ;;
2500 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2501 esac
2502 host=$ac_cv_host
2503 ac_save_IFS=$IFS; IFS='-'
2504 set x $ac_cv_host
2505 shift
2506 host_cpu=$1
2507 host_vendor=$2
2508 shift; shift
2509 # Remember, the first character of IFS is used to create $*,
2510 # except with old shells:
2511 host_os=$*
2512 IFS=$ac_save_IFS
2513 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2514
2515
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2517 $as_echo_n "checking target system type... " >&6; }
2518 if ${ac_cv_target+:} false; then :
2519   $as_echo_n "(cached) " >&6
2520 else
2521   if test "x$target_alias" = x; then
2522   ac_cv_target=$ac_cv_host
2523 else
2524   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2525     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2526 fi
2527
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2530 $as_echo "$ac_cv_target" >&6; }
2531 case $ac_cv_target in
2532 *-*-*) ;;
2533 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2534 esac
2535 target=$ac_cv_target
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_target
2538 shift
2539 target_cpu=$1
2540 target_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 target_os=$*
2545 IFS=$ac_save_IFS
2546 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2547
2548
2549 # The aliases save the names the user supplied, while $host etc.
2550 # will get canonicalized.
2551 test -n "$target_alias" &&
2552   test "$program_prefix$program_suffix$program_transform_name" = \
2553     NONENONEs,x,x, &&
2554   program_prefix=${target_alias}-
2555
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 if test -n "$ac_tool_prefix"; then
2563   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_CC+:} false; then :
2568   $as_echo_n "(cached) " >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578     for ac_exec_ext in '' $ac_executable_extensions; do
2579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585   done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$ac_cv_prog_CC"; then
2602   ac_ct_CC=$CC
2603   # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test -n "$ac_ct_CC"; then
2611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618     for ac_exec_ext in '' $ac_executable_extensions; do
2619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620     ac_cv_prog_ac_ct_CC="gcc"
2621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625   done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633 $as_echo "$ac_ct_CC" >&6; }
2634 else
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639   if test "x$ac_ct_CC" = x; then
2640     CC=""
2641   else
2642     case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646 ac_tool_warned=yes ;;
2647 esac
2648     CC=$ac_ct_CC
2649   fi
2650 else
2651   CC="$ac_cv_prog_CC"
2652 fi
2653
2654 if test -z "$CC"; then
2655           if test -n "$ac_tool_prefix"; then
2656     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}cc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_CC+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$CC"; then
2664   ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673     ac_cv_prog_CC="${ac_tool_prefix}cc"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 CC=$ac_cv_prog_CC
2684 if test -n "$CC"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686 $as_echo "$CC" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693   fi
2694 fi
2695 if test -z "$CC"; then
2696   # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$CC"; then
2704   ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706   ac_prog_rejected=no
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712     for ac_exec_ext in '' $ac_executable_extensions; do
2713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715        ac_prog_rejected=yes
2716        continue
2717      fi
2718     ac_cv_prog_CC="cc"
2719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723   done
2724 IFS=$as_save_IFS
2725
2726 if test $ac_prog_rejected = yes; then
2727   # We found a bogon in the path, so make sure we never use it.
2728   set dummy $ac_cv_prog_CC
2729   shift
2730   if test $# != 0; then
2731     # We chose a different compiler from the bogus one.
2732     # However, it has the same basename, so the bogon will be chosen
2733     # first if we set CC to just the basename; use the full file name.
2734     shift
2735     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736   fi
2737 fi
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2744 else
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$CC"; then
2752   if test -n "$ac_tool_prefix"; then
2753   for ac_prog in cl.exe
2754   do
2755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   if test -n "$CC"; then
2763   ac_cv_prog_CC="$CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770     for ac_exec_ext in '' $ac_executable_extensions; do
2771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774     break 2
2775   fi
2776 done
2777   done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 $as_echo "$CC" >&6; }
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792     test -n "$CC" && break
2793   done
2794 fi
2795 if test -z "$CC"; then
2796   ac_ct_CC=$CC
2797   for ac_prog in cl.exe
2798 do
2799   # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   if test -n "$ac_ct_CC"; then
2807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814     for ac_exec_ext in '' $ac_executable_extensions; do
2815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816     ac_cv_prog_ac_ct_CC="$ac_prog"
2817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821   done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836   test -n "$ac_ct_CC" && break
2837 done
2838
2839   if test "x$ac_ct_CC" = x; then
2840     CC=""
2841   else
2842     case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848     CC=$ac_ct_CC
2849   fi
2850 fi
2851
2852 fi
2853
2854
2855 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details" "$LINENO" 5; }
2859
2860 # Provide some information about the compiler.
2861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2862 set X $ac_compile
2863 ac_compiler=$2
2864 for ac_option in --version -v -V -qversion; do
2865   { { ac_try="$ac_compiler $ac_option >&5"
2866 case "(($ac_try" in
2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868   *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2873   ac_status=$?
2874   if test -s conftest.err; then
2875     sed '10a\
2876 ... rest of stderr output deleted ...
2877          10q' conftest.err >conftest.er1
2878     cat conftest.er1 >&5
2879   fi
2880   rm -f conftest.er1 conftest.err
2881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882   test $ac_status = 0; }
2883 done
2884
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 ac_clean_files_save=$ac_clean_files
2897 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2900 # of exeext.
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2902 $as_echo_n "checking whether the C compiler works... " >&6; }
2903 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904
2905 # The possible output files:
2906 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2907
2908 ac_rmfiles=
2909 for ac_file in $ac_files
2910 do
2911   case $ac_file in
2912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2913     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2914   esac
2915 done
2916 rm -f $ac_rmfiles
2917
2918 if { { ac_try="$ac_link_default"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925   (eval "$ac_link_default") 2>&5
2926   ac_status=$?
2927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928   test $ac_status = 0; }; then :
2929   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2930 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2931 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2932 # so that the user can short-circuit this test for compilers unknown to
2933 # Autoconf.
2934 for ac_file in $ac_files ''
2935 do
2936   test -f "$ac_file" || continue
2937   case $ac_file in
2938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2939         ;;
2940     [ab].out )
2941         # We found the default executable, but exeext='' is most
2942         # certainly right.
2943         break;;
2944     *.* )
2945         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2946         then :; else
2947            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948         fi
2949         # We set ac_cv_exeext here because the later test for it is not
2950         # safe: cross compilers may not add the suffix if given an `-o'
2951         # argument, so we may need to know it at that point already.
2952         # Even if this section looks crufty: it has the advantage of
2953         # actually working.
2954         break;;
2955     * )
2956         break;;
2957   esac
2958 done
2959 test "$ac_cv_exeext" = no && ac_cv_exeext=
2960
2961 else
2962   ac_file=''
2963 fi
2964 if test -z "$ac_file"; then :
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error 77 "C compiler cannot create executables
2973 See \`config.log' for more details" "$LINENO" 5; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2977 fi
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2979 $as_echo_n "checking for C compiler default output file name... " >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2981 $as_echo "$ac_file" >&6; }
2982 ac_exeext=$ac_cv_exeext
2983
2984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2985 ac_clean_files=$ac_clean_files_save
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2987 $as_echo_n "checking for suffix of executables... " >&6; }
2988 if { { ac_try="$ac_link"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995   (eval "$ac_link") 2>&5
2996   ac_status=$?
2997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998   test $ac_status = 0; }; then :
2999   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3000 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3001 # work properly (i.e., refer to `conftest.exe'), while it won't with
3002 # `rm'.
3003 for ac_file in conftest.exe conftest conftest.*; do
3004   test -f "$ac_file" || continue
3005   case $ac_file in
3006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008           break;;
3009     * ) break;;
3010   esac
3011 done
3012 else
3013   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3016 See \`config.log' for more details" "$LINENO" 5; }
3017 fi
3018 rm -f conftest conftest$ac_cv_exeext
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3020 $as_echo "$ac_cv_exeext" >&6; }
3021
3022 rm -f conftest.$ac_ext
3023 EXEEXT=$ac_cv_exeext
3024 ac_exeext=$EXEEXT
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h.  */
3027 #include <stdio.h>
3028 int
3029 main ()
3030 {
3031 FILE *f = fopen ("conftest.out", "w");
3032  return ferror (f) || fclose (f) != 0;
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 ac_clean_files="$ac_clean_files conftest.out"
3039 # Check that the compiler produces executables we can run.  If not, either
3040 # the compiler is broken, or we cross compile.
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3042 $as_echo_n "checking whether we are cross compiling... " >&6; }
3043 if test "$cross_compiling" != yes; then
3044   { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051   (eval "$ac_link") 2>&5
3052   ac_status=$?
3053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054   test $ac_status = 0; }
3055   if { ac_try='./conftest$ac_cv_exeext'
3056   { { case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065   test $ac_status = 0; }; }; then
3066     cross_compiling=no
3067   else
3068     if test "$cross_compiling" = maybe; then
3069         cross_compiling=yes
3070     else
3071         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "cannot run C compiled programs.
3074 If you meant to cross compile, use \`--host'.
3075 See \`config.log' for more details" "$LINENO" 5; }
3076     fi
3077   fi
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3080 $as_echo "$cross_compiling" >&6; }
3081
3082 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3083 ac_clean_files=$ac_clean_files_save
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if ${ac_cv_objext+:} false; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108   (eval "$ac_compile") 2>&5
3109   ac_status=$?
3110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111   test $ac_status = 0; }; then :
3112   for ac_file in conftest.o conftest.obj conftest.*; do
3113   test -f "$ac_file" || continue;
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117        break;;
3118   esac
3119 done
3120 else
3121   $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details" "$LINENO" 5; }
3128 fi
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3134 ac_objext=$OBJEXT
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if ${ac_cv_c_compiler_gnu+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146 #ifndef __GNUC__
3147        choke me
3148 #endif
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155   ac_compiler_gnu=yes
3156 else
3157   ac_compiler_gnu=no
3158 fi
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3166   GCC=yes
3167 else
3168   GCC=
3169 fi
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if ${ac_cv_prog_cc_g+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   ac_save_c_werror_flag=$ac_c_werror_flag
3178    ac_c_werror_flag=yes
3179    ac_cv_prog_cc_g=no
3180    CFLAGS="-g"
3181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 if ac_fn_c_try_compile "$LINENO"; then :
3193   ac_cv_prog_cc_g=yes
3194 else
3195   CFLAGS=""
3196       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208
3209 else
3210   ac_c_werror_flag=$ac_save_c_werror_flag
3211          CFLAGS="-g"
3212          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224   ac_cv_prog_cc_g=yes
3225 fi
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 fi
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231    ac_c_werror_flag=$ac_save_c_werror_flag
3232 fi
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236   CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238   if test "$GCC" = yes; then
3239     CFLAGS="-g -O2"
3240   else
3241     CFLAGS="-g"
3242   fi
3243 else
3244   if test "$GCC" = yes; then
3245     CFLAGS="-O2"
3246   else
3247     CFLAGS=
3248   fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if ${ac_cv_prog_cc_c89+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h.  */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 struct stat;
3262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3263 struct buf { int x; };
3264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3265 static char *e (p, i)
3266      char **p;
3267      int i;
3268 {
3269   return p[i];
3270 }
3271 static char *f (char * (*g) (char **, int), char **p, ...)
3272 {
3273   char *s;
3274   va_list v;
3275   va_start (v,p);
3276   s = g (p, va_arg (v,int));
3277   va_end (v);
3278   return s;
3279 }
3280
3281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3282    function prototypes and stuff, but not '\xHH' hex character constants.
3283    These don't provoke an error unfortunately, instead are silently treated
3284    as 'x'.  The following induces an error, until -std is added to get
3285    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3286    array size at least.  It's necessary to write '\x00'==0 to get something
3287    that's true only with -std.  */
3288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3289
3290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3291    inside strings and character constants.  */
3292 #define FOO(x) 'x'
3293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3294
3295 int test (int i, double x);
3296 struct s1 {int (*f) (int a);};
3297 struct s2 {int (*f) (double a);};
3298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299 int argc;
3300 char **argv;
3301 int
3302 main ()
3303 {
3304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3310         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3311 do
3312   CC="$ac_save_CC $ac_arg"
3313   if ac_fn_c_try_compile "$LINENO"; then :
3314   ac_cv_prog_cc_c89=$ac_arg
3315 fi
3316 rm -f core conftest.err conftest.$ac_objext
3317   test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 done
3319 rm -f conftest.$ac_ext
3320 CC=$ac_save_CC
3321
3322 fi
3323 # AC_CACHE_VAL
3324 case "x$ac_cv_prog_cc_c89" in
3325   x)
3326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3327 $as_echo "none needed" >&6; } ;;
3328   xno)
3329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3330 $as_echo "unsupported" >&6; } ;;
3331   *)
3332     CC="$CC $ac_cv_prog_cc_c89"
3333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3335 esac
3336 if test "x$ac_cv_prog_cc_c89" != xno; then :
3337
3338 fi
3339
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346 ac_ext=cpp
3347 ac_cpp='$CXXCPP $CPPFLAGS'
3348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3351 if test -z "$CXX"; then
3352   if test -n "$CCC"; then
3353     CXX=$CCC
3354   else
3355     if test -n "$ac_tool_prefix"; then
3356   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3357   do
3358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_CXX+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   if test -n "$CXX"; then
3366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373     for ac_exec_ext in '' $ac_executable_extensions; do
3374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 CXX=$ac_cv_prog_CXX
3386 if test -n "$CXX"; then
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3388 $as_echo "$CXX" >&6; }
3389 else
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395     test -n "$CXX" && break
3396   done
3397 fi
3398 if test -z "$CXX"; then
3399   ac_ct_CXX=$CXX
3400   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3401 do
3402   # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$ac_ct_CXX"; then
3410   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419     ac_cv_prog_ac_ct_CXX="$ac_prog"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3430 if test -n "$ac_ct_CXX"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3432 $as_echo "$ac_ct_CXX" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439   test -n "$ac_ct_CXX" && break
3440 done
3441
3442   if test "x$ac_ct_CXX" = x; then
3443     CXX="g++"
3444   else
3445     case $cross_compiling:$ac_tool_warned in
3446 yes:)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3450 esac
3451     CXX=$ac_ct_CXX
3452   fi
3453 fi
3454
3455   fi
3456 fi
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3459 set X $ac_compile
3460 ac_compiler=$2
3461 for ac_option in --version -v -V -qversion; do
3462   { { ac_try="$ac_compiler $ac_option >&5"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470   ac_status=$?
3471   if test -s conftest.err; then
3472     sed '10a\
3473 ... rest of stderr output deleted ...
3474          10q' conftest.err >conftest.er1
3475     cat conftest.er1 >&5
3476   fi
3477   rm -f conftest.er1 conftest.err
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }
3480 done
3481
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3484 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493 #ifndef __GNUC__
3494        choke me
3495 #endif
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_cxx_try_compile "$LINENO"; then :
3502   ac_compiler_gnu=yes
3503 else
3504   ac_compiler_gnu=no
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3508
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513   GXX=yes
3514 else
3515   GXX=
3516 fi
3517 ac_test_CXXFLAGS=${CXXFLAGS+set}
3518 ac_save_CXXFLAGS=$CXXFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3521 if ${ac_cv_prog_cxx_g+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3525    ac_cxx_werror_flag=yes
3526    ac_cv_prog_cxx_g=no
3527    CXXFLAGS="-g"
3528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_cxx_try_compile "$LINENO"; then :
3540   ac_cv_prog_cxx_g=yes
3541 else
3542   CXXFLAGS=""
3543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_cxx_try_compile "$LINENO"; then :
3555
3556 else
3557   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558          CXXFLAGS="-g"
3559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_cxx_try_compile "$LINENO"; then :
3571   ac_cv_prog_cxx_g=yes
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3582 if test "$ac_test_CXXFLAGS" = set; then
3583   CXXFLAGS=$ac_save_CXXFLAGS
3584 elif test $ac_cv_prog_cxx_g = yes; then
3585   if test "$GXX" = yes; then
3586     CXXFLAGS="-g -O2"
3587   else
3588     CXXFLAGS="-g"
3589   fi
3590 else
3591   if test "$GXX" = yes; then
3592     CXXFLAGS="-O2"
3593   else
3594     CXXFLAGS=
3595   fi
3596 fi
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3611 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3612 # On Suns, sometimes $CPP names a directory.
3613 if test -n "$CPP" && test -d "$CPP"; then
3614   CPP=
3615 fi
3616 if test -z "$CPP"; then
3617   if ${ac_cv_prog_CPP+:} false; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620       # Double quotes because CPP needs to be expanded
3621     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3622     do
3623       ac_preproc_ok=false
3624 for ac_c_preproc_warn_flag in '' yes
3625 do
3626   # Use a header file that comes with gcc, so configuring glibc
3627   # with a fresh cross-compiler works.
3628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629   # <limits.h> exists even on freestanding compilers.
3630   # On the NeXT, cc -E runs the code through the compiler's parser,
3631   # not just through cpp. "Syntax error" is here to catch this case.
3632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634 #ifdef __STDC__
3635 # include <limits.h>
3636 #else
3637 # include <assert.h>
3638 #endif
3639                      Syntax error
3640 _ACEOF
3641 if ac_fn_c_try_cpp "$LINENO"; then :
3642
3643 else
3644   # Broken: fails on valid input.
3645 continue
3646 fi
3647 rm -f conftest.err conftest.i conftest.$ac_ext
3648
3649   # OK, works on sane cases.  Now check whether nonexistent headers
3650   # can be detected and how.
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653 #include <ac_nonexistent.h>
3654 _ACEOF
3655 if ac_fn_c_try_cpp "$LINENO"; then :
3656   # Broken: success on invalid input.
3657 continue
3658 else
3659   # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.i conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then :
3669   break
3670 fi
3671
3672     done
3673     ac_cv_prog_CPP=$CPP
3674
3675 fi
3676   CPP=$ac_cv_prog_CPP
3677 else
3678   ac_cv_prog_CPP=$CPP
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3681 $as_echo "$CPP" >&6; }
3682 ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3684 do
3685   # Use a header file that comes with gcc, so configuring glibc
3686   # with a fresh cross-compiler works.
3687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688   # <limits.h> exists even on freestanding compilers.
3689   # On the NeXT, cc -E runs the code through the compiler's parser,
3690   # not just through cpp. "Syntax error" is here to catch this case.
3691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693 #ifdef __STDC__
3694 # include <limits.h>
3695 #else
3696 # include <assert.h>
3697 #endif
3698                      Syntax error
3699 _ACEOF
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3701
3702 else
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706 rm -f conftest.err conftest.i conftest.$ac_ext
3707
3708   # OK, works on sane cases.  Now check whether nonexistent headers
3709   # can be detected and how.
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if ac_fn_c_try_cpp "$LINENO"; then :
3715   # Broken: success on invalid input.
3716 continue
3717 else
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3723
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.i conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then :
3728
3729 else
3730   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details" "$LINENO" 5; }
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3744 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3745 if ${ac_cv_path_GREP+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   if test -z "$GREP"; then
3749   ac_path_GREP_found=false
3750   # Loop through the user's path and test for each of PROGNAME-LIST
3751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756     for ac_prog in grep ggrep; do
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759       as_fn_executable_p "$ac_path_GREP" || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761   # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766   ac_count=0
3767   $as_echo_n 0123456789 >"conftest.in"
3768   while :
3769   do
3770     cat "conftest.in" "conftest.in" >"conftest.tmp"
3771     mv "conftest.tmp" "conftest.in"
3772     cp "conftest.in" "conftest.nl"
3773     $as_echo 'GREP' >> "conftest.nl"
3774     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776     as_fn_arith $ac_count + 1 && ac_count=$as_val
3777     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778       # Best one so far, save it but keep looking for a better one
3779       ac_cv_path_GREP="$ac_path_GREP"
3780       ac_path_GREP_max=$ac_count
3781     fi
3782     # 10*(2^10) chars as input seems more than enough
3783     test $ac_count -gt 10 && break
3784   done
3785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788       $ac_path_GREP_found && break 3
3789     done
3790   done
3791   done
3792 IFS=$as_save_IFS
3793   if test -z "$ac_cv_path_GREP"; then
3794     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3795   fi
3796 else
3797   ac_cv_path_GREP=$GREP
3798 fi
3799
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3802 $as_echo "$ac_cv_path_GREP" >&6; }
3803  GREP="$ac_cv_path_GREP"
3804
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3807 $as_echo_n "checking for egrep... " >&6; }
3808 if ${ac_cv_path_EGREP+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812    then ac_cv_path_EGREP="$GREP -E"
3813    else
3814      if test -z "$EGREP"; then
3815   ac_path_EGREP_found=false
3816   # Loop through the user's path and test for each of PROGNAME-LIST
3817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822     for ac_prog in egrep; do
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3825       as_fn_executable_p "$ac_path_EGREP" || continue
3826 # Check for GNU ac_path_EGREP and select it if it is found.
3827   # Check for GNU $ac_path_EGREP
3828 case `"$ac_path_EGREP" --version 2>&1` in
3829 *GNU*)
3830   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3831 *)
3832   ac_count=0
3833   $as_echo_n 0123456789 >"conftest.in"
3834   while :
3835   do
3836     cat "conftest.in" "conftest.in" >"conftest.tmp"
3837     mv "conftest.tmp" "conftest.in"
3838     cp "conftest.in" "conftest.nl"
3839     $as_echo 'EGREP' >> "conftest.nl"
3840     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842     as_fn_arith $ac_count + 1 && ac_count=$as_val
3843     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3844       # Best one so far, save it but keep looking for a better one
3845       ac_cv_path_EGREP="$ac_path_EGREP"
3846       ac_path_EGREP_max=$ac_count
3847     fi
3848     # 10*(2^10) chars as input seems more than enough
3849     test $ac_count -gt 10 && break
3850   done
3851   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3853
3854       $ac_path_EGREP_found && break 3
3855     done
3856   done
3857   done
3858 IFS=$as_save_IFS
3859   if test -z "$ac_cv_path_EGREP"; then
3860     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3861   fi
3862 else
3863   ac_cv_path_EGREP=$EGREP
3864 fi
3865
3866    fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3869 $as_echo "$ac_cv_path_EGREP" >&6; }
3870  EGREP="$ac_cv_path_EGREP"
3871
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3874 $as_echo_n "checking for ANSI C header files... " >&6; }
3875 if ${ac_cv_header_stdc+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdlib.h>
3881 #include <stdarg.h>
3882 #include <string.h>
3883 #include <float.h>
3884
3885 int
3886 main ()
3887 {
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894   ac_cv_header_stdc=yes
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904 #include <string.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "memchr" >/dev/null 2>&1; then :
3909
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921 #include <stdlib.h>
3922
3923 _ACEOF
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925   $EGREP "free" >/dev/null 2>&1; then :
3926
3927 else
3928   ac_cv_header_stdc=no
3929 fi
3930 rm -f conftest*
3931
3932 fi
3933
3934 if test $ac_cv_header_stdc = yes; then
3935   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936   if test "$cross_compiling" = yes; then :
3937   :
3938 else
3939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941 #include <ctype.h>
3942 #include <stdlib.h>
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 #else
3947 # define ISLOWER(c) \
3948                    (('a' <= (c) && (c) <= 'i') \
3949                      || ('j' <= (c) && (c) <= 'r') \
3950                      || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #endif
3953
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955 int
3956 main ()
3957 {
3958   int i;
3959   for (i = 0; i < 256; i++)
3960     if (XOR (islower (i), ISLOWER (i))
3961         || toupper (i) != TOUPPER (i))
3962       return 2;
3963   return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_run "$LINENO"; then :
3967
3968 else
3969   ac_cv_header_stdc=no
3970 fi
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3972   conftest.$ac_objext conftest.beam conftest.$ac_ext
3973 fi
3974
3975 fi
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3978 $as_echo "$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3980
3981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3982
3983 fi
3984
3985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987                   inttypes.h stdint.h unistd.h
3988 do :
3989   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3991 "
3992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3993   cat >>confdefs.h <<_ACEOF
3994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3995 _ACEOF
3996
3997 fi
3998
3999 done
4000
4001
4002
4003   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4004 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4005   MINIX=yes
4006 else
4007   MINIX=
4008 fi
4009
4010
4011   if test "$MINIX" = yes; then
4012
4013 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4014
4015
4016 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4017
4018
4019 $as_echo "#define _MINIX 1" >>confdefs.h
4020
4021   fi
4022
4023
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4025 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4026 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031
4032 #         define __EXTENSIONS__ 1
4033           $ac_includes_default
4034 int
4035 main ()
4036 {
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043   ac_cv_safe_to_define___extensions__=yes
4044 else
4045   ac_cv_safe_to_define___extensions__=no
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4050 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4051   test $ac_cv_safe_to_define___extensions__ = yes &&
4052     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4053
4054   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4055
4056   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4057
4058   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4059
4060   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4061
4062
4063
4064
4065 if test $ac_cv_c_compiler_gnu = yes; then
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4067 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4068 if ${ac_cv_prog_gcc_traditional+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071     ac_pattern="Autoconf.*'x'"
4072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074 #include <sgtty.h>
4075 Autoconf TIOCGETP
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4079   ac_cv_prog_gcc_traditional=yes
4080 else
4081   ac_cv_prog_gcc_traditional=no
4082 fi
4083 rm -f conftest*
4084
4085
4086   if test $ac_cv_prog_gcc_traditional = no; then
4087     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089 #include <termio.h>
4090 Autoconf TCGETA
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4094   ac_cv_prog_gcc_traditional=yes
4095 fi
4096 rm -f conftest*
4097
4098   fi
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4101 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4102   if test $ac_cv_prog_gcc_traditional = yes; then
4103     CC="$CC -traditional"
4104   fi
4105 fi
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4108 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4109 if ${ac_cv_prog_suncc+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   cat > conftest.c <<EOF
4113 #ifdef __SUNPRO_C
4114   yes;
4115 #endif
4116 EOF
4117 if { ac_try='${CC-cc} -E conftest.c'
4118   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4123   ac_cv_prog_suncc=yes
4124 else
4125   ac_cv_prog_suncc=no
4126 fi
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4129 $as_echo "$ac_cv_prog_suncc" >&6; }
4130 if test -n "$ac_tool_prefix"; then
4131   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_RANLIB+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   if test -n "$RANLIB"; then
4139   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_exec_ext in '' $ac_executable_extensions; do
4147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 RANLIB=$ac_cv_prog_RANLIB
4159 if test -n "$RANLIB"; then
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4161 $as_echo "$RANLIB" >&6; }
4162 else
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168 fi
4169 if test -z "$ac_cv_prog_RANLIB"; then
4170   ac_ct_RANLIB=$RANLIB
4171   # Extract the first word of "ranlib", so it can be a program name with args.
4172 set dummy ranlib; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$ac_ct_RANLIB"; then
4179   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_ac_ct_RANLIB="ranlib"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4199 if test -n "$ac_ct_RANLIB"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4201 $as_echo "$ac_ct_RANLIB" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207   if test "x$ac_ct_RANLIB" = x; then
4208     RANLIB=":"
4209   else
4210     case $cross_compiling:$ac_tool_warned in
4211 yes:)
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214 ac_tool_warned=yes ;;
4215 esac
4216     RANLIB=$ac_ct_RANLIB
4217   fi
4218 else
4219   RANLIB="$ac_cv_prog_RANLIB"
4220 fi
4221
4222
4223
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4225 $as_echo_n "checking if compiler is clang... " >&6; }
4226 if ${ax_cv_cc_clang+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229
4230
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233
4234 int
4235 main ()
4236 {
4237
4238     #ifndef __clang__
4239          not clang
4240     #endif
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247   ax_cv_cc_clang=yes
4248 else
4249   ax_cv_cc_clang=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4255 $as_echo "$ax_cv_cc_clang" >&6; }
4256
4257
4258 if test "x$GCC" = "xyes"; then
4259   CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4260 fi
4261
4262
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4264 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4265 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268
4269
4270     CFLAGS_SAVED=$CFLAGS
4271     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4272
4273     ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281
4282 int
4283 main ()
4284 {
4285 return 0;
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291   ax_cv_cc_qunused_arguments_flag="yes"
4292 else
4293   ax_cv_cc_qunused_arguments_flag="no"
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296     ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
4303     CFLAGS="$CFLAGS_SAVED"
4304
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4307 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4308
4309 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4310   CFLAGS="$CFLAGS -Qunused-arguments"
4311   LDFLAGS="$LDFLAGS -Qunused-arguments"
4312 fi
4313
4314 # Check whether --enable-largefile was given.
4315 if test "${enable_largefile+set}" = set; then :
4316   enableval=$enable_largefile;
4317 fi
4318
4319 if test "$enable_largefile" != no; then
4320
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4322 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4323 if ${ac_cv_sys_largefile_CC+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   ac_cv_sys_largefile_CC=no
4327      if test "$GCC" != yes; then
4328        ac_save_CC=$CC
4329        while :; do
4330          # IRIX 6.2 and later do not support large files by default,
4331          # so use the C compiler's -n32 option if that helps.
4332          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #include <sys/types.h>
4335  /* Check that off_t can represent 2**63 - 1 correctly.
4336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337     since some C++ compilers masquerading as C compilers
4338     incorrectly reject 9223372036854775807.  */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341                        && LARGE_OFF_T % 2147483647 == 1)
4342                       ? 1 : -1];
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351          if ac_fn_c_try_compile "$LINENO"; then :
4352   break
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext
4355          CC="$CC -n32"
4356          if ac_fn_c_try_compile "$LINENO"; then :
4357   ac_cv_sys_largefile_CC=' -n32'; break
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext
4360          break
4361        done
4362        CC=$ac_save_CC
4363        rm -f conftest.$ac_ext
4364     fi
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4367 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4368   if test "$ac_cv_sys_largefile_CC" != no; then
4369     CC=$CC$ac_cv_sys_largefile_CC
4370   fi
4371
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4373 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4374 if ${ac_cv_sys_file_offset_bits+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   while :; do
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381  /* Check that off_t can represent 2**63 - 1 correctly.
4382     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4383     since some C++ compilers masquerading as C compilers
4384     incorrectly reject 9223372036854775807.  */
4385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4386   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4387                        && LARGE_OFF_T % 2147483647 == 1)
4388                       ? 1 : -1];
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398   ac_cv_sys_file_offset_bits=no; break
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h.  */
4403 #define _FILE_OFFSET_BITS 64
4404 #include <sys/types.h>
4405  /* Check that off_t can represent 2**63 - 1 correctly.
4406     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4407     since some C++ compilers masquerading as C compilers
4408     incorrectly reject 9223372036854775807.  */
4409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4410   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4411                        && LARGE_OFF_T % 2147483647 == 1)
4412                       ? 1 : -1];
4413 int
4414 main ()
4415 {
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422   ac_cv_sys_file_offset_bits=64; break
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425   ac_cv_sys_file_offset_bits=unknown
4426   break
4427 done
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4430 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4431 case $ac_cv_sys_file_offset_bits in #(
4432   no | unknown) ;;
4433   *)
4434 cat >>confdefs.h <<_ACEOF
4435 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4436 _ACEOF
4437 ;;
4438 esac
4439 rm -rf conftest*
4440   if test $ac_cv_sys_file_offset_bits = unknown; then
4441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4442 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4443 if ${ac_cv_sys_large_files+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   while :; do
4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #include <sys/types.h>
4450  /* Check that off_t can represent 2**63 - 1 correctly.
4451     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4452     since some C++ compilers masquerading as C compilers
4453     incorrectly reject 9223372036854775807.  */
4454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4455   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4456                        && LARGE_OFF_T % 2147483647 == 1)
4457                       ? 1 : -1];
4458 int
4459 main ()
4460 {
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467   ac_cv_sys_large_files=no; break
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472 #define _LARGE_FILES 1
4473 #include <sys/types.h>
4474  /* Check that off_t can represent 2**63 - 1 correctly.
4475     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4476     since some C++ compilers masquerading as C compilers
4477     incorrectly reject 9223372036854775807.  */
4478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4479   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4480                        && LARGE_OFF_T % 2147483647 == 1)
4481                       ? 1 : -1];
4482 int
4483 main ()
4484 {
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491   ac_cv_sys_large_files=1; break
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494   ac_cv_sys_large_files=unknown
4495   break
4496 done
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4499 $as_echo "$ac_cv_sys_large_files" >&6; }
4500 case $ac_cv_sys_large_files in #(
4501   no | unknown) ;;
4502   *)
4503 cat >>confdefs.h <<_ACEOF
4504 #define _LARGE_FILES $ac_cv_sys_large_files
4505 _ACEOF
4506 ;;
4507 esac
4508 rm -rf conftest*
4509   fi
4510
4511
4512 fi
4513
4514
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4516 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4517 if ${ac_cv_c_bigendian+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   ac_cv_c_bigendian=unknown
4521     # See if we're dealing with a universal compiler.
4522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #ifndef __APPLE_CC__
4525                not a universal capable compiler
4526              #endif
4527              typedef int dummy;
4528
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531
4532         # Check for potential -arch flags.  It is not universal unless
4533         # there are at least two -arch flags with different values.
4534         ac_arch=
4535         ac_prev=
4536         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4537          if test -n "$ac_prev"; then
4538            case $ac_word in
4539              i?86 | x86_64 | ppc | ppc64)
4540                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4541                  ac_arch=$ac_word
4542                else
4543                  ac_cv_c_bigendian=universal
4544                  break
4545                fi
4546                ;;
4547            esac
4548            ac_prev=
4549          elif test "x$ac_word" = "x-arch"; then
4550            ac_prev=arch
4551          fi
4552        done
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555     if test $ac_cv_c_bigendian = unknown; then
4556       # See if sys/param.h defines the BYTE_ORDER macro.
4557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #include <sys/types.h>
4560              #include <sys/param.h>
4561
4562 int
4563 main ()
4564 {
4565 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4566                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4567                      && LITTLE_ENDIAN)
4568               bogus endian macros
4569              #endif
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576   # It does; now see whether it defined to BIG_ENDIAN or not.
4577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 #include <sys/types.h>
4580                 #include <sys/param.h>
4581
4582 int
4583 main ()
4584 {
4585 #if BYTE_ORDER != BIG_ENDIAN
4586                  not big endian
4587                 #endif
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594   ac_cv_c_bigendian=yes
4595 else
4596   ac_cv_c_bigendian=no
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601     fi
4602     if test $ac_cv_c_bigendian = unknown; then
4603       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4604       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #include <limits.h>
4607
4608 int
4609 main ()
4610 {
4611 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4612               bogus endian macros
4613              #endif
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620   # It does; now see whether it defined to _BIG_ENDIAN or not.
4621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h.  */
4623 #include <limits.h>
4624
4625 int
4626 main ()
4627 {
4628 #ifndef _BIG_ENDIAN
4629                  not big endian
4630                 #endif
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637   ac_cv_c_bigendian=yes
4638 else
4639   ac_cv_c_bigendian=no
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644     fi
4645     if test $ac_cv_c_bigendian = unknown; then
4646       # Compile a test program.
4647       if test "$cross_compiling" = yes; then :
4648   # Try to guess by grepping values from an object file.
4649          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h.  */
4651 short int ascii_mm[] =
4652                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4653                 short int ascii_ii[] =
4654                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4655                 int use_ascii (int i) {
4656                   return ascii_mm[i] + ascii_ii[i];
4657                 }
4658                 short int ebcdic_ii[] =
4659                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660                 short int ebcdic_mm[] =
4661                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4662                 int use_ebcdic (int i) {
4663                   return ebcdic_mm[i] + ebcdic_ii[i];
4664                 }
4665                 extern int foo;
4666
4667 int
4668 main ()
4669 {
4670 return use_ascii (foo) == use_ebcdic (foo);
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4677               ac_cv_c_bigendian=yes
4678             fi
4679             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4680               if test "$ac_cv_c_bigendian" = unknown; then
4681                 ac_cv_c_bigendian=no
4682               else
4683                 # finding both strings is unlikely to happen, but who knows?
4684                 ac_cv_c_bigendian=unknown
4685               fi
4686             fi
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 else
4690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 $ac_includes_default
4693 int
4694 main ()
4695 {
4696
4697              /* Are we little or big endian?  From Harbison&Steele.  */
4698              union
4699              {
4700                long int l;
4701                char c[sizeof (long int)];
4702              } u;
4703              u.l = 1;
4704              return u.c[sizeof (long int) - 1] == 1;
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_run "$LINENO"; then :
4711   ac_cv_c_bigendian=no
4712 else
4713   ac_cv_c_bigendian=yes
4714 fi
4715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4716   conftest.$ac_objext conftest.beam conftest.$ac_ext
4717 fi
4718
4719     fi
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4722 $as_echo "$ac_cv_c_bigendian" >&6; }
4723  case $ac_cv_c_bigendian in #(
4724    yes)
4725      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4726 ;; #(
4727    no)
4728       ;; #(
4729    universal)
4730
4731 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4732
4733      ;; #(
4734    *)
4735      as_fn_error $? "unknown endianness
4736  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4737  esac
4738
4739
4740 # Extract the first word of "gmake", so it can be a program name with args.
4741 set dummy gmake; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_GMAKE+:} false; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747   if test -n "$GMAKE"; then
4748   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_GMAKE="yes"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4766 fi
4767 fi
4768 GMAKE=$ac_cv_prog_GMAKE
4769 if test -n "$GMAKE"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4771 $as_echo "$GMAKE" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 if test $GMAKE = no; then
4779   # Extract the first word of "make", so it can be a program name with args.
4780 set dummy make; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_MAKE+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   case $MAKE in
4787   [\\/]* | ?:[\\/]*)
4788   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4789   ;;
4790   *)
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803   done
4804 IFS=$as_save_IFS
4805
4806   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4807   ;;
4808 esac
4809 fi
4810 MAKE=$ac_cv_path_MAKE
4811 if test -n "$MAKE"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4813 $as_echo "$MAKE" >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819
4820 else
4821   # Extract the first word of "gmake", so it can be a program name with args.
4822 set dummy gmake; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_path_MAKE+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   case $MAKE in
4829   [\\/]* | ?:[\\/]*)
4830   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4831   ;;
4832   *)
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_exec_ext in '' $ac_executable_extensions; do
4839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845   done
4846 IFS=$as_save_IFS
4847
4848   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4849   ;;
4850 esac
4851 fi
4852 MAKE=$ac_cv_path_MAKE
4853 if test -n "$MAKE"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4855 $as_echo "$MAKE" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860
4861
4862 fi
4863 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4864 if test -z "$makever"; then
4865   as_fn_error $? "GNU Make is not installed.  Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4866 fi
4867
4868
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4870 $as_echo_n "checking number of system cores... " >&6; }
4871 if ${ax_cv_system_cores+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874
4875       ac_ext=c
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880
4881       if test "$cross_compiling" = yes; then :
4882   ax_cv_system_cores=
4883
4884 else
4885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h.  */
4887
4888           #include <stdio.h>
4889           #include <stdint.h>
4890           #ifdef _WIN32
4891           #  include <windows.h>
4892           #elif MACOS
4893           #  include <sys/param.h>
4894           #  include <sys/sysctl.h>
4895           #else
4896           #  include <unistd.h>
4897           #endif
4898
4899           int main (int argc, char *argv[])
4900           {
4901             uint32_t count;
4902
4903             #ifdef WIN32
4904             SYSTEM_INFO sysinfo;
4905             GetSystemInfo(&sysinfo);
4906
4907             count = sysinfo.dwNumberOfProcessors;
4908
4909             #elif MACOS
4910             int nm[2];
4911             size_t len = 4;
4912
4913             nm[0] = CTL_HW;
4914             nm[1] = HW_AVAILCPU;
4915             sysctl(nm, 2, &count, &len, NULL, 0);
4916
4917             if(count < 1) {
4918               nm[1] = HW_NCPU;
4919               sysctl(nm, 2, &count, &len, NULL, 0);
4920               if(count < 1) {
4921                 count = 1;
4922               }
4923             }
4924
4925             #else
4926             count = sysconf(_SC_NPROCESSORS_ONLN);
4927             #endif
4928
4929             return count;
4930           }
4931
4932 _ACEOF
4933 if ac_fn_c_try_run "$LINENO"; then :
4934   ax_cv_system_cores=$?
4935 else
4936   ax_cv_system_cores=$?
4937 fi
4938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4939   conftest.$ac_objext conftest.beam conftest.$ac_ext
4940 fi
4941
4942     ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4951 $as_echo "$ax_cv_system_cores" >&6; }
4952
4953
4954
4955
4956 # Extract the first word of "git", so it can be a program name with args.
4957 set dummy git; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_GIT+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$GIT"; then
4964   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_prog_GIT="yes"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4982 fi
4983 fi
4984 GIT=$ac_cv_prog_GIT
4985 if test -n "$GIT"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4987 $as_echo "$GIT" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994
4995
4996 # Check whether --enable-strict-dependencies was given.
4997 if test "${enable_strict_dependencies+set}" = set; then :
4998   enableval=$enable_strict_dependencies;
4999 fi
5000
5001
5002 # Check whether --enable-werror was given.
5003 if test "${enable_werror+set}" = set; then :
5004   enableval=$enable_werror;  case "$enableval" in
5005     no)
5006       werror=no
5007     ;;
5008     *)
5009       werror=yes
5010   esac
5011
5012 fi
5013
5014
5015 docdir='${datadir}/doc/freeradius'
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5017 $as_echo_n "checking docdir... " >&6; }
5018
5019 # Check whether --with-docdir was given.
5020 if test "${with_docdir+set}" = set; then :
5021   withval=$with_docdir;  case "$withval" in
5022   no)
5023     docdir=no
5024     ;;
5025   yes)
5026     ;;
5027   [\\/$]* | ?:[\\/]* )
5028     docdir="$withval"
5029     ;;
5030   *)
5031     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5032     ;;
5033   esac
5034
5035 fi
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5039 $as_echo "$docdir" >&6; }
5040 if test "x$docdir" = xno; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5042 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5043 fi
5044
5045 logdir='${localstatedir}/log/radius'
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5047 $as_echo_n "checking logdir... " >&6; }
5048
5049 # Check whether --with-logdir was given.
5050 if test "${with_logdir+set}" = set; then :
5051   withval=$with_logdir;  case "$withval" in
5052   no)
5053     as_fn_error $? "Need logdir" "$LINENO" 5
5054     ;;
5055   yes)
5056     ;;
5057   [\\/$]* | ?:[\\/]* )
5058     logdir="$withval"
5059     ;;
5060   *)
5061     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5062     ;;
5063   esac
5064
5065 fi
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5069 $as_echo "$logdir" >&6; }
5070
5071 radacctdir='${logdir}/radacct'
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5073 $as_echo_n "checking radacctdir... " >&6; }
5074
5075 # Check whether --with-radacctdir was given.
5076 if test "${with_radacctdir+set}" = set; then :
5077   withval=$with_radacctdir;  case "$withval" in
5078   no)
5079     as_fn_error $? "Need radacctdir" "$LINENO" 5
5080     ;;
5081   yes)
5082     ;;
5083   [\\/$]* | ?:[\\/]* )
5084     radacctdir="$withval"
5085     ;;
5086   *)
5087     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5088     ;;
5089   esac
5090
5091 fi
5092
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5095 $as_echo "$radacctdir" >&6; }
5096
5097 raddbdir='${sysconfdir}/raddb'
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5099 $as_echo_n "checking raddbdir... " >&6; }
5100
5101 # Check whether --with-raddbdir was given.
5102 if test "${with_raddbdir+set}" = set; then :
5103   withval=$with_raddbdir;  case "$withval" in
5104   no)
5105     as_fn_error $? "Need raddbdir" "$LINENO" 5
5106     ;;
5107   yes)
5108     ;;
5109   [\\/$]* | ?:[\\/]* )
5110     raddbdir="$withval"
5111     ;;
5112   *)
5113     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5114     ;;
5115   esac
5116
5117 fi
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5121 $as_echo "$raddbdir" >&6; }
5122
5123 modconfdir="$raddbdir/mods-config"
5124
5125
5126 WITH_ASCEND_BINARY=yes
5127
5128 # Check whether --with-ascend-binary was given.
5129 if test "${with_ascend_binary+set}" = set; then :
5130   withval=$with_ascend_binary;  case "$withval" in
5131   yes)
5132     ;;
5133   *)
5134     WITH_ASCEND_BINARY=no
5135   esac
5136
5137 fi
5138
5139 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5140
5141 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5142
5143 fi
5144
5145 WITH_THREADS=yes
5146
5147 # Check whether --with-threads was given.
5148 if test "${with_threads+set}" = set; then :
5149   withval=$with_threads;  case "$withval" in
5150   yes)
5151     ;;
5152   *)
5153     WITH_THREADS=no
5154   esac
5155
5156 fi
5157
5158
5159 WITH_TCP=yes
5160
5161 # Check whether --with-tcp was given.
5162 if test "${with_tcp+set}" = set; then :
5163   withval=$with_tcp;  case "$withval" in
5164   yes)
5165     ;;
5166   *)
5167     WITH_TCP=no
5168   esac
5169
5170 fi
5171
5172 if test "x$WITH_TCP" = "xyes"; then
5173
5174 $as_echo "#define WITH_TCP 1" >>confdefs.h
5175
5176 fi
5177
5178 WITH_VMPS=yes
5179
5180 # Check whether --with-vmps was given.
5181 if test "${with_vmps+set}" = set; then :
5182   withval=$with_vmps;  case "$withval" in
5183   yes)
5184     ;;
5185   *)
5186     WITH_VMPS=no
5187   esac
5188
5189 fi
5190
5191 if test "x$WITH_VMPS" = "xyes"; then
5192
5193 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5194
5195 fi
5196
5197 WITH_DHCP=yes
5198
5199 # Check whether --with-dhcp was given.
5200 if test "${with_dhcp+set}" = set; then :
5201   withval=$with_dhcp;  case "$withval" in
5202   yes)
5203     ;;
5204   *)
5205     WITH_DHCP=no
5206   esac
5207
5208 fi
5209
5210 if test "x$WITH_DHCP" = "xyes"; then
5211
5212 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5213
5214 fi
5215
5216 STATIC_MODULES=
5217
5218 # Check whether --with-static_modules was given.
5219 if test "${with_static_modules+set}" = set; then :
5220   withval=$with_static_modules;
5221   for i in $withval; do
5222     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5223   done
5224
5225 fi
5226
5227
5228 USE_SHARED_LIBS=yes
5229
5230 # Check whether --with-static was given.
5231 if test "${with_static+set}" = set; then :
5232   withval=$with_static;  case "$withval" in
5233   no)
5234     USE_SHARED_LIBS=no
5235     ;;
5236   *)
5237   esac
5238
5239 fi
5240
5241
5242 MODULES=
5243
5244 # Check whether --with-modules was given.
5245 if test "${with_modules+set}" = set; then :
5246   withval=$with_modules;
5247  for i in $withval; do
5248    MODULES="$MODULES $i"
5249  done
5250
5251 fi
5252
5253
5254 EXPERIMENTAL=
5255
5256 # Check whether --with-experimental-modules was given.
5257 if test "${with_experimental_modules+set}" = set; then :
5258   withval=$with_experimental_modules;  case "$withval" in
5259   yes)
5260     EXPERIMENTAL=yes
5261     ;;
5262   no)
5263     EXPERIMENTAL=no
5264     ;;
5265   *)
5266   esac
5267
5268 fi
5269
5270
5271 WITH_OPENSSL=yes
5272
5273 # Check whether --with-openssl was given.
5274 if test "${with_openssl+set}" = set; then :
5275   withval=$with_openssl;  case "$withval" in
5276   no)
5277     WITH_OPENSSL=no
5278     ;;
5279   *)
5280     WITH_OPENSSL=yes
5281     ;;
5282   esac
5283
5284 fi
5285
5286
5287 OPENSSL_INCLUDE_DIR=
5288
5289 # Check whether --with-openssl-includes was given.
5290 if test "${with_openssl_includes+set}" = set; then :
5291   withval=$with_openssl_includes;  case "$withval" in
5292   *) OPENSSL_INCLUDE_DIR="$withval"
5293     ;;
5294   esac
5295
5296 fi
5297
5298
5299 OPENSSL_LIB_DIR=
5300
5301 # Check whether --with-openssl-libraries was given.
5302 if test "${with_openssl_libraries+set}" = set; then :
5303   withval=$with_openssl_libraries;  case "$withval" in
5304   *) OPENSSL_LIB_DIR="$withval"
5305     ;;
5306   esac
5307
5308 fi
5309
5310
5311
5312
5313 # Check whether --with-rlm-FOO-lib-dir was given.
5314 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5315   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5316   *)
5317     ;;
5318   esac
5319
5320 fi
5321
5322
5323
5324 # Check whether --with-rlm-FOO-include-dir was given.
5325 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5326   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5327   *)
5328     ;;
5329   esac
5330
5331 fi
5332
5333
5334 WITH_UDPFROMTO=no
5335
5336 # Check whether --with-udpfromto was given.
5337 if test "${with_udpfromto+set}" = set; then :
5338   withval=$with_udpfromto;  case "$withval" in
5339   yes)
5340     WITH_UDPFROMTO=yes
5341     ;;
5342   *)
5343     WITH_UDPFROMTO=no
5344   esac
5345
5346 fi
5347
5348
5349 if test "x$WITH_UDPFROMTO" = "xyes"; then
5350
5351 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5352
5353 fi
5354
5355
5356 CHECKRAD=checkrad
5357 # Extract the first word of "perl", so it can be a program name with args.
5358 set dummy perl; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_PERL+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $PERL in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381   done
5382 IFS=$as_save_IFS
5383
5384   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5385   ;;
5386 esac
5387 fi
5388 PERL=$ac_cv_path_PERL
5389 if test -n "$PERL"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5391 $as_echo "$PERL" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 if test "x$ac_cv_path_PERL" = "x"; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5400 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5401 fi
5402 # Extract the first word of "snmpget", so it can be a program name with args.
5403 set dummy snmpget; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_path_SNMPGET+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   case $SNMPGET in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428
5429   ;;
5430 esac
5431 fi
5432 SNMPGET=$ac_cv_path_SNMPGET
5433 if test -n "$SNMPGET"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5435 $as_echo "$SNMPGET" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 if test "x$ac_cv_path_SNMPGET" = "x"; then
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5444 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5445 fi
5446
5447 # Extract the first word of "snmpwalk", so it can be a program name with args.
5448 set dummy snmpwalk; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_path_SNMPWALK+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   case $SNMPWALK in
5455   [\\/]* | ?:[\\/]*)
5456   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5457   ;;
5458   *)
5459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473
5474   ;;
5475 esac
5476 fi
5477 SNMPWALK=$ac_cv_path_SNMPWALK
5478 if test -n "$SNMPWALK"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5480 $as_echo "$SNMPWALK" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5489 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5490 fi
5491
5492 # Extract the first word of "rusers", so it can be a program name with args.
5493 set dummy rusers; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_path_RUSERS+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   case $RUSERS in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5520   ;;
5521 esac
5522 fi
5523 RUSERS=$ac_cv_path_RUSERS
5524 if test -n "$RUSERS"; then
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5526 $as_echo "$RUSERS" >&6; }
5527 else
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532
5533
5534 missing_dir=`cd $ac_aux_dir && pwd`
5535 # expand $ac_aux_dir to an absolute path
5536 am_aux_dir=`cd $ac_aux_dir && pwd`
5537
5538 if test x"${MISSING+set}" != xset; then
5539   case $am_aux_dir in
5540   *\ * | *\     *)
5541     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5542   *)
5543     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5544   esac
5545 fi
5546 # Use eval to expand $SHELL
5547 if eval "$MISSING --run true"; then
5548   am_missing_run="$MISSING --run "
5549 else
5550   am_missing_run=
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5552 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5553 fi
5554
5555
5556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5557
5558
5559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5560
5561
5562 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5563
5564
5565 # Extract the first word of "locate", so it can be a program name with args.
5566 set dummy locate; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_LOCATE+:} false; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   case $LOCATE in
5573   [\\/]* | ?:[\\/]*)
5574   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5575   ;;
5576   *)
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592   ;;
5593 esac
5594 fi
5595 LOCATE=$ac_cv_path_LOCATE
5596 if test -n "$LOCATE"; then
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5598 $as_echo "$LOCATE" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 # Extract the first word of "dirname", so it can be a program name with args.
5606 set dummy dirname; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_DIRNAME+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   case $DIRNAME in
5613   [\\/]* | ?:[\\/]*)
5614   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5615   ;;
5616   *)
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632   ;;
5633 esac
5634 fi
5635 DIRNAME=$ac_cv_path_DIRNAME
5636 if test -n "$DIRNAME"; then
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5638 $as_echo "$DIRNAME" >&6; }
5639 else
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 # Extract the first word of "grep", so it can be a program name with args.
5646 set dummy grep; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_path_GREP+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   case $GREP in
5653   [\\/]* | ?:[\\/]*)
5654   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5655   ;;
5656   *)
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_exec_ext in '' $ac_executable_extensions; do
5663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669   done
5670 IFS=$as_save_IFS
5671
5672   ;;
5673 esac
5674 fi
5675 GREP=$ac_cv_path_GREP
5676 if test -n "$GREP"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5678 $as_echo "$GREP" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685
5686
5687 old_CFLAGS=$CFLAGS
5688 if test "x$WITH_THREADS" = "xyes"; then
5689   if test $ac_cv_prog_suncc = "yes"; then
5690     CFLAGS="$CFLAGS -mt"
5691   fi
5692
5693   for ac_header in pthread.h
5694 do :
5695   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5696 if test "x$ac_cv_header_pthread_h" = xyes; then :
5697   cat >>confdefs.h <<_ACEOF
5698 #define HAVE_PTHREAD_H 1
5699 _ACEOF
5700
5701 else
5702    WITH_THREADS="no"
5703 fi
5704
5705 done
5706
5707
5708                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5709 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5710 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   ac_check_lib_save_LIBS=$LIBS
5714 LIBS="-lpthread  $LIBS"
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h.  */
5717
5718 /* Override any GCC internal prototype to avoid an error.
5719    Use char because int might match the return type of a GCC
5720    builtin and then its argument prototype would still apply.  */
5721 #ifdef __cplusplus
5722 extern "C"
5723 #endif
5724 char pthread_create ();
5725 int
5726 main ()
5727 {
5728 return pthread_create ();
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734   ac_cv_lib_pthread_pthread_create=yes
5735 else
5736   ac_cv_lib_pthread_pthread_create=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739     conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5743 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5744 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5745
5746       CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5747       LIBS="-lpthread $LIBS"
5748
5749 else
5750
5751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5752 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5753 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   ac_check_lib_save_LIBS=$LIBS
5757 LIBS="-lc_r  $LIBS"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760
5761 /* Override any GCC internal prototype to avoid an error.
5762    Use char because int might match the return type of a GCC
5763    builtin and then its argument prototype would still apply.  */
5764 #ifdef __cplusplus
5765 extern "C"
5766 #endif
5767 char pthread_create ();
5768 int
5769 main ()
5770 {
5771 return pthread_create ();
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_link "$LINENO"; then :
5777   ac_cv_lib_c_r_pthread_create=yes
5778 else
5779   ac_cv_lib_c_r_pthread_create=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext \
5782     conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5786 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5787 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5788    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5789 else
5790    WITH_THREADS="no"
5791
5792 fi
5793
5794
5795
5796 fi
5797
5798 fi
5799
5800 if test "x$WITH_THREADS" != "xyes"; then
5801   CFLAGS=$old_CFLAGS
5802   ac_cv_header_pthread_h="no"
5803   WITH_THREADS=no
5804 else
5805
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5807 $as_echo_n "checking for library containing sem_init... " >&6; }
5808 if ${ac_cv_search_sem_init+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   ac_func_search_save_LIBS=$LIBS
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h.  */
5814
5815 /* Override any GCC internal prototype to avoid an error.
5816    Use char because int might match the return type of a GCC
5817    builtin and then its argument prototype would still apply.  */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 char sem_init ();
5822 int
5823 main ()
5824 {
5825 return sem_init ();
5826   ;
5827   return 0;
5828 }
5829 _ACEOF
5830 for ac_lib in '' pthread sem posix4 rt semaphore; do
5831   if test -z "$ac_lib"; then
5832     ac_res="none required"
5833   else
5834     ac_res=-l$ac_lib
5835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5836   fi
5837   if ac_fn_c_try_link "$LINENO"; then :
5838   ac_cv_search_sem_init=$ac_res
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841     conftest$ac_exeext
5842   if ${ac_cv_search_sem_init+:} false; then :
5843   break
5844 fi
5845 done
5846 if ${ac_cv_search_sem_init+:} false; then :
5847
5848 else
5849   ac_cv_search_sem_init=no
5850 fi
5851 rm conftest.$ac_ext
5852 LIBS=$ac_func_search_save_LIBS
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5855 $as_echo "$ac_cv_search_sem_init" >&6; }
5856 ac_res=$ac_cv_search_sem_init
5857 if test "$ac_res" != no; then :
5858   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5859
5860 else
5861   as_fn_error $? "-lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
5862
5863 fi
5864
5865 fi
5866
5867 if test "x$WITH_THREADS" = "xyes"; then
5868
5869 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5870
5871 fi
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5875 if ${ac_cv_lib_dl_dlopen+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-ldl  $LIBS"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h.  */
5882
5883 /* Override any GCC internal prototype to avoid an error.
5884    Use char because int might match the return type of a GCC
5885    builtin and then its argument prototype would still apply.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 char dlopen ();
5890 int
5891 main ()
5892 {
5893 return dlopen ();
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899   ac_cv_lib_dl_dlopen=yes
5900 else
5901   ac_cv_lib_dl_dlopen=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext \
5904     conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5909 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5910   cat >>confdefs.h <<_ACEOF
5911 #define HAVE_LIBDL 1
5912 _ACEOF
5913
5914   LIBS="-ldl $LIBS"
5915
5916 fi
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5920 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5921 if ${ac_cv_lib_socket_getsockname+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   ac_check_lib_save_LIBS=$LIBS
5925 LIBS="-lsocket  $LIBS"
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928
5929 /* Override any GCC internal prototype to avoid an error.
5930    Use char because int might match the return type of a GCC
5931    builtin and then its argument prototype would still apply.  */
5932 #ifdef __cplusplus
5933 extern "C"
5934 #endif
5935 char getsockname ();
5936 int
5937 main ()
5938 {
5939 return getsockname ();
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_link "$LINENO"; then :
5945   ac_cv_lib_socket_getsockname=yes
5946 else
5947   ac_cv_lib_socket_getsockname=no
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext \
5950     conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5954 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5955 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5956   cat >>confdefs.h <<_ACEOF
5957 #define HAVE_LIBSOCKET 1
5958 _ACEOF
5959
5960   LIBS="-lsocket $LIBS"
5961
5962 fi
5963
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5966 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5967 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lresolv  $LIBS"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h.  */
5974
5975 /* Override any GCC internal prototype to avoid an error.
5976    Use char because int might match the return type of a GCC
5977    builtin and then its argument prototype would still apply.  */
5978 #ifdef __cplusplus
5979 extern "C"
5980 #endif
5981 char inet_aton ();
5982 int
5983 main ()
5984 {
5985 return inet_aton ();
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991   ac_cv_lib_resolv_inet_aton=yes
5992 else
5993   ac_cv_lib_resolv_inet_aton=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext \
5996     conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6000 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6001 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6002   cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBRESOLV 1
6004 _ACEOF
6005
6006   LIBS="-lresolv $LIBS"
6007
6008 fi
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6012 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6013 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   ac_check_lib_save_LIBS=$LIBS
6017 LIBS="-lnsl  $LIBS"
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h.  */
6020
6021 /* Override any GCC internal prototype to avoid an error.
6022    Use char because int might match the return type of a GCC
6023    builtin and then its argument prototype would still apply.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 char inet_ntoa ();
6028 int
6029 main ()
6030 {
6031 return inet_ntoa ();
6032   ;
6033   return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_link "$LINENO"; then :
6037   ac_cv_lib_nsl_inet_ntoa=yes
6038 else
6039   ac_cv_lib_nsl_inet_ntoa=no
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext \
6042     conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6044 fi
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6046 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6047 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6048   cat >>confdefs.h <<_ACEOF
6049 #define HAVE_LIBNSL 1
6050 _ACEOF
6051
6052   LIBS="-lnsl $LIBS"
6053
6054 fi
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6057 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6058 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lws2_32  $LIBS"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h.  */
6065
6066 /* Override any GCC internal prototype to avoid an error.
6067    Use char because int might match the return type of a GCC
6068    builtin and then its argument prototype would still apply.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 char htonl ();
6073 int
6074 main ()
6075 {
6076 return htonl ();
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 if ac_fn_c_try_link "$LINENO"; then :
6082   ac_cv_lib_ws2_32_htonl=yes
6083 else
6084   ac_cv_lib_ws2_32_htonl=no
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext \
6087     conftest$ac_exeext conftest.$ac_ext
6088 LIBS=$ac_check_lib_save_LIBS
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6091 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6092 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6093   cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LIBWS2_32 1
6095 _ACEOF
6096
6097   LIBS="-lws2_32 $LIBS"
6098
6099 fi
6100
6101
6102 PCAP_LIBS=
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6104 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6105 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lpcap  $LIBS"
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112
6113 /* Override any GCC internal prototype to avoid an error.
6114    Use char because int might match the return type of a GCC
6115    builtin and then its argument prototype would still apply.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char pcap_open_live ();
6120 int
6121 main ()
6122 {
6123 return pcap_open_live ();
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_link "$LINENO"; then :
6129   ac_cv_lib_pcap_pcap_open_live=yes
6130 else
6131   ac_cv_lib_pcap_pcap_open_live=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext \
6134     conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6138 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6139 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6140
6141     PCAP_LIBS="-lpcap"
6142
6143 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6144
6145
6146 else
6147
6148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6149 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6150
6151
6152 fi
6153
6154
6155
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6157 $as_echo_n "checking for a readline compatible library... " >&6; }
6158 if ${vl_cv_lib_readline+:} false; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161
6162     ORIG_LIBS="$LIBS"
6163     for readline_lib in readline edit editline; do
6164       for termcap_lib in "" termcap curses ncurses; do
6165         if test -z "$termcap_lib"; then
6166           TRY_LIB="-l$readline_lib"
6167         else
6168           TRY_LIB="-l$readline_lib -l$termcap_lib"
6169         fi
6170         LIBS="$ORIG_LIBS $TRY_LIB"
6171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h.  */
6173
6174 /* Override any GCC internal prototype to avoid an error.
6175    Use char because int might match the return type of a GCC
6176    builtin and then its argument prototype would still apply.  */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 char readline ();
6181 int
6182 main ()
6183 {
6184 return readline ();
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"; then :
6190   vl_cv_lib_readline="$TRY_LIB"
6191 fi
6192 rm -f core conftest.err conftest.$ac_objext \
6193     conftest$ac_exeext conftest.$ac_ext
6194         if test -n "$vl_cv_lib_readline"; then
6195           break
6196         fi
6197       done
6198       if test -n "$vl_cv_lib_readline"; then
6199         break
6200       fi
6201     done
6202     if test -z "$vl_cv_lib_readline"; then
6203       vl_cv_lib_readline="no"
6204       LIBS="$ORIG_LIBS"
6205     fi
6206
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6209 $as_echo "$vl_cv_lib_readline" >&6; }
6210
6211   if test "$vl_cv_lib_readline" != "no"; then
6212     LIBREADLINE="$vl_cv_lib_readline"
6213
6214 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6215
6216     for ac_header in readline.h readline/readline.h
6217 do :
6218   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6219 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6221   cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 _ACEOF
6224
6225 fi
6226
6227 done
6228
6229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6230 $as_echo_n "checking whether readline supports history... " >&6; }
6231 if ${vl_cv_lib_readline_history+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234
6235       vl_cv_lib_readline_history="no"
6236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239 /* Override any GCC internal prototype to avoid an error.
6240    Use char because int might match the return type of a GCC
6241    builtin and then its argument prototype would still apply.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 char add_history ();
6246 int
6247 main ()
6248 {
6249 return add_history ();
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255   vl_cv_lib_readline_history="yes"
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258     conftest$ac_exeext conftest.$ac_ext
6259
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6262 $as_echo "$vl_cv_lib_readline_history" >&6; }
6263     if test "$vl_cv_lib_readline_history" = "yes"; then
6264
6265 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6266
6267       for ac_header in history.h readline/history.h
6268 do :
6269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6272   cat >>confdefs.h <<_ACEOF
6273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274 _ACEOF
6275
6276 fi
6277
6278 done
6279
6280     fi
6281   fi
6282
6283
6284
6285
6286 case "$host" in
6287   *-interix*)
6288     CFLAGS="$CFLAGS -D_ALL_SOURCE"
6289     ;;
6290   *-darwin*)
6291     CFLAGS="$CFLAGS -DDARWIN"
6292     LIBS="-framework DirectoryService $LIBS"
6293     ;;
6294 esac
6295
6296 ac_header_dirent=no
6297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6298   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6300 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6301 if eval \${$as_ac_Header+:} false; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h.  */
6306 #include <sys/types.h>
6307 #include <$ac_hdr>
6308
6309 int
6310 main ()
6311 {
6312 if ((DIR *) 0)
6313 return 0;
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319   eval "$as_ac_Header=yes"
6320 else
6321   eval "$as_ac_Header=no"
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 eval ac_res=\$$as_ac_Header
6326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6329   cat >>confdefs.h <<_ACEOF
6330 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6331 _ACEOF
6332
6333 ac_header_dirent=$ac_hdr; break
6334 fi
6335
6336 done
6337 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6338 if test $ac_header_dirent = dirent.h; then
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6340 $as_echo_n "checking for library containing opendir... " >&6; }
6341 if ${ac_cv_search_opendir+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   ac_func_search_save_LIBS=$LIBS
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348 /* Override any GCC internal prototype to avoid an error.
6349    Use char because int might match the return type of a GCC
6350    builtin and then its argument prototype would still apply.  */
6351 #ifdef __cplusplus
6352 extern "C"
6353 #endif
6354 char opendir ();
6355 int
6356 main ()
6357 {
6358 return opendir ();
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 for ac_lib in '' dir; do
6364   if test -z "$ac_lib"; then
6365     ac_res="none required"
6366   else
6367     ac_res=-l$ac_lib
6368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6369   fi
6370   if ac_fn_c_try_link "$LINENO"; then :
6371   ac_cv_search_opendir=$ac_res
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext \
6374     conftest$ac_exeext
6375   if ${ac_cv_search_opendir+:} false; then :
6376   break
6377 fi
6378 done
6379 if ${ac_cv_search_opendir+:} false; then :
6380
6381 else
6382   ac_cv_search_opendir=no
6383 fi
6384 rm conftest.$ac_ext
6385 LIBS=$ac_func_search_save_LIBS
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6388 $as_echo "$ac_cv_search_opendir" >&6; }
6389 ac_res=$ac_cv_search_opendir
6390 if test "$ac_res" != no; then :
6391   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6392
6393 fi
6394
6395 else
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6397 $as_echo_n "checking for library containing opendir... " >&6; }
6398 if ${ac_cv_search_opendir+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   ac_func_search_save_LIBS=$LIBS
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h.  */
6404
6405 /* Override any GCC internal prototype to avoid an error.
6406    Use char because int might match the return type of a GCC
6407    builtin and then its argument prototype would still apply.  */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 char opendir ();
6412 int
6413 main ()
6414 {
6415 return opendir ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 for ac_lib in '' x; do
6421   if test -z "$ac_lib"; then
6422     ac_res="none required"
6423   else
6424     ac_res=-l$ac_lib
6425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6426   fi
6427   if ac_fn_c_try_link "$LINENO"; then :
6428   ac_cv_search_opendir=$ac_res
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext \
6431     conftest$ac_exeext
6432   if ${ac_cv_search_opendir+:} false; then :
6433   break
6434 fi
6435 done
6436 if ${ac_cv_search_opendir+:} false; then :
6437
6438 else
6439   ac_cv_search_opendir=no
6440 fi
6441 rm conftest.$ac_ext
6442 LIBS=$ac_func_search_save_LIBS
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6445 $as_echo "$ac_cv_search_opendir" >&6; }
6446 ac_res=$ac_cv_search_opendir
6447 if test "$ac_res" != no; then :
6448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6449
6450 fi
6451
6452 fi
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6455 $as_echo_n "checking for ANSI C header files... " >&6; }
6456 if ${ac_cv_header_stdc+:} false; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h.  */
6461 #include <stdlib.h>
6462 #include <stdarg.h>
6463 #include <string.h>
6464 #include <float.h>
6465
6466 int
6467 main ()
6468 {
6469
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475   ac_cv_header_stdc=yes
6476 else
6477   ac_cv_header_stdc=no
6478 fi
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480
6481 if test $ac_cv_header_stdc = yes; then
6482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485 #include <string.h>
6486
6487 _ACEOF
6488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6489   $EGREP "memchr" >/dev/null 2>&1; then :
6490
6491 else
6492   ac_cv_header_stdc=no
6493 fi
6494 rm -f conftest*
6495
6496 fi
6497
6498 if test $ac_cv_header_stdc = yes; then
6499   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502 #include <stdlib.h>
6503
6504 _ACEOF
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506   $EGREP "free" >/dev/null 2>&1; then :
6507
6508 else
6509   ac_cv_header_stdc=no
6510 fi
6511 rm -f conftest*
6512
6513 fi
6514
6515 if test $ac_cv_header_stdc = yes; then
6516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6517   if test "$cross_compiling" = yes; then :
6518   :
6519 else
6520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522 #include <ctype.h>
6523 #include <stdlib.h>
6524 #if ((' ' & 0x0FF) == 0x020)
6525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6527 #else
6528 # define ISLOWER(c) \
6529                    (('a' <= (c) && (c) <= 'i') \
6530                      || ('j' <= (c) && (c) <= 'r') \
6531                      || ('s' <= (c) && (c) <= 'z'))
6532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6533 #endif
6534
6535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6536 int
6537 main ()
6538 {
6539   int i;
6540   for (i = 0; i < 256; i++)
6541     if (XOR (islower (i), ISLOWER (i))
6542         || toupper (i) != TOUPPER (i))
6543       return 2;
6544   return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_run "$LINENO"; then :
6548
6549 else
6550   ac_cv_header_stdc=no
6551 fi
6552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6553   conftest.$ac_objext conftest.beam conftest.$ac_ext
6554 fi
6555
6556 fi
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6559 $as_echo "$ac_cv_header_stdc" >&6; }
6560 if test $ac_cv_header_stdc = yes; then
6561
6562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6563
6564 fi
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6567 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6568 if ${ac_cv_header_time+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573 #include <sys/types.h>
6574 #include <sys/time.h>
6575 #include <time.h>
6576
6577 int
6578 main ()
6579 {
6580 if ((struct tm *) 0)
6581 return 0;
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587   ac_cv_header_time=yes
6588 else
6589   ac_cv_header_time=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6594 $as_echo "$ac_cv_header_time" >&6; }
6595 if test $ac_cv_header_time = yes; then
6596
6597 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6598
6599 fi
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6602 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6603 if ${ac_cv_header_sys_wait_h+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h.  */
6608 #include <sys/types.h>
6609 #include <sys/wait.h>
6610 #ifndef WEXITSTATUS
6611 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6612 #endif
6613 #ifndef WIFEXITED
6614 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6615 #endif
6616
6617 int
6618 main ()
6619 {
6620   int s;
6621   wait (&s);
6622   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628   ac_cv_header_sys_wait_h=yes
6629 else
6630   ac_cv_header_sys_wait_h=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6635 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6636 if test $ac_cv_header_sys_wait_h = yes; then
6637
6638 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6639
6640 fi
6641
6642
6643 for ac_header in \
6644   dlfcn.h \
6645   unistd.h \
6646   crypt.h \
6647   errno.h \
6648   resource.h \
6649   sys/resource.h \
6650   getopt.h \
6651   malloc.h \
6652   utmp.h \
6653   utmpx.h \
6654   signal.h \
6655   sys/select.h \
6656   syslog.h \
6657   inttypes.h \
6658   stdint.h \
6659   stdio.h \
6660   netdb.h \
6661   semaphore.h \
6662   arpa/inet.h \
6663   netinet/in.h \
6664   sys/types.h \
6665   sys/socket.h \
6666   winsock.h \
6667   utime.h \
6668   sys/time.h \
6669   sys/wait.h \
6670   sys/security.h \
6671   fcntl.h \
6672   sys/fcntl.h \
6673   sys/prctl.h \
6674   sys/un.h \
6675   glob.h \
6676   prot.h \
6677   pwd.h \
6678   grp.h \
6679   stddef.h \
6680   fnmatch.h \
6681   sia.h \
6682   siad.h
6683
6684 do :
6685   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6686 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6688   cat >>confdefs.h <<_ACEOF
6689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 _ACEOF
6691
6692 fi
6693
6694 done
6695
6696
6697 for ac_header in net/if.h
6698 do :
6699   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6700 #  include <sys/socket.h>
6701 #  endif
6702
6703 "
6704 if test "x$ac_cv_header_net_if_h" = xyes; then :
6705   cat >>confdefs.h <<_ACEOF
6706 #define HAVE_NET_IF_H 1
6707 _ACEOF
6708
6709 fi
6710
6711 done
6712
6713
6714 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6715 then
6716
6717 $as_echo "#define OSFC2 /**/" >>confdefs.h
6718
6719 fi
6720
6721 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6722 then
6723
6724 $as_echo "#define OSFSIA /**/" >>confdefs.h
6725
6726 fi
6727
6728 if test "x$WITH_OPENSSL" = xyes; then
6729   old_LIBS=$LIBS
6730   old_LDFLAGS="$LDFLAGS"
6731
6732   OPENSSL_INCLUDE="-DNO_OPENSSL"
6733   OPENSSL_LIBS=
6734   if test "x$OPENSSL_LIB_DIR" != "x"; then
6735     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6736   fi
6737
6738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6739 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6740 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   ac_check_lib_save_LIBS=$LIBS
6744 LIBS="-lcrypto  $LIBS"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748 /* Override any GCC internal prototype to avoid an error.
6749    Use char because int might match the return type of a GCC
6750    builtin and then its argument prototype would still apply.  */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 char DH_new ();
6755 int
6756 main ()
6757 {
6758 return DH_new ();
6759   ;
6760   return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"; then :
6764   ac_cv_lib_crypto_DH_new=yes
6765 else
6766   ac_cv_lib_crypto_DH_new=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext \
6769     conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6773 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6774 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6775
6776       LIBS="-lcrypto $LIBS"
6777
6778 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6779
6780       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6781 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6782 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   ac_check_lib_save_LIBS=$LIBS
6786 LIBS="-lssl  $LIBS"
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h.  */
6789
6790 /* Override any GCC internal prototype to avoid an error.
6791    Use char because int might match the return type of a GCC
6792    builtin and then its argument prototype would still apply.  */
6793 #ifdef __cplusplus
6794 extern "C"
6795 #endif
6796 char SSL_new ();
6797 int
6798 main ()
6799 {
6800 return SSL_new ();
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_link "$LINENO"; then :
6806   ac_cv_lib_ssl_SSL_new=yes
6807 else
6808   ac_cv_lib_ssl_SSL_new=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext \
6811     conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6815 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6816 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6817
6818
6819 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6820
6821           if test "x$OPENSSL_LIB_DIR" != "x"; then
6822             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6823           fi
6824           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6825
6826 else
6827
6828           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6830 as_fn_error $? "failed linking to libssl
6831 See \`config.log' for more details" "$LINENO" 5; }
6832
6833
6834 fi
6835
6836
6837 fi
6838
6839
6840         old_CPPFLAGS=$CPPFLAGS
6841   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6842     CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6843   fi
6844
6845         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6846   for ac_header in \
6847     openssl/ssl.h \
6848     openssl/crypto.h \
6849     openssl/err.h \
6850     openssl/evp.h \
6851     openssl/md5.h \
6852     openssl/md4.h \
6853     openssl/sha.h \
6854     openssl/ocsp.h \
6855     openssl/engine.h
6856 do :
6857   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6860   cat >>confdefs.h <<_ACEOF
6861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6862 _ACEOF
6863
6864 else
6865
6866       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6868 as_fn_error $? "failed locating OpenSSL headers
6869 See \`config.log' for more details" "$LINENO" 5; }
6870
6871
6872 fi
6873
6874 done
6875
6876
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6878 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h.  */
6881 #include <openssl/crypto.h>
6882      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6883      yes
6884      #endif
6885
6886 _ACEOF
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888   $EGREP "yes" >/dev/null 2>&1; then :
6889
6890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6891 $as_echo "yes" >&6; }
6892
6893 else
6894
6895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6899 as_fn_error $? "OpenSSL version too old
6900 See \`config.log' for more details" "$LINENO" 5; }
6901
6902
6903 fi
6904 rm -f conftest*
6905
6906
6907   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6908     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6909   else
6910     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6911   fi
6912
6913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6914 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6915   if test "$cross_compiling" = yes; then :
6916   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6918 as_fn_error $? "cannot run test program while cross compiling
6919 See \`config.log' for more details" "$LINENO" 5; }
6920 else
6921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h.  */
6923
6924         #include <stdio.h>
6925         #include <openssl/opensslv.h>
6926         #include <openssl/crypto.h>
6927
6928 int
6929 main ()
6930 {
6931
6932         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6933           return 0;
6934         } else {
6935           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6936           return 1;
6937         }
6938
6939
6940   ;
6941   return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_run "$LINENO"; then :
6945
6946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6947 $as_echo "yes" >&6; }
6948
6949 else
6950
6951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6955 as_fn_error $? "OpenSSL library version does not match header version
6956 See \`config.log' for more details" "$LINENO" 5; }
6957
6958
6959 fi
6960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6961   conftest.$ac_objext conftest.beam conftest.$ac_ext
6962 fi
6963
6964
6965   CPPFLAGS=$old_CPPFLAGS
6966   LIBS=$old_LIBS
6967   LDFLAGS="$old_LDFLAGS"
6968 fi
6969
6970
6971
6972 export OPENSSL_LIBS
6973
6974 if test "x$PCAP_LIBS" = x; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6976 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6977 else
6978   ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6979 if test "x$ac_cv_header_pcap_h" = xyes; then :
6980
6981
6982 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6983
6984
6985       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6986 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6987 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   ac_check_lib_save_LIBS=$LIBS
6991 LIBS="-lpcap  $LIBS"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994
6995 /* Override any GCC internal prototype to avoid an error.
6996    Use char because int might match the return type of a GCC
6997    builtin and then its argument prototype would still apply.  */
6998 #ifdef __cplusplus
6999 extern "C"
7000 #endif
7001 char pcap_fopen_offline ();
7002 int
7003 main ()
7004 {
7005 return pcap_fopen_offline ();
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 if ac_fn_c_try_link "$LINENO"; then :
7011   ac_cv_lib_pcap_pcap_fopen_offline=yes
7012 else
7013   ac_cv_lib_pcap_pcap_fopen_offline=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext \
7016     conftest$ac_exeext conftest.$ac_ext
7017 LIBS=$ac_check_lib_save_LIBS
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7020 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7021 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7022
7023
7024 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7025
7026
7027
7028 fi
7029
7030
7031       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7032 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7033 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   ac_check_lib_save_LIBS=$LIBS
7037 LIBS="-lpcap  $LIBS"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h.  */
7040
7041 /* Override any GCC internal prototype to avoid an error.
7042    Use char because int might match the return type of a GCC
7043    builtin and then its argument prototype would still apply.  */
7044 #ifdef __cplusplus
7045 extern "C"
7046 #endif
7047 char pcap_dump_fopen ();
7048 int
7049 main ()
7050 {
7051 return pcap_dump_fopen ();
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057   ac_cv_lib_pcap_pcap_dump_fopen=yes
7058 else
7059   ac_cv_lib_pcap_pcap_dump_fopen=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext \
7062     conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7066 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7067 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7068
7069
7070 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7071
7072
7073
7074 fi
7075
7076
7077 else
7078
7079       PCAP_LIBS=
7080       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7081 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7082
7083
7084 fi
7085
7086
7087 fi
7088
7089
7090
7091 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_off_t" = xyes; then :
7093
7094 else
7095
7096 cat >>confdefs.h <<_ACEOF
7097 #define off_t long int
7098 _ACEOF
7099
7100 fi
7101
7102 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7103 if test "x$ac_cv_type_pid_t" = xyes; then :
7104
7105 else
7106
7107 cat >>confdefs.h <<_ACEOF
7108 #define pid_t int
7109 _ACEOF
7110
7111 fi
7112
7113 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_size_t" = xyes; then :
7115
7116 else
7117
7118 cat >>confdefs.h <<_ACEOF
7119 #define size_t unsigned int
7120 _ACEOF
7121
7122 fi
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7125 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7126 if ${ac_cv_type_uid_t+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h.  */
7131 #include <sys/types.h>
7132
7133 _ACEOF
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135   $EGREP "uid_t" >/dev/null 2>&1; then :
7136   ac_cv_type_uid_t=yes
7137 else
7138   ac_cv_type_uid_t=no
7139 fi
7140 rm -f conftest*
7141
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7144 $as_echo "$ac_cv_type_uid_t" >&6; }
7145 if test $ac_cv_type_uid_t = no; then
7146
7147 $as_echo "#define uid_t int" >>confdefs.h
7148
7149
7150 $as_echo "#define gid_t int" >>confdefs.h
7151
7152 fi
7153
7154
7155
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7157 $as_echo_n "checking for socklen_t... " >&6; }
7158 if ${ac_cv_type_socklen_t+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161    ac_cv_type_socklen_t=no
7162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h.  */
7164 #ifdef HAVE_SYS_TYPES_H
7165     #  include <sys/types.h>
7166     #endif
7167
7168     #ifdef HAVE_SYS_SOCKET_H
7169     #  include <sys/socket.h>
7170     #endif
7171
7172 int
7173 main ()
7174 {
7175 socklen_t foo
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 if ac_fn_c_try_compile "$LINENO"; then :
7181   ac_cv_type_socklen_t=yes
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184
7185
7186 fi
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7188 $as_echo "$ac_cv_type_socklen_t" >&6; }
7189
7190   if test "$ac_cv_type_socklen_t" != "yes"; then
7191
7192 $as_echo "#define socklen_t int" >>confdefs.h
7193
7194   fi
7195
7196
7197
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7199 $as_echo_n "checking for uint8_t... " >&6; }
7200 if ${ac_cv_type_uint8_t+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203    ac_cv_type_uint8_t=no
7204       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h.  */
7206 #ifdef HAVE_INTTYPES_H
7207     #  include <inttypes.h>
7208     #endif
7209
7210     #ifdef HAVE_STDINT_H
7211     #  include <stdint.h>
7212     #endif
7213
7214 int
7215 main ()
7216 {
7217 uint8_t foo
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223   ac_cv_type_uint8_t=yes
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226
7227
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7230 $as_echo "$ac_cv_type_uint8_t" >&6; }
7231
7232   if test "$ac_cv_type_uint8_t" != "yes"; then
7233
7234 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7235
7236   fi
7237
7238
7239
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7241 $as_echo_n "checking for uint16_t... " >&6; }
7242 if ${ac_cv_type_uint16_t+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245    ac_cv_type_uint16_t=no
7246       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h.  */
7248 #ifdef HAVE_INTTYPES_H
7249     #  include <inttypes.h>
7250     #endif
7251
7252     #ifdef HAVE_STDINT_H
7253     #  include <stdint.h>
7254     #endif
7255
7256 int
7257 main ()
7258 {
7259 uint16_t foo
7260   ;
7261   return 0;
7262 }
7263 _ACEOF
7264 if ac_fn_c_try_compile "$LINENO"; then :
7265   ac_cv_type_uint16_t=yes
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268
7269
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7272 $as_echo "$ac_cv_type_uint16_t" >&6; }
7273
7274   if test "$ac_cv_type_uint16_t" != "yes"; then
7275
7276 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7277
7278   fi
7279
7280
7281
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7283 $as_echo_n "checking for uint32_t... " >&6; }
7284 if ${ac_cv_type_uint32_t+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287    ac_cv_type_uint32_t=no
7288       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h.  */
7290 #ifdef HAVE_INTTYPES_H
7291     #  include <inttypes.h>
7292     #endif
7293
7294     #ifdef HAVE_STDINT_H
7295     #  include <stdint.h>
7296     #endif
7297
7298 int
7299 main ()
7300 {
7301 uint32_t foo
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 if ac_fn_c_try_compile "$LINENO"; then :
7307   ac_cv_type_uint32_t=yes
7308 fi
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7314 $as_echo "$ac_cv_type_uint32_t" >&6; }
7315
7316   if test "$ac_cv_type_uint32_t" != "yes"; then
7317
7318 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7319
7320   fi
7321
7322
7323 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7324     #ifdef HAVE_NETINET_IN_H
7325     #  include <netinet/in.h>
7326     #endif
7327
7328
7329 "
7330 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7331
7332 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7333
7334 fi
7335
7336
7337 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7338     #ifdef HAVE_NETINET_IN_H
7339     #  include <netinet/in.h>
7340     #endif
7341
7342     #ifdef HAVE_SYS_SOCKET_H
7343     #  include <sys/socket.h>
7344     #endif
7345
7346 "
7347 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7348
7349 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7350
7351 fi
7352
7353
7354 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7355     #ifdef HAVE_NETINET_IN_H
7356     #  include <netinet/in.h>
7357     #endif
7358
7359 "
7360 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7361
7362 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7363
7364 fi
7365
7366
7367 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7368     #ifdef HAVE_SYS_TYPES_H
7369     #  include <sys/types.h>
7370     #endif
7371
7372     #ifdef HAVE_SYS_SOCKET_H
7373     #  include <sys/socket.h>
7374     #endif
7375
7376     #ifdef HAVE_NETDB_H
7377     #  include <netdb.h>
7378     #endif
7379
7380
7381 "
7382 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7383
7384 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7385
7386 fi
7387
7388
7389 for ac_func in \
7390   getopt_long \
7391   fcntl \
7392   strsignal \
7393   sigaction \
7394   sigprocmask \
7395   pthread_sigmask \
7396   snprintf \
7397   vsnprintf \
7398   setsid \
7399   strncasecmp \
7400   strcasecmp \
7401   localtime_r \
7402   ctime_r \
7403   gmtime_r \
7404   strsep \
7405   inet_aton \
7406   inet_pton \
7407   inet_ntop \
7408   setlinebuf \
7409   setvbuf \
7410   getusershell \
7411   initgroups \
7412   getaddrinfo \
7413   getnameinfo \
7414   closefrom \
7415   gettimeofday \
7416   getpeereid \
7417   setuid \
7418   setresuid \
7419   getresuid \
7420   strlcat \
7421   strlcpy
7422
7423 do :
7424   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7426 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7427   cat >>confdefs.h <<_ACEOF
7428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7429 _ACEOF
7430
7431 fi
7432 done
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7436 $as_echo_n "checking return type of signal handlers... " >&6; }
7437 if ${ac_cv_type_signal+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442 #include <sys/types.h>
7443 #include <signal.h>
7444
7445 int
7446 main ()
7447 {
7448 return *(signal (0, 0)) (0) == 1;
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454   ac_cv_type_signal=int
7455 else
7456   ac_cv_type_signal=void
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7461 $as_echo "$ac_cv_type_signal" >&6; }
7462
7463 cat >>confdefs.h <<_ACEOF
7464 #define RETSIGTYPE $ac_cv_type_signal
7465 _ACEOF
7466
7467
7468
7469 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7470
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7472 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7473
7474
7475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477
7478 #include <utmpx.h>
7479 #ifdef HAVE_STDDEF_H
7480 #include <stddef.h>
7481 #endif
7482 #ifndef offsetof
7483 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7484 #endif
7485
7486 int
7487 main ()
7488 {
7489  int foo = offsetof(struct utmpx, ut_xtime)
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495   has_element=" "
7496 else
7497   has_element=
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500
7501   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7502   if test "x$has_element" != "x"; then
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504 $as_echo "yes" >&6; }
7505     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7506   else
7507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7510  fi
7511
7512  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7513
7514 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7515
7516  fi
7517 fi
7518
7519
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7521 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7522
7523
7524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h.  */
7526
7527 #include <netinet/in.h>
7528 #ifdef HAVE_STDDEF_H
7529 #include <stddef.h>
7530 #endif
7531 #ifndef offsetof
7532 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7533 #endif
7534
7535 int
7536 main ()
7537 {
7538  int foo = offsetof(struct in_pktinfo, ipi_addr)
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544   has_element=" "
7545 else
7546   has_element=
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549
7550   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7551   if test "x$has_element" != "x"; then
7552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7553 $as_echo "yes" >&6; }
7554     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7555   else
7556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7559  fi
7560
7561 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7562
7563 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7564
7565 fi
7566
7567
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7569 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7570
7571
7572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h.  */
7574
7575 #include <netinet/in.h>
7576 #ifdef HAVE_STDDEF_H
7577 #include <stddef.h>
7578 #endif
7579 #ifndef offsetof
7580 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7581 #endif
7582
7583 int
7584 main ()
7585 {
7586  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7587   ;
7588   return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_c_try_compile "$LINENO"; then :
7592   has_element=" "
7593 else
7594   has_element=
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597
7598   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7599   if test "x$has_element" != "x"; then
7600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7602     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7603   else
7604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7607  fi
7608
7609 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7610
7611 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7612
7613 fi
7614
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7617 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7618 if ${ac_cv_c_const+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h.  */
7623
7624 int
7625 main ()
7626 {
7627
7628 #ifndef __cplusplus
7629   /* Ultrix mips cc rejects this sort of thing.  */
7630   typedef int charset[2];
7631   const charset cs = { 0, 0 };
7632   /* SunOS 4.1.1 cc rejects this.  */
7633   char const *const *pcpcc;
7634   char **ppc;
7635   /* NEC SVR4.0.2 mips cc rejects this.  */
7636   struct point {int x, y;};
7637   static struct point const zero = {0,0};
7638   /* AIX XL C 1.02.0.0 rejects this.
7639      It does not let you subtract one const X* pointer from another in
7640      an arm of an if-expression whose if-part is not a constant
7641      expression */
7642   const char *g = "string";
7643   pcpcc = &g + (g ? g-g : 0);
7644   /* HPUX 7.0 cc rejects these. */
7645   ++pcpcc;
7646   ppc = (char**) pcpcc;
7647   pcpcc = (char const *const *) ppc;
7648   { /* SCO 3.2v4 cc rejects this sort of thing.  */
7649     char tx;
7650     char *t = &tx;
7651     char const *s = 0 ? (char *) 0 : (char const *) 0;
7652
7653     *t++ = 0;
7654     if (s) return 0;
7655   }
7656   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7657     int x[] = {25, 17};
7658     const int *foo = &x[0];
7659     ++foo;
7660   }
7661   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7662     typedef const int *iptr;
7663     iptr p = 0;
7664     ++p;
7665   }
7666   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7667        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7668     struct s { int j; const int *ap[3]; } bx;
7669     struct s *b = &bx; b->j = 5;
7670   }
7671   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7672     const int foo = 10;
7673     if (!foo) return 0;
7674   }
7675   return !cs[0] && !zero.x;
7676 #endif
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683   ac_cv_c_const=yes
7684 else
7685   ac_cv_c_const=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7690 $as_echo "$ac_cv_c_const" >&6; }
7691 if test $ac_cv_c_const = no; then
7692
7693 $as_echo "#define const /**/" >>confdefs.h
7694
7695 fi
7696
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7699 $as_echo_n "checking type of OS... " >&6; }
7700 OS=`uname -s`
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7702 $as_echo "$OS" >&6; }
7703 if test "$OS" = "OS/2"; then
7704   LIBPREFIX=
7705 else
7706   LIBPREFIX=lib
7707 fi
7708
7709
7710 if test "x$developer" = "xyes"; then
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7712 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7713
7714
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7716 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7717 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720
7721
7722     CFLAGS_SAVED=$CFLAGS
7723     CFLAGS="$CFLAGS -Werror -Wdocumentation"
7724
7725     ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h.  */
7733
7734 int
7735 main ()
7736 {
7737 return 0;
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743   ax_cv_cc_wdocumentation_flag="yes"
7744 else
7745   ax_cv_cc_wdocumentation_flag="no"
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748     ac_ext=c
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754
7755     CFLAGS="$CFLAGS_SAVED"
7756
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7759 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7760
7761   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7762     devflags="-Wdocumentation"
7763   fi
7764
7765   if test "x$GCC" = "xyes"; then
7766     devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
7767     INSTALLSTRIP=""
7768   fi
7769
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7771 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7772
7773   CFLAGS="$CFLAGS $devflags"
7774         if test "x$EXPERIMENTAL" != "xno"; then
7775     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7776 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7777     EXPERIMENTAL=yes
7778   fi
7779 else
7780   devflags=""
7781   CFLAGS="$CFLAGS -DNDEBUG"
7782   INSTALLSTRIP=""
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7784 $as_echo "no." >&6; }
7785 fi
7786
7787 export EXPERIMENTAL
7788
7789 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7790   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7794 _ACEOF
7795
7796 fi
7797
7798
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
7800 $as_echo_n "checking for __thread support in compiler... " >&6; }
7801   if test "$cross_compiling" = yes; then :
7802   have_tls=no
7803 else
7804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h.  */
7806
7807         static __thread int val;
7808         int main(int argc, char **argv) {
7809           val = 0;
7810           return val;
7811         }
7812
7813
7814 _ACEOF
7815 if ac_fn_c_try_run "$LINENO"; then :
7816   have_tls=yes
7817 else
7818   have_tls=no
7819 fi
7820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821   conftest.$ac_objext conftest.beam conftest.$ac_ext
7822 fi
7823
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7825 $as_echo "$have_tls" >&6; }
7826   if test "x$have_tls" = "xyes"; then
7827
7828 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7829
7830   fi
7831
7832
7833
7834 talloc_include_dir=
7835
7836 # Check whether --with-talloc-include-dir was given.
7837 if test "${with_talloc_include_dir+set}" = set; then :
7838   withval=$with_talloc_include_dir; case "$withval" in
7839     no)
7840       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7841       ;;
7842     yes)
7843       ;;
7844     *)
7845       talloc_include_dir="$withval"
7846       ;;
7847   esac
7848 fi
7849
7850
7851 talloc_lib_dir=
7852
7853 # Check whether --with-talloc-lib-dir was given.
7854 if test "${with_talloc_lib_dir+set}" = set; then :
7855   withval=$with_talloc_lib_dir; case "$withval" in
7856     no)
7857       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
7858       ;;
7859     yes)
7860       ;;
7861     *)
7862       talloc_lib_dir="$withval"
7863       ;;
7864   esac
7865 fi
7866
7867
7868 smart_try_dir="$talloc_include_dir"
7869
7870
7871 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7872 old_CFLAGS="$CFLAGS"
7873 smart_include=
7874 smart_include_dir=
7875
7876 if test "x$smart_try_dir" != "x"; then
7877   for try in $smart_try_dir; do
7878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7879 $as_echo_n "checking for talloc.h in $try... " >&6; }
7880     CFLAGS="$old_CFLAGS -isystem $try"
7881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h.  */
7883
7884                     #include <talloc.h>
7885 int
7886 main ()
7887 {
7888 int a = 1;
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894
7895                      smart_include="-isystem $try"
7896                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7897 $as_echo "yes" >&6; }
7898                      break
7899
7900 else
7901
7902                      smart_include=
7903                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908   done
7909   CFLAGS="$old_CFLAGS"
7910 fi
7911
7912 if test "x$smart_include" = "x"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7914 $as_echo_n "checking for talloc.h... " >&6; }
7915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918                   #include <talloc.h>
7919 int
7920 main ()
7921 {
7922 int a = 1;
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928
7929                    smart_include=" "
7930                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7932                    break
7933
7934 else
7935
7936                    smart_include=
7937                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 fi
7943
7944 if test "x$smart_include" = "x"; then
7945
7946
7947 if test "x$LOCATE" != "x"; then
7948         DIRS=
7949   file=talloc.h
7950
7951   for x in `${LOCATE} $file 2>/dev/null`; do
7952                                         base=`echo $x | sed "s%/${file}%%"`
7953     if test "x$x" = "x$base"; then
7954       continue;
7955     fi
7956
7957     dir=`${DIRNAME} $x 2>/dev/null`
7958                 exclude=`echo ${dir} | ${GREP} /home`
7959     if test "x$exclude" != "x"; then
7960       continue
7961     fi
7962
7963                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7964     if test "x$already" = "x"; then
7965       DIRS="$DIRS $dir"
7966     fi
7967   done
7968 fi
7969
7970 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7971
7972   for try in $smart_include_dir /usr/local/include /opt/include; do
7973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7974 $as_echo_n "checking for talloc.h in $try... " >&6; }
7975     CFLAGS="$old_CFLAGS -isystem $try"
7976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h.  */
7978
7979                     #include <talloc.h>
7980 int
7981 main ()
7982 {
7983 int a = 1;
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989
7990                      smart_include="-isystem $try"
7991                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7993                      break
7994
7995 else
7996
7997                      smart_include=
7998                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003   done
8004   CFLAGS="$old_CFLAGS"
8005 fi
8006
8007 if test "x$smart_include" != "x"; then
8008   eval "ac_cv_header_$ac_safe=yes"
8009   CFLAGS="$old_CFLAGS $smart_include"
8010   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8011 fi
8012
8013 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8015 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8016   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8017 fi
8018
8019 smart_try_dir="$talloc_lib_dir"
8020
8021
8022 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8023 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8024
8025 old_LIBS="$LIBS"
8026 smart_lib=
8027 smart_lib_dir=
8028
8029 if test "x$smart_try_dir" != "x"; then
8030   for try in $smart_try_dir; do
8031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8032 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8033     LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h.  */
8036 extern char _talloc();
8037 int
8038 main ()
8039 {
8040 _talloc()
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"; then :
8046
8047                  smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8048                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8049 $as_echo "yes" >&6; }
8050                  break
8051
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext \
8057     conftest$ac_exeext conftest.$ac_ext
8058   done
8059   LIBS="$old_LIBS"
8060 fi
8061
8062 if test "x$smart_lib" = "x"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8064 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8065   LIBS="-ltalloc $old_LIBS"
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 extern char _talloc();
8069 int
8070 main ()
8071 {
8072 _talloc()
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_link "$LINENO"; then :
8078
8079                 smart_lib="-ltalloc"
8080                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8081 $as_echo "yes" >&6; }
8082
8083 else
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087 rm -f core conftest.err conftest.$ac_objext \
8088     conftest$ac_exeext conftest.$ac_ext
8089   LIBS="$old_LIBS"
8090 fi
8091
8092 if test "x$smart_lib" = "x"; then
8093
8094
8095 if test "x$LOCATE" != "x"; then
8096         DIRS=
8097   file=libtalloc${libltdl_cv_shlibext}
8098
8099   for x in `${LOCATE} $file 2>/dev/null`; do
8100                                         base=`echo $x | sed "s%/${file}%%"`
8101     if test "x$x" = "x$base"; then
8102       continue;
8103     fi
8104
8105     dir=`${DIRNAME} $x 2>/dev/null`
8106                 exclude=`echo ${dir} | ${GREP} /home`
8107     if test "x$exclude" != "x"; then
8108       continue
8109     fi
8110
8111                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8112     if test "x$already" = "x"; then
8113       DIRS="$DIRS $dir"
8114     fi
8115   done
8116 fi
8117
8118 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8119
8120
8121
8122 if test "x$LOCATE" != "x"; then
8123         DIRS=
8124   file=libtalloc.a
8125
8126   for x in `${LOCATE} $file 2>/dev/null`; do
8127                                         base=`echo $x | sed "s%/${file}%%"`
8128     if test "x$x" = "x$base"; then
8129       continue;
8130     fi
8131
8132     dir=`${DIRNAME} $x 2>/dev/null`
8133                 exclude=`echo ${dir} | ${GREP} /home`
8134     if test "x$exclude" != "x"; then
8135       continue
8136     fi
8137
8138                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8139     if test "x$already" = "x"; then
8140       DIRS="$DIRS $dir"
8141     fi
8142   done
8143 fi
8144
8145 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8146
8147
8148   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8150 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8151     LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h.  */
8154 extern char _talloc();
8155 int
8156 main ()
8157 {
8158 _talloc()
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164
8165                   smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8166                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8167 $as_echo "yes" >&6; }
8168                   break
8169
8170 else
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175     conftest$ac_exeext conftest.$ac_ext
8176   done
8177   LIBS="$old_LIBS"
8178 fi
8179
8180 if test "x$smart_lib" != "x"; then
8181   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8182   LIBS="$smart_lib $old_LIBS"
8183   SMART_LIBS="$smart_lib $SMART_LIBS"
8184 fi
8185
8186 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8188 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8189   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8190 fi
8191
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8193 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8194 if ${ac_cv_lib_crypt_crypt+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lcrypt  $LIBS"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h.  */
8201
8202 /* Override any GCC internal prototype to avoid an error.
8203    Use char because int might match the return type of a GCC
8204    builtin and then its argument prototype would still apply.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 char crypt ();
8209 int
8210 main ()
8211 {
8212 return crypt ();
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218   ac_cv_lib_crypt_crypt=yes
8219 else
8220   ac_cv_lib_crypt_crypt=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223     conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_lib_save_LIBS
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8227 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8228 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8229   CRYPTLIB="-lcrypt"
8230
8231 fi
8232
8233
8234 if test "$CRYPTLIB" != ""; then
8235
8236 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8237
8238 else
8239   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8240 if test "x$ac_cv_func_crypt" = xyes; then :
8241
8242 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8243
8244 fi
8245
8246 fi
8247
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8249 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8250 if ${ac_cv_lib_cipher_setkey+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lcipher  $LIBS"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257
8258 /* Override any GCC internal prototype to avoid an error.
8259    Use char because int might match the return type of a GCC
8260    builtin and then its argument prototype would still apply.  */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char setkey ();
8265 int
8266 main ()
8267 {
8268 return setkey ();
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274   ac_cv_lib_cipher_setkey=yes
8275 else
8276   ac_cv_lib_cipher_setkey=no
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext \
8279     conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8283 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8284 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8285   CRYPTLIB="${CRYPTLIB} -lcipher"
8286
8287 fi
8288
8289
8290
8291
8292 pcre_lib_dir=
8293
8294 # Check whether --with-rlm-pcre-lib-dir was given.
8295 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8296   withval=$with_rlm_pcre_lib_dir;  case "$withval" in
8297     no)
8298         as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8299         ;;
8300     yes)
8301         ;;
8302     *)
8303         pcre_lib_dir="$withval"
8304         ;;
8305   esac
8306
8307 fi
8308
8309
8310 pcre_include_dir=
8311
8312 # Check whether --with-rlm-pcre-include-dir was given.
8313 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8314   withval=$with_rlm_pcre_include_dir;  case "$withval" in
8315     no)
8316         as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8317         ;;
8318     yes)
8319         ;;
8320     *)
8321         pcre_include_dir="$withval"
8322         ;;
8323   esac
8324
8325 fi
8326
8327
8328 REGEX=no
8329 REGEX_EXTENDED=no
8330 REGEX_PCRE=no
8331
8332 smart_try_dir=$pcre_include_dir
8333
8334
8335 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8336 old_CFLAGS="$CFLAGS"
8337 smart_include=
8338 smart_include_dir=
8339
8340 if test "x$smart_try_dir" != "x"; then
8341   for try in $smart_try_dir; do
8342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8343 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8344     CFLAGS="$old_CFLAGS -isystem $try"
8345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347
8348                     #include <pcreposix.h>
8349 int
8350 main ()
8351 {
8352 int a = 1;
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_compile "$LINENO"; then :
8358
8359                      smart_include="-isystem $try"
8360                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8362                      break
8363
8364 else
8365
8366                      smart_include=
8367                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372   done
8373   CFLAGS="$old_CFLAGS"
8374 fi
8375
8376 if test "x$smart_include" = "x"; then
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8378 $as_echo_n "checking for pcreposix.h... " >&6; }
8379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h.  */
8381
8382                   #include <pcreposix.h>
8383 int
8384 main ()
8385 {
8386 int a = 1;
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392
8393                    smart_include=" "
8394                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8395 $as_echo "yes" >&6; }
8396                    break
8397
8398 else
8399
8400                    smart_include=
8401                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407
8408 if test "x$smart_include" = "x"; then
8409
8410
8411 if test "x$LOCATE" != "x"; then
8412         DIRS=
8413   file=pcreposix.h
8414
8415   for x in `${LOCATE} $file 2>/dev/null`; do
8416                                         base=`echo $x | sed "s%/${file}%%"`
8417     if test "x$x" = "x$base"; then
8418       continue;
8419     fi
8420
8421     dir=`${DIRNAME} $x 2>/dev/null`
8422                 exclude=`echo ${dir} | ${GREP} /home`
8423     if test "x$exclude" != "x"; then
8424       continue
8425     fi
8426
8427                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8428     if test "x$already" = "x"; then
8429       DIRS="$DIRS $dir"
8430     fi
8431   done
8432 fi
8433
8434 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8435
8436   for try in $smart_include_dir /usr/local/include /opt/include; do
8437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8438 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8439     CFLAGS="$old_CFLAGS -isystem $try"
8440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h.  */
8442
8443                     #include <pcreposix.h>
8444 int
8445 main ()
8446 {
8447 int a = 1;
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 if ac_fn_c_try_compile "$LINENO"; then :
8453
8454                      smart_include="-isystem $try"
8455                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8457                      break
8458
8459 else
8460
8461                      smart_include=
8462                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467   done
8468   CFLAGS="$old_CFLAGS"
8469 fi
8470
8471 if test "x$smart_include" != "x"; then
8472   eval "ac_cv_header_$ac_safe=yes"
8473   CFLAGS="$old_CFLAGS $smart_include"
8474   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8475 fi
8476
8477 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8478
8479 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8480
8481
8482 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8483
8484   REGEX=yes
8485   REGEX_EXTENDED=yes
8486   REGEX_PCRE=yes
8487   LIBS="-lpcre -lpcreposix $LIBS"
8488
8489 else
8490   smart_try_dir=
8491
8492
8493 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8494 old_CFLAGS="$CFLAGS"
8495 smart_include=
8496 smart_include_dir=
8497
8498 if test "x$smart_try_dir" != "x"; then
8499   for try in $smart_try_dir; do
8500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8501 $as_echo_n "checking for regex.h in $try... " >&6; }
8502     CFLAGS="$old_CFLAGS -isystem $try"
8503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h.  */
8505
8506                     #include <regex.h>
8507 int
8508 main ()
8509 {
8510 int a = 1;
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516
8517                      smart_include="-isystem $try"
8518                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8520                      break
8521
8522 else
8523
8524                      smart_include=
8525                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530   done
8531   CFLAGS="$old_CFLAGS"
8532 fi
8533
8534 if test "x$smart_include" = "x"; then
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8536 $as_echo_n "checking for regex.h... " >&6; }
8537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539
8540                   #include <regex.h>
8541 int
8542 main ()
8543 {
8544 int a = 1;
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550
8551                    smart_include=" "
8552                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553 $as_echo "yes" >&6; }
8554                    break
8555
8556 else
8557
8558                    smart_include=
8559                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 fi
8565
8566 if test "x$smart_include" = "x"; then
8567
8568
8569 if test "x$LOCATE" != "x"; then
8570         DIRS=
8571   file=regex.h
8572
8573   for x in `${LOCATE} $file 2>/dev/null`; do
8574                                         base=`echo $x | sed "s%/${file}%%"`
8575     if test "x$x" = "x$base"; then
8576       continue;
8577     fi
8578
8579     dir=`${DIRNAME} $x 2>/dev/null`
8580                 exclude=`echo ${dir} | ${GREP} /home`
8581     if test "x$exclude" != "x"; then
8582       continue
8583     fi
8584
8585                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8586     if test "x$already" = "x"; then
8587       DIRS="$DIRS $dir"
8588     fi
8589   done
8590 fi
8591
8592 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8593
8594   for try in $smart_include_dir /usr/local/include /opt/include; do
8595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8596 $as_echo_n "checking for regex.h in $try... " >&6; }
8597     CFLAGS="$old_CFLAGS -isystem $try"
8598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h.  */
8600
8601                     #include <regex.h>
8602 int
8603 main ()
8604 {
8605 int a = 1;
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611
8612                      smart_include="-isystem $try"
8613                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8614 $as_echo "yes" >&6; }
8615                      break
8616
8617 else
8618
8619                      smart_include=
8620                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625   done
8626   CFLAGS="$old_CFLAGS"
8627 fi
8628
8629 if test "x$smart_include" != "x"; then
8630   eval "ac_cv_header_$ac_safe=yes"
8631   CFLAGS="$old_CFLAGS $smart_include"
8632   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8633 fi
8634
8635   if test "x$ac_cv_header_regex_h" = "xyes"; then
8636
8637 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8638
8639     REGEX=yes
8640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h.  */
8642
8643         #include <regex.h>
8644         #ifdef REG_EXTENDED
8645         yes
8646         #endif
8647
8648 _ACEOF
8649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8650   $EGREP "yes" >/dev/null 2>&1; then :
8651
8652 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
8653  REGEX_EXTENDED=yes
8654
8655 fi
8656 rm -f conftest*
8657
8658   fi
8659 fi
8660
8661
8662
8663
8664
8665
8666 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8667
8668
8669
8670 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8671
8672
8673
8674 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8675
8676
8677 gethostbyaddrrstyle=""
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8679 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8680 case "$host" in
8681   *-freebsd*)
8682                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8683         #ifdef HAVE_NETDB_H
8684         #include <netdb.h>
8685         #endif
8686
8687 "
8688 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8689   ac_have_decl=1
8690 else
8691   ac_have_decl=0
8692 fi
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8696 _ACEOF
8697 if test $ac_have_decl = 1; then :
8698
8699 else
8700
8701
8702 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8703
8704         gethostbyaddrrstyle=BSD
8705         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8706 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8707
8708 fi
8709
8710     ;;
8711 esac
8712
8713 if test "x$gethostbyaddrrstyle" = "x"; then
8714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h.  */
8716
8717       #include <stdio.h>
8718       #include <netdb.h>
8719
8720 int
8721 main ()
8722 {
8723  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 if ac_fn_c_try_link "$LINENO"; then :
8729
8730
8731 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8732
8733       gethostbyaddrrstyle=GNU
8734
8735
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext \
8738     conftest$ac_exeext conftest.$ac_ext
8739 fi
8740
8741 if test "x$gethostbyaddrrstyle" = "x"; then
8742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h.  */
8744
8745       #include <stdio.h>
8746       #include <netdb.h>
8747
8748 int
8749 main ()
8750 {
8751  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757
8758
8759 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8760
8761       gethostbyaddrrstyle=SYSV
8762
8763
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext \
8766     conftest$ac_exeext conftest.$ac_ext
8767 fi
8768
8769
8770 if test "x$gethostbyaddrrstyle" = "x"; then
8771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h.  */
8773
8774       #include <stdio.h>
8775       #include <netdb.h>
8776
8777 int
8778 main ()
8779 {
8780  gethostbyaddr(NULL, 0, 0)
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_link "$LINENO"; then :
8786
8787
8788 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8789
8790       gethostbyaddrrstyle=BSD
8791
8792
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext \
8795     conftest$ac_exeext conftest.$ac_ext
8796 fi
8797
8798 if test "x$gethostbyaddrrstyle" = "x"; then
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8800 $as_echo "none!  It must not exist, here." >&6; }
8801 else
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8803 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8804 fi
8805
8806 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8808 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8809 fi
8810
8811 gethostbynamerstyle=""
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8813 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816
8817     #include <stdio.h>
8818     #include <netdb.h>
8819
8820 int
8821 main ()
8822 {
8823  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"; then :
8829
8830
8831 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8832
8833     gethostbynamerstyle=GNU
8834
8835
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext \
8838     conftest$ac_exeext conftest.$ac_ext
8839
8840 if test "x$gethostbynamerstyle" = "x"; then
8841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h.  */
8843
8844       #include <stdio.h>
8845       #include <netdb.h>
8846
8847 int
8848 main ()
8849 {
8850  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8851   ;
8852   return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"; then :
8856
8857
8858 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8859
8860       gethostbynamerstyle=SYSV
8861
8862
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext \
8865     conftest$ac_exeext conftest.$ac_ext
8866 fi
8867
8868 if test "x$gethostbynamerstyle" = "x"; then
8869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h.  */
8871
8872       #include <stdio.h>
8873       #include <netdb.h>
8874
8875 int
8876 main ()
8877 {
8878  gethostbyname(NULL)
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884
8885
8886 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8887
8888       gethostbynamerstyle=BSD
8889
8890
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext \
8893     conftest$ac_exeext conftest.$ac_ext
8894 fi
8895
8896 if test "x$gethostbynamerstyle" = "x"; then
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8898 $as_echo "none!  It must not exist, here." >&6; }
8899 else
8900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8901 $as_echo "${gethostbynamerstyle}-style" >&6; }
8902 fi
8903
8904 if test "x$gethostbynamerstyle" = "xBSD"; then
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8906 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8907 fi
8908
8909
8910 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8911
8912
8913 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8914
8915 ctimerstyle=""
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8917 $as_echo_n "checking ctime_r() syntax... " >&6; }
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h.  */
8920
8921     #include <time.h>
8922
8923 int
8924 main ()
8925 {
8926  ctime_r(NULL, NULL, 0)
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932
8933
8934 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8935
8936     ctimerstyle="SOLARIS"
8937
8938
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext \
8941     conftest$ac_exeext conftest.$ac_ext
8942
8943 if test "x$ctimerstyle" = "x"; then
8944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h.  */
8946
8947       #include <time.h>
8948
8949 int
8950 main ()
8951 {
8952  ctime_r(NULL, NULL)
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_c_try_link "$LINENO"; then :
8958
8959
8960 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8961
8962       ctimerstyle="POSIX"
8963
8964
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967     conftest$ac_exeext conftest.$ac_ext
8968 fi
8969
8970 if test "x$ctimerstyle" = "x"; then
8971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8972 $as_echo "none!  It must not exist, here." >&6; }
8973 else
8974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8975 $as_echo "${ctimerstyle}-style" >&6; }
8976 fi
8977
8978 HOSTINFO=$host
8979
8980
8981
8982 top_builddir=`pwd`
8983 export top_builddir
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8985 $as_echo "top_builddir=$top_builddir" >&6; }
8986
8987
8988
8989
8990 if test "x$EXPERIMENTAL" = "xyes"; then
8991   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8992     MODULES="$MODULES $foo"
8993   done
8994 else
8995             for foo in `cat "${srcdir}"/src/modules/stable`; do
8996       MODULES="$MODULES $foo"
8997    done
8998 fi
8999
9000 mysubdirs=""
9001 for bar in $MODULES; do
9002   if test -f "${srcdir}"/src/modules/$bar/configure; then
9003     mysubdirs="$mysubdirs src/modules/$bar"
9004   fi
9005 done
9006
9007
9008
9009 subdirs="$subdirs $mysubdirs"
9010
9011
9012
9013 if test "x$werror" == "xyes"; then
9014   CFLAGS="-Werror $CFLAGS"
9015 fi
9016
9017 ac_config_commands="$ac_config_commands stamp-h"
9018
9019 ac_config_commands="$ac_config_commands build-radpaths-h"
9020
9021 ac_config_commands="$ac_config_commands main-chmod"
9022
9023 ac_config_commands="$ac_config_commands scripts-chmod"
9024
9025
9026
9027
9028
9029
9030 USE_STATIC_LIBS="yes"
9031
9032
9033
9034
9035   unset ac_cv_env_LIBS_set
9036   unset ac_cv_env_LIBS_value
9037
9038   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
9039
9040 cat >confcache <<\_ACEOF
9041 # This file is a shell script that caches the results of configure
9042 # tests run on this system so they can be shared between configure
9043 # scripts and configure runs, see configure's option --config-cache.
9044 # It is not useful on other systems.  If it contains results you don't
9045 # want to keep, you may remove or edit it.
9046 #
9047 # config.status only pays attention to the cache file if you give it
9048 # the --recheck option to rerun configure.
9049 #
9050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9052 # following values.
9053
9054 _ACEOF
9055
9056 # The following way of writing the cache mishandles newlines in values,
9057 # but we know of no workaround that is simple, portable, and efficient.
9058 # So, we kill variables containing newlines.
9059 # Ultrix sh set writes to stderr and can't be redirected directly,
9060 # and sets the high bit in the cache file unless we assign to the vars.
9061 (
9062   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9063     eval ac_val=\$$ac_var
9064     case $ac_val in #(
9065     *${as_nl}*)
9066       case $ac_var in #(
9067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9069       esac
9070       case $ac_var in #(
9071       _ | IFS | as_nl) ;; #(
9072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9073       *) { eval $ac_var=; unset $ac_var;} ;;
9074       esac ;;
9075     esac
9076   done
9077
9078   (set) 2>&1 |
9079     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9080     *${as_nl}ac_space=\ *)
9081       # `set' does not quote correctly, so add quotes: double-quote
9082       # substitution turns \\\\ into \\, and sed turns \\ into \.
9083       sed -n \
9084         "s/'/'\\\\''/g;
9085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9086       ;; #(
9087     *)
9088       # `set' quotes correctly as required by POSIX, so do not add quotes.
9089       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9090       ;;
9091     esac |
9092     sort
9093 ) |
9094   sed '
9095      /^ac_cv_env_/b end
9096      t clear
9097      :clear
9098      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9099      t end
9100      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9101      :end' >>confcache
9102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9103   if test -w "$cache_file"; then
9104     if test "x$cache_file" != "x/dev/null"; then
9105       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9106 $as_echo "$as_me: updating cache $cache_file" >&6;}
9107       if test ! -f "$cache_file" || test -h "$cache_file"; then
9108         cat confcache >"$cache_file"
9109       else
9110         case $cache_file in #(
9111         */* | ?:*)
9112           mv -f confcache "$cache_file"$$ &&
9113           mv -f "$cache_file"$$ "$cache_file" ;; #(
9114         *)
9115           mv -f confcache "$cache_file" ;;
9116         esac
9117       fi
9118     fi
9119   else
9120     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9121 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9122   fi
9123 fi
9124 rm -f confcache
9125
9126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9127 # Let make expand exec_prefix.
9128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9129
9130 DEFS=-DHAVE_CONFIG_H
9131
9132 ac_libobjs=
9133 ac_ltlibobjs=
9134 U=
9135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9136   # 1. Remove the extension, and $U if already installed.
9137   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9138   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9139   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9140   #    will be set to the directory where LIBOBJS objects are built.
9141   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9142   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9143 done
9144 LIBOBJS=$ac_libobjs
9145
9146 LTLIBOBJS=$ac_ltlibobjs
9147
9148
9149
9150
9151 : "${CONFIG_STATUS=./config.status}"
9152 ac_write_fail=0
9153 ac_clean_files_save=$ac_clean_files
9154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9156 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9157 as_write_fail=0
9158 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9159 #! $SHELL
9160 # Generated by $as_me.
9161 # Run this file to recreate the current configuration.
9162 # Compiler output produced by configure, useful for debugging
9163 # configure, is in config.log if it exists.
9164
9165 debug=false
9166 ac_cs_recheck=false
9167 ac_cs_silent=false
9168
9169 SHELL=\${CONFIG_SHELL-$SHELL}
9170 export SHELL
9171 _ASEOF
9172 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9173 ## -------------------- ##
9174 ## M4sh Initialization. ##
9175 ## -------------------- ##
9176
9177 # Be more Bourne compatible
9178 DUALCASE=1; export DUALCASE # for MKS sh
9179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9180   emulate sh
9181   NULLCMD=:
9182   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9183   # is contrary to our usage.  Disable this feature.
9184   alias -g '${1+"$@"}'='"$@"'
9185   setopt NO_GLOB_SUBST
9186 else
9187   case `(set -o) 2>/dev/null` in #(
9188   *posix*) :
9189     set -o posix ;; #(
9190   *) :
9191      ;;
9192 esac
9193 fi
9194
9195
9196 as_nl='
9197 '
9198 export as_nl
9199 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9200 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9202 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9203 # Prefer a ksh shell builtin over an external printf program on Solaris,
9204 # but without wasting forks for bash or zsh.
9205 if test -z "$BASH_VERSION$ZSH_VERSION" \
9206     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9207   as_echo='print -r --'
9208   as_echo_n='print -rn --'
9209 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9210   as_echo='printf %s\n'
9211   as_echo_n='printf %s'
9212 else
9213   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9214     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9215     as_echo_n='/usr/ucb/echo -n'
9216   else
9217     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9218     as_echo_n_body='eval
9219       arg=$1;
9220       case $arg in #(
9221       *"$as_nl"*)
9222         expr "X$arg" : "X\\(.*\\)$as_nl";
9223         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9224       esac;
9225       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9226     '
9227     export as_echo_n_body
9228     as_echo_n='sh -c $as_echo_n_body as_echo'
9229   fi
9230   export as_echo_body
9231   as_echo='sh -c $as_echo_body as_echo'
9232 fi
9233
9234 # The user is always right.
9235 if test "${PATH_SEPARATOR+set}" != set; then
9236   PATH_SEPARATOR=:
9237   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9238     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9239       PATH_SEPARATOR=';'
9240   }
9241 fi
9242
9243
9244 # IFS
9245 # We need space, tab and new line, in precisely that order.  Quoting is
9246 # there to prevent editors from complaining about space-tab.
9247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9248 # splitting by setting IFS to empty value.)
9249 IFS=" ""        $as_nl"
9250
9251 # Find who we are.  Look in the path if we contain no directory separator.
9252 as_myself=
9253 case $0 in #((
9254   *[\\/]* ) as_myself=$0 ;;
9255   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9257 do
9258   IFS=$as_save_IFS
9259   test -z "$as_dir" && as_dir=.
9260     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9261   done
9262 IFS=$as_save_IFS
9263
9264      ;;
9265 esac
9266 # We did not find ourselves, most probably we were run as `sh COMMAND'
9267 # in which case we are not to be found in the path.
9268 if test "x$as_myself" = x; then
9269   as_myself=$0
9270 fi
9271 if test ! -f "$as_myself"; then
9272   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9273   exit 1
9274 fi
9275
9276 # Unset variables that we do not need and which cause bugs (e.g. in
9277 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9278 # suppresses any "Segmentation fault" message there.  '((' could
9279 # trigger a bug in pdksh 5.2.14.
9280 for as_var in BASH_ENV ENV MAIL MAILPATH
9281 do eval test x\${$as_var+set} = xset \
9282   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9283 done
9284 PS1='$ '
9285 PS2='> '
9286 PS4='+ '
9287
9288 # NLS nuisances.
9289 LC_ALL=C
9290 export LC_ALL
9291 LANGUAGE=C
9292 export LANGUAGE
9293
9294 # CDPATH.
9295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9296
9297
9298 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9299 # ----------------------------------------
9300 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9301 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9302 # script with STATUS, using 1 if that was 0.
9303 as_fn_error ()
9304 {
9305   as_status=$1; test $as_status -eq 0 && as_status=1
9306   if test "$4"; then
9307     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9308     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9309   fi
9310   $as_echo "$as_me: error: $2" >&2
9311   as_fn_exit $as_status
9312 } # as_fn_error
9313
9314
9315 # as_fn_set_status STATUS
9316 # -----------------------
9317 # Set $? to STATUS, without forking.
9318 as_fn_set_status ()
9319 {
9320   return $1
9321 } # as_fn_set_status
9322
9323 # as_fn_exit STATUS
9324 # -----------------
9325 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9326 as_fn_exit ()
9327 {
9328   set +e
9329   as_fn_set_status $1
9330   exit $1
9331 } # as_fn_exit
9332
9333 # as_fn_unset VAR
9334 # ---------------
9335 # Portably unset VAR.
9336 as_fn_unset ()
9337 {
9338   { eval $1=; unset $1;}
9339 }
9340 as_unset=as_fn_unset
9341 # as_fn_append VAR VALUE
9342 # ----------------------
9343 # Append the text in VALUE to the end of the definition contained in VAR. Take
9344 # advantage of any shell optimizations that allow amortized linear growth over
9345 # repeated appends, instead of the typical quadratic growth present in naive
9346 # implementations.
9347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9348   eval 'as_fn_append ()
9349   {
9350     eval $1+=\$2
9351   }'
9352 else
9353   as_fn_append ()
9354   {
9355     eval $1=\$$1\$2
9356   }
9357 fi # as_fn_append
9358
9359 # as_fn_arith ARG...
9360 # ------------------
9361 # Perform arithmetic evaluation on the ARGs, and store the result in the
9362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9363 # must be portable across $(()) and expr.
9364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9365   eval 'as_fn_arith ()
9366   {
9367     as_val=$(( $* ))
9368   }'
9369 else
9370   as_fn_arith ()
9371   {
9372     as_val=`expr "$@" || test $? -eq 1`
9373   }
9374 fi # as_fn_arith
9375
9376
9377 if expr a : '\(a\)' >/dev/null 2>&1 &&
9378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9379   as_expr=expr
9380 else
9381   as_expr=false
9382 fi
9383
9384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9385   as_basename=basename
9386 else
9387   as_basename=false
9388 fi
9389
9390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9391   as_dirname=dirname
9392 else
9393   as_dirname=false
9394 fi
9395
9396 as_me=`$as_basename -- "$0" ||
9397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9398          X"$0" : 'X\(//\)$' \| \
9399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9400 $as_echo X/"$0" |
9401     sed '/^.*\/\([^/][^/]*\)\/*$/{
9402             s//\1/
9403             q
9404           }
9405           /^X\/\(\/\/\)$/{
9406             s//\1/
9407             q
9408           }
9409           /^X\/\(\/\).*/{
9410             s//\1/
9411             q
9412           }
9413           s/.*/./; q'`
9414
9415 # Avoid depending upon Character Ranges.
9416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9419 as_cr_digits='0123456789'
9420 as_cr_alnum=$as_cr_Letters$as_cr_digits
9421
9422 ECHO_C= ECHO_N= ECHO_T=
9423 case `echo -n x` in #(((((
9424 -n*)
9425   case `echo 'xy\c'` in
9426   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9427   xy)  ECHO_C='\c';;
9428   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9429        ECHO_T=' ';;
9430   esac;;
9431 *)
9432   ECHO_N='-n';;
9433 esac
9434
9435 rm -f conf$$ conf$$.exe conf$$.file
9436 if test -d conf$$.dir; then
9437   rm -f conf$$.dir/conf$$.file
9438 else
9439   rm -f conf$$.dir
9440   mkdir conf$$.dir 2>/dev/null
9441 fi
9442 if (echo >conf$$.file) 2>/dev/null; then
9443   if ln -s conf$$.file conf$$ 2>/dev/null; then
9444     as_ln_s='ln -s'
9445     # ... but there are two gotchas:
9446     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9447     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9448     # In both cases, we have to default to `cp -pR'.
9449     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9450       as_ln_s='cp -pR'
9451   elif ln conf$$.file conf$$ 2>/dev/null; then
9452     as_ln_s=ln
9453   else
9454     as_ln_s='cp -pR'
9455   fi
9456 else
9457   as_ln_s='cp -pR'
9458 fi
9459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9460 rmdir conf$$.dir 2>/dev/null
9461
9462
9463 # as_fn_mkdir_p
9464 # -------------
9465 # Create "$as_dir" as a directory, including parents if necessary.
9466 as_fn_mkdir_p ()
9467 {
9468
9469   case $as_dir in #(
9470   -*) as_dir=./$as_dir;;
9471   esac
9472   test -d "$as_dir" || eval $as_mkdir_p || {
9473     as_dirs=
9474     while :; do
9475       case $as_dir in #(
9476       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9477       *) as_qdir=$as_dir;;
9478       esac
9479       as_dirs="'$as_qdir' $as_dirs"
9480       as_dir=`$as_dirname -- "$as_dir" ||
9481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9482          X"$as_dir" : 'X\(//\)[^/]' \| \
9483          X"$as_dir" : 'X\(//\)$' \| \
9484          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9485 $as_echo X"$as_dir" |
9486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9487             s//\1/
9488             q
9489           }
9490           /^X\(\/\/\)[^/].*/{
9491             s//\1/
9492             q
9493           }
9494           /^X\(\/\/\)$/{
9495             s//\1/
9496             q
9497           }
9498           /^X\(\/\).*/{
9499             s//\1/
9500             q
9501           }
9502           s/.*/./; q'`
9503       test -d "$as_dir" && break
9504     done
9505     test -z "$as_dirs" || eval "mkdir $as_dirs"
9506   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9507
9508
9509 } # as_fn_mkdir_p
9510 if mkdir -p . 2>/dev/null; then
9511   as_mkdir_p='mkdir -p "$as_dir"'
9512 else
9513   test -d ./-p && rmdir ./-p
9514   as_mkdir_p=false
9515 fi
9516
9517
9518 # as_fn_executable_p FILE
9519 # -----------------------
9520 # Test if FILE is an executable regular file.
9521 as_fn_executable_p ()
9522 {
9523   test -f "$1" && test -x "$1"
9524 } # as_fn_executable_p
9525 as_test_x='test -x'
9526 as_executable_p=as_fn_executable_p
9527
9528 # Sed expression to map a string onto a valid CPP name.
9529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9530
9531 # Sed expression to map a string onto a valid variable name.
9532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9533
9534
9535 exec 6>&1
9536 ## ----------------------------------- ##
9537 ## Main body of $CONFIG_STATUS script. ##
9538 ## ----------------------------------- ##
9539 _ASEOF
9540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9541
9542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9543 # Save the log message, to keep $0 and so on meaningful, and to
9544 # report actual input values of CONFIG_FILES etc. instead of their
9545 # values after options handling.
9546 ac_log="
9547 This file was extended by freeradius $as_me $Id$, which was
9548 generated by GNU Autoconf 2.69.  Invocation command line was
9549
9550   CONFIG_FILES    = $CONFIG_FILES
9551   CONFIG_HEADERS  = $CONFIG_HEADERS
9552   CONFIG_LINKS    = $CONFIG_LINKS
9553   CONFIG_COMMANDS = $CONFIG_COMMANDS
9554   $ $0 $@
9555
9556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9557 "
9558
9559 _ACEOF
9560
9561 case $ac_config_files in *"
9562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9563 esac
9564
9565 case $ac_config_headers in *"
9566 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9567 esac
9568
9569
9570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9571 # Files that config.status was made for.
9572 config_files="$ac_config_files"
9573 config_headers="$ac_config_headers"
9574 config_commands="$ac_config_commands"
9575
9576 _ACEOF
9577
9578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9579 ac_cs_usage="\
9580 \`$as_me' instantiates files and other configuration actions
9581 from templates according to the current configuration.  Unless the files
9582 and actions are specified as TAGs, all are instantiated by default.
9583
9584 Usage: $0 [OPTION]... [TAG]...
9585
9586   -h, --help       print this help, then exit
9587   -V, --version    print version number and configuration settings, then exit
9588       --config     print configuration, then exit
9589   -q, --quiet, --silent
9590                    do not print progress messages
9591   -d, --debug      don't remove temporary files
9592       --recheck    update $as_me by reconfiguring in the same conditions
9593       --file=FILE[:TEMPLATE]
9594                    instantiate the configuration file FILE
9595       --header=FILE[:TEMPLATE]
9596                    instantiate the configuration header FILE
9597
9598 Configuration files:
9599 $config_files
9600
9601 Configuration headers:
9602 $config_headers
9603
9604 Configuration commands:
9605 $config_commands
9606
9607 Report bugs to <http://bugs.freeradius.org>.
9608 freeradius home page: <http://www.freeradius.org>."
9609
9610 _ACEOF
9611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9613 ac_cs_version="\\
9614 freeradius config.status $Id$
9615 configured by $0, generated by GNU Autoconf 2.69,
9616   with options \\"\$ac_cs_config\\"
9617
9618 Copyright (C) 2012 Free Software Foundation, Inc.
9619 This config.status script is free software; the Free Software Foundation
9620 gives unlimited permission to copy, distribute and modify it."
9621
9622 ac_pwd='$ac_pwd'
9623 srcdir='$srcdir'
9624 test -n "\$AWK" || AWK=awk
9625 _ACEOF
9626
9627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9628 # The default lists apply if the user does not specify any file.
9629 ac_need_defaults=:
9630 while test $# != 0
9631 do
9632   case $1 in
9633   --*=?*)
9634     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9635     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9636     ac_shift=:
9637     ;;
9638   --*=)
9639     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9640     ac_optarg=
9641     ac_shift=:
9642     ;;
9643   *)
9644     ac_option=$1
9645     ac_optarg=$2
9646     ac_shift=shift
9647     ;;
9648   esac
9649
9650   case $ac_option in
9651   # Handling of the options.
9652   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9653     ac_cs_recheck=: ;;
9654   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9655     $as_echo "$ac_cs_version"; exit ;;
9656   --config | --confi | --conf | --con | --co | --c )
9657     $as_echo "$ac_cs_config"; exit ;;
9658   --debug | --debu | --deb | --de | --d | -d )
9659     debug=: ;;
9660   --file | --fil | --fi | --f )
9661     $ac_shift
9662     case $ac_optarg in
9663     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9664     '') as_fn_error $? "missing file argument" ;;
9665     esac
9666     as_fn_append CONFIG_FILES " '$ac_optarg'"
9667     ac_need_defaults=false;;
9668   --header | --heade | --head | --hea )
9669     $ac_shift
9670     case $ac_optarg in
9671     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9672     esac
9673     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9674     ac_need_defaults=false;;
9675   --he | --h)
9676     # Conflict between --help and --header
9677     as_fn_error $? "ambiguous option: \`$1'
9678 Try \`$0 --help' for more information.";;
9679   --help | --hel | -h )
9680     $as_echo "$ac_cs_usage"; exit ;;
9681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9682   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9683     ac_cs_silent=: ;;
9684
9685   # This is an error.
9686   -*) as_fn_error $? "unrecognized option: \`$1'
9687 Try \`$0 --help' for more information." ;;
9688
9689   *) as_fn_append ac_config_targets " $1"
9690      ac_need_defaults=false ;;
9691
9692   esac
9693   shift
9694 done
9695
9696 ac_configure_extra_args=
9697
9698 if $ac_cs_silent; then
9699   exec 6>/dev/null
9700   ac_configure_extra_args="$ac_configure_extra_args --silent"
9701 fi
9702
9703 _ACEOF
9704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9705 if \$ac_cs_recheck; then
9706   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9707   shift
9708   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9709   CONFIG_SHELL='$SHELL'
9710   export CONFIG_SHELL
9711   exec "\$@"
9712 fi
9713
9714 _ACEOF
9715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9716 exec 5>>config.log
9717 {
9718   echo
9719   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9720 ## Running $as_me. ##
9721 _ASBOX
9722   $as_echo "$ac_log"
9723 } >&5
9724
9725 _ACEOF
9726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9727 _ACEOF
9728
9729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9730
9731 # Handling of arguments.
9732 for ac_config_target in $ac_config_targets
9733 do
9734   case $ac_config_target in
9735     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9736     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9737     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9738     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9739     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9740     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9741     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9742     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9743     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9744     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9745     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9746     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9747     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9748     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9749     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9750     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9751     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9752     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9753
9754   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9755   esac
9756 done
9757
9758
9759 # If the user did not use the arguments to specify the items to instantiate,
9760 # then the envvar interface is used.  Set only those that are not.
9761 # We use the long form for the default assignment because of an extremely
9762 # bizarre bug on SunOS 4.1.3.
9763 if $ac_need_defaults; then
9764   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9765   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9766   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9767 fi
9768
9769 # Have a temporary directory for convenience.  Make it in the build tree
9770 # simply because there is no reason against having it here, and in addition,
9771 # creating and moving files from /tmp can sometimes cause problems.
9772 # Hook for its removal unless debugging.
9773 # Note that there is a small window in which the directory will not be cleaned:
9774 # after its creation but before its name has been assigned to `$tmp'.
9775 $debug ||
9776 {
9777   tmp= ac_tmp=
9778   trap 'exit_status=$?
9779   : "${ac_tmp:=$tmp}"
9780   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9781 ' 0
9782   trap 'as_fn_exit 1' 1 2 13 15
9783 }
9784 # Create a (secure) tmp directory for tmp files.
9785
9786 {
9787   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9788   test -d "$tmp"
9789 }  ||
9790 {
9791   tmp=./conf$$-$RANDOM
9792   (umask 077 && mkdir "$tmp")
9793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9794 ac_tmp=$tmp
9795
9796 # Set up the scripts for CONFIG_FILES section.
9797 # No need to generate them if there are no CONFIG_FILES.
9798 # This happens for instance with `./config.status config.h'.
9799 if test -n "$CONFIG_FILES"; then
9800
9801
9802 ac_cr=`echo X | tr X '\015'`
9803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9804 # But we know of no other shell where ac_cr would be empty at this
9805 # point, so we can use a bashism as a fallback.
9806 if test "x$ac_cr" = x; then
9807   eval ac_cr=\$\'\\r\'
9808 fi
9809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9811   ac_cs_awk_cr='\\r'
9812 else
9813   ac_cs_awk_cr=$ac_cr
9814 fi
9815
9816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9817 _ACEOF
9818
9819
9820 {
9821   echo "cat >conf$$subs.awk <<_ACEOF" &&
9822   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9823   echo "_ACEOF"
9824 } >conf$$subs.sh ||
9825   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9827 ac_delim='%!_!# '
9828 for ac_last_try in false false false false false :; do
9829   . ./conf$$subs.sh ||
9830     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9831
9832   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9833   if test $ac_delim_n = $ac_delim_num; then
9834     break
9835   elif $ac_last_try; then
9836     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9837   else
9838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9839   fi
9840 done
9841 rm -f conf$$subs.sh
9842
9843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9845 _ACEOF
9846 sed -n '
9847 h
9848 s/^/S["/; s/!.*/"]=/
9849 p
9850 g
9851 s/^[^!]*!//
9852 :repl
9853 t repl
9854 s/'"$ac_delim"'$//
9855 t delim
9856 :nl
9857 h
9858 s/\(.\{148\}\)..*/\1/
9859 t more1
9860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9861 p
9862 n
9863 b repl
9864 :more1
9865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9866 p
9867 g
9868 s/.\{148\}//
9869 t nl
9870 :delim
9871 h
9872 s/\(.\{148\}\)..*/\1/
9873 t more2
9874 s/["\\]/\\&/g; s/^/"/; s/$/"/
9875 p
9876 b
9877 :more2
9878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9879 p
9880 g
9881 s/.\{148\}//
9882 t delim
9883 ' <conf$$subs.awk | sed '
9884 /^[^""]/{
9885   N
9886   s/\n//
9887 }
9888 ' >>$CONFIG_STATUS || ac_write_fail=1
9889 rm -f conf$$subs.awk
9890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9891 _ACAWK
9892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9893   for (key in S) S_is_set[key] = 1
9894   FS = "\a"
9895
9896 }
9897 {
9898   line = $ 0
9899   nfields = split(line, field, "@")
9900   substed = 0
9901   len = length(field[1])
9902   for (i = 2; i < nfields; i++) {
9903     key = field[i]
9904     keylen = length(key)
9905     if (S_is_set[key]) {
9906       value = S[key]
9907       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9908       len += length(value) + length(field[++i])
9909       substed = 1
9910     } else
9911       len += 1 + keylen
9912   }
9913
9914   print line
9915 }
9916
9917 _ACAWK
9918 _ACEOF
9919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9921   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9922 else
9923   cat
9924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9925   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9926 _ACEOF
9927
9928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9930 # trailing colons and then remove the whole line if VPATH becomes empty
9931 # (actually we leave an empty line to preserve line numbers).
9932 if test "x$srcdir" = x.; then
9933   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9934 h
9935 s///
9936 s/^/:/
9937 s/[      ]*$/:/
9938 s/:\$(srcdir):/:/g
9939 s/:\${srcdir}:/:/g
9940 s/:@srcdir@:/:/g
9941 s/^:*//
9942 s/:*$//
9943 x
9944 s/\(=[   ]*\).*/\1/
9945 G
9946 s/\n//
9947 s/^[^=]*=[       ]*$//
9948 }'
9949 fi
9950
9951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9952 fi # test -n "$CONFIG_FILES"
9953
9954 # Set up the scripts for CONFIG_HEADERS section.
9955 # No need to generate them if there are no CONFIG_HEADERS.
9956 # This happens for instance with `./config.status Makefile'.
9957 if test -n "$CONFIG_HEADERS"; then
9958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9959 BEGIN {
9960 _ACEOF
9961
9962 # Transform confdefs.h into an awk script `defines.awk', embedded as
9963 # here-document in config.status, that substitutes the proper values into
9964 # config.h.in to produce config.h.
9965
9966 # Create a delimiter string that does not exist in confdefs.h, to ease
9967 # handling of long lines.
9968 ac_delim='%!_!# '
9969 for ac_last_try in false false :; do
9970   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9971   if test -z "$ac_tt"; then
9972     break
9973   elif $ac_last_try; then
9974     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9975   else
9976     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9977   fi
9978 done
9979
9980 # For the awk script, D is an array of macro values keyed by name,
9981 # likewise P contains macro parameters if any.  Preserve backslash
9982 # newline sequences.
9983
9984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9985 sed -n '
9986 s/.\{148\}/&'"$ac_delim"'/g
9987 t rset
9988 :rset
9989 s/^[     ]*#[    ]*define[       ][      ]*/ /
9990 t def
9991 d
9992 :def
9993 s/\\$//
9994 t bsnl
9995 s/["\\]/\\&/g
9996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9997 D["\1"]=" \3"/p
9998 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9999 d
10000 :bsnl
10001 s/["\\]/\\&/g
10002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10003 D["\1"]=" \3\\\\\\n"\\/p
10004 t cont
10005 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10006 t cont
10007 d
10008 :cont
10009 n
10010 s/.\{148\}/&'"$ac_delim"'/g
10011 t clear
10012 :clear
10013 s/\\$//
10014 t bsnlc
10015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10016 d
10017 :bsnlc
10018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10019 b cont
10020 ' <confdefs.h | sed '
10021 s/'"$ac_delim"'/"\\\
10022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10023
10024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10025   for (key in D) D_is_set[key] = 1
10026   FS = "\a"
10027 }
10028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10029   line = \$ 0
10030   split(line, arg, " ")
10031   if (arg[1] == "#") {
10032     defundef = arg[2]
10033     mac1 = arg[3]
10034   } else {
10035     defundef = substr(arg[1], 2)
10036     mac1 = arg[2]
10037   }
10038   split(mac1, mac2, "(") #)
10039   macro = mac2[1]
10040   prefix = substr(line, 1, index(line, defundef) - 1)
10041   if (D_is_set[macro]) {
10042     # Preserve the white space surrounding the "#".
10043     print prefix "define", macro P[macro] D[macro]
10044     next
10045   } else {
10046     # Replace #undef with comments.  This is necessary, for example,
10047     # in the case of _POSIX_SOURCE, which is predefined and required
10048     # on some systems where configure will not decide to define it.
10049     if (defundef == "undef") {
10050       print "/*", prefix defundef, macro, "*/"
10051       next
10052     }
10053   }
10054 }
10055 { print }
10056 _ACAWK
10057 _ACEOF
10058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10059   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10060 fi # test -n "$CONFIG_HEADERS"
10061
10062
10063 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10064 shift
10065 for ac_tag
10066 do
10067   case $ac_tag in
10068   :[FHLC]) ac_mode=$ac_tag; continue;;
10069   esac
10070   case $ac_mode$ac_tag in
10071   :[FHL]*:*);;
10072   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10073   :[FH]-) ac_tag=-:-;;
10074   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10075   esac
10076   ac_save_IFS=$IFS
10077   IFS=:
10078   set x $ac_tag
10079   IFS=$ac_save_IFS
10080   shift
10081   ac_file=$1
10082   shift
10083
10084   case $ac_mode in
10085   :L) ac_source=$1;;
10086   :[FH])
10087     ac_file_inputs=
10088     for ac_f
10089     do
10090       case $ac_f in
10091       -) ac_f="$ac_tmp/stdin";;
10092       *) # Look for the file first in the build tree, then in the source tree
10093          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10094          # because $ac_f cannot contain `:'.
10095          test -f "$ac_f" ||
10096            case $ac_f in
10097            [\\/$]*) false;;
10098            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10099            esac ||
10100            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10101       esac
10102       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10103       as_fn_append ac_file_inputs " '$ac_f'"
10104     done
10105
10106     # Let's still pretend it is `configure' which instantiates (i.e., don't
10107     # use $as_me), people would be surprised to read:
10108     #    /* config.h.  Generated by config.status.  */
10109     configure_input='Generated from '`
10110           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10111         `' by configure.'
10112     if test x"$ac_file" != x-; then
10113       configure_input="$ac_file.  $configure_input"
10114       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10115 $as_echo "$as_me: creating $ac_file" >&6;}
10116     fi
10117     # Neutralize special characters interpreted by sed in replacement strings.
10118     case $configure_input in #(
10119     *\&* | *\|* | *\\* )
10120        ac_sed_conf_input=`$as_echo "$configure_input" |
10121        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10122     *) ac_sed_conf_input=$configure_input;;
10123     esac
10124
10125     case $ac_tag in
10126     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10127       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10128     esac
10129     ;;
10130   esac
10131
10132   ac_dir=`$as_dirname -- "$ac_file" ||
10133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10134          X"$ac_file" : 'X\(//\)[^/]' \| \
10135          X"$ac_file" : 'X\(//\)$' \| \
10136          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10137 $as_echo X"$ac_file" |
10138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10139             s//\1/
10140             q
10141           }
10142           /^X\(\/\/\)[^/].*/{
10143             s//\1/
10144             q
10145           }
10146           /^X\(\/\/\)$/{
10147             s//\1/
10148             q
10149           }
10150           /^X\(\/\).*/{
10151             s//\1/
10152             q
10153           }
10154           s/.*/./; q'`
10155   as_dir="$ac_dir"; as_fn_mkdir_p
10156   ac_builddir=.
10157
10158 case "$ac_dir" in
10159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10160 *)
10161   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10162   # A ".." for each directory in $ac_dir_suffix.
10163   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10164   case $ac_top_builddir_sub in
10165   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10166   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10167   esac ;;
10168 esac
10169 ac_abs_top_builddir=$ac_pwd
10170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10171 # for backward compatibility:
10172 ac_top_builddir=$ac_top_build_prefix
10173
10174 case $srcdir in
10175   .)  # We are building in place.
10176     ac_srcdir=.
10177     ac_top_srcdir=$ac_top_builddir_sub
10178     ac_abs_top_srcdir=$ac_pwd ;;
10179   [\\/]* | ?:[\\/]* )  # Absolute name.
10180     ac_srcdir=$srcdir$ac_dir_suffix;
10181     ac_top_srcdir=$srcdir
10182     ac_abs_top_srcdir=$srcdir ;;
10183   *) # Relative name.
10184     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10185     ac_top_srcdir=$ac_top_build_prefix$srcdir
10186     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10187 esac
10188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10189
10190
10191   case $ac_mode in
10192   :F)
10193   #
10194   # CONFIG_FILE
10195   #
10196
10197 _ACEOF
10198
10199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10200 # If the template does not know about datarootdir, expand it.
10201 # FIXME: This hack should be removed a few years after 2.60.
10202 ac_datarootdir_hack=; ac_datarootdir_seen=
10203 ac_sed_dataroot='
10204 /datarootdir/ {
10205   p
10206   q
10207 }
10208 /@datadir@/p
10209 /@docdir@/p
10210 /@infodir@/p
10211 /@localedir@/p
10212 /@mandir@/p'
10213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10214 *datarootdir*) ac_datarootdir_seen=yes;;
10215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10218 _ACEOF
10219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10220   ac_datarootdir_hack='
10221   s&@datadir@&$datadir&g
10222   s&@docdir@&$docdir&g
10223   s&@infodir@&$infodir&g
10224   s&@localedir@&$localedir&g
10225   s&@mandir@&$mandir&g
10226   s&\\\${datarootdir}&$datarootdir&g' ;;
10227 esac
10228 _ACEOF
10229
10230 # Neutralize VPATH when `$srcdir' = `.'.
10231 # Shell code in configure.ac might set extrasub.
10232 # FIXME: do we really want to maintain this feature?
10233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10234 ac_sed_extra="$ac_vpsub
10235 $extrasub
10236 _ACEOF
10237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10238 :t
10239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10240 s|@configure_input@|$ac_sed_conf_input|;t t
10241 s&@top_builddir@&$ac_top_builddir_sub&;t t
10242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10243 s&@srcdir@&$ac_srcdir&;t t
10244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10245 s&@top_srcdir@&$ac_top_srcdir&;t t
10246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10247 s&@builddir@&$ac_builddir&;t t
10248 s&@abs_builddir@&$ac_abs_builddir&;t t
10249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10250 $ac_datarootdir_hack
10251 "
10252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10253   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10254
10255 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10256   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10257   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10258       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10260 which seems to be undefined.  Please make sure it is defined" >&5
10261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10262 which seems to be undefined.  Please make sure it is defined" >&2;}
10263
10264   rm -f "$ac_tmp/stdin"
10265   case $ac_file in
10266   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10267   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10268   esac \
10269   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10270  ;;
10271   :H)
10272   #
10273   # CONFIG_HEADER
10274   #
10275   if test x"$ac_file" != x-; then
10276     {
10277       $as_echo "/* $configure_input  */" \
10278       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10279     } >"$ac_tmp/config.h" \
10280       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10281     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10282       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10284     else
10285       rm -f "$ac_file"
10286       mv "$ac_tmp/config.h" "$ac_file" \
10287         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10288     fi
10289   else
10290     $as_echo "/* $configure_input  */" \
10291       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10292       || as_fn_error $? "could not create -" "$LINENO" 5
10293   fi
10294  ;;
10295
10296   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10297 $as_echo "$as_me: executing $ac_file commands" >&6;}
10298  ;;
10299   esac
10300
10301
10302   case $ac_file$ac_mode in
10303     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10304     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10305     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10306     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10307
10308   esac
10309 done # for ac_tag
10310
10311
10312 as_fn_exit 0
10313 _ACEOF
10314 ac_clean_files=$ac_clean_files_save
10315
10316 test $ac_write_fail = 0 ||
10317   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10318
10319
10320 # configure is writing to config.log, and then calls config.status.
10321 # config.status does its own redirection, appending to config.log.
10322 # Unfortunately, on DOS this fails, as config.log is still kept open
10323 # by configure, so config.status won't be able to write to it; its
10324 # output is simply discarded.  So we exec the FD to /dev/null,
10325 # effectively closing config.log, so it can be properly (re)opened and
10326 # appended to by config.status.  When coming back to configure, we
10327 # need to make the FD available again.
10328 if test "$no_create" != yes; then
10329   ac_cs_success=:
10330   ac_config_status_args=
10331   test "$silent" = yes &&
10332     ac_config_status_args="$ac_config_status_args --quiet"
10333   exec 5>/dev/null
10334   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10335   exec 5>>config.log
10336   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10337   # would make configure fail if this is the last instruction.
10338   $ac_cs_success || as_fn_exit 1
10339 fi
10340
10341 #
10342 # CONFIG_SUBDIRS section.
10343 #
10344 if test "$no_recursion" != yes; then
10345
10346   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10347   # so they do not pile up.
10348   ac_sub_configure_args=
10349   ac_prev=
10350   eval "set x $ac_configure_args"
10351   shift
10352   for ac_arg
10353   do
10354     if test -n "$ac_prev"; then
10355       ac_prev=
10356       continue
10357     fi
10358     case $ac_arg in
10359     -cache-file | --cache-file | --cache-fil | --cache-fi \
10360     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10361       ac_prev=cache_file ;;
10362     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10363     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10364     | --c=*)
10365       ;;
10366     --config-cache | -C)
10367       ;;
10368     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10369       ac_prev=srcdir ;;
10370     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10371       ;;
10372     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10373       ac_prev=prefix ;;
10374     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10375       ;;
10376     --disable-option-checking)
10377       ;;
10378     *)
10379       case $ac_arg in
10380       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10381       esac
10382       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10383     esac
10384   done
10385
10386   # Always prepend --prefix to ensure using the same prefix
10387   # in subdir configurations.
10388   ac_arg="--prefix=$prefix"
10389   case $ac_arg in
10390   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10391   esac
10392   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10393
10394   # Pass --silent
10395   if test "$silent" = yes; then
10396     ac_sub_configure_args="--silent $ac_sub_configure_args"
10397   fi
10398
10399   # Always prepend --disable-option-checking to silence warnings, since
10400   # different subdirs can have different --enable and --with options.
10401   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10402
10403   ac_popdir=`pwd`
10404   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10405
10406     # Do not complain, so a configure script can configure whichever
10407     # parts of a large source tree are present.
10408     test -d "$srcdir/$ac_dir" || continue
10409
10410     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10411     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10412     $as_echo "$ac_msg" >&6
10413     as_dir="$ac_dir"; as_fn_mkdir_p
10414     ac_builddir=.
10415
10416 case "$ac_dir" in
10417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10418 *)
10419   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10420   # A ".." for each directory in $ac_dir_suffix.
10421   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10422   case $ac_top_builddir_sub in
10423   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10424   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10425   esac ;;
10426 esac
10427 ac_abs_top_builddir=$ac_pwd
10428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10429 # for backward compatibility:
10430 ac_top_builddir=$ac_top_build_prefix
10431
10432 case $srcdir in
10433   .)  # We are building in place.
10434     ac_srcdir=.
10435     ac_top_srcdir=$ac_top_builddir_sub
10436     ac_abs_top_srcdir=$ac_pwd ;;
10437   [\\/]* | ?:[\\/]* )  # Absolute name.
10438     ac_srcdir=$srcdir$ac_dir_suffix;
10439     ac_top_srcdir=$srcdir
10440     ac_abs_top_srcdir=$srcdir ;;
10441   *) # Relative name.
10442     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10443     ac_top_srcdir=$ac_top_build_prefix$srcdir
10444     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10445 esac
10446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10447
10448
10449     cd "$ac_dir"
10450
10451     # Check for guested configure; otherwise get Cygnus style configure.
10452     if test -f "$ac_srcdir/configure.gnu"; then
10453       ac_sub_configure=$ac_srcdir/configure.gnu
10454     elif test -f "$ac_srcdir/configure"; then
10455       ac_sub_configure=$ac_srcdir/configure
10456     elif test -f "$ac_srcdir/configure.in"; then
10457       # This should be Cygnus configure.
10458       ac_sub_configure=$ac_aux_dir/configure
10459     else
10460       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10462       ac_sub_configure=
10463     fi
10464
10465     # The recursion is here.
10466     if test -n "$ac_sub_configure"; then
10467       # Make the cache file name correct relative to the subdirectory.
10468       case $cache_file in
10469       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10470       *) # Relative name.
10471         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10472       esac
10473
10474       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10475 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10476       # The eval makes quoting arguments work.
10477       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10478            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10479         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10480     fi
10481
10482     cd "$ac_popdir"
10483   done
10484 fi
10485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10488 fi
10489
10490