tls: update psk xlat call
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
587
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 REGEX_EXTENDED
636 REGEX_PCRE
637 REGEX
638 CRYPTLIB
639 LIBPREFIX
640 PCAP_LIBS
641 OPENSSL_LIBS
642 OPENSSL_INCLUDE
643 LIBREADLINE
644 DIRNAME
645 LOCATE
646 AUTOHEADER
647 AUTOCONF
648 ACLOCAL
649 RUSERS
650 SNMPWALK
651 SNMPGET
652 PERL
653 modconfdir
654 raddbdir
655 radacctdir
656 logdir
657 GIT
658 FR_MAKEFLAGS
659 MAKE
660 GMAKE
661 RANLIB
662 EGREP
663 GREP
664 CPP
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 target_os
676 target_vendor
677 target_cpu
678 target
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 RADIUSD_VERSION_STRING
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 enable_developer
730 enable_largefile
731 enable_strict_dependencies
732 enable_werror
733 with_docdir
734 with_logdir
735 with_radacctdir
736 with_raddbdir
737 with_ascend_binary
738 with_threads
739 with_tcp
740 with_vmps
741 with_dhcp
742 with_static_modules
743 with_modules
744 with_experimental_modules
745 with_openssl
746 with_openssl_includes
747 with_openssl_libraries
748 with_rlm_FOO_lib_dir
749 with_rlm_FOO_include_dir
750 with_udpfromto
751 with_talloc_include_dir
752 with_rlm_pcre_lib_dir
753 with_rlm_pcre_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-talloc-include-dir=DIR
1408                           Directory where the talloc includes may be found
1409   --with-pcre-lib-dir=DIR       directory for PCRE library files
1410   --with-pcre-include-dir=DIR   directory for PCRE include files
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 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6696 then
6697
6698 $as_echo "#define OSFC2 /**/" >>confdefs.h
6699
6700 fi
6701
6702 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6703 then
6704
6705 $as_echo "#define OSFSIA /**/" >>confdefs.h
6706
6707 fi
6708
6709 if test "x$WITH_OPENSSL" = xyes; then
6710   old_LIBS=$LIBS
6711   old_LDFLAGS="$LDFLAGS"
6712
6713   OPENSSL_INCLUDE="-DNO_OPENSSL"
6714   OPENSSL_LIBS=
6715   if test "x$OPENSSL_LIB_DIR" != "x"; then
6716     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6717   fi
6718
6719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6720 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6721 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lcrypto  $LIBS"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728
6729 /* Override any GCC internal prototype to avoid an error.
6730    Use char because int might match the return type of a GCC
6731    builtin and then its argument prototype would still apply.  */
6732 #ifdef __cplusplus
6733 extern "C"
6734 #endif
6735 char DH_new ();
6736 int
6737 main ()
6738 {
6739 return DH_new ();
6740   ;
6741   return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_link "$LINENO"; then :
6745   ac_cv_lib_crypto_DH_new=yes
6746 else
6747   ac_cv_lib_crypto_DH_new=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext \
6750     conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6752 fi
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6754 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6755 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6756
6757       LIBS="-lcrypto $LIBS"
6758
6759 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6760
6761       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6762 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6763 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lssl  $LIBS"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770
6771 /* Override any GCC internal prototype to avoid an error.
6772    Use char because int might match the return type of a GCC
6773    builtin and then its argument prototype would still apply.  */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 char SSL_new ();
6778 int
6779 main ()
6780 {
6781 return SSL_new ();
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787   ac_cv_lib_ssl_SSL_new=yes
6788 else
6789   ac_cv_lib_ssl_SSL_new=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext \
6792     conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6796 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6797 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6798
6799
6800 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6801
6802           if test "x$OPENSSL_LIB_DIR" != "x"; then
6803             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6804           fi
6805           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6806
6807 else
6808
6809           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6811 as_fn_error $? "failed linking to libssl
6812 See \`config.log' for more details" "$LINENO" 5; }
6813
6814
6815 fi
6816
6817
6818 fi
6819
6820
6821         old_CPPFLAGS=$CPPFLAGS
6822   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6823     CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6824   fi
6825
6826         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6827   for ac_header in \
6828     openssl/ssl.h \
6829     openssl/crypto.h \
6830     openssl/err.h \
6831     openssl/evp.h \
6832     openssl/md5.h \
6833     openssl/md4.h \
6834     openssl/sha.h \
6835     openssl/ocsp.h \
6836     openssl/engine.h
6837 do :
6838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6841   cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 _ACEOF
6844
6845 else
6846
6847       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6849 as_fn_error $? "failed locating OpenSSL headers
6850 See \`config.log' for more details" "$LINENO" 5; }
6851
6852
6853 fi
6854
6855 done
6856
6857
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6859 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862 #include <openssl/crypto.h>
6863      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6864      yes
6865      #endif
6866
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869   $EGREP "yes" >/dev/null 2>&1; then :
6870
6871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872 $as_echo "yes" >&6; }
6873
6874 else
6875
6876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6880 as_fn_error $? "OpenSSL version too old
6881 See \`config.log' for more details" "$LINENO" 5; }
6882
6883
6884 fi
6885 rm -f conftest*
6886
6887
6888   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6889     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6890   else
6891     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6892   fi
6893
6894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6895 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6896   if test "$cross_compiling" = yes; then :
6897   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6899 as_fn_error $? "cannot run test program while cross compiling
6900 See \`config.log' for more details" "$LINENO" 5; }
6901 else
6902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h.  */
6904
6905         #include <stdio.h>
6906         #include <openssl/opensslv.h>
6907         #include <openssl/crypto.h>
6908
6909 int
6910 main ()
6911 {
6912
6913         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6914           return 0;
6915         } else {
6916           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6917           return 1;
6918         }
6919
6920
6921   ;
6922   return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_run "$LINENO"; then :
6926
6927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6928 $as_echo "yes" >&6; }
6929
6930 else
6931
6932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 as_fn_error $? "OpenSSL library version does not match header version
6937 See \`config.log' for more details" "$LINENO" 5; }
6938
6939
6940 fi
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942   conftest.$ac_objext conftest.beam conftest.$ac_ext
6943 fi
6944
6945
6946   CPPFLAGS=$old_CPPFLAGS
6947   LIBS=$old_LIBS
6948   LDFLAGS="$old_LDFLAGS"
6949 fi
6950
6951
6952
6953 export OPENSSL_LIBS
6954
6955 if test "x$PCAP_LIBS" = x; then
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6957 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6958 else
6959   ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6960 if test "x$ac_cv_header_pcap_h" = xyes; then :
6961
6962
6963 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6964
6965
6966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6967 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6968 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   ac_check_lib_save_LIBS=$LIBS
6972 LIBS="-lpcap  $LIBS"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975
6976 /* Override any GCC internal prototype to avoid an error.
6977    Use char because int might match the return type of a GCC
6978    builtin and then its argument prototype would still apply.  */
6979 #ifdef __cplusplus
6980 extern "C"
6981 #endif
6982 char pcap_fopen_offline ();
6983 int
6984 main ()
6985 {
6986 return pcap_fopen_offline ();
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992   ac_cv_lib_pcap_pcap_fopen_offline=yes
6993 else
6994   ac_cv_lib_pcap_pcap_fopen_offline=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997     conftest$ac_exeext conftest.$ac_ext
6998 LIBS=$ac_check_lib_save_LIBS
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7001 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7002 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7003
7004
7005 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7006
7007
7008
7009 fi
7010
7011
7012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7013 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7014 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   ac_check_lib_save_LIBS=$LIBS
7018 LIBS="-lpcap  $LIBS"
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h.  */
7021
7022 /* Override any GCC internal prototype to avoid an error.
7023    Use char because int might match the return type of a GCC
7024    builtin and then its argument prototype would still apply.  */
7025 #ifdef __cplusplus
7026 extern "C"
7027 #endif
7028 char pcap_dump_fopen ();
7029 int
7030 main ()
7031 {
7032 return pcap_dump_fopen ();
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038   ac_cv_lib_pcap_pcap_dump_fopen=yes
7039 else
7040   ac_cv_lib_pcap_pcap_dump_fopen=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043     conftest$ac_exeext conftest.$ac_ext
7044 LIBS=$ac_check_lib_save_LIBS
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7047 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7048 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7049
7050
7051 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7052
7053
7054
7055 fi
7056
7057
7058 else
7059
7060       PCAP_LIBS=
7061       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7062 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7063
7064
7065 fi
7066
7067
7068 fi
7069
7070
7071
7072 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7073 if test "x$ac_cv_type_off_t" = xyes; then :
7074
7075 else
7076
7077 cat >>confdefs.h <<_ACEOF
7078 #define off_t long int
7079 _ACEOF
7080
7081 fi
7082
7083 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7084 if test "x$ac_cv_type_pid_t" = xyes; then :
7085
7086 else
7087
7088 cat >>confdefs.h <<_ACEOF
7089 #define pid_t int
7090 _ACEOF
7091
7092 fi
7093
7094 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7095 if test "x$ac_cv_type_size_t" = xyes; then :
7096
7097 else
7098
7099 cat >>confdefs.h <<_ACEOF
7100 #define size_t unsigned int
7101 _ACEOF
7102
7103 fi
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7106 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7107 if ${ac_cv_type_uid_t+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h.  */
7112 #include <sys/types.h>
7113
7114 _ACEOF
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116   $EGREP "uid_t" >/dev/null 2>&1; then :
7117   ac_cv_type_uid_t=yes
7118 else
7119   ac_cv_type_uid_t=no
7120 fi
7121 rm -f conftest*
7122
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7125 $as_echo "$ac_cv_type_uid_t" >&6; }
7126 if test $ac_cv_type_uid_t = no; then
7127
7128 $as_echo "#define uid_t int" >>confdefs.h
7129
7130
7131 $as_echo "#define gid_t int" >>confdefs.h
7132
7133 fi
7134
7135
7136
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7138 $as_echo_n "checking for socklen_t... " >&6; }
7139 if ${ac_cv_type_socklen_t+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142    ac_cv_type_socklen_t=no
7143       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145 #ifdef HAVE_SYS_TYPES_H
7146     #  include <sys/types.h>
7147     #endif
7148
7149     #ifdef HAVE_SYS_SOCKET_H
7150     #  include <sys/socket.h>
7151     #endif
7152
7153 int
7154 main ()
7155 {
7156 socklen_t foo
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162   ac_cv_type_socklen_t=yes
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165
7166
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7169 $as_echo "$ac_cv_type_socklen_t" >&6; }
7170
7171   if test "$ac_cv_type_socklen_t" != "yes"; then
7172
7173 $as_echo "#define socklen_t int" >>confdefs.h
7174
7175   fi
7176
7177
7178
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7180 $as_echo_n "checking for uint8_t... " >&6; }
7181 if ${ac_cv_type_uint8_t+:} false; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184    ac_cv_type_uint8_t=no
7185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h.  */
7187 #ifdef HAVE_INTTYPES_H
7188     #  include <inttypes.h>
7189     #endif
7190
7191     #ifdef HAVE_STDINT_H
7192     #  include <stdint.h>
7193     #endif
7194
7195 int
7196 main ()
7197 {
7198 uint8_t foo
7199   ;
7200   return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204   ac_cv_type_uint8_t=yes
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7211 $as_echo "$ac_cv_type_uint8_t" >&6; }
7212
7213   if test "$ac_cv_type_uint8_t" != "yes"; then
7214
7215 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7216
7217   fi
7218
7219
7220
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7222 $as_echo_n "checking for uint16_t... " >&6; }
7223 if ${ac_cv_type_uint16_t+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226    ac_cv_type_uint16_t=no
7227       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h.  */
7229 #ifdef HAVE_INTTYPES_H
7230     #  include <inttypes.h>
7231     #endif
7232
7233     #ifdef HAVE_STDINT_H
7234     #  include <stdint.h>
7235     #endif
7236
7237 int
7238 main ()
7239 {
7240 uint16_t foo
7241   ;
7242   return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246   ac_cv_type_uint16_t=yes
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249
7250
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7253 $as_echo "$ac_cv_type_uint16_t" >&6; }
7254
7255   if test "$ac_cv_type_uint16_t" != "yes"; then
7256
7257 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7258
7259   fi
7260
7261
7262
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7264 $as_echo_n "checking for uint32_t... " >&6; }
7265 if ${ac_cv_type_uint32_t+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268    ac_cv_type_uint32_t=no
7269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h.  */
7271 #ifdef HAVE_INTTYPES_H
7272     #  include <inttypes.h>
7273     #endif
7274
7275     #ifdef HAVE_STDINT_H
7276     #  include <stdint.h>
7277     #endif
7278
7279 int
7280 main ()
7281 {
7282 uint32_t foo
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288   ac_cv_type_uint32_t=yes
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291
7292
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7295 $as_echo "$ac_cv_type_uint32_t" >&6; }
7296
7297   if test "$ac_cv_type_uint32_t" != "yes"; then
7298
7299 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7300
7301   fi
7302
7303
7304 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7305     #ifdef HAVE_NETINET_IN_H
7306     #  include <netinet/in.h>
7307     #endif
7308
7309
7310 "
7311 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7312
7313 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7314
7315 fi
7316
7317
7318 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7319     #ifdef HAVE_NETINET_IN_H
7320     #  include <netinet/in.h>
7321     #endif
7322
7323     #ifdef HAVE_SYS_SOCKET_H
7324     #  include <sys/socket.h>
7325     #endif
7326
7327 "
7328 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7329
7330 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7331
7332 fi
7333
7334
7335 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7336     #ifdef HAVE_NETINET_IN_H
7337     #  include <netinet/in.h>
7338     #endif
7339
7340 "
7341 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7342
7343 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7344
7345 fi
7346
7347
7348 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7349     #ifdef HAVE_SYS_TYPES_H
7350     #  include <sys/types.h>
7351     #endif
7352
7353     #ifdef HAVE_SYS_SOCKET_H
7354     #  include <sys/socket.h>
7355     #endif
7356
7357     #ifdef HAVE_NETDB_H
7358     #  include <netdb.h>
7359     #endif
7360
7361
7362 "
7363 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7364
7365 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7366
7367 fi
7368
7369
7370 for ac_func in \
7371   getopt_long \
7372   fcntl \
7373   strsignal \
7374   sigaction \
7375   sigprocmask \
7376   pthread_sigmask \
7377   snprintf \
7378   vsnprintf \
7379   setsid \
7380   strncasecmp \
7381   strcasecmp \
7382   localtime_r \
7383   ctime_r \
7384   gmtime_r \
7385   strsep \
7386   inet_aton \
7387   inet_pton \
7388   inet_ntop \
7389   setlinebuf \
7390   setvbuf \
7391   getusershell \
7392   initgroups \
7393   getaddrinfo \
7394   getnameinfo \
7395   closefrom \
7396   gettimeofday \
7397   getpeereid \
7398   setuid \
7399   setresuid \
7400   getresuid \
7401   strlcat \
7402   strlcpy
7403
7404 do :
7405   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7408   cat >>confdefs.h <<_ACEOF
7409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7410 _ACEOF
7411
7412 fi
7413 done
7414
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7417 $as_echo_n "checking return type of signal handlers... " >&6; }
7418 if ${ac_cv_type_signal+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423 #include <sys/types.h>
7424 #include <signal.h>
7425
7426 int
7427 main ()
7428 {
7429 return *(signal (0, 0)) (0) == 1;
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   ac_cv_type_signal=int
7436 else
7437   ac_cv_type_signal=void
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7442 $as_echo "$ac_cv_type_signal" >&6; }
7443
7444 cat >>confdefs.h <<_ACEOF
7445 #define RETSIGTYPE $ac_cv_type_signal
7446 _ACEOF
7447
7448
7449
7450 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7451
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7453 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7454
7455
7456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458
7459 #include <utmpx.h>
7460 #ifdef HAVE_STDDEF_H
7461 #include <stddef.h>
7462 #endif
7463 #ifndef offsetof
7464 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7465 #endif
7466
7467 int
7468 main ()
7469 {
7470  int foo = offsetof(struct utmpx, ut_xtime)
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476   has_element=" "
7477 else
7478   has_element=
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481
7482   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7483   if test "x$has_element" != "x"; then
7484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7486     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7487   else
7488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7491  fi
7492
7493  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7494
7495 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7496
7497  fi
7498 fi
7499
7500
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7502 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7503
7504
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507
7508 #include <netinet/in.h>
7509 #ifdef HAVE_STDDEF_H
7510 #include <stddef.h>
7511 #endif
7512 #ifndef offsetof
7513 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7514 #endif
7515
7516 int
7517 main ()
7518 {
7519  int foo = offsetof(struct in_pktinfo, ipi_addr)
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525   has_element=" "
7526 else
7527   has_element=
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530
7531   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7532   if test "x$has_element" != "x"; then
7533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7536   else
7537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7540  fi
7541
7542 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7543
7544 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7545
7546 fi
7547
7548
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7550 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7551
7552
7553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 #include <netinet/in.h>
7557 #ifdef HAVE_STDDEF_H
7558 #include <stddef.h>
7559 #endif
7560 #ifndef offsetof
7561 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7562 #endif
7563
7564 int
7565 main ()
7566 {
7567  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573   has_element=" "
7574 else
7575   has_element=
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578
7579   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7580   if test "x$has_element" != "x"; then
7581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582 $as_echo "yes" >&6; }
7583     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7584   else
7585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7588  fi
7589
7590 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7591
7592 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7593
7594 fi
7595
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7598 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7599 if ${ac_cv_c_const+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604
7605 int
7606 main ()
7607 {
7608
7609 #ifndef __cplusplus
7610   /* Ultrix mips cc rejects this sort of thing.  */
7611   typedef int charset[2];
7612   const charset cs = { 0, 0 };
7613   /* SunOS 4.1.1 cc rejects this.  */
7614   char const *const *pcpcc;
7615   char **ppc;
7616   /* NEC SVR4.0.2 mips cc rejects this.  */
7617   struct point {int x, y;};
7618   static struct point const zero = {0,0};
7619   /* AIX XL C 1.02.0.0 rejects this.
7620      It does not let you subtract one const X* pointer from another in
7621      an arm of an if-expression whose if-part is not a constant
7622      expression */
7623   const char *g = "string";
7624   pcpcc = &g + (g ? g-g : 0);
7625   /* HPUX 7.0 cc rejects these. */
7626   ++pcpcc;
7627   ppc = (char**) pcpcc;
7628   pcpcc = (char const *const *) ppc;
7629   { /* SCO 3.2v4 cc rejects this sort of thing.  */
7630     char tx;
7631     char *t = &tx;
7632     char const *s = 0 ? (char *) 0 : (char const *) 0;
7633
7634     *t++ = 0;
7635     if (s) return 0;
7636   }
7637   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7638     int x[] = {25, 17};
7639     const int *foo = &x[0];
7640     ++foo;
7641   }
7642   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7643     typedef const int *iptr;
7644     iptr p = 0;
7645     ++p;
7646   }
7647   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7648        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7649     struct s { int j; const int *ap[3]; } bx;
7650     struct s *b = &bx; b->j = 5;
7651   }
7652   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7653     const int foo = 10;
7654     if (!foo) return 0;
7655   }
7656   return !cs[0] && !zero.x;
7657 #endif
7658
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_compile "$LINENO"; then :
7664   ac_cv_c_const=yes
7665 else
7666   ac_cv_c_const=no
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7671 $as_echo "$ac_cv_c_const" >&6; }
7672 if test $ac_cv_c_const = no; then
7673
7674 $as_echo "#define const /**/" >>confdefs.h
7675
7676 fi
7677
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7680 $as_echo_n "checking type of OS... " >&6; }
7681 OS=`uname -s`
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7683 $as_echo "$OS" >&6; }
7684 if test "$OS" = "OS/2"; then
7685   LIBPREFIX=
7686 else
7687   LIBPREFIX=lib
7688 fi
7689
7690
7691 if test "x$developer" = "xyes"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7693 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7694
7695
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7697 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7698 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701
7702
7703     CFLAGS_SAVED=$CFLAGS
7704     CFLAGS="$CFLAGS -Werror -Wdocumentation"
7705
7706     ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714
7715 int
7716 main ()
7717 {
7718 return 0;
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724   ax_cv_cc_wdocumentation_flag="yes"
7725 else
7726   ax_cv_cc_wdocumentation_flag="no"
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729     ac_ext=c
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734
7735
7736     CFLAGS="$CFLAGS_SAVED"
7737
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7740 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7741
7742   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7743     devflags="-Wdocumentation"
7744   fi
7745
7746   if test "x$GCC" = "xyes"; then
7747     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"
7748     INSTALLSTRIP=""
7749   fi
7750
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7752 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7753
7754   CFLAGS="$CFLAGS $devflags"
7755         if test "x$EXPERIMENTAL" != "xno"; then
7756     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7757 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7758     EXPERIMENTAL=yes
7759   fi
7760 else
7761   devflags=""
7762   CFLAGS="$CFLAGS -DNDEBUG"
7763   INSTALLSTRIP=""
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7765 $as_echo "no." >&6; }
7766 fi
7767
7768 export EXPERIMENTAL
7769
7770 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7771   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7772
7773 cat >>confdefs.h <<_ACEOF
7774 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7775 _ACEOF
7776
7777 fi
7778
7779
7780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7781 $as_echo_n "checking for TLS... " >&6; }
7782     if test "$cross_compiling" = yes; then :
7783   have_tls=no
7784 else
7785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7788 _ACEOF
7789 if ac_fn_c_try_run "$LINENO"; then :
7790   have_tls=yes
7791 else
7792   have_tls=no
7793 fi
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7795   conftest.$ac_objext conftest.beam conftest.$ac_ext
7796 fi
7797
7798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7799 $as_echo "$have_tls" >&6; }
7800     if test "$have_tls" = "yes"; then
7801
7802 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7803
7804     fi
7805
7806
7807
7808 talloc_include_dir=
7809
7810 # Check whether --with-talloc-include-dir was given.
7811 if test "${with_talloc_include_dir+set}" = set; then :
7812   withval=$with_talloc_include_dir; case "$withval" in
7813     no)
7814       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7815       ;;
7816     yes)
7817       ;;
7818     *)
7819       talloc_include_dir="$withval"
7820       ;;
7821   esac
7822 fi
7823
7824
7825 smart_try_dir="$talloc_include_dir"
7826
7827
7828 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7829 old_CFLAGS="$CFLAGS"
7830 smart_include=
7831 smart_include_dir=
7832
7833 if test "x$smart_try_dir" != "x"; then
7834   for try in $smart_try_dir; do
7835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7836 $as_echo_n "checking for talloc.h in $try... " >&6; }
7837     CFLAGS="$old_CFLAGS -isystem $try"
7838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h.  */
7840
7841                     #include <talloc.h>
7842 int
7843 main ()
7844 {
7845 int a = 1;
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851
7852                      smart_include="-isystem $try"
7853                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7854 $as_echo "yes" >&6; }
7855                      break
7856
7857 else
7858
7859                      smart_include=
7860                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865   done
7866   CFLAGS="$old_CFLAGS"
7867 fi
7868
7869 if test "x$smart_include" = "x"; then
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7871 $as_echo_n "checking for talloc.h... " >&6; }
7872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h.  */
7874
7875                   #include <talloc.h>
7876 int
7877 main ()
7878 {
7879 int a = 1;
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885
7886                    smart_include=
7887                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7888 $as_echo "yes" >&6; }
7889                    break
7890
7891 else
7892
7893                    smart_include=
7894                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 fi
7900
7901 if test "x$smart_include" = "x"; then
7902
7903
7904 if test "x$LOCATE" != "x"; then
7905         DIRS=
7906   file=talloc.h
7907
7908   for x in `${LOCATE} $file 2>/dev/null`; do
7909                                         base=`echo $x | sed "s%/${file}%%"`
7910     if test "x$x" = "x$base"; then
7911       continue;
7912     fi
7913
7914     dir=`${DIRNAME} $x 2>/dev/null`
7915                 exclude=`echo ${dir} | ${GREP} /home`
7916     if test "x$exclude" != "x"; then
7917       continue
7918     fi
7919
7920                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7921     if test "x$already" = "x"; then
7922       DIRS="$DIRS $dir"
7923     fi
7924   done
7925 fi
7926
7927 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7928
7929   for try in $smart_include_dir /usr/local/include /opt/include; do
7930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7931 $as_echo_n "checking for talloc.h in $try... " >&6; }
7932     CFLAGS="$old_CFLAGS -isystem $try"
7933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h.  */
7935
7936                     #include <talloc.h>
7937 int
7938 main ()
7939 {
7940 int a = 1;
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946
7947                      smart_include="-isystem $try"
7948                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7950                      break
7951
7952 else
7953
7954                      smart_include=
7955                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960   done
7961   CFLAGS="$old_CFLAGS"
7962 fi
7963
7964 if test "x$smart_include" != "x"; then
7965   eval "ac_cv_header_$ac_safe=yes"
7966   CFLAGS="$old_CFLAGS $smart_include"
7967   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7968 fi
7969
7970 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7972 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7973   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7974 else
7975   INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7976   LIBS="-ltalloc ${LIBS}"
7977 fi
7978
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7980 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7981 if ${ac_cv_lib_crypt_crypt+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   ac_check_lib_save_LIBS=$LIBS
7985 LIBS="-lcrypt  $LIBS"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h.  */
7988
7989 /* Override any GCC internal prototype to avoid an error.
7990    Use char because int might match the return type of a GCC
7991    builtin and then its argument prototype would still apply.  */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 char crypt ();
7996 int
7997 main ()
7998 {
7999 return crypt ();
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"; then :
8005   ac_cv_lib_crypt_crypt=yes
8006 else
8007   ac_cv_lib_crypt_crypt=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext \
8010     conftest$ac_exeext conftest.$ac_ext
8011 LIBS=$ac_check_lib_save_LIBS
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8014 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8015 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8016   CRYPTLIB="-lcrypt"
8017
8018 fi
8019
8020
8021 if test "$CRYPTLIB" != ""; then
8022
8023 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8024
8025 else
8026   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8027 if test "x$ac_cv_func_crypt" = xyes; then :
8028
8029 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8030
8031 fi
8032
8033 fi
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8036 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8037 if ${ac_cv_lib_cipher_setkey+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   ac_check_lib_save_LIBS=$LIBS
8041 LIBS="-lcipher  $LIBS"
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044
8045 /* Override any GCC internal prototype to avoid an error.
8046    Use char because int might match the return type of a GCC
8047    builtin and then its argument prototype would still apply.  */
8048 #ifdef __cplusplus
8049 extern "C"
8050 #endif
8051 char setkey ();
8052 int
8053 main ()
8054 {
8055 return setkey ();
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"; then :
8061   ac_cv_lib_cipher_setkey=yes
8062 else
8063   ac_cv_lib_cipher_setkey=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext \
8066     conftest$ac_exeext conftest.$ac_ext
8067 LIBS=$ac_check_lib_save_LIBS
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8070 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8071 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8072   CRYPTLIB="${CRYPTLIB} -lcipher"
8073
8074 fi
8075
8076
8077
8078
8079 pcre_lib_dir=
8080
8081 # Check whether --with-rlm-pcre-lib-dir was given.
8082 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8083   withval=$with_rlm_pcre_lib_dir;  case "$withval" in
8084     no)
8085         as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8086         ;;
8087     yes)
8088         ;;
8089     *)
8090         pcre_lib_dir="$withval"
8091         ;;
8092   esac
8093
8094 fi
8095
8096
8097 pcre_include_dir=
8098
8099 # Check whether --with-rlm-pcre-include-dir was given.
8100 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8101   withval=$with_rlm_pcre_include_dir;  case "$withval" in
8102     no)
8103         as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8104         ;;
8105     yes)
8106         ;;
8107     *)
8108         pcre_include_dir="$withval"
8109         ;;
8110   esac
8111
8112 fi
8113
8114
8115 REGEX=no
8116 REGEX_EXTENDED=no
8117 REGEX_PCRE=no
8118
8119 smart_try_dir=$pcre_include_dir
8120
8121
8122 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8123 old_CFLAGS="$CFLAGS"
8124 smart_include=
8125 smart_include_dir=
8126
8127 if test "x$smart_try_dir" != "x"; then
8128   for try in $smart_try_dir; do
8129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8130 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8131     CFLAGS="$old_CFLAGS -isystem $try"
8132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h.  */
8134
8135                     #include <pcreposix.h>
8136 int
8137 main ()
8138 {
8139 int a = 1;
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"; then :
8145
8146                      smart_include="-isystem $try"
8147                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8148 $as_echo "yes" >&6; }
8149                      break
8150
8151 else
8152
8153                      smart_include=
8154                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156
8157 fi
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159   done
8160   CFLAGS="$old_CFLAGS"
8161 fi
8162
8163 if test "x$smart_include" = "x"; then
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8165 $as_echo_n "checking for pcreposix.h... " >&6; }
8166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h.  */
8168
8169                   #include <pcreposix.h>
8170 int
8171 main ()
8172 {
8173 int a = 1;
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179
8180                    smart_include=
8181                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182 $as_echo "yes" >&6; }
8183                    break
8184
8185 else
8186
8187                    smart_include=
8188                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194
8195 if test "x$smart_include" = "x"; then
8196
8197
8198 if test "x$LOCATE" != "x"; then
8199         DIRS=
8200   file=pcreposix.h
8201
8202   for x in `${LOCATE} $file 2>/dev/null`; do
8203                                         base=`echo $x | sed "s%/${file}%%"`
8204     if test "x$x" = "x$base"; then
8205       continue;
8206     fi
8207
8208     dir=`${DIRNAME} $x 2>/dev/null`
8209                 exclude=`echo ${dir} | ${GREP} /home`
8210     if test "x$exclude" != "x"; then
8211       continue
8212     fi
8213
8214                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8215     if test "x$already" = "x"; then
8216       DIRS="$DIRS $dir"
8217     fi
8218   done
8219 fi
8220
8221 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8222
8223   for try in $smart_include_dir /usr/local/include /opt/include; do
8224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8225 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8226     CFLAGS="$old_CFLAGS -isystem $try"
8227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229
8230                     #include <pcreposix.h>
8231 int
8232 main ()
8233 {
8234 int a = 1;
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240
8241                      smart_include="-isystem $try"
8242                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8243 $as_echo "yes" >&6; }
8244                      break
8245
8246 else
8247
8248                      smart_include=
8249                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254   done
8255   CFLAGS="$old_CFLAGS"
8256 fi
8257
8258 if test "x$smart_include" != "x"; then
8259   eval "ac_cv_header_$ac_safe=yes"
8260   CFLAGS="$old_CFLAGS $smart_include"
8261   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8262 fi
8263
8264 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8265
8266 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8267
8268
8269 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8270
8271   REGEX=yes
8272   REGEX_EXTENDED=yes
8273   REGEX_PCRE=yes
8274   LIBS="-lpcre -lpcreposix $LIBS"
8275
8276 else
8277   smart_try_dir=
8278
8279
8280 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8281 old_CFLAGS="$CFLAGS"
8282 smart_include=
8283 smart_include_dir=
8284
8285 if test "x$smart_try_dir" != "x"; then
8286   for try in $smart_try_dir; do
8287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8288 $as_echo_n "checking for regex.h in $try... " >&6; }
8289     CFLAGS="$old_CFLAGS -isystem $try"
8290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h.  */
8292
8293                     #include <regex.h>
8294 int
8295 main ()
8296 {
8297 int a = 1;
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303
8304                      smart_include="-isystem $try"
8305                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8306 $as_echo "yes" >&6; }
8307                      break
8308
8309 else
8310
8311                      smart_include=
8312                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314
8315 fi
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317   done
8318   CFLAGS="$old_CFLAGS"
8319 fi
8320
8321 if test "x$smart_include" = "x"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8323 $as_echo_n "checking for regex.h... " >&6; }
8324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h.  */
8326
8327                   #include <regex.h>
8328 int
8329 main ()
8330 {
8331 int a = 1;
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337
8338                    smart_include=
8339                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340 $as_echo "yes" >&6; }
8341                    break
8342
8343 else
8344
8345                    smart_include=
8346                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352
8353 if test "x$smart_include" = "x"; then
8354
8355
8356 if test "x$LOCATE" != "x"; then
8357         DIRS=
8358   file=regex.h
8359
8360   for x in `${LOCATE} $file 2>/dev/null`; do
8361                                         base=`echo $x | sed "s%/${file}%%"`
8362     if test "x$x" = "x$base"; then
8363       continue;
8364     fi
8365
8366     dir=`${DIRNAME} $x 2>/dev/null`
8367                 exclude=`echo ${dir} | ${GREP} /home`
8368     if test "x$exclude" != "x"; then
8369       continue
8370     fi
8371
8372                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8373     if test "x$already" = "x"; then
8374       DIRS="$DIRS $dir"
8375     fi
8376   done
8377 fi
8378
8379 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8380
8381   for try in $smart_include_dir /usr/local/include /opt/include; do
8382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8383 $as_echo_n "checking for regex.h in $try... " >&6; }
8384     CFLAGS="$old_CFLAGS -isystem $try"
8385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387
8388                     #include <regex.h>
8389 int
8390 main ()
8391 {
8392 int a = 1;
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"; then :
8398
8399                      smart_include="-isystem $try"
8400                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8401 $as_echo "yes" >&6; }
8402                      break
8403
8404 else
8405
8406                      smart_include=
8407                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412   done
8413   CFLAGS="$old_CFLAGS"
8414 fi
8415
8416 if test "x$smart_include" != "x"; then
8417   eval "ac_cv_header_$ac_safe=yes"
8418   CFLAGS="$old_CFLAGS $smart_include"
8419   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8420 fi
8421
8422   if test "x$ac_cv_header_regex_h" = "xyes"; then
8423
8424 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8425
8426     REGEX=yes
8427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h.  */
8429
8430         #include <regex.h>
8431         #ifdef REG_EXTENDED
8432         yes
8433         #endif
8434
8435 _ACEOF
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437   $EGREP "yes" >/dev/null 2>&1; then :
8438
8439 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
8440  REGEX_EXTENDED=yes
8441
8442 fi
8443 rm -f conftest*
8444
8445     LIBS="$LIBS -lregex"
8446   fi
8447 fi
8448
8449
8450
8451
8452
8453
8454 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8455
8456
8457
8458 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8459
8460
8461
8462 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8463
8464
8465 gethostbyaddrrstyle=""
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8467 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8468 case "$host" in
8469   *-freebsd*)
8470                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8471         #ifdef HAVE_NETDB_H
8472         #include <netdb.h>
8473         #endif
8474
8475 "
8476 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8477   ac_have_decl=1
8478 else
8479   ac_have_decl=0
8480 fi
8481
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8484 _ACEOF
8485 if test $ac_have_decl = 1; then :
8486
8487 else
8488
8489
8490 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8491
8492         gethostbyaddrrstyle=BSD
8493         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8494 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8495
8496 fi
8497
8498     ;;
8499 esac
8500
8501 if test "x$gethostbyaddrrstyle" = "x"; then
8502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h.  */
8504
8505       #include <stdio.h>
8506       #include <netdb.h>
8507
8508 int
8509 main ()
8510 {
8511  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517
8518
8519 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8520
8521       gethostbyaddrrstyle=GNU
8522
8523
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526     conftest$ac_exeext conftest.$ac_ext
8527 fi
8528
8529 if test "x$gethostbyaddrrstyle" = "x"; then
8530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h.  */
8532
8533       #include <stdio.h>
8534       #include <netdb.h>
8535
8536 int
8537 main ()
8538 {
8539  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545
8546
8547 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8548
8549       gethostbyaddrrstyle=SYSV
8550
8551
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext \
8554     conftest$ac_exeext conftest.$ac_ext
8555 fi
8556
8557
8558 if test "x$gethostbyaddrrstyle" = "x"; then
8559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h.  */
8561
8562       #include <stdio.h>
8563       #include <netdb.h>
8564
8565 int
8566 main ()
8567 {
8568  gethostbyaddr(NULL, 0, 0)
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574
8575
8576 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8577
8578       gethostbyaddrrstyle=BSD
8579
8580
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584 fi
8585
8586 if test "x$gethostbyaddrrstyle" = "x"; then
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8588 $as_echo "none!  It must not exist, here." >&6; }
8589 else
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8591 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8592 fi
8593
8594 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8596 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8597 fi
8598
8599 gethostbynamerstyle=""
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8601 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604
8605     #include <stdio.h>
8606     #include <netdb.h>
8607
8608 int
8609 main ()
8610 {
8611  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8612   ;
8613   return 0;
8614 }
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617
8618
8619 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8620
8621     gethostbynamerstyle=GNU
8622
8623
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext \
8626     conftest$ac_exeext conftest.$ac_ext
8627
8628 if test "x$gethostbynamerstyle" = "x"; then
8629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631
8632       #include <stdio.h>
8633       #include <netdb.h>
8634
8635 int
8636 main ()
8637 {
8638  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_c_try_link "$LINENO"; then :
8644
8645
8646 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8647
8648       gethostbynamerstyle=SYSV
8649
8650
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653     conftest$ac_exeext conftest.$ac_ext
8654 fi
8655
8656 if test "x$gethostbynamerstyle" = "x"; then
8657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h.  */
8659
8660       #include <stdio.h>
8661       #include <netdb.h>
8662
8663 int
8664 main ()
8665 {
8666  gethostbyname(NULL)
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8672
8673
8674 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8675
8676       gethostbynamerstyle=BSD
8677
8678
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext \
8681     conftest$ac_exeext conftest.$ac_ext
8682 fi
8683
8684 if test "x$gethostbynamerstyle" = "x"; then
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8686 $as_echo "none!  It must not exist, here." >&6; }
8687 else
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8689 $as_echo "${gethostbynamerstyle}-style" >&6; }
8690 fi
8691
8692 if test "x$gethostbynamerstyle" = "xBSD"; then
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8694 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8695 fi
8696
8697
8698 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8699
8700
8701 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8702
8703 ctimerstyle=""
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8705 $as_echo_n "checking ctime_r() syntax... " >&6; }
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h.  */
8708
8709     #include <time.h>
8710
8711 int
8712 main ()
8713 {
8714  ctime_r(NULL, NULL, 0)
8715   ;
8716   return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"; then :
8720
8721
8722 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8723
8724     ctimerstyle="SOLARIS"
8725
8726
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext \
8729     conftest$ac_exeext conftest.$ac_ext
8730
8731 if test "x$ctimerstyle" = "x"; then
8732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h.  */
8734
8735       #include <time.h>
8736
8737 int
8738 main ()
8739 {
8740  ctime_r(NULL, NULL)
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"; then :
8746
8747
8748 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8749
8750       ctimerstyle="POSIX"
8751
8752
8753 fi
8754 rm -f core conftest.err conftest.$ac_objext \
8755     conftest$ac_exeext conftest.$ac_ext
8756 fi
8757
8758 if test "x$ctimerstyle" = "x"; then
8759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
8760 $as_echo "none!  It must not exist, here." >&6; }
8761 else
8762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8763 $as_echo "${ctimerstyle}-style" >&6; }
8764 fi
8765
8766 HOSTINFO=$host
8767
8768
8769
8770 top_builddir=`pwd`
8771 export top_builddir
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8773 $as_echo "top_builddir=$top_builddir" >&6; }
8774
8775
8776
8777
8778 if test "x$EXPERIMENTAL" = "xyes"; then
8779   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8780     MODULES="$MODULES $foo"
8781   done
8782 else
8783             for foo in `cat "${srcdir}"/src/modules/stable`; do
8784       MODULES="$MODULES $foo"
8785    done
8786 fi
8787
8788 mysubdirs=""
8789 for bar in $MODULES; do
8790   if test -f "${srcdir}"/src/modules/$bar/configure; then
8791     mysubdirs="$mysubdirs src/modules/$bar"
8792   fi
8793 done
8794
8795
8796
8797 subdirs="$subdirs $mysubdirs"
8798
8799
8800
8801 if test "x$werror" == "xyes"; then
8802   CFLAGS="-Werror $CFLAGS"
8803 fi
8804
8805 ac_config_commands="$ac_config_commands stamp-h"
8806
8807 ac_config_commands="$ac_config_commands build-radpaths-h"
8808
8809 ac_config_commands="$ac_config_commands main-chmod"
8810
8811 ac_config_commands="$ac_config_commands scripts-chmod"
8812
8813
8814
8815
8816
8817 USE_SHARED_LIBS=$enable_shared
8818
8819 USE_STATIC_LIBS=$enable_static
8820
8821
8822
8823
8824   unset ac_cv_env_LIBS_set
8825   unset ac_cv_env_LIBS_value
8826
8827   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"
8828
8829 cat >confcache <<\_ACEOF
8830 # This file is a shell script that caches the results of configure
8831 # tests run on this system so they can be shared between configure
8832 # scripts and configure runs, see configure's option --config-cache.
8833 # It is not useful on other systems.  If it contains results you don't
8834 # want to keep, you may remove or edit it.
8835 #
8836 # config.status only pays attention to the cache file if you give it
8837 # the --recheck option to rerun configure.
8838 #
8839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8841 # following values.
8842
8843 _ACEOF
8844
8845 # The following way of writing the cache mishandles newlines in values,
8846 # but we know of no workaround that is simple, portable, and efficient.
8847 # So, we kill variables containing newlines.
8848 # Ultrix sh set writes to stderr and can't be redirected directly,
8849 # and sets the high bit in the cache file unless we assign to the vars.
8850 (
8851   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8852     eval ac_val=\$$ac_var
8853     case $ac_val in #(
8854     *${as_nl}*)
8855       case $ac_var in #(
8856       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8857 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8858       esac
8859       case $ac_var in #(
8860       _ | IFS | as_nl) ;; #(
8861       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8862       *) { eval $ac_var=; unset $ac_var;} ;;
8863       esac ;;
8864     esac
8865   done
8866
8867   (set) 2>&1 |
8868     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8869     *${as_nl}ac_space=\ *)
8870       # `set' does not quote correctly, so add quotes: double-quote
8871       # substitution turns \\\\ into \\, and sed turns \\ into \.
8872       sed -n \
8873         "s/'/'\\\\''/g;
8874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8875       ;; #(
8876     *)
8877       # `set' quotes correctly as required by POSIX, so do not add quotes.
8878       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8879       ;;
8880     esac |
8881     sort
8882 ) |
8883   sed '
8884      /^ac_cv_env_/b end
8885      t clear
8886      :clear
8887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8888      t end
8889      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8890      :end' >>confcache
8891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8892   if test -w "$cache_file"; then
8893     if test "x$cache_file" != "x/dev/null"; then
8894       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8895 $as_echo "$as_me: updating cache $cache_file" >&6;}
8896       if test ! -f "$cache_file" || test -h "$cache_file"; then
8897         cat confcache >"$cache_file"
8898       else
8899         case $cache_file in #(
8900         */* | ?:*)
8901           mv -f confcache "$cache_file"$$ &&
8902           mv -f "$cache_file"$$ "$cache_file" ;; #(
8903         *)
8904           mv -f confcache "$cache_file" ;;
8905         esac
8906       fi
8907     fi
8908   else
8909     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8910 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8911   fi
8912 fi
8913 rm -f confcache
8914
8915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8916 # Let make expand exec_prefix.
8917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8918
8919 DEFS=-DHAVE_CONFIG_H
8920
8921 ac_libobjs=
8922 ac_ltlibobjs=
8923 U=
8924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8925   # 1. Remove the extension, and $U if already installed.
8926   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8927   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8928   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8929   #    will be set to the directory where LIBOBJS objects are built.
8930   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8931   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8932 done
8933 LIBOBJS=$ac_libobjs
8934
8935 LTLIBOBJS=$ac_ltlibobjs
8936
8937
8938
8939
8940 : "${CONFIG_STATUS=./config.status}"
8941 ac_write_fail=0
8942 ac_clean_files_save=$ac_clean_files
8943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8945 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8946 as_write_fail=0
8947 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8948 #! $SHELL
8949 # Generated by $as_me.
8950 # Run this file to recreate the current configuration.
8951 # Compiler output produced by configure, useful for debugging
8952 # configure, is in config.log if it exists.
8953
8954 debug=false
8955 ac_cs_recheck=false
8956 ac_cs_silent=false
8957
8958 SHELL=\${CONFIG_SHELL-$SHELL}
8959 export SHELL
8960 _ASEOF
8961 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8962 ## -------------------- ##
8963 ## M4sh Initialization. ##
8964 ## -------------------- ##
8965
8966 # Be more Bourne compatible
8967 DUALCASE=1; export DUALCASE # for MKS sh
8968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8969   emulate sh
8970   NULLCMD=:
8971   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8972   # is contrary to our usage.  Disable this feature.
8973   alias -g '${1+"$@"}'='"$@"'
8974   setopt NO_GLOB_SUBST
8975 else
8976   case `(set -o) 2>/dev/null` in #(
8977   *posix*) :
8978     set -o posix ;; #(
8979   *) :
8980      ;;
8981 esac
8982 fi
8983
8984
8985 as_nl='
8986 '
8987 export as_nl
8988 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8989 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8992 # Prefer a ksh shell builtin over an external printf program on Solaris,
8993 # but without wasting forks for bash or zsh.
8994 if test -z "$BASH_VERSION$ZSH_VERSION" \
8995     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8996   as_echo='print -r --'
8997   as_echo_n='print -rn --'
8998 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8999   as_echo='printf %s\n'
9000   as_echo_n='printf %s'
9001 else
9002   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9003     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9004     as_echo_n='/usr/ucb/echo -n'
9005   else
9006     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9007     as_echo_n_body='eval
9008       arg=$1;
9009       case $arg in #(
9010       *"$as_nl"*)
9011         expr "X$arg" : "X\\(.*\\)$as_nl";
9012         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9013       esac;
9014       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9015     '
9016     export as_echo_n_body
9017     as_echo_n='sh -c $as_echo_n_body as_echo'
9018   fi
9019   export as_echo_body
9020   as_echo='sh -c $as_echo_body as_echo'
9021 fi
9022
9023 # The user is always right.
9024 if test "${PATH_SEPARATOR+set}" != set; then
9025   PATH_SEPARATOR=:
9026   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9027     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9028       PATH_SEPARATOR=';'
9029   }
9030 fi
9031
9032
9033 # IFS
9034 # We need space, tab and new line, in precisely that order.  Quoting is
9035 # there to prevent editors from complaining about space-tab.
9036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9037 # splitting by setting IFS to empty value.)
9038 IFS=" ""        $as_nl"
9039
9040 # Find who we are.  Look in the path if we contain no directory separator.
9041 as_myself=
9042 case $0 in #((
9043   *[\\/]* ) as_myself=$0 ;;
9044   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047   IFS=$as_save_IFS
9048   test -z "$as_dir" && as_dir=.
9049     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9050   done
9051 IFS=$as_save_IFS
9052
9053      ;;
9054 esac
9055 # We did not find ourselves, most probably we were run as `sh COMMAND'
9056 # in which case we are not to be found in the path.
9057 if test "x$as_myself" = x; then
9058   as_myself=$0
9059 fi
9060 if test ! -f "$as_myself"; then
9061   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9062   exit 1
9063 fi
9064
9065 # Unset variables that we do not need and which cause bugs (e.g. in
9066 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9067 # suppresses any "Segmentation fault" message there.  '((' could
9068 # trigger a bug in pdksh 5.2.14.
9069 for as_var in BASH_ENV ENV MAIL MAILPATH
9070 do eval test x\${$as_var+set} = xset \
9071   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9072 done
9073 PS1='$ '
9074 PS2='> '
9075 PS4='+ '
9076
9077 # NLS nuisances.
9078 LC_ALL=C
9079 export LC_ALL
9080 LANGUAGE=C
9081 export LANGUAGE
9082
9083 # CDPATH.
9084 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9085
9086
9087 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9088 # ----------------------------------------
9089 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9090 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9091 # script with STATUS, using 1 if that was 0.
9092 as_fn_error ()
9093 {
9094   as_status=$1; test $as_status -eq 0 && as_status=1
9095   if test "$4"; then
9096     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9097     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9098   fi
9099   $as_echo "$as_me: error: $2" >&2
9100   as_fn_exit $as_status
9101 } # as_fn_error
9102
9103
9104 # as_fn_set_status STATUS
9105 # -----------------------
9106 # Set $? to STATUS, without forking.
9107 as_fn_set_status ()
9108 {
9109   return $1
9110 } # as_fn_set_status
9111
9112 # as_fn_exit STATUS
9113 # -----------------
9114 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9115 as_fn_exit ()
9116 {
9117   set +e
9118   as_fn_set_status $1
9119   exit $1
9120 } # as_fn_exit
9121
9122 # as_fn_unset VAR
9123 # ---------------
9124 # Portably unset VAR.
9125 as_fn_unset ()
9126 {
9127   { eval $1=; unset $1;}
9128 }
9129 as_unset=as_fn_unset
9130 # as_fn_append VAR VALUE
9131 # ----------------------
9132 # Append the text in VALUE to the end of the definition contained in VAR. Take
9133 # advantage of any shell optimizations that allow amortized linear growth over
9134 # repeated appends, instead of the typical quadratic growth present in naive
9135 # implementations.
9136 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9137   eval 'as_fn_append ()
9138   {
9139     eval $1+=\$2
9140   }'
9141 else
9142   as_fn_append ()
9143   {
9144     eval $1=\$$1\$2
9145   }
9146 fi # as_fn_append
9147
9148 # as_fn_arith ARG...
9149 # ------------------
9150 # Perform arithmetic evaluation on the ARGs, and store the result in the
9151 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9152 # must be portable across $(()) and expr.
9153 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9154   eval 'as_fn_arith ()
9155   {
9156     as_val=$(( $* ))
9157   }'
9158 else
9159   as_fn_arith ()
9160   {
9161     as_val=`expr "$@" || test $? -eq 1`
9162   }
9163 fi # as_fn_arith
9164
9165
9166 if expr a : '\(a\)' >/dev/null 2>&1 &&
9167    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9168   as_expr=expr
9169 else
9170   as_expr=false
9171 fi
9172
9173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9174   as_basename=basename
9175 else
9176   as_basename=false
9177 fi
9178
9179 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9180   as_dirname=dirname
9181 else
9182   as_dirname=false
9183 fi
9184
9185 as_me=`$as_basename -- "$0" ||
9186 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9187          X"$0" : 'X\(//\)$' \| \
9188          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9189 $as_echo X/"$0" |
9190     sed '/^.*\/\([^/][^/]*\)\/*$/{
9191             s//\1/
9192             q
9193           }
9194           /^X\/\(\/\/\)$/{
9195             s//\1/
9196             q
9197           }
9198           /^X\/\(\/\).*/{
9199             s//\1/
9200             q
9201           }
9202           s/.*/./; q'`
9203
9204 # Avoid depending upon Character Ranges.
9205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9208 as_cr_digits='0123456789'
9209 as_cr_alnum=$as_cr_Letters$as_cr_digits
9210
9211 ECHO_C= ECHO_N= ECHO_T=
9212 case `echo -n x` in #(((((
9213 -n*)
9214   case `echo 'xy\c'` in
9215   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9216   xy)  ECHO_C='\c';;
9217   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9218        ECHO_T=' ';;
9219   esac;;
9220 *)
9221   ECHO_N='-n';;
9222 esac
9223
9224 rm -f conf$$ conf$$.exe conf$$.file
9225 if test -d conf$$.dir; then
9226   rm -f conf$$.dir/conf$$.file
9227 else
9228   rm -f conf$$.dir
9229   mkdir conf$$.dir 2>/dev/null
9230 fi
9231 if (echo >conf$$.file) 2>/dev/null; then
9232   if ln -s conf$$.file conf$$ 2>/dev/null; then
9233     as_ln_s='ln -s'
9234     # ... but there are two gotchas:
9235     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9236     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9237     # In both cases, we have to default to `cp -pR'.
9238     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9239       as_ln_s='cp -pR'
9240   elif ln conf$$.file conf$$ 2>/dev/null; then
9241     as_ln_s=ln
9242   else
9243     as_ln_s='cp -pR'
9244   fi
9245 else
9246   as_ln_s='cp -pR'
9247 fi
9248 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9249 rmdir conf$$.dir 2>/dev/null
9250
9251
9252 # as_fn_mkdir_p
9253 # -------------
9254 # Create "$as_dir" as a directory, including parents if necessary.
9255 as_fn_mkdir_p ()
9256 {
9257
9258   case $as_dir in #(
9259   -*) as_dir=./$as_dir;;
9260   esac
9261   test -d "$as_dir" || eval $as_mkdir_p || {
9262     as_dirs=
9263     while :; do
9264       case $as_dir in #(
9265       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9266       *) as_qdir=$as_dir;;
9267       esac
9268       as_dirs="'$as_qdir' $as_dirs"
9269       as_dir=`$as_dirname -- "$as_dir" ||
9270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9271          X"$as_dir" : 'X\(//\)[^/]' \| \
9272          X"$as_dir" : 'X\(//\)$' \| \
9273          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9274 $as_echo X"$as_dir" |
9275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9276             s//\1/
9277             q
9278           }
9279           /^X\(\/\/\)[^/].*/{
9280             s//\1/
9281             q
9282           }
9283           /^X\(\/\/\)$/{
9284             s//\1/
9285             q
9286           }
9287           /^X\(\/\).*/{
9288             s//\1/
9289             q
9290           }
9291           s/.*/./; q'`
9292       test -d "$as_dir" && break
9293     done
9294     test -z "$as_dirs" || eval "mkdir $as_dirs"
9295   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9296
9297
9298 } # as_fn_mkdir_p
9299 if mkdir -p . 2>/dev/null; then
9300   as_mkdir_p='mkdir -p "$as_dir"'
9301 else
9302   test -d ./-p && rmdir ./-p
9303   as_mkdir_p=false
9304 fi
9305
9306
9307 # as_fn_executable_p FILE
9308 # -----------------------
9309 # Test if FILE is an executable regular file.
9310 as_fn_executable_p ()
9311 {
9312   test -f "$1" && test -x "$1"
9313 } # as_fn_executable_p
9314 as_test_x='test -x'
9315 as_executable_p=as_fn_executable_p
9316
9317 # Sed expression to map a string onto a valid CPP name.
9318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9319
9320 # Sed expression to map a string onto a valid variable name.
9321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9322
9323
9324 exec 6>&1
9325 ## ----------------------------------- ##
9326 ## Main body of $CONFIG_STATUS script. ##
9327 ## ----------------------------------- ##
9328 _ASEOF
9329 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9330
9331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9332 # Save the log message, to keep $0 and so on meaningful, and to
9333 # report actual input values of CONFIG_FILES etc. instead of their
9334 # values after options handling.
9335 ac_log="
9336 This file was extended by freeradius $as_me $Id$, which was
9337 generated by GNU Autoconf 2.69.  Invocation command line was
9338
9339   CONFIG_FILES    = $CONFIG_FILES
9340   CONFIG_HEADERS  = $CONFIG_HEADERS
9341   CONFIG_LINKS    = $CONFIG_LINKS
9342   CONFIG_COMMANDS = $CONFIG_COMMANDS
9343   $ $0 $@
9344
9345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9346 "
9347
9348 _ACEOF
9349
9350 case $ac_config_files in *"
9351 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9352 esac
9353
9354 case $ac_config_headers in *"
9355 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9356 esac
9357
9358
9359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9360 # Files that config.status was made for.
9361 config_files="$ac_config_files"
9362 config_headers="$ac_config_headers"
9363 config_commands="$ac_config_commands"
9364
9365 _ACEOF
9366
9367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9368 ac_cs_usage="\
9369 \`$as_me' instantiates files and other configuration actions
9370 from templates according to the current configuration.  Unless the files
9371 and actions are specified as TAGs, all are instantiated by default.
9372
9373 Usage: $0 [OPTION]... [TAG]...
9374
9375   -h, --help       print this help, then exit
9376   -V, --version    print version number and configuration settings, then exit
9377       --config     print configuration, then exit
9378   -q, --quiet, --silent
9379                    do not print progress messages
9380   -d, --debug      don't remove temporary files
9381       --recheck    update $as_me by reconfiguring in the same conditions
9382       --file=FILE[:TEMPLATE]
9383                    instantiate the configuration file FILE
9384       --header=FILE[:TEMPLATE]
9385                    instantiate the configuration header FILE
9386
9387 Configuration files:
9388 $config_files
9389
9390 Configuration headers:
9391 $config_headers
9392
9393 Configuration commands:
9394 $config_commands
9395
9396 Report bugs to <http://bugs.freeradius.org>.
9397 freeradius home page: <http://www.freeradius.org>."
9398
9399 _ACEOF
9400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9401 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9402 ac_cs_version="\\
9403 freeradius config.status $Id$
9404 configured by $0, generated by GNU Autoconf 2.69,
9405   with options \\"\$ac_cs_config\\"
9406
9407 Copyright (C) 2012 Free Software Foundation, Inc.
9408 This config.status script is free software; the Free Software Foundation
9409 gives unlimited permission to copy, distribute and modify it."
9410
9411 ac_pwd='$ac_pwd'
9412 srcdir='$srcdir'
9413 test -n "\$AWK" || AWK=awk
9414 _ACEOF
9415
9416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9417 # The default lists apply if the user does not specify any file.
9418 ac_need_defaults=:
9419 while test $# != 0
9420 do
9421   case $1 in
9422   --*=?*)
9423     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9424     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9425     ac_shift=:
9426     ;;
9427   --*=)
9428     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9429     ac_optarg=
9430     ac_shift=:
9431     ;;
9432   *)
9433     ac_option=$1
9434     ac_optarg=$2
9435     ac_shift=shift
9436     ;;
9437   esac
9438
9439   case $ac_option in
9440   # Handling of the options.
9441   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9442     ac_cs_recheck=: ;;
9443   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9444     $as_echo "$ac_cs_version"; exit ;;
9445   --config | --confi | --conf | --con | --co | --c )
9446     $as_echo "$ac_cs_config"; exit ;;
9447   --debug | --debu | --deb | --de | --d | -d )
9448     debug=: ;;
9449   --file | --fil | --fi | --f )
9450     $ac_shift
9451     case $ac_optarg in
9452     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9453     '') as_fn_error $? "missing file argument" ;;
9454     esac
9455     as_fn_append CONFIG_FILES " '$ac_optarg'"
9456     ac_need_defaults=false;;
9457   --header | --heade | --head | --hea )
9458     $ac_shift
9459     case $ac_optarg in
9460     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9461     esac
9462     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9463     ac_need_defaults=false;;
9464   --he | --h)
9465     # Conflict between --help and --header
9466     as_fn_error $? "ambiguous option: \`$1'
9467 Try \`$0 --help' for more information.";;
9468   --help | --hel | -h )
9469     $as_echo "$ac_cs_usage"; exit ;;
9470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9471   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9472     ac_cs_silent=: ;;
9473
9474   # This is an error.
9475   -*) as_fn_error $? "unrecognized option: \`$1'
9476 Try \`$0 --help' for more information." ;;
9477
9478   *) as_fn_append ac_config_targets " $1"
9479      ac_need_defaults=false ;;
9480
9481   esac
9482   shift
9483 done
9484
9485 ac_configure_extra_args=
9486
9487 if $ac_cs_silent; then
9488   exec 6>/dev/null
9489   ac_configure_extra_args="$ac_configure_extra_args --silent"
9490 fi
9491
9492 _ACEOF
9493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9494 if \$ac_cs_recheck; then
9495   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9496   shift
9497   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9498   CONFIG_SHELL='$SHELL'
9499   export CONFIG_SHELL
9500   exec "\$@"
9501 fi
9502
9503 _ACEOF
9504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9505 exec 5>>config.log
9506 {
9507   echo
9508   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9509 ## Running $as_me. ##
9510 _ASBOX
9511   $as_echo "$ac_log"
9512 } >&5
9513
9514 _ACEOF
9515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9516 _ACEOF
9517
9518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9519
9520 # Handling of arguments.
9521 for ac_config_target in $ac_config_targets
9522 do
9523   case $ac_config_target in
9524     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9525     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9526     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9527     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9528     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9529     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9530     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9531     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9532     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9533     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9534     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9535     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9536     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9537     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9538     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9539     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9540     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9541     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9542
9543   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9544   esac
9545 done
9546
9547
9548 # If the user did not use the arguments to specify the items to instantiate,
9549 # then the envvar interface is used.  Set only those that are not.
9550 # We use the long form for the default assignment because of an extremely
9551 # bizarre bug on SunOS 4.1.3.
9552 if $ac_need_defaults; then
9553   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9554   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9555   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9556 fi
9557
9558 # Have a temporary directory for convenience.  Make it in the build tree
9559 # simply because there is no reason against having it here, and in addition,
9560 # creating and moving files from /tmp can sometimes cause problems.
9561 # Hook for its removal unless debugging.
9562 # Note that there is a small window in which the directory will not be cleaned:
9563 # after its creation but before its name has been assigned to `$tmp'.
9564 $debug ||
9565 {
9566   tmp= ac_tmp=
9567   trap 'exit_status=$?
9568   : "${ac_tmp:=$tmp}"
9569   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9570 ' 0
9571   trap 'as_fn_exit 1' 1 2 13 15
9572 }
9573 # Create a (secure) tmp directory for tmp files.
9574
9575 {
9576   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9577   test -d "$tmp"
9578 }  ||
9579 {
9580   tmp=./conf$$-$RANDOM
9581   (umask 077 && mkdir "$tmp")
9582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9583 ac_tmp=$tmp
9584
9585 # Set up the scripts for CONFIG_FILES section.
9586 # No need to generate them if there are no CONFIG_FILES.
9587 # This happens for instance with `./config.status config.h'.
9588 if test -n "$CONFIG_FILES"; then
9589
9590
9591 ac_cr=`echo X | tr X '\015'`
9592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9593 # But we know of no other shell where ac_cr would be empty at this
9594 # point, so we can use a bashism as a fallback.
9595 if test "x$ac_cr" = x; then
9596   eval ac_cr=\$\'\\r\'
9597 fi
9598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9600   ac_cs_awk_cr='\\r'
9601 else
9602   ac_cs_awk_cr=$ac_cr
9603 fi
9604
9605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9606 _ACEOF
9607
9608
9609 {
9610   echo "cat >conf$$subs.awk <<_ACEOF" &&
9611   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9612   echo "_ACEOF"
9613 } >conf$$subs.sh ||
9614   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9616 ac_delim='%!_!# '
9617 for ac_last_try in false false false false false :; do
9618   . ./conf$$subs.sh ||
9619     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9620
9621   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9622   if test $ac_delim_n = $ac_delim_num; then
9623     break
9624   elif $ac_last_try; then
9625     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9626   else
9627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9628   fi
9629 done
9630 rm -f conf$$subs.sh
9631
9632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9634 _ACEOF
9635 sed -n '
9636 h
9637 s/^/S["/; s/!.*/"]=/
9638 p
9639 g
9640 s/^[^!]*!//
9641 :repl
9642 t repl
9643 s/'"$ac_delim"'$//
9644 t delim
9645 :nl
9646 h
9647 s/\(.\{148\}\)..*/\1/
9648 t more1
9649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9650 p
9651 n
9652 b repl
9653 :more1
9654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9655 p
9656 g
9657 s/.\{148\}//
9658 t nl
9659 :delim
9660 h
9661 s/\(.\{148\}\)..*/\1/
9662 t more2
9663 s/["\\]/\\&/g; s/^/"/; s/$/"/
9664 p
9665 b
9666 :more2
9667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9668 p
9669 g
9670 s/.\{148\}//
9671 t delim
9672 ' <conf$$subs.awk | sed '
9673 /^[^""]/{
9674   N
9675   s/\n//
9676 }
9677 ' >>$CONFIG_STATUS || ac_write_fail=1
9678 rm -f conf$$subs.awk
9679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9680 _ACAWK
9681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9682   for (key in S) S_is_set[key] = 1
9683   FS = "\a"
9684
9685 }
9686 {
9687   line = $ 0
9688   nfields = split(line, field, "@")
9689   substed = 0
9690   len = length(field[1])
9691   for (i = 2; i < nfields; i++) {
9692     key = field[i]
9693     keylen = length(key)
9694     if (S_is_set[key]) {
9695       value = S[key]
9696       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9697       len += length(value) + length(field[++i])
9698       substed = 1
9699     } else
9700       len += 1 + keylen
9701   }
9702
9703   print line
9704 }
9705
9706 _ACAWK
9707 _ACEOF
9708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9710   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9711 else
9712   cat
9713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9714   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9715 _ACEOF
9716
9717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9719 # trailing colons and then remove the whole line if VPATH becomes empty
9720 # (actually we leave an empty line to preserve line numbers).
9721 if test "x$srcdir" = x.; then
9722   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9723 h
9724 s///
9725 s/^/:/
9726 s/[      ]*$/:/
9727 s/:\$(srcdir):/:/g
9728 s/:\${srcdir}:/:/g
9729 s/:@srcdir@:/:/g
9730 s/^:*//
9731 s/:*$//
9732 x
9733 s/\(=[   ]*\).*/\1/
9734 G
9735 s/\n//
9736 s/^[^=]*=[       ]*$//
9737 }'
9738 fi
9739
9740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9741 fi # test -n "$CONFIG_FILES"
9742
9743 # Set up the scripts for CONFIG_HEADERS section.
9744 # No need to generate them if there are no CONFIG_HEADERS.
9745 # This happens for instance with `./config.status Makefile'.
9746 if test -n "$CONFIG_HEADERS"; then
9747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9748 BEGIN {
9749 _ACEOF
9750
9751 # Transform confdefs.h into an awk script `defines.awk', embedded as
9752 # here-document in config.status, that substitutes the proper values into
9753 # config.h.in to produce config.h.
9754
9755 # Create a delimiter string that does not exist in confdefs.h, to ease
9756 # handling of long lines.
9757 ac_delim='%!_!# '
9758 for ac_last_try in false false :; do
9759   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9760   if test -z "$ac_tt"; then
9761     break
9762   elif $ac_last_try; then
9763     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9764   else
9765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9766   fi
9767 done
9768
9769 # For the awk script, D is an array of macro values keyed by name,
9770 # likewise P contains macro parameters if any.  Preserve backslash
9771 # newline sequences.
9772
9773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9774 sed -n '
9775 s/.\{148\}/&'"$ac_delim"'/g
9776 t rset
9777 :rset
9778 s/^[     ]*#[    ]*define[       ][      ]*/ /
9779 t def
9780 d
9781 :def
9782 s/\\$//
9783 t bsnl
9784 s/["\\]/\\&/g
9785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9786 D["\1"]=" \3"/p
9787 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9788 d
9789 :bsnl
9790 s/["\\]/\\&/g
9791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9792 D["\1"]=" \3\\\\\\n"\\/p
9793 t cont
9794 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9795 t cont
9796 d
9797 :cont
9798 n
9799 s/.\{148\}/&'"$ac_delim"'/g
9800 t clear
9801 :clear
9802 s/\\$//
9803 t bsnlc
9804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9805 d
9806 :bsnlc
9807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9808 b cont
9809 ' <confdefs.h | sed '
9810 s/'"$ac_delim"'/"\\\
9811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9812
9813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9814   for (key in D) D_is_set[key] = 1
9815   FS = "\a"
9816 }
9817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9818   line = \$ 0
9819   split(line, arg, " ")
9820   if (arg[1] == "#") {
9821     defundef = arg[2]
9822     mac1 = arg[3]
9823   } else {
9824     defundef = substr(arg[1], 2)
9825     mac1 = arg[2]
9826   }
9827   split(mac1, mac2, "(") #)
9828   macro = mac2[1]
9829   prefix = substr(line, 1, index(line, defundef) - 1)
9830   if (D_is_set[macro]) {
9831     # Preserve the white space surrounding the "#".
9832     print prefix "define", macro P[macro] D[macro]
9833     next
9834   } else {
9835     # Replace #undef with comments.  This is necessary, for example,
9836     # in the case of _POSIX_SOURCE, which is predefined and required
9837     # on some systems where configure will not decide to define it.
9838     if (defundef == "undef") {
9839       print "/*", prefix defundef, macro, "*/"
9840       next
9841     }
9842   }
9843 }
9844 { print }
9845 _ACAWK
9846 _ACEOF
9847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9848   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9849 fi # test -n "$CONFIG_HEADERS"
9850
9851
9852 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9853 shift
9854 for ac_tag
9855 do
9856   case $ac_tag in
9857   :[FHLC]) ac_mode=$ac_tag; continue;;
9858   esac
9859   case $ac_mode$ac_tag in
9860   :[FHL]*:*);;
9861   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9862   :[FH]-) ac_tag=-:-;;
9863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9864   esac
9865   ac_save_IFS=$IFS
9866   IFS=:
9867   set x $ac_tag
9868   IFS=$ac_save_IFS
9869   shift
9870   ac_file=$1
9871   shift
9872
9873   case $ac_mode in
9874   :L) ac_source=$1;;
9875   :[FH])
9876     ac_file_inputs=
9877     for ac_f
9878     do
9879       case $ac_f in
9880       -) ac_f="$ac_tmp/stdin";;
9881       *) # Look for the file first in the build tree, then in the source tree
9882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9883          # because $ac_f cannot contain `:'.
9884          test -f "$ac_f" ||
9885            case $ac_f in
9886            [\\/$]*) false;;
9887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9888            esac ||
9889            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9890       esac
9891       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9892       as_fn_append ac_file_inputs " '$ac_f'"
9893     done
9894
9895     # Let's still pretend it is `configure' which instantiates (i.e., don't
9896     # use $as_me), people would be surprised to read:
9897     #    /* config.h.  Generated by config.status.  */
9898     configure_input='Generated from '`
9899           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9900         `' by configure.'
9901     if test x"$ac_file" != x-; then
9902       configure_input="$ac_file.  $configure_input"
9903       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9904 $as_echo "$as_me: creating $ac_file" >&6;}
9905     fi
9906     # Neutralize special characters interpreted by sed in replacement strings.
9907     case $configure_input in #(
9908     *\&* | *\|* | *\\* )
9909        ac_sed_conf_input=`$as_echo "$configure_input" |
9910        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9911     *) ac_sed_conf_input=$configure_input;;
9912     esac
9913
9914     case $ac_tag in
9915     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9916       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9917     esac
9918     ;;
9919   esac
9920
9921   ac_dir=`$as_dirname -- "$ac_file" ||
9922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9923          X"$ac_file" : 'X\(//\)[^/]' \| \
9924          X"$ac_file" : 'X\(//\)$' \| \
9925          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9926 $as_echo X"$ac_file" |
9927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9928             s//\1/
9929             q
9930           }
9931           /^X\(\/\/\)[^/].*/{
9932             s//\1/
9933             q
9934           }
9935           /^X\(\/\/\)$/{
9936             s//\1/
9937             q
9938           }
9939           /^X\(\/\).*/{
9940             s//\1/
9941             q
9942           }
9943           s/.*/./; q'`
9944   as_dir="$ac_dir"; as_fn_mkdir_p
9945   ac_builddir=.
9946
9947 case "$ac_dir" in
9948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9949 *)
9950   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9951   # A ".." for each directory in $ac_dir_suffix.
9952   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9953   case $ac_top_builddir_sub in
9954   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9955   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9956   esac ;;
9957 esac
9958 ac_abs_top_builddir=$ac_pwd
9959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9960 # for backward compatibility:
9961 ac_top_builddir=$ac_top_build_prefix
9962
9963 case $srcdir in
9964   .)  # We are building in place.
9965     ac_srcdir=.
9966     ac_top_srcdir=$ac_top_builddir_sub
9967     ac_abs_top_srcdir=$ac_pwd ;;
9968   [\\/]* | ?:[\\/]* )  # Absolute name.
9969     ac_srcdir=$srcdir$ac_dir_suffix;
9970     ac_top_srcdir=$srcdir
9971     ac_abs_top_srcdir=$srcdir ;;
9972   *) # Relative name.
9973     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9974     ac_top_srcdir=$ac_top_build_prefix$srcdir
9975     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9976 esac
9977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9978
9979
9980   case $ac_mode in
9981   :F)
9982   #
9983   # CONFIG_FILE
9984   #
9985
9986 _ACEOF
9987
9988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9989 # If the template does not know about datarootdir, expand it.
9990 # FIXME: This hack should be removed a few years after 2.60.
9991 ac_datarootdir_hack=; ac_datarootdir_seen=
9992 ac_sed_dataroot='
9993 /datarootdir/ {
9994   p
9995   q
9996 }
9997 /@datadir@/p
9998 /@docdir@/p
9999 /@infodir@/p
10000 /@localedir@/p
10001 /@mandir@/p'
10002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10003 *datarootdir*) ac_datarootdir_seen=yes;;
10004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10005   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10007 _ACEOF
10008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10009   ac_datarootdir_hack='
10010   s&@datadir@&$datadir&g
10011   s&@docdir@&$docdir&g
10012   s&@infodir@&$infodir&g
10013   s&@localedir@&$localedir&g
10014   s&@mandir@&$mandir&g
10015   s&\\\${datarootdir}&$datarootdir&g' ;;
10016 esac
10017 _ACEOF
10018
10019 # Neutralize VPATH when `$srcdir' = `.'.
10020 # Shell code in configure.ac might set extrasub.
10021 # FIXME: do we really want to maintain this feature?
10022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10023 ac_sed_extra="$ac_vpsub
10024 $extrasub
10025 _ACEOF
10026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10027 :t
10028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10029 s|@configure_input@|$ac_sed_conf_input|;t t
10030 s&@top_builddir@&$ac_top_builddir_sub&;t t
10031 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10032 s&@srcdir@&$ac_srcdir&;t t
10033 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10034 s&@top_srcdir@&$ac_top_srcdir&;t t
10035 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10036 s&@builddir@&$ac_builddir&;t t
10037 s&@abs_builddir@&$ac_abs_builddir&;t t
10038 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10039 $ac_datarootdir_hack
10040 "
10041 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10042   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10043
10044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10045   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10046   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10047       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10049 which seems to be undefined.  Please make sure it is defined" >&5
10050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10051 which seems to be undefined.  Please make sure it is defined" >&2;}
10052
10053   rm -f "$ac_tmp/stdin"
10054   case $ac_file in
10055   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10056   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10057   esac \
10058   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10059  ;;
10060   :H)
10061   #
10062   # CONFIG_HEADER
10063   #
10064   if test x"$ac_file" != x-; then
10065     {
10066       $as_echo "/* $configure_input  */" \
10067       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10068     } >"$ac_tmp/config.h" \
10069       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10070     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10071       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10073     else
10074       rm -f "$ac_file"
10075       mv "$ac_tmp/config.h" "$ac_file" \
10076         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10077     fi
10078   else
10079     $as_echo "/* $configure_input  */" \
10080       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10081       || as_fn_error $? "could not create -" "$LINENO" 5
10082   fi
10083  ;;
10084
10085   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10086 $as_echo "$as_me: executing $ac_file commands" >&6;}
10087  ;;
10088   esac
10089
10090
10091   case $ac_file$ac_mode in
10092     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10093     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10094     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10095     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10096
10097   esac
10098 done # for ac_tag
10099
10100
10101 as_fn_exit 0
10102 _ACEOF
10103 ac_clean_files=$ac_clean_files_save
10104
10105 test $ac_write_fail = 0 ||
10106   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10107
10108
10109 # configure is writing to config.log, and then calls config.status.
10110 # config.status does its own redirection, appending to config.log.
10111 # Unfortunately, on DOS this fails, as config.log is still kept open
10112 # by configure, so config.status won't be able to write to it; its
10113 # output is simply discarded.  So we exec the FD to /dev/null,
10114 # effectively closing config.log, so it can be properly (re)opened and
10115 # appended to by config.status.  When coming back to configure, we
10116 # need to make the FD available again.
10117 if test "$no_create" != yes; then
10118   ac_cs_success=:
10119   ac_config_status_args=
10120   test "$silent" = yes &&
10121     ac_config_status_args="$ac_config_status_args --quiet"
10122   exec 5>/dev/null
10123   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10124   exec 5>>config.log
10125   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10126   # would make configure fail if this is the last instruction.
10127   $ac_cs_success || as_fn_exit 1
10128 fi
10129
10130 #
10131 # CONFIG_SUBDIRS section.
10132 #
10133 if test "$no_recursion" != yes; then
10134
10135   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10136   # so they do not pile up.
10137   ac_sub_configure_args=
10138   ac_prev=
10139   eval "set x $ac_configure_args"
10140   shift
10141   for ac_arg
10142   do
10143     if test -n "$ac_prev"; then
10144       ac_prev=
10145       continue
10146     fi
10147     case $ac_arg in
10148     -cache-file | --cache-file | --cache-fil | --cache-fi \
10149     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10150       ac_prev=cache_file ;;
10151     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10152     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10153     | --c=*)
10154       ;;
10155     --config-cache | -C)
10156       ;;
10157     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10158       ac_prev=srcdir ;;
10159     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10160       ;;
10161     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10162       ac_prev=prefix ;;
10163     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10164       ;;
10165     --disable-option-checking)
10166       ;;
10167     *)
10168       case $ac_arg in
10169       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10170       esac
10171       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10172     esac
10173   done
10174
10175   # Always prepend --prefix to ensure using the same prefix
10176   # in subdir configurations.
10177   ac_arg="--prefix=$prefix"
10178   case $ac_arg in
10179   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10180   esac
10181   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10182
10183   # Pass --silent
10184   if test "$silent" = yes; then
10185     ac_sub_configure_args="--silent $ac_sub_configure_args"
10186   fi
10187
10188   # Always prepend --disable-option-checking to silence warnings, since
10189   # different subdirs can have different --enable and --with options.
10190   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10191
10192   ac_popdir=`pwd`
10193   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10194
10195     # Do not complain, so a configure script can configure whichever
10196     # parts of a large source tree are present.
10197     test -d "$srcdir/$ac_dir" || continue
10198
10199     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10200     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10201     $as_echo "$ac_msg" >&6
10202     as_dir="$ac_dir"; as_fn_mkdir_p
10203     ac_builddir=.
10204
10205 case "$ac_dir" in
10206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10207 *)
10208   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10209   # A ".." for each directory in $ac_dir_suffix.
10210   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10211   case $ac_top_builddir_sub in
10212   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10213   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10214   esac ;;
10215 esac
10216 ac_abs_top_builddir=$ac_pwd
10217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10218 # for backward compatibility:
10219 ac_top_builddir=$ac_top_build_prefix
10220
10221 case $srcdir in
10222   .)  # We are building in place.
10223     ac_srcdir=.
10224     ac_top_srcdir=$ac_top_builddir_sub
10225     ac_abs_top_srcdir=$ac_pwd ;;
10226   [\\/]* | ?:[\\/]* )  # Absolute name.
10227     ac_srcdir=$srcdir$ac_dir_suffix;
10228     ac_top_srcdir=$srcdir
10229     ac_abs_top_srcdir=$srcdir ;;
10230   *) # Relative name.
10231     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10232     ac_top_srcdir=$ac_top_build_prefix$srcdir
10233     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10234 esac
10235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10236
10237
10238     cd "$ac_dir"
10239
10240     # Check for guested configure; otherwise get Cygnus style configure.
10241     if test -f "$ac_srcdir/configure.gnu"; then
10242       ac_sub_configure=$ac_srcdir/configure.gnu
10243     elif test -f "$ac_srcdir/configure"; then
10244       ac_sub_configure=$ac_srcdir/configure
10245     elif test -f "$ac_srcdir/configure.in"; then
10246       # This should be Cygnus configure.
10247       ac_sub_configure=$ac_aux_dir/configure
10248     else
10249       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10250 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10251       ac_sub_configure=
10252     fi
10253
10254     # The recursion is here.
10255     if test -n "$ac_sub_configure"; then
10256       # Make the cache file name correct relative to the subdirectory.
10257       case $cache_file in
10258       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10259       *) # Relative name.
10260         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10261       esac
10262
10263       { $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
10264 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10265       # The eval makes quoting arguments work.
10266       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10267            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10268         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10269     fi
10270
10271     cd "$ac_popdir"
10272   done
10273 fi
10274 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10275   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10276 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10277 fi
10278
10279