raddb: Comment on ipaddr/ipv4addr/ipv6addr use
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
587
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 STATIC_MODULES
629 USE_STATIC_LIBS
630 USE_SHARED_LIBS
631 INSTALLSTRIP
632 MODULES
633 subdirs
634 HOSTINFO
635 CRYPTLIB
636 LIBPREFIX
637 COLLECTDC_LDFLAGS
638 COLLECTDC_LIBS
639 PCAP_LDFLAGS
640 PCAP_LIBS
641 OPENSSL_CPPFLAGS
642 OPENSSL_LDFLAGS
643 OPENSSL_LIBS
644 LIBREADLINE
645 TALLOC_LDFLAGS
646 TALLOC_LIBS
647 DIRNAME
648 LOCATE
649 AUTOHEADER
650 AUTOCONF
651 ACLOCAL
652 RUSERS
653 SNMPWALK
654 SNMPGET
655 PERL
656 openssl_version_check_config
657 modconfdir
658 dictdir
659 raddbdir
660 radacctdir
661 logdir
662 GIT
663 FR_MAKEFLAGS
664 MAKE
665 GMAKE
666 clang_path
667 RANLIB
668 EGREP
669 GREP
670 CPP
671 ac_ct_CXX
672 CXXFLAGS
673 CXX
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 RADIUSD_VERSION_STRING
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_developer
736 enable_largefile
737 enable_strict_dependencies
738 enable_werror
739 with_docdir
740 with_logdir
741 with_radacctdir
742 with_raddbdir
743 with_dictdir
744 with_ascend_binary
745 with_threads
746 with_tcp
747 with_vmps
748 with_dhcp
749 with_static_modules
750 with_shared_libs
751 with_modules
752 with_experimental_modules
753 with_udpfromto
754 with_rlm_FOO_lib_dir
755 with_rlm_FOO_include_dir
756 with_openssl
757 with_openssl_lib_dir
758 with_openssl_include_dir
759 enable_openssl_version_check
760 with_talloc_lib_dir
761 with_talloc_include_dir
762 with_pcap_lib_dir
763 with_pcap_include_dir
764 with_collectdclient_lib_dir
765 with_collectdclient_include_dir
766 with_cap_lib_dir
767 with_cap_include_dir
768 with_execinfo_lib_dir
769 with_execinfo_include_dir
770 with_pcre_lib_dir
771 with_pcre_include_dir
772 with_regex
773 '
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CXX
783 CXXFLAGS
784 CCC
785 CPP'
786 ac_subdirs_all='$mysubdirs'
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *=)   ac_optarg= ;;
850   *)    ac_optarg=yes ;;
851   esac
852
853   # Accept the important Cygnus configure options, so we can diagnose typos.
854
855   case $ac_dashdash$ac_option in
856   --)
857     ac_dashdash=yes ;;
858
859   -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863
864   -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868
869   -cache-file | --cache-file | --cache-fil | --cache-fi \
870   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875
876   --config-cache | -C)
877     cache_file=config.cache ;;
878
879   -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881   -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883
884   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885   | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890
891   -disable-* | --disable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906
907   -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911
912   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916
917   -enable-* | --enable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136
1137   -without-* | --without-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     case $ac_envvar in #(
1179       '' | [0-9]* | *[!_$as_cr_alnum]* )
1180       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202   case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206   esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   # Remove trailing slashes.
1217   case $ac_val in
1218     */ )
1219       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220       eval $ac_var=\$ac_val;;
1221   esac
1222   # Be sure to have absolute directory names.
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking ...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 System types:
1384   --build=BUILD     configure for building on BUILD [guessed]
1385   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386   --target=TARGET   configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of freeradius $Id$:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-option-checking  ignore unrecognized --enable/--with options
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --enable-developer      enables features of interest to developers.
1401   --disable-largefile     omit support for large files
1402   --enable-strict-dependencies  fail configure on lack of module dependancy.
1403   --enable-werror         causes the build to fail if any warnings are generated.
1404   --disable-openssl-version-check
1405                           disable vulnerable OpenSSL version check
1406
1407
1408 Optional Packages:
1409   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1412   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1413   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1414   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1415   --with-dictdir=DIR      directory for dictionary files DATAROOTDIR/freeradius
1416   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1417   --with-threads          use threads, if available.  (default=yes)
1418   --with-tcp              compile in TCP support. (default=yes)
1419   --with-vmps             compile in VMPS support. (default=yes)
1420   --with-dhcp             compile in DHCP support. (default=yes)
1421   --with-static-modules=QUOTED-MODULE-LIST
1422   --with-shared-libs      build dynamic libraries and link against them.
1423                           (default=yes)
1424   --with-modules=QUOTED-MODULE-LIST
1425   --with-experimental-modules
1426                           use experimental and unstable modules. (default=no,
1427                           unless --enable-developer=yes)
1428   --with-udpfromto        compile in UDPFROMTO support. (default=yes)
1429   --with-rlm-FOO-lib-dir=DIR
1430                           directory in which to look for library files used by
1431                           module FOO
1432   --with-rlm-FOO-include-dir=DIR
1433                           directory in which to look for include files used by
1434                           module FOO
1435   --with-openssl          use OpenSSL. (default=yes)
1436   --with-openssl-lib-dir=DIR
1437                           directory to look for OpenSSL library files
1438   --with-openssl-include-dir=DIR
1439                           directory to look for OpenSSL include files
1440   --with-talloc-lib-dir=DIR
1441                           directory in which to look for talloc library files
1442   --with-talloc-include-dir=DIR
1443                           directory in which to look for talloc include files
1444   --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1445   --with-pcap-include-dir=DIR
1446                           directory in which to look for pcap include files
1447   --with-collectdclient-lib-dir=DIR
1448                           directory in which to look for collectdclient
1449                           library files
1450   --with-collectdclient-include-dir=DIR
1451                           directory in which to look for collectdclient
1452                           include files
1453   --with-cap-lib-dir=DIR  directory in which to look for cap library files
1454   --with-cap-include-dir=DIR
1455                           directory in which to look for cap include files
1456   --with-execinfo-lib-dir=DIR
1457                           directory in which to look for execinfo library
1458                           files
1459   --with-execinfo-include-dir=DIR
1460                           directory in which to look for execinfo include
1461                           files
1462   --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1463   --with-pcre-include-dir=DIR
1464                           directory in which to look for pcre include files
1465   --with-regex            Whether to build with regular expressions
1466                           (default=yes)
1467
1468 Some influential environment variables:
1469   CC          C compiler command
1470   CFLAGS      C compiler flags
1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472               nonstandard directory <lib dir>
1473   LIBS        libraries to pass to the linker, e.g. -l<library>
1474   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475               you have headers in a nonstandard directory <include dir>
1476   CXX         C++ compiler command
1477   CXXFLAGS    C++ compiler flags
1478   CPP         C preprocessor
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <http://bugs.freeradius.org>.
1484 freeradius home page: <http://www.freeradius.org>.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490   # If there are subdirs, report their specific --help.
1491   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492     test -d "$ac_dir" ||
1493       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494       continue
1495     ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501   # A ".." for each directory in $ac_dir_suffix.
1502   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503   case $ac_top_builddir_sub in
1504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506   esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514   .)  # We are building in place.
1515     ac_srcdir=.
1516     ac_top_srcdir=$ac_top_builddir_sub
1517     ac_abs_top_srcdir=$ac_pwd ;;
1518   [\\/]* | ?:[\\/]* )  # Absolute name.
1519     ac_srcdir=$srcdir$ac_dir_suffix;
1520     ac_top_srcdir=$srcdir
1521     ac_abs_top_srcdir=$srcdir ;;
1522   *) # Relative name.
1523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524     ac_top_srcdir=$ac_top_build_prefix$srcdir
1525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529     cd "$ac_dir" || { ac_status=$?; continue; }
1530     # Check for guested configure.
1531     if test -f "$ac_srcdir/configure.gnu"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534     elif test -f "$ac_srcdir/configure"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure" --help=recursive
1537     else
1538       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539     fi || ac_status=$?
1540     cd "$ac_pwd" || { ac_status=$?; break; }
1541   done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546   cat <<\_ACEOF
1547 freeradius configure $Id$
1548 generated by GNU Autoconf 2.69
1549
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554   exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   rm -f conftest.$ac_objext
1568   if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571   *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575   (eval "$ac_compile") 2>conftest.err
1576   ac_status=$?
1577   if test -s conftest.err; then
1578     grep -v '^ *+' conftest.err >conftest.er1
1579     cat conftest.er1 >&5
1580     mv -f conftest.er1 conftest.err
1581   fi
1582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583   test $ac_status = 0; } && {
1584          test -z "$ac_c_werror_flag" ||
1585          test ! -s conftest.err
1586        } && test -s conftest.$ac_objext; then :
1587   ac_retval=0
1588 else
1589   $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592         ac_retval=1
1593 fi
1594   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595   as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_cxx_try_compile LINENO
1600 # ----------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_cxx_try_compile ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   rm -f conftest.$ac_objext
1606   if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_compile") 2>conftest.err
1614   ac_status=$?
1615   if test -s conftest.err; then
1616     grep -v '^ *+' conftest.err >conftest.er1
1617     cat conftest.er1 >&5
1618     mv -f conftest.er1 conftest.err
1619   fi
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } && {
1622          test -z "$ac_cxx_werror_flag" ||
1623          test ! -s conftest.err
1624        } && test -s conftest.$ac_objext; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1634
1635 } # ac_fn_cxx_try_compile
1636
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_cpp ()
1641 {
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } > conftest.i && {
1659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        }; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667     ac_retval=1
1668 fi
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1677 # the include files in INCLUDES and setting the cache variable VAR
1678 # accordingly.
1679 ac_fn_c_check_header_mongrel ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if eval \${$3+:} false; then :
1683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686   $as_echo_n "(cached) " >&6
1687 fi
1688 eval ac_res=\$$3
1689                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 else
1692   # Is the header compilable?
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1694 $as_echo_n "checking $2 usability... " >&6; }
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h.  */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701   ac_header_compiler=yes
1702 else
1703   ac_header_compiler=no
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1707 $as_echo "$ac_header_compiler" >&6; }
1708
1709 # Is the header present?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1711 $as_echo_n "checking $2 presence... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_cpp "$LINENO"; then :
1717   ac_header_preproc=yes
1718 else
1719   ac_header_preproc=no
1720 fi
1721 rm -f conftest.err conftest.i conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1723 $as_echo "$ac_header_preproc" >&6; }
1724
1725 # So?  What about this header?
1726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1727   yes:no: )
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1729 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732     ;;
1733   no:yes:* )
1734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1735 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1737 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1739 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1741 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ( $as_echo "## ----------------------------------------- ##
1745 ## Report this to http://bugs.freeradius.org ##
1746 ## ----------------------------------------- ##"
1747      ) | sed "s/^/$as_me: WARNING:     /" >&2
1748     ;;
1749 esac
1750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753   $as_echo_n "(cached) " >&6
1754 else
1755   eval "$3=\$ac_header_compiler"
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 fi
1761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_header_mongrel
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_link") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783   { { case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_try") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; }; }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: program exited with status $ac_status" >&5
1796        $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=$ac_status
1800 fi
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext conftest$ac_exeext
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_c_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest$ac_exeext && {
1864          test "$cross_compiling" = yes ||
1865          test -x conftest$ac_exeext
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876   # interfere with the next link command; also delete a directory that is
1877   # left behind by Apple's compiler.  We do this before executing the actions.
1878   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880   as_fn_set_status $ac_retval
1881
1882 } # ac_fn_c_try_link
1883
1884 # ac_fn_c_check_func LINENO FUNC VAR
1885 # ----------------------------------
1886 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1887 ac_fn_c_check_func ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1899 #define $2 innocuous_$2
1900
1901 /* System header to define __stub macros and hopefully few prototypes,
1902     which can conflict with char $2 (); below.
1903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904     <limits.h> exists even on freestanding compilers.  */
1905
1906 #ifdef __STDC__
1907 # include <limits.h>
1908 #else
1909 # include <assert.h>
1910 #endif
1911
1912 #undef $2
1913
1914 /* Override any GCC internal prototype to avoid an error.
1915    Use char because int might match the return type of a GCC
1916    builtin and then its argument prototype would still apply.  */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 ();
1921 /* The GNU C library defines this for functions which it implements
1922     to always fail with ENOSYS.  Some functions are actually named
1923     something starting with __ and the normal name is an alias.  */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1927
1928 int
1929 main ()
1930 {
1931 return $2 ();
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"; then :
1937   eval "$3=yes"
1938 else
1939   eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext \
1942     conftest$ac_exeext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_func
1950
1951 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952 # -------------------------------------------
1953 # Tests whether TYPE exists after having included INCLUDES, setting cache
1954 # variable VAR accordingly.
1955 ac_fn_c_check_type ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   eval "$3=no"
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof ($2))
1971          return 0;
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h.  */
1979 $4
1980 int
1981 main ()
1982 {
1983 if (sizeof (($2)))
1984             return 0;
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990
1991 else
1992   eval "$3=yes"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_type
2004
2005 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2006 # ---------------------------------------------
2007 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_decl ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   as_decl_name=`echo $2|sed 's/ *(.*//'`
2013   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2015 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 int
2023 main ()
2024 {
2025 #ifndef $as_decl_name
2026 #ifdef __cplusplus
2027   (void) $as_decl_use;
2028 #else
2029   (void) $as_decl_name;
2030 #endif
2031 #endif
2032
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   eval "$3=yes"
2039 else
2040   eval "$3=no"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$3
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_decl
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2053
2054 It was created by freeradius $as_me $Id$, which was
2055 generated by GNU Autoconf 2.69.  Invocation command line was
2056
2057   $ $0 $@
2058
2059 _ACEOF
2060 exec 5>>config.log
2061 {
2062 cat <<_ASUNAME
2063 ## --------- ##
2064 ## Platform. ##
2065 ## --------- ##
2066
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2075
2076 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2077 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2080 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2081 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2082 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2083
2084 _ASUNAME
2085
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091     $as_echo "PATH: $as_dir"
2092   done
2093 IFS=$as_save_IFS
2094
2095 } >&5
2096
2097 cat >&5 <<_ACEOF
2098
2099
2100 ## ----------- ##
2101 ## Core tests. ##
2102 ## ----------- ##
2103
2104 _ACEOF
2105
2106
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2112 ac_configure_args=
2113 ac_configure_args0=
2114 ac_configure_args1=
2115 ac_must_keep_next=false
2116 for ac_pass in 1 2
2117 do
2118   for ac_arg
2119   do
2120     case $ac_arg in
2121     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123     | -silent | --silent | --silen | --sile | --sil)
2124       continue ;;
2125     *\'*)
2126       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127     esac
2128     case $ac_pass in
2129     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130     2)
2131       as_fn_append ac_configure_args1 " '$ac_arg'"
2132       if test $ac_must_keep_next = true; then
2133         ac_must_keep_next=false # Got value, back to normal.
2134       else
2135         case $ac_arg in
2136           *=* | --config-cache | -C | -disable-* | --disable-* \
2137           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139           | -with-* | --with-* | -without-* | --without-* | --x)
2140             case "$ac_configure_args0 " in
2141               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142             esac
2143             ;;
2144           -* ) ac_must_keep_next=true ;;
2145         esac
2146       fi
2147       as_fn_append ac_configure_args " '$ac_arg'"
2148       ;;
2149     esac
2150   done
2151 done
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2154
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log.  We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161   # Save into config.log some information that might help in debugging.
2162   {
2163     echo
2164
2165     $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2168     echo
2169     # The following way of writing the cache mishandles newlines in values,
2170 (
2171   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172     eval ac_val=\$$ac_var
2173     case $ac_val in #(
2174     *${as_nl}*)
2175       case $ac_var in #(
2176       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178       esac
2179       case $ac_var in #(
2180       _ | IFS | as_nl) ;; #(
2181       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182       *) { eval $ac_var=; unset $ac_var;} ;;
2183       esac ;;
2184     esac
2185   done
2186   (set) 2>&1 |
2187     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188     *${as_nl}ac_space=\ *)
2189       sed -n \
2190         "s/'\''/'\''\\\\'\'''\''/g;
2191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192       ;; #(
2193     *)
2194       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195       ;;
2196     esac |
2197     sort
2198 )
2199     echo
2200
2201     $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2204     echo
2205     for ac_var in $ac_subst_vars
2206     do
2207       eval ac_val=\$$ac_var
2208       case $ac_val in
2209       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210       esac
2211       $as_echo "$ac_var='\''$ac_val'\''"
2212     done | sort
2213     echo
2214
2215     if test -n "$ac_subst_files"; then
2216       $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2219       echo
2220       for ac_var in $ac_subst_files
2221       do
2222         eval ac_val=\$$ac_var
2223         case $ac_val in
2224         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225         esac
2226         $as_echo "$ac_var='\''$ac_val'\''"
2227       done | sort
2228       echo
2229     fi
2230
2231     if test -s confdefs.h; then
2232       $as_echo "## ----------- ##
2233 ## confdefs.h. ##
2234 ## ----------- ##"
2235       echo
2236       cat confdefs.h
2237       echo
2238     fi
2239     test "$ac_signal" != 0 &&
2240       $as_echo "$as_me: caught signal $ac_signal"
2241     $as_echo "$as_me: exit $exit_status"
2242   } >&5
2243   rm -f core *.core core.conftest.* &&
2244     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245     exit $exit_status
2246 ' 0
2247 for ac_signal in 1 2 13 15; do
2248   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2251
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2254
2255 $as_echo "/* confdefs.h */" > confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2281 _ACEOF
2282
2283
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2286 ac_site_file1=NONE
2287 ac_site_file2=NONE
2288 if test -n "$CONFIG_SITE"; then
2289   # We do not want a PATH search for config.site.
2290   case $CONFIG_SITE in #((
2291     -*)  ac_site_file1=./$CONFIG_SITE;;
2292     */*) ac_site_file1=$CONFIG_SITE;;
2293     *)   ac_site_file1=./$CONFIG_SITE;;
2294   esac
2295 elif test "x$prefix" != xNONE; then
2296   ac_site_file1=$prefix/share/config.site
2297   ac_site_file2=$prefix/etc/config.site
2298 else
2299   ac_site_file1=$ac_default_prefix/share/config.site
2300   ac_site_file2=$ac_default_prefix/etc/config.site
2301 fi
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303 do
2304   test "x$ac_site_file" = xNONE && continue
2305   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308     sed 's/^/| /' "$ac_site_file" >&5
2309     . "$ac_site_file" \
2310       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2314   fi
2315 done
2316
2317 if test -r "$cache_file"; then
2318   # Some versions of bash will fail to source /dev/null (special files
2319   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2320   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323     case $cache_file in
2324       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325       *)                      . "./$cache_file";;
2326     esac
2327   fi
2328 else
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331   >$cache_file
2332 fi
2333
2334 # Check that the precious variables saved in the cache have kept the same
2335 # value.
2336 ac_cache_corrupted=false
2337 for ac_var in $ac_precious_vars; do
2338   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339   eval ac_new_set=\$ac_env_${ac_var}_set
2340   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341   eval ac_new_val=\$ac_env_${ac_var}_value
2342   case $ac_old_set,$ac_new_set in
2343     set,)
2344       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346       ac_cache_corrupted=: ;;
2347     ,set)
2348       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350       ac_cache_corrupted=: ;;
2351     ,);;
2352     *)
2353       if test "x$ac_old_val" != "x$ac_new_val"; then
2354         # differences in whitespace do not lead to failure.
2355         ac_old_val_w=`echo x $ac_old_val`
2356         ac_new_val_w=`echo x $ac_new_val`
2357         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360           ac_cache_corrupted=:
2361         else
2362           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364           eval $ac_var=\$ac_old_val
2365         fi
2366         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2367 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2368         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2369 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2370       fi;;
2371   esac
2372   # Pass precious variables to config.status.
2373   if test "$ac_new_set" = set; then
2374     case $ac_new_val in
2375     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376     *) ac_arg=$ac_var=$ac_new_val ;;
2377     esac
2378     case " $ac_configure_args " in
2379       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2380       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2381     esac
2382   fi
2383 done
2384 if $ac_cache_corrupted; then
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 fi
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2394
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402
2403 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2417 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2418 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2419
2420 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2421 -v minor="$RADIUSD_MINOR_VERSION" \
2422 -v incrm="$RADIUSD_INCRM_VERSION" \
2423 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2424
2425 RADIUSD_VERSION_STRING=`cat VERSION`
2426
2427
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2432 _ACEOF
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2437 _ACEOF
2438
2439
2440
2441 # Check whether --enable-developer was given.
2442 if test "${enable_developer+set}" = set; then :
2443   enableval=$enable_developer;  case "$enableval" in
2444   no)
2445     developer=no
2446     ;;
2447   *)
2448     developer=yes
2449   esac
2450
2451 fi
2452
2453
2454 if test -d $srcdir/.git; then
2455   if test "x$developer" != "xno"; then
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2457 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2458     developer="yes"
2459   fi
2460 fi
2461
2462 if test "x$developer" = "xyes"; then
2463   : ${CFLAGS=-g3}
2464 fi
2465
2466
2467 ac_aux_dir=
2468 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2469   if test -f "$ac_dir/install-sh"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/install-sh -c"
2472     break
2473   elif test -f "$ac_dir/install.sh"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/install.sh -c"
2476     break
2477   elif test -f "$ac_dir/shtool"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/shtool install -c"
2480     break
2481   fi
2482 done
2483 if test -z "$ac_aux_dir"; then
2484   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2485 fi
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2494
2495
2496 # Make sure we can run config.sub.
2497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2498   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2499
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2501 $as_echo_n "checking build system type... " >&6; }
2502 if ${ac_cv_build+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   ac_build_alias=$build_alias
2506 test "x$ac_build_alias" = x &&
2507   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508 test "x$ac_build_alias" = x &&
2509   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2511   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2512
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2515 $as_echo "$ac_cv_build" >&6; }
2516 case $ac_cv_build in
2517 *-*-*) ;;
2518 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2519 esac
2520 build=$ac_cv_build
2521 ac_save_IFS=$IFS; IFS='-'
2522 set x $ac_cv_build
2523 shift
2524 build_cpu=$1
2525 build_vendor=$2
2526 shift; shift
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2529 build_os=$*
2530 IFS=$ac_save_IFS
2531 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2532
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2535 $as_echo_n "checking host system type... " >&6; }
2536 if ${ac_cv_host+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   if test "x$host_alias" = x; then
2540   ac_cv_host=$ac_cv_build
2541 else
2542   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2543     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2544 fi
2545
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2548 $as_echo "$ac_cv_host" >&6; }
2549 case $ac_cv_host in
2550 *-*-*) ;;
2551 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2552 esac
2553 host=$ac_cv_host
2554 ac_save_IFS=$IFS; IFS='-'
2555 set x $ac_cv_host
2556 shift
2557 host_cpu=$1
2558 host_vendor=$2
2559 shift; shift
2560 # Remember, the first character of IFS is used to create $*,
2561 # except with old shells:
2562 host_os=$*
2563 IFS=$ac_save_IFS
2564 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2565
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2568 $as_echo_n "checking target system type... " >&6; }
2569 if ${ac_cv_target+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test "x$target_alias" = x; then
2573   ac_cv_target=$ac_cv_host
2574 else
2575   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2576     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2577 fi
2578
2579 fi
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2581 $as_echo "$ac_cv_target" >&6; }
2582 case $ac_cv_target in
2583 *-*-*) ;;
2584 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2585 esac
2586 target=$ac_cv_target
2587 ac_save_IFS=$IFS; IFS='-'
2588 set x $ac_cv_target
2589 shift
2590 target_cpu=$1
2591 target_vendor=$2
2592 shift; shift
2593 # Remember, the first character of IFS is used to create $*,
2594 # except with old shells:
2595 target_os=$*
2596 IFS=$ac_save_IFS
2597 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2598
2599
2600 # The aliases save the names the user supplied, while $host etc.
2601 # will get canonicalized.
2602 test -n "$target_alias" &&
2603   test "$program_prefix$program_suffix$program_transform_name" = \
2604     NONENONEs,x,x, &&
2605   program_prefix=${target_alias}-
2606
2607
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_CC+:} false; then :
2619   $as_echo_n "(cached) " >&6
2620 else
2621   if test -n "$CC"; then
2622   ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629     for ac_exec_ext in '' $ac_executable_extensions; do
2630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636   done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 fi
2652 if test -z "$ac_cv_prog_CC"; then
2653   ac_ct_CC=$CC
2654   # Extract the first word of "gcc", so it can be a program name with args.
2655 set dummy gcc; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test -n "$ac_ct_CC"; then
2662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     for ac_exec_ext in '' $ac_executable_extensions; do
2670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671     ac_cv_prog_ac_ct_CC="gcc"
2672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676   done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2685 else
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690   if test "x$ac_ct_CC" = x; then
2691     CC=""
2692   else
2693     case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2698 esac
2699     CC=$ac_ct_CC
2700   fi
2701 else
2702   CC="$ac_cv_prog_CC"
2703 fi
2704
2705 if test -z "$CC"; then
2706           if test -n "$ac_tool_prefix"; then
2707     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}cc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_CC+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$CC"; then
2715   ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_exec_ext in '' $ac_executable_extensions; do
2723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724     ac_cv_prog_CC="${ac_tool_prefix}cc"
2725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729   done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744   fi
2745 fi
2746 if test -z "$CC"; then
2747   # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_CC+:} false; then :
2752   $as_echo_n "(cached) " >&6
2753 else
2754   if test -n "$CC"; then
2755   ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757   ac_prog_rejected=no
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761   IFS=$as_save_IFS
2762   test -z "$as_dir" && as_dir=.
2763     for ac_exec_ext in '' $ac_executable_extensions; do
2764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766        ac_prog_rejected=yes
2767        continue
2768      fi
2769     ac_cv_prog_CC="cc"
2770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774   done
2775 IFS=$as_save_IFS
2776
2777 if test $ac_prog_rejected = yes; then
2778   # We found a bogon in the path, so make sure we never use it.
2779   set dummy $ac_cv_prog_CC
2780   shift
2781   if test $# != 0; then
2782     # We chose a different compiler from the bogus one.
2783     # However, it has the same basename, so the bogon will be chosen
2784     # first if we set CC to just the basename; use the full file name.
2785     shift
2786     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2787   fi
2788 fi
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$CC"; then
2803   if test -n "$ac_tool_prefix"; then
2804   for ac_prog in cl.exe
2805   do
2806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843     test -n "$CC" && break
2844   done
2845 fi
2846 if test -z "$CC"; then
2847   ac_ct_CC=$CC
2848   for ac_prog in cl.exe
2849 do
2850   # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$ac_ct_CC"; then
2858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_ac_ct_CC="$ac_prog"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887   test -n "$ac_ct_CC" && break
2888 done
2889
2890   if test "x$ac_ct_CC" = x; then
2891     CC=""
2892   else
2893     case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899     CC=$ac_ct_CC
2900   fi
2901 fi
2902
2903 fi
2904
2905
2906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error $? "no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details" "$LINENO" 5; }
2910
2911 # Provide some information about the compiler.
2912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2913 set X $ac_compile
2914 ac_compiler=$2
2915 for ac_option in --version -v -V -qversion; do
2916   { { ac_try="$ac_compiler $ac_option >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922 $as_echo "$ac_try_echo"; } >&5
2923   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2924   ac_status=$?
2925   if test -s conftest.err; then
2926     sed '10a\
2927 ... rest of stderr output deleted ...
2928          10q' conftest.err >conftest.er1
2929     cat conftest.er1 >&5
2930   fi
2931   rm -f conftest.er1 conftest.err
2932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933   test $ac_status = 0; }
2934 done
2935
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2951 # of exeext.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2953 $as_echo_n "checking whether the C compiler works... " >&6; }
2954 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2955
2956 # The possible output files:
2957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2958
2959 ac_rmfiles=
2960 for ac_file in $ac_files
2961 do
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2965   esac
2966 done
2967 rm -f $ac_rmfiles
2968
2969 if { { ac_try="$ac_link_default"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976   (eval "$ac_link_default") 2>&5
2977   ac_status=$?
2978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979   test $ac_status = 0; }; then :
2980   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2981 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2982 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2983 # so that the user can short-circuit this test for compilers unknown to
2984 # Autoconf.
2985 for ac_file in $ac_files ''
2986 do
2987   test -f "$ac_file" || continue
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2990         ;;
2991     [ab].out )
2992         # We found the default executable, but exeext='' is most
2993         # certainly right.
2994         break;;
2995     *.* )
2996         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2997         then :; else
2998            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999         fi
3000         # We set ac_cv_exeext here because the later test for it is not
3001         # safe: cross compilers may not add the suffix if given an `-o'
3002         # argument, so we may need to know it at that point already.
3003         # Even if this section looks crufty: it has the advantage of
3004         # actually working.
3005         break;;
3006     * )
3007         break;;
3008   esac
3009 done
3010 test "$ac_cv_exeext" = no && ac_cv_exeext=
3011
3012 else
3013   ac_file=''
3014 fi
3015 if test -z "$ac_file"; then :
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 $as_echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error 77 "C compiler cannot create executables
3024 See \`config.log' for more details" "$LINENO" 5; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3027 $as_echo "yes" >&6; }
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3030 $as_echo_n "checking for C compiler default output file name... " >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3032 $as_echo "$ac_file" >&6; }
3033 ac_exeext=$ac_cv_exeext
3034
3035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3036 ac_clean_files=$ac_clean_files_save
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { { ac_try="$ac_link"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046   (eval "$ac_link") 2>&5
3047   ac_status=$?
3048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049   test $ac_status = 0; }; then :
3050   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3053 # `rm'.
3054 for ac_file in conftest.exe conftest conftest.*; do
3055   test -f "$ac_file" || continue
3056   case $ac_file in
3057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059           break;;
3060     * ) break;;
3061   esac
3062 done
3063 else
3064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details" "$LINENO" 5; }
3068 fi
3069 rm -f conftest conftest$ac_cv_exeext
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3071 $as_echo "$ac_cv_exeext" >&6; }
3072
3073 rm -f conftest.$ac_ext
3074 EXEEXT=$ac_cv_exeext
3075 ac_exeext=$EXEEXT
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h.  */
3078 #include <stdio.h>
3079 int
3080 main ()
3081 {
3082 FILE *f = fopen ("conftest.out", "w");
3083  return ferror (f) || fclose (f) != 0;
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 ac_clean_files="$ac_clean_files conftest.out"
3090 # Check that the compiler produces executables we can run.  If not, either
3091 # the compiler is broken, or we cross compile.
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3093 $as_echo_n "checking whether we are cross compiling... " >&6; }
3094 if test "$cross_compiling" != yes; then
3095   { { ac_try="$ac_link"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102   (eval "$ac_link") 2>&5
3103   ac_status=$?
3104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105   test $ac_status = 0; }
3106   if { ac_try='./conftest$ac_cv_exeext'
3107   { { case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113   (eval "$ac_try") 2>&5
3114   ac_status=$?
3115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116   test $ac_status = 0; }; }; then
3117     cross_compiling=no
3118   else
3119     if test "$cross_compiling" = maybe; then
3120         cross_compiling=yes
3121     else
3122         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot run C compiled programs.
3125 If you meant to cross compile, use \`--host'.
3126 See \`config.log' for more details" "$LINENO" 5; }
3127     fi
3128   fi
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3131 $as_echo "$cross_compiling" >&6; }
3132
3133 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3134 ac_clean_files=$ac_clean_files_save
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3136 $as_echo_n "checking for suffix of object files... " >&6; }
3137 if ${ac_cv_objext+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.o conftest.obj
3152 if { { ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159   (eval "$ac_compile") 2>&5
3160   ac_status=$?
3161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162   test $ac_status = 0; }; then :
3163   for ac_file in conftest.o conftest.obj conftest.*; do
3164   test -f "$ac_file" || continue;
3165   case $ac_file in
3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3167     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3168        break;;
3169   esac
3170 done
3171 else
3172   $as_echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details" "$LINENO" 5; }
3179 fi
3180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3183 $as_echo "$ac_cv_objext" >&6; }
3184 OBJEXT=$ac_cv_objext
3185 ac_objext=$OBJEXT
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3188 if ${ac_cv_c_compiler_gnu+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197 #ifndef __GNUC__
3198        choke me
3199 #endif
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206   ac_compiler_gnu=yes
3207 else
3208   ac_compiler_gnu=no
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3216 if test $ac_compiler_gnu = yes; then
3217   GCC=yes
3218 else
3219   GCC=
3220 fi
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3225 if ${ac_cv_prog_cc_g+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   ac_save_c_werror_flag=$ac_c_werror_flag
3229    ac_c_werror_flag=yes
3230    ac_cv_prog_cc_g=no
3231    CFLAGS="-g"
3232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244   ac_cv_prog_cc_g=yes
3245 else
3246   CFLAGS=""
3247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259
3260 else
3261   ac_c_werror_flag=$ac_save_c_werror_flag
3262          CFLAGS="-g"
3263          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275   ac_cv_prog_cc_g=yes
3276 fi
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282    ac_c_werror_flag=$ac_save_c_werror_flag
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3285 $as_echo "$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
3287   CFLAGS=$ac_save_CFLAGS
3288 elif test $ac_cv_prog_cc_g = yes; then
3289   if test "$GCC" = yes; then
3290     CFLAGS="-g -O2"
3291   else
3292     CFLAGS="-g"
3293   fi
3294 else
3295   if test "$GCC" = yes; then
3296     CFLAGS="-O2"
3297   else
3298     CFLAGS=
3299   fi
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3303 if ${ac_cv_prog_cc_c89+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   ac_cv_prog_cc_c89=no
3307 ac_save_CC=$CC
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310 #include <stdarg.h>
3311 #include <stdio.h>
3312 struct stat;
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317      char **p;
3318      int i;
3319 {
3320   return p[i];
3321 }
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3323 {
3324   char *s;
3325   va_list v;
3326   va_start (v,p);
3327   s = g (p, va_arg (v,int));
3328   va_end (v);
3329   return s;
3330 }
3331
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3333    function prototypes and stuff, but not '\xHH' hex character constants.
3334    These don't provoke an error unfortunately, instead are silently treated
3335    as 'x'.  The following induces an error, until -std is added to get
3336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3337    array size at least.  It's necessary to write '\x00'==0 to get something
3338    that's true only with -std.  */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342    inside strings and character constants.  */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352 int
3353 main ()
3354 {
3355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 do
3363   CC="$ac_save_CC $ac_arg"
3364   if ac_fn_c_try_compile "$LINENO"; then :
3365   ac_cv_prog_cc_c89=$ac_arg
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext
3368   test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 done
3370 rm -f conftest.$ac_ext
3371 CC=$ac_save_CC
3372
3373 fi
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3376   x)
3377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3379   xno)
3380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3382   *)
3383     CC="$CC $ac_cv_prog_cc_c89"
3384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3388
3389 fi
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397 ac_ext=cpp
3398 ac_cpp='$CXXCPP $CPPFLAGS'
3399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3402 if test -z "$CXX"; then
3403   if test -n "$CCC"; then
3404     CXX=$CCC
3405   else
3406     if test -n "$ac_tool_prefix"; then
3407   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3408   do
3409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_CXX+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   if test -n "$CXX"; then
3417   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   test -z "$as_dir" && as_dir=.
3424     for ac_exec_ext in '' $ac_executable_extensions; do
3425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431   done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 CXX=$ac_cv_prog_CXX
3437 if test -n "$CXX"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3439 $as_echo "$CXX" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446     test -n "$CXX" && break
3447   done
3448 fi
3449 if test -z "$CXX"; then
3450   ac_ct_CXX=$CXX
3451   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3452 do
3453   # Extract the first word of "$ac_prog", so it can be a program name with args.
3454 set dummy $ac_prog; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$ac_ct_CXX"; then
3461   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468     for ac_exec_ext in '' $ac_executable_extensions; do
3469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470     ac_cv_prog_ac_ct_CXX="$ac_prog"
3471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475   done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3481 if test -n "$ac_ct_CXX"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3483 $as_echo "$ac_ct_CXX" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490   test -n "$ac_ct_CXX" && break
3491 done
3492
3493   if test "x$ac_ct_CXX" = x; then
3494     CXX="g++"
3495   else
3496     case $cross_compiling:$ac_tool_warned in
3497 yes:)
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3500 ac_tool_warned=yes ;;
3501 esac
3502     CXX=$ac_ct_CXX
3503   fi
3504 fi
3505
3506   fi
3507 fi
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 for ac_option in --version -v -V -qversion; do
3513   { { ac_try="$ac_compiler $ac_option >&5"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521   ac_status=$?
3522   if test -s conftest.err; then
3523     sed '10a\
3524 ... rest of stderr output deleted ...
3525          10q' conftest.err >conftest.er1
3526     cat conftest.er1 >&5
3527   fi
3528   rm -f conftest.er1 conftest.err
3529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530   test $ac_status = 0; }
3531 done
3532
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3534 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3535 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3536   $as_echo_n "(cached) " >&6
3537 else
3538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544 #ifndef __GNUC__
3545        choke me
3546 #endif
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_cxx_try_compile "$LINENO"; then :
3553   ac_compiler_gnu=yes
3554 else
3555   ac_compiler_gnu=no
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3559
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3562 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3563 if test $ac_compiler_gnu = yes; then
3564   GXX=yes
3565 else
3566   GXX=
3567 fi
3568 ac_test_CXXFLAGS=${CXXFLAGS+set}
3569 ac_save_CXXFLAGS=$CXXFLAGS
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3571 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3572 if ${ac_cv_prog_cxx_g+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3576    ac_cxx_werror_flag=yes
3577    ac_cv_prog_cxx_g=no
3578    CXXFLAGS="-g"
3579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_cxx_try_compile "$LINENO"; then :
3591   ac_cv_prog_cxx_g=yes
3592 else
3593   CXXFLAGS=""
3594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_cxx_try_compile "$LINENO"; then :
3606
3607 else
3608   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609          CXXFLAGS="-g"
3610          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_cxx_try_compile "$LINENO"; then :
3622   ac_cv_prog_cxx_g=yes
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3632 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3633 if test "$ac_test_CXXFLAGS" = set; then
3634   CXXFLAGS=$ac_save_CXXFLAGS
3635 elif test $ac_cv_prog_cxx_g = yes; then
3636   if test "$GXX" = yes; then
3637     CXXFLAGS="-g -O2"
3638   else
3639     CXXFLAGS="-g"
3640   fi
3641 else
3642   if test "$GXX" = yes; then
3643     CXXFLAGS="-O2"
3644   else
3645     CXXFLAGS=
3646   fi
3647 fi
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653
3654
3655
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3663 # On Suns, sometimes $CPP names a directory.
3664 if test -n "$CPP" && test -d "$CPP"; then
3665   CPP=
3666 fi
3667 if test -z "$CPP"; then
3668   if ${ac_cv_prog_CPP+:} false; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671       # Double quotes because CPP needs to be expanded
3672     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3673     do
3674       ac_preproc_ok=false
3675 for ac_c_preproc_warn_flag in '' yes
3676 do
3677   # Use a header file that comes with gcc, so configuring glibc
3678   # with a fresh cross-compiler works.
3679   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680   # <limits.h> exists even on freestanding compilers.
3681   # On the NeXT, cc -E runs the code through the compiler's parser,
3682   # not just through cpp. "Syntax error" is here to catch this case.
3683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685 #ifdef __STDC__
3686 # include <limits.h>
3687 #else
3688 # include <assert.h>
3689 #endif
3690                      Syntax error
3691 _ACEOF
3692 if ac_fn_c_try_cpp "$LINENO"; then :
3693
3694 else
3695   # Broken: fails on valid input.
3696 continue
3697 fi
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3699
3700   # OK, works on sane cases.  Now check whether nonexistent headers
3701   # can be detected and how.
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704 #include <ac_nonexistent.h>
3705 _ACEOF
3706 if ac_fn_c_try_cpp "$LINENO"; then :
3707   # Broken: success on invalid input.
3708 continue
3709 else
3710   # Passes both tests.
3711 ac_preproc_ok=:
3712 break
3713 fi
3714 rm -f conftest.err conftest.i conftest.$ac_ext
3715
3716 done
3717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3718 rm -f conftest.i conftest.err conftest.$ac_ext
3719 if $ac_preproc_ok; then :
3720   break
3721 fi
3722
3723     done
3724     ac_cv_prog_CPP=$CPP
3725
3726 fi
3727   CPP=$ac_cv_prog_CPP
3728 else
3729   ac_cv_prog_CPP=$CPP
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3732 $as_echo "$CPP" >&6; }
3733 ac_preproc_ok=false
3734 for ac_c_preproc_warn_flag in '' yes
3735 do
3736   # Use a header file that comes with gcc, so configuring glibc
3737   # with a fresh cross-compiler works.
3738   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739   # <limits.h> exists even on freestanding compilers.
3740   # On the NeXT, cc -E runs the code through the compiler's parser,
3741   # not just through cpp. "Syntax error" is here to catch this case.
3742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744 #ifdef __STDC__
3745 # include <limits.h>
3746 #else
3747 # include <assert.h>
3748 #endif
3749                      Syntax error
3750 _ACEOF
3751 if ac_fn_c_try_cpp "$LINENO"; then :
3752
3753 else
3754   # Broken: fails on valid input.
3755 continue
3756 fi
3757 rm -f conftest.err conftest.i conftest.$ac_ext
3758
3759   # OK, works on sane cases.  Now check whether nonexistent headers
3760   # can be detected and how.
3761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763 #include <ac_nonexistent.h>
3764 _ACEOF
3765 if ac_fn_c_try_cpp "$LINENO"; then :
3766   # Broken: success on invalid input.
3767 continue
3768 else
3769   # Passes both tests.
3770 ac_preproc_ok=:
3771 break
3772 fi
3773 rm -f conftest.err conftest.i conftest.$ac_ext
3774
3775 done
3776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777 rm -f conftest.i conftest.err conftest.$ac_ext
3778 if $ac_preproc_ok; then :
3779
3780 else
3781   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3784 See \`config.log' for more details" "$LINENO" 5; }
3785 fi
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3796 if ${ac_cv_path_GREP+:} false; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   if test -z "$GREP"; then
3800   ac_path_GREP_found=false
3801   # Loop through the user's path and test for each of PROGNAME-LIST
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807     for ac_prog in grep ggrep; do
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3810       as_fn_executable_p "$ac_path_GREP" || continue
3811 # Check for GNU ac_path_GREP and select it if it is found.
3812   # Check for GNU $ac_path_GREP
3813 case `"$ac_path_GREP" --version 2>&1` in
3814 *GNU*)
3815   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3816 *)
3817   ac_count=0
3818   $as_echo_n 0123456789 >"conftest.in"
3819   while :
3820   do
3821     cat "conftest.in" "conftest.in" >"conftest.tmp"
3822     mv "conftest.tmp" "conftest.in"
3823     cp "conftest.in" "conftest.nl"
3824     $as_echo 'GREP' >> "conftest.nl"
3825     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827     as_fn_arith $ac_count + 1 && ac_count=$as_val
3828     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3829       # Best one so far, save it but keep looking for a better one
3830       ac_cv_path_GREP="$ac_path_GREP"
3831       ac_path_GREP_max=$ac_count
3832     fi
3833     # 10*(2^10) chars as input seems more than enough
3834     test $ac_count -gt 10 && break
3835   done
3836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837 esac
3838
3839       $ac_path_GREP_found && break 3
3840     done
3841   done
3842   done
3843 IFS=$as_save_IFS
3844   if test -z "$ac_cv_path_GREP"; then
3845     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3846   fi
3847 else
3848   ac_cv_path_GREP=$GREP
3849 fi
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3853 $as_echo "$ac_cv_path_GREP" >&6; }
3854  GREP="$ac_cv_path_GREP"
3855
3856
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3858 $as_echo_n "checking for egrep... " >&6; }
3859 if ${ac_cv_path_EGREP+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3863    then ac_cv_path_EGREP="$GREP -E"
3864    else
3865      if test -z "$EGREP"; then
3866   ac_path_EGREP_found=false
3867   # Loop through the user's path and test for each of PROGNAME-LIST
3868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873     for ac_prog in egrep; do
3874     for ac_exec_ext in '' $ac_executable_extensions; do
3875       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876       as_fn_executable_p "$ac_path_EGREP" || continue
3877 # Check for GNU ac_path_EGREP and select it if it is found.
3878   # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3880 *GNU*)
3881   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3882 *)
3883   ac_count=0
3884   $as_echo_n 0123456789 >"conftest.in"
3885   while :
3886   do
3887     cat "conftest.in" "conftest.in" >"conftest.tmp"
3888     mv "conftest.tmp" "conftest.in"
3889     cp "conftest.in" "conftest.nl"
3890     $as_echo 'EGREP' >> "conftest.nl"
3891     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893     as_fn_arith $ac_count + 1 && ac_count=$as_val
3894     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895       # Best one so far, save it but keep looking for a better one
3896       ac_cv_path_EGREP="$ac_path_EGREP"
3897       ac_path_EGREP_max=$ac_count
3898     fi
3899     # 10*(2^10) chars as input seems more than enough
3900     test $ac_count -gt 10 && break
3901   done
3902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3904
3905       $ac_path_EGREP_found && break 3
3906     done
3907   done
3908   done
3909 IFS=$as_save_IFS
3910   if test -z "$ac_cv_path_EGREP"; then
3911     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3912   fi
3913 else
3914   ac_cv_path_EGREP=$EGREP
3915 fi
3916
3917    fi
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3920 $as_echo "$ac_cv_path_EGREP" >&6; }
3921  EGREP="$ac_cv_path_EGREP"
3922
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3925 $as_echo_n "checking for ANSI C header files... " >&6; }
3926 if ${ac_cv_header_stdc+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931 #include <stdlib.h>
3932 #include <stdarg.h>
3933 #include <string.h>
3934 #include <float.h>
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_cv_header_stdc=yes
3946 else
3947   ac_cv_header_stdc=no
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950
3951 if test $ac_cv_header_stdc = yes; then
3952   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955 #include <string.h>
3956
3957 _ACEOF
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959   $EGREP "memchr" >/dev/null 2>&1; then :
3960
3961 else
3962   ac_cv_header_stdc=no
3963 fi
3964 rm -f conftest*
3965
3966 fi
3967
3968 if test $ac_cv_header_stdc = yes; then
3969   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972 #include <stdlib.h>
3973
3974 _ACEOF
3975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3976   $EGREP "free" >/dev/null 2>&1; then :
3977
3978 else
3979   ac_cv_header_stdc=no
3980 fi
3981 rm -f conftest*
3982
3983 fi
3984
3985 if test $ac_cv_header_stdc = yes; then
3986   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3987   if test "$cross_compiling" = yes; then :
3988   :
3989 else
3990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992 #include <ctype.h>
3993 #include <stdlib.h>
3994 #if ((' ' & 0x0FF) == 0x020)
3995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3997 #else
3998 # define ISLOWER(c) \
3999                    (('a' <= (c) && (c) <= 'i') \
4000                      || ('j' <= (c) && (c) <= 'r') \
4001                      || ('s' <= (c) && (c) <= 'z'))
4002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4003 #endif
4004
4005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4006 int
4007 main ()
4008 {
4009   int i;
4010   for (i = 0; i < 256; i++)
4011     if (XOR (islower (i), ISLOWER (i))
4012         || toupper (i) != TOUPPER (i))
4013       return 2;
4014   return 0;
4015 }
4016 _ACEOF
4017 if ac_fn_c_try_run "$LINENO"; then :
4018
4019 else
4020   ac_cv_header_stdc=no
4021 fi
4022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4023   conftest.$ac_objext conftest.beam conftest.$ac_ext
4024 fi
4025
4026 fi
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4029 $as_echo "$ac_cv_header_stdc" >&6; }
4030 if test $ac_cv_header_stdc = yes; then
4031
4032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4033
4034 fi
4035
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4038                   inttypes.h stdint.h unistd.h
4039 do :
4040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4042 "
4043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4044   cat >>confdefs.h <<_ACEOF
4045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 _ACEOF
4047
4048 fi
4049
4050 done
4051
4052
4053
4054   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4055 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4056   MINIX=yes
4057 else
4058   MINIX=
4059 fi
4060
4061
4062   if test "$MINIX" = yes; then
4063
4064 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4065
4066
4067 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4068
4069
4070 $as_echo "#define _MINIX 1" >>confdefs.h
4071
4072   fi
4073
4074
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4076 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4077 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 #         define __EXTENSIONS__ 1
4084           $ac_includes_default
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_safe_to_define___extensions__=yes
4095 else
4096   ac_cv_safe_to_define___extensions__=no
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4101 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4102   test $ac_cv_safe_to_define___extensions__ = yes &&
4103     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4104
4105   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4106
4107   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4108
4109   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4110
4111   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4112
4113
4114
4115
4116 if test $ac_cv_c_compiler_gnu = yes; then
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4118 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4119 if ${ac_cv_prog_gcc_traditional+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122     ac_pattern="Autoconf.*'x'"
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h.  */
4125 #include <sgtty.h>
4126 Autoconf TIOCGETP
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4130   ac_cv_prog_gcc_traditional=yes
4131 else
4132   ac_cv_prog_gcc_traditional=no
4133 fi
4134 rm -f conftest*
4135
4136
4137   if test $ac_cv_prog_gcc_traditional = no; then
4138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h.  */
4140 #include <termio.h>
4141 Autoconf TCGETA
4142 _ACEOF
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4145   ac_cv_prog_gcc_traditional=yes
4146 fi
4147 rm -f conftest*
4148
4149   fi
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4152 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4153   if test $ac_cv_prog_gcc_traditional = yes; then
4154     CC="$CC -traditional"
4155   fi
4156 fi
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4159 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4160 if ${ac_cv_prog_suncc+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   cat > conftest.c <<EOF
4164 #ifdef __SUNPRO_C
4165   yes;
4166 #endif
4167 EOF
4168 if { ac_try='${CC-cc} -E conftest.c'
4169   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4174   ac_cv_prog_suncc=yes
4175 else
4176   ac_cv_prog_suncc=no
4177 fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4180 $as_echo "$ac_cv_prog_suncc" >&6; }
4181 if test -n "$ac_tool_prefix"; then
4182   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_RANLIB+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$RANLIB"; then
4190   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 RANLIB=$ac_cv_prog_RANLIB
4210 if test -n "$RANLIB"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4212 $as_echo "$RANLIB" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 fi
4220 if test -z "$ac_cv_prog_RANLIB"; then
4221   ac_ct_RANLIB=$RANLIB
4222   # Extract the first word of "ranlib", so it can be a program name with args.
4223 set dummy ranlib; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$ac_ct_RANLIB"; then
4230   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237     for ac_exec_ext in '' $ac_executable_extensions; do
4238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239     ac_cv_prog_ac_ct_RANLIB="ranlib"
4240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244   done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4250 if test -n "$ac_ct_RANLIB"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4252 $as_echo "$ac_ct_RANLIB" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258   if test "x$ac_ct_RANLIB" = x; then
4259     RANLIB=":"
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267     RANLIB=$ac_ct_RANLIB
4268   fi
4269 else
4270   RANLIB="$ac_cv_prog_RANLIB"
4271 fi
4272
4273
4274
4275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4276 $as_echo_n "checking if compiler is clang... " >&6; }
4277 if ${ax_cv_cc_clang+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280
4281
4282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289     #ifndef __clang__
4290          not clang
4291     #endif
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298   ax_cv_cc_clang=yes
4299 else
4300   ax_cv_cc_clang=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4306 $as_echo "$ax_cv_cc_clang" >&6; }
4307
4308 if test "x$ax_cv_cc_clang" = "xyes"; then
4309   clang_path="$CC"
4310
4311 else
4312   clang_path=""
4313
4314 fi
4315
4316
4317 if test "x$GCC" = "xyes"; then
4318   CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4319 fi
4320
4321
4322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4323 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4324 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327
4328
4329     CFLAGS_SAVED=$CFLAGS
4330     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4331
4332     ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h.  */
4340
4341 int
4342 main ()
4343 {
4344 return 0;
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350   ax_cv_cc_qunused_arguments_flag="yes"
4351 else
4352   ax_cv_cc_qunused_arguments_flag="no"
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355     ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360
4361
4362     CFLAGS="$CFLAGS_SAVED"
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4366 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4367
4368 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4369   CFLAGS="$CFLAGS -Qunused-arguments"
4370   LDFLAGS="$LDFLAGS -Qunused-arguments"
4371 fi
4372
4373 # Check whether --enable-largefile was given.
4374 if test "${enable_largefile+set}" = set; then :
4375   enableval=$enable_largefile;
4376 fi
4377
4378 if test "$enable_largefile" != no; then
4379
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4382 if ${ac_cv_sys_largefile_CC+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   ac_cv_sys_largefile_CC=no
4386      if test "$GCC" != yes; then
4387        ac_save_CC=$CC
4388        while :; do
4389          # IRIX 6.2 and later do not support large files by default,
4390          # so use the C compiler's -n32 option if that helps.
4391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <sys/types.h>
4394  /* Check that off_t can represent 2**63 - 1 correctly.
4395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396     since some C++ compilers masquerading as C compilers
4397     incorrectly reject 9223372036854775807.  */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400                        && LARGE_OFF_T % 2147483647 == 1)
4401                       ? 1 : -1];
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410          if ac_fn_c_try_compile "$LINENO"; then :
4411   break
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext
4414          CC="$CC -n32"
4415          if ac_fn_c_try_compile "$LINENO"; then :
4416   ac_cv_sys_largefile_CC=' -n32'; break
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext
4419          break
4420        done
4421        CC=$ac_save_CC
4422        rm -f conftest.$ac_ext
4423     fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4427   if test "$ac_cv_sys_largefile_CC" != no; then
4428     CC=$CC$ac_cv_sys_largefile_CC
4429   fi
4430
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4433 if ${ac_cv_sys_file_offset_bits+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   while :; do
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #include <sys/types.h>
4440  /* Check that off_t can represent 2**63 - 1 correctly.
4441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442     since some C++ compilers masquerading as C compilers
4443     incorrectly reject 9223372036854775807.  */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446                        && LARGE_OFF_T % 2147483647 == 1)
4447                       ? 1 : -1];
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_sys_file_offset_bits=no; break
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462 #define _FILE_OFFSET_BITS 64
4463 #include <sys/types.h>
4464  /* Check that off_t can represent 2**63 - 1 correctly.
4465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466     since some C++ compilers masquerading as C compilers
4467     incorrectly reject 9223372036854775807.  */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470                        && LARGE_OFF_T % 2147483647 == 1)
4471                       ? 1 : -1];
4472 int
4473 main ()
4474 {
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   ac_cv_sys_file_offset_bits=64; break
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484   ac_cv_sys_file_offset_bits=unknown
4485   break
4486 done
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4490 case $ac_cv_sys_file_offset_bits in #(
4491   no | unknown) ;;
4492   *)
4493 cat >>confdefs.h <<_ACEOF
4494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4495 _ACEOF
4496 ;;
4497 esac
4498 rm -rf conftest*
4499   if test $ac_cv_sys_file_offset_bits = unknown; then
4500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4502 if ${ac_cv_sys_large_files+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   while :; do
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #include <sys/types.h>
4509  /* Check that off_t can represent 2**63 - 1 correctly.
4510     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511     since some C++ compilers masquerading as C compilers
4512     incorrectly reject 9223372036854775807.  */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515                        && LARGE_OFF_T % 2147483647 == 1)
4516                       ? 1 : -1];
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_cv_sys_large_files=no; break
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533  /* Check that off_t can represent 2**63 - 1 correctly.
4534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535     since some C++ compilers masquerading as C compilers
4536     incorrectly reject 9223372036854775807.  */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539                        && LARGE_OFF_T % 2147483647 == 1)
4540                       ? 1 : -1];
4541 int
4542 main ()
4543 {
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550   ac_cv_sys_large_files=1; break
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553   ac_cv_sys_large_files=unknown
4554   break
4555 done
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4558 $as_echo "$ac_cv_sys_large_files" >&6; }
4559 case $ac_cv_sys_large_files in #(
4560   no | unknown) ;;
4561   *)
4562 cat >>confdefs.h <<_ACEOF
4563 #define _LARGE_FILES $ac_cv_sys_large_files
4564 _ACEOF
4565 ;;
4566 esac
4567 rm -rf conftest*
4568   fi
4569
4570
4571 fi
4572
4573
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4575 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4576 if ${ac_cv_c_bigendian+:} false; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   ac_cv_c_bigendian=unknown
4580     # See if we're dealing with a universal compiler.
4581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 #ifndef __APPLE_CC__
4584                not a universal capable compiler
4585              #endif
4586              typedef int dummy;
4587
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590
4591         # Check for potential -arch flags.  It is not universal unless
4592         # there are at least two -arch flags with different values.
4593         ac_arch=
4594         ac_prev=
4595         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4596          if test -n "$ac_prev"; then
4597            case $ac_word in
4598              i?86 | x86_64 | ppc | ppc64)
4599                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4600                  ac_arch=$ac_word
4601                else
4602                  ac_cv_c_bigendian=universal
4603                  break
4604                fi
4605                ;;
4606            esac
4607            ac_prev=
4608          elif test "x$ac_word" = "x-arch"; then
4609            ac_prev=arch
4610          fi
4611        done
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614     if test $ac_cv_c_bigendian = unknown; then
4615       # See if sys/param.h defines the BYTE_ORDER macro.
4616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <sys/types.h>
4619              #include <sys/param.h>
4620
4621 int
4622 main ()
4623 {
4624 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4625                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4626                      && LITTLE_ENDIAN)
4627               bogus endian macros
4628              #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635   # It does; now see whether it defined to BIG_ENDIAN or not.
4636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #include <sys/types.h>
4639                 #include <sys/param.h>
4640
4641 int
4642 main ()
4643 {
4644 #if BYTE_ORDER != BIG_ENDIAN
4645                  not big endian
4646                 #endif
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653   ac_cv_c_bigendian=yes
4654 else
4655   ac_cv_c_bigendian=no
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660     fi
4661     if test $ac_cv_c_bigendian = unknown; then
4662       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #include <limits.h>
4666
4667 int
4668 main ()
4669 {
4670 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4671               bogus endian macros
4672              #endif
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679   # It does; now see whether it defined to _BIG_ENDIAN or not.
4680          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 #include <limits.h>
4683
4684 int
4685 main ()
4686 {
4687 #ifndef _BIG_ENDIAN
4688                  not big endian
4689                 #endif
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   ac_cv_c_bigendian=yes
4697 else
4698   ac_cv_c_bigendian=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703     fi
4704     if test $ac_cv_c_bigendian = unknown; then
4705       # Compile a test program.
4706       if test "$cross_compiling" = yes; then :
4707   # Try to guess by grepping values from an object file.
4708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710 short int ascii_mm[] =
4711                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4712                 short int ascii_ii[] =
4713                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4714                 int use_ascii (int i) {
4715                   return ascii_mm[i] + ascii_ii[i];
4716                 }
4717                 short int ebcdic_ii[] =
4718                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4719                 short int ebcdic_mm[] =
4720                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4721                 int use_ebcdic (int i) {
4722                   return ebcdic_mm[i] + ebcdic_ii[i];
4723                 }
4724                 extern int foo;
4725
4726 int
4727 main ()
4728 {
4729 return use_ascii (foo) == use_ebcdic (foo);
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4736               ac_cv_c_bigendian=yes
4737             fi
4738             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4739               if test "$ac_cv_c_bigendian" = unknown; then
4740                 ac_cv_c_bigendian=no
4741               else
4742                 # finding both strings is unlikely to happen, but who knows?
4743                 ac_cv_c_bigendian=unknown
4744               fi
4745             fi
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 else
4749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751 $ac_includes_default
4752 int
4753 main ()
4754 {
4755
4756              /* Are we little or big endian?  From Harbison&Steele.  */
4757              union
4758              {
4759                long int l;
4760                char c[sizeof (long int)];
4761              } u;
4762              u.l = 1;
4763              return u.c[sizeof (long int) - 1] == 1;
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_run "$LINENO"; then :
4770   ac_cv_c_bigendian=no
4771 else
4772   ac_cv_c_bigendian=yes
4773 fi
4774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4775   conftest.$ac_objext conftest.beam conftest.$ac_ext
4776 fi
4777
4778     fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4781 $as_echo "$ac_cv_c_bigendian" >&6; }
4782  case $ac_cv_c_bigendian in #(
4783    yes)
4784
4785 $as_echo "#define RADIUS_BIG_ENDIAN 1" >>confdefs.h
4786 ;; #(
4787    no)
4788
4789 $as_echo "#define RADIUS_LITTLE_ENDIAN 1" >>confdefs.h
4790
4791  ;; #(
4792    universal)
4793
4794 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4795
4796      ;; #(
4797    *)
4798      as_fn_error $? "unknown endianness
4799  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4800  esac
4801
4802
4803 # Extract the first word of "gmake", so it can be a program name with args.
4804 set dummy gmake; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_GMAKE+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   if test -n "$GMAKE"; then
4811   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818     for ac_exec_ext in '' $ac_executable_extensions; do
4819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820     ac_cv_prog_GMAKE="yes"
4821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825   done
4826 IFS=$as_save_IFS
4827
4828   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4829 fi
4830 fi
4831 GMAKE=$ac_cv_prog_GMAKE
4832 if test -n "$GMAKE"; then
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4834 $as_echo "$GMAKE" >&6; }
4835 else
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840
4841 if test $GMAKE = no; then
4842   # Extract the first word of "make", so it can be a program name with args.
4843 set dummy make; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_path_MAKE+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   case $MAKE in
4850   [\\/]* | ?:[\\/]*)
4851   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4852   ;;
4853   *)
4854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859     for ac_exec_ext in '' $ac_executable_extensions; do
4860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866   done
4867 IFS=$as_save_IFS
4868
4869   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4870   ;;
4871 esac
4872 fi
4873 MAKE=$ac_cv_path_MAKE
4874 if test -n "$MAKE"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4876 $as_echo "$MAKE" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883 else
4884   # Extract the first word of "gmake", so it can be a program name with args.
4885 set dummy gmake; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_path_MAKE+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   case $MAKE in
4892   [\\/]* | ?:[\\/]*)
4893   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4894   ;;
4895   *)
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910
4911   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4912   ;;
4913 esac
4914 fi
4915 MAKE=$ac_cv_path_MAKE
4916 if test -n "$MAKE"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4918 $as_echo "$MAKE" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4927 if test -z "$makever"; then
4928   as_fn_error $? "GNU Make is not installed.  Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4929 fi
4930
4931
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4933 $as_echo_n "checking number of system cores... " >&6; }
4934 if ${ax_cv_system_cores+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937
4938       ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944       if test "$cross_compiling" = yes; then :
4945   ax_cv_system_cores=
4946
4947 else
4948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h.  */
4950
4951           #include <stdio.h>
4952           #include <stdint.h>
4953           #ifdef _WIN32
4954           #  include <windows.h>
4955           #elif MACOS
4956           #  include <sys/param.h>
4957           #  include <sys/sysctl.h>
4958           #else
4959           #  include <unistd.h>
4960           #endif
4961
4962           int main (int argc, char *argv[])
4963           {
4964             uint32_t count;
4965
4966             #ifdef WIN32
4967             SYSTEM_INFO sysinfo;
4968             GetSystemInfo(&sysinfo);
4969
4970             count = sysinfo.dwNumberOfProcessors;
4971
4972             #elif MACOS
4973             int nm[2];
4974             size_t len = 4;
4975
4976             nm[0] = CTL_HW;
4977             nm[1] = HW_AVAILCPU;
4978             sysctl(nm, 2, &count, &len, NULL, 0);
4979
4980             if(count < 1) {
4981               nm[1] = HW_NCPU;
4982               sysctl(nm, 2, &count, &len, NULL, 0);
4983               if(count < 1) {
4984                 count = 1;
4985               }
4986             }
4987
4988             #else
4989             count = sysconf(_SC_NPROCESSORS_ONLN);
4990             #endif
4991
4992             return count;
4993           }
4994
4995 _ACEOF
4996 if ac_fn_c_try_run "$LINENO"; then :
4997   ax_cv_system_cores=$?
4998 else
4999   ax_cv_system_cores=$?
5000 fi
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002   conftest.$ac_objext conftest.beam conftest.$ac_ext
5003 fi
5004
5005     ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5014 $as_echo "$ax_cv_system_cores" >&6; }
5015
5016
5017
5018
5019 # Extract the first word of "git", so it can be a program name with args.
5020 set dummy git; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_GIT+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$GIT"; then
5027   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_GIT="yes"
5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041   done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5045 fi
5046 fi
5047 GIT=$ac_cv_prog_GIT
5048 if test -n "$GIT"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5050 $as_echo "$GIT" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057
5058
5059 # Check whether --enable-strict-dependencies was given.
5060 if test "${enable_strict_dependencies+set}" = set; then :
5061   enableval=$enable_strict_dependencies;
5062 fi
5063
5064
5065 # Check whether --enable-werror was given.
5066 if test "${enable_werror+set}" = set; then :
5067   enableval=$enable_werror;  case "$enableval" in
5068     no)
5069       werror=no
5070     ;;
5071     *)
5072       werror=yes
5073   esac
5074
5075 fi
5076
5077
5078 docdir='${datadir}/doc/freeradius'
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5080 $as_echo_n "checking docdir... " >&6; }
5081
5082 # Check whether --with-docdir was given.
5083 if test "${with_docdir+set}" = set; then :
5084   withval=$with_docdir;  case "$withval" in
5085   no)
5086     docdir=no
5087     ;;
5088   yes)
5089     ;;
5090   [\\/$]* | ?:[\\/]* )
5091     docdir="$withval"
5092     ;;
5093   *)
5094     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5095     ;;
5096   esac
5097
5098 fi
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5102 $as_echo "$docdir" >&6; }
5103 if test "x$docdir" = xno; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5105 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5106 fi
5107
5108 logdir='${localstatedir}/log/radius'
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5110 $as_echo_n "checking logdir... " >&6; }
5111
5112 # Check whether --with-logdir was given.
5113 if test "${with_logdir+set}" = set; then :
5114   withval=$with_logdir;  case "$withval" in
5115   no)
5116     as_fn_error $? "Need logdir" "$LINENO" 5
5117     ;;
5118   yes)
5119     ;;
5120   [\\/$]* | ?:[\\/]* )
5121     logdir="$withval"
5122     ;;
5123   *)
5124     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5125     ;;
5126   esac
5127
5128 fi
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5132 $as_echo "$logdir" >&6; }
5133
5134 radacctdir='${logdir}/radacct'
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5136 $as_echo_n "checking radacctdir... " >&6; }
5137
5138 # Check whether --with-radacctdir was given.
5139 if test "${with_radacctdir+set}" = set; then :
5140   withval=$with_radacctdir;  case "$withval" in
5141   no)
5142     as_fn_error $? "Need radacctdir" "$LINENO" 5
5143     ;;
5144   yes)
5145     ;;
5146   [\\/$]* | ?:[\\/]* )
5147     radacctdir="$withval"
5148     ;;
5149   *)
5150     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5151     ;;
5152   esac
5153
5154 fi
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5158 $as_echo "$radacctdir" >&6; }
5159
5160 raddbdir='${sysconfdir}/raddb'
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5162 $as_echo_n "checking raddbdir... " >&6; }
5163
5164 # Check whether --with-raddbdir was given.
5165 if test "${with_raddbdir+set}" = set; then :
5166   withval=$with_raddbdir;  case "$withval" in
5167   no)
5168     as_fn_error $? "Need raddbdir" "$LINENO" 5
5169     ;;
5170   yes)
5171     ;;
5172   [\\/$]* | ?:[\\/]* )
5173     raddbdir="$withval"
5174     ;;
5175   *)
5176     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5177     ;;
5178   esac
5179
5180 fi
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5184 $as_echo "$raddbdir" >&6; }
5185
5186 dictdir='${datarootdir}/freeradius'
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5188 $as_echo_n "checking dictdir... " >&6; }
5189
5190 # Check whether --with-dictdir was given.
5191 if test "${with_dictdir+set}" = set; then :
5192   withval=$with_dictdir;  case "$withval" in
5193   no)
5194     as_fn_error $? "Need dictdir" "$LINENO" 5
5195     ;;
5196   yes)
5197     ;;
5198   [\\/$]* | ?:[\\/]* )
5199     dictdir="$withval"
5200     ;;
5201   *)
5202     as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5203     ;;
5204   esac
5205
5206 fi
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5210 $as_echo "$dictdir" >&6; }
5211
5212 modconfdir='${raddbdir}/mods-config'
5213
5214
5215 WITH_ASCEND_BINARY=yes
5216
5217 # Check whether --with-ascend-binary was given.
5218 if test "${with_ascend_binary+set}" = set; then :
5219   withval=$with_ascend_binary;  case "$withval" in
5220   yes)
5221     ;;
5222   *)
5223     WITH_ASCEND_BINARY=no
5224   esac
5225
5226 fi
5227
5228 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5229
5230 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5231
5232 fi
5233
5234 WITH_THREADS=yes
5235
5236 # Check whether --with-threads was given.
5237 if test "${with_threads+set}" = set; then :
5238   withval=$with_threads;  case "$withval" in
5239   yes)
5240     ;;
5241   *)
5242     WITH_THREADS=no
5243   esac
5244
5245 fi
5246
5247
5248 WITH_TCP=yes
5249
5250 # Check whether --with-tcp was given.
5251 if test "${with_tcp+set}" = set; then :
5252   withval=$with_tcp;  case "$withval" in
5253   yes)
5254     ;;
5255   *)
5256     WITH_TCP=no
5257   esac
5258
5259 fi
5260
5261 if test "x$WITH_TCP" = "xyes"; then
5262
5263 $as_echo "#define WITH_TCP 1" >>confdefs.h
5264
5265 fi
5266
5267 WITH_VMPS=yes
5268
5269 # Check whether --with-vmps was given.
5270 if test "${with_vmps+set}" = set; then :
5271   withval=$with_vmps;  case "$withval" in
5272   yes)
5273     ;;
5274   *)
5275     WITH_VMPS=no
5276   esac
5277
5278 fi
5279
5280 if test "x$WITH_VMPS" = "xyes"; then
5281
5282 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5283
5284 fi
5285
5286 WITH_DHCP=yes
5287
5288 # Check whether --with-dhcp was given.
5289 if test "${with_dhcp+set}" = set; then :
5290   withval=$with_dhcp;  case "$withval" in
5291   yes)
5292     ;;
5293   *)
5294     WITH_DHCP=no
5295   esac
5296
5297 fi
5298
5299 if test "x$WITH_DHCP" = "xyes"; then
5300
5301 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5302
5303 fi
5304
5305 STATIC_MODULES=
5306
5307 # Check whether --with-static_modules was given.
5308 if test "${with_static_modules+set}" = set; then :
5309   withval=$with_static_modules;
5310   for i in $withval; do
5311     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5312   done
5313
5314 fi
5315
5316
5317 USE_SHARED_LIBS=yes
5318
5319 # Check whether --with-shared-libs was given.
5320 if test "${with_shared_libs+set}" = set; then :
5321   withval=$with_shared_libs;  case "$withval" in
5322   no)
5323     USE_SHARED_LIBS=no
5324     ;;
5325   *)
5326   esac
5327
5328 fi
5329
5330
5331 MODULES=
5332
5333 # Check whether --with-modules was given.
5334 if test "${with_modules+set}" = set; then :
5335   withval=$with_modules;
5336  for i in $withval; do
5337    MODULES="$MODULES $i"
5338  done
5339
5340 fi
5341
5342
5343 EXPERIMENTAL=
5344
5345 # Check whether --with-experimental-modules was given.
5346 if test "${with_experimental_modules+set}" = set; then :
5347   withval=$with_experimental_modules;  case "$withval" in
5348   yes)
5349     EXPERIMENTAL=yes
5350     ;;
5351   no)
5352     EXPERIMENTAL=no
5353     ;;
5354   *)
5355   esac
5356
5357 fi
5358
5359
5360 WITH_UDPFROMTO=yes
5361
5362 # Check whether --with-udpfromto was given.
5363 if test "${with_udpfromto+set}" = set; then :
5364   withval=$with_udpfromto;  case "$withval" in
5365   yes)
5366     WITH_UDPFROMTO=yes
5367     ;;
5368   *)
5369     WITH_UDPFROMTO=no
5370   esac
5371
5372 fi
5373
5374
5375 if test "x$WITH_UDPFROMTO" = "xyes"; then
5376
5377 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5378
5379 fi
5380
5381
5382
5383 # Check whether --with-rlm-FOO-lib-dir was given.
5384 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5385   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5386   *)
5387     ;;
5388   esac
5389
5390 fi
5391
5392
5393
5394 # Check whether --with-rlm-FOO-include-dir was given.
5395 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5396   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5397   *)
5398     ;;
5399   esac
5400
5401 fi
5402
5403
5404 WITH_OPENSSL=yes
5405
5406 # Check whether --with-openssl was given.
5407 if test "${with_openssl+set}" = set; then :
5408   withval=$with_openssl;  case "$withval" in
5409   no)
5410     WITH_OPENSSL=no
5411     ;;
5412   *)
5413     WITH_OPENSSL=yes
5414     ;;
5415   esac
5416
5417 fi
5418
5419
5420 openssl_lib_dir=
5421
5422 # Check whether --with-openssl-lib-dir was given.
5423 if test "${with_openssl_lib_dir+set}" = set; then :
5424   withval=$with_openssl_lib_dir;  case "$withval" in
5425   *) openssl_lib_dir="$withval"
5426     ;;
5427   esac
5428
5429 fi
5430
5431
5432 openssl_include_dir=
5433
5434 # Check whether --with-openssl-include-dir was given.
5435 if test "${with_openssl_include_dir+set}" = set; then :
5436   withval=$with_openssl_include_dir;  case "$withval" in
5437   *) openssl_include_dir="$withval"
5438     ;;
5439   esac
5440
5441 fi
5442
5443
5444 # Check whether --enable-openssl-version-check was given.
5445 if test "${enable_openssl_version_check+set}" = set; then :
5446   enableval=$enable_openssl_version_check;
5447 fi
5448
5449 if test "x$enable_openssl_version_check" != "xno"; then
5450
5451 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5452
5453   openssl_version_check_config="\
5454         #
5455         #  allow_vulnerable_openssl: Allow the server to start with
5456         #  versions of OpenSSL known to have critical vulnerabilities.
5457         #
5458         #  This check is based on the version number reported by libssl
5459         #  and may not reflect patches applied to libssl by
5460         #  distribution maintainers.
5461         #
5462         allow_vulnerable_openssl = no"
5463 else
5464   openssl_version_check_config=
5465 fi
5466
5467
5468
5469
5470 CHECKRAD=checkrad
5471 # Extract the first word of "perl", so it can be a program name with args.
5472 set dummy perl; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PERL+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $PERL in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5499   ;;
5500 esac
5501 fi
5502 PERL=$ac_cv_path_PERL
5503 if test -n "$PERL"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5505 $as_echo "$PERL" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 if test "x$ac_cv_path_PERL" = "x"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5514 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5515 fi
5516 # Extract the first word of "snmpget", so it can be a program name with args.
5517 set dummy snmpget; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_path_SNMPGET+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   case $SNMPGET in
5524   [\\/]* | ?:[\\/]*)
5525   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5526   ;;
5527   *)
5528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533     for ac_exec_ext in '' $ac_executable_extensions; do
5534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540   done
5541 IFS=$as_save_IFS
5542
5543   ;;
5544 esac
5545 fi
5546 SNMPGET=$ac_cv_path_SNMPGET
5547 if test -n "$SNMPGET"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5549 $as_echo "$SNMPGET" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 if test "x$ac_cv_path_SNMPGET" = "x"; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5558 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5559 fi
5560
5561 # Extract the first word of "snmpwalk", so it can be a program name with args.
5562 set dummy snmpwalk; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_path_SNMPWALK+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $SNMPWALK in
5569   [\\/]* | ?:[\\/]*)
5570   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5571   ;;
5572   *)
5573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588   ;;
5589 esac
5590 fi
5591 SNMPWALK=$ac_cv_path_SNMPWALK
5592 if test -n "$SNMPWALK"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5594 $as_echo "$SNMPWALK" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5603 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5604 fi
5605
5606 # Extract the first word of "rusers", so it can be a program name with args.
5607 set dummy rusers; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_path_RUSERS+:} false; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   case $RUSERS in
5614   [\\/]* | ?:[\\/]*)
5615   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5616   ;;
5617   *)
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630   done
5631 IFS=$as_save_IFS
5632
5633   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5634   ;;
5635 esac
5636 fi
5637 RUSERS=$ac_cv_path_RUSERS
5638 if test -n "$RUSERS"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5640 $as_echo "$RUSERS" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647
5648 missing_dir=`cd $ac_aux_dir && pwd`
5649 # expand $ac_aux_dir to an absolute path
5650 am_aux_dir=`cd $ac_aux_dir && pwd`
5651
5652 if test x"${MISSING+set}" != xset; then
5653   case $am_aux_dir in
5654   *\ * | *\     *)
5655     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5656   *)
5657     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5658   esac
5659 fi
5660 # Use eval to expand $SHELL
5661 if eval "$MISSING --run true"; then
5662   am_missing_run="$MISSING --run "
5663 else
5664   am_missing_run=
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5666 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5667 fi
5668
5669
5670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5671
5672
5673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5674
5675
5676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5677
5678
5679 # Extract the first word of "locate", so it can be a program name with args.
5680 set dummy locate; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_path_LOCATE+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   case $LOCATE in
5687   [\\/]* | ?:[\\/]*)
5688   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5689   ;;
5690   *)
5691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706   ;;
5707 esac
5708 fi
5709 LOCATE=$ac_cv_path_LOCATE
5710 if test -n "$LOCATE"; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5712 $as_echo "$LOCATE" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718
5719 # Extract the first word of "dirname", so it can be a program name with args.
5720 set dummy dirname; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_path_DIRNAME+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   case $DIRNAME in
5727   [\\/]* | ?:[\\/]*)
5728   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5729   ;;
5730   *)
5731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746   ;;
5747 esac
5748 fi
5749 DIRNAME=$ac_cv_path_DIRNAME
5750 if test -n "$DIRNAME"; then
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5752 $as_echo "$DIRNAME" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759 # Extract the first word of "grep", so it can be a program name with args.
5760 set dummy grep; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_path_GREP+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   case $GREP in
5767   [\\/]* | ?:[\\/]*)
5768   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5769   ;;
5770   *)
5771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785
5786   ;;
5787 esac
5788 fi
5789 GREP=$ac_cv_path_GREP
5790 if test -n "$GREP"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5792 $as_echo "$GREP" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799
5800
5801 talloc_lib_dir=
5802
5803 # Check whether --with-talloc-lib-dir was given.
5804 if test "${with_talloc_lib_dir+set}" = set; then :
5805   withval=$with_talloc_lib_dir; case "$withval" in
5806     no)
5807       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5808       ;;
5809     yes)
5810       ;;
5811     *)
5812       talloc_lib_dir="$withval"
5813       ;;
5814   esac
5815 fi
5816
5817
5818 talloc_include_dir=
5819
5820 # Check whether --with-talloc-include-dir was given.
5821 if test "${with_talloc_include_dir+set}" = set; then :
5822   withval=$with_talloc_include_dir; case "$withval" in
5823     no)
5824       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5825       ;;
5826     yes)
5827       ;;
5828     *)
5829       talloc_include_dir="$withval"
5830       ;;
5831   esac
5832 fi
5833
5834
5835 smart_try_dir="$talloc_lib_dir"
5836
5837
5838 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5839 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5840
5841 old_LIBS="$LIBS"
5842 old_CPPFLAGS="$CPPFLAGS"
5843 smart_lib=
5844 smart_ldflags=
5845 smart_lib_dir=
5846
5847 if test "x$smart_try_dir" != "x"; then
5848   for try in $smart_try_dir; do
5849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5850 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5851     LIBS="-ltalloc $old_LIBS"
5852     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h.  */
5855 extern char _talloc();
5856 int
5857 main ()
5858 {
5859 _talloc()
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_link "$LINENO"; then :
5865
5866                  smart_lib="-ltalloc"
5867                  smart_ldflags="-L$try -Wl,-rpath,$try"
5868                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869 $as_echo "yes" >&6; }
5870                  break
5871
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext \
5877     conftest$ac_exeext conftest.$ac_ext
5878   done
5879   LIBS="$old_LIBS"
5880   CPPFLAGS="$old_CPPFLAGS"
5881 fi
5882
5883 if test "x$smart_lib" = "x"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5885 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5886   LIBS="-ltalloc $old_LIBS"
5887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h.  */
5889 extern char _talloc();
5890 int
5891 main ()
5892 {
5893 _talloc()
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899
5900                 smart_lib="-ltalloc"
5901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5902 $as_echo "yes" >&6; }
5903
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext \
5909     conftest$ac_exeext conftest.$ac_ext
5910   LIBS="$old_LIBS"
5911 fi
5912
5913 if test "x$smart_lib" = "x"; then
5914
5915
5916 if test "x$LOCATE" != "x"; then
5917         DIRS=
5918   file=libtalloc${libltdl_cv_shlibext}
5919
5920   for x in `${LOCATE} $file 2>/dev/null`; do
5921                                         base=`echo $x | sed "s%/${file}%%"`
5922     if test "x$x" = "x$base"; then
5923       continue;
5924     fi
5925
5926     dir=`${DIRNAME} $x 2>/dev/null`
5927                 exclude=`echo ${dir} | ${GREP} /home`
5928     if test "x$exclude" != "x"; then
5929       continue
5930     fi
5931
5932                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5933     if test "x$already" = "x"; then
5934       DIRS="$DIRS $dir"
5935     fi
5936   done
5937 fi
5938
5939 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5940
5941
5942
5943 if test "x$LOCATE" != "x"; then
5944         DIRS=
5945   file=libtalloc.a
5946
5947   for x in `${LOCATE} $file 2>/dev/null`; do
5948                                         base=`echo $x | sed "s%/${file}%%"`
5949     if test "x$x" = "x$base"; then
5950       continue;
5951     fi
5952
5953     dir=`${DIRNAME} $x 2>/dev/null`
5954                 exclude=`echo ${dir} | ${GREP} /home`
5955     if test "x$exclude" != "x"; then
5956       continue
5957     fi
5958
5959                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5960     if test "x$already" = "x"; then
5961       DIRS="$DIRS $dir"
5962     fi
5963   done
5964 fi
5965
5966 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5967
5968
5969   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5971 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5972     LIBS="-ltalloc $old_LIBS"
5973     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h.  */
5976 extern char _talloc();
5977 int
5978 main ()
5979 {
5980 _talloc()
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 if ac_fn_c_try_link "$LINENO"; then :
5986
5987                   smart_lib="-ltalloc"
5988                   smart_ldflags="-L$try -Wl,-rpath,$try"
5989                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5990 $as_echo "yes" >&6; }
5991                   break
5992
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext \
5998     conftest$ac_exeext conftest.$ac_ext
5999   done
6000   LIBS="$old_LIBS"
6001   CPPFLAGS="$old_CPPFLAGS"
6002 fi
6003
6004 if test "x$smart_lib" != "x"; then
6005   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6006   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6007   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6008 fi
6009
6010 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6012 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6013   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6014 fi
6015
6016 TALLOC_LIBS="${smart_lib}"
6017 TALLOC_LDFLAGS="${smart_ldflags}"
6018
6019
6020 LIBS="$old_LIBS"
6021
6022 old_CFLAGS=$CFLAGS
6023 if test "x$WITH_THREADS" = "xyes"; then
6024   if test $ac_cv_prog_suncc = "yes"; then
6025     CFLAGS="$CFLAGS -mt"
6026   fi
6027
6028   for ac_header in pthread.h
6029 do :
6030   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6031 if test "x$ac_cv_header_pthread_h" = xyes; then :
6032   cat >>confdefs.h <<_ACEOF
6033 #define HAVE_PTHREAD_H 1
6034 _ACEOF
6035
6036 else
6037
6038       WITH_THREADS="no"
6039       fail=pthread.h
6040
6041 fi
6042
6043 done
6044
6045
6046                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6047 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6048 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lpthread  $LIBS"
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h.  */
6055
6056 /* Override any GCC internal prototype to avoid an error.
6057    Use char because int might match the return type of a GCC
6058    builtin and then its argument prototype would still apply.  */
6059 #ifdef __cplusplus
6060 extern "C"
6061 #endif
6062 char pthread_create ();
6063 int
6064 main ()
6065 {
6066 return pthread_create ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"; then :
6072   ac_cv_lib_pthread_pthread_create=yes
6073 else
6074   ac_cv_lib_pthread_pthread_create=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext \
6077     conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6081 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6082 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6083
6084       CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6085       LIBS="-lpthread $LIBS"
6086
6087 else
6088
6089                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6090 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6091 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   ac_check_lib_save_LIBS=$LIBS
6095 LIBS="-lc_r  $LIBS"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h.  */
6098
6099 /* Override any GCC internal prototype to avoid an error.
6100    Use char because int might match the return type of a GCC
6101    builtin and then its argument prototype would still apply.  */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 char pthread_create ();
6106 int
6107 main ()
6108 {
6109 return pthread_create ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115   ac_cv_lib_c_r_pthread_create=yes
6116 else
6117   ac_cv_lib_c_r_pthread_create=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext \
6120     conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6124 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6125 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6126    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6127 else
6128
6129           WITH_THREADS="no"
6130           fail=-lpthread
6131
6132
6133 fi
6134
6135
6136
6137 fi
6138
6139
6140   if test "x$WITH_THREADS" != "xyes"; then
6141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6142 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6144 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6145   else
6146
6147 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6148
6149   fi
6150 fi
6151
6152 if test "x$WITH_THREADS" != "xyes"; then
6153   CFLAGS=$old_CFLAGS
6154   ac_cv_header_pthread_h="no"
6155   WITH_THREADS=no
6156 else
6157
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6159 $as_echo_n "checking for library containing sem_init... " >&6; }
6160 if ${ac_cv_search_sem_init+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   ac_func_search_save_LIBS=$LIBS
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h.  */
6166
6167 /* Override any GCC internal prototype to avoid an error.
6168    Use char because int might match the return type of a GCC
6169    builtin and then its argument prototype would still apply.  */
6170 #ifdef __cplusplus
6171 extern "C"
6172 #endif
6173 char sem_init ();
6174 int
6175 main ()
6176 {
6177 return sem_init ();
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 for ac_lib in '' pthread sem posix4 rt semaphore; do
6183   if test -z "$ac_lib"; then
6184     ac_res="none required"
6185   else
6186     ac_res=-l$ac_lib
6187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6188   fi
6189   if ac_fn_c_try_link "$LINENO"; then :
6190   ac_cv_search_sem_init=$ac_res
6191 fi
6192 rm -f core conftest.err conftest.$ac_objext \
6193     conftest$ac_exeext
6194   if ${ac_cv_search_sem_init+:} false; then :
6195   break
6196 fi
6197 done
6198 if ${ac_cv_search_sem_init+:} false; then :
6199
6200 else
6201   ac_cv_search_sem_init=no
6202 fi
6203 rm conftest.$ac_ext
6204 LIBS=$ac_func_search_save_LIBS
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6207 $as_echo "$ac_cv_search_sem_init" >&6; }
6208 ac_res=$ac_cv_search_sem_init
6209 if test "$ac_res" != no; then :
6210   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6211
6212 else
6213   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
6214
6215 fi
6216
6217 fi
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6221 if ${ac_cv_lib_dl_dlopen+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   ac_check_lib_save_LIBS=$LIBS
6225 LIBS="-ldl  $LIBS"
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h.  */
6228
6229 /* Override any GCC internal prototype to avoid an error.
6230    Use char because int might match the return type of a GCC
6231    builtin and then its argument prototype would still apply.  */
6232 #ifdef __cplusplus
6233 extern "C"
6234 #endif
6235 char dlopen ();
6236 int
6237 main ()
6238 {
6239 return dlopen ();
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 if ac_fn_c_try_link "$LINENO"; then :
6245   ac_cv_lib_dl_dlopen=yes
6246 else
6247   ac_cv_lib_dl_dlopen=no
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext \
6250     conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_check_lib_save_LIBS
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6255 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6256   cat >>confdefs.h <<_ACEOF
6257 #define HAVE_LIBDL 1
6258 _ACEOF
6259
6260   LIBS="-ldl $LIBS"
6261
6262 fi
6263
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6266 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6267 if ${ac_cv_lib_socket_getsockname+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   ac_check_lib_save_LIBS=$LIBS
6271 LIBS="-lsocket  $LIBS"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h.  */
6274
6275 /* Override any GCC internal prototype to avoid an error.
6276    Use char because int might match the return type of a GCC
6277    builtin and then its argument prototype would still apply.  */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 char getsockname ();
6282 int
6283 main ()
6284 {
6285 return getsockname ();
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_link "$LINENO"; then :
6291   ac_cv_lib_socket_getsockname=yes
6292 else
6293   ac_cv_lib_socket_getsockname=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext \
6296     conftest$ac_exeext conftest.$ac_ext
6297 LIBS=$ac_check_lib_save_LIBS
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6300 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6301 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6302   cat >>confdefs.h <<_ACEOF
6303 #define HAVE_LIBSOCKET 1
6304 _ACEOF
6305
6306   LIBS="-lsocket $LIBS"
6307
6308 fi
6309
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6312 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6313 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-lresolv  $LIBS"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h.  */
6320
6321 /* Override any GCC internal prototype to avoid an error.
6322    Use char because int might match the return type of a GCC
6323    builtin and then its argument prototype would still apply.  */
6324 #ifdef __cplusplus
6325 extern "C"
6326 #endif
6327 char inet_aton ();
6328 int
6329 main ()
6330 {
6331 return inet_aton ();
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337   ac_cv_lib_resolv_inet_aton=yes
6338 else
6339   ac_cv_lib_resolv_inet_aton=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext \
6342     conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6346 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6347 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6348   cat >>confdefs.h <<_ACEOF
6349 #define HAVE_LIBRESOLV 1
6350 _ACEOF
6351
6352   LIBS="-lresolv $LIBS"
6353
6354 fi
6355
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6358 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6359 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   ac_check_lib_save_LIBS=$LIBS
6363 LIBS="-lnsl  $LIBS"
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367 /* Override any GCC internal prototype to avoid an error.
6368    Use char because int might match the return type of a GCC
6369    builtin and then its argument prototype would still apply.  */
6370 #ifdef __cplusplus
6371 extern "C"
6372 #endif
6373 char inet_ntoa ();
6374 int
6375 main ()
6376 {
6377 return inet_ntoa ();
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_link "$LINENO"; then :
6383   ac_cv_lib_nsl_inet_ntoa=yes
6384 else
6385   ac_cv_lib_nsl_inet_ntoa=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext \
6388     conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6392 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6393 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6394   cat >>confdefs.h <<_ACEOF
6395 #define HAVE_LIBNSL 1
6396 _ACEOF
6397
6398   LIBS="-lnsl $LIBS"
6399
6400 fi
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6403 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6404 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-lws2_32  $LIBS"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h.  */
6411
6412 /* Override any GCC internal prototype to avoid an error.
6413    Use char because int might match the return type of a GCC
6414    builtin and then its argument prototype would still apply.  */
6415 #ifdef __cplusplus
6416 extern "C"
6417 #endif
6418 char htonl ();
6419 int
6420 main ()
6421 {
6422 return htonl ();
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 if ac_fn_c_try_link "$LINENO"; then :
6428   ac_cv_lib_ws2_32_htonl=yes
6429 else
6430   ac_cv_lib_ws2_32_htonl=no
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext \
6433     conftest$ac_exeext conftest.$ac_ext
6434 LIBS=$ac_check_lib_save_LIBS
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6437 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6438 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6439   cat >>confdefs.h <<_ACEOF
6440 #define HAVE_LIBWS2_32 1
6441 _ACEOF
6442
6443   LIBS="-lws2_32 $LIBS"
6444
6445 fi
6446
6447
6448 pcap_lib_dir=
6449
6450 # Check whether --with-pcap-lib-dir was given.
6451 if test "${with_pcap_lib_dir+set}" = set; then :
6452   withval=$with_pcap_lib_dir; case "$withval" in
6453     no)
6454       as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6455       ;;
6456     yes)
6457       ;;
6458     *)
6459       pcap_lib_dir="$withval"
6460       ;;
6461   esac
6462 fi
6463
6464
6465 pcap_include_dir=
6466
6467 # Check whether --with-pcap-include-dir was given.
6468 if test "${with_pcap_include_dir+set}" = set; then :
6469   withval=$with_pcap_include_dir; case "$withval" in
6470     no)
6471       as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6472       ;;
6473     yes)
6474       ;;
6475     *)
6476       pcap_include_dir="$withval"
6477       ;;
6478   esac
6479 fi
6480
6481
6482 smart_try_dir="$pcap_lib_dir"
6483
6484
6485 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6486 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6487
6488 old_LIBS="$LIBS"
6489 old_CPPFLAGS="$CPPFLAGS"
6490 smart_lib=
6491 smart_ldflags=
6492 smart_lib_dir=
6493
6494 if test "x$smart_try_dir" != "x"; then
6495   for try in $smart_try_dir; do
6496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6497 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6498     LIBS="-lpcap $old_LIBS"
6499     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502 extern char pcap_open_live();
6503 int
6504 main ()
6505 {
6506 pcap_open_live()
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_link "$LINENO"; then :
6512
6513                  smart_lib="-lpcap"
6514                  smart_ldflags="-L$try -Wl,-rpath,$try"
6515                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516 $as_echo "yes" >&6; }
6517                  break
6518
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext \
6524     conftest$ac_exeext conftest.$ac_ext
6525   done
6526   LIBS="$old_LIBS"
6527   CPPFLAGS="$old_CPPFLAGS"
6528 fi
6529
6530 if test "x$smart_lib" = "x"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6532 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6533   LIBS="-lpcap $old_LIBS"
6534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h.  */
6536 extern char pcap_open_live();
6537 int
6538 main ()
6539 {
6540 pcap_open_live()
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_link "$LINENO"; then :
6546
6547                 smart_lib="-lpcap"
6548                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549 $as_echo "yes" >&6; }
6550
6551 else
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext \
6556     conftest$ac_exeext conftest.$ac_ext
6557   LIBS="$old_LIBS"
6558 fi
6559
6560 if test "x$smart_lib" = "x"; then
6561
6562
6563 if test "x$LOCATE" != "x"; then
6564         DIRS=
6565   file=libpcap${libltdl_cv_shlibext}
6566
6567   for x in `${LOCATE} $file 2>/dev/null`; do
6568                                         base=`echo $x | sed "s%/${file}%%"`
6569     if test "x$x" = "x$base"; then
6570       continue;
6571     fi
6572
6573     dir=`${DIRNAME} $x 2>/dev/null`
6574                 exclude=`echo ${dir} | ${GREP} /home`
6575     if test "x$exclude" != "x"; then
6576       continue
6577     fi
6578
6579                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6580     if test "x$already" = "x"; then
6581       DIRS="$DIRS $dir"
6582     fi
6583   done
6584 fi
6585
6586 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6587
6588
6589
6590 if test "x$LOCATE" != "x"; then
6591         DIRS=
6592   file=libpcap.a
6593
6594   for x in `${LOCATE} $file 2>/dev/null`; do
6595                                         base=`echo $x | sed "s%/${file}%%"`
6596     if test "x$x" = "x$base"; then
6597       continue;
6598     fi
6599
6600     dir=`${DIRNAME} $x 2>/dev/null`
6601                 exclude=`echo ${dir} | ${GREP} /home`
6602     if test "x$exclude" != "x"; then
6603       continue
6604     fi
6605
6606                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6607     if test "x$already" = "x"; then
6608       DIRS="$DIRS $dir"
6609     fi
6610   done
6611 fi
6612
6613 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6614
6615
6616   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6618 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6619     LIBS="-lpcap $old_LIBS"
6620     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h.  */
6623 extern char pcap_open_live();
6624 int
6625 main ()
6626 {
6627 pcap_open_live()
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_c_try_link "$LINENO"; then :
6633
6634                   smart_lib="-lpcap"
6635                   smart_ldflags="-L$try -Wl,-rpath,$try"
6636                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6638                   break
6639
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext \
6645     conftest$ac_exeext conftest.$ac_ext
6646   done
6647   LIBS="$old_LIBS"
6648   CPPFLAGS="$old_CPPFLAGS"
6649 fi
6650
6651 if test "x$smart_lib" != "x"; then
6652   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6653   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6654   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6655 fi
6656
6657 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&5
6659 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&2;}
6660 else
6661
6662 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6663
6664
6665   for ac_func in \
6666     pcap_fopen_offline \
6667     pcap_dump_fopen \
6668     pcap_create \
6669     pcap_activate
6670
6671 do :
6672   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6675   cat >>confdefs.h <<_ACEOF
6676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6677 _ACEOF
6678
6679 fi
6680 done
6681
6682
6683   PCAP_LIBS="${smart_lib}"
6684   PCAP_LDFLAGS="${smart_ldflags}"
6685 fi
6686 LIBS="${old_LIBS}"
6687
6688 collectdclient_lib_dir=
6689
6690 # Check whether --with-collectdclient-lib-dir was given.
6691 if test "${with_collectdclient_lib_dir+set}" = set; then :
6692   withval=$with_collectdclient_lib_dir; case "$withval" in
6693     no)
6694       as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6695       ;;
6696     yes)
6697       ;;
6698     *)
6699       collectdclient_lib_dir="$withval"
6700       ;;
6701   esac
6702 fi
6703
6704
6705 collectdclient_include_dir=
6706
6707 # Check whether --with-collectdclient-include-dir was given.
6708 if test "${with_collectdclient_include_dir+set}" = set; then :
6709   withval=$with_collectdclient_include_dir; case "$withval" in
6710     no)
6711       as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6712       ;;
6713     yes)
6714       ;;
6715     *)
6716       collectdclient_include_dir="$withval"
6717       ;;
6718   esac
6719 fi
6720
6721
6722 smart_try_dir="$collectdclient_lib_dir"
6723
6724
6725 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6726 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6727
6728 old_LIBS="$LIBS"
6729 old_CPPFLAGS="$CPPFLAGS"
6730 smart_lib=
6731 smart_ldflags=
6732 smart_lib_dir=
6733
6734 if test "x$smart_try_dir" != "x"; then
6735   for try in $smart_try_dir; do
6736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6737 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6738     LIBS="-lcollectdclient $old_LIBS"
6739     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h.  */
6742 extern char lcc_connect();
6743 int
6744 main ()
6745 {
6746 lcc_connect()
6747   ;
6748   return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752
6753                  smart_lib="-lcollectdclient"
6754                  smart_ldflags="-L$try -Wl,-rpath,$try"
6755                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6756 $as_echo "yes" >&6; }
6757                  break
6758
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764     conftest$ac_exeext conftest.$ac_ext
6765   done
6766   LIBS="$old_LIBS"
6767   CPPFLAGS="$old_CPPFLAGS"
6768 fi
6769
6770 if test "x$smart_lib" = "x"; then
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6772 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6773   LIBS="-lcollectdclient $old_LIBS"
6774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h.  */
6776 extern char lcc_connect();
6777 int
6778 main ()
6779 {
6780 lcc_connect()
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786
6787                 smart_lib="-lcollectdclient"
6788                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6790
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext \
6796     conftest$ac_exeext conftest.$ac_ext
6797   LIBS="$old_LIBS"
6798 fi
6799
6800 if test "x$smart_lib" = "x"; then
6801
6802
6803 if test "x$LOCATE" != "x"; then
6804         DIRS=
6805   file=libcollectdclient${libltdl_cv_shlibext}
6806
6807   for x in `${LOCATE} $file 2>/dev/null`; do
6808                                         base=`echo $x | sed "s%/${file}%%"`
6809     if test "x$x" = "x$base"; then
6810       continue;
6811     fi
6812
6813     dir=`${DIRNAME} $x 2>/dev/null`
6814                 exclude=`echo ${dir} | ${GREP} /home`
6815     if test "x$exclude" != "x"; then
6816       continue
6817     fi
6818
6819                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6820     if test "x$already" = "x"; then
6821       DIRS="$DIRS $dir"
6822     fi
6823   done
6824 fi
6825
6826 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6827
6828
6829
6830 if test "x$LOCATE" != "x"; then
6831         DIRS=
6832   file=libcollectdclient.a
6833
6834   for x in `${LOCATE} $file 2>/dev/null`; do
6835                                         base=`echo $x | sed "s%/${file}%%"`
6836     if test "x$x" = "x$base"; then
6837       continue;
6838     fi
6839
6840     dir=`${DIRNAME} $x 2>/dev/null`
6841                 exclude=`echo ${dir} | ${GREP} /home`
6842     if test "x$exclude" != "x"; then
6843       continue
6844     fi
6845
6846                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6847     if test "x$already" = "x"; then
6848       DIRS="$DIRS $dir"
6849     fi
6850   done
6851 fi
6852
6853 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6854
6855
6856   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6858 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6859     LIBS="-lcollectdclient $old_LIBS"
6860     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863 extern char lcc_connect();
6864 int
6865 main ()
6866 {
6867 lcc_connect()
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 if ac_fn_c_try_link "$LINENO"; then :
6873
6874                   smart_lib="-lcollectdclient"
6875                   smart_ldflags="-L$try -Wl,-rpath,$try"
6876                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6877 $as_echo "yes" >&6; }
6878                   break
6879
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext \
6885     conftest$ac_exeext conftest.$ac_ext
6886   done
6887   LIBS="$old_LIBS"
6888   CPPFLAGS="$old_CPPFLAGS"
6889 fi
6890
6891 if test "x$smart_lib" != "x"; then
6892   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6893   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6894   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6895 fi
6896
6897 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
6899 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
6900 else
6901   COLLECTDC_LIBS="${smart_lib}"
6902   COLLECTDC_LDFLAGS="${smart_ldflags}"
6903 fi
6904 LIBS="${old_LIBS}"
6905
6906 cap_lib_dir=
6907
6908 # Check whether --with-cap-lib-dir was given.
6909 if test "${with_cap_lib_dir+set}" = set; then :
6910   withval=$with_cap_lib_dir; case "$withval" in
6911     no)
6912       as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
6913       ;;
6914     yes)
6915       ;;
6916     *)
6917       cap_lib_dir="$withval"
6918       ;;
6919   esac
6920 fi
6921
6922
6923 cap_include_dir=
6924
6925 # Check whether --with-cap-include-dir was given.
6926 if test "${with_cap_include_dir+set}" = set; then :
6927   withval=$with_cap_include_dir; case "$withval" in
6928     no)
6929       as_fn_error $? "Need cap-include-dir" "$LINENO" 5
6930       ;;
6931     yes)
6932       ;;
6933     *)
6934       cap_include_dir="$withval"
6935       ;;
6936   esac
6937 fi
6938
6939
6940 smart_try_dir="$cap_lib_dir"
6941
6942
6943 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
6944 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
6945
6946 old_LIBS="$LIBS"
6947 old_CPPFLAGS="$CPPFLAGS"
6948 smart_lib=
6949 smart_ldflags=
6950 smart_lib_dir=
6951
6952 if test "x$smart_try_dir" != "x"; then
6953   for try in $smart_try_dir; do
6954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
6955 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
6956     LIBS="-lcap $old_LIBS"
6957     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h.  */
6960 extern char cap_get_proc();
6961 int
6962 main ()
6963 {
6964 cap_get_proc()
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 if ac_fn_c_try_link "$LINENO"; then :
6970
6971                  smart_lib="-lcap"
6972                  smart_ldflags="-L$try -Wl,-rpath,$try"
6973                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6974 $as_echo "yes" >&6; }
6975                  break
6976
6977 else
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982     conftest$ac_exeext conftest.$ac_ext
6983   done
6984   LIBS="$old_LIBS"
6985   CPPFLAGS="$old_CPPFLAGS"
6986 fi
6987
6988 if test "x$smart_lib" = "x"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
6990 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
6991   LIBS="-lcap $old_LIBS"
6992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994 extern char cap_get_proc();
6995 int
6996 main ()
6997 {
6998 cap_get_proc()
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"; then :
7004
7005                 smart_lib="-lcap"
7006                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 $as_echo "yes" >&6; }
7008
7009 else
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014     conftest$ac_exeext conftest.$ac_ext
7015   LIBS="$old_LIBS"
7016 fi
7017
7018 if test "x$smart_lib" = "x"; then
7019
7020
7021 if test "x$LOCATE" != "x"; then
7022         DIRS=
7023   file=libcap${libltdl_cv_shlibext}
7024
7025   for x in `${LOCATE} $file 2>/dev/null`; do
7026                                         base=`echo $x | sed "s%/${file}%%"`
7027     if test "x$x" = "x$base"; then
7028       continue;
7029     fi
7030
7031     dir=`${DIRNAME} $x 2>/dev/null`
7032                 exclude=`echo ${dir} | ${GREP} /home`
7033     if test "x$exclude" != "x"; then
7034       continue
7035     fi
7036
7037                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7038     if test "x$already" = "x"; then
7039       DIRS="$DIRS $dir"
7040     fi
7041   done
7042 fi
7043
7044 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7045
7046
7047
7048 if test "x$LOCATE" != "x"; then
7049         DIRS=
7050   file=libcap.a
7051
7052   for x in `${LOCATE} $file 2>/dev/null`; do
7053                                         base=`echo $x | sed "s%/${file}%%"`
7054     if test "x$x" = "x$base"; then
7055       continue;
7056     fi
7057
7058     dir=`${DIRNAME} $x 2>/dev/null`
7059                 exclude=`echo ${dir} | ${GREP} /home`
7060     if test "x$exclude" != "x"; then
7061       continue
7062     fi
7063
7064                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7065     if test "x$already" = "x"; then
7066       DIRS="$DIRS $dir"
7067     fi
7068   done
7069 fi
7070
7071 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7072
7073
7074   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7076 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7077     LIBS="-lcap $old_LIBS"
7078     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h.  */
7081 extern char cap_get_proc();
7082 int
7083 main ()
7084 {
7085 cap_get_proc()
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"; then :
7091
7092                   smart_lib="-lcap"
7093                   smart_ldflags="-L$try -Wl,-rpath,$try"
7094                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7095 $as_echo "yes" >&6; }
7096                   break
7097
7098 else
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext \
7103     conftest$ac_exeext conftest.$ac_ext
7104   done
7105   LIBS="$old_LIBS"
7106   CPPFLAGS="$old_CPPFLAGS"
7107 fi
7108
7109 if test "x$smart_lib" != "x"; then
7110   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7111   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7112   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7113 fi
7114
7115 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&5
7117 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7118 else
7119
7120 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7121
7122   HAVE_LIBCAP=1
7123 fi
7124
7125
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7127 $as_echo_n "checking for a readline compatible library... " >&6; }
7128 if ${vl_cv_lib_readline+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131
7132     ORIG_LIBS="$LIBS"
7133     for readline_lib in readline edit editline; do
7134       for termcap_lib in "" termcap curses ncurses; do
7135         if test -z "$termcap_lib"; then
7136           TRY_LIB="-l$readline_lib"
7137         else
7138           TRY_LIB="-l$readline_lib -l$termcap_lib"
7139         fi
7140         LIBS="$ORIG_LIBS $TRY_LIB"
7141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143
7144 /* Override any GCC internal prototype to avoid an error.
7145    Use char because int might match the return type of a GCC
7146    builtin and then its argument prototype would still apply.  */
7147 #ifdef __cplusplus
7148 extern "C"
7149 #endif
7150 char readline ();
7151 int
7152 main ()
7153 {
7154 return readline ();
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_link "$LINENO"; then :
7160   vl_cv_lib_readline="$TRY_LIB"
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext \
7163     conftest$ac_exeext conftest.$ac_ext
7164         if test -n "$vl_cv_lib_readline"; then
7165           break
7166         fi
7167       done
7168       if test -n "$vl_cv_lib_readline"; then
7169         break
7170       fi
7171     done
7172     if test -z "$vl_cv_lib_readline"; then
7173       vl_cv_lib_readline="no"
7174       LIBS="$ORIG_LIBS"
7175     fi
7176
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7179 $as_echo "$vl_cv_lib_readline" >&6; }
7180
7181   if test "$vl_cv_lib_readline" != "no"; then
7182     LIBREADLINE="$vl_cv_lib_readline"
7183
7184 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7185
7186     for ac_header in readline.h readline/readline.h
7187 do :
7188   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7191   cat >>confdefs.h <<_ACEOF
7192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7193 _ACEOF
7194
7195 fi
7196
7197 done
7198
7199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7200 $as_echo_n "checking whether readline supports history... " >&6; }
7201 if ${vl_cv_lib_readline_history+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204
7205       vl_cv_lib_readline_history="no"
7206       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h.  */
7208
7209 /* Override any GCC internal prototype to avoid an error.
7210    Use char because int might match the return type of a GCC
7211    builtin and then its argument prototype would still apply.  */
7212 #ifdef __cplusplus
7213 extern "C"
7214 #endif
7215 char add_history ();
7216 int
7217 main ()
7218 {
7219 return add_history ();
7220   ;
7221   return 0;
7222 }
7223 _ACEOF
7224 if ac_fn_c_try_link "$LINENO"; then :
7225   vl_cv_lib_readline_history="yes"
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext \
7228     conftest$ac_exeext conftest.$ac_ext
7229
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7232 $as_echo "$vl_cv_lib_readline_history" >&6; }
7233     if test "$vl_cv_lib_readline_history" = "yes"; then
7234
7235 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7236
7237       for ac_header in history.h readline/history.h
7238 do :
7239   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7242   cat >>confdefs.h <<_ACEOF
7243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7244 _ACEOF
7245
7246 fi
7247
7248 done
7249
7250     fi
7251   fi
7252
7253
7254
7255
7256 smart_try_dir="$talloc_include_dir"
7257
7258
7259 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7260 old_CPPFLAGS="$CPPFLAGS"
7261 smart_include=
7262 smart_include_dir="/usr/local/include /opt/include"
7263
7264 _smart_try_dir=
7265 _smart_include_dir=
7266
7267 for _prefix in $smart_prefix ""; do
7268   for _dir in $smart_try_dir; do
7269     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7270   done
7271
7272   for _dir in $smart_include_dir; do
7273     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7274   done
7275 done
7276
7277 if test "x$_smart_try_dir" != "x"; then
7278   for try in $_smart_try_dir; do
7279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7280 $as_echo_n "checking for talloc.h in $try... " >&6; }
7281     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284
7285                     #include <talloc.h>
7286 int
7287 main ()
7288 {
7289 int a = 1;
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295
7296                      smart_include="-isystem $try"
7297                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7298 $as_echo "yes" >&6; }
7299                      break
7300
7301 else
7302
7303                      smart_include=
7304                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309   done
7310   CPPFLAGS="$old_CPPFLAGS"
7311 fi
7312
7313 if test "x$smart_include" = "x"; then
7314   for _prefix in $smart_prefix; do
7315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7316 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7317
7318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h.  */
7320
7321                     #include <talloc.h>
7322 int
7323 main ()
7324 {
7325 int a = 1;
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331
7332                      smart_include="-isystem ${_prefix}/"
7333                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334 $as_echo "yes" >&6; }
7335                      break
7336
7337 else
7338
7339                      smart_include=
7340                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345   done
7346 fi
7347
7348 if test "x$smart_include" = "x"; then
7349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7350 $as_echo_n "checking for talloc.h... " >&6; }
7351
7352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354
7355                     #include <talloc.h>
7356 int
7357 main ()
7358 {
7359 int a = 1;
7360   ;
7361   return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365
7366                      smart_include=" "
7367                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7368 $as_echo "yes" >&6; }
7369                      break
7370
7371 else
7372
7373                      smart_include=
7374                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380
7381 if test "x$smart_include" = "x"; then
7382
7383   for prefix in $smart_prefix; do
7384
7385
7386 if test "x$LOCATE" != "x"; then
7387         DIRS=
7388   file="${_prefix}/${1}"
7389
7390   for x in `${LOCATE} $file 2>/dev/null`; do
7391                                         base=`echo $x | sed "s%/${file}%%"`
7392     if test "x$x" = "x$base"; then
7393       continue;
7394     fi
7395
7396     dir=`${DIRNAME} $x 2>/dev/null`
7397                 exclude=`echo ${dir} | ${GREP} /home`
7398     if test "x$exclude" != "x"; then
7399       continue
7400     fi
7401
7402                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7403     if test "x$already" = "x"; then
7404       DIRS="$DIRS $dir"
7405     fi
7406   done
7407 fi
7408
7409 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7410
7411   done
7412
7413
7414 if test "x$LOCATE" != "x"; then
7415         DIRS=
7416   file=talloc.h
7417
7418   for x in `${LOCATE} $file 2>/dev/null`; do
7419                                         base=`echo $x | sed "s%/${file}%%"`
7420     if test "x$x" = "x$base"; then
7421       continue;
7422     fi
7423
7424     dir=`${DIRNAME} $x 2>/dev/null`
7425                 exclude=`echo ${dir} | ${GREP} /home`
7426     if test "x$exclude" != "x"; then
7427       continue
7428     fi
7429
7430                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7431     if test "x$already" = "x"; then
7432       DIRS="$DIRS $dir"
7433     fi
7434   done
7435 fi
7436
7437 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7438
7439
7440   for try in $_smart_include_dir; do
7441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7442 $as_echo_n "checking for talloc.h in $try... " >&6; }
7443     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446
7447                     #include <talloc.h>
7448 int
7449 main ()
7450 {
7451 int a = 1;
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457
7458                      smart_include="-isystem $try"
7459                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7460 $as_echo "yes" >&6; }
7461                      break
7462
7463 else
7464
7465                      smart_include=
7466                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471   done
7472   CPPFLAGS="$old_CPPFLAGS"
7473 fi
7474
7475 if test "x$smart_include" != "x"; then
7476   eval "ac_cv_header_$ac_safe=yes"
7477   CPPFLAGS="$smart_include $old_CPPFLAGS"
7478   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7479 fi
7480
7481 smart_prefix=
7482
7483 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7485 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7486   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7487 fi
7488
7489 case "$host" in
7490   *-interix*)
7491     CFLAGS="$CFLAGS -D_ALL_SOURCE"
7492     ;;
7493   *-darwin*)
7494     CFLAGS="$CFLAGS -DDARWIN"
7495     LIBS="-framework DirectoryService $LIBS"
7496
7497 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7498
7499     ;;
7500 esac
7501
7502 ac_header_dirent=no
7503 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7504   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7506 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7507 if eval \${$as_ac_Header+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h.  */
7512 #include <sys/types.h>
7513 #include <$ac_hdr>
7514
7515 int
7516 main ()
7517 {
7518 if ((DIR *) 0)
7519 return 0;
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525   eval "$as_ac_Header=yes"
7526 else
7527   eval "$as_ac_Header=no"
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 eval ac_res=\$$as_ac_Header
7532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7533 $as_echo "$ac_res" >&6; }
7534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7535   cat >>confdefs.h <<_ACEOF
7536 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7537 _ACEOF
7538
7539 ac_header_dirent=$ac_hdr; break
7540 fi
7541
7542 done
7543 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7544 if test $ac_header_dirent = dirent.h; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7546 $as_echo_n "checking for library containing opendir... " >&6; }
7547 if ${ac_cv_search_opendir+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   ac_func_search_save_LIBS=$LIBS
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h.  */
7553
7554 /* Override any GCC internal prototype to avoid an error.
7555    Use char because int might match the return type of a GCC
7556    builtin and then its argument prototype would still apply.  */
7557 #ifdef __cplusplus
7558 extern "C"
7559 #endif
7560 char opendir ();
7561 int
7562 main ()
7563 {
7564 return opendir ();
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 for ac_lib in '' dir; do
7570   if test -z "$ac_lib"; then
7571     ac_res="none required"
7572   else
7573     ac_res=-l$ac_lib
7574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7575   fi
7576   if ac_fn_c_try_link "$LINENO"; then :
7577   ac_cv_search_opendir=$ac_res
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext \
7580     conftest$ac_exeext
7581   if ${ac_cv_search_opendir+:} false; then :
7582   break
7583 fi
7584 done
7585 if ${ac_cv_search_opendir+:} false; then :
7586
7587 else
7588   ac_cv_search_opendir=no
7589 fi
7590 rm conftest.$ac_ext
7591 LIBS=$ac_func_search_save_LIBS
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7594 $as_echo "$ac_cv_search_opendir" >&6; }
7595 ac_res=$ac_cv_search_opendir
7596 if test "$ac_res" != no; then :
7597   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7598
7599 fi
7600
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7603 $as_echo_n "checking for library containing opendir... " >&6; }
7604 if ${ac_cv_search_opendir+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   ac_func_search_save_LIBS=$LIBS
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h.  */
7610
7611 /* Override any GCC internal prototype to avoid an error.
7612    Use char because int might match the return type of a GCC
7613    builtin and then its argument prototype would still apply.  */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char opendir ();
7618 int
7619 main ()
7620 {
7621 return opendir ();
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 for ac_lib in '' x; do
7627   if test -z "$ac_lib"; then
7628     ac_res="none required"
7629   else
7630     ac_res=-l$ac_lib
7631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7632   fi
7633   if ac_fn_c_try_link "$LINENO"; then :
7634   ac_cv_search_opendir=$ac_res
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext \
7637     conftest$ac_exeext
7638   if ${ac_cv_search_opendir+:} false; then :
7639   break
7640 fi
7641 done
7642 if ${ac_cv_search_opendir+:} false; then :
7643
7644 else
7645   ac_cv_search_opendir=no
7646 fi
7647 rm conftest.$ac_ext
7648 LIBS=$ac_func_search_save_LIBS
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7651 $as_echo "$ac_cv_search_opendir" >&6; }
7652 ac_res=$ac_cv_search_opendir
7653 if test "$ac_res" != no; then :
7654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7655
7656 fi
7657
7658 fi
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7661 $as_echo_n "checking for ANSI C header files... " >&6; }
7662 if ${ac_cv_header_stdc+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h.  */
7667 #include <stdlib.h>
7668 #include <stdarg.h>
7669 #include <string.h>
7670 #include <float.h>
7671
7672 int
7673 main ()
7674 {
7675
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681   ac_cv_header_stdc=yes
7682 else
7683   ac_cv_header_stdc=no
7684 fi
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686
7687 if test $ac_cv_header_stdc = yes; then
7688   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691 #include <string.h>
7692
7693 _ACEOF
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695   $EGREP "memchr" >/dev/null 2>&1; then :
7696
7697 else
7698   ac_cv_header_stdc=no
7699 fi
7700 rm -f conftest*
7701
7702 fi
7703
7704 if test $ac_cv_header_stdc = yes; then
7705   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h.  */
7708 #include <stdlib.h>
7709
7710 _ACEOF
7711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7712   $EGREP "free" >/dev/null 2>&1; then :
7713
7714 else
7715   ac_cv_header_stdc=no
7716 fi
7717 rm -f conftest*
7718
7719 fi
7720
7721 if test $ac_cv_header_stdc = yes; then
7722   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7723   if test "$cross_compiling" = yes; then :
7724   :
7725 else
7726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728 #include <ctype.h>
7729 #include <stdlib.h>
7730 #if ((' ' & 0x0FF) == 0x020)
7731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7733 #else
7734 # define ISLOWER(c) \
7735                    (('a' <= (c) && (c) <= 'i') \
7736                      || ('j' <= (c) && (c) <= 'r') \
7737                      || ('s' <= (c) && (c) <= 'z'))
7738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7739 #endif
7740
7741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7742 int
7743 main ()
7744 {
7745   int i;
7746   for (i = 0; i < 256; i++)
7747     if (XOR (islower (i), ISLOWER (i))
7748         || toupper (i) != TOUPPER (i))
7749       return 2;
7750   return 0;
7751 }
7752 _ACEOF
7753 if ac_fn_c_try_run "$LINENO"; then :
7754
7755 else
7756   ac_cv_header_stdc=no
7757 fi
7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7759   conftest.$ac_objext conftest.beam conftest.$ac_ext
7760 fi
7761
7762 fi
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7765 $as_echo "$ac_cv_header_stdc" >&6; }
7766 if test $ac_cv_header_stdc = yes; then
7767
7768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7769
7770 fi
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7773 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7774 if ${ac_cv_header_time+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7781 #include <time.h>
7782
7783 int
7784 main ()
7785 {
7786 if ((struct tm *) 0)
7787 return 0;
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793   ac_cv_header_time=yes
7794 else
7795   ac_cv_header_time=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7800 $as_echo "$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7802
7803 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7804
7805 fi
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7808 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7809 if ${ac_cv_header_sys_wait_h+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h.  */
7814 #include <sys/types.h>
7815 #include <sys/wait.h>
7816 #ifndef WEXITSTATUS
7817 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7818 #endif
7819 #ifndef WIFEXITED
7820 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7821 #endif
7822
7823 int
7824 main ()
7825 {
7826   int s;
7827   wait (&s);
7828   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834   ac_cv_header_sys_wait_h=yes
7835 else
7836   ac_cv_header_sys_wait_h=no
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7841 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7842 if test $ac_cv_header_sys_wait_h = yes; then
7843
7844 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7845
7846 fi
7847
7848
7849 for ac_header in \
7850   dlfcn.h \
7851   unistd.h \
7852   crypt.h \
7853   errno.h \
7854   resource.h \
7855   sys/resource.h \
7856   getopt.h \
7857   malloc.h \
7858   utmp.h \
7859   utmpx.h \
7860   signal.h \
7861   sys/select.h \
7862   syslog.h \
7863   inttypes.h \
7864   stdint.h \
7865   stdbool.h \
7866   stdio.h \
7867   netdb.h \
7868   semaphore.h \
7869   arpa/inet.h \
7870   netinet/in.h \
7871   sys/types.h \
7872   sys/socket.h \
7873   winsock.h \
7874   utime.h \
7875   sys/time.h \
7876   sys/wait.h \
7877   sys/security.h \
7878   fcntl.h \
7879   sys/fcntl.h \
7880   sys/prctl.h \
7881   sys/ptrace.h \
7882   sys/un.h \
7883   glob.h \
7884   prot.h \
7885   pwd.h \
7886   grp.h \
7887   stddef.h \
7888   fnmatch.h \
7889   sia.h \
7890   siad.h \
7891   features.h \
7892   limits.h \
7893   sys/event.h
7894
7895 do :
7896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7899   cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 _ACEOF
7902
7903 fi
7904
7905 done
7906
7907
7908 for ac_header in net/if.h
7909 do :
7910   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7911     #ifdef HAVE_SYS_SOCKET_H
7912     #  include <sys/socket.h>
7913     #endif
7914
7915
7916 "
7917 if test "x$ac_cv_header_net_if_h" = xyes; then :
7918   cat >>confdefs.h <<_ACEOF
7919 #define HAVE_NET_IF_H 1
7920 _ACEOF
7921
7922 fi
7923
7924 done
7925
7926
7927 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7928 then
7929
7930 $as_echo "#define OSFC2 /**/" >>confdefs.h
7931
7932 fi
7933
7934 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7935 then
7936
7937 $as_echo "#define OSFSIA /**/" >>confdefs.h
7938
7939 fi
7940
7941 if test "x$WITH_OPENSSL" = xyes; then
7942   OLD_LIBS="$LIBS"
7943
7944         CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
7945
7946         smart_try_dir="$openssl_lib_dir"
7947
7948
7949 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7950 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7951
7952 old_LIBS="$LIBS"
7953 old_CPPFLAGS="$CPPFLAGS"
7954 smart_lib=
7955 smart_ldflags=
7956 smart_lib_dir=
7957
7958 if test "x$smart_try_dir" != "x"; then
7959   for try in $smart_try_dir; do
7960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7961 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7962     LIBS="-lcrypto $old_LIBS"
7963     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966 extern char DH_new();
7967 int
7968 main ()
7969 {
7970 DH_new()
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976
7977                  smart_lib="-lcrypto"
7978                  smart_ldflags="-L$try -Wl,-rpath,$try"
7979                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7980 $as_echo "yes" >&6; }
7981                  break
7982
7983 else
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext conftest.$ac_ext
7989   done
7990   LIBS="$old_LIBS"
7991   CPPFLAGS="$old_CPPFLAGS"
7992 fi
7993
7994 if test "x$smart_lib" = "x"; then
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7996 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7997   LIBS="-lcrypto $old_LIBS"
7998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h.  */
8000 extern char DH_new();
8001 int
8002 main ()
8003 {
8004 DH_new()
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_link "$LINENO"; then :
8010
8011                 smart_lib="-lcrypto"
8012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8013 $as_echo "yes" >&6; }
8014
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext \
8020     conftest$ac_exeext conftest.$ac_ext
8021   LIBS="$old_LIBS"
8022 fi
8023
8024 if test "x$smart_lib" = "x"; then
8025
8026
8027 if test "x$LOCATE" != "x"; then
8028         DIRS=
8029   file=libcrypto${libltdl_cv_shlibext}
8030
8031   for x in `${LOCATE} $file 2>/dev/null`; do
8032                                         base=`echo $x | sed "s%/${file}%%"`
8033     if test "x$x" = "x$base"; then
8034       continue;
8035     fi
8036
8037     dir=`${DIRNAME} $x 2>/dev/null`
8038                 exclude=`echo ${dir} | ${GREP} /home`
8039     if test "x$exclude" != "x"; then
8040       continue
8041     fi
8042
8043                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8044     if test "x$already" = "x"; then
8045       DIRS="$DIRS $dir"
8046     fi
8047   done
8048 fi
8049
8050 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8051
8052
8053
8054 if test "x$LOCATE" != "x"; then
8055         DIRS=
8056   file=libcrypto.a
8057
8058   for x in `${LOCATE} $file 2>/dev/null`; do
8059                                         base=`echo $x | sed "s%/${file}%%"`
8060     if test "x$x" = "x$base"; then
8061       continue;
8062     fi
8063
8064     dir=`${DIRNAME} $x 2>/dev/null`
8065                 exclude=`echo ${dir} | ${GREP} /home`
8066     if test "x$exclude" != "x"; then
8067       continue
8068     fi
8069
8070                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8071     if test "x$already" = "x"; then
8072       DIRS="$DIRS $dir"
8073     fi
8074   done
8075 fi
8076
8077 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8078
8079
8080   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8082 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8083     LIBS="-lcrypto $old_LIBS"
8084     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087 extern char DH_new();
8088 int
8089 main ()
8090 {
8091 DH_new()
8092   ;
8093   return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097
8098                   smart_lib="-lcrypto"
8099                   smart_ldflags="-L$try -Wl,-rpath,$try"
8100                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8102                   break
8103
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext \
8109     conftest$ac_exeext conftest.$ac_ext
8110   done
8111   LIBS="$old_LIBS"
8112   CPPFLAGS="$old_CPPFLAGS"
8113 fi
8114
8115 if test "x$smart_lib" != "x"; then
8116   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8117   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8118   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8119 fi
8120
8121   if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8122
8123 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8124
8125     OPENSSL_LIBS="$smart_lib"
8126     OPENSSL_LDFLAGS="$smart_ldflags"
8127
8128
8129
8130 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8131 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8132
8133 old_LIBS="$LIBS"
8134 old_CPPFLAGS="$CPPFLAGS"
8135 smart_lib=
8136 smart_ldflags=
8137 smart_lib_dir=
8138
8139 if test "x$smart_try_dir" != "x"; then
8140   for try in $smart_try_dir; do
8141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8142 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8143     LIBS="-lssl $old_LIBS"
8144     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147 extern char SSL_new();
8148 int
8149 main ()
8150 {
8151 SSL_new()
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"; then :
8157
8158                  smart_lib="-lssl"
8159                  smart_ldflags="-L$try -Wl,-rpath,$try"
8160                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8161 $as_echo "yes" >&6; }
8162                  break
8163
8164 else
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext \
8169     conftest$ac_exeext conftest.$ac_ext
8170   done
8171   LIBS="$old_LIBS"
8172   CPPFLAGS="$old_CPPFLAGS"
8173 fi
8174
8175 if test "x$smart_lib" = "x"; then
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8177 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8178   LIBS="-lssl $old_LIBS"
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181 extern char SSL_new();
8182 int
8183 main ()
8184 {
8185 SSL_new()
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191
8192                 smart_lib="-lssl"
8193                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8194 $as_echo "yes" >&6; }
8195
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext \
8201     conftest$ac_exeext conftest.$ac_ext
8202   LIBS="$old_LIBS"
8203 fi
8204
8205 if test "x$smart_lib" = "x"; then
8206
8207
8208 if test "x$LOCATE" != "x"; then
8209         DIRS=
8210   file=libssl${libltdl_cv_shlibext}
8211
8212   for x in `${LOCATE} $file 2>/dev/null`; do
8213                                         base=`echo $x | sed "s%/${file}%%"`
8214     if test "x$x" = "x$base"; then
8215       continue;
8216     fi
8217
8218     dir=`${DIRNAME} $x 2>/dev/null`
8219                 exclude=`echo ${dir} | ${GREP} /home`
8220     if test "x$exclude" != "x"; then
8221       continue
8222     fi
8223
8224                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8225     if test "x$already" = "x"; then
8226       DIRS="$DIRS $dir"
8227     fi
8228   done
8229 fi
8230
8231 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8232
8233
8234
8235 if test "x$LOCATE" != "x"; then
8236         DIRS=
8237   file=libssl.a
8238
8239   for x in `${LOCATE} $file 2>/dev/null`; do
8240                                         base=`echo $x | sed "s%/${file}%%"`
8241     if test "x$x" = "x$base"; then
8242       continue;
8243     fi
8244
8245     dir=`${DIRNAME} $x 2>/dev/null`
8246                 exclude=`echo ${dir} | ${GREP} /home`
8247     if test "x$exclude" != "x"; then
8248       continue
8249     fi
8250
8251                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8252     if test "x$already" = "x"; then
8253       DIRS="$DIRS $dir"
8254     fi
8255   done
8256 fi
8257
8258 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8259
8260
8261   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8263 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8264     LIBS="-lssl $old_LIBS"
8265     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 extern char SSL_new();
8269 int
8270 main ()
8271 {
8272 SSL_new()
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278
8279                   smart_lib="-lssl"
8280                   smart_ldflags="-L$try -Wl,-rpath,$try"
8281                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8282 $as_echo "yes" >&6; }
8283                   break
8284
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290     conftest$ac_exeext conftest.$ac_ext
8291   done
8292   LIBS="$old_LIBS"
8293   CPPFLAGS="$old_CPPFLAGS"
8294 fi
8295
8296 if test "x$smart_lib" != "x"; then
8297   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8298   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8299   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8300 fi
8301
8302     if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8303       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8305 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8306 See \`config.log' for more details" "$LINENO" 5; }
8307     else
8308
8309 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8310
8311       OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8312
8313       if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8314         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8316 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8317 See \`config.log' for more details" "$LINENO" 5; }
8318       fi
8319     fi
8320   else
8321     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8323 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8324 See \`config.log' for more details" "$LINENO" 5; }
8325   fi
8326
8327   smart_try_dir="$openssl_include_dir"
8328
8329
8330 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8331 old_CPPFLAGS="$CPPFLAGS"
8332 smart_include=
8333 smart_include_dir="/usr/local/include /opt/include"
8334
8335 _smart_try_dir=
8336 _smart_include_dir=
8337
8338 for _prefix in $smart_prefix ""; do
8339   for _dir in $smart_try_dir; do
8340     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8341   done
8342
8343   for _dir in $smart_include_dir; do
8344     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8345   done
8346 done
8347
8348 if test "x$_smart_try_dir" != "x"; then
8349   for try in $_smart_try_dir; do
8350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8351 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8352     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h.  */
8355
8356                     #include <openssl/ssl.h>
8357 int
8358 main ()
8359 {
8360 int a = 1;
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"; then :
8366
8367                      smart_include="-isystem $try"
8368                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369 $as_echo "yes" >&6; }
8370                      break
8371
8372 else
8373
8374                      smart_include=
8375                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380   done
8381   CPPFLAGS="$old_CPPFLAGS"
8382 fi
8383
8384 if test "x$smart_include" = "x"; then
8385   for _prefix in $smart_prefix; do
8386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8387 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8388
8389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h.  */
8391
8392                     #include <openssl/ssl.h>
8393 int
8394 main ()
8395 {
8396 int a = 1;
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402
8403                      smart_include="-isystem ${_prefix}/"
8404                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8406                      break
8407
8408 else
8409
8410                      smart_include=
8411                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416   done
8417 fi
8418
8419 if test "x$smart_include" = "x"; then
8420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8421 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8422
8423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h.  */
8425
8426                     #include <openssl/ssl.h>
8427 int
8428 main ()
8429 {
8430 int a = 1;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 if ac_fn_c_try_compile "$LINENO"; then :
8436
8437                      smart_include=" "
8438                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8439 $as_echo "yes" >&6; }
8440                      break
8441
8442 else
8443
8444                      smart_include=
8445                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451
8452 if test "x$smart_include" = "x"; then
8453
8454   for prefix in $smart_prefix; do
8455
8456
8457 if test "x$LOCATE" != "x"; then
8458         DIRS=
8459   file="${_prefix}/${1}"
8460
8461   for x in `${LOCATE} $file 2>/dev/null`; do
8462                                         base=`echo $x | sed "s%/${file}%%"`
8463     if test "x$x" = "x$base"; then
8464       continue;
8465     fi
8466
8467     dir=`${DIRNAME} $x 2>/dev/null`
8468                 exclude=`echo ${dir} | ${GREP} /home`
8469     if test "x$exclude" != "x"; then
8470       continue
8471     fi
8472
8473                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8474     if test "x$already" = "x"; then
8475       DIRS="$DIRS $dir"
8476     fi
8477   done
8478 fi
8479
8480 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8481
8482   done
8483
8484
8485 if test "x$LOCATE" != "x"; then
8486         DIRS=
8487   file=openssl/ssl.h
8488
8489   for x in `${LOCATE} $file 2>/dev/null`; do
8490                                         base=`echo $x | sed "s%/${file}%%"`
8491     if test "x$x" = "x$base"; then
8492       continue;
8493     fi
8494
8495     dir=`${DIRNAME} $x 2>/dev/null`
8496                 exclude=`echo ${dir} | ${GREP} /home`
8497     if test "x$exclude" != "x"; then
8498       continue
8499     fi
8500
8501                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8502     if test "x$already" = "x"; then
8503       DIRS="$DIRS $dir"
8504     fi
8505   done
8506 fi
8507
8508 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8509
8510
8511   for try in $_smart_include_dir; do
8512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8513 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8514     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h.  */
8517
8518                     #include <openssl/ssl.h>
8519 int
8520 main ()
8521 {
8522 int a = 1;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528
8529                      smart_include="-isystem $try"
8530                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8532                      break
8533
8534 else
8535
8536                      smart_include=
8537                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542   done
8543   CPPFLAGS="$old_CPPFLAGS"
8544 fi
8545
8546 if test "x$smart_include" != "x"; then
8547   eval "ac_cv_header_$ac_safe=yes"
8548   CPPFLAGS="$smart_include $old_CPPFLAGS"
8549   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8550 fi
8551
8552 smart_prefix=
8553
8554   if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8555
8556 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8557
8558
8559     for ac_header in \
8560       openssl/crypto.h \
8561       openssl/err.h \
8562       openssl/evp.h \
8563       openssl/md5.h \
8564       openssl/md4.h \
8565       openssl/sha.h \
8566       openssl/ocsp.h \
8567       openssl/engine.h
8568 do :
8569   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8572   cat >>confdefs.h <<_ACEOF
8573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 _ACEOF
8575   OPENSSL_CPPFLAGS="$smart_include"
8576 else
8577
8578         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8580 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8581 See \`config.log' for more details" "$LINENO" 5; }
8582
8583
8584 fi
8585
8586 done
8587
8588
8589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8590 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h.  */
8593 #include <openssl/crypto.h>
8594        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8595        yes
8596        #endif
8597
8598 _ACEOF
8599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8600   $EGREP "yes" >/dev/null 2>&1; then :
8601
8602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8603 $as_echo "yes" >&6; }
8604
8605 else
8606
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8611 as_fn_error $? "OpenSSL version too old
8612 See \`config.log' for more details" "$LINENO" 5; }
8613
8614
8615 fi
8616 rm -f conftest*
8617
8618
8619                         old_CPPFLAGS="$CPPFLAGS"
8620     CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8621
8622                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8623 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8624     if test "$cross_compiling" = yes; then :
8625   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8627 as_fn_error $? "cannot run test program while cross compiling
8628 See \`config.log' for more details" "$LINENO" 5; }
8629 else
8630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h.  */
8632
8633           #include <stdio.h>
8634           #include <openssl/opensslv.h>
8635           #include <openssl/crypto.h>
8636
8637 int
8638 main ()
8639 {
8640
8641           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8642           if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8643             return 0;
8644           } else {
8645             return 1;
8646           }
8647
8648
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_run "$LINENO"; then :
8654
8655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8656 $as_echo "yes" >&6; }
8657
8658 else
8659
8660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8664 as_fn_error $? "OpenSSL library version does not match header version
8665 See \`config.log' for more details" "$LINENO" 5; }
8666
8667
8668 fi
8669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8670   conftest.$ac_objext conftest.beam conftest.$ac_ext
8671 fi
8672
8673     CPPFLAGS="$old_CPPFLAGS"
8674   fi
8675
8676   LIBS="$OLD_LIBS"
8677
8678
8679
8680   export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8681 fi
8682
8683 if test "x$PCAP_LIBS" = x; then
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8685 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8686 else
8687         smart_try_dir="$pcap_include_dir"
8688
8689
8690 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8691 old_CPPFLAGS="$CPPFLAGS"
8692 smart_include=
8693 smart_include_dir="/usr/local/include /opt/include"
8694
8695 _smart_try_dir=
8696 _smart_include_dir=
8697
8698 for _prefix in $smart_prefix ""; do
8699   for _dir in $smart_try_dir; do
8700     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8701   done
8702
8703   for _dir in $smart_include_dir; do
8704     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8705   done
8706 done
8707
8708 if test "x$_smart_try_dir" != "x"; then
8709   for try in $_smart_try_dir; do
8710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8711 $as_echo_n "checking for pcap.h in $try... " >&6; }
8712     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h.  */
8715
8716                     #include <pcap.h>
8717 int
8718 main ()
8719 {
8720 int a = 1;
8721   ;
8722   return 0;
8723 }
8724 _ACEOF
8725 if ac_fn_c_try_compile "$LINENO"; then :
8726
8727                      smart_include="-isystem $try"
8728                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8729 $as_echo "yes" >&6; }
8730                      break
8731
8732 else
8733
8734                      smart_include=
8735                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740   done
8741   CPPFLAGS="$old_CPPFLAGS"
8742 fi
8743
8744 if test "x$smart_include" = "x"; then
8745   for _prefix in $smart_prefix; do
8746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8747 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8748
8749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h.  */
8751
8752                     #include <pcap.h>
8753 int
8754 main ()
8755 {
8756 int a = 1;
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_compile "$LINENO"; then :
8762
8763                      smart_include="-isystem ${_prefix}/"
8764                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8765 $as_echo "yes" >&6; }
8766                      break
8767
8768 else
8769
8770                      smart_include=
8771                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8773
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776   done
8777 fi
8778
8779 if test "x$smart_include" = "x"; then
8780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8781 $as_echo_n "checking for pcap.h... " >&6; }
8782
8783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785
8786                     #include <pcap.h>
8787 int
8788 main ()
8789 {
8790 int a = 1;
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796
8797                      smart_include=" "
8798                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799 $as_echo "yes" >&6; }
8800                      break
8801
8802 else
8803
8804                      smart_include=
8805                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8807
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 fi
8811
8812 if test "x$smart_include" = "x"; then
8813
8814   for prefix in $smart_prefix; do
8815
8816
8817 if test "x$LOCATE" != "x"; then
8818         DIRS=
8819   file="${_prefix}/${1}"
8820
8821   for x in `${LOCATE} $file 2>/dev/null`; do
8822                                         base=`echo $x | sed "s%/${file}%%"`
8823     if test "x$x" = "x$base"; then
8824       continue;
8825     fi
8826
8827     dir=`${DIRNAME} $x 2>/dev/null`
8828                 exclude=`echo ${dir} | ${GREP} /home`
8829     if test "x$exclude" != "x"; then
8830       continue
8831     fi
8832
8833                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8834     if test "x$already" = "x"; then
8835       DIRS="$DIRS $dir"
8836     fi
8837   done
8838 fi
8839
8840 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8841
8842   done
8843
8844
8845 if test "x$LOCATE" != "x"; then
8846         DIRS=
8847   file=pcap.h
8848
8849   for x in `${LOCATE} $file 2>/dev/null`; do
8850                                         base=`echo $x | sed "s%/${file}%%"`
8851     if test "x$x" = "x$base"; then
8852       continue;
8853     fi
8854
8855     dir=`${DIRNAME} $x 2>/dev/null`
8856                 exclude=`echo ${dir} | ${GREP} /home`
8857     if test "x$exclude" != "x"; then
8858       continue
8859     fi
8860
8861                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8862     if test "x$already" = "x"; then
8863       DIRS="$DIRS $dir"
8864     fi
8865   done
8866 fi
8867
8868 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8869
8870
8871   for try in $_smart_include_dir; do
8872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8873 $as_echo_n "checking for pcap.h in $try... " >&6; }
8874     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h.  */
8877
8878                     #include <pcap.h>
8879 int
8880 main ()
8881 {
8882 int a = 1;
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_compile "$LINENO"; then :
8888
8889                      smart_include="-isystem $try"
8890                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891 $as_echo "yes" >&6; }
8892                      break
8893
8894 else
8895
8896                      smart_include=
8897                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8899
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902   done
8903   CPPFLAGS="$old_CPPFLAGS"
8904 fi
8905
8906 if test "x$smart_include" != "x"; then
8907   eval "ac_cv_header_$ac_safe=yes"
8908   CPPFLAGS="$smart_include $old_CPPFLAGS"
8909   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8910 fi
8911
8912 smart_prefix=
8913
8914   if test "x$ac_cv_header_pcap_h" == "xyes"; then
8915
8916 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
8917
8918
8919
8920   else
8921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&5
8922 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
8923   fi
8924 fi
8925
8926 if test "x$COLLECTDC_LIBS" = x; then
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
8928 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
8929 else
8930         smart_try_dir="$collectdclient_include_dir"
8931
8932
8933 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
8934 old_CPPFLAGS="$CPPFLAGS"
8935 smart_include=
8936 smart_include_dir="/usr/local/include /opt/include"
8937
8938 _smart_try_dir=
8939 _smart_include_dir=
8940
8941 for _prefix in $smart_prefix ""; do
8942   for _dir in $smart_try_dir; do
8943     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8944   done
8945
8946   for _dir in $smart_include_dir; do
8947     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8948   done
8949 done
8950
8951 if test "x$_smart_try_dir" != "x"; then
8952   for try in $_smart_try_dir; do
8953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8954 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8955     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958
8959                     #include <collectd/client.h>
8960 int
8961 main ()
8962 {
8963 int a = 1;
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969
8970                      smart_include="-isystem $try"
8971                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8972 $as_echo "yes" >&6; }
8973                      break
8974
8975 else
8976
8977                      smart_include=
8978                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8980
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983   done
8984   CPPFLAGS="$old_CPPFLAGS"
8985 fi
8986
8987 if test "x$smart_include" = "x"; then
8988   for _prefix in $smart_prefix; do
8989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
8990 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
8991
8992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h.  */
8994
8995                     #include <collectd/client.h>
8996 int
8997 main ()
8998 {
8999 int a = 1;
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005
9006                      smart_include="-isystem ${_prefix}/"
9007                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9008 $as_echo "yes" >&6; }
9009                      break
9010
9011 else
9012
9013                      smart_include=
9014                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9016
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019   done
9020 fi
9021
9022 if test "x$smart_include" = "x"; then
9023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9024 $as_echo_n "checking for collectd/client.h... " >&6; }
9025
9026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028
9029                     #include <collectd/client.h>
9030 int
9031 main ()
9032 {
9033 int a = 1;
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039
9040                      smart_include=" "
9041                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9042 $as_echo "yes" >&6; }
9043                      break
9044
9045 else
9046
9047                      smart_include=
9048                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054
9055 if test "x$smart_include" = "x"; then
9056
9057   for prefix in $smart_prefix; do
9058
9059
9060 if test "x$LOCATE" != "x"; then
9061         DIRS=
9062   file="${_prefix}/${1}"
9063
9064   for x in `${LOCATE} $file 2>/dev/null`; do
9065                                         base=`echo $x | sed "s%/${file}%%"`
9066     if test "x$x" = "x$base"; then
9067       continue;
9068     fi
9069
9070     dir=`${DIRNAME} $x 2>/dev/null`
9071                 exclude=`echo ${dir} | ${GREP} /home`
9072     if test "x$exclude" != "x"; then
9073       continue
9074     fi
9075
9076                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9077     if test "x$already" = "x"; then
9078       DIRS="$DIRS $dir"
9079     fi
9080   done
9081 fi
9082
9083 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9084
9085   done
9086
9087
9088 if test "x$LOCATE" != "x"; then
9089         DIRS=
9090   file=collectd/client.h
9091
9092   for x in `${LOCATE} $file 2>/dev/null`; do
9093                                         base=`echo $x | sed "s%/${file}%%"`
9094     if test "x$x" = "x$base"; then
9095       continue;
9096     fi
9097
9098     dir=`${DIRNAME} $x 2>/dev/null`
9099                 exclude=`echo ${dir} | ${GREP} /home`
9100     if test "x$exclude" != "x"; then
9101       continue
9102     fi
9103
9104                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9105     if test "x$already" = "x"; then
9106       DIRS="$DIRS $dir"
9107     fi
9108   done
9109 fi
9110
9111 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9112
9113
9114   for try in $_smart_include_dir; do
9115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9116 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9117     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h.  */
9120
9121                     #include <collectd/client.h>
9122 int
9123 main ()
9124 {
9125 int a = 1;
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131
9132                      smart_include="-isystem $try"
9133                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9134 $as_echo "yes" >&6; }
9135                      break
9136
9137 else
9138
9139                      smart_include=
9140                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145   done
9146   CPPFLAGS="$old_CPPFLAGS"
9147 fi
9148
9149 if test "x$smart_include" != "x"; then
9150   eval "ac_cv_header_$ac_safe=yes"
9151   CPPFLAGS="$smart_include $old_CPPFLAGS"
9152   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9153 fi
9154
9155 smart_prefix=
9156
9157   if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9158
9159 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9160
9161
9162
9163   else
9164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9165 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9166   fi
9167 fi
9168
9169 if test "x$HAVE_LIBCAP" = x; then
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9171 $as_echo "$as_me: skipping test for cap.h." >&6;}
9172 else
9173         smart_try_dir="$cap_include_dir"
9174
9175
9176 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9177 old_CPPFLAGS="$CPPFLAGS"
9178 smart_include=
9179 smart_include_dir="/usr/local/include /opt/include"
9180
9181 _smart_try_dir=
9182 _smart_include_dir=
9183
9184 for _prefix in $smart_prefix ""; do
9185   for _dir in $smart_try_dir; do
9186     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9187   done
9188
9189   for _dir in $smart_include_dir; do
9190     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9191   done
9192 done
9193
9194 if test "x$_smart_try_dir" != "x"; then
9195   for try in $_smart_try_dir; do
9196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9197 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9198     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h.  */
9201
9202                     #include <sys/capability.h>
9203 int
9204 main ()
9205 {
9206 int a = 1;
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212
9213                      smart_include="-isystem $try"
9214                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9215 $as_echo "yes" >&6; }
9216                      break
9217
9218 else
9219
9220                      smart_include=
9221                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226   done
9227   CPPFLAGS="$old_CPPFLAGS"
9228 fi
9229
9230 if test "x$smart_include" = "x"; then
9231   for _prefix in $smart_prefix; do
9232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9233 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9234
9235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h.  */
9237
9238                     #include <sys/capability.h>
9239 int
9240 main ()
9241 {
9242 int a = 1;
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_compile "$LINENO"; then :
9248
9249                      smart_include="-isystem ${_prefix}/"
9250                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9251 $as_echo "yes" >&6; }
9252                      break
9253
9254 else
9255
9256                      smart_include=
9257                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262   done
9263 fi
9264
9265 if test "x$smart_include" = "x"; then
9266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9267 $as_echo_n "checking for sys/capability.h... " >&6; }
9268
9269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h.  */
9271
9272                     #include <sys/capability.h>
9273 int
9274 main ()
9275 {
9276 int a = 1;
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 if ac_fn_c_try_compile "$LINENO"; then :
9282
9283                      smart_include=" "
9284                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9285 $as_echo "yes" >&6; }
9286                      break
9287
9288 else
9289
9290                      smart_include=
9291                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9293
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 fi
9297
9298 if test "x$smart_include" = "x"; then
9299
9300   for prefix in $smart_prefix; do
9301
9302
9303 if test "x$LOCATE" != "x"; then
9304         DIRS=
9305   file="${_prefix}/${1}"
9306
9307   for x in `${LOCATE} $file 2>/dev/null`; do
9308                                         base=`echo $x | sed "s%/${file}%%"`
9309     if test "x$x" = "x$base"; then
9310       continue;
9311     fi
9312
9313     dir=`${DIRNAME} $x 2>/dev/null`
9314                 exclude=`echo ${dir} | ${GREP} /home`
9315     if test "x$exclude" != "x"; then
9316       continue
9317     fi
9318
9319                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9320     if test "x$already" = "x"; then
9321       DIRS="$DIRS $dir"
9322     fi
9323   done
9324 fi
9325
9326 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9327
9328   done
9329
9330
9331 if test "x$LOCATE" != "x"; then
9332         DIRS=
9333   file=sys/capability.h
9334
9335   for x in `${LOCATE} $file 2>/dev/null`; do
9336                                         base=`echo $x | sed "s%/${file}%%"`
9337     if test "x$x" = "x$base"; then
9338       continue;
9339     fi
9340
9341     dir=`${DIRNAME} $x 2>/dev/null`
9342                 exclude=`echo ${dir} | ${GREP} /home`
9343     if test "x$exclude" != "x"; then
9344       continue
9345     fi
9346
9347                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9348     if test "x$already" = "x"; then
9349       DIRS="$DIRS $dir"
9350     fi
9351   done
9352 fi
9353
9354 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9355
9356
9357   for try in $_smart_include_dir; do
9358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9359 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9360     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h.  */
9363
9364                     #include <sys/capability.h>
9365 int
9366 main ()
9367 {
9368 int a = 1;
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374
9375                      smart_include="-isystem $try"
9376                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9377 $as_echo "yes" >&6; }
9378                      break
9379
9380 else
9381
9382                      smart_include=
9383                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384 $as_echo "no" >&6; }
9385
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388   done
9389   CPPFLAGS="$old_CPPFLAGS"
9390 fi
9391
9392 if test "x$smart_include" != "x"; then
9393   eval "ac_cv_header_$ac_safe=yes"
9394   CPPFLAGS="$smart_include $old_CPPFLAGS"
9395   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9396 fi
9397
9398 smart_prefix=
9399
9400   if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9401
9402 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9403
9404   else
9405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9406 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9407   fi
9408 fi
9409
9410
9411 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9412 if test "x$ac_cv_type_off_t" = xyes; then :
9413
9414 else
9415
9416 cat >>confdefs.h <<_ACEOF
9417 #define off_t long int
9418 _ACEOF
9419
9420 fi
9421
9422 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9423 if test "x$ac_cv_type_pid_t" = xyes; then :
9424
9425 else
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define pid_t int
9429 _ACEOF
9430
9431 fi
9432
9433 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9434 if test "x$ac_cv_type_size_t" = xyes; then :
9435
9436 else
9437
9438 cat >>confdefs.h <<_ACEOF
9439 #define size_t unsigned int
9440 _ACEOF
9441
9442 fi
9443
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9445 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9446 if ${ac_cv_type_uid_t+:} false; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h.  */
9451 #include <sys/types.h>
9452
9453 _ACEOF
9454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9455   $EGREP "uid_t" >/dev/null 2>&1; then :
9456   ac_cv_type_uid_t=yes
9457 else
9458   ac_cv_type_uid_t=no
9459 fi
9460 rm -f conftest*
9461
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9464 $as_echo "$ac_cv_type_uid_t" >&6; }
9465 if test $ac_cv_type_uid_t = no; then
9466
9467 $as_echo "#define uid_t int" >>confdefs.h
9468
9469
9470 $as_echo "#define gid_t int" >>confdefs.h
9471
9472 fi
9473
9474
9475
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9477 $as_echo_n "checking for socklen_t... " >&6; }
9478 if ${ac_cv_type_socklen_t+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481    ac_cv_type_socklen_t=no
9482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h.  */
9484 #ifdef HAVE_SYS_TYPES_H
9485     #  include <sys/types.h>
9486     #endif
9487
9488     #ifdef HAVE_SYS_SOCKET_H
9489     #  include <sys/socket.h>
9490     #endif
9491
9492 int
9493 main ()
9494 {
9495 socklen_t foo
9496   ;
9497   return 0;
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"; then :
9501   ac_cv_type_socklen_t=yes
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9508 $as_echo "$ac_cv_type_socklen_t" >&6; }
9509
9510   if test "$ac_cv_type_socklen_t" != "yes"; then
9511
9512 $as_echo "#define socklen_t int" >>confdefs.h
9513
9514   fi
9515
9516
9517
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9519 $as_echo_n "checking for uint8_t... " >&6; }
9520 if ${ac_cv_type_uint8_t+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523    ac_cv_type_uint8_t=no
9524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h.  */
9526 #ifdef HAVE_INTTYPES_H
9527     #  include <inttypes.h>
9528     #endif
9529
9530     #ifdef HAVE_STDINT_H
9531     #  include <stdint.h>
9532     #endif
9533
9534 int
9535 main ()
9536 {
9537 uint8_t foo
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_compile "$LINENO"; then :
9543   ac_cv_type_uint8_t=yes
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546
9547
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9550 $as_echo "$ac_cv_type_uint8_t" >&6; }
9551
9552   if test "$ac_cv_type_uint8_t" != "yes"; then
9553
9554 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9555
9556   fi
9557
9558
9559
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9561 $as_echo_n "checking for uint16_t... " >&6; }
9562 if ${ac_cv_type_uint16_t+:} false; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565    ac_cv_type_uint16_t=no
9566       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h.  */
9568 #ifdef HAVE_INTTYPES_H
9569     #  include <inttypes.h>
9570     #endif
9571
9572     #ifdef HAVE_STDINT_H
9573     #  include <stdint.h>
9574     #endif
9575
9576 int
9577 main ()
9578 {
9579 uint16_t foo
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585   ac_cv_type_uint16_t=yes
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588
9589
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9592 $as_echo "$ac_cv_type_uint16_t" >&6; }
9593
9594   if test "$ac_cv_type_uint16_t" != "yes"; then
9595
9596 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9597
9598   fi
9599
9600
9601
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9603 $as_echo_n "checking for uint32_t... " >&6; }
9604 if ${ac_cv_type_uint32_t+:} false; then :
9605   $as_echo_n "(cached) " >&6
9606 else
9607    ac_cv_type_uint32_t=no
9608       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h.  */
9610 #ifdef HAVE_INTTYPES_H
9611     #  include <inttypes.h>
9612     #endif
9613
9614     #ifdef HAVE_STDINT_H
9615     #  include <stdint.h>
9616     #endif
9617
9618 int
9619 main ()
9620 {
9621 uint32_t foo
9622   ;
9623   return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"; then :
9627   ac_cv_type_uint32_t=yes
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630
9631
9632 fi
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9634 $as_echo "$ac_cv_type_uint32_t" >&6; }
9635
9636   if test "$ac_cv_type_uint32_t" != "yes"; then
9637
9638 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9639
9640   fi
9641
9642
9643
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9645 $as_echo_n "checking for uint64_t... " >&6; }
9646 if ${ac_cv_type_uint64_t+:} false; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649    ac_cv_type_uint64_t=no
9650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h.  */
9652 #ifdef HAVE_INTTYPES_H
9653     #  include <inttypes.h>
9654     #endif
9655
9656     #ifdef HAVE_STDINT_H
9657     #  include <stdint.h>
9658     #endif
9659
9660 int
9661 main ()
9662 {
9663 uint64_t foo
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 if ac_fn_c_try_compile "$LINENO"; then :
9669   ac_cv_type_uint64_t=yes
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672
9673
9674 fi
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9676 $as_echo "$ac_cv_type_uint64_t" >&6; }
9677
9678   if test "$ac_cv_type_uint64_t" != "yes"; then
9679
9680 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9681
9682   fi
9683
9684
9685 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9686 if test "x$ac_cv_type___uint128_t" = xyes; then :
9687
9688 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9689
9690 fi
9691
9692
9693 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9694     #ifdef HAVE_INTTYPES_H
9695     #  include <inttypes.h>
9696     #endif
9697
9698     #ifdef HAVE_STDINT_H
9699     #  include <stdint.h>
9700     #endif
9701
9702
9703 "
9704 if test "x$ac_cv_type_uint128_t" = xyes; then :
9705
9706 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9707
9708 fi
9709
9710
9711 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9712     #ifdef HAVE_NETINET_IN_H
9713     #  include <netinet/in.h>
9714     #endif
9715
9716
9717 "
9718 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9719
9720 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9721
9722 fi
9723
9724
9725 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9726     #ifdef HAVE_NETINET_IN_H
9727     #  include <netinet/in.h>
9728     #endif
9729
9730     #ifdef HAVE_SYS_SOCKET_H
9731     #  include <sys/socket.h>
9732     #endif
9733
9734 "
9735 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9736
9737 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9738
9739 fi
9740
9741
9742 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9743     #ifdef HAVE_NETINET_IN_H
9744     #  include <netinet/in.h>
9745     #endif
9746
9747 "
9748 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9749
9750 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9751
9752 fi
9753
9754
9755 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9756     #ifdef HAVE_SYS_TYPES_H
9757     #  include <sys/types.h>
9758     #endif
9759
9760     #ifdef HAVE_SYS_SOCKET_H
9761     #  include <sys/socket.h>
9762     #endif
9763
9764     #ifdef HAVE_NETDB_H
9765     #  include <netdb.h>
9766     #endif
9767
9768
9769 "
9770 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9771
9772 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9773
9774 fi
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9778 $as_echo_n "checking if sig_t is defined... " >&6; }
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h.  */
9781
9782       #ifdef HAVE_SIGNAL_H
9783       #  include <signal.h>
9784       #endif
9785
9786 int
9787 main ()
9788 {
9789
9790       sig_t func;
9791       return 0;
9792
9793
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 if ac_fn_c_try_link "$LINENO"; then :
9799
9800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9801 $as_echo "yes" >&6; }
9802
9803 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9804
9805
9806 else
9807
9808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9810
9811
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext \
9814     conftest$ac_exeext conftest.$ac_ext
9815
9816 for ac_func in \
9817   getopt_long \
9818   fcntl \
9819   strsignal \
9820   sigaction \
9821   sigprocmask \
9822   pthread_sigmask \
9823   snprintf \
9824   vsnprintf \
9825   setsid \
9826   strncasecmp \
9827   strcasecmp \
9828   localtime_r \
9829   ctime_r \
9830   gmtime_r \
9831   strsep \
9832   inet_aton \
9833   inet_pton \
9834   inet_ntop \
9835   mallopt \
9836   setlinebuf \
9837   setvbuf \
9838   getusershell \
9839   initgroups \
9840   getaddrinfo \
9841   getnameinfo \
9842   closefrom \
9843   gettimeofday \
9844   getpeereid \
9845   setuid \
9846   setresuid \
9847   getresuid \
9848   strlcat \
9849   strlcpy \
9850   kqueue
9851
9852 do :
9853   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9854 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9855 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9856   cat >>confdefs.h <<_ACEOF
9857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9858 _ACEOF
9859
9860 fi
9861 done
9862
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9865 $as_echo_n "checking return type of signal handlers... " >&6; }
9866 if ${ac_cv_type_signal+:} false; then :
9867   $as_echo_n "(cached) " >&6
9868 else
9869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 #include <sys/types.h>
9872 #include <signal.h>
9873
9874 int
9875 main ()
9876 {
9877 return *(signal (0, 0)) (0) == 1;
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883   ac_cv_type_signal=int
9884 else
9885   ac_cv_type_signal=void
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9890 $as_echo "$ac_cv_type_signal" >&6; }
9891
9892 cat >>confdefs.h <<_ACEOF
9893 #define RETSIGTYPE $ac_cv_type_signal
9894 _ACEOF
9895
9896
9897
9898 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
9899
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9901 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
9902
9903
9904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h.  */
9906
9907 #include <utmpx.h>
9908 #ifdef HAVE_STDDEF_H
9909 #include <stddef.h>
9910 #endif
9911 #ifndef offsetof
9912 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9913 #endif
9914
9915 int
9916 main ()
9917 {
9918  int foo = offsetof(struct utmpx, ut_xtime)
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"; then :
9924   has_element=" "
9925 else
9926   has_element=
9927 fi
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929
9930   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9931   if test "x$has_element" != "x"; then
9932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9933 $as_echo "yes" >&6; }
9934     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9935   else
9936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9939  fi
9940
9941  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
9942
9943 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
9944
9945  fi
9946 fi
9947
9948
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
9950 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
9951
9952
9953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h.  */
9955
9956 #include <netinet/in.h>
9957 #ifdef HAVE_STDDEF_H
9958 #include <stddef.h>
9959 #endif
9960 #ifndef offsetof
9961 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9962 #endif
9963
9964 int
9965 main ()
9966 {
9967  int foo = offsetof(struct in_pktinfo, ipi_addr)
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973   has_element=" "
9974 else
9975   has_element=
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978
9979   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
9980   if test "x$has_element" != "x"; then
9981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9982 $as_echo "yes" >&6; }
9983     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
9984   else
9985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
9988  fi
9989
9990 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
9991
9992 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
9993
9994 fi
9995
9996
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
9998 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
9999
10000
10001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h.  */
10003
10004 #include <netinet/in.h>
10005 #ifdef HAVE_STDDEF_H
10006 #include <stddef.h>
10007 #endif
10008 #ifndef offsetof
10009 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10010 #endif
10011
10012 int
10013 main ()
10014 {
10015  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021   has_element=" "
10022 else
10023   has_element=
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026
10027   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10028   if test "x$has_element" != "x"; then
10029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10030 $as_echo "yes" >&6; }
10031     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10032   else
10033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10035     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10036  fi
10037
10038 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10039
10040 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10041
10042 fi
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10045 $as_echo_n "checking if htonll is defined... " >&6; }
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h.  */
10048
10049       #include <sys/types.h>
10050       #include <netinet/in.h>
10051
10052 int
10053 main ()
10054 {
10055
10056       return htonll(0);
10057
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064
10065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10066 $as_echo "yes" >&6; }
10067
10068 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10069
10070
10071 else
10072
10073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075
10076
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10082 $as_echo_n "checking if htonlll is defined... " >&6; }
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h.  */
10085
10086       #include <sys/types.h>
10087       #include <netinet/in.h>
10088
10089 int
10090 main ()
10091 {
10092
10093       return htonlll(0);
10094
10095
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101
10102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10103 $as_echo "yes" >&6; }
10104
10105 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10106
10107
10108 else
10109
10110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112
10113
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext \
10116     conftest$ac_exeext conftest.$ac_ext
10117
10118
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10120 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10121 if ${ac_cv_c_const+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h.  */
10126
10127 int
10128 main ()
10129 {
10130
10131 #ifndef __cplusplus
10132   /* Ultrix mips cc rejects this sort of thing.  */
10133   typedef int charset[2];
10134   const charset cs = { 0, 0 };
10135   /* SunOS 4.1.1 cc rejects this.  */
10136   char const *const *pcpcc;
10137   char **ppc;
10138   /* NEC SVR4.0.2 mips cc rejects this.  */
10139   struct point {int x, y;};
10140   static struct point const zero = {0,0};
10141   /* AIX XL C 1.02.0.0 rejects this.
10142      It does not let you subtract one const X* pointer from another in
10143      an arm of an if-expression whose if-part is not a constant
10144      expression */
10145   const char *g = "string";
10146   pcpcc = &g + (g ? g-g : 0);
10147   /* HPUX 7.0 cc rejects these. */
10148   ++pcpcc;
10149   ppc = (char**) pcpcc;
10150   pcpcc = (char const *const *) ppc;
10151   { /* SCO 3.2v4 cc rejects this sort of thing.  */
10152     char tx;
10153     char *t = &tx;
10154     char const *s = 0 ? (char *) 0 : (char const *) 0;
10155
10156     *t++ = 0;
10157     if (s) return 0;
10158   }
10159   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10160     int x[] = {25, 17};
10161     const int *foo = &x[0];
10162     ++foo;
10163   }
10164   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10165     typedef const int *iptr;
10166     iptr p = 0;
10167     ++p;
10168   }
10169   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10170        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10171     struct s { int j; const int *ap[3]; } bx;
10172     struct s *b = &bx; b->j = 5;
10173   }
10174   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10175     const int foo = 10;
10176     if (!foo) return 0;
10177   }
10178   return !cs[0] && !zero.x;
10179 #endif
10180
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 if ac_fn_c_try_compile "$LINENO"; then :
10186   ac_cv_c_const=yes
10187 else
10188   ac_cv_c_const=no
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10193 $as_echo "$ac_cv_c_const" >&6; }
10194 if test $ac_cv_c_const = no; then
10195
10196 $as_echo "#define const /**/" >>confdefs.h
10197
10198 fi
10199
10200
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10202 $as_echo_n "checking type of OS... " >&6; }
10203 OS=`uname -s`
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10205 $as_echo "$OS" >&6; }
10206 if test "$OS" = "OS/2"; then
10207   LIBPREFIX=
10208 else
10209   LIBPREFIX=lib
10210 fi
10211
10212
10213 if test "x$developer" = "xyes"; then
10214   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10215 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10216
10217
10218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10219 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10220 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10221   $as_echo_n "(cached) " >&6
10222 else
10223
10224
10225     CFLAGS_SAVED=$CFLAGS
10226     CFLAGS="$CFLAGS -Werror -Wdocumentation"
10227
10228     ac_ext=c
10229 ac_cpp='$CPP $CPPFLAGS'
10230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10233
10234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h.  */
10236
10237 int
10238 main ()
10239 {
10240 return 0;
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 if ac_fn_c_try_compile "$LINENO"; then :
10246   ax_cv_cc_wdocumentation_flag="yes"
10247 else
10248   ax_cv_cc_wdocumentation_flag="no"
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251     ac_ext=c
10252 ac_cpp='$CPP $CPPFLAGS'
10253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10256
10257
10258     CFLAGS="$CFLAGS_SAVED"
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10262 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10263
10264   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10265     devflags="-Wdocumentation"
10266   fi
10267
10268   if test "x$GCC" = "xyes"; then
10269     devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
10270     INSTALLSTRIP=""
10271   fi
10272
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10274 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10275
10276   CFLAGS="$CFLAGS $devflags"
10277         if test "x$EXPERIMENTAL" != "xno"; then
10278     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10279 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10280     EXPERIMENTAL=yes
10281   fi
10282 else
10283   devflags=""
10284   CFLAGS="$CFLAGS -DNDEBUG"
10285   INSTALLSTRIP=""
10286 fi
10287
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10289 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10290 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292 $as_echo "yes" >&6; }
10293
10294 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10295
10296 else
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10299 fi
10300
10301 export EXPERIMENTAL
10302
10303 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10304   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10305
10306 cat >>confdefs.h <<_ACEOF
10307 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10308 _ACEOF
10309
10310 fi
10311
10312
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10314 $as_echo_n "checking for __thread support in compiler... " >&6; }
10315   if test "$cross_compiling" = yes; then :
10316   have_tls=no
10317 else
10318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h.  */
10320
10321         static __thread int val;
10322         int main(int argc, char **argv) {
10323           val = 0;
10324           return val;
10325         }
10326
10327
10328 _ACEOF
10329 if ac_fn_c_try_run "$LINENO"; then :
10330   have_tls=yes
10331 else
10332   have_tls=no
10333 fi
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10335   conftest.$ac_objext conftest.beam conftest.$ac_ext
10336 fi
10337
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10339 $as_echo "$have_tls" >&6; }
10340   if test "x$have_tls" = "xyes"; then
10341
10342 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10343
10344   fi
10345
10346   if test "x$have_tls" = "xno"; then
10347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10348 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10349     if test "$cross_compiling" = yes; then :
10350   have_tls=no
10351 else
10352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h.  */
10354
10355           static _Thread_local int val;
10356           int main(int argc, char **argv) {
10357             val = 0;
10358             return val;
10359           }
10360
10361
10362 _ACEOF
10363 if ac_fn_c_try_run "$LINENO"; then :
10364   have_tls=yes
10365 else
10366   have_tls=no
10367 fi
10368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10369   conftest.$ac_objext conftest.beam conftest.$ac_ext
10370 fi
10371
10372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10373 $as_echo "$have_tls" >&6; }
10374     if test "x$have_tls" = "xyes"; then
10375
10376 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10377
10378     fi
10379   fi
10380   if test "x$have_tls" = "xno"; then
10381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10382 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10383     if test "$cross_compiling" = yes; then :
10384   have_tls=no
10385 else
10386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h.  */
10388
10389           static _Thread_local int val;
10390           int main(int argc, char **argv) {
10391             val = 0;
10392             return val;
10393           }
10394
10395
10396 _ACEOF
10397 if ac_fn_c_try_run "$LINENO"; then :
10398   have_tls=yes
10399 else
10400   have_tls=no
10401 fi
10402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10403   conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 fi
10405
10406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10407 $as_echo "$have_tls" >&6; }
10408     if test "x$have_tls" = "xyes"; then
10409
10410 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10411
10412     fi
10413   fi
10414
10415
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10417 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10418   if test "$cross_compiling" = yes; then :
10419   have_builtin_choose_expr=no
10420 else
10421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h.  */
10423
10424         int main(int argc, char **argv) {
10425           return __builtin_choose_expr(0, 1, 0);
10426         }
10427
10428
10429 _ACEOF
10430 if ac_fn_c_try_run "$LINENO"; then :
10431   have_builtin_choose_expr=yes
10432 else
10433   have_builtin_choose_expr=no
10434 fi
10435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10436   conftest.$ac_objext conftest.beam conftest.$ac_ext
10437 fi
10438
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_choose_expr" >&5
10440 $as_echo "$have_builtin_choose_expr" >&6; }
10441   if test "x$have_builtin_choose_expr" = "xyes"; then
10442
10443 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10444
10445   fi
10446
10447
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10449 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10450   if test "$cross_compiling" = yes; then :
10451   have_builtin_types_compatible_p=no
10452 else
10453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h.  */
10455
10456         int main(int argc, char **argv) {
10457           return !(__builtin_types_compatible_p(char *, char *));
10458         }
10459
10460
10461 _ACEOF
10462 if ac_fn_c_try_run "$LINENO"; then :
10463   have_builtin_types_compatible_p=yes
10464 else
10465   have_builtin_types_compatible_p=no
10466 fi
10467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10468   conftest.$ac_objext conftest.beam conftest.$ac_ext
10469 fi
10470
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_types_compatible_p" >&5
10472 $as_echo "$have_builtin_types_compatible_p" >&6; }
10473   if test "x$have_builtin_types_compatible_p" = "xyes"; then
10474
10475 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10476
10477   fi
10478
10479
10480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10481 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10482   if test "$cross_compiling" = yes; then :
10483   have_builtin_bswap64=no
10484 else
10485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h.  */
10487
10488         int main(int argc, char **argv) {
10489           return (__builtin_bswap64(0));
10490         }
10491
10492
10493 _ACEOF
10494 if ac_fn_c_try_run "$LINENO"; then :
10495   have_builtin_bswap64=yes
10496 else
10497   have_builtin_bswap64=no
10498 fi
10499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10500   conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 fi
10502
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_bswap64" >&5
10504 $as_echo "$have_builtin_bswap64" >&6; }
10505   if test "x$have_builtin_bswap64" = "xyes"; then
10506
10507 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10508
10509   fi
10510
10511
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10514 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10515 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10516   $as_echo_n "(cached) " >&6
10517 else
10518   ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-ltalloc  $LIBS"
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h.  */
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524    Use char because int might match the return type of a GCC
10525    builtin and then its argument prototype would still apply.  */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char talloc_set_memlimit ();
10530 int
10531 main ()
10532 {
10533 return talloc_set_memlimit ();
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_link "$LINENO"; then :
10539   ac_cv_lib_talloc_talloc_set_memlimit=yes
10540 else
10541   ac_cv_lib_talloc_talloc_set_memlimit=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext \
10544     conftest$ac_exeext conftest.$ac_ext
10545 LIBS=$ac_check_lib_save_LIBS
10546 fi
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10548 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10549 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10550
10551
10552 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10553
10554
10555
10556 fi
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10560 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10561 if ${ac_cv_lib_crypt_crypt+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lcrypt  $LIBS"
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h.  */
10568
10569 /* Override any GCC internal prototype to avoid an error.
10570    Use char because int might match the return type of a GCC
10571    builtin and then its argument prototype would still apply.  */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 char crypt ();
10576 int
10577 main ()
10578 {
10579 return crypt ();
10580   ;
10581   return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585   ac_cv_lib_crypt_crypt=yes
10586 else
10587   ac_cv_lib_crypt_crypt=no
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590     conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10594 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10595 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10596   CRYPTLIB="-lcrypt"
10597
10598 fi
10599
10600
10601 if test "$CRYPTLIB" != ""; then
10602
10603 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10604
10605 else
10606   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10607 if test "x$ac_cv_func_crypt" = xyes; then :
10608
10609 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10610
10611 fi
10612
10613 fi
10614
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10616 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10617 if ${ac_cv_lib_cipher_setkey+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-lcipher  $LIBS"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624
10625 /* Override any GCC internal prototype to avoid an error.
10626    Use char because int might match the return type of a GCC
10627    builtin and then its argument prototype would still apply.  */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 char setkey ();
10632 int
10633 main ()
10634 {
10635 return setkey ();
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641   ac_cv_lib_cipher_setkey=yes
10642 else
10643   ac_cv_lib_cipher_setkey=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646     conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_check_lib_save_LIBS
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10650 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10651 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10652   CRYPTLIB="${CRYPTLIB} -lcipher"
10653
10654 fi
10655
10656
10657
10658 execinfo_lib_dir=
10659
10660 # Check whether --with-execinfo-lib-dir was given.
10661 if test "${with_execinfo_lib_dir+set}" = set; then :
10662   withval=$with_execinfo_lib_dir;  case "$withval" in
10663     no)
10664         as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10665         ;;
10666     yes)
10667         ;;
10668     *)
10669         execinfo_lib_dir="$withval"
10670         ;;
10671   esac
10672
10673 fi
10674
10675
10676 execinfo_include_dir=
10677
10678 # Check whether --with-execinfo-include-dir was given.
10679 if test "${with_execinfo_include_dir+set}" = set; then :
10680   withval=$with_execinfo_include_dir;  case "$withval" in
10681     no)
10682         as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10683         ;;
10684     yes)
10685         ;;
10686     *)
10687         execinfo_include_dir="$withval"
10688         ;;
10689   esac
10690
10691 fi
10692
10693
10694 smart_try_dir=$execinfo_include_dir
10695
10696
10697 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10698 old_CPPFLAGS="$CPPFLAGS"
10699 smart_include=
10700 smart_include_dir="/usr/local/include /opt/include"
10701
10702 _smart_try_dir=
10703 _smart_include_dir=
10704
10705 for _prefix in $smart_prefix ""; do
10706   for _dir in $smart_try_dir; do
10707     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10708   done
10709
10710   for _dir in $smart_include_dir; do
10711     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10712   done
10713 done
10714
10715 if test "x$_smart_try_dir" != "x"; then
10716   for try in $_smart_try_dir; do
10717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10718 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10719     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h.  */
10722
10723                     #include <execinfo.h>
10724 int
10725 main ()
10726 {
10727 int a = 1;
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_compile "$LINENO"; then :
10733
10734                      smart_include="-isystem $try"
10735                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10737                      break
10738
10739 else
10740
10741                      smart_include=
10742                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747   done
10748   CPPFLAGS="$old_CPPFLAGS"
10749 fi
10750
10751 if test "x$smart_include" = "x"; then
10752   for _prefix in $smart_prefix; do
10753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
10754 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
10755
10756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758
10759                     #include <execinfo.h>
10760 int
10761 main ()
10762 {
10763 int a = 1;
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769
10770                      smart_include="-isystem ${_prefix}/"
10771                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; }
10773                      break
10774
10775 else
10776
10777                      smart_include=
10778                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10780
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783   done
10784 fi
10785
10786 if test "x$smart_include" = "x"; then
10787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
10788 $as_echo_n "checking for execinfo.h... " >&6; }
10789
10790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793                     #include <execinfo.h>
10794 int
10795 main ()
10796 {
10797 int a = 1;
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803
10804                      smart_include=" "
10805                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10806 $as_echo "yes" >&6; }
10807                      break
10808
10809 else
10810
10811                      smart_include=
10812                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818
10819 if test "x$smart_include" = "x"; then
10820
10821   for prefix in $smart_prefix; do
10822
10823
10824 if test "x$LOCATE" != "x"; then
10825         DIRS=
10826   file="${_prefix}/${1}"
10827
10828   for x in `${LOCATE} $file 2>/dev/null`; do
10829                                         base=`echo $x | sed "s%/${file}%%"`
10830     if test "x$x" = "x$base"; then
10831       continue;
10832     fi
10833
10834     dir=`${DIRNAME} $x 2>/dev/null`
10835                 exclude=`echo ${dir} | ${GREP} /home`
10836     if test "x$exclude" != "x"; then
10837       continue
10838     fi
10839
10840                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10841     if test "x$already" = "x"; then
10842       DIRS="$DIRS $dir"
10843     fi
10844   done
10845 fi
10846
10847 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10848
10849   done
10850
10851
10852 if test "x$LOCATE" != "x"; then
10853         DIRS=
10854   file=execinfo.h
10855
10856   for x in `${LOCATE} $file 2>/dev/null`; do
10857                                         base=`echo $x | sed "s%/${file}%%"`
10858     if test "x$x" = "x$base"; then
10859       continue;
10860     fi
10861
10862     dir=`${DIRNAME} $x 2>/dev/null`
10863                 exclude=`echo ${dir} | ${GREP} /home`
10864     if test "x$exclude" != "x"; then
10865       continue
10866     fi
10867
10868                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10869     if test "x$already" = "x"; then
10870       DIRS="$DIRS $dir"
10871     fi
10872   done
10873 fi
10874
10875 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10876
10877
10878   for try in $_smart_include_dir; do
10879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10880 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10881     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h.  */
10884
10885                     #include <execinfo.h>
10886 int
10887 main ()
10888 {
10889 int a = 1;
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_compile "$LINENO"; then :
10895
10896                      smart_include="-isystem $try"
10897                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10898 $as_echo "yes" >&6; }
10899                      break
10900
10901 else
10902
10903                      smart_include=
10904                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909   done
10910   CPPFLAGS="$old_CPPFLAGS"
10911 fi
10912
10913 if test "x$smart_include" != "x"; then
10914   eval "ac_cv_header_$ac_safe=yes"
10915   CPPFLAGS="$smart_include $old_CPPFLAGS"
10916   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10917 fi
10918
10919 smart_prefix=
10920
10921 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
10922   smart_try_dir=$execinfo_lib_dir
10923
10924
10925 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
10926 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
10927
10928 old_LIBS="$LIBS"
10929 old_CPPFLAGS="$CPPFLAGS"
10930 smart_lib=
10931 smart_ldflags=
10932 smart_lib_dir=
10933
10934 if test "x$smart_try_dir" != "x"; then
10935   for try in $smart_try_dir; do
10936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10937 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10938     LIBS="-lexecinfo $old_LIBS"
10939     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h.  */
10942 extern char backtrace_symbols();
10943 int
10944 main ()
10945 {
10946 backtrace_symbols()
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952
10953                  smart_lib="-lexecinfo"
10954                  smart_ldflags="-L$try -Wl,-rpath,$try"
10955                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956 $as_echo "yes" >&6; }
10957                  break
10958
10959 else
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964     conftest$ac_exeext conftest.$ac_ext
10965   done
10966   LIBS="$old_LIBS"
10967   CPPFLAGS="$old_CPPFLAGS"
10968 fi
10969
10970 if test "x$smart_lib" = "x"; then
10971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
10972 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
10973   LIBS="-lexecinfo $old_LIBS"
10974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h.  */
10976 extern char backtrace_symbols();
10977 int
10978 main ()
10979 {
10980 backtrace_symbols()
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986
10987                 smart_lib="-lexecinfo"
10988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990
10991 else
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996     conftest$ac_exeext conftest.$ac_ext
10997   LIBS="$old_LIBS"
10998 fi
10999
11000 if test "x$smart_lib" = "x"; then
11001
11002
11003 if test "x$LOCATE" != "x"; then
11004         DIRS=
11005   file=libexecinfo${libltdl_cv_shlibext}
11006
11007   for x in `${LOCATE} $file 2>/dev/null`; do
11008                                         base=`echo $x | sed "s%/${file}%%"`
11009     if test "x$x" = "x$base"; then
11010       continue;
11011     fi
11012
11013     dir=`${DIRNAME} $x 2>/dev/null`
11014                 exclude=`echo ${dir} | ${GREP} /home`
11015     if test "x$exclude" != "x"; then
11016       continue
11017     fi
11018
11019                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11020     if test "x$already" = "x"; then
11021       DIRS="$DIRS $dir"
11022     fi
11023   done
11024 fi
11025
11026 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11027
11028
11029
11030 if test "x$LOCATE" != "x"; then
11031         DIRS=
11032   file=libexecinfo.a
11033
11034   for x in `${LOCATE} $file 2>/dev/null`; do
11035                                         base=`echo $x | sed "s%/${file}%%"`
11036     if test "x$x" = "x$base"; then
11037       continue;
11038     fi
11039
11040     dir=`${DIRNAME} $x 2>/dev/null`
11041                 exclude=`echo ${dir} | ${GREP} /home`
11042     if test "x$exclude" != "x"; then
11043       continue
11044     fi
11045
11046                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11047     if test "x$already" = "x"; then
11048       DIRS="$DIRS $dir"
11049     fi
11050   done
11051 fi
11052
11053 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11054
11055
11056   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11058 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11059     LIBS="-lexecinfo $old_LIBS"
11060     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h.  */
11063 extern char backtrace_symbols();
11064 int
11065 main ()
11066 {
11067 backtrace_symbols()
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073
11074                   smart_lib="-lexecinfo"
11075                   smart_ldflags="-L$try -Wl,-rpath,$try"
11076                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11078                   break
11079
11080 else
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext \
11085     conftest$ac_exeext conftest.$ac_ext
11086   done
11087   LIBS="$old_LIBS"
11088   CPPFLAGS="$old_CPPFLAGS"
11089 fi
11090
11091 if test "x$smart_lib" != "x"; then
11092   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11093   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11094   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11095 fi
11096
11097   if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11099 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h.  */
11102
11103         #include <execinfo.h>
11104
11105 int
11106 main ()
11107 {
11108
11109         void *sym[1];
11110         backtrace_symbols(&sym, sizeof(sym))
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116
11117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11118 $as_echo "yes" >&6; }
11119         ac_cv_lib_execinfo_backtrace_symbols="yes"
11120
11121 else
11122
11123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11125
11126
11127 fi
11128 rm -f core conftest.err conftest.$ac_objext \
11129     conftest$ac_exeext conftest.$ac_ext
11130   fi
11131
11132   if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11133
11134 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11135
11136   fi
11137 fi
11138
11139 pcre_lib_dir=
11140
11141 # Check whether --with-pcre-lib-dir was given.
11142 if test "${with_pcre_lib_dir+set}" = set; then :
11143   withval=$with_pcre_lib_dir;  case "$withval" in
11144     no)
11145         as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11146         ;;
11147     yes)
11148         ;;
11149     *)
11150         pcre_lib_dir="$withval"
11151         ;;
11152   esac
11153
11154 fi
11155
11156
11157 pcre_include_dir=
11158
11159 # Check whether --with-pcre-include-dir was given.
11160 if test "${with_pcre_include_dir+set}" = set; then :
11161   withval=$with_pcre_include_dir;  case "$withval" in
11162     no)
11163         as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11164         ;;
11165     yes)
11166         ;;
11167     *)
11168         pcre_include_dir="$withval"
11169         ;;
11170   esac
11171
11172 fi
11173
11174
11175 REGEX=
11176
11177 # Check whether --with-regex was given.
11178 if test "${with_regex+set}" = set; then :
11179   withval=$with_regex;  case "$withval" in
11180     no)
11181         REGEX=no
11182         ;;
11183     *)
11184         ;;
11185   esac
11186
11187 fi
11188
11189
11190 if test "x$REGEX" = "x"; then
11191   smart_try_dir="$pcre_include_dir /usr/local/include"
11192
11193
11194 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11195 old_CPPFLAGS="$CPPFLAGS"
11196 smart_include=
11197 smart_include_dir="/usr/local/include /opt/include"
11198
11199 _smart_try_dir=
11200 _smart_include_dir=
11201
11202 for _prefix in $smart_prefix ""; do
11203   for _dir in $smart_try_dir; do
11204     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11205   done
11206
11207   for _dir in $smart_include_dir; do
11208     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11209   done
11210 done
11211
11212 if test "x$_smart_try_dir" != "x"; then
11213   for try in $_smart_try_dir; do
11214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11215 $as_echo_n "checking for pcre.h in $try... " >&6; }
11216     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h.  */
11219
11220                     #include <pcre.h>
11221 int
11222 main ()
11223 {
11224 int a = 1;
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 if ac_fn_c_try_compile "$LINENO"; then :
11230
11231                      smart_include="-isystem $try"
11232                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233 $as_echo "yes" >&6; }
11234                      break
11235
11236 else
11237
11238                      smart_include=
11239                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244   done
11245   CPPFLAGS="$old_CPPFLAGS"
11246 fi
11247
11248 if test "x$smart_include" = "x"; then
11249   for _prefix in $smart_prefix; do
11250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11251 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11252
11253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255
11256                     #include <pcre.h>
11257 int
11258 main ()
11259 {
11260 int a = 1;
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_compile "$LINENO"; then :
11266
11267                      smart_include="-isystem ${_prefix}/"
11268                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270                      break
11271
11272 else
11273
11274                      smart_include=
11275                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280   done
11281 fi
11282
11283 if test "x$smart_include" = "x"; then
11284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11285 $as_echo_n "checking for pcre.h... " >&6; }
11286
11287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h.  */
11289
11290                     #include <pcre.h>
11291 int
11292 main ()
11293 {
11294 int a = 1;
11295   ;
11296   return 0;
11297 }
11298 _ACEOF
11299 if ac_fn_c_try_compile "$LINENO"; then :
11300
11301                      smart_include=" "
11302                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11304                      break
11305
11306 else
11307
11308                      smart_include=
11309                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 fi
11315
11316 if test "x$smart_include" = "x"; then
11317
11318   for prefix in $smart_prefix; do
11319
11320
11321 if test "x$LOCATE" != "x"; then
11322         DIRS=
11323   file="${_prefix}/${1}"
11324
11325   for x in `${LOCATE} $file 2>/dev/null`; do
11326                                         base=`echo $x | sed "s%/${file}%%"`
11327     if test "x$x" = "x$base"; then
11328       continue;
11329     fi
11330
11331     dir=`${DIRNAME} $x 2>/dev/null`
11332                 exclude=`echo ${dir} | ${GREP} /home`
11333     if test "x$exclude" != "x"; then
11334       continue
11335     fi
11336
11337                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11338     if test "x$already" = "x"; then
11339       DIRS="$DIRS $dir"
11340     fi
11341   done
11342 fi
11343
11344 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11345
11346   done
11347
11348
11349 if test "x$LOCATE" != "x"; then
11350         DIRS=
11351   file=pcre.h
11352
11353   for x in `${LOCATE} $file 2>/dev/null`; do
11354                                         base=`echo $x | sed "s%/${file}%%"`
11355     if test "x$x" = "x$base"; then
11356       continue;
11357     fi
11358
11359     dir=`${DIRNAME} $x 2>/dev/null`
11360                 exclude=`echo ${dir} | ${GREP} /home`
11361     if test "x$exclude" != "x"; then
11362       continue
11363     fi
11364
11365                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11366     if test "x$already" = "x"; then
11367       DIRS="$DIRS $dir"
11368     fi
11369   done
11370 fi
11371
11372 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11373
11374
11375   for try in $_smart_include_dir; do
11376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11377 $as_echo_n "checking for pcre.h in $try... " >&6; }
11378     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381
11382                     #include <pcre.h>
11383 int
11384 main ()
11385 {
11386 int a = 1;
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"; then :
11392
11393                      smart_include="-isystem $try"
11394                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 $as_echo "yes" >&6; }
11396                      break
11397
11398 else
11399
11400                      smart_include=
11401                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406   done
11407   CPPFLAGS="$old_CPPFLAGS"
11408 fi
11409
11410 if test "x$smart_include" != "x"; then
11411   eval "ac_cv_header_$ac_safe=yes"
11412   CPPFLAGS="$smart_include $old_CPPFLAGS"
11413   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11414 fi
11415
11416 smart_prefix=
11417
11418   if test "x$ac_cv_header_pcre_h" = "xyes"; then
11419     smart_try_dir="$pcre_lib_dir /usr/local/lib"
11420
11421
11422 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11423 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11424
11425 old_LIBS="$LIBS"
11426 old_CPPFLAGS="$CPPFLAGS"
11427 smart_lib=
11428 smart_ldflags=
11429 smart_lib_dir=
11430
11431 if test "x$smart_try_dir" != "x"; then
11432   for try in $smart_try_dir; do
11433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11434 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11435     LIBS="-lpcre $old_LIBS"
11436     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439 extern char pcre_compile();
11440 int
11441 main ()
11442 {
11443 pcre_compile()
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449
11450                  smart_lib="-lpcre"
11451                  smart_ldflags="-L$try -Wl,-rpath,$try"
11452                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453 $as_echo "yes" >&6; }
11454                  break
11455
11456 else
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461     conftest$ac_exeext conftest.$ac_ext
11462   done
11463   LIBS="$old_LIBS"
11464   CPPFLAGS="$old_CPPFLAGS"
11465 fi
11466
11467 if test "x$smart_lib" = "x"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11469 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11470   LIBS="-lpcre $old_LIBS"
11471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h.  */
11473 extern char pcre_compile();
11474 int
11475 main ()
11476 {
11477 pcre_compile()
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483
11484                 smart_lib="-lpcre"
11485                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11487
11488 else
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493     conftest$ac_exeext conftest.$ac_ext
11494   LIBS="$old_LIBS"
11495 fi
11496
11497 if test "x$smart_lib" = "x"; then
11498
11499
11500 if test "x$LOCATE" != "x"; then
11501         DIRS=
11502   file=libpcre${libltdl_cv_shlibext}
11503
11504   for x in `${LOCATE} $file 2>/dev/null`; do
11505                                         base=`echo $x | sed "s%/${file}%%"`
11506     if test "x$x" = "x$base"; then
11507       continue;
11508     fi
11509
11510     dir=`${DIRNAME} $x 2>/dev/null`
11511                 exclude=`echo ${dir} | ${GREP} /home`
11512     if test "x$exclude" != "x"; then
11513       continue
11514     fi
11515
11516                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11517     if test "x$already" = "x"; then
11518       DIRS="$DIRS $dir"
11519     fi
11520   done
11521 fi
11522
11523 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11524
11525
11526
11527 if test "x$LOCATE" != "x"; then
11528         DIRS=
11529   file=libpcre.a
11530
11531   for x in `${LOCATE} $file 2>/dev/null`; do
11532                                         base=`echo $x | sed "s%/${file}%%"`
11533     if test "x$x" = "x$base"; then
11534       continue;
11535     fi
11536
11537     dir=`${DIRNAME} $x 2>/dev/null`
11538                 exclude=`echo ${dir} | ${GREP} /home`
11539     if test "x$exclude" != "x"; then
11540       continue
11541     fi
11542
11543                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11544     if test "x$already" = "x"; then
11545       DIRS="$DIRS $dir"
11546     fi
11547   done
11548 fi
11549
11550 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11551
11552
11553   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11555 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11556     LIBS="-lpcre $old_LIBS"
11557     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h.  */
11560 extern char pcre_compile();
11561 int
11562 main ()
11563 {
11564 pcre_compile()
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570
11571                   smart_lib="-lpcre"
11572                   smart_ldflags="-L$try -Wl,-rpath,$try"
11573                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11574 $as_echo "yes" >&6; }
11575                   break
11576
11577 else
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582     conftest$ac_exeext conftest.$ac_ext
11583   done
11584   LIBS="$old_LIBS"
11585   CPPFLAGS="$old_CPPFLAGS"
11586 fi
11587
11588 if test "x$smart_lib" != "x"; then
11589   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11590   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11591   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11592 fi
11593
11594     if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11595       REGEX=yes
11596
11597 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11598
11599
11600 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11601
11602     fi
11603   fi
11604 fi
11605
11606 if test "x$REGEX" = "x"; then
11607   smart_try_dir=
11608
11609
11610 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11611 old_CPPFLAGS="$CPPFLAGS"
11612 smart_include=
11613 smart_include_dir="/usr/local/include /opt/include"
11614
11615 _smart_try_dir=
11616 _smart_include_dir=
11617
11618 for _prefix in $smart_prefix ""; do
11619   for _dir in $smart_try_dir; do
11620     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11621   done
11622
11623   for _dir in $smart_include_dir; do
11624     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11625   done
11626 done
11627
11628 if test "x$_smart_try_dir" != "x"; then
11629   for try in $_smart_try_dir; do
11630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11631 $as_echo_n "checking for regex.h in $try... " >&6; }
11632     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635
11636                     #include <regex.h>
11637 int
11638 main ()
11639 {
11640 int a = 1;
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_compile "$LINENO"; then :
11646
11647                      smart_include="-isystem $try"
11648                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11650                      break
11651
11652 else
11653
11654                      smart_include=
11655                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660   done
11661   CPPFLAGS="$old_CPPFLAGS"
11662 fi
11663
11664 if test "x$smart_include" = "x"; then
11665   for _prefix in $smart_prefix; do
11666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11667 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11668
11669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671
11672                     #include <regex.h>
11673 int
11674 main ()
11675 {
11676 int a = 1;
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 if ac_fn_c_try_compile "$LINENO"; then :
11682
11683                      smart_include="-isystem ${_prefix}/"
11684                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685 $as_echo "yes" >&6; }
11686                      break
11687
11688 else
11689
11690                      smart_include=
11691                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11693
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696   done
11697 fi
11698
11699 if test "x$smart_include" = "x"; then
11700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11701 $as_echo_n "checking for regex.h... " >&6; }
11702
11703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h.  */
11705
11706                     #include <regex.h>
11707 int
11708 main ()
11709 {
11710 int a = 1;
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 if ac_fn_c_try_compile "$LINENO"; then :
11716
11717                      smart_include=" "
11718                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719 $as_echo "yes" >&6; }
11720                      break
11721
11722 else
11723
11724                      smart_include=
11725                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727
11728 fi
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 fi
11731
11732 if test "x$smart_include" = "x"; then
11733
11734   for prefix in $smart_prefix; do
11735
11736
11737 if test "x$LOCATE" != "x"; then
11738         DIRS=
11739   file="${_prefix}/${1}"
11740
11741   for x in `${LOCATE} $file 2>/dev/null`; do
11742                                         base=`echo $x | sed "s%/${file}%%"`
11743     if test "x$x" = "x$base"; then
11744       continue;
11745     fi
11746
11747     dir=`${DIRNAME} $x 2>/dev/null`
11748                 exclude=`echo ${dir} | ${GREP} /home`
11749     if test "x$exclude" != "x"; then
11750       continue
11751     fi
11752
11753                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11754     if test "x$already" = "x"; then
11755       DIRS="$DIRS $dir"
11756     fi
11757   done
11758 fi
11759
11760 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11761
11762   done
11763
11764
11765 if test "x$LOCATE" != "x"; then
11766         DIRS=
11767   file=regex.h
11768
11769   for x in `${LOCATE} $file 2>/dev/null`; do
11770                                         base=`echo $x | sed "s%/${file}%%"`
11771     if test "x$x" = "x$base"; then
11772       continue;
11773     fi
11774
11775     dir=`${DIRNAME} $x 2>/dev/null`
11776                 exclude=`echo ${dir} | ${GREP} /home`
11777     if test "x$exclude" != "x"; then
11778       continue
11779     fi
11780
11781                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11782     if test "x$already" = "x"; then
11783       DIRS="$DIRS $dir"
11784     fi
11785   done
11786 fi
11787
11788 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11789
11790
11791   for try in $_smart_include_dir; do
11792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11793 $as_echo_n "checking for regex.h in $try... " >&6; }
11794     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h.  */
11797
11798                     #include <regex.h>
11799 int
11800 main ()
11801 {
11802 int a = 1;
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_compile "$LINENO"; then :
11808
11809                      smart_include="-isystem $try"
11810                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11811 $as_echo "yes" >&6; }
11812                      break
11813
11814 else
11815
11816                      smart_include=
11817                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11819
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822   done
11823   CPPFLAGS="$old_CPPFLAGS"
11824 fi
11825
11826 if test "x$smart_include" != "x"; then
11827   eval "ac_cv_header_$ac_safe=yes"
11828   CPPFLAGS="$smart_include $old_CPPFLAGS"
11829   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11830 fi
11831
11832 smart_prefix=
11833
11834   if test "x$ac_cv_header_regex_h" = "xyes"; then
11835     REGEX=yes
11836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
11837 $as_echo_n "checking for extended regular expressions... " >&6; }
11838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h.  */
11840
11841         #include <regex.h>
11842         #ifdef REG_EXTENDED
11843         yes
11844         #endif
11845
11846 _ACEOF
11847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11848   $EGREP "yes" >/dev/null 2>&1; then :
11849
11850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852
11853 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
11854
11855
11856 else
11857
11858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860
11861
11862 fi
11863 rm -f conftest*
11864
11865
11866                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
11867 $as_echo_n "checking for regcomp in -lregex... " >&6; }
11868 if ${ac_cv_lib_regex_regcomp+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lregex  $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char regcomp ();
11883 int
11884 main ()
11885 {
11886 return regcomp ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892   ac_cv_lib_regex_regcomp=yes
11893 else
11894   ac_cv_lib_regex_regcomp=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext \
11897     conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
11901 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
11902 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
11903
11904         LIBS="-lregex $LIBS"
11905
11906
11907 fi
11908
11909
11910                     for ac_func in \
11911       regncomp \
11912       regnexec
11913
11914 do :
11915   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11917 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11918   cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 _ACEOF
11921
11922 fi
11923 done
11924
11925     if test x"$ac_cv_func_regncomp" = x"yes" && test  x"$ac_cv_func_regnexec" = x"yes"; then
11926
11927 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11928
11929     fi
11930   fi
11931 fi
11932
11933 if test "x$REGEX" = "xyes"; then
11934
11935 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
11936
11937 fi
11938
11939
11940 $as_echo "#define GNUSTYLE 1" >>confdefs.h
11941
11942
11943
11944 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
11945
11946
11947
11948 $as_echo "#define BSDSTYLE 3" >>confdefs.h
11949
11950
11951 gethostbyaddrrstyle=""
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
11953 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
11954 case "$host" in
11955   *-freebsd*)
11956                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
11957         #ifdef HAVE_NETDB_H
11958         #include <netdb.h>
11959         #endif
11960
11961 "
11962 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
11963   ac_have_decl=1
11964 else
11965   ac_have_decl=0
11966 fi
11967
11968 cat >>confdefs.h <<_ACEOF
11969 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
11970 _ACEOF
11971 if test $ac_have_decl = 1; then :
11972
11973 else
11974
11975
11976 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11977
11978         gethostbyaddrrstyle=BSD
11979         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
11980 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
11981
11982 fi
11983
11984     ;;
11985 esac
11986
11987 if test "x$gethostbyaddrrstyle" = "x"; then
11988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h.  */
11990
11991       #include <stdio.h>
11992       #include <netdb.h>
11993
11994 int
11995 main ()
11996 {
11997  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003
12004
12005 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12006
12007       gethostbyaddrrstyle=GNU
12008
12009
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext \
12012     conftest$ac_exeext conftest.$ac_ext
12013 fi
12014
12015 if test "x$gethostbyaddrrstyle" = "x"; then
12016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h.  */
12018
12019       #include <stdio.h>
12020       #include <netdb.h>
12021
12022 int
12023 main ()
12024 {
12025  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031
12032
12033 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12034
12035       gethostbyaddrrstyle=SYSV
12036
12037
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext \
12040     conftest$ac_exeext conftest.$ac_ext
12041 fi
12042
12043
12044 if test "x$gethostbyaddrrstyle" = "x"; then
12045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h.  */
12047
12048       #include <stdio.h>
12049       #include <netdb.h>
12050
12051 int
12052 main ()
12053 {
12054  gethostbyaddr(NULL, 0, 0)
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060
12061
12062 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12063
12064       gethostbyaddrrstyle=BSD
12065
12066
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069     conftest$ac_exeext conftest.$ac_ext
12070 fi
12071
12072 if test "x$gethostbyaddrrstyle" = "x"; then
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12074 $as_echo "none!  It must not exist, here." >&6; }
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12077 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12078 fi
12079
12080 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12082 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12083 fi
12084
12085 gethostbynamerstyle=""
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12087 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090
12091     #include <stdio.h>
12092     #include <netdb.h>
12093
12094 int
12095 main ()
12096 {
12097  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103
12104
12105 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12106
12107     gethostbynamerstyle=GNU
12108
12109
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext \
12112     conftest$ac_exeext conftest.$ac_ext
12113
12114 if test "x$gethostbynamerstyle" = "x"; then
12115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h.  */
12117
12118       #include <stdio.h>
12119       #include <netdb.h>
12120
12121 int
12122 main ()
12123 {
12124  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130
12131
12132 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12133
12134       gethostbynamerstyle=SYSV
12135
12136
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext \
12139     conftest$ac_exeext conftest.$ac_ext
12140 fi
12141
12142 if test "x$gethostbynamerstyle" = "x"; then
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146       #include <stdio.h>
12147       #include <netdb.h>
12148
12149 int
12150 main ()
12151 {
12152  gethostbyname(NULL)
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158
12159
12160 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12161
12162       gethostbynamerstyle=BSD
12163
12164
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 fi
12169
12170 if test "x$gethostbynamerstyle" = "x"; then
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12172 $as_echo "none!  It must not exist, here." >&6; }
12173 else
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12175 $as_echo "${gethostbynamerstyle}-style" >&6; }
12176 fi
12177
12178 if test "x$gethostbynamerstyle" = "xBSD"; then
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12180 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12181 fi
12182
12183 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12185 $as_echo_n "checking getpwnam_r... " >&6; }
12186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h.  */
12188
12189       #include <stdlib.h>
12190       #include <sys/types.h>
12191       #include <pwd.h>
12192
12193 int
12194 main ()
12195 {
12196  getpwnam_r(NULL, NULL, NULL, 0, NULL)
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202
12203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204 $as_echo "yes" >&6; }
12205
12206 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12207
12208
12209 else
12210
12211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213
12214
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext \
12217     conftest$ac_exeext conftest.$ac_ext
12218 fi
12219
12220 if test "x$ac_cv_header_grp_h" = "xyes"; then
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12222 $as_echo_n "checking getgrnam_r... " >&6; }
12223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h.  */
12225
12226       #include <stdlib.h>
12227       #include <sys/types.h>
12228       #include <grp.h>
12229
12230 int
12231 main ()
12232 {
12233  getgrnam_r(NULL, NULL, NULL, 0, NULL)
12234   ;
12235   return 0;
12236 }
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12239
12240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241 $as_echo "yes" >&6; }
12242
12243 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12244
12245
12246 else
12247
12248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250
12251
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext \
12254     conftest$ac_exeext conftest.$ac_ext
12255 fi
12256
12257
12258
12259 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12260
12261
12262 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12263
12264 ctimerstyle=""
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12266 $as_echo_n "checking ctime_r() syntax... " >&6; }
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h.  */
12269
12270     #include <time.h>
12271
12272 int
12273 main ()
12274 {
12275  ctime_r(NULL, NULL, 0)
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_link "$LINENO"; then :
12281
12282
12283 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12284
12285     ctimerstyle="SOLARIS"
12286
12287
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext \
12290     conftest$ac_exeext conftest.$ac_ext
12291
12292 if test "x$ctimerstyle" = "x"; then
12293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h.  */
12295
12296       #include <time.h>
12297
12298 int
12299 main ()
12300 {
12301  ctime_r(NULL, NULL)
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307
12308
12309 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12310
12311       ctimerstyle="POSIX"
12312
12313
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316     conftest$ac_exeext conftest.$ac_ext
12317 fi
12318
12319 if test "x$ctimerstyle" = "x"; then
12320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12321 $as_echo "none!  It must not exist, here." >&6; }
12322 else
12323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12324 $as_echo "${ctimerstyle}-style" >&6; }
12325 fi
12326
12327 HOSTINFO=$host
12328
12329
12330
12331 top_builddir=`pwd`
12332 export top_builddir
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12334 $as_echo "top_builddir=$top_builddir" >&6; }
12335
12336
12337
12338
12339 if test "x$EXPERIMENTAL" = "xyes"; then
12340   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12341     MODULES="$MODULES $foo"
12342   done
12343 else
12344             for foo in `cat "${srcdir}"/src/modules/stable`; do
12345       MODULES="$MODULES $foo"
12346    done
12347 fi
12348
12349 mysubdirs=""
12350 for bar in $MODULES; do
12351   if test -f "${srcdir}"/src/modules/$bar/configure; then
12352     mysubdirs="$mysubdirs src/modules/$bar"
12353   fi
12354 done
12355
12356
12357
12358 subdirs="$subdirs $mysubdirs"
12359
12360
12361
12362 if test "x$werror" == "xyes"; then
12363   CFLAGS="-Werror $CFLAGS"
12364 fi
12365
12366 ac_config_commands="$ac_config_commands stamp-h"
12367
12368 ac_config_commands="$ac_config_commands build-radpaths-h"
12369
12370 ac_config_commands="$ac_config_commands main-chmod"
12371
12372 ac_config_commands="$ac_config_commands scripts-chmod"
12373
12374
12375
12376
12377
12378
12379 USE_STATIC_LIBS="yes"
12380
12381
12382
12383
12384   unset ac_cv_env_LIBS_set
12385   unset ac_cv_env_LIBS_value
12386
12387   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/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radrelay.conf ./raddb/radiusd.conf"
12388
12389 cat >confcache <<\_ACEOF
12390 # This file is a shell script that caches the results of configure
12391 # tests run on this system so they can be shared between configure
12392 # scripts and configure runs, see configure's option --config-cache.
12393 # It is not useful on other systems.  If it contains results you don't
12394 # want to keep, you may remove or edit it.
12395 #
12396 # config.status only pays attention to the cache file if you give it
12397 # the --recheck option to rerun configure.
12398 #
12399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12401 # following values.
12402
12403 _ACEOF
12404
12405 # The following way of writing the cache mishandles newlines in values,
12406 # but we know of no workaround that is simple, portable, and efficient.
12407 # So, we kill variables containing newlines.
12408 # Ultrix sh set writes to stderr and can't be redirected directly,
12409 # and sets the high bit in the cache file unless we assign to the vars.
12410 (
12411   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12412     eval ac_val=\$$ac_var
12413     case $ac_val in #(
12414     *${as_nl}*)
12415       case $ac_var in #(
12416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12418       esac
12419       case $ac_var in #(
12420       _ | IFS | as_nl) ;; #(
12421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12422       *) { eval $ac_var=; unset $ac_var;} ;;
12423       esac ;;
12424     esac
12425   done
12426
12427   (set) 2>&1 |
12428     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12429     *${as_nl}ac_space=\ *)
12430       # `set' does not quote correctly, so add quotes: double-quote
12431       # substitution turns \\\\ into \\, and sed turns \\ into \.
12432       sed -n \
12433         "s/'/'\\\\''/g;
12434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12435       ;; #(
12436     *)
12437       # `set' quotes correctly as required by POSIX, so do not add quotes.
12438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12439       ;;
12440     esac |
12441     sort
12442 ) |
12443   sed '
12444      /^ac_cv_env_/b end
12445      t clear
12446      :clear
12447      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12448      t end
12449      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12450      :end' >>confcache
12451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12452   if test -w "$cache_file"; then
12453     if test "x$cache_file" != "x/dev/null"; then
12454       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12455 $as_echo "$as_me: updating cache $cache_file" >&6;}
12456       if test ! -f "$cache_file" || test -h "$cache_file"; then
12457         cat confcache >"$cache_file"
12458       else
12459         case $cache_file in #(
12460         */* | ?:*)
12461           mv -f confcache "$cache_file"$$ &&
12462           mv -f "$cache_file"$$ "$cache_file" ;; #(
12463         *)
12464           mv -f confcache "$cache_file" ;;
12465         esac
12466       fi
12467     fi
12468   else
12469     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12471   fi
12472 fi
12473 rm -f confcache
12474
12475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12476 # Let make expand exec_prefix.
12477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12478
12479 DEFS=-DHAVE_CONFIG_H
12480
12481 ac_libobjs=
12482 ac_ltlibobjs=
12483 U=
12484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12485   # 1. Remove the extension, and $U if already installed.
12486   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12487   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12488   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12489   #    will be set to the directory where LIBOBJS objects are built.
12490   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12491   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12492 done
12493 LIBOBJS=$ac_libobjs
12494
12495 LTLIBOBJS=$ac_ltlibobjs
12496
12497
12498
12499
12500 : "${CONFIG_STATUS=./config.status}"
12501 ac_write_fail=0
12502 ac_clean_files_save=$ac_clean_files
12503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12505 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12506 as_write_fail=0
12507 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12508 #! $SHELL
12509 # Generated by $as_me.
12510 # Run this file to recreate the current configuration.
12511 # Compiler output produced by configure, useful for debugging
12512 # configure, is in config.log if it exists.
12513
12514 debug=false
12515 ac_cs_recheck=false
12516 ac_cs_silent=false
12517
12518 SHELL=\${CONFIG_SHELL-$SHELL}
12519 export SHELL
12520 _ASEOF
12521 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12522 ## -------------------- ##
12523 ## M4sh Initialization. ##
12524 ## -------------------- ##
12525
12526 # Be more Bourne compatible
12527 DUALCASE=1; export DUALCASE # for MKS sh
12528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12529   emulate sh
12530   NULLCMD=:
12531   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12532   # is contrary to our usage.  Disable this feature.
12533   alias -g '${1+"$@"}'='"$@"'
12534   setopt NO_GLOB_SUBST
12535 else
12536   case `(set -o) 2>/dev/null` in #(
12537   *posix*) :
12538     set -o posix ;; #(
12539   *) :
12540      ;;
12541 esac
12542 fi
12543
12544
12545 as_nl='
12546 '
12547 export as_nl
12548 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12549 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12552 # Prefer a ksh shell builtin over an external printf program on Solaris,
12553 # but without wasting forks for bash or zsh.
12554 if test -z "$BASH_VERSION$ZSH_VERSION" \
12555     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12556   as_echo='print -r --'
12557   as_echo_n='print -rn --'
12558 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12559   as_echo='printf %s\n'
12560   as_echo_n='printf %s'
12561 else
12562   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12563     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12564     as_echo_n='/usr/ucb/echo -n'
12565   else
12566     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12567     as_echo_n_body='eval
12568       arg=$1;
12569       case $arg in #(
12570       *"$as_nl"*)
12571         expr "X$arg" : "X\\(.*\\)$as_nl";
12572         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12573       esac;
12574       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12575     '
12576     export as_echo_n_body
12577     as_echo_n='sh -c $as_echo_n_body as_echo'
12578   fi
12579   export as_echo_body
12580   as_echo='sh -c $as_echo_body as_echo'
12581 fi
12582
12583 # The user is always right.
12584 if test "${PATH_SEPARATOR+set}" != set; then
12585   PATH_SEPARATOR=:
12586   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12587     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12588       PATH_SEPARATOR=';'
12589   }
12590 fi
12591
12592
12593 # IFS
12594 # We need space, tab and new line, in precisely that order.  Quoting is
12595 # there to prevent editors from complaining about space-tab.
12596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12597 # splitting by setting IFS to empty value.)
12598 IFS=" ""        $as_nl"
12599
12600 # Find who we are.  Look in the path if we contain no directory separator.
12601 as_myself=
12602 case $0 in #((
12603   *[\\/]* ) as_myself=$0 ;;
12604   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12606 do
12607   IFS=$as_save_IFS
12608   test -z "$as_dir" && as_dir=.
12609     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12610   done
12611 IFS=$as_save_IFS
12612
12613      ;;
12614 esac
12615 # We did not find ourselves, most probably we were run as `sh COMMAND'
12616 # in which case we are not to be found in the path.
12617 if test "x$as_myself" = x; then
12618   as_myself=$0
12619 fi
12620 if test ! -f "$as_myself"; then
12621   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12622   exit 1
12623 fi
12624
12625 # Unset variables that we do not need and which cause bugs (e.g. in
12626 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12627 # suppresses any "Segmentation fault" message there.  '((' could
12628 # trigger a bug in pdksh 5.2.14.
12629 for as_var in BASH_ENV ENV MAIL MAILPATH
12630 do eval test x\${$as_var+set} = xset \
12631   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12632 done
12633 PS1='$ '
12634 PS2='> '
12635 PS4='+ '
12636
12637 # NLS nuisances.
12638 LC_ALL=C
12639 export LC_ALL
12640 LANGUAGE=C
12641 export LANGUAGE
12642
12643 # CDPATH.
12644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12645
12646
12647 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12648 # ----------------------------------------
12649 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12650 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12651 # script with STATUS, using 1 if that was 0.
12652 as_fn_error ()
12653 {
12654   as_status=$1; test $as_status -eq 0 && as_status=1
12655   if test "$4"; then
12656     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12657     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12658   fi
12659   $as_echo "$as_me: error: $2" >&2
12660   as_fn_exit $as_status
12661 } # as_fn_error
12662
12663
12664 # as_fn_set_status STATUS
12665 # -----------------------
12666 # Set $? to STATUS, without forking.
12667 as_fn_set_status ()
12668 {
12669   return $1
12670 } # as_fn_set_status
12671
12672 # as_fn_exit STATUS
12673 # -----------------
12674 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12675 as_fn_exit ()
12676 {
12677   set +e
12678   as_fn_set_status $1
12679   exit $1
12680 } # as_fn_exit
12681
12682 # as_fn_unset VAR
12683 # ---------------
12684 # Portably unset VAR.
12685 as_fn_unset ()
12686 {
12687   { eval $1=; unset $1;}
12688 }
12689 as_unset=as_fn_unset
12690 # as_fn_append VAR VALUE
12691 # ----------------------
12692 # Append the text in VALUE to the end of the definition contained in VAR. Take
12693 # advantage of any shell optimizations that allow amortized linear growth over
12694 # repeated appends, instead of the typical quadratic growth present in naive
12695 # implementations.
12696 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12697   eval 'as_fn_append ()
12698   {
12699     eval $1+=\$2
12700   }'
12701 else
12702   as_fn_append ()
12703   {
12704     eval $1=\$$1\$2
12705   }
12706 fi # as_fn_append
12707
12708 # as_fn_arith ARG...
12709 # ------------------
12710 # Perform arithmetic evaluation on the ARGs, and store the result in the
12711 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12712 # must be portable across $(()) and expr.
12713 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12714   eval 'as_fn_arith ()
12715   {
12716     as_val=$(( $* ))
12717   }'
12718 else
12719   as_fn_arith ()
12720   {
12721     as_val=`expr "$@" || test $? -eq 1`
12722   }
12723 fi # as_fn_arith
12724
12725
12726 if expr a : '\(a\)' >/dev/null 2>&1 &&
12727    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12728   as_expr=expr
12729 else
12730   as_expr=false
12731 fi
12732
12733 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12734   as_basename=basename
12735 else
12736   as_basename=false
12737 fi
12738
12739 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12740   as_dirname=dirname
12741 else
12742   as_dirname=false
12743 fi
12744
12745 as_me=`$as_basename -- "$0" ||
12746 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12747          X"$0" : 'X\(//\)$' \| \
12748          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12749 $as_echo X/"$0" |
12750     sed '/^.*\/\([^/][^/]*\)\/*$/{
12751             s//\1/
12752             q
12753           }
12754           /^X\/\(\/\/\)$/{
12755             s//\1/
12756             q
12757           }
12758           /^X\/\(\/\).*/{
12759             s//\1/
12760             q
12761           }
12762           s/.*/./; q'`
12763
12764 # Avoid depending upon Character Ranges.
12765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12768 as_cr_digits='0123456789'
12769 as_cr_alnum=$as_cr_Letters$as_cr_digits
12770
12771 ECHO_C= ECHO_N= ECHO_T=
12772 case `echo -n x` in #(((((
12773 -n*)
12774   case `echo 'xy\c'` in
12775   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12776   xy)  ECHO_C='\c';;
12777   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12778        ECHO_T=' ';;
12779   esac;;
12780 *)
12781   ECHO_N='-n';;
12782 esac
12783
12784 rm -f conf$$ conf$$.exe conf$$.file
12785 if test -d conf$$.dir; then
12786   rm -f conf$$.dir/conf$$.file
12787 else
12788   rm -f conf$$.dir
12789   mkdir conf$$.dir 2>/dev/null
12790 fi
12791 if (echo >conf$$.file) 2>/dev/null; then
12792   if ln -s conf$$.file conf$$ 2>/dev/null; then
12793     as_ln_s='ln -s'
12794     # ... but there are two gotchas:
12795     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12796     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12797     # In both cases, we have to default to `cp -pR'.
12798     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12799       as_ln_s='cp -pR'
12800   elif ln conf$$.file conf$$ 2>/dev/null; then
12801     as_ln_s=ln
12802   else
12803     as_ln_s='cp -pR'
12804   fi
12805 else
12806   as_ln_s='cp -pR'
12807 fi
12808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12809 rmdir conf$$.dir 2>/dev/null
12810
12811
12812 # as_fn_mkdir_p
12813 # -------------
12814 # Create "$as_dir" as a directory, including parents if necessary.
12815 as_fn_mkdir_p ()
12816 {
12817
12818   case $as_dir in #(
12819   -*) as_dir=./$as_dir;;
12820   esac
12821   test -d "$as_dir" || eval $as_mkdir_p || {
12822     as_dirs=
12823     while :; do
12824       case $as_dir in #(
12825       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12826       *) as_qdir=$as_dir;;
12827       esac
12828       as_dirs="'$as_qdir' $as_dirs"
12829       as_dir=`$as_dirname -- "$as_dir" ||
12830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12831          X"$as_dir" : 'X\(//\)[^/]' \| \
12832          X"$as_dir" : 'X\(//\)$' \| \
12833          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12834 $as_echo X"$as_dir" |
12835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12836             s//\1/
12837             q
12838           }
12839           /^X\(\/\/\)[^/].*/{
12840             s//\1/
12841             q
12842           }
12843           /^X\(\/\/\)$/{
12844             s//\1/
12845             q
12846           }
12847           /^X\(\/\).*/{
12848             s//\1/
12849             q
12850           }
12851           s/.*/./; q'`
12852       test -d "$as_dir" && break
12853     done
12854     test -z "$as_dirs" || eval "mkdir $as_dirs"
12855   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12856
12857
12858 } # as_fn_mkdir_p
12859 if mkdir -p . 2>/dev/null; then
12860   as_mkdir_p='mkdir -p "$as_dir"'
12861 else
12862   test -d ./-p && rmdir ./-p
12863   as_mkdir_p=false
12864 fi
12865
12866
12867 # as_fn_executable_p FILE
12868 # -----------------------
12869 # Test if FILE is an executable regular file.
12870 as_fn_executable_p ()
12871 {
12872   test -f "$1" && test -x "$1"
12873 } # as_fn_executable_p
12874 as_test_x='test -x'
12875 as_executable_p=as_fn_executable_p
12876
12877 # Sed expression to map a string onto a valid CPP name.
12878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12879
12880 # Sed expression to map a string onto a valid variable name.
12881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12882
12883
12884 exec 6>&1
12885 ## ----------------------------------- ##
12886 ## Main body of $CONFIG_STATUS script. ##
12887 ## ----------------------------------- ##
12888 _ASEOF
12889 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12890
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892 # Save the log message, to keep $0 and so on meaningful, and to
12893 # report actual input values of CONFIG_FILES etc. instead of their
12894 # values after options handling.
12895 ac_log="
12896 This file was extended by freeradius $as_me $Id$, which was
12897 generated by GNU Autoconf 2.69.  Invocation command line was
12898
12899   CONFIG_FILES    = $CONFIG_FILES
12900   CONFIG_HEADERS  = $CONFIG_HEADERS
12901   CONFIG_LINKS    = $CONFIG_LINKS
12902   CONFIG_COMMANDS = $CONFIG_COMMANDS
12903   $ $0 $@
12904
12905 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12906 "
12907
12908 _ACEOF
12909
12910 case $ac_config_files in *"
12911 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12912 esac
12913
12914 case $ac_config_headers in *"
12915 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12916 esac
12917
12918
12919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12920 # Files that config.status was made for.
12921 config_files="$ac_config_files"
12922 config_headers="$ac_config_headers"
12923 config_commands="$ac_config_commands"
12924
12925 _ACEOF
12926
12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928 ac_cs_usage="\
12929 \`$as_me' instantiates files and other configuration actions
12930 from templates according to the current configuration.  Unless the files
12931 and actions are specified as TAGs, all are instantiated by default.
12932
12933 Usage: $0 [OPTION]... [TAG]...
12934
12935   -h, --help       print this help, then exit
12936   -V, --version    print version number and configuration settings, then exit
12937       --config     print configuration, then exit
12938   -q, --quiet, --silent
12939                    do not print progress messages
12940   -d, --debug      don't remove temporary files
12941       --recheck    update $as_me by reconfiguring in the same conditions
12942       --file=FILE[:TEMPLATE]
12943                    instantiate the configuration file FILE
12944       --header=FILE[:TEMPLATE]
12945                    instantiate the configuration header FILE
12946
12947 Configuration files:
12948 $config_files
12949
12950 Configuration headers:
12951 $config_headers
12952
12953 Configuration commands:
12954 $config_commands
12955
12956 Report bugs to <http://bugs.freeradius.org>.
12957 freeradius home page: <http://www.freeradius.org>."
12958
12959 _ACEOF
12960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12961 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12962 ac_cs_version="\\
12963 freeradius config.status $Id$
12964 configured by $0, generated by GNU Autoconf 2.69,
12965   with options \\"\$ac_cs_config\\"
12966
12967 Copyright (C) 2012 Free Software Foundation, Inc.
12968 This config.status script is free software; the Free Software Foundation
12969 gives unlimited permission to copy, distribute and modify it."
12970
12971 ac_pwd='$ac_pwd'
12972 srcdir='$srcdir'
12973 test -n "\$AWK" || AWK=awk
12974 _ACEOF
12975
12976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12977 # The default lists apply if the user does not specify any file.
12978 ac_need_defaults=:
12979 while test $# != 0
12980 do
12981   case $1 in
12982   --*=?*)
12983     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12984     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12985     ac_shift=:
12986     ;;
12987   --*=)
12988     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12989     ac_optarg=
12990     ac_shift=:
12991     ;;
12992   *)
12993     ac_option=$1
12994     ac_optarg=$2
12995     ac_shift=shift
12996     ;;
12997   esac
12998
12999   case $ac_option in
13000   # Handling of the options.
13001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13002     ac_cs_recheck=: ;;
13003   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13004     $as_echo "$ac_cs_version"; exit ;;
13005   --config | --confi | --conf | --con | --co | --c )
13006     $as_echo "$ac_cs_config"; exit ;;
13007   --debug | --debu | --deb | --de | --d | -d )
13008     debug=: ;;
13009   --file | --fil | --fi | --f )
13010     $ac_shift
13011     case $ac_optarg in
13012     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13013     '') as_fn_error $? "missing file argument" ;;
13014     esac
13015     as_fn_append CONFIG_FILES " '$ac_optarg'"
13016     ac_need_defaults=false;;
13017   --header | --heade | --head | --hea )
13018     $ac_shift
13019     case $ac_optarg in
13020     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13021     esac
13022     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13023     ac_need_defaults=false;;
13024   --he | --h)
13025     # Conflict between --help and --header
13026     as_fn_error $? "ambiguous option: \`$1'
13027 Try \`$0 --help' for more information.";;
13028   --help | --hel | -h )
13029     $as_echo "$ac_cs_usage"; exit ;;
13030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13031   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13032     ac_cs_silent=: ;;
13033
13034   # This is an error.
13035   -*) as_fn_error $? "unrecognized option: \`$1'
13036 Try \`$0 --help' for more information." ;;
13037
13038   *) as_fn_append ac_config_targets " $1"
13039      ac_need_defaults=false ;;
13040
13041   esac
13042   shift
13043 done
13044
13045 ac_configure_extra_args=
13046
13047 if $ac_cs_silent; then
13048   exec 6>/dev/null
13049   ac_configure_extra_args="$ac_configure_extra_args --silent"
13050 fi
13051
13052 _ACEOF
13053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054 if \$ac_cs_recheck; then
13055   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13056   shift
13057   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13058   CONFIG_SHELL='$SHELL'
13059   export CONFIG_SHELL
13060   exec "\$@"
13061 fi
13062
13063 _ACEOF
13064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13065 exec 5>>config.log
13066 {
13067   echo
13068   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13069 ## Running $as_me. ##
13070 _ASBOX
13071   $as_echo "$ac_log"
13072 } >&5
13073
13074 _ACEOF
13075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076 _ACEOF
13077
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13079
13080 # Handling of arguments.
13081 for ac_config_target in $ac_config_targets
13082 do
13083   case $ac_config_target in
13084     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13085     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13086     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13087     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13088     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13089     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13090     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13091     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13092     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13093     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13094     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13095     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13096     "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13097     "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13098     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13099     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13100     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13101
13102   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13103   esac
13104 done
13105
13106
13107 # If the user did not use the arguments to specify the items to instantiate,
13108 # then the envvar interface is used.  Set only those that are not.
13109 # We use the long form for the default assignment because of an extremely
13110 # bizarre bug on SunOS 4.1.3.
13111 if $ac_need_defaults; then
13112   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13113   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13114   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13115 fi
13116
13117 # Have a temporary directory for convenience.  Make it in the build tree
13118 # simply because there is no reason against having it here, and in addition,
13119 # creating and moving files from /tmp can sometimes cause problems.
13120 # Hook for its removal unless debugging.
13121 # Note that there is a small window in which the directory will not be cleaned:
13122 # after its creation but before its name has been assigned to `$tmp'.
13123 $debug ||
13124 {
13125   tmp= ac_tmp=
13126   trap 'exit_status=$?
13127   : "${ac_tmp:=$tmp}"
13128   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13129 ' 0
13130   trap 'as_fn_exit 1' 1 2 13 15
13131 }
13132 # Create a (secure) tmp directory for tmp files.
13133
13134 {
13135   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13136   test -d "$tmp"
13137 }  ||
13138 {
13139   tmp=./conf$$-$RANDOM
13140   (umask 077 && mkdir "$tmp")
13141 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13142 ac_tmp=$tmp
13143
13144 # Set up the scripts for CONFIG_FILES section.
13145 # No need to generate them if there are no CONFIG_FILES.
13146 # This happens for instance with `./config.status config.h'.
13147 if test -n "$CONFIG_FILES"; then
13148
13149
13150 ac_cr=`echo X | tr X '\015'`
13151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13152 # But we know of no other shell where ac_cr would be empty at this
13153 # point, so we can use a bashism as a fallback.
13154 if test "x$ac_cr" = x; then
13155   eval ac_cr=\$\'\\r\'
13156 fi
13157 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13159   ac_cs_awk_cr='\\r'
13160 else
13161   ac_cs_awk_cr=$ac_cr
13162 fi
13163
13164 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13165 _ACEOF
13166
13167
13168 {
13169   echo "cat >conf$$subs.awk <<_ACEOF" &&
13170   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13171   echo "_ACEOF"
13172 } >conf$$subs.sh ||
13173   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13175 ac_delim='%!_!# '
13176 for ac_last_try in false false false false false :; do
13177   . ./conf$$subs.sh ||
13178     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13179
13180   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13181   if test $ac_delim_n = $ac_delim_num; then
13182     break
13183   elif $ac_last_try; then
13184     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13185   else
13186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13187   fi
13188 done
13189 rm -f conf$$subs.sh
13190
13191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13192 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13193 _ACEOF
13194 sed -n '
13195 h
13196 s/^/S["/; s/!.*/"]=/
13197 p
13198 g
13199 s/^[^!]*!//
13200 :repl
13201 t repl
13202 s/'"$ac_delim"'$//
13203 t delim
13204 :nl
13205 h
13206 s/\(.\{148\}\)..*/\1/
13207 t more1
13208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13209 p
13210 n
13211 b repl
13212 :more1
13213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13214 p
13215 g
13216 s/.\{148\}//
13217 t nl
13218 :delim
13219 h
13220 s/\(.\{148\}\)..*/\1/
13221 t more2
13222 s/["\\]/\\&/g; s/^/"/; s/$/"/
13223 p
13224 b
13225 :more2
13226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13227 p
13228 g
13229 s/.\{148\}//
13230 t delim
13231 ' <conf$$subs.awk | sed '
13232 /^[^""]/{
13233   N
13234   s/\n//
13235 }
13236 ' >>$CONFIG_STATUS || ac_write_fail=1
13237 rm -f conf$$subs.awk
13238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13239 _ACAWK
13240 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13241   for (key in S) S_is_set[key] = 1
13242   FS = "\a"
13243
13244 }
13245 {
13246   line = $ 0
13247   nfields = split(line, field, "@")
13248   substed = 0
13249   len = length(field[1])
13250   for (i = 2; i < nfields; i++) {
13251     key = field[i]
13252     keylen = length(key)
13253     if (S_is_set[key]) {
13254       value = S[key]
13255       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13256       len += length(value) + length(field[++i])
13257       substed = 1
13258     } else
13259       len += 1 + keylen
13260   }
13261
13262   print line
13263 }
13264
13265 _ACAWK
13266 _ACEOF
13267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13269   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13270 else
13271   cat
13272 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13273   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13274 _ACEOF
13275
13276 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13277 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13278 # trailing colons and then remove the whole line if VPATH becomes empty
13279 # (actually we leave an empty line to preserve line numbers).
13280 if test "x$srcdir" = x.; then
13281   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13282 h
13283 s///
13284 s/^/:/
13285 s/[      ]*$/:/
13286 s/:\$(srcdir):/:/g
13287 s/:\${srcdir}:/:/g
13288 s/:@srcdir@:/:/g
13289 s/^:*//
13290 s/:*$//
13291 x
13292 s/\(=[   ]*\).*/\1/
13293 G
13294 s/\n//
13295 s/^[^=]*=[       ]*$//
13296 }'
13297 fi
13298
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300 fi # test -n "$CONFIG_FILES"
13301
13302 # Set up the scripts for CONFIG_HEADERS section.
13303 # No need to generate them if there are no CONFIG_HEADERS.
13304 # This happens for instance with `./config.status Makefile'.
13305 if test -n "$CONFIG_HEADERS"; then
13306 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13307 BEGIN {
13308 _ACEOF
13309
13310 # Transform confdefs.h into an awk script `defines.awk', embedded as
13311 # here-document in config.status, that substitutes the proper values into
13312 # config.h.in to produce config.h.
13313
13314 # Create a delimiter string that does not exist in confdefs.h, to ease
13315 # handling of long lines.
13316 ac_delim='%!_!# '
13317 for ac_last_try in false false :; do
13318   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13319   if test -z "$ac_tt"; then
13320     break
13321   elif $ac_last_try; then
13322     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13323   else
13324     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13325   fi
13326 done
13327
13328 # For the awk script, D is an array of macro values keyed by name,
13329 # likewise P contains macro parameters if any.  Preserve backslash
13330 # newline sequences.
13331
13332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13333 sed -n '
13334 s/.\{148\}/&'"$ac_delim"'/g
13335 t rset
13336 :rset
13337 s/^[     ]*#[    ]*define[       ][      ]*/ /
13338 t def
13339 d
13340 :def
13341 s/\\$//
13342 t bsnl
13343 s/["\\]/\\&/g
13344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13345 D["\1"]=" \3"/p
13346 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13347 d
13348 :bsnl
13349 s/["\\]/\\&/g
13350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13351 D["\1"]=" \3\\\\\\n"\\/p
13352 t cont
13353 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13354 t cont
13355 d
13356 :cont
13357 n
13358 s/.\{148\}/&'"$ac_delim"'/g
13359 t clear
13360 :clear
13361 s/\\$//
13362 t bsnlc
13363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13364 d
13365 :bsnlc
13366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13367 b cont
13368 ' <confdefs.h | sed '
13369 s/'"$ac_delim"'/"\\\
13370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13371
13372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373   for (key in D) D_is_set[key] = 1
13374   FS = "\a"
13375 }
13376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13377   line = \$ 0
13378   split(line, arg, " ")
13379   if (arg[1] == "#") {
13380     defundef = arg[2]
13381     mac1 = arg[3]
13382   } else {
13383     defundef = substr(arg[1], 2)
13384     mac1 = arg[2]
13385   }
13386   split(mac1, mac2, "(") #)
13387   macro = mac2[1]
13388   prefix = substr(line, 1, index(line, defundef) - 1)
13389   if (D_is_set[macro]) {
13390     # Preserve the white space surrounding the "#".
13391     print prefix "define", macro P[macro] D[macro]
13392     next
13393   } else {
13394     # Replace #undef with comments.  This is necessary, for example,
13395     # in the case of _POSIX_SOURCE, which is predefined and required
13396     # on some systems where configure will not decide to define it.
13397     if (defundef == "undef") {
13398       print "/*", prefix defundef, macro, "*/"
13399       next
13400     }
13401   }
13402 }
13403 { print }
13404 _ACAWK
13405 _ACEOF
13406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13407   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13408 fi # test -n "$CONFIG_HEADERS"
13409
13410
13411 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13412 shift
13413 for ac_tag
13414 do
13415   case $ac_tag in
13416   :[FHLC]) ac_mode=$ac_tag; continue;;
13417   esac
13418   case $ac_mode$ac_tag in
13419   :[FHL]*:*);;
13420   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13421   :[FH]-) ac_tag=-:-;;
13422   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13423   esac
13424   ac_save_IFS=$IFS
13425   IFS=:
13426   set x $ac_tag
13427   IFS=$ac_save_IFS
13428   shift
13429   ac_file=$1
13430   shift
13431
13432   case $ac_mode in
13433   :L) ac_source=$1;;
13434   :[FH])
13435     ac_file_inputs=
13436     for ac_f
13437     do
13438       case $ac_f in
13439       -) ac_f="$ac_tmp/stdin";;
13440       *) # Look for the file first in the build tree, then in the source tree
13441          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13442          # because $ac_f cannot contain `:'.
13443          test -f "$ac_f" ||
13444            case $ac_f in
13445            [\\/$]*) false;;
13446            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13447            esac ||
13448            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13449       esac
13450       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13451       as_fn_append ac_file_inputs " '$ac_f'"
13452     done
13453
13454     # Let's still pretend it is `configure' which instantiates (i.e., don't
13455     # use $as_me), people would be surprised to read:
13456     #    /* config.h.  Generated by config.status.  */
13457     configure_input='Generated from '`
13458           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13459         `' by configure.'
13460     if test x"$ac_file" != x-; then
13461       configure_input="$ac_file.  $configure_input"
13462       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13463 $as_echo "$as_me: creating $ac_file" >&6;}
13464     fi
13465     # Neutralize special characters interpreted by sed in replacement strings.
13466     case $configure_input in #(
13467     *\&* | *\|* | *\\* )
13468        ac_sed_conf_input=`$as_echo "$configure_input" |
13469        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13470     *) ac_sed_conf_input=$configure_input;;
13471     esac
13472
13473     case $ac_tag in
13474     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13475       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13476     esac
13477     ;;
13478   esac
13479
13480   ac_dir=`$as_dirname -- "$ac_file" ||
13481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482          X"$ac_file" : 'X\(//\)[^/]' \| \
13483          X"$ac_file" : 'X\(//\)$' \| \
13484          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13485 $as_echo X"$ac_file" |
13486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13487             s//\1/
13488             q
13489           }
13490           /^X\(\/\/\)[^/].*/{
13491             s//\1/
13492             q
13493           }
13494           /^X\(\/\/\)$/{
13495             s//\1/
13496             q
13497           }
13498           /^X\(\/\).*/{
13499             s//\1/
13500             q
13501           }
13502           s/.*/./; q'`
13503   as_dir="$ac_dir"; as_fn_mkdir_p
13504   ac_builddir=.
13505
13506 case "$ac_dir" in
13507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13508 *)
13509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13510   # A ".." for each directory in $ac_dir_suffix.
13511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13512   case $ac_top_builddir_sub in
13513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13515   esac ;;
13516 esac
13517 ac_abs_top_builddir=$ac_pwd
13518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13519 # for backward compatibility:
13520 ac_top_builddir=$ac_top_build_prefix
13521
13522 case $srcdir in
13523   .)  # We are building in place.
13524     ac_srcdir=.
13525     ac_top_srcdir=$ac_top_builddir_sub
13526     ac_abs_top_srcdir=$ac_pwd ;;
13527   [\\/]* | ?:[\\/]* )  # Absolute name.
13528     ac_srcdir=$srcdir$ac_dir_suffix;
13529     ac_top_srcdir=$srcdir
13530     ac_abs_top_srcdir=$srcdir ;;
13531   *) # Relative name.
13532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13533     ac_top_srcdir=$ac_top_build_prefix$srcdir
13534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13535 esac
13536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13537
13538
13539   case $ac_mode in
13540   :F)
13541   #
13542   # CONFIG_FILE
13543   #
13544
13545 _ACEOF
13546
13547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13548 # If the template does not know about datarootdir, expand it.
13549 # FIXME: This hack should be removed a few years after 2.60.
13550 ac_datarootdir_hack=; ac_datarootdir_seen=
13551 ac_sed_dataroot='
13552 /datarootdir/ {
13553   p
13554   q
13555 }
13556 /@datadir@/p
13557 /@docdir@/p
13558 /@infodir@/p
13559 /@localedir@/p
13560 /@mandir@/p'
13561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13562 *datarootdir*) ac_datarootdir_seen=yes;;
13563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13566 _ACEOF
13567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13568   ac_datarootdir_hack='
13569   s&@datadir@&$datadir&g
13570   s&@docdir@&$docdir&g
13571   s&@infodir@&$infodir&g
13572   s&@localedir@&$localedir&g
13573   s&@mandir@&$mandir&g
13574   s&\\\${datarootdir}&$datarootdir&g' ;;
13575 esac
13576 _ACEOF
13577
13578 # Neutralize VPATH when `$srcdir' = `.'.
13579 # Shell code in configure.ac might set extrasub.
13580 # FIXME: do we really want to maintain this feature?
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 ac_sed_extra="$ac_vpsub
13583 $extrasub
13584 _ACEOF
13585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13586 :t
13587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13588 s|@configure_input@|$ac_sed_conf_input|;t t
13589 s&@top_builddir@&$ac_top_builddir_sub&;t t
13590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13591 s&@srcdir@&$ac_srcdir&;t t
13592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13593 s&@top_srcdir@&$ac_top_srcdir&;t t
13594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13595 s&@builddir@&$ac_builddir&;t t
13596 s&@abs_builddir@&$ac_abs_builddir&;t t
13597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13598 $ac_datarootdir_hack
13599 "
13600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13601   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13602
13603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13604   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13605   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13606       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13608 which seems to be undefined.  Please make sure it is defined" >&5
13609 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13610 which seems to be undefined.  Please make sure it is defined" >&2;}
13611
13612   rm -f "$ac_tmp/stdin"
13613   case $ac_file in
13614   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13615   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13616   esac \
13617   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13618  ;;
13619   :H)
13620   #
13621   # CONFIG_HEADER
13622   #
13623   if test x"$ac_file" != x-; then
13624     {
13625       $as_echo "/* $configure_input  */" \
13626       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13627     } >"$ac_tmp/config.h" \
13628       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13629     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13630       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13631 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13632     else
13633       rm -f "$ac_file"
13634       mv "$ac_tmp/config.h" "$ac_file" \
13635         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13636     fi
13637   else
13638     $as_echo "/* $configure_input  */" \
13639       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13640       || as_fn_error $? "could not create -" "$LINENO" 5
13641   fi
13642  ;;
13643
13644   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13645 $as_echo "$as_me: executing $ac_file commands" >&6;}
13646  ;;
13647   esac
13648
13649
13650   case $ac_file$ac_mode in
13651     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13652     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13653     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13654     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13655
13656   esac
13657 done # for ac_tag
13658
13659
13660 as_fn_exit 0
13661 _ACEOF
13662 ac_clean_files=$ac_clean_files_save
13663
13664 test $ac_write_fail = 0 ||
13665   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13666
13667
13668 # configure is writing to config.log, and then calls config.status.
13669 # config.status does its own redirection, appending to config.log.
13670 # Unfortunately, on DOS this fails, as config.log is still kept open
13671 # by configure, so config.status won't be able to write to it; its
13672 # output is simply discarded.  So we exec the FD to /dev/null,
13673 # effectively closing config.log, so it can be properly (re)opened and
13674 # appended to by config.status.  When coming back to configure, we
13675 # need to make the FD available again.
13676 if test "$no_create" != yes; then
13677   ac_cs_success=:
13678   ac_config_status_args=
13679   test "$silent" = yes &&
13680     ac_config_status_args="$ac_config_status_args --quiet"
13681   exec 5>/dev/null
13682   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13683   exec 5>>config.log
13684   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13685   # would make configure fail if this is the last instruction.
13686   $ac_cs_success || as_fn_exit 1
13687 fi
13688
13689 #
13690 # CONFIG_SUBDIRS section.
13691 #
13692 if test "$no_recursion" != yes; then
13693
13694   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13695   # so they do not pile up.
13696   ac_sub_configure_args=
13697   ac_prev=
13698   eval "set x $ac_configure_args"
13699   shift
13700   for ac_arg
13701   do
13702     if test -n "$ac_prev"; then
13703       ac_prev=
13704       continue
13705     fi
13706     case $ac_arg in
13707     -cache-file | --cache-file | --cache-fil | --cache-fi \
13708     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13709       ac_prev=cache_file ;;
13710     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13711     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13712     | --c=*)
13713       ;;
13714     --config-cache | -C)
13715       ;;
13716     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13717       ac_prev=srcdir ;;
13718     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13719       ;;
13720     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13721       ac_prev=prefix ;;
13722     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13723       ;;
13724     --disable-option-checking)
13725       ;;
13726     *)
13727       case $ac_arg in
13728       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13729       esac
13730       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13731     esac
13732   done
13733
13734   # Always prepend --prefix to ensure using the same prefix
13735   # in subdir configurations.
13736   ac_arg="--prefix=$prefix"
13737   case $ac_arg in
13738   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13739   esac
13740   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13741
13742   # Pass --silent
13743   if test "$silent" = yes; then
13744     ac_sub_configure_args="--silent $ac_sub_configure_args"
13745   fi
13746
13747   # Always prepend --disable-option-checking to silence warnings, since
13748   # different subdirs can have different --enable and --with options.
13749   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13750
13751   ac_popdir=`pwd`
13752   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13753
13754     # Do not complain, so a configure script can configure whichever
13755     # parts of a large source tree are present.
13756     test -d "$srcdir/$ac_dir" || continue
13757
13758     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13759     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13760     $as_echo "$ac_msg" >&6
13761     as_dir="$ac_dir"; as_fn_mkdir_p
13762     ac_builddir=.
13763
13764 case "$ac_dir" in
13765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13766 *)
13767   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13768   # A ".." for each directory in $ac_dir_suffix.
13769   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13770   case $ac_top_builddir_sub in
13771   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13772   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13773   esac ;;
13774 esac
13775 ac_abs_top_builddir=$ac_pwd
13776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13777 # for backward compatibility:
13778 ac_top_builddir=$ac_top_build_prefix
13779
13780 case $srcdir in
13781   .)  # We are building in place.
13782     ac_srcdir=.
13783     ac_top_srcdir=$ac_top_builddir_sub
13784     ac_abs_top_srcdir=$ac_pwd ;;
13785   [\\/]* | ?:[\\/]* )  # Absolute name.
13786     ac_srcdir=$srcdir$ac_dir_suffix;
13787     ac_top_srcdir=$srcdir
13788     ac_abs_top_srcdir=$srcdir ;;
13789   *) # Relative name.
13790     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13791     ac_top_srcdir=$ac_top_build_prefix$srcdir
13792     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13793 esac
13794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13795
13796
13797     cd "$ac_dir"
13798
13799     # Check for guested configure; otherwise get Cygnus style configure.
13800     if test -f "$ac_srcdir/configure.gnu"; then
13801       ac_sub_configure=$ac_srcdir/configure.gnu
13802     elif test -f "$ac_srcdir/configure"; then
13803       ac_sub_configure=$ac_srcdir/configure
13804     elif test -f "$ac_srcdir/configure.in"; then
13805       # This should be Cygnus configure.
13806       ac_sub_configure=$ac_aux_dir/configure
13807     else
13808       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13810       ac_sub_configure=
13811     fi
13812
13813     # The recursion is here.
13814     if test -n "$ac_sub_configure"; then
13815       # Make the cache file name correct relative to the subdirectory.
13816       case $cache_file in
13817       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13818       *) # Relative name.
13819         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13820       esac
13821
13822       { $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
13823 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13824       # The eval makes quoting arguments work.
13825       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13826            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13827         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13828     fi
13829
13830     cd "$ac_popdir"
13831   done
13832 fi
13833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13835 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13836 fi
13837
13838