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