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