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