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