there is no eap2 module any more
[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
771 with_pcre_lib_dir
772 with_pcre_include_dir
773 with_regex
774 '
775       ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CXX
784 CXXFLAGS
785 CCC
786 CPP'
787 ac_subdirs_all='$mysubdirs'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *=)   ac_optarg= ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900       *"
901 "enable_$ac_useropt"
902 "*) ;;
903       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904          ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907
908   -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912
913   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917
918   -enable-* | --enable-*)
919     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922       as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926       *"
927 "enable_$ac_useropt"
928 "*) ;;
929       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930          ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137
1138   -without-* | --without-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     case $ac_envvar in #(
1180       '' | [0-9]* | *[!_$as_cr_alnum]* )
1181       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203   case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207   esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   # Remove trailing slashes.
1218   case $ac_val in
1219     */ )
1220       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221       eval $ac_var=\$ac_val;;
1222   esac
1223   # Be sure to have absolute directory names.
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258   as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$as_myself" : 'X\(//\)[^/]' \| \
1268          X"$as_myself" : 'X\(//\)$' \| \
1269          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking ...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR            user executables [EPREFIX/bin]
1362   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR        program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR            object code libraries [EPREFIX/lib]
1368   --includedir=DIR        C header files [PREFIX/include]
1369   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR           info documentation [DATAROOTDIR/info]
1373   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR            man documentation [DATAROOTDIR/man]
1375   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1376   --htmldir=DIR           html documentation [DOCDIR]
1377   --dvidir=DIR            dvi documentation [DOCDIR]
1378   --pdfdir=DIR            pdf documentation [DOCDIR]
1379   --psdir=DIR             ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of freeradius $Id$:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-developer      enables features of interest to developers.
1402   --disable-largefile     omit support for large files
1403   --enable-strict-dependencies  fail configure on lack of module dependancy.
1404   --enable-werror         causes the build to fail if any warnings are generated.
1405   --disable-openssl-version-check
1406                           disable vulnerable OpenSSL version check
1407
1408
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1413   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1414   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1415   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1416   --with-dictdir=DIR      directory for dictionary files DATAROOTDIR/freeradius
1417   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1418   --with-threads          use threads, if available.  (default=yes)
1419   --with-tcp              compile in TCP support. (default=yes)
1420   --with-vmps             compile in VMPS support. (default=yes)
1421   --with-dhcp             compile in DHCP support. (default=yes)
1422   --with-static-modules=QUOTED-MODULE-LIST
1423   --with-shared-libs      build dynamic libraries and link against them.
1424                           (default=yes)
1425   --with-modules=QUOTED-MODULE-LIST
1426   --with-experimental-modules
1427                           use experimental and unstable modules. (default=no,
1428                           unless --enable-developer=yes)
1429   --with-udpfromto        compile in UDPFROMTO support. (default=yes)
1430   --with-rlm-FOO-lib-dir=DIR
1431                           directory in which to look for library files used by
1432                           module FOO
1433   --with-rlm-FOO-include-dir=DIR
1434                           directory in which to look for include files used by
1435                           module FOO
1436   --with-openssl          use OpenSSL. (default=yes)
1437   --with-openssl-lib-dir=DIR
1438                           directory to look for OpenSSL library files
1439   --with-openssl-include-dir=DIR
1440                           directory to look for OpenSSL include files
1441   --with-talloc-lib-dir=DIR
1442                           directory in which to look for talloc library files
1443   --with-talloc-include-dir=DIR
1444                           directory in which to look for talloc include files
1445   --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1446   --with-pcap-include-dir=DIR
1447                           directory in which to look for pcap include files
1448   --with-collectdclient-lib-dir=DIR
1449                           directory in which to look for collectdclient
1450                           library files
1451   --with-collectdclient-include-dir=DIR
1452                           directory in which to look for collectdclient
1453                           include files
1454   --with-cap-lib-dir=DIR  directory in which to look for cap library files
1455   --with-cap-include-dir=DIR
1456                           directory in which to look for cap include files
1457   --with-execinfo-lib-dir=DIR
1458                           directory in which to look for execinfo library
1459                           files
1460   --with-execinfo-include-dir=DIR
1461                           directory in which to look for execinfo include
1462                           files
1463   --with-pcre             use libpcre (if available). (default=yes)
1464   --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1465   --with-pcre-include-dir=DIR
1466                           directory in which to look for pcre include files
1467   --with-regex            Whether to build with regular expressions
1468                           (default=yes)
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CPP         C preprocessor
1481
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <http://bugs.freeradius.org>.
1486 freeradius home page: <http://www.freeradius.org>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492   # If there are subdirs, report their specific --help.
1493   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494     test -d "$ac_dir" ||
1495       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496       continue
1497     ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503   # A ".." for each directory in $ac_dir_suffix.
1504   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505   case $ac_top_builddir_sub in
1506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508   esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516   .)  # We are building in place.
1517     ac_srcdir=.
1518     ac_top_srcdir=$ac_top_builddir_sub
1519     ac_abs_top_srcdir=$ac_pwd ;;
1520   [\\/]* | ?:[\\/]* )  # Absolute name.
1521     ac_srcdir=$srcdir$ac_dir_suffix;
1522     ac_top_srcdir=$srcdir
1523     ac_abs_top_srcdir=$srcdir ;;
1524   *) # Relative name.
1525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526     ac_top_srcdir=$ac_top_build_prefix$srcdir
1527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531     cd "$ac_dir" || { ac_status=$?; continue; }
1532     # Check for guested configure.
1533     if test -f "$ac_srcdir/configure.gnu"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536     elif test -f "$ac_srcdir/configure"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure" --help=recursive
1539     else
1540       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541     fi || ac_status=$?
1542     cd "$ac_pwd" || { ac_status=$?; break; }
1543   done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548   cat <<\_ACEOF
1549 freeradius configure $Id$
1550 generated by GNU Autoconf 2.69
1551
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556   exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext
1570   if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_compile") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest.$ac_objext; then :
1589   ac_retval=0
1590 else
1591   $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594         ac_retval=1
1595 fi
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597   as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_cxx_try_compile LINENO
1602 # ----------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_cxx_try_compile ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext
1608   if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_compile") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_cxx_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest.$ac_objext; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_cxx_try_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1680 # accordingly.
1681 ac_fn_c_check_header_mongrel ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if eval \${$3+:} false; then :
1685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688   $as_echo_n "(cached) " >&6
1689 fi
1690 eval ac_res=\$$3
1691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 else
1694   # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   ac_header_compiler=yes
1704 else
1705   ac_header_compiler=no
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1710
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719   ac_header_preproc=yes
1720 else
1721   ac_header_preproc=no
1722 fi
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1726
1727 # So?  What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729   yes:no: )
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735   no:yes:* )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ----------------------------------------- ##
1747 ## Report this to http://bugs.freeradius.org ##
1748 ## ----------------------------------------- ##"
1749      ) | sed "s/^/$as_me: WARNING:     /" >&2
1750     ;;
1751 esac
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   eval "$3=\$ac_header_compiler"
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 fi
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_header_mongrel
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   rm -f conftest.$ac_objext conftest$ac_exeext
1847   if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_link") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } && {
1863          test -z "$ac_c_werror_flag" ||
1864          test ! -s conftest.err
1865        } && test -s conftest$ac_exeext && {
1866          test "$cross_compiling" = yes ||
1867          test -x conftest$ac_exeext
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878   # interfere with the next link command; also delete a directory that is
1879   # left behind by Apple's compiler.  We do this before executing the actions.
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_link
1885
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901 #define $2 innocuous_$2
1902
1903 /* System header to define __stub macros and hopefully few prototypes,
1904     which can conflict with char $2 (); below.
1905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906     <limits.h> exists even on freestanding compilers.  */
1907
1908 #ifdef __STDC__
1909 # include <limits.h>
1910 #else
1911 # include <assert.h>
1912 #endif
1913
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917    Use char because int might match the return type of a GCC
1918    builtin and then its argument prototype would still apply.  */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924     to always fail with ENOSYS.  Some functions are actually named
1925     something starting with __ and the normal name is an alias.  */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main ()
1932 {
1933 return $2 ();
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext \
1944     conftest$ac_exeext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   eval "$3=no"
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 $4
1969 int
1970 main ()
1971 {
1972 if (sizeof ($2))
1973          return 0;
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 $4
1982 int
1983 main ()
1984 {
1985 if (sizeof (($2)))
1986             return 0;
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992
1993 else
1994   eval "$3=yes"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_type
2006
2007 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2008 # ---------------------------------------------
2009 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_decl ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   as_decl_name=`echo $2|sed 's/ *(.*//'`
2015   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2017 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 #ifndef $as_decl_name
2028 #ifdef __cplusplus
2029   (void) $as_decl_use;
2030 #else
2031   (void) $as_decl_name;
2032 #endif
2033 #endif
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_decl
2052 cat >config.log <<_ACEOF
2053 This file contains any messages produced by compilers while
2054 running configure, to aid debugging if configure makes a mistake.
2055
2056 It was created by freeradius $as_me $Id$, which was
2057 generated by GNU Autoconf 2.69.  Invocation command line was
2058
2059   $ $0 $@
2060
2061 _ACEOF
2062 exec 5>>config.log
2063 {
2064 cat <<_ASUNAME
2065 ## --------- ##
2066 ## Platform. ##
2067 ## --------- ##
2068
2069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2077
2078 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2079 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2082 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2083 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2084 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2085
2086 _ASUNAME
2087
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093     $as_echo "PATH: $as_dir"
2094   done
2095 IFS=$as_save_IFS
2096
2097 } >&5
2098
2099 cat >&5 <<_ACEOF
2100
2101
2102 ## ----------- ##
2103 ## Core tests. ##
2104 ## ----------- ##
2105
2106 _ACEOF
2107
2108
2109 # Keep a trace of the command line.
2110 # Strip out --no-create and --no-recursion so they do not pile up.
2111 # Strip out --silent because we don't want to record it for future runs.
2112 # Also quote any args containing shell meta-characters.
2113 # Make two passes to allow for proper duplicate-argument suppression.
2114 ac_configure_args=
2115 ac_configure_args0=
2116 ac_configure_args1=
2117 ac_must_keep_next=false
2118 for ac_pass in 1 2
2119 do
2120   for ac_arg
2121   do
2122     case $ac_arg in
2123     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125     | -silent | --silent | --silen | --sile | --sil)
2126       continue ;;
2127     *\'*)
2128       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129     esac
2130     case $ac_pass in
2131     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132     2)
2133       as_fn_append ac_configure_args1 " '$ac_arg'"
2134       if test $ac_must_keep_next = true; then
2135         ac_must_keep_next=false # Got value, back to normal.
2136       else
2137         case $ac_arg in
2138           *=* | --config-cache | -C | -disable-* | --disable-* \
2139           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141           | -with-* | --with-* | -without-* | --without-* | --x)
2142             case "$ac_configure_args0 " in
2143               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144             esac
2145             ;;
2146           -* ) ac_must_keep_next=true ;;
2147         esac
2148       fi
2149       as_fn_append ac_configure_args " '$ac_arg'"
2150       ;;
2151     esac
2152   done
2153 done
2154 { ac_configure_args0=; unset ac_configure_args0;}
2155 { ac_configure_args1=; unset ac_configure_args1;}
2156
2157 # When interrupted or exit'd, cleanup temporary files, and complete
2158 # config.log.  We remove comments because anyway the quotes in there
2159 # would cause problems or look ugly.
2160 # WARNING: Use '\'' to represent an apostrophe within the trap.
2161 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162 trap 'exit_status=$?
2163   # Save into config.log some information that might help in debugging.
2164   {
2165     echo
2166
2167     $as_echo "## ---------------- ##
2168 ## Cache variables. ##
2169 ## ---------------- ##"
2170     echo
2171     # The following way of writing the cache mishandles newlines in values,
2172 (
2173   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174     eval ac_val=\$$ac_var
2175     case $ac_val in #(
2176     *${as_nl}*)
2177       case $ac_var in #(
2178       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180       esac
2181       case $ac_var in #(
2182       _ | IFS | as_nl) ;; #(
2183       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184       *) { eval $ac_var=; unset $ac_var;} ;;
2185       esac ;;
2186     esac
2187   done
2188   (set) 2>&1 |
2189     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190     *${as_nl}ac_space=\ *)
2191       sed -n \
2192         "s/'\''/'\''\\\\'\'''\''/g;
2193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194       ;; #(
2195     *)
2196       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197       ;;
2198     esac |
2199     sort
2200 )
2201     echo
2202
2203     $as_echo "## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##"
2206     echo
2207     for ac_var in $ac_subst_vars
2208     do
2209       eval ac_val=\$$ac_var
2210       case $ac_val in
2211       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212       esac
2213       $as_echo "$ac_var='\''$ac_val'\''"
2214     done | sort
2215     echo
2216
2217     if test -n "$ac_subst_files"; then
2218       $as_echo "## ------------------- ##
2219 ## File substitutions. ##
2220 ## ------------------- ##"
2221       echo
2222       for ac_var in $ac_subst_files
2223       do
2224         eval ac_val=\$$ac_var
2225         case $ac_val in
2226         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227         esac
2228         $as_echo "$ac_var='\''$ac_val'\''"
2229       done | sort
2230       echo
2231     fi
2232
2233     if test -s confdefs.h; then
2234       $as_echo "## ----------- ##
2235 ## confdefs.h. ##
2236 ## ----------- ##"
2237       echo
2238       cat confdefs.h
2239       echo
2240     fi
2241     test "$ac_signal" != 0 &&
2242       $as_echo "$as_me: caught signal $ac_signal"
2243     $as_echo "$as_me: exit $exit_status"
2244   } >&5
2245   rm -f core *.core core.conftest.* &&
2246     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247     exit $exit_status
2248 ' 0
2249 for ac_signal in 1 2 13 15; do
2250   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251 done
2252 ac_signal=0
2253
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2256
2257 $as_echo "/* confdefs.h */" > confdefs.h
2258
2259 # Predefined preprocessor variables.
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2283 _ACEOF
2284
2285
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2288 ac_site_file1=NONE
2289 ac_site_file2=NONE
2290 if test -n "$CONFIG_SITE"; then
2291   # We do not want a PATH search for config.site.
2292   case $CONFIG_SITE in #((
2293     -*)  ac_site_file1=./$CONFIG_SITE;;
2294     */*) ac_site_file1=$CONFIG_SITE;;
2295     *)   ac_site_file1=./$CONFIG_SITE;;
2296   esac
2297 elif test "x$prefix" != xNONE; then
2298   ac_site_file1=$prefix/share/config.site
2299   ac_site_file2=$prefix/etc/config.site
2300 else
2301   ac_site_file1=$ac_default_prefix/share/config.site
2302   ac_site_file2=$ac_default_prefix/etc/config.site
2303 fi
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305 do
2306   test "x$ac_site_file" = xNONE && continue
2307   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310     sed 's/^/| /' "$ac_site_file" >&5
2311     . "$ac_site_file" \
2312       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 as_fn_error $? "failed to load site script $ac_site_file
2315 See \`config.log' for more details" "$LINENO" 5; }
2316   fi
2317 done
2318
2319 if test -r "$cache_file"; then
2320   # Some versions of bash will fail to source /dev/null (special files
2321   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2322   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324 $as_echo "$as_me: loading cache $cache_file" >&6;}
2325     case $cache_file in
2326       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327       *)                      . "./$cache_file";;
2328     esac
2329   fi
2330 else
2331   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332 $as_echo "$as_me: creating cache $cache_file" >&6;}
2333   >$cache_file
2334 fi
2335
2336 # Check that the precious variables saved in the cache have kept the same
2337 # value.
2338 ac_cache_corrupted=false
2339 for ac_var in $ac_precious_vars; do
2340   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341   eval ac_new_set=\$ac_env_${ac_var}_set
2342   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343   eval ac_new_val=\$ac_env_${ac_var}_value
2344   case $ac_old_set,$ac_new_set in
2345     set,)
2346       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348       ac_cache_corrupted=: ;;
2349     ,set)
2350       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352       ac_cache_corrupted=: ;;
2353     ,);;
2354     *)
2355       if test "x$ac_old_val" != "x$ac_new_val"; then
2356         # differences in whitespace do not lead to failure.
2357         ac_old_val_w=`echo x $ac_old_val`
2358         ac_new_val_w=`echo x $ac_new_val`
2359         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362           ac_cache_corrupted=:
2363         else
2364           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366           eval $ac_var=\$ac_old_val
2367         fi
2368         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2369 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2370         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2371 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2372       fi;;
2373   esac
2374   # Pass precious variables to config.status.
2375   if test "$ac_new_set" = set; then
2376     case $ac_new_val in
2377     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378     *) ac_arg=$ac_var=$ac_new_val ;;
2379     esac
2380     case " $ac_configure_args " in
2381       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2382       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383     esac
2384   fi
2385 done
2386 if $ac_cache_corrupted; then
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 fi
2393 ## -------------------- ##
2394 ## Main body of script. ##
2395 ## -------------------- ##
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
2405 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421 RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.`
2422 RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.`
2423 RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[\.-].*$//'`
2424
2425 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2426 -v minor="$RADIUSD_MINOR_VERSION" \
2427 -v incrm="$RADIUSD_INCRM_VERSION" \
2428 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2429
2430 RADIUSD_VERSION_STRING=`cat VERSION`
2431
2432
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2437 _ACEOF
2438
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2442 _ACEOF
2443
2444
2445
2446 # Check whether --enable-developer was given.
2447 if test "${enable_developer+set}" = set; then :
2448   enableval=$enable_developer;  case "$enableval" in
2449   no)
2450     developer=no
2451     ;;
2452   *)
2453     developer=yes
2454   esac
2455
2456 fi
2457
2458
2459 if test -d $srcdir/.git; then
2460   if test "x$developer" != "xno"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2462 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2463     developer="yes"
2464   fi
2465 fi
2466
2467 if test "x$developer" = "xyes"; then
2468   : ${CFLAGS=-g3}
2469 fi
2470
2471
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474   if test -f "$ac_dir/install-sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install-sh -c"
2477     break
2478   elif test -f "$ac_dir/install.sh"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/install.sh -c"
2481     break
2482   elif test -f "$ac_dir/shtool"; then
2483     ac_aux_dir=$ac_dir
2484     ac_install_sh="$ac_aux_dir/shtool install -c"
2485     break
2486   fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2499
2500
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2506 $as_echo_n "checking build system type... " >&6; }
2507 if ${ac_cv_build+:} false; then :
2508   $as_echo_n "(cached) " >&6
2509 else
2510   ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2516   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2517
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2520 $as_echo "$ac_cv_build" >&6; }
2521 case $ac_cv_build in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2524 esac
2525 build=$ac_cv_build
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_build
2528 shift
2529 build_cpu=$1
2530 build_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 build_os=$*
2535 IFS=$ac_save_IFS
2536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2537
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2540 $as_echo_n "checking host system type... " >&6; }
2541 if ${ac_cv_host+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   if test "x$host_alias" = x; then
2545   ac_cv_host=$ac_cv_build
2546 else
2547   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2548     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2549 fi
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2553 $as_echo "$ac_cv_host" >&6; }
2554 case $ac_cv_host in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2557 esac
2558 host=$ac_cv_host
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_host
2561 shift
2562 host_cpu=$1
2563 host_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 host_os=$*
2568 IFS=$ac_save_IFS
2569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2573 $as_echo_n "checking target system type... " >&6; }
2574 if ${ac_cv_target+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test "x$target_alias" = x; then
2578   ac_cv_target=$ac_cv_host
2579 else
2580   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2581     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2582 fi
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2586 $as_echo "$ac_cv_target" >&6; }
2587 case $ac_cv_target in
2588 *-*-*) ;;
2589 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2590 esac
2591 target=$ac_cv_target
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_target
2594 shift
2595 target_cpu=$1
2596 target_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 target_os=$*
2601 IFS=$ac_save_IFS
2602 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 # The aliases save the names the user supplied, while $host etc.
2606 # will get canonicalized.
2607 test -n "$target_alias" &&
2608   test "$program_prefix$program_suffix$program_transform_name" = \
2609     NONENONEs,x,x, &&
2610   program_prefix=${target_alias}-
2611
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641   done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658   ac_ct_CC=$CC
2659   # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$ac_ct_CC"; then
2667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     ac_cv_prog_ac_ct_CC="gcc"
2677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695   if test "x$ac_ct_CC" = x; then
2696     CC=""
2697   else
2698     case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704     CC=$ac_ct_CC
2705   fi
2706 else
2707   CC="$ac_cv_prog_CC"
2708 fi
2709
2710 if test -z "$CC"; then
2711           if test -n "$ac_tool_prefix"; then
2712     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_CC="${ac_tool_prefix}cc"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749   fi
2750 fi
2751 if test -z "$CC"; then
2752   # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757   $as_echo_n "(cached) " >&6
2758 else
2759   if test -n "$CC"; then
2760   ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762   ac_prog_rejected=no
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771        ac_prog_rejected=yes
2772        continue
2773      fi
2774     ac_cv_prog_CC="cc"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782 if test $ac_prog_rejected = yes; then
2783   # We found a bogon in the path, so make sure we never use it.
2784   set dummy $ac_cv_prog_CC
2785   shift
2786   if test $# != 0; then
2787     # We chose a different compiler from the bogus one.
2788     # However, it has the same basename, so the bogon will be chosen
2789     # first if we set CC to just the basename; use the full file name.
2790     shift
2791     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792   fi
2793 fi
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$CC"; then
2808   if test -n "$ac_tool_prefix"; then
2809   for ac_prog in cl.exe
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$CC"; then
2819   ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848     test -n "$CC" && break
2849   done
2850 fi
2851 if test -z "$CC"; then
2852   ac_ct_CC=$CC
2853   for ac_prog in cl.exe
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$ac_ct_CC"; then
2863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_ac_ct_CC="$ac_prog"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CC" && break
2893 done
2894
2895   if test "x$ac_ct_CC" = x; then
2896     CC=""
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904     CC=$ac_ct_CC
2905   fi
2906 fi
2907
2908 fi
2909
2910
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2915
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 set X $ac_compile
2919 ac_compiler=$2
2920 for ac_option in --version -v -V -qversion; do
2921   { { ac_try="$ac_compiler $ac_option >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929   ac_status=$?
2930   if test -s conftest.err; then
2931     sed '10a\
2932 ... rest of stderr output deleted ...
2933          10q' conftest.err >conftest.er1
2934     cat conftest.er1 >&5
2935   fi
2936   rm -f conftest.er1 conftest.err
2937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938   test $ac_status = 0; }
2939 done
2940
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970   esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { { ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981   (eval "$ac_link_default") 2>&5
2982   ac_status=$?
2983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984   test $ac_status = 0; }; then :
2985   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2991 do
2992   test -f "$ac_file" || continue
2993   case $ac_file in
2994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995         ;;
2996     [ab].out )
2997         # We found the default executable, but exeext='' is most
2998         # certainly right.
2999         break;;
3000     *.* )
3001         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002         then :; else
3003            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004         fi
3005         # We set ac_cv_exeext here because the later test for it is not
3006         # safe: cross compilers may not add the suffix if given an `-o'
3007         # argument, so we may need to know it at that point already.
3008         # Even if this section looks crufty: it has the advantage of
3009         # actually working.
3010         break;;
3011     * )
3012         break;;
3013   esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017 else
3018   ac_file=''
3019 fi
3020 if test -z "$ac_file"; then :
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3039
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051   (eval "$ac_link") 2>&5
3052   ac_status=$?
3053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054   test $ac_status = 0; }; then :
3055   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 # `rm'.
3059 for ac_file in conftest.exe conftest conftest.*; do
3060   test -f "$ac_file" || continue
3061   case $ac_file in
3062     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064           break;;
3065     * ) break;;
3066   esac
3067 done
3068 else
3069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3077
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3080 ac_exeext=$EXEEXT
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083 #include <stdio.h>
3084 int
3085 main ()
3086 {
3087 FILE *f = fopen ("conftest.out", "w");
3088  return ferror (f) || fclose (f) != 0;
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run.  If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100   { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107   (eval "$ac_link") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110   test $ac_status = 0; }
3111   if { ac_try='./conftest$ac_cv_exeext'
3112   { { case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118   (eval "$ac_try") 2>&5
3119   ac_status=$?
3120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121   test $ac_status = 0; }; }; then
3122     cross_compiling=no
3123   else
3124     if test "$cross_compiling" = maybe; then
3125         cross_compiling=yes
3126     else
3127         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3132     fi
3133   fi
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3137
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compile") 2>&5
3165   ac_status=$?
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }; then :
3168   for ac_file in conftest.o conftest.obj conftest.*; do
3169   test -f "$ac_file" || continue;
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173        break;;
3174   esac
3175 done
3176 else
3177   $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 fi
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211   ac_compiler_gnu=yes
3212 else
3213   ac_compiler_gnu=no
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222   GCC=yes
3223 else
3224   GCC=
3225 fi
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   ac_save_c_werror_flag=$ac_c_werror_flag
3234    ac_c_werror_flag=yes
3235    ac_cv_prog_cc_g=no
3236    CFLAGS="-g"
3237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249   ac_cv_prog_cc_g=yes
3250 else
3251   CFLAGS=""
3252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254
3255 int
3256 main ()
3257 {
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264
3265 else
3266   ac_c_werror_flag=$ac_save_c_werror_flag
3267          CFLAGS="-g"
3268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280   ac_cv_prog_cc_g=yes
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287    ac_c_werror_flag=$ac_save_c_werror_flag
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292   CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294   if test "$GCC" = yes; then
3295     CFLAGS="-g -O2"
3296   else
3297     CFLAGS="-g"
3298   fi
3299 else
3300   if test "$GCC" = yes; then
3301     CFLAGS="-O2"
3302   else
3303     CFLAGS=
3304   fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 struct stat;
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322      char **p;
3323      int i;
3324 {
3325   return p[i];
3326 }
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3328 {
3329   char *s;
3330   va_list v;
3331   va_start (v,p);
3332   s = g (p, va_arg (v,int));
3333   va_end (v);
3334   return s;
3335 }
3336
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3338    function prototypes and stuff, but not '\xHH' hex character constants.
3339    These don't provoke an error unfortunately, instead are silently treated
3340    as 'x'.  The following induces an error, until -std is added to get
3341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3342    array size at least.  It's necessary to write '\x00'==0 to get something
3343    that's true only with -std.  */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347    inside strings and character constants.  */
3348 #define FOO(x) 'x'
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 int argc;
3356 char **argv;
3357 int
3358 main ()
3359 {
3360 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 do
3368   CC="$ac_save_CC $ac_arg"
3369   if ac_fn_c_try_compile "$LINENO"; then :
3370   ac_cv_prog_cc_c89=$ac_arg
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext
3373   test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3377
3378 fi
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3381   x)
3382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3384   xno)
3385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3387   *)
3388     CC="$CC $ac_cv_prog_cc_c89"
3389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3393
3394 fi
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 ac_ext=cpp
3403 ac_cpp='$CXXCPP $CPPFLAGS'
3404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3407 if test -z "$CXX"; then
3408   if test -n "$CCC"; then
3409     CXX=$CCC
3410   else
3411     if test -n "$ac_tool_prefix"; then
3412   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3413   do
3414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_CXX+:} false; then :
3419   $as_echo_n "(cached) " >&6
3420 else
3421   if test -n "$CXX"; then
3422   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427   IFS=$as_save_IFS
3428   test -z "$as_dir" && as_dir=.
3429     for ac_exec_ext in '' $ac_executable_extensions; do
3430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433     break 2
3434   fi
3435 done
3436   done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 CXX=$ac_cv_prog_CXX
3442 if test -n "$CXX"; then
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3444 $as_echo "$CXX" >&6; }
3445 else
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451     test -n "$CXX" && break
3452   done
3453 fi
3454 if test -z "$CXX"; then
3455   ac_ct_CXX=$CXX
3456   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3457 do
3458   # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$ac_ct_CXX"; then
3466   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_prog_ac_ct_CXX="$ac_prog"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3486 if test -n "$ac_ct_CXX"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3488 $as_echo "$ac_ct_CXX" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495   test -n "$ac_ct_CXX" && break
3496 done
3497
3498   if test "x$ac_ct_CXX" = x; then
3499     CXX="g++"
3500   else
3501     case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507     CXX=$ac_ct_CXX
3508   fi
3509 fi
3510
3511   fi
3512 fi
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3515 set X $ac_compile
3516 ac_compiler=$2
3517 for ac_option in --version -v -V -qversion; do
3518   { { ac_try="$ac_compiler $ac_option >&5"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526   ac_status=$?
3527   if test -s conftest.err; then
3528     sed '10a\
3529 ... rest of stderr output deleted ...
3530          10q' conftest.err >conftest.er1
3531     cat conftest.er1 >&5
3532   fi
3533   rm -f conftest.er1 conftest.err
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }
3536 done
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3540 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550        choke me
3551 #endif
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_cxx_try_compile "$LINENO"; then :
3558   ac_compiler_gnu=yes
3559 else
3560   ac_compiler_gnu=no
3561 fi
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3569   GXX=yes
3570 else
3571   GXX=
3572 fi
3573 ac_test_CXXFLAGS=${CXXFLAGS+set}
3574 ac_save_CXXFLAGS=$CXXFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3577 if ${ac_cv_prog_cxx_g+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3581    ac_cxx_werror_flag=yes
3582    ac_cv_prog_cxx_g=no
3583    CXXFLAGS="-g"
3584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_cxx_try_compile "$LINENO"; then :
3596   ac_cv_prog_cxx_g=yes
3597 else
3598   CXXFLAGS=""
3599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_cxx_try_compile "$LINENO"; then :
3611
3612 else
3613   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3614          CXXFLAGS="-g"
3615          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617
3618 int
3619 main ()
3620 {
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_cxx_try_compile "$LINENO"; then :
3627   ac_cv_prog_cxx_g=yes
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3638 if test "$ac_test_CXXFLAGS" = set; then
3639   CXXFLAGS=$ac_save_CXXFLAGS
3640 elif test $ac_cv_prog_cxx_g = yes; then
3641   if test "$GXX" = yes; then
3642     CXXFLAGS="-g -O2"
3643   else
3644     CXXFLAGS="-g"
3645   fi
3646 else
3647   if test "$GXX" = yes; then
3648     CXXFLAGS="-O2"
3649   else
3650     CXXFLAGS=
3651   fi
3652 fi
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658
3659
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3667 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670   CPP=
3671 fi
3672 if test -z "$CPP"; then
3673   if ${ac_cv_prog_CPP+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676       # Double quotes because CPP needs to be expanded
3677     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678     do
3679       ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682   # Use a header file that comes with gcc, so configuring glibc
3683   # with a fresh cross-compiler works.
3684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685   # <limits.h> exists even on freestanding compilers.
3686   # On the NeXT, cc -E runs the code through the compiler's parser,
3687   # not just through cpp. "Syntax error" is here to catch this case.
3688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h.  */
3690 #ifdef __STDC__
3691 # include <limits.h>
3692 #else
3693 # include <assert.h>
3694 #endif
3695                      Syntax error
3696 _ACEOF
3697 if ac_fn_c_try_cpp "$LINENO"; then :
3698
3699 else
3700   # Broken: fails on valid input.
3701 continue
3702 fi
3703 rm -f conftest.err conftest.i conftest.$ac_ext
3704
3705   # OK, works on sane cases.  Now check whether nonexistent headers
3706   # can be detected and how.
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709 #include <ac_nonexistent.h>
3710 _ACEOF
3711 if ac_fn_c_try_cpp "$LINENO"; then :
3712   # Broken: success on invalid input.
3713 continue
3714 else
3715   # Passes both tests.
3716 ac_preproc_ok=:
3717 break
3718 fi
3719 rm -f conftest.err conftest.i conftest.$ac_ext
3720
3721 done
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.i conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then :
3725   break
3726 fi
3727
3728     done
3729     ac_cv_prog_CPP=$CPP
3730
3731 fi
3732   CPP=$ac_cv_prog_CPP
3733 else
3734   ac_cv_prog_CPP=$CPP
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3737 $as_echo "$CPP" >&6; }
3738 ac_preproc_ok=false
3739 for ac_c_preproc_warn_flag in '' yes
3740 do
3741   # Use a header file that comes with gcc, so configuring glibc
3742   # with a fresh cross-compiler works.
3743   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744   # <limits.h> exists even on freestanding compilers.
3745   # On the NeXT, cc -E runs the code through the compiler's parser,
3746   # not just through cpp. "Syntax error" is here to catch this case.
3747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754                      Syntax error
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757
3758 else
3759   # Broken: fails on valid input.
3760 continue
3761 fi
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764   # OK, works on sane cases.  Now check whether nonexistent headers
3765   # can be detected and how.
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771   # Broken: success on invalid input.
3772 continue
3773 else
3774   # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3784
3785 else
3786   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details" "$LINENO" 5; }
3790 fi
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3801 if ${ac_cv_path_GREP+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   if test -z "$GREP"; then
3805   ac_path_GREP_found=false
3806   # Loop through the user's path and test for each of PROGNAME-LIST
3807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_prog in grep ggrep; do
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3815       as_fn_executable_p "$ac_path_GREP" || continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817   # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3819 *GNU*)
3820   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3821 *)
3822   ac_count=0
3823   $as_echo_n 0123456789 >"conftest.in"
3824   while :
3825   do
3826     cat "conftest.in" "conftest.in" >"conftest.tmp"
3827     mv "conftest.tmp" "conftest.in"
3828     cp "conftest.in" "conftest.nl"
3829     $as_echo 'GREP' >> "conftest.nl"
3830     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832     as_fn_arith $ac_count + 1 && ac_count=$as_val
3833     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834       # Best one so far, save it but keep looking for a better one
3835       ac_cv_path_GREP="$ac_path_GREP"
3836       ac_path_GREP_max=$ac_count
3837     fi
3838     # 10*(2^10) chars as input seems more than enough
3839     test $ac_count -gt 10 && break
3840   done
3841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3843
3844       $ac_path_GREP_found && break 3
3845     done
3846   done
3847   done
3848 IFS=$as_save_IFS
3849   if test -z "$ac_cv_path_GREP"; then
3850     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3851   fi
3852 else
3853   ac_cv_path_GREP=$GREP
3854 fi
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3858 $as_echo "$ac_cv_path_GREP" >&6; }
3859  GREP="$ac_cv_path_GREP"
3860
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3863 $as_echo_n "checking for egrep... " >&6; }
3864 if ${ac_cv_path_EGREP+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868    then ac_cv_path_EGREP="$GREP -E"
3869    else
3870      if test -z "$EGREP"; then
3871   ac_path_EGREP_found=false
3872   # Loop through the user's path and test for each of PROGNAME-LIST
3873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878     for ac_prog in egrep; do
3879     for ac_exec_ext in '' $ac_executable_extensions; do
3880       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3881       as_fn_executable_p "$ac_path_EGREP" || continue
3882 # Check for GNU ac_path_EGREP and select it if it is found.
3883   # Check for GNU $ac_path_EGREP
3884 case `"$ac_path_EGREP" --version 2>&1` in
3885 *GNU*)
3886   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3887 *)
3888   ac_count=0
3889   $as_echo_n 0123456789 >"conftest.in"
3890   while :
3891   do
3892     cat "conftest.in" "conftest.in" >"conftest.tmp"
3893     mv "conftest.tmp" "conftest.in"
3894     cp "conftest.in" "conftest.nl"
3895     $as_echo 'EGREP' >> "conftest.nl"
3896     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3898     as_fn_arith $ac_count + 1 && ac_count=$as_val
3899     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3900       # Best one so far, save it but keep looking for a better one
3901       ac_cv_path_EGREP="$ac_path_EGREP"
3902       ac_path_EGREP_max=$ac_count
3903     fi
3904     # 10*(2^10) chars as input seems more than enough
3905     test $ac_count -gt 10 && break
3906   done
3907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3908 esac
3909
3910       $ac_path_EGREP_found && break 3
3911     done
3912   done
3913   done
3914 IFS=$as_save_IFS
3915   if test -z "$ac_cv_path_EGREP"; then
3916     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3917   fi
3918 else
3919   ac_cv_path_EGREP=$EGREP
3920 fi
3921
3922    fi
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3925 $as_echo "$ac_cv_path_EGREP" >&6; }
3926  EGREP="$ac_cv_path_EGREP"
3927
3928
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3930 $as_echo_n "checking for ANSI C header files... " >&6; }
3931 if ${ac_cv_header_stdc+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936 #include <stdlib.h>
3937 #include <stdarg.h>
3938 #include <string.h>
3939 #include <float.h>
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950   ac_cv_header_stdc=yes
3951 else
3952   ac_cv_header_stdc=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955
3956 if test $ac_cv_header_stdc = yes; then
3957   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <string.h>
3961
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964   $EGREP "memchr" >/dev/null 2>&1; then :
3965
3966 else
3967   ac_cv_header_stdc=no
3968 fi
3969 rm -f conftest*
3970
3971 fi
3972
3973 if test $ac_cv_header_stdc = yes; then
3974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h.  */
3977 #include <stdlib.h>
3978
3979 _ACEOF
3980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3981   $EGREP "free" >/dev/null 2>&1; then :
3982
3983 else
3984   ac_cv_header_stdc=no
3985 fi
3986 rm -f conftest*
3987
3988 fi
3989
3990 if test $ac_cv_header_stdc = yes; then
3991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3992   if test "$cross_compiling" = yes; then :
3993   :
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997 #include <ctype.h>
3998 #include <stdlib.h>
3999 #if ((' ' & 0x0FF) == 0x020)
4000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002 #else
4003 # define ISLOWER(c) \
4004                    (('a' <= (c) && (c) <= 'i') \
4005                      || ('j' <= (c) && (c) <= 'r') \
4006                      || ('s' <= (c) && (c) <= 'z'))
4007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4008 #endif
4009
4010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4011 int
4012 main ()
4013 {
4014   int i;
4015   for (i = 0; i < 256; i++)
4016     if (XOR (islower (i), ISLOWER (i))
4017         || toupper (i) != TOUPPER (i))
4018       return 2;
4019   return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_run "$LINENO"; then :
4023
4024 else
4025   ac_cv_header_stdc=no
4026 fi
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4028   conftest.$ac_objext conftest.beam conftest.$ac_ext
4029 fi
4030
4031 fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4034 $as_echo "$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4036
4037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4038
4039 fi
4040
4041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4043                   inttypes.h stdint.h unistd.h
4044 do :
4045   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4047 "
4048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4049   cat >>confdefs.h <<_ACEOF
4050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 _ACEOF
4052
4053 fi
4054
4055 done
4056
4057
4058
4059   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4060 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4061   MINIX=yes
4062 else
4063   MINIX=
4064 fi
4065
4066
4067   if test "$MINIX" = yes; then
4068
4069 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4070
4071
4072 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4073
4074
4075 $as_echo "#define _MINIX 1" >>confdefs.h
4076
4077   fi
4078
4079
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4081 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4082 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h.  */
4087
4088 #         define __EXTENSIONS__ 1
4089           $ac_includes_default
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099   ac_cv_safe_to_define___extensions__=yes
4100 else
4101   ac_cv_safe_to_define___extensions__=no
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4106 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4107   test $ac_cv_safe_to_define___extensions__ = yes &&
4108     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4109
4110   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4111
4112   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4113
4114   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4115
4116   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4117
4118
4119
4120
4121 if test $ac_cv_c_compiler_gnu = yes; then
4122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4123 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4124 if ${ac_cv_prog_gcc_traditional+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127     ac_pattern="Autoconf.*'x'"
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130 #include <sgtty.h>
4131 Autoconf TIOCGETP
4132 _ACEOF
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4135   ac_cv_prog_gcc_traditional=yes
4136 else
4137   ac_cv_prog_gcc_traditional=no
4138 fi
4139 rm -f conftest*
4140
4141
4142   if test $ac_cv_prog_gcc_traditional = no; then
4143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h.  */
4145 #include <termio.h>
4146 Autoconf TCGETA
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4150   ac_cv_prog_gcc_traditional=yes
4151 fi
4152 rm -f conftest*
4153
4154   fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4157 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4158   if test $ac_cv_prog_gcc_traditional = yes; then
4159     CC="$CC -traditional"
4160   fi
4161 fi
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4164 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4165 if ${ac_cv_prog_suncc+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   cat > conftest.c <<EOF
4169 #ifdef __SUNPRO_C
4170   yes;
4171 #endif
4172 EOF
4173 if { ac_try='${CC-cc} -E conftest.c'
4174   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4179   ac_cv_prog_suncc=yes
4180 else
4181   ac_cv_prog_suncc=no
4182 fi
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4185 $as_echo "$ac_cv_prog_suncc" >&6; }
4186 if test -n "$ac_tool_prefix"; then
4187   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_RANLIB+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -n "$RANLIB"; then
4195   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 RANLIB=$ac_cv_prog_RANLIB
4215 if test -n "$RANLIB"; then
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4217 $as_echo "$RANLIB" >&6; }
4218 else
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224 fi
4225 if test -z "$ac_cv_prog_RANLIB"; then
4226   ac_ct_RANLIB=$RANLIB
4227   # Extract the first word of "ranlib", so it can be a program name with args.
4228 set dummy ranlib; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$ac_ct_RANLIB"; then
4235   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_ac_ct_RANLIB="ranlib"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4255 if test -n "$ac_ct_RANLIB"; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4257 $as_echo "$ac_ct_RANLIB" >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263   if test "x$ac_ct_RANLIB" = x; then
4264     RANLIB=":"
4265   else
4266     case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272     RANLIB=$ac_ct_RANLIB
4273   fi
4274 else
4275   RANLIB="$ac_cv_prog_RANLIB"
4276 fi
4277
4278
4279
4280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4281 $as_echo_n "checking if compiler is clang... " >&6; }
4282 if ${ax_cv_cc_clang+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285
4286
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289
4290 int
4291 main ()
4292 {
4293
4294     #ifndef __clang__
4295          not clang
4296     #endif
4297
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303   ax_cv_cc_clang=yes
4304 else
4305   ax_cv_cc_clang=no
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4311 $as_echo "$ax_cv_cc_clang" >&6; }
4312
4313 if test "x$ax_cv_cc_clang" = "xyes"; then
4314   clang_path="$CC"
4315
4316 else
4317   clang_path=""
4318
4319 fi
4320
4321
4322 if test "x$GCC" = "xyes"; then
4323   CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4324 fi
4325
4326
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4328 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4329 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332
4333
4334     CFLAGS_SAVED=$CFLAGS
4335     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4336
4337     ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349 return 0;
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355   ax_cv_cc_qunused_arguments_flag="yes"
4356 else
4357   ax_cv_cc_qunused_arguments_flag="no"
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360     ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366
4367     CFLAGS="$CFLAGS_SAVED"
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4371 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4372
4373 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4374   CFLAGS="$CFLAGS -Qunused-arguments"
4375   LDFLAGS="$LDFLAGS -Qunused-arguments"
4376 fi
4377
4378 # Check whether --enable-largefile was given.
4379 if test "${enable_largefile+set}" = set; then :
4380   enableval=$enable_largefile;
4381 fi
4382
4383 if test "$enable_largefile" != no; then
4384
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4386 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4387 if ${ac_cv_sys_largefile_CC+:} false; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   ac_cv_sys_largefile_CC=no
4391      if test "$GCC" != yes; then
4392        ac_save_CC=$CC
4393        while :; do
4394          # IRIX 6.2 and later do not support large files by default,
4395          # so use the C compiler's -n32 option if that helps.
4396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h.  */
4398 #include <sys/types.h>
4399  /* Check that off_t can represent 2**63 - 1 correctly.
4400     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401     since some C++ compilers masquerading as C compilers
4402     incorrectly reject 9223372036854775807.  */
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4404   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405                        && LARGE_OFF_T % 2147483647 == 1)
4406                       ? 1 : -1];
4407 int
4408 main ()
4409 {
4410
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415          if ac_fn_c_try_compile "$LINENO"; then :
4416   break
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext
4419          CC="$CC -n32"
4420          if ac_fn_c_try_compile "$LINENO"; then :
4421   ac_cv_sys_largefile_CC=' -n32'; break
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext
4424          break
4425        done
4426        CC=$ac_save_CC
4427        rm -f conftest.$ac_ext
4428     fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4431 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4432   if test "$ac_cv_sys_largefile_CC" != no; then
4433     CC=$CC$ac_cv_sys_largefile_CC
4434   fi
4435
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4437 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4438 if ${ac_cv_sys_file_offset_bits+:} false; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   while :; do
4442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h.  */
4444 #include <sys/types.h>
4445  /* Check that off_t can represent 2**63 - 1 correctly.
4446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447     since some C++ compilers masquerading as C compilers
4448     incorrectly reject 9223372036854775807.  */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451                        && LARGE_OFF_T % 2147483647 == 1)
4452                       ? 1 : -1];
4453 int
4454 main ()
4455 {
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462   ac_cv_sys_file_offset_bits=no; break
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h.  */
4467 #define _FILE_OFFSET_BITS 64
4468 #include <sys/types.h>
4469  /* Check that off_t can represent 2**63 - 1 correctly.
4470     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471     since some C++ compilers masquerading as C compilers
4472     incorrectly reject 9223372036854775807.  */
4473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4474   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475                        && LARGE_OFF_T % 2147483647 == 1)
4476                       ? 1 : -1];
4477 int
4478 main ()
4479 {
4480
4481   ;
4482   return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486   ac_cv_sys_file_offset_bits=64; break
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489   ac_cv_sys_file_offset_bits=unknown
4490   break
4491 done
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4494 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4495 case $ac_cv_sys_file_offset_bits in #(
4496   no | unknown) ;;
4497   *)
4498 cat >>confdefs.h <<_ACEOF
4499 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4500 _ACEOF
4501 ;;
4502 esac
4503 rm -rf conftest*
4504   if test $ac_cv_sys_file_offset_bits = unknown; then
4505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4506 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4507 if ${ac_cv_sys_large_files+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   while :; do
4511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513 #include <sys/types.h>
4514  /* Check that off_t can represent 2**63 - 1 correctly.
4515     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4516     since some C++ compilers masquerading as C compilers
4517     incorrectly reject 9223372036854775807.  */
4518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4519   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4520                        && LARGE_OFF_T % 2147483647 == 1)
4521                       ? 1 : -1];
4522 int
4523 main ()
4524 {
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531   ac_cv_sys_large_files=no; break
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #define _LARGE_FILES 1
4537 #include <sys/types.h>
4538  /* Check that off_t can represent 2**63 - 1 correctly.
4539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540     since some C++ compilers masquerading as C compilers
4541     incorrectly reject 9223372036854775807.  */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544                        && LARGE_OFF_T % 2147483647 == 1)
4545                       ? 1 : -1];
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555   ac_cv_sys_large_files=1; break
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558   ac_cv_sys_large_files=unknown
4559   break
4560 done
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4563 $as_echo "$ac_cv_sys_large_files" >&6; }
4564 case $ac_cv_sys_large_files in #(
4565   no | unknown) ;;
4566   *)
4567 cat >>confdefs.h <<_ACEOF
4568 #define _LARGE_FILES $ac_cv_sys_large_files
4569 _ACEOF
4570 ;;
4571 esac
4572 rm -rf conftest*
4573   fi
4574
4575
4576 fi
4577
4578
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4580 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4581 if ${ac_cv_c_bigendian+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   ac_cv_c_bigendian=unknown
4585     # See if we're dealing with a universal compiler.
4586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588 #ifndef __APPLE_CC__
4589                not a universal capable compiler
4590              #endif
4591              typedef int dummy;
4592
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595
4596         # Check for potential -arch flags.  It is not universal unless
4597         # there are at least two -arch flags with different values.
4598         ac_arch=
4599         ac_prev=
4600         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4601          if test -n "$ac_prev"; then
4602            case $ac_word in
4603              i?86 | x86_64 | ppc | ppc64)
4604                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4605                  ac_arch=$ac_word
4606                else
4607                  ac_cv_c_bigendian=universal
4608                  break
4609                fi
4610                ;;
4611            esac
4612            ac_prev=
4613          elif test "x$ac_word" = "x-arch"; then
4614            ac_prev=arch
4615          fi
4616        done
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619     if test $ac_cv_c_bigendian = unknown; then
4620       # See if sys/param.h defines the BYTE_ORDER macro.
4621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h.  */
4623 #include <sys/types.h>
4624              #include <sys/param.h>
4625
4626 int
4627 main ()
4628 {
4629 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4630                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4631                      && LITTLE_ENDIAN)
4632               bogus endian macros
4633              #endif
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640   # It does; now see whether it defined to BIG_ENDIAN or not.
4641          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643 #include <sys/types.h>
4644                 #include <sys/param.h>
4645
4646 int
4647 main ()
4648 {
4649 #if BYTE_ORDER != BIG_ENDIAN
4650                  not big endian
4651                 #endif
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658   ac_cv_c_bigendian=yes
4659 else
4660   ac_cv_c_bigendian=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665     fi
4666     if test $ac_cv_c_bigendian = unknown; then
4667       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h.  */
4670 #include <limits.h>
4671
4672 int
4673 main ()
4674 {
4675 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4676               bogus endian macros
4677              #endif
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684   # It does; now see whether it defined to _BIG_ENDIAN or not.
4685          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h.  */
4687 #include <limits.h>
4688
4689 int
4690 main ()
4691 {
4692 #ifndef _BIG_ENDIAN
4693                  not big endian
4694                 #endif
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701   ac_cv_c_bigendian=yes
4702 else
4703   ac_cv_c_bigendian=no
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708     fi
4709     if test $ac_cv_c_bigendian = unknown; then
4710       # Compile a test program.
4711       if test "$cross_compiling" = yes; then :
4712   # Try to guess by grepping values from an object file.
4713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h.  */
4715 short int ascii_mm[] =
4716                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4717                 short int ascii_ii[] =
4718                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4719                 int use_ascii (int i) {
4720                   return ascii_mm[i] + ascii_ii[i];
4721                 }
4722                 short int ebcdic_ii[] =
4723                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4724                 short int ebcdic_mm[] =
4725                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4726                 int use_ebcdic (int i) {
4727                   return ebcdic_mm[i] + ebcdic_ii[i];
4728                 }
4729                 extern int foo;
4730
4731 int
4732 main ()
4733 {
4734 return use_ascii (foo) == use_ebcdic (foo);
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4741               ac_cv_c_bigendian=yes
4742             fi
4743             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4744               if test "$ac_cv_c_bigendian" = unknown; then
4745                 ac_cv_c_bigendian=no
4746               else
4747                 # finding both strings is unlikely to happen, but who knows?
4748                 ac_cv_c_bigendian=unknown
4749               fi
4750             fi
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756 $ac_includes_default
4757 int
4758 main ()
4759 {
4760
4761              /* Are we little or big endian?  From Harbison&Steele.  */
4762              union
4763              {
4764                long int l;
4765                char c[sizeof (long int)];
4766              } u;
4767              u.l = 1;
4768              return u.c[sizeof (long int) - 1] == 1;
4769
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_run "$LINENO"; then :
4775   ac_cv_c_bigendian=no
4776 else
4777   ac_cv_c_bigendian=yes
4778 fi
4779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4780   conftest.$ac_objext conftest.beam conftest.$ac_ext
4781 fi
4782
4783     fi
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4786 $as_echo "$ac_cv_c_bigendian" >&6; }
4787  case $ac_cv_c_bigendian in #(
4788    yes)
4789
4790 $as_echo "#define FR_BIG_ENDIAN 1" >>confdefs.h
4791 ;; #(
4792    no)
4793
4794 $as_echo "#define FR_LITTLE_ENDIAN 1" >>confdefs.h
4795
4796  ;; #(
4797    universal)
4798
4799 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4800
4801      ;; #(
4802    *)
4803      as_fn_error $? "unknown endianness
4804  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4805  esac
4806
4807
4808 # Extract the first word of "gmake", so it can be a program name with args.
4809 set dummy gmake; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_GMAKE+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if test -n "$GMAKE"; then
4816   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_exec_ext in '' $ac_executable_extensions; do
4824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_prog_GMAKE="yes"
4826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830   done
4831 IFS=$as_save_IFS
4832
4833   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4834 fi
4835 fi
4836 GMAKE=$ac_cv_prog_GMAKE
4837 if test -n "$GMAKE"; then
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4839 $as_echo "$GMAKE" >&6; }
4840 else
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 if test $GMAKE = no; then
4847   # Extract the first word of "make", so it can be a program name with args.
4848 set dummy make; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_path_MAKE+:} false; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   case $MAKE in
4855   [\\/]* | ?:[\\/]*)
4856   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4857   ;;
4858   *)
4859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871   done
4872 IFS=$as_save_IFS
4873
4874   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4875   ;;
4876 esac
4877 fi
4878 MAKE=$ac_cv_path_MAKE
4879 if test -n "$MAKE"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4881 $as_echo "$MAKE" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 else
4889   # Extract the first word of "gmake", so it can be a program name with args.
4890 set dummy gmake; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_path_MAKE+:} false; then :
4894   $as_echo_n "(cached) " >&6
4895 else
4896   case $MAKE in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4917   ;;
4918 esac
4919 fi
4920 MAKE=$ac_cv_path_MAKE
4921 if test -n "$MAKE"; then
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4923 $as_echo "$MAKE" >&6; }
4924 else
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4932 if test -z "$makever"; then
4933   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
4934 fi
4935
4936
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4938 $as_echo_n "checking number of system cores... " >&6; }
4939 if ${ax_cv_system_cores+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942
4943       ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
4949       if test "$cross_compiling" = yes; then :
4950   ax_cv_system_cores=
4951
4952 else
4953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h.  */
4955
4956           #include <stdio.h>
4957           #include <stdint.h>
4958           #ifdef _WIN32
4959           #  include <windows.h>
4960           #elif MACOS
4961           #  include <sys/param.h>
4962           #  include <sys/sysctl.h>
4963           #else
4964           #  include <unistd.h>
4965           #endif
4966
4967           int main (int argc, char *argv[])
4968           {
4969             uint32_t count;
4970
4971             #ifdef WIN32
4972             SYSTEM_INFO sysinfo;
4973             GetSystemInfo(&sysinfo);
4974
4975             count = sysinfo.dwNumberOfProcessors;
4976
4977             #elif MACOS
4978             int nm[2];
4979             size_t len = 4;
4980
4981             nm[0] = CTL_HW;
4982             nm[1] = HW_AVAILCPU;
4983             sysctl(nm, 2, &count, &len, NULL, 0);
4984
4985             if(count < 1) {
4986               nm[1] = HW_NCPU;
4987               sysctl(nm, 2, &count, &len, NULL, 0);
4988               if(count < 1) {
4989                 count = 1;
4990               }
4991             }
4992
4993             #else
4994             count = sysconf(_SC_NPROCESSORS_ONLN);
4995             #endif
4996
4997             return count;
4998           }
4999
5000 _ACEOF
5001 if ac_fn_c_try_run "$LINENO"; then :
5002   ax_cv_system_cores=$?
5003 else
5004   ax_cv_system_cores=$?
5005 fi
5006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5007   conftest.$ac_objext conftest.beam conftest.$ac_ext
5008 fi
5009
5010     ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5019 $as_echo "$ax_cv_system_cores" >&6; }
5020
5021
5022
5023
5024 # Extract the first word of "git", so it can be a program name with args.
5025 set dummy git; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_GIT+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -n "$GIT"; then
5032   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041     ac_cv_prog_GIT="yes"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5048
5049   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5050 fi
5051 fi
5052 GIT=$ac_cv_prog_GIT
5053 if test -n "$GIT"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5055 $as_echo "$GIT" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062
5063
5064 # Check whether --enable-strict-dependencies was given.
5065 if test "${enable_strict_dependencies+set}" = set; then :
5066   enableval=$enable_strict_dependencies;
5067 fi
5068
5069
5070 # Check whether --enable-werror was given.
5071 if test "${enable_werror+set}" = set; then :
5072   enableval=$enable_werror;  case "$enableval" in
5073     no)
5074       werror=no
5075     ;;
5076     *)
5077       werror=yes
5078   esac
5079
5080 fi
5081
5082
5083 docdir='${datadir}/doc/freeradius'
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5085 $as_echo_n "checking docdir... " >&6; }
5086
5087 # Check whether --with-docdir was given.
5088 if test "${with_docdir+set}" = set; then :
5089   withval=$with_docdir;  case "$withval" in
5090   no)
5091     docdir=no
5092     ;;
5093   yes)
5094     ;;
5095   [\\/$]* | ?:[\\/]* )
5096     docdir="$withval"
5097     ;;
5098   *)
5099     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5100     ;;
5101   esac
5102
5103 fi
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5107 $as_echo "$docdir" >&6; }
5108 if test "x$docdir" = xno; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5110 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5111 fi
5112
5113 logdir='${localstatedir}/log/radius'
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5115 $as_echo_n "checking logdir... " >&6; }
5116
5117 # Check whether --with-logdir was given.
5118 if test "${with_logdir+set}" = set; then :
5119   withval=$with_logdir;  case "$withval" in
5120   no)
5121     as_fn_error $? "Need logdir" "$LINENO" 5
5122     ;;
5123   yes)
5124     ;;
5125   [\\/$]* | ?:[\\/]* )
5126     logdir="$withval"
5127     ;;
5128   *)
5129     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5130     ;;
5131   esac
5132
5133 fi
5134
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5137 $as_echo "$logdir" >&6; }
5138
5139 radacctdir='${logdir}/radacct'
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5141 $as_echo_n "checking radacctdir... " >&6; }
5142
5143 # Check whether --with-radacctdir was given.
5144 if test "${with_radacctdir+set}" = set; then :
5145   withval=$with_radacctdir;  case "$withval" in
5146   no)
5147     as_fn_error $? "Need radacctdir" "$LINENO" 5
5148     ;;
5149   yes)
5150     ;;
5151   [\\/$]* | ?:[\\/]* )
5152     radacctdir="$withval"
5153     ;;
5154   *)
5155     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5156     ;;
5157   esac
5158
5159 fi
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5163 $as_echo "$radacctdir" >&6; }
5164
5165 raddbdir='${sysconfdir}/raddb'
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5167 $as_echo_n "checking raddbdir... " >&6; }
5168
5169 # Check whether --with-raddbdir was given.
5170 if test "${with_raddbdir+set}" = set; then :
5171   withval=$with_raddbdir;  case "$withval" in
5172   no)
5173     as_fn_error $? "Need raddbdir" "$LINENO" 5
5174     ;;
5175   yes)
5176     ;;
5177   [\\/$]* | ?:[\\/]* )
5178     raddbdir="$withval"
5179     ;;
5180   *)
5181     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5182     ;;
5183   esac
5184
5185 fi
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5189 $as_echo "$raddbdir" >&6; }
5190
5191 dictdir='${datarootdir}/freeradius'
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5193 $as_echo_n "checking dictdir... " >&6; }
5194
5195 # Check whether --with-dictdir was given.
5196 if test "${with_dictdir+set}" = set; then :
5197   withval=$with_dictdir;  case "$withval" in
5198   no)
5199     as_fn_error $? "Need dictdir" "$LINENO" 5
5200     ;;
5201   yes)
5202     ;;
5203   [\\/$]* | ?:[\\/]* )
5204     dictdir="$withval"
5205     ;;
5206   *)
5207     as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5208     ;;
5209   esac
5210
5211 fi
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5215 $as_echo "$dictdir" >&6; }
5216
5217 modconfdir='${raddbdir}/mods-config'
5218
5219
5220 WITH_ASCEND_BINARY=yes
5221
5222 # Check whether --with-ascend-binary was given.
5223 if test "${with_ascend_binary+set}" = set; then :
5224   withval=$with_ascend_binary;  case "$withval" in
5225   yes)
5226     ;;
5227   *)
5228     WITH_ASCEND_BINARY=no
5229   esac
5230
5231 fi
5232
5233 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5234
5235 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5236
5237 fi
5238
5239 WITH_THREADS=yes
5240
5241 # Check whether --with-threads was given.
5242 if test "${with_threads+set}" = set; then :
5243   withval=$with_threads;  case "$withval" in
5244   yes)
5245     ;;
5246   *)
5247     WITH_THREADS=no
5248   esac
5249
5250 fi
5251
5252
5253 WITH_TCP=yes
5254
5255 # Check whether --with-tcp was given.
5256 if test "${with_tcp+set}" = set; then :
5257   withval=$with_tcp;  case "$withval" in
5258   yes)
5259     ;;
5260   *)
5261     WITH_TCP=no
5262   esac
5263
5264 fi
5265
5266 if test "x$WITH_TCP" = "xyes"; then
5267
5268 $as_echo "#define WITH_TCP 1" >>confdefs.h
5269
5270 fi
5271
5272 WITH_VMPS=yes
5273
5274 # Check whether --with-vmps was given.
5275 if test "${with_vmps+set}" = set; then :
5276   withval=$with_vmps;  case "$withval" in
5277   yes)
5278     ;;
5279   *)
5280     WITH_VMPS=no
5281   esac
5282
5283 fi
5284
5285 if test "x$WITH_VMPS" = "xyes"; then
5286
5287 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5288
5289 fi
5290
5291 WITH_DHCP=yes
5292
5293 # Check whether --with-dhcp was given.
5294 if test "${with_dhcp+set}" = set; then :
5295   withval=$with_dhcp;  case "$withval" in
5296   yes)
5297     ;;
5298   *)
5299     WITH_DHCP=no
5300   esac
5301
5302 fi
5303
5304 if test "x$WITH_DHCP" = "xyes"; then
5305
5306 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5307
5308 fi
5309
5310 STATIC_MODULES=
5311
5312 # Check whether --with-static_modules was given.
5313 if test "${with_static_modules+set}" = set; then :
5314   withval=$with_static_modules;
5315   for i in $withval; do
5316     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5317   done
5318
5319 fi
5320
5321
5322 USE_SHARED_LIBS=yes
5323
5324 # Check whether --with-shared-libs was given.
5325 if test "${with_shared_libs+set}" = set; then :
5326   withval=$with_shared_libs;  case "$withval" in
5327   no)
5328     USE_SHARED_LIBS=no
5329     ;;
5330   *)
5331   esac
5332
5333 fi
5334
5335
5336 MODULES=
5337
5338 # Check whether --with-modules was given.
5339 if test "${with_modules+set}" = set; then :
5340   withval=$with_modules;
5341  for i in $withval; do
5342    MODULES="$MODULES $i"
5343  done
5344
5345 fi
5346
5347
5348 EXPERIMENTAL=
5349
5350 # Check whether --with-experimental-modules was given.
5351 if test "${with_experimental_modules+set}" = set; then :
5352   withval=$with_experimental_modules;  case "$withval" in
5353   yes)
5354     EXPERIMENTAL=yes
5355     ;;
5356   no)
5357     EXPERIMENTAL=no
5358     ;;
5359   *)
5360   esac
5361
5362 fi
5363
5364
5365 WITH_UDPFROMTO=yes
5366
5367 # Check whether --with-udpfromto was given.
5368 if test "${with_udpfromto+set}" = set; then :
5369   withval=$with_udpfromto;  case "$withval" in
5370   yes)
5371     WITH_UDPFROMTO=yes
5372     ;;
5373   *)
5374     WITH_UDPFROMTO=no
5375   esac
5376
5377 fi
5378
5379
5380 if test "x$WITH_UDPFROMTO" = "xyes"; then
5381
5382 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5383
5384 fi
5385
5386
5387
5388 # Check whether --with-rlm-FOO-lib-dir was given.
5389 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5390   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5391   *)
5392     ;;
5393   esac
5394
5395 fi
5396
5397
5398
5399 # Check whether --with-rlm-FOO-include-dir was given.
5400 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5401   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5402   *)
5403     ;;
5404   esac
5405
5406 fi
5407
5408
5409 WITH_OPENSSL=yes
5410
5411 # Check whether --with-openssl was given.
5412 if test "${with_openssl+set}" = set; then :
5413   withval=$with_openssl;  case "$withval" in
5414   no)
5415     WITH_OPENSSL=no
5416     ;;
5417   *)
5418     WITH_OPENSSL=yes
5419     ;;
5420   esac
5421
5422 fi
5423
5424
5425 openssl_lib_dir=
5426
5427 # Check whether --with-openssl-lib-dir was given.
5428 if test "${with_openssl_lib_dir+set}" = set; then :
5429   withval=$with_openssl_lib_dir;  case "$withval" in
5430   *) openssl_lib_dir="$withval"
5431     ;;
5432   esac
5433
5434 fi
5435
5436
5437 openssl_include_dir=
5438
5439 # Check whether --with-openssl-include-dir was given.
5440 if test "${with_openssl_include_dir+set}" = set; then :
5441   withval=$with_openssl_include_dir;  case "$withval" in
5442   *) openssl_include_dir="$withval"
5443     ;;
5444   esac
5445
5446 fi
5447
5448
5449 # Check whether --enable-openssl-version-check was given.
5450 if test "${enable_openssl_version_check+set}" = set; then :
5451   enableval=$enable_openssl_version_check;
5452 fi
5453
5454 if test "x$enable_openssl_version_check" != "xno"; then
5455
5456 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5457
5458   openssl_version_check_config="\
5459         #
5460         #  allow_vulnerable_openssl: Allow the server to start with
5461         #  versions of OpenSSL known to have critical vulnerabilities.
5462         #
5463         #  This check is based on the version number reported by libssl
5464         #  and may not reflect patches applied to libssl by
5465         #  distribution maintainers.
5466         #
5467         allow_vulnerable_openssl = no"
5468 else
5469   openssl_version_check_config=
5470 fi
5471
5472
5473
5474
5475 CHECKRAD=checkrad
5476 # Extract the first word of "perl", so it can be a program name with args.
5477 set dummy perl; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_PERL+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   case $PERL in
5484   [\\/]* | ?:[\\/]*)
5485   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5486   ;;
5487   *)
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5504   ;;
5505 esac
5506 fi
5507 PERL=$ac_cv_path_PERL
5508 if test -n "$PERL"; then
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5510 $as_echo "$PERL" >&6; }
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516
5517 if test "x$ac_cv_path_PERL" = "x"; then
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5519 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5520 fi
5521 # Extract the first word of "snmpget", so it can be a program name with args.
5522 set dummy snmpget; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_SNMPGET+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $SNMPGET in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547
5548   ;;
5549 esac
5550 fi
5551 SNMPGET=$ac_cv_path_SNMPGET
5552 if test -n "$SNMPGET"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5554 $as_echo "$SNMPGET" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 if test "x$ac_cv_path_SNMPGET" = "x"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5563 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5564 fi
5565
5566 # Extract the first word of "snmpwalk", so it can be a program name with args.
5567 set dummy snmpwalk; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_path_SNMPWALK+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   case $SNMPWALK in
5574   [\\/]* | ?:[\\/]*)
5575   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5576   ;;
5577   *)
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590   done
5591 IFS=$as_save_IFS
5592
5593   ;;
5594 esac
5595 fi
5596 SNMPWALK=$ac_cv_path_SNMPWALK
5597 if test -n "$SNMPWALK"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5599 $as_echo "$SNMPWALK" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5608 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5609 fi
5610
5611 # Extract the first word of "rusers", so it can be a program name with args.
5612 set dummy rusers; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_path_RUSERS+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   case $RUSERS in
5619   [\\/]* | ?:[\\/]*)
5620   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5621   ;;
5622   *)
5623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628     for ac_exec_ext in '' $ac_executable_extensions; do
5629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635   done
5636 IFS=$as_save_IFS
5637
5638   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5639   ;;
5640 esac
5641 fi
5642 RUSERS=$ac_cv_path_RUSERS
5643 if test -n "$RUSERS"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5645 $as_echo "$RUSERS" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652
5653 missing_dir=`cd $ac_aux_dir && pwd`
5654 # expand $ac_aux_dir to an absolute path
5655 am_aux_dir=`cd $ac_aux_dir && pwd`
5656
5657 if test x"${MISSING+set}" != xset; then
5658   case $am_aux_dir in
5659   *\ * | *\     *)
5660     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5661   *)
5662     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5663   esac
5664 fi
5665 # Use eval to expand $SHELL
5666 if eval "$MISSING --run true"; then
5667   am_missing_run="$MISSING --run "
5668 else
5669   am_missing_run=
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5671 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5672 fi
5673
5674
5675 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5676
5677
5678 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5679
5680
5681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5682
5683
5684 # Extract the first word of "locate", so it can be a program name with args.
5685 set dummy locate; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_LOCATE+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   case $LOCATE in
5692   [\\/]* | ?:[\\/]*)
5693   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5694   ;;
5695   *)
5696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708   done
5709 IFS=$as_save_IFS
5710
5711   ;;
5712 esac
5713 fi
5714 LOCATE=$ac_cv_path_LOCATE
5715 if test -n "$LOCATE"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5717 $as_echo "$LOCATE" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 # Extract the first word of "dirname", so it can be a program name with args.
5725 set dummy dirname; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_path_DIRNAME+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   case $DIRNAME in
5732   [\\/]* | ?:[\\/]*)
5733   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5734   ;;
5735   *)
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750
5751   ;;
5752 esac
5753 fi
5754 DIRNAME=$ac_cv_path_DIRNAME
5755 if test -n "$DIRNAME"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5757 $as_echo "$DIRNAME" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 # Extract the first word of "grep", so it can be a program name with args.
5765 set dummy grep; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_path_GREP+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   case $GREP in
5772   [\\/]* | ?:[\\/]*)
5773   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5774   ;;
5775   *)
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791   ;;
5792 esac
5793 fi
5794 GREP=$ac_cv_path_GREP
5795 if test -n "$GREP"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5797 $as_echo "$GREP" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804
5805
5806 talloc_lib_dir=
5807
5808 # Check whether --with-talloc-lib-dir was given.
5809 if test "${with_talloc_lib_dir+set}" = set; then :
5810   withval=$with_talloc_lib_dir; case "$withval" in
5811     no)
5812       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5813       ;;
5814     yes)
5815       ;;
5816     *)
5817       talloc_lib_dir="$withval"
5818       ;;
5819   esac
5820 fi
5821
5822
5823 talloc_include_dir=
5824
5825 # Check whether --with-talloc-include-dir was given.
5826 if test "${with_talloc_include_dir+set}" = set; then :
5827   withval=$with_talloc_include_dir; case "$withval" in
5828     no)
5829       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5830       ;;
5831     yes)
5832       ;;
5833     *)
5834       talloc_include_dir="$withval"
5835       ;;
5836   esac
5837 fi
5838
5839
5840 smart_try_dir="$talloc_lib_dir"
5841
5842
5843 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5844 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5845
5846 old_LIBS="$LIBS"
5847 old_CPPFLAGS="$CPPFLAGS"
5848 smart_lib=
5849 smart_ldflags=
5850 smart_lib_dir=
5851
5852 if test "x$smart_try_dir" != "x"; then
5853   for try in $smart_try_dir; do
5854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5855 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5856     LIBS="-ltalloc $old_LIBS"
5857     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860 extern char _talloc();
5861 int
5862 main ()
5863 {
5864 _talloc()
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_link "$LINENO"; then :
5870
5871                  smart_lib="-ltalloc"
5872                  smart_ldflags="-L$try -Wl,-rpath,$try"
5873                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 $as_echo "yes" >&6; }
5875                  break
5876
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext \
5882     conftest$ac_exeext conftest.$ac_ext
5883   done
5884   LIBS="$old_LIBS"
5885   CPPFLAGS="$old_CPPFLAGS"
5886 fi
5887
5888 if test "x$smart_lib" = "x"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5890 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5891   LIBS="-ltalloc $old_LIBS"
5892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h.  */
5894 extern char _talloc();
5895 int
5896 main ()
5897 {
5898 _talloc()
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_link "$LINENO"; then :
5904
5905                 smart_lib="-ltalloc"
5906                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5907 $as_echo "yes" >&6; }
5908
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext \
5914     conftest$ac_exeext conftest.$ac_ext
5915   LIBS="$old_LIBS"
5916 fi
5917
5918 if test "x$smart_lib" = "x"; then
5919
5920
5921 if test "x$LOCATE" != "x"; then
5922         DIRS=
5923   file=libtalloc${libltdl_cv_shlibext}
5924
5925   for x in `${LOCATE} $file 2>/dev/null`; do
5926                                         base=`echo $x | sed "s%/${file}%%"`
5927     if test "x$x" = "x$base"; then
5928       continue;
5929     fi
5930
5931     dir=`${DIRNAME} $x 2>/dev/null`
5932                 exclude=`echo ${dir} | ${GREP} /home`
5933     if test "x$exclude" != "x"; then
5934       continue
5935     fi
5936
5937                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5938     if test "x$already" = "x"; then
5939       DIRS="$DIRS $dir"
5940     fi
5941   done
5942 fi
5943
5944 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5945
5946
5947
5948 if test "x$LOCATE" != "x"; then
5949         DIRS=
5950   file=libtalloc.a
5951
5952   for x in `${LOCATE} $file 2>/dev/null`; do
5953                                         base=`echo $x | sed "s%/${file}%%"`
5954     if test "x$x" = "x$base"; then
5955       continue;
5956     fi
5957
5958     dir=`${DIRNAME} $x 2>/dev/null`
5959                 exclude=`echo ${dir} | ${GREP} /home`
5960     if test "x$exclude" != "x"; then
5961       continue
5962     fi
5963
5964                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5965     if test "x$already" = "x"; then
5966       DIRS="$DIRS $dir"
5967     fi
5968   done
5969 fi
5970
5971 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5972
5973
5974   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5976 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5977     LIBS="-ltalloc $old_LIBS"
5978     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981 extern char _talloc();
5982 int
5983 main ()
5984 {
5985 _talloc()
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991
5992                   smart_lib="-ltalloc"
5993                   smart_ldflags="-L$try -Wl,-rpath,$try"
5994                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995 $as_echo "yes" >&6; }
5996                   break
5997
5998 else
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003     conftest$ac_exeext conftest.$ac_ext
6004   done
6005   LIBS="$old_LIBS"
6006   CPPFLAGS="$old_CPPFLAGS"
6007 fi
6008
6009 if test "x$smart_lib" != "x"; then
6010   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6011   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6012   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6013 fi
6014
6015 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6017 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6018   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6019 fi
6020
6021 TALLOC_LIBS="${smart_lib}"
6022 TALLOC_LDFLAGS="${smart_ldflags}"
6023
6024
6025 LIBS="$old_LIBS"
6026
6027 old_CFLAGS=$CFLAGS
6028 if test "x$WITH_THREADS" = "xyes"; then
6029   if test $ac_cv_prog_suncc = "yes"; then
6030     CFLAGS="$CFLAGS -mt"
6031   fi
6032
6033   for ac_header in pthread.h
6034 do :
6035   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_pthread_h" = xyes; then :
6037   cat >>confdefs.h <<_ACEOF
6038 #define HAVE_PTHREAD_H 1
6039 _ACEOF
6040
6041 else
6042
6043       WITH_THREADS="no"
6044       fail=pthread.h
6045
6046 fi
6047
6048 done
6049
6050
6051                 if test "x$WITH_THREADS" != "xno"; then
6052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6053 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6054 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lpthread  $LIBS"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h.  */
6061
6062 /* Override any GCC internal prototype to avoid an error.
6063    Use char because int might match the return type of a GCC
6064    builtin and then its argument prototype would still apply.  */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 char pthread_create ();
6069 int
6070 main ()
6071 {
6072 return pthread_create ();
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"; then :
6078   ac_cv_lib_pthread_pthread_create=yes
6079 else
6080   ac_cv_lib_pthread_pthread_create=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083     conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6087 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6088 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6089
6090         HAVE_LPTHREAD='yes'
6091         CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6092         LIBS="-lpthread $LIBS"
6093
6094
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6096 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6097 if ${ax_cv_cc_pthread_flag+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100
6101
6102     CFLAGS_SAVED=$CFLAGS
6103     CFLAGS="$CFLAGS -Werror -pthread"
6104
6105     ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110
6111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h.  */
6113
6114 int
6115 main ()
6116 {
6117 return 0;
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123   ax_cv_cc_pthread_flag="yes"
6124 else
6125   ax_cv_cc_pthread_flag="no"
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128     ac_ext=c
6129 ac_cpp='$CPP $CPPFLAGS'
6130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
6134
6135     CFLAGS="$CFLAGS_SAVED"
6136
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6139 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6140
6141         if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6142           CFLAGS="$CFLAGS -pthread"
6143         fi
6144
6145
6146 fi
6147
6148
6149                         if test "x$HAVE_LPTHREAD" != "xyes"; then
6150       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6151 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6152 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lc_r  $LIBS"
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h.  */
6159
6160 /* Override any GCC internal prototype to avoid an error.
6161    Use char because int might match the return type of a GCC
6162    builtin and then its argument prototype would still apply.  */
6163 #ifdef __cplusplus
6164 extern "C"
6165 #endif
6166 char pthread_create ();
6167 int
6168 main ()
6169 {
6170 return pthread_create ();
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_link "$LINENO"; then :
6176   ac_cv_lib_c_r_pthread_create=yes
6177 else
6178   ac_cv_lib_c_r_pthread_create=no
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext \
6181     conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6185 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6186 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6187
6188           CFLAGS="$CFLAGS -D_THREAD_SAFE"
6189
6190
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6192 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6193 if ${ax_cv_cc_pthread_flag+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196
6197
6198     CFLAGS_SAVED=$CFLAGS
6199     CFLAGS="$CFLAGS -Werror -pthread"
6200
6201     ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h.  */
6209
6210 int
6211 main ()
6212 {
6213 return 0;
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219   ax_cv_cc_pthread_flag="yes"
6220 else
6221   ax_cv_cc_pthread_flag="no"
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224     ac_ext=c
6225 ac_cpp='$CPP $CPPFLAGS'
6226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229
6230
6231     CFLAGS="$CFLAGS_SAVED"
6232
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6235 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6236
6237           if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6238             LIBS="-lc_r $LIBS"
6239           else
6240             CFLAGS="$CFLAGS -pthread"
6241           fi
6242
6243 else
6244    fail=-lc_r or -lpthread
6245
6246 fi
6247
6248     fi
6249   fi
6250
6251   if test "x$WITH_THREADS" != "xyes"; then
6252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6253 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6255 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6256   else
6257
6258 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6259
6260   fi
6261 fi
6262
6263 if test "x$WITH_THREADS" != "xyes"; then
6264   CFLAGS=$old_CFLAGS
6265   ac_cv_header_pthread_h="no"
6266   WITH_THREADS=no
6267 else
6268
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6270 $as_echo_n "checking for library containing sem_init... " >&6; }
6271 if ${ac_cv_search_sem_init+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   ac_func_search_save_LIBS=$LIBS
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h.  */
6277
6278 /* Override any GCC internal prototype to avoid an error.
6279    Use char because int might match the return type of a GCC
6280    builtin and then its argument prototype would still apply.  */
6281 #ifdef __cplusplus
6282 extern "C"
6283 #endif
6284 char sem_init ();
6285 int
6286 main ()
6287 {
6288 return sem_init ();
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 for ac_lib in '' pthread sem posix4 rt semaphore; do
6294   if test -z "$ac_lib"; then
6295     ac_res="none required"
6296   else
6297     ac_res=-l$ac_lib
6298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6299   fi
6300   if ac_fn_c_try_link "$LINENO"; then :
6301   ac_cv_search_sem_init=$ac_res
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304     conftest$ac_exeext
6305   if ${ac_cv_search_sem_init+:} false; then :
6306   break
6307 fi
6308 done
6309 if ${ac_cv_search_sem_init+:} false; then :
6310
6311 else
6312   ac_cv_search_sem_init=no
6313 fi
6314 rm conftest.$ac_ext
6315 LIBS=$ac_func_search_save_LIBS
6316 fi
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6318 $as_echo "$ac_cv_search_sem_init" >&6; }
6319 ac_res=$ac_cv_search_sem_init
6320 if test "$ac_res" != no; then :
6321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6322
6323 else
6324   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
6325
6326 fi
6327
6328 fi
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6332 if ${ac_cv_lib_dl_dlopen+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-ldl  $LIBS"
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h.  */
6339
6340 /* Override any GCC internal prototype to avoid an error.
6341    Use char because int might match the return type of a GCC
6342    builtin and then its argument prototype would still apply.  */
6343 #ifdef __cplusplus
6344 extern "C"
6345 #endif
6346 char dlopen ();
6347 int
6348 main ()
6349 {
6350 return dlopen ();
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356   ac_cv_lib_dl_dlopen=yes
6357 else
6358   ac_cv_lib_dl_dlopen=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext \
6361     conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_check_lib_save_LIBS
6363 fi
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6366 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6367   cat >>confdefs.h <<_ACEOF
6368 #define HAVE_LIBDL 1
6369 _ACEOF
6370
6371   LIBS="-ldl $LIBS"
6372
6373 fi
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6377 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6378 if ${ac_cv_lib_socket_getsockname+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   ac_check_lib_save_LIBS=$LIBS
6382 LIBS="-lsocket  $LIBS"
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h.  */
6385
6386 /* Override any GCC internal prototype to avoid an error.
6387    Use char because int might match the return type of a GCC
6388    builtin and then its argument prototype would still apply.  */
6389 #ifdef __cplusplus
6390 extern "C"
6391 #endif
6392 char getsockname ();
6393 int
6394 main ()
6395 {
6396 return getsockname ();
6397   ;
6398   return 0;
6399 }
6400 _ACEOF
6401 if ac_fn_c_try_link "$LINENO"; then :
6402   ac_cv_lib_socket_getsockname=yes
6403 else
6404   ac_cv_lib_socket_getsockname=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext \
6407     conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6411 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6412 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6413   cat >>confdefs.h <<_ACEOF
6414 #define HAVE_LIBSOCKET 1
6415 _ACEOF
6416
6417   LIBS="-lsocket $LIBS"
6418
6419 fi
6420
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6423 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6424 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lresolv  $LIBS"
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h.  */
6431
6432 /* Override any GCC internal prototype to avoid an error.
6433    Use char because int might match the return type of a GCC
6434    builtin and then its argument prototype would still apply.  */
6435 #ifdef __cplusplus
6436 extern "C"
6437 #endif
6438 char inet_aton ();
6439 int
6440 main ()
6441 {
6442 return inet_aton ();
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"; then :
6448   ac_cv_lib_resolv_inet_aton=yes
6449 else
6450   ac_cv_lib_resolv_inet_aton=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext \
6453     conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6457 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6458 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6459   cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBRESOLV 1
6461 _ACEOF
6462
6463   LIBS="-lresolv $LIBS"
6464
6465 fi
6466
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6469 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6470 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-lnsl  $LIBS"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h.  */
6477
6478 /* Override any GCC internal prototype to avoid an error.
6479    Use char because int might match the return type of a GCC
6480    builtin and then its argument prototype would still apply.  */
6481 #ifdef __cplusplus
6482 extern "C"
6483 #endif
6484 char inet_ntoa ();
6485 int
6486 main ()
6487 {
6488 return inet_ntoa ();
6489   ;
6490   return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"; then :
6494   ac_cv_lib_nsl_inet_ntoa=yes
6495 else
6496   ac_cv_lib_nsl_inet_ntoa=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext \
6499     conftest$ac_exeext conftest.$ac_ext
6500 LIBS=$ac_check_lib_save_LIBS
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6503 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6504 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6505   cat >>confdefs.h <<_ACEOF
6506 #define HAVE_LIBNSL 1
6507 _ACEOF
6508
6509   LIBS="-lnsl $LIBS"
6510
6511 fi
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6514 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6515 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   ac_check_lib_save_LIBS=$LIBS
6519 LIBS="-lws2_32  $LIBS"
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522
6523 /* Override any GCC internal prototype to avoid an error.
6524    Use char because int might match the return type of a GCC
6525    builtin and then its argument prototype would still apply.  */
6526 #ifdef __cplusplus
6527 extern "C"
6528 #endif
6529 char htonl ();
6530 int
6531 main ()
6532 {
6533 return htonl ();
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_link "$LINENO"; then :
6539   ac_cv_lib_ws2_32_htonl=yes
6540 else
6541   ac_cv_lib_ws2_32_htonl=no
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext \
6544     conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6548 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6549 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6550   cat >>confdefs.h <<_ACEOF
6551 #define HAVE_LIBWS2_32 1
6552 _ACEOF
6553
6554   LIBS="-lws2_32 $LIBS"
6555
6556 fi
6557
6558
6559 pcap_lib_dir=
6560
6561 # Check whether --with-pcap-lib-dir was given.
6562 if test "${with_pcap_lib_dir+set}" = set; then :
6563   withval=$with_pcap_lib_dir; case "$withval" in
6564     no)
6565       as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6566       ;;
6567     yes)
6568       ;;
6569     *)
6570       pcap_lib_dir="$withval"
6571       ;;
6572   esac
6573 fi
6574
6575
6576 pcap_include_dir=
6577
6578 # Check whether --with-pcap-include-dir was given.
6579 if test "${with_pcap_include_dir+set}" = set; then :
6580   withval=$with_pcap_include_dir; case "$withval" in
6581     no)
6582       as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6583       ;;
6584     yes)
6585       ;;
6586     *)
6587       pcap_include_dir="$withval"
6588       ;;
6589   esac
6590 fi
6591
6592
6593 smart_try_dir="$pcap_lib_dir"
6594
6595
6596 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6597 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6598
6599 old_LIBS="$LIBS"
6600 old_CPPFLAGS="$CPPFLAGS"
6601 smart_lib=
6602 smart_ldflags=
6603 smart_lib_dir=
6604
6605 if test "x$smart_try_dir" != "x"; then
6606   for try in $smart_try_dir; do
6607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6608 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6609     LIBS="-lpcap $old_LIBS"
6610     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613 extern char pcap_open_live();
6614 int
6615 main ()
6616 {
6617 pcap_open_live()
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_link "$LINENO"; then :
6623
6624                  smart_lib="-lpcap"
6625                  smart_ldflags="-L$try -Wl,-rpath,$try"
6626                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6627 $as_echo "yes" >&6; }
6628                  break
6629
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext \
6635     conftest$ac_exeext conftest.$ac_ext
6636   done
6637   LIBS="$old_LIBS"
6638   CPPFLAGS="$old_CPPFLAGS"
6639 fi
6640
6641 if test "x$smart_lib" = "x"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6643 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6644   LIBS="-lpcap $old_LIBS"
6645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647 extern char pcap_open_live();
6648 int
6649 main ()
6650 {
6651 pcap_open_live()
6652   ;
6653   return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657
6658                 smart_lib="-lpcap"
6659                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext \
6667     conftest$ac_exeext conftest.$ac_ext
6668   LIBS="$old_LIBS"
6669 fi
6670
6671 if test "x$smart_lib" = "x"; then
6672
6673
6674 if test "x$LOCATE" != "x"; then
6675         DIRS=
6676   file=libpcap${libltdl_cv_shlibext}
6677
6678   for x in `${LOCATE} $file 2>/dev/null`; do
6679                                         base=`echo $x | sed "s%/${file}%%"`
6680     if test "x$x" = "x$base"; then
6681       continue;
6682     fi
6683
6684     dir=`${DIRNAME} $x 2>/dev/null`
6685                 exclude=`echo ${dir} | ${GREP} /home`
6686     if test "x$exclude" != "x"; then
6687       continue
6688     fi
6689
6690                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6691     if test "x$already" = "x"; then
6692       DIRS="$DIRS $dir"
6693     fi
6694   done
6695 fi
6696
6697 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6698
6699
6700
6701 if test "x$LOCATE" != "x"; then
6702         DIRS=
6703   file=libpcap.a
6704
6705   for x in `${LOCATE} $file 2>/dev/null`; do
6706                                         base=`echo $x | sed "s%/${file}%%"`
6707     if test "x$x" = "x$base"; then
6708       continue;
6709     fi
6710
6711     dir=`${DIRNAME} $x 2>/dev/null`
6712                 exclude=`echo ${dir} | ${GREP} /home`
6713     if test "x$exclude" != "x"; then
6714       continue
6715     fi
6716
6717                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6718     if test "x$already" = "x"; then
6719       DIRS="$DIRS $dir"
6720     fi
6721   done
6722 fi
6723
6724 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6725
6726
6727   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6729 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6730     LIBS="-lpcap $old_LIBS"
6731     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h.  */
6734 extern char pcap_open_live();
6735 int
6736 main ()
6737 {
6738 pcap_open_live()
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 if ac_fn_c_try_link "$LINENO"; then :
6744
6745                   smart_lib="-lpcap"
6746                   smart_ldflags="-L$try -Wl,-rpath,$try"
6747                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6748 $as_echo "yes" >&6; }
6749                   break
6750
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext \
6756     conftest$ac_exeext conftest.$ac_ext
6757   done
6758   LIBS="$old_LIBS"
6759   CPPFLAGS="$old_CPPFLAGS"
6760 fi
6761
6762 if test "x$smart_lib" != "x"; then
6763   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6764   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6765   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6766 fi
6767
6768 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6769   { $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
6770 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&2;}
6771 else
6772
6773 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6774
6775
6776   for ac_func in \
6777     pcap_fopen_offline \
6778     pcap_dump_fopen \
6779     pcap_create \
6780     pcap_activate
6781
6782 do :
6783   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6785 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6786   cat >>confdefs.h <<_ACEOF
6787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6788 _ACEOF
6789
6790 fi
6791 done
6792
6793
6794   PCAP_LIBS="${smart_lib}"
6795   PCAP_LDFLAGS="${smart_ldflags}"
6796 fi
6797 LIBS="${old_LIBS}"
6798
6799 collectdclient_lib_dir=
6800
6801 # Check whether --with-collectdclient-lib-dir was given.
6802 if test "${with_collectdclient_lib_dir+set}" = set; then :
6803   withval=$with_collectdclient_lib_dir; case "$withval" in
6804     no)
6805       as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6806       ;;
6807     yes)
6808       ;;
6809     *)
6810       collectdclient_lib_dir="$withval"
6811       ;;
6812   esac
6813 fi
6814
6815
6816 collectdclient_include_dir=
6817
6818 # Check whether --with-collectdclient-include-dir was given.
6819 if test "${with_collectdclient_include_dir+set}" = set; then :
6820   withval=$with_collectdclient_include_dir; case "$withval" in
6821     no)
6822       as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6823       ;;
6824     yes)
6825       ;;
6826     *)
6827       collectdclient_include_dir="$withval"
6828       ;;
6829   esac
6830 fi
6831
6832
6833 smart_try_dir="$collectdclient_lib_dir"
6834
6835
6836 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6837 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6838
6839 old_LIBS="$LIBS"
6840 old_CPPFLAGS="$CPPFLAGS"
6841 smart_lib=
6842 smart_ldflags=
6843 smart_lib_dir=
6844
6845 if test "x$smart_try_dir" != "x"; then
6846   for try in $smart_try_dir; do
6847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6848 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6849     LIBS="-lcollectdclient $old_LIBS"
6850     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 extern char lcc_connect();
6854 int
6855 main ()
6856 {
6857 lcc_connect()
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863
6864                  smart_lib="-lcollectdclient"
6865                  smart_ldflags="-L$try -Wl,-rpath,$try"
6866                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6868                  break
6869
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext \
6875     conftest$ac_exeext conftest.$ac_ext
6876   done
6877   LIBS="$old_LIBS"
6878   CPPFLAGS="$old_CPPFLAGS"
6879 fi
6880
6881 if test "x$smart_lib" = "x"; then
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6883 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6884   LIBS="-lcollectdclient $old_LIBS"
6885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h.  */
6887 extern char lcc_connect();
6888 int
6889 main ()
6890 {
6891 lcc_connect()
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897
6898                 smart_lib="-lcollectdclient"
6899                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907     conftest$ac_exeext conftest.$ac_ext
6908   LIBS="$old_LIBS"
6909 fi
6910
6911 if test "x$smart_lib" = "x"; then
6912
6913
6914 if test "x$LOCATE" != "x"; then
6915         DIRS=
6916   file=libcollectdclient${libltdl_cv_shlibext}
6917
6918   for x in `${LOCATE} $file 2>/dev/null`; do
6919                                         base=`echo $x | sed "s%/${file}%%"`
6920     if test "x$x" = "x$base"; then
6921       continue;
6922     fi
6923
6924     dir=`${DIRNAME} $x 2>/dev/null`
6925                 exclude=`echo ${dir} | ${GREP} /home`
6926     if test "x$exclude" != "x"; then
6927       continue
6928     fi
6929
6930                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6931     if test "x$already" = "x"; then
6932       DIRS="$DIRS $dir"
6933     fi
6934   done
6935 fi
6936
6937 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6938
6939
6940
6941 if test "x$LOCATE" != "x"; then
6942         DIRS=
6943   file=libcollectdclient.a
6944
6945   for x in `${LOCATE} $file 2>/dev/null`; do
6946                                         base=`echo $x | sed "s%/${file}%%"`
6947     if test "x$x" = "x$base"; then
6948       continue;
6949     fi
6950
6951     dir=`${DIRNAME} $x 2>/dev/null`
6952                 exclude=`echo ${dir} | ${GREP} /home`
6953     if test "x$exclude" != "x"; then
6954       continue
6955     fi
6956
6957                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6958     if test "x$already" = "x"; then
6959       DIRS="$DIRS $dir"
6960     fi
6961   done
6962 fi
6963
6964 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6965
6966
6967   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6969 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6970     LIBS="-lcollectdclient $old_LIBS"
6971     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h.  */
6974 extern char lcc_connect();
6975 int
6976 main ()
6977 {
6978 lcc_connect()
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984
6985                   smart_lib="-lcollectdclient"
6986                   smart_ldflags="-L$try -Wl,-rpath,$try"
6987                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 $as_echo "yes" >&6; }
6989                   break
6990
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996     conftest$ac_exeext conftest.$ac_ext
6997   done
6998   LIBS="$old_LIBS"
6999   CPPFLAGS="$old_CPPFLAGS"
7000 fi
7001
7002 if test "x$smart_lib" != "x"; then
7003   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7004   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7005   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7006 fi
7007
7008 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
7010 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
7011 else
7012   COLLECTDC_LIBS="${smart_lib}"
7013   COLLECTDC_LDFLAGS="${smart_ldflags}"
7014 fi
7015 LIBS="${old_LIBS}"
7016
7017 cap_lib_dir=
7018
7019 # Check whether --with-cap-lib-dir was given.
7020 if test "${with_cap_lib_dir+set}" = set; then :
7021   withval=$with_cap_lib_dir; case "$withval" in
7022     no)
7023       as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
7024       ;;
7025     yes)
7026       ;;
7027     *)
7028       cap_lib_dir="$withval"
7029       ;;
7030   esac
7031 fi
7032
7033
7034 cap_include_dir=
7035
7036 # Check whether --with-cap-include-dir was given.
7037 if test "${with_cap_include_dir+set}" = set; then :
7038   withval=$with_cap_include_dir; case "$withval" in
7039     no)
7040       as_fn_error $? "Need cap-include-dir" "$LINENO" 5
7041       ;;
7042     yes)
7043       ;;
7044     *)
7045       cap_include_dir="$withval"
7046       ;;
7047   esac
7048 fi
7049
7050
7051 smart_try_dir="$cap_lib_dir"
7052
7053
7054 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
7055 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
7056
7057 old_LIBS="$LIBS"
7058 old_CPPFLAGS="$CPPFLAGS"
7059 smart_lib=
7060 smart_ldflags=
7061 smart_lib_dir=
7062
7063 if test "x$smart_try_dir" != "x"; then
7064   for try in $smart_try_dir; do
7065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7066 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7067     LIBS="-lcap $old_LIBS"
7068     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071 extern char cap_get_proc();
7072 int
7073 main ()
7074 {
7075 cap_get_proc()
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"; then :
7081
7082                  smart_lib="-lcap"
7083                  smart_ldflags="-L$try -Wl,-rpath,$try"
7084                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7086                  break
7087
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext \
7093     conftest$ac_exeext conftest.$ac_ext
7094   done
7095   LIBS="$old_LIBS"
7096   CPPFLAGS="$old_CPPFLAGS"
7097 fi
7098
7099 if test "x$smart_lib" = "x"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
7101 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
7102   LIBS="-lcap $old_LIBS"
7103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h.  */
7105 extern char cap_get_proc();
7106 int
7107 main ()
7108 {
7109 cap_get_proc()
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_link "$LINENO"; then :
7115
7116                 smart_lib="-lcap"
7117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7119
7120 else
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext \
7125     conftest$ac_exeext conftest.$ac_ext
7126   LIBS="$old_LIBS"
7127 fi
7128
7129 if test "x$smart_lib" = "x"; then
7130
7131
7132 if test "x$LOCATE" != "x"; then
7133         DIRS=
7134   file=libcap${libltdl_cv_shlibext}
7135
7136   for x in `${LOCATE} $file 2>/dev/null`; do
7137                                         base=`echo $x | sed "s%/${file}%%"`
7138     if test "x$x" = "x$base"; then
7139       continue;
7140     fi
7141
7142     dir=`${DIRNAME} $x 2>/dev/null`
7143                 exclude=`echo ${dir} | ${GREP} /home`
7144     if test "x$exclude" != "x"; then
7145       continue
7146     fi
7147
7148                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7149     if test "x$already" = "x"; then
7150       DIRS="$DIRS $dir"
7151     fi
7152   done
7153 fi
7154
7155 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7156
7157
7158
7159 if test "x$LOCATE" != "x"; then
7160         DIRS=
7161   file=libcap.a
7162
7163   for x in `${LOCATE} $file 2>/dev/null`; do
7164                                         base=`echo $x | sed "s%/${file}%%"`
7165     if test "x$x" = "x$base"; then
7166       continue;
7167     fi
7168
7169     dir=`${DIRNAME} $x 2>/dev/null`
7170                 exclude=`echo ${dir} | ${GREP} /home`
7171     if test "x$exclude" != "x"; then
7172       continue
7173     fi
7174
7175                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7176     if test "x$already" = "x"; then
7177       DIRS="$DIRS $dir"
7178     fi
7179   done
7180 fi
7181
7182 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7183
7184
7185   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7187 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7188     LIBS="-lcap $old_LIBS"
7189     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h.  */
7192 extern char cap_get_proc();
7193 int
7194 main ()
7195 {
7196 cap_get_proc()
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_link "$LINENO"; then :
7202
7203                   smart_lib="-lcap"
7204                   smart_ldflags="-L$try -Wl,-rpath,$try"
7205                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206 $as_echo "yes" >&6; }
7207                   break
7208
7209 else
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext \
7214     conftest$ac_exeext conftest.$ac_ext
7215   done
7216   LIBS="$old_LIBS"
7217   CPPFLAGS="$old_CPPFLAGS"
7218 fi
7219
7220 if test "x$smart_lib" != "x"; then
7221   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7222   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7223   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7224 fi
7225
7226 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7227   { $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
7228 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7229 else
7230
7231 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7232
7233   HAVE_LIBCAP=1
7234 fi
7235
7236
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7238 $as_echo_n "checking for a readline compatible library... " >&6; }
7239 if ${vl_cv_lib_readline+:} false; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242
7243     ORIG_LIBS="$LIBS"
7244     for readline_lib in readline edit editline; do
7245       for termcap_lib in "" termcap curses ncurses; do
7246         if test -z "$termcap_lib"; then
7247           TRY_LIB="-l$readline_lib"
7248         else
7249           TRY_LIB="-l$readline_lib -l$termcap_lib"
7250         fi
7251         LIBS="$ORIG_LIBS $TRY_LIB"
7252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254
7255 /* Override any GCC internal prototype to avoid an error.
7256    Use char because int might match the return type of a GCC
7257    builtin and then its argument prototype would still apply.  */
7258 #ifdef __cplusplus
7259 extern "C"
7260 #endif
7261 char readline ();
7262 int
7263 main ()
7264 {
7265 return readline ();
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271   vl_cv_lib_readline="$TRY_LIB"
7272 fi
7273 rm -f core conftest.err conftest.$ac_objext \
7274     conftest$ac_exeext conftest.$ac_ext
7275         if test -n "$vl_cv_lib_readline"; then
7276           break
7277         fi
7278       done
7279       if test -n "$vl_cv_lib_readline"; then
7280         break
7281       fi
7282     done
7283     if test -z "$vl_cv_lib_readline"; then
7284       vl_cv_lib_readline="no"
7285       LIBS="$ORIG_LIBS"
7286     fi
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7290 $as_echo "$vl_cv_lib_readline" >&6; }
7291
7292   if test "$vl_cv_lib_readline" != "no"; then
7293     LIBREADLINE="$vl_cv_lib_readline"
7294
7295 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7296
7297     for ac_header in readline.h readline/readline.h
7298 do :
7299   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7302   cat >>confdefs.h <<_ACEOF
7303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7304 _ACEOF
7305
7306 fi
7307
7308 done
7309
7310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7311 $as_echo_n "checking whether readline supports history... " >&6; }
7312 if ${vl_cv_lib_readline_history+:} false; then :
7313   $as_echo_n "(cached) " >&6
7314 else
7315
7316       vl_cv_lib_readline_history="no"
7317       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319
7320 /* Override any GCC internal prototype to avoid an error.
7321    Use char because int might match the return type of a GCC
7322    builtin and then its argument prototype would still apply.  */
7323 #ifdef __cplusplus
7324 extern "C"
7325 #endif
7326 char add_history ();
7327 int
7328 main ()
7329 {
7330 return add_history ();
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_link "$LINENO"; then :
7336   vl_cv_lib_readline_history="yes"
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext \
7339     conftest$ac_exeext conftest.$ac_ext
7340
7341 fi
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7343 $as_echo "$vl_cv_lib_readline_history" >&6; }
7344     if test "$vl_cv_lib_readline_history" = "yes"; then
7345
7346 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7347
7348       for ac_header in history.h readline/history.h
7349 do :
7350   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7353   cat >>confdefs.h <<_ACEOF
7354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 _ACEOF
7356
7357 fi
7358
7359 done
7360
7361     fi
7362   fi
7363
7364
7365
7366
7367 smart_try_dir="$talloc_include_dir"
7368
7369
7370 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7371 old_CPPFLAGS="$CPPFLAGS"
7372 smart_include=
7373 smart_include_dir="/usr/local/include /opt/include"
7374
7375 _smart_try_dir=
7376 _smart_include_dir=
7377
7378 for _prefix in $smart_prefix ""; do
7379   for _dir in $smart_try_dir; do
7380     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7381   done
7382
7383   for _dir in $smart_include_dir; do
7384     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7385   done
7386 done
7387
7388 if test "x$_smart_try_dir" != "x"; then
7389   for try in $_smart_try_dir; do
7390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7391 $as_echo_n "checking for talloc.h in $try... " >&6; }
7392     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395
7396                     #include <talloc.h>
7397 int
7398 main ()
7399 {
7400 int a = 1;
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406
7407                      smart_include="-isystem $try"
7408                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410                      break
7411
7412 else
7413
7414                      smart_include=
7415                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420   done
7421   CPPFLAGS="$old_CPPFLAGS"
7422 fi
7423
7424 if test "x$smart_include" = "x"; then
7425   for _prefix in $smart_prefix; do
7426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7427 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7428
7429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h.  */
7431
7432                     #include <talloc.h>
7433 int
7434 main ()
7435 {
7436 int a = 1;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442
7443                      smart_include="-isystem ${_prefix}/"
7444                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7446                      break
7447
7448 else
7449
7450                      smart_include=
7451                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456   done
7457 fi
7458
7459 if test "x$smart_include" = "x"; then
7460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7461 $as_echo_n "checking for talloc.h... " >&6; }
7462
7463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h.  */
7465
7466                     #include <talloc.h>
7467 int
7468 main ()
7469 {
7470 int a = 1;
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476
7477                      smart_include=" "
7478                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7479 $as_echo "yes" >&6; }
7480                      break
7481
7482 else
7483
7484                      smart_include=
7485                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491
7492 if test "x$smart_include" = "x"; then
7493
7494   for prefix in $smart_prefix; do
7495
7496
7497 if test "x$LOCATE" != "x"; then
7498         DIRS=
7499   file="${_prefix}/${1}"
7500
7501   for x in `${LOCATE} $file 2>/dev/null`; do
7502                                         base=`echo $x | sed "s%/${file}%%"`
7503     if test "x$x" = "x$base"; then
7504       continue;
7505     fi
7506
7507     dir=`${DIRNAME} $x 2>/dev/null`
7508                 exclude=`echo ${dir} | ${GREP} /home`
7509     if test "x$exclude" != "x"; then
7510       continue
7511     fi
7512
7513                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7514     if test "x$already" = "x"; then
7515       DIRS="$DIRS $dir"
7516     fi
7517   done
7518 fi
7519
7520 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7521
7522   done
7523
7524
7525 if test "x$LOCATE" != "x"; then
7526         DIRS=
7527   file=talloc.h
7528
7529   for x in `${LOCATE} $file 2>/dev/null`; do
7530                                         base=`echo $x | sed "s%/${file}%%"`
7531     if test "x$x" = "x$base"; then
7532       continue;
7533     fi
7534
7535     dir=`${DIRNAME} $x 2>/dev/null`
7536                 exclude=`echo ${dir} | ${GREP} /home`
7537     if test "x$exclude" != "x"; then
7538       continue
7539     fi
7540
7541                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7542     if test "x$already" = "x"; then
7543       DIRS="$DIRS $dir"
7544     fi
7545   done
7546 fi
7547
7548 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7549
7550
7551   for try in $_smart_include_dir; do
7552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7553 $as_echo_n "checking for talloc.h in $try... " >&6; }
7554     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557
7558                     #include <talloc.h>
7559 int
7560 main ()
7561 {
7562 int a = 1;
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568
7569                      smart_include="-isystem $try"
7570                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7571 $as_echo "yes" >&6; }
7572                      break
7573
7574 else
7575
7576                      smart_include=
7577                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582   done
7583   CPPFLAGS="$old_CPPFLAGS"
7584 fi
7585
7586 if test "x$smart_include" != "x"; then
7587   eval "ac_cv_header_$ac_safe=yes"
7588   CPPFLAGS="$smart_include $old_CPPFLAGS"
7589   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7590 fi
7591
7592 smart_prefix=
7593
7594 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7596 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7597   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7598 fi
7599
7600 case "$host" in
7601   *-interix*)
7602     CFLAGS="$CFLAGS -D_ALL_SOURCE"
7603     ;;
7604   *-darwin*)
7605     CFLAGS="$CFLAGS -DDARWIN"
7606     LIBS="-framework DirectoryService $LIBS"
7607
7608 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7609
7610     ;;
7611 esac
7612
7613 ac_header_dirent=no
7614 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7615   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7617 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7618 if eval \${$as_ac_Header+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h.  */
7623 #include <sys/types.h>
7624 #include <$ac_hdr>
7625
7626 int
7627 main ()
7628 {
7629 if ((DIR *) 0)
7630 return 0;
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636   eval "$as_ac_Header=yes"
7637 else
7638   eval "$as_ac_Header=no"
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 fi
7642 eval ac_res=\$$as_ac_Header
7643                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7644 $as_echo "$ac_res" >&6; }
7645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7646   cat >>confdefs.h <<_ACEOF
7647 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7648 _ACEOF
7649
7650 ac_header_dirent=$ac_hdr; break
7651 fi
7652
7653 done
7654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7655 if test $ac_header_dirent = dirent.h; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7657 $as_echo_n "checking for library containing opendir... " >&6; }
7658 if ${ac_cv_search_opendir+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   ac_func_search_save_LIBS=$LIBS
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664
7665 /* Override any GCC internal prototype to avoid an error.
7666    Use char because int might match the return type of a GCC
7667    builtin and then its argument prototype would still apply.  */
7668 #ifdef __cplusplus
7669 extern "C"
7670 #endif
7671 char opendir ();
7672 int
7673 main ()
7674 {
7675 return opendir ();
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 for ac_lib in '' dir; do
7681   if test -z "$ac_lib"; then
7682     ac_res="none required"
7683   else
7684     ac_res=-l$ac_lib
7685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7686   fi
7687   if ac_fn_c_try_link "$LINENO"; then :
7688   ac_cv_search_opendir=$ac_res
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext \
7691     conftest$ac_exeext
7692   if ${ac_cv_search_opendir+:} false; then :
7693   break
7694 fi
7695 done
7696 if ${ac_cv_search_opendir+:} false; then :
7697
7698 else
7699   ac_cv_search_opendir=no
7700 fi
7701 rm conftest.$ac_ext
7702 LIBS=$ac_func_search_save_LIBS
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7705 $as_echo "$ac_cv_search_opendir" >&6; }
7706 ac_res=$ac_cv_search_opendir
7707 if test "$ac_res" != no; then :
7708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7709
7710 fi
7711
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7714 $as_echo_n "checking for library containing opendir... " >&6; }
7715 if ${ac_cv_search_opendir+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   ac_func_search_save_LIBS=$LIBS
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721
7722 /* Override any GCC internal prototype to avoid an error.
7723    Use char because int might match the return type of a GCC
7724    builtin and then its argument prototype would still apply.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 char opendir ();
7729 int
7730 main ()
7731 {
7732 return opendir ();
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 for ac_lib in '' x; do
7738   if test -z "$ac_lib"; then
7739     ac_res="none required"
7740   else
7741     ac_res=-l$ac_lib
7742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7743   fi
7744   if ac_fn_c_try_link "$LINENO"; then :
7745   ac_cv_search_opendir=$ac_res
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748     conftest$ac_exeext
7749   if ${ac_cv_search_opendir+:} false; then :
7750   break
7751 fi
7752 done
7753 if ${ac_cv_search_opendir+:} false; then :
7754
7755 else
7756   ac_cv_search_opendir=no
7757 fi
7758 rm conftest.$ac_ext
7759 LIBS=$ac_func_search_save_LIBS
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7762 $as_echo "$ac_cv_search_opendir" >&6; }
7763 ac_res=$ac_cv_search_opendir
7764 if test "$ac_res" != no; then :
7765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7766
7767 fi
7768
7769 fi
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7772 $as_echo_n "checking for ANSI C header files... " >&6; }
7773 if ${ac_cv_header_stdc+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 #include <stdlib.h>
7779 #include <stdarg.h>
7780 #include <string.h>
7781 #include <float.h>
7782
7783 int
7784 main ()
7785 {
7786
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792   ac_cv_header_stdc=yes
7793 else
7794   ac_cv_header_stdc=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797
7798 if test $ac_cv_header_stdc = yes; then
7799   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802 #include <string.h>
7803
7804 _ACEOF
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806   $EGREP "memchr" >/dev/null 2>&1; then :
7807
7808 else
7809   ac_cv_header_stdc=no
7810 fi
7811 rm -f conftest*
7812
7813 fi
7814
7815 if test $ac_cv_header_stdc = yes; then
7816   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819 #include <stdlib.h>
7820
7821 _ACEOF
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823   $EGREP "free" >/dev/null 2>&1; then :
7824
7825 else
7826   ac_cv_header_stdc=no
7827 fi
7828 rm -f conftest*
7829
7830 fi
7831
7832 if test $ac_cv_header_stdc = yes; then
7833   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7834   if test "$cross_compiling" = yes; then :
7835   :
7836 else
7837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839 #include <ctype.h>
7840 #include <stdlib.h>
7841 #if ((' ' & 0x0FF) == 0x020)
7842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7844 #else
7845 # define ISLOWER(c) \
7846                    (('a' <= (c) && (c) <= 'i') \
7847                      || ('j' <= (c) && (c) <= 'r') \
7848                      || ('s' <= (c) && (c) <= 'z'))
7849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7850 #endif
7851
7852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7853 int
7854 main ()
7855 {
7856   int i;
7857   for (i = 0; i < 256; i++)
7858     if (XOR (islower (i), ISLOWER (i))
7859         || toupper (i) != TOUPPER (i))
7860       return 2;
7861   return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_run "$LINENO"; then :
7865
7866 else
7867   ac_cv_header_stdc=no
7868 fi
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7870   conftest.$ac_objext conftest.beam conftest.$ac_ext
7871 fi
7872
7873 fi
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7876 $as_echo "$ac_cv_header_stdc" >&6; }
7877 if test $ac_cv_header_stdc = yes; then
7878
7879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7880
7881 fi
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7884 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7885 if ${ac_cv_header_time+:} false; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #include <sys/types.h>
7891 #include <sys/time.h>
7892 #include <time.h>
7893
7894 int
7895 main ()
7896 {
7897 if ((struct tm *) 0)
7898 return 0;
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904   ac_cv_header_time=yes
7905 else
7906   ac_cv_header_time=no
7907 fi
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7911 $as_echo "$ac_cv_header_time" >&6; }
7912 if test $ac_cv_header_time = yes; then
7913
7914 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7915
7916 fi
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7919 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7920 if ${ac_cv_header_sys_wait_h+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925 #include <sys/types.h>
7926 #include <sys/wait.h>
7927 #ifndef WEXITSTATUS
7928 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7929 #endif
7930 #ifndef WIFEXITED
7931 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7932 #endif
7933
7934 int
7935 main ()
7936 {
7937   int s;
7938   wait (&s);
7939   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945   ac_cv_header_sys_wait_h=yes
7946 else
7947   ac_cv_header_sys_wait_h=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7952 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7953 if test $ac_cv_header_sys_wait_h = yes; then
7954
7955 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7956
7957 fi
7958
7959
7960 for ac_header in \
7961   dlfcn.h \
7962   unistd.h \
7963   crypt.h \
7964   errno.h \
7965   resource.h \
7966   sys/resource.h \
7967   getopt.h \
7968   malloc.h \
7969   utmp.h \
7970   utmpx.h \
7971   signal.h \
7972   sys/select.h \
7973   syslog.h \
7974   inttypes.h \
7975   stdint.h \
7976   stdbool.h \
7977   stdio.h \
7978   netdb.h \
7979   semaphore.h \
7980   arpa/inet.h \
7981   netinet/in.h \
7982   sys/types.h \
7983   sys/socket.h \
7984   winsock.h \
7985   utime.h \
7986   sys/time.h \
7987   sys/wait.h \
7988   sys/security.h \
7989   fcntl.h \
7990   sys/fcntl.h \
7991   sys/prctl.h \
7992   sys/ptrace.h \
7993   sys/un.h \
7994   glob.h \
7995   prot.h \
7996   pwd.h \
7997   grp.h \
7998   stddef.h \
7999   fnmatch.h \
8000   sia.h \
8001   siad.h \
8002   features.h \
8003   limits.h \
8004   sys/event.h
8005
8006 do :
8007   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8008 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8010   cat >>confdefs.h <<_ACEOF
8011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8012 _ACEOF
8013
8014 fi
8015
8016 done
8017
8018
8019 for ac_header in net/if.h
8020 do :
8021   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8022     #ifdef HAVE_SYS_SOCKET_H
8023     #  include <sys/socket.h>
8024     #endif
8025
8026
8027 "
8028 if test "x$ac_cv_header_net_if_h" = xyes; then :
8029   cat >>confdefs.h <<_ACEOF
8030 #define HAVE_NET_IF_H 1
8031 _ACEOF
8032
8033 fi
8034
8035 done
8036
8037
8038 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8039 then
8040
8041 $as_echo "#define OSFC2 /**/" >>confdefs.h
8042
8043 fi
8044
8045 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8046 then
8047
8048 $as_echo "#define OSFSIA /**/" >>confdefs.h
8049
8050 fi
8051
8052 if test "x$WITH_OPENSSL" = xyes; then
8053   OLD_LIBS="$LIBS"
8054
8055         CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
8056
8057         smart_try_dir="$openssl_lib_dir"
8058
8059
8060 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
8061 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
8062
8063 old_LIBS="$LIBS"
8064 old_CPPFLAGS="$CPPFLAGS"
8065 smart_lib=
8066 smart_ldflags=
8067 smart_lib_dir=
8068
8069 if test "x$smart_try_dir" != "x"; then
8070   for try in $smart_try_dir; do
8071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8072 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8073     LIBS="-lcrypto $old_LIBS"
8074     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h.  */
8077 extern char DH_new();
8078 int
8079 main ()
8080 {
8081 DH_new()
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087
8088                  smart_lib="-lcrypto"
8089                  smart_ldflags="-L$try -Wl,-rpath,$try"
8090                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091 $as_echo "yes" >&6; }
8092                  break
8093
8094 else
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext \
8099     conftest$ac_exeext conftest.$ac_ext
8100   done
8101   LIBS="$old_LIBS"
8102   CPPFLAGS="$old_CPPFLAGS"
8103 fi
8104
8105 if test "x$smart_lib" = "x"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
8107 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
8108   LIBS="-lcrypto $old_LIBS"
8109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h.  */
8111 extern char DH_new();
8112 int
8113 main ()
8114 {
8115 DH_new()
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121
8122                 smart_lib="-lcrypto"
8123                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8124 $as_echo "yes" >&6; }
8125
8126 else
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext \
8131     conftest$ac_exeext conftest.$ac_ext
8132   LIBS="$old_LIBS"
8133 fi
8134
8135 if test "x$smart_lib" = "x"; then
8136
8137
8138 if test "x$LOCATE" != "x"; then
8139         DIRS=
8140   file=libcrypto${libltdl_cv_shlibext}
8141
8142   for x in `${LOCATE} $file 2>/dev/null`; do
8143                                         base=`echo $x | sed "s%/${file}%%"`
8144     if test "x$x" = "x$base"; then
8145       continue;
8146     fi
8147
8148     dir=`${DIRNAME} $x 2>/dev/null`
8149                 exclude=`echo ${dir} | ${GREP} /home`
8150     if test "x$exclude" != "x"; then
8151       continue
8152     fi
8153
8154                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8155     if test "x$already" = "x"; then
8156       DIRS="$DIRS $dir"
8157     fi
8158   done
8159 fi
8160
8161 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8162
8163
8164
8165 if test "x$LOCATE" != "x"; then
8166         DIRS=
8167   file=libcrypto.a
8168
8169   for x in `${LOCATE} $file 2>/dev/null`; do
8170                                         base=`echo $x | sed "s%/${file}%%"`
8171     if test "x$x" = "x$base"; then
8172       continue;
8173     fi
8174
8175     dir=`${DIRNAME} $x 2>/dev/null`
8176                 exclude=`echo ${dir} | ${GREP} /home`
8177     if test "x$exclude" != "x"; then
8178       continue
8179     fi
8180
8181                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8182     if test "x$already" = "x"; then
8183       DIRS="$DIRS $dir"
8184     fi
8185   done
8186 fi
8187
8188 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8189
8190
8191   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8193 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8194     LIBS="-lcrypto $old_LIBS"
8195     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198 extern char DH_new();
8199 int
8200 main ()
8201 {
8202 DH_new()
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_link "$LINENO"; then :
8208
8209                   smart_lib="-lcrypto"
8210                   smart_ldflags="-L$try -Wl,-rpath,$try"
8211                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8212 $as_echo "yes" >&6; }
8213                   break
8214
8215 else
8216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext \
8220     conftest$ac_exeext conftest.$ac_ext
8221   done
8222   LIBS="$old_LIBS"
8223   CPPFLAGS="$old_CPPFLAGS"
8224 fi
8225
8226 if test "x$smart_lib" != "x"; then
8227   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8228   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8229   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8230 fi
8231
8232   if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8233
8234 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8235
8236     OPENSSL_LIBS="$smart_lib"
8237     OPENSSL_LDFLAGS="$smart_ldflags"
8238
8239
8240
8241 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8242 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8243
8244 old_LIBS="$LIBS"
8245 old_CPPFLAGS="$CPPFLAGS"
8246 smart_lib=
8247 smart_ldflags=
8248 smart_lib_dir=
8249
8250 if test "x$smart_try_dir" != "x"; then
8251   for try in $smart_try_dir; do
8252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8253 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8254     LIBS="-lssl $old_LIBS"
8255     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258 extern char SSL_new();
8259 int
8260 main ()
8261 {
8262 SSL_new()
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"; then :
8268
8269                  smart_lib="-lssl"
8270                  smart_ldflags="-L$try -Wl,-rpath,$try"
8271                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8273                  break
8274
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext \
8280     conftest$ac_exeext conftest.$ac_ext
8281   done
8282   LIBS="$old_LIBS"
8283   CPPFLAGS="$old_CPPFLAGS"
8284 fi
8285
8286 if test "x$smart_lib" = "x"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8288 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8289   LIBS="-lssl $old_LIBS"
8290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h.  */
8292 extern char SSL_new();
8293 int
8294 main ()
8295 {
8296 SSL_new()
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302
8303                 smart_lib="-lssl"
8304                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8305 $as_echo "yes" >&6; }
8306
8307 else
8308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext \
8312     conftest$ac_exeext conftest.$ac_ext
8313   LIBS="$old_LIBS"
8314 fi
8315
8316 if test "x$smart_lib" = "x"; then
8317
8318
8319 if test "x$LOCATE" != "x"; then
8320         DIRS=
8321   file=libssl${libltdl_cv_shlibext}
8322
8323   for x in `${LOCATE} $file 2>/dev/null`; do
8324                                         base=`echo $x | sed "s%/${file}%%"`
8325     if test "x$x" = "x$base"; then
8326       continue;
8327     fi
8328
8329     dir=`${DIRNAME} $x 2>/dev/null`
8330                 exclude=`echo ${dir} | ${GREP} /home`
8331     if test "x$exclude" != "x"; then
8332       continue
8333     fi
8334
8335                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8336     if test "x$already" = "x"; then
8337       DIRS="$DIRS $dir"
8338     fi
8339   done
8340 fi
8341
8342 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8343
8344
8345
8346 if test "x$LOCATE" != "x"; then
8347         DIRS=
8348   file=libssl.a
8349
8350   for x in `${LOCATE} $file 2>/dev/null`; do
8351                                         base=`echo $x | sed "s%/${file}%%"`
8352     if test "x$x" = "x$base"; then
8353       continue;
8354     fi
8355
8356     dir=`${DIRNAME} $x 2>/dev/null`
8357                 exclude=`echo ${dir} | ${GREP} /home`
8358     if test "x$exclude" != "x"; then
8359       continue
8360     fi
8361
8362                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8363     if test "x$already" = "x"; then
8364       DIRS="$DIRS $dir"
8365     fi
8366   done
8367 fi
8368
8369 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8370
8371
8372   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8374 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8375     LIBS="-lssl $old_LIBS"
8376     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 extern char SSL_new();
8380 int
8381 main ()
8382 {
8383 SSL_new()
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 if ac_fn_c_try_link "$LINENO"; then :
8389
8390                   smart_lib="-lssl"
8391                   smart_ldflags="-L$try -Wl,-rpath,$try"
8392                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393 $as_echo "yes" >&6; }
8394                   break
8395
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext \
8401     conftest$ac_exeext conftest.$ac_ext
8402   done
8403   LIBS="$old_LIBS"
8404   CPPFLAGS="$old_CPPFLAGS"
8405 fi
8406
8407 if test "x$smart_lib" != "x"; then
8408   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8409   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8410   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8411 fi
8412
8413     if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8414       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8416 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8417 See \`config.log' for more details" "$LINENO" 5; }
8418     else
8419
8420 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8421
8422       OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8423
8424       if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8425         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8427 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8428 See \`config.log' for more details" "$LINENO" 5; }
8429       fi
8430     fi
8431   else
8432     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8434 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8435 See \`config.log' for more details" "$LINENO" 5; }
8436   fi
8437
8438   smart_try_dir="$openssl_include_dir"
8439
8440
8441 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8442 old_CPPFLAGS="$CPPFLAGS"
8443 smart_include=
8444 smart_include_dir="/usr/local/include /opt/include"
8445
8446 _smart_try_dir=
8447 _smart_include_dir=
8448
8449 for _prefix in $smart_prefix ""; do
8450   for _dir in $smart_try_dir; do
8451     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8452   done
8453
8454   for _dir in $smart_include_dir; do
8455     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8456   done
8457 done
8458
8459 if test "x$_smart_try_dir" != "x"; then
8460   for try in $_smart_try_dir; do
8461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8462 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8463     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h.  */
8466
8467                     #include <openssl/ssl.h>
8468 int
8469 main ()
8470 {
8471 int a = 1;
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477
8478                      smart_include="-isystem $try"
8479                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8481                      break
8482
8483 else
8484
8485                      smart_include=
8486                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488
8489 fi
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491   done
8492   CPPFLAGS="$old_CPPFLAGS"
8493 fi
8494
8495 if test "x$smart_include" = "x"; then
8496   for _prefix in $smart_prefix; do
8497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8498 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8499
8500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502
8503                     #include <openssl/ssl.h>
8504 int
8505 main ()
8506 {
8507 int a = 1;
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513
8514                      smart_include="-isystem ${_prefix}/"
8515                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8516 $as_echo "yes" >&6; }
8517                      break
8518
8519 else
8520
8521                      smart_include=
8522                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527   done
8528 fi
8529
8530 if test "x$smart_include" = "x"; then
8531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8532 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8533
8534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h.  */
8536
8537                     #include <openssl/ssl.h>
8538 int
8539 main ()
8540 {
8541 int a = 1;
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_compile "$LINENO"; then :
8547
8548                      smart_include=" "
8549                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8550 $as_echo "yes" >&6; }
8551                      break
8552
8553 else
8554
8555                      smart_include=
8556                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8558
8559 fi
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 fi
8562
8563 if test "x$smart_include" = "x"; then
8564
8565   for prefix in $smart_prefix; do
8566
8567
8568 if test "x$LOCATE" != "x"; then
8569         DIRS=
8570   file="${_prefix}/${1}"
8571
8572   for x in `${LOCATE} $file 2>/dev/null`; do
8573                                         base=`echo $x | sed "s%/${file}%%"`
8574     if test "x$x" = "x$base"; then
8575       continue;
8576     fi
8577
8578     dir=`${DIRNAME} $x 2>/dev/null`
8579                 exclude=`echo ${dir} | ${GREP} /home`
8580     if test "x$exclude" != "x"; then
8581       continue
8582     fi
8583
8584                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8585     if test "x$already" = "x"; then
8586       DIRS="$DIRS $dir"
8587     fi
8588   done
8589 fi
8590
8591 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8592
8593   done
8594
8595
8596 if test "x$LOCATE" != "x"; then
8597         DIRS=
8598   file=openssl/ssl.h
8599
8600   for x in `${LOCATE} $file 2>/dev/null`; do
8601                                         base=`echo $x | sed "s%/${file}%%"`
8602     if test "x$x" = "x$base"; then
8603       continue;
8604     fi
8605
8606     dir=`${DIRNAME} $x 2>/dev/null`
8607                 exclude=`echo ${dir} | ${GREP} /home`
8608     if test "x$exclude" != "x"; then
8609       continue
8610     fi
8611
8612                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8613     if test "x$already" = "x"; then
8614       DIRS="$DIRS $dir"
8615     fi
8616   done
8617 fi
8618
8619 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8620
8621
8622   for try in $_smart_include_dir; do
8623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8624 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8625     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h.  */
8628
8629                     #include <openssl/ssl.h>
8630 int
8631 main ()
8632 {
8633 int a = 1;
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639
8640                      smart_include="-isystem $try"
8641                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8642 $as_echo "yes" >&6; }
8643                      break
8644
8645 else
8646
8647                      smart_include=
8648                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653   done
8654   CPPFLAGS="$old_CPPFLAGS"
8655 fi
8656
8657 if test "x$smart_include" != "x"; then
8658   eval "ac_cv_header_$ac_safe=yes"
8659   CPPFLAGS="$smart_include $old_CPPFLAGS"
8660   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8661 fi
8662
8663 smart_prefix=
8664
8665   if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8666
8667 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8668
8669
8670     for ac_header in \
8671       openssl/crypto.h \
8672       openssl/err.h \
8673       openssl/evp.h \
8674       openssl/md5.h \
8675       openssl/md4.h \
8676       openssl/sha.h \
8677       openssl/ssl.h \
8678       openssl/ocsp.h \
8679       openssl/engine.h
8680 do :
8681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8684   cat >>confdefs.h <<_ACEOF
8685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8686 _ACEOF
8687   OPENSSL_CPPFLAGS="$smart_include"
8688 else
8689
8690         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8693 See \`config.log' for more details" "$LINENO" 5; }
8694
8695
8696 fi
8697
8698 done
8699
8700
8701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8702 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h.  */
8705 #include <openssl/crypto.h>
8706        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8707        yes
8708        #endif
8709
8710 _ACEOF
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712   $EGREP "yes" >/dev/null 2>&1; then :
8713
8714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716
8717 else
8718
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8723 as_fn_error $? "OpenSSL version too old
8724 See \`config.log' for more details" "$LINENO" 5; }
8725
8726
8727 fi
8728 rm -f conftest*
8729
8730
8731                         old_CPPFLAGS="$CPPFLAGS"
8732     CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8733
8734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8735 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8736     if test "$cross_compiling" = yes; then :
8737
8738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling (assuming yes)" >&5
8739 $as_echo "cross-compiling (assuming yes)" >&6; }
8740
8741
8742 else
8743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h.  */
8745
8746           #include <stdio.h>
8747           #include <openssl/opensslv.h>
8748           #include <openssl/crypto.h>
8749
8750 int
8751 main ()
8752 {
8753
8754           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8755           if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8756             return 0;
8757           } else {
8758             return 1;
8759           }
8760
8761
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_run "$LINENO"; then :
8767
8768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769 $as_echo "yes" >&6; }
8770
8771 else
8772
8773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8777 as_fn_error $? "OpenSSL library version does not match header version
8778 See \`config.log' for more details" "$LINENO" 5; }
8779
8780 fi
8781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8782   conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 fi
8784
8785     CPPFLAGS="$old_CPPFLAGS"
8786   fi
8787
8788   LIBS="$OLD_LIBS"
8789
8790
8791
8792   export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8793   for ac_func in SSL_get_client_random
8794 do :
8795   ac_fn_c_check_func "$LINENO" "SSL_get_client_random" "ac_cv_func_SSL_get_client_random"
8796 if test "x$ac_cv_func_SSL_get_client_random" = xyes; then :
8797   cat >>confdefs.h <<_ACEOF
8798 #define HAVE_SSL_GET_CLIENT_RANDOM 1
8799 _ACEOF
8800  SSL_get_server_random
8801 fi
8802 done
8803
8804 fi
8805
8806 if test "x$PCAP_LIBS" = x; then
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8808 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8809 else
8810         smart_try_dir="$pcap_include_dir"
8811
8812
8813 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8814 old_CPPFLAGS="$CPPFLAGS"
8815 smart_include=
8816 smart_include_dir="/usr/local/include /opt/include"
8817
8818 _smart_try_dir=
8819 _smart_include_dir=
8820
8821 for _prefix in $smart_prefix ""; do
8822   for _dir in $smart_try_dir; do
8823     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8824   done
8825
8826   for _dir in $smart_include_dir; do
8827     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8828   done
8829 done
8830
8831 if test "x$_smart_try_dir" != "x"; then
8832   for try in $_smart_try_dir; do
8833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8834 $as_echo_n "checking for pcap.h in $try... " >&6; }
8835     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839                     #include <pcap.h>
8840 int
8841 main ()
8842 {
8843 int a = 1;
8844   ;
8845   return 0;
8846 }
8847 _ACEOF
8848 if ac_fn_c_try_compile "$LINENO"; then :
8849
8850                      smart_include="-isystem $try"
8851                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8852 $as_echo "yes" >&6; }
8853                      break
8854
8855 else
8856
8857                      smart_include=
8858                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863   done
8864   CPPFLAGS="$old_CPPFLAGS"
8865 fi
8866
8867 if test "x$smart_include" = "x"; then
8868   for _prefix in $smart_prefix; do
8869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8870 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8871
8872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874
8875                     #include <pcap.h>
8876 int
8877 main ()
8878 {
8879 int a = 1;
8880   ;
8881   return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_compile "$LINENO"; then :
8885
8886                      smart_include="-isystem ${_prefix}/"
8887                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8888 $as_echo "yes" >&6; }
8889                      break
8890
8891 else
8892
8893                      smart_include=
8894                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899   done
8900 fi
8901
8902 if test "x$smart_include" = "x"; then
8903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8904 $as_echo_n "checking for pcap.h... " >&6; }
8905
8906     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h.  */
8908
8909                     #include <pcap.h>
8910 int
8911 main ()
8912 {
8913 int a = 1;
8914   ;
8915   return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_compile "$LINENO"; then :
8919
8920                      smart_include=" "
8921                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8922 $as_echo "yes" >&6; }
8923                      break
8924
8925 else
8926
8927                      smart_include=
8928                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934
8935 if test "x$smart_include" = "x"; then
8936
8937   for prefix in $smart_prefix; do
8938
8939
8940 if test "x$LOCATE" != "x"; then
8941         DIRS=
8942   file="${_prefix}/${1}"
8943
8944   for x in `${LOCATE} $file 2>/dev/null`; do
8945                                         base=`echo $x | sed "s%/${file}%%"`
8946     if test "x$x" = "x$base"; then
8947       continue;
8948     fi
8949
8950     dir=`${DIRNAME} $x 2>/dev/null`
8951                 exclude=`echo ${dir} | ${GREP} /home`
8952     if test "x$exclude" != "x"; then
8953       continue
8954     fi
8955
8956                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8957     if test "x$already" = "x"; then
8958       DIRS="$DIRS $dir"
8959     fi
8960   done
8961 fi
8962
8963 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8964
8965   done
8966
8967
8968 if test "x$LOCATE" != "x"; then
8969         DIRS=
8970   file=pcap.h
8971
8972   for x in `${LOCATE} $file 2>/dev/null`; do
8973                                         base=`echo $x | sed "s%/${file}%%"`
8974     if test "x$x" = "x$base"; then
8975       continue;
8976     fi
8977
8978     dir=`${DIRNAME} $x 2>/dev/null`
8979                 exclude=`echo ${dir} | ${GREP} /home`
8980     if test "x$exclude" != "x"; then
8981       continue
8982     fi
8983
8984                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8985     if test "x$already" = "x"; then
8986       DIRS="$DIRS $dir"
8987     fi
8988   done
8989 fi
8990
8991 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8992
8993
8994   for try in $_smart_include_dir; do
8995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8996 $as_echo_n "checking for pcap.h in $try... " >&6; }
8997     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h.  */
9000
9001                     #include <pcap.h>
9002 int
9003 main ()
9004 {
9005 int a = 1;
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011
9012                      smart_include="-isystem $try"
9013                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 $as_echo "yes" >&6; }
9015                      break
9016
9017 else
9018
9019                      smart_include=
9020                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025   done
9026   CPPFLAGS="$old_CPPFLAGS"
9027 fi
9028
9029 if test "x$smart_include" != "x"; then
9030   eval "ac_cv_header_$ac_safe=yes"
9031   CPPFLAGS="$smart_include $old_CPPFLAGS"
9032   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9033 fi
9034
9035 smart_prefix=
9036
9037   if test "x$ac_cv_header_pcap_h" == "xyes"; then
9038
9039 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
9040
9041
9042
9043   else
9044     { $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
9045 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
9046   fi
9047 fi
9048
9049 if test "x$COLLECTDC_LIBS" = x; then
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
9051 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
9052 else
9053         smart_try_dir="$collectdclient_include_dir"
9054
9055
9056 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
9057 old_CPPFLAGS="$CPPFLAGS"
9058 smart_include=
9059 smart_include_dir="/usr/local/include /opt/include"
9060
9061 _smart_try_dir=
9062 _smart_include_dir=
9063
9064 for _prefix in $smart_prefix ""; do
9065   for _dir in $smart_try_dir; do
9066     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9067   done
9068
9069   for _dir in $smart_include_dir; do
9070     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9071   done
9072 done
9073
9074 if test "x$_smart_try_dir" != "x"; then
9075   for try in $_smart_try_dir; do
9076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9077 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9078     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081
9082                     #include <collectd/client.h>
9083 int
9084 main ()
9085 {
9086 int a = 1;
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092
9093                      smart_include="-isystem $try"
9094                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9095 $as_echo "yes" >&6; }
9096                      break
9097
9098 else
9099
9100                      smart_include=
9101                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9103
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106   done
9107   CPPFLAGS="$old_CPPFLAGS"
9108 fi
9109
9110 if test "x$smart_include" = "x"; then
9111   for _prefix in $smart_prefix; do
9112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
9113 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
9114
9115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h.  */
9117
9118                     #include <collectd/client.h>
9119 int
9120 main ()
9121 {
9122 int a = 1;
9123   ;
9124   return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128
9129                      smart_include="-isystem ${_prefix}/"
9130                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9131 $as_echo "yes" >&6; }
9132                      break
9133
9134 else
9135
9136                      smart_include=
9137                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9139
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142   done
9143 fi
9144
9145 if test "x$smart_include" = "x"; then
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9147 $as_echo_n "checking for collectd/client.h... " >&6; }
9148
9149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h.  */
9151
9152                     #include <collectd/client.h>
9153 int
9154 main ()
9155 {
9156 int a = 1;
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"; then :
9162
9163                      smart_include=" "
9164                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9165 $as_echo "yes" >&6; }
9166                      break
9167
9168 else
9169
9170                      smart_include=
9171                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 fi
9177
9178 if test "x$smart_include" = "x"; then
9179
9180   for prefix in $smart_prefix; do
9181
9182
9183 if test "x$LOCATE" != "x"; then
9184         DIRS=
9185   file="${_prefix}/${1}"
9186
9187   for x in `${LOCATE} $file 2>/dev/null`; do
9188                                         base=`echo $x | sed "s%/${file}%%"`
9189     if test "x$x" = "x$base"; then
9190       continue;
9191     fi
9192
9193     dir=`${DIRNAME} $x 2>/dev/null`
9194                 exclude=`echo ${dir} | ${GREP} /home`
9195     if test "x$exclude" != "x"; then
9196       continue
9197     fi
9198
9199                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9200     if test "x$already" = "x"; then
9201       DIRS="$DIRS $dir"
9202     fi
9203   done
9204 fi
9205
9206 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9207
9208   done
9209
9210
9211 if test "x$LOCATE" != "x"; then
9212         DIRS=
9213   file=collectd/client.h
9214
9215   for x in `${LOCATE} $file 2>/dev/null`; do
9216                                         base=`echo $x | sed "s%/${file}%%"`
9217     if test "x$x" = "x$base"; then
9218       continue;
9219     fi
9220
9221     dir=`${DIRNAME} $x 2>/dev/null`
9222                 exclude=`echo ${dir} | ${GREP} /home`
9223     if test "x$exclude" != "x"; then
9224       continue
9225     fi
9226
9227                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9228     if test "x$already" = "x"; then
9229       DIRS="$DIRS $dir"
9230     fi
9231   done
9232 fi
9233
9234 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9235
9236
9237   for try in $_smart_include_dir; do
9238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9239 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9240     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h.  */
9243
9244                     #include <collectd/client.h>
9245 int
9246 main ()
9247 {
9248 int a = 1;
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254
9255                      smart_include="-isystem $try"
9256                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9257 $as_echo "yes" >&6; }
9258                      break
9259
9260 else
9261
9262                      smart_include=
9263                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9265
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268   done
9269   CPPFLAGS="$old_CPPFLAGS"
9270 fi
9271
9272 if test "x$smart_include" != "x"; then
9273   eval "ac_cv_header_$ac_safe=yes"
9274   CPPFLAGS="$smart_include $old_CPPFLAGS"
9275   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9276 fi
9277
9278 smart_prefix=
9279
9280   if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9281
9282 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9283
9284
9285
9286   else
9287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9288 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9289   fi
9290 fi
9291
9292 if test "x$HAVE_LIBCAP" = x; then
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9294 $as_echo "$as_me: skipping test for cap.h." >&6;}
9295 else
9296         smart_try_dir="$cap_include_dir"
9297
9298
9299 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9300 old_CPPFLAGS="$CPPFLAGS"
9301 smart_include=
9302 smart_include_dir="/usr/local/include /opt/include"
9303
9304 _smart_try_dir=
9305 _smart_include_dir=
9306
9307 for _prefix in $smart_prefix ""; do
9308   for _dir in $smart_try_dir; do
9309     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9310   done
9311
9312   for _dir in $smart_include_dir; do
9313     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9314   done
9315 done
9316
9317 if test "x$_smart_try_dir" != "x"; then
9318   for try in $_smart_try_dir; do
9319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9320 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9321     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h.  */
9324
9325                     #include <sys/capability.h>
9326 int
9327 main ()
9328 {
9329 int a = 1;
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335
9336                      smart_include="-isystem $try"
9337                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9338 $as_echo "yes" >&6; }
9339                      break
9340
9341 else
9342
9343                      smart_include=
9344                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9346
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349   done
9350   CPPFLAGS="$old_CPPFLAGS"
9351 fi
9352
9353 if test "x$smart_include" = "x"; then
9354   for _prefix in $smart_prefix; do
9355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9356 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9357
9358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h.  */
9360
9361                     #include <sys/capability.h>
9362 int
9363 main ()
9364 {
9365 int a = 1;
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"; then :
9371
9372                      smart_include="-isystem ${_prefix}/"
9373                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9374 $as_echo "yes" >&6; }
9375                      break
9376
9377 else
9378
9379                      smart_include=
9380                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385   done
9386 fi
9387
9388 if test "x$smart_include" = "x"; then
9389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9390 $as_echo_n "checking for sys/capability.h... " >&6; }
9391
9392     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h.  */
9394
9395                     #include <sys/capability.h>
9396 int
9397 main ()
9398 {
9399 int a = 1;
9400   ;
9401   return 0;
9402 }
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"; then :
9405
9406                      smart_include=" "
9407                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9408 $as_echo "yes" >&6; }
9409                      break
9410
9411 else
9412
9413                      smart_include=
9414                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 fi
9420
9421 if test "x$smart_include" = "x"; then
9422
9423   for prefix in $smart_prefix; do
9424
9425
9426 if test "x$LOCATE" != "x"; then
9427         DIRS=
9428   file="${_prefix}/${1}"
9429
9430   for x in `${LOCATE} $file 2>/dev/null`; do
9431                                         base=`echo $x | sed "s%/${file}%%"`
9432     if test "x$x" = "x$base"; then
9433       continue;
9434     fi
9435
9436     dir=`${DIRNAME} $x 2>/dev/null`
9437                 exclude=`echo ${dir} | ${GREP} /home`
9438     if test "x$exclude" != "x"; then
9439       continue
9440     fi
9441
9442                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9443     if test "x$already" = "x"; then
9444       DIRS="$DIRS $dir"
9445     fi
9446   done
9447 fi
9448
9449 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9450
9451   done
9452
9453
9454 if test "x$LOCATE" != "x"; then
9455         DIRS=
9456   file=sys/capability.h
9457
9458   for x in `${LOCATE} $file 2>/dev/null`; do
9459                                         base=`echo $x | sed "s%/${file}%%"`
9460     if test "x$x" = "x$base"; then
9461       continue;
9462     fi
9463
9464     dir=`${DIRNAME} $x 2>/dev/null`
9465                 exclude=`echo ${dir} | ${GREP} /home`
9466     if test "x$exclude" != "x"; then
9467       continue
9468     fi
9469
9470                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9471     if test "x$already" = "x"; then
9472       DIRS="$DIRS $dir"
9473     fi
9474   done
9475 fi
9476
9477 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9478
9479
9480   for try in $_smart_include_dir; do
9481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9482 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9483     CPPFLAGS="-isystem $try $old_CPPFLAGS"
9484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h.  */
9486
9487                     #include <sys/capability.h>
9488 int
9489 main ()
9490 {
9491 int a = 1;
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 if ac_fn_c_try_compile "$LINENO"; then :
9497
9498                      smart_include="-isystem $try"
9499                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9500 $as_echo "yes" >&6; }
9501                      break
9502
9503 else
9504
9505                      smart_include=
9506                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511   done
9512   CPPFLAGS="$old_CPPFLAGS"
9513 fi
9514
9515 if test "x$smart_include" != "x"; then
9516   eval "ac_cv_header_$ac_safe=yes"
9517   CPPFLAGS="$smart_include $old_CPPFLAGS"
9518   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9519 fi
9520
9521 smart_prefix=
9522
9523   if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9524
9525 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9526
9527   else
9528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9529 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9530   fi
9531 fi
9532
9533
9534 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9535 if test "x$ac_cv_type_off_t" = xyes; then :
9536
9537 else
9538
9539 cat >>confdefs.h <<_ACEOF
9540 #define off_t long int
9541 _ACEOF
9542
9543 fi
9544
9545 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9546 if test "x$ac_cv_type_pid_t" = xyes; then :
9547
9548 else
9549
9550 cat >>confdefs.h <<_ACEOF
9551 #define pid_t int
9552 _ACEOF
9553
9554 fi
9555
9556 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9557 if test "x$ac_cv_type_size_t" = xyes; then :
9558
9559 else
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define size_t unsigned int
9563 _ACEOF
9564
9565 fi
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9568 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9569 if ${ac_cv_type_uid_t+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h.  */
9574 #include <sys/types.h>
9575
9576 _ACEOF
9577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9578   $EGREP "uid_t" >/dev/null 2>&1; then :
9579   ac_cv_type_uid_t=yes
9580 else
9581   ac_cv_type_uid_t=no
9582 fi
9583 rm -f conftest*
9584
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9587 $as_echo "$ac_cv_type_uid_t" >&6; }
9588 if test $ac_cv_type_uid_t = no; then
9589
9590 $as_echo "#define uid_t int" >>confdefs.h
9591
9592
9593 $as_echo "#define gid_t int" >>confdefs.h
9594
9595 fi
9596
9597
9598
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9600 $as_echo_n "checking for socklen_t... " >&6; }
9601 if ${ac_cv_type_socklen_t+:} false; then :
9602   $as_echo_n "(cached) " >&6
9603 else
9604    ac_cv_type_socklen_t=no
9605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h.  */
9607 #ifdef HAVE_SYS_TYPES_H
9608     #  include <sys/types.h>
9609     #endif
9610
9611     #ifdef HAVE_SYS_SOCKET_H
9612     #  include <sys/socket.h>
9613     #endif
9614
9615 int
9616 main ()
9617 {
9618 socklen_t foo
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_c_try_compile "$LINENO"; then :
9624   ac_cv_type_socklen_t=yes
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9631 $as_echo "$ac_cv_type_socklen_t" >&6; }
9632
9633   if test "$ac_cv_type_socklen_t" != "yes"; then
9634
9635 $as_echo "#define socklen_t int" >>confdefs.h
9636
9637   fi
9638
9639
9640
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9642 $as_echo_n "checking for uint8_t... " >&6; }
9643 if ${ac_cv_type_uint8_t+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646    ac_cv_type_uint8_t=no
9647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h.  */
9649 #ifdef HAVE_INTTYPES_H
9650     #  include <inttypes.h>
9651     #endif
9652
9653     #ifdef HAVE_STDINT_H
9654     #  include <stdint.h>
9655     #endif
9656
9657 int
9658 main ()
9659 {
9660 uint8_t foo
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 if ac_fn_c_try_compile "$LINENO"; then :
9666   ac_cv_type_uint8_t=yes
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669
9670
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9673 $as_echo "$ac_cv_type_uint8_t" >&6; }
9674
9675   if test "$ac_cv_type_uint8_t" != "yes"; then
9676
9677 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9678
9679   fi
9680
9681
9682
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9684 $as_echo_n "checking for uint16_t... " >&6; }
9685 if ${ac_cv_type_uint16_t+:} false; then :
9686   $as_echo_n "(cached) " >&6
9687 else
9688    ac_cv_type_uint16_t=no
9689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h.  */
9691 #ifdef HAVE_INTTYPES_H
9692     #  include <inttypes.h>
9693     #endif
9694
9695     #ifdef HAVE_STDINT_H
9696     #  include <stdint.h>
9697     #endif
9698
9699 int
9700 main ()
9701 {
9702 uint16_t foo
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708   ac_cv_type_uint16_t=yes
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711
9712
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9715 $as_echo "$ac_cv_type_uint16_t" >&6; }
9716
9717   if test "$ac_cv_type_uint16_t" != "yes"; then
9718
9719 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9720
9721   fi
9722
9723
9724
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9726 $as_echo_n "checking for uint32_t... " >&6; }
9727 if ${ac_cv_type_uint32_t+:} false; then :
9728   $as_echo_n "(cached) " >&6
9729 else
9730    ac_cv_type_uint32_t=no
9731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h.  */
9733 #ifdef HAVE_INTTYPES_H
9734     #  include <inttypes.h>
9735     #endif
9736
9737     #ifdef HAVE_STDINT_H
9738     #  include <stdint.h>
9739     #endif
9740
9741 int
9742 main ()
9743 {
9744 uint32_t foo
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750   ac_cv_type_uint32_t=yes
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753
9754
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9757 $as_echo "$ac_cv_type_uint32_t" >&6; }
9758
9759   if test "$ac_cv_type_uint32_t" != "yes"; then
9760
9761 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9762
9763   fi
9764
9765
9766
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9768 $as_echo_n "checking for uint64_t... " >&6; }
9769 if ${ac_cv_type_uint64_t+:} false; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772    ac_cv_type_uint64_t=no
9773       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775 #ifdef HAVE_INTTYPES_H
9776     #  include <inttypes.h>
9777     #endif
9778
9779     #ifdef HAVE_STDINT_H
9780     #  include <stdint.h>
9781     #endif
9782
9783 int
9784 main ()
9785 {
9786 uint64_t foo
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_compile "$LINENO"; then :
9792   ac_cv_type_uint64_t=yes
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795
9796
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9799 $as_echo "$ac_cv_type_uint64_t" >&6; }
9800
9801   if test "$ac_cv_type_uint64_t" != "yes"; then
9802
9803 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9804
9805   fi
9806
9807
9808 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9809 if test "x$ac_cv_type___uint128_t" = xyes; then :
9810
9811 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9812
9813 fi
9814
9815
9816 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9817     #ifdef HAVE_INTTYPES_H
9818     #  include <inttypes.h>
9819     #endif
9820
9821     #ifdef HAVE_STDINT_H
9822     #  include <stdint.h>
9823     #endif
9824
9825
9826 "
9827 if test "x$ac_cv_type_uint128_t" = xyes; then :
9828
9829 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9830
9831 fi
9832
9833
9834 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9835     #ifdef HAVE_NETINET_IN_H
9836     #  include <netinet/in.h>
9837     #endif
9838
9839
9840 "
9841 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9842
9843 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9844
9845 fi
9846
9847
9848 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9849     #ifdef HAVE_NETINET_IN_H
9850     #  include <netinet/in.h>
9851     #endif
9852
9853     #ifdef HAVE_SYS_SOCKET_H
9854     #  include <sys/socket.h>
9855     #endif
9856
9857 "
9858 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9859
9860 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9861
9862 fi
9863
9864
9865 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9866     #ifdef HAVE_NETINET_IN_H
9867     #  include <netinet/in.h>
9868     #endif
9869
9870 "
9871 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9872
9873 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9874
9875 fi
9876
9877
9878 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9879     #ifdef HAVE_SYS_TYPES_H
9880     #  include <sys/types.h>
9881     #endif
9882
9883     #ifdef HAVE_SYS_SOCKET_H
9884     #  include <sys/socket.h>
9885     #endif
9886
9887     #ifdef HAVE_NETDB_H
9888     #  include <netdb.h>
9889     #endif
9890
9891
9892 "
9893 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9894
9895 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9896
9897 fi
9898
9899
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9901 $as_echo_n "checking if sig_t is defined... " >&6; }
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h.  */
9904
9905       #ifdef HAVE_SIGNAL_H
9906       #  include <signal.h>
9907       #endif
9908
9909 int
9910 main ()
9911 {
9912
9913       sig_t func;
9914       return 0;
9915
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922
9923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925
9926 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9927
9928
9929 else
9930
9931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933
9934
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext \
9937     conftest$ac_exeext conftest.$ac_ext
9938
9939 for ac_func in \
9940   getopt_long \
9941   fcntl \
9942   strsignal \
9943   sigaction \
9944   sigprocmask \
9945   pthread_sigmask \
9946   snprintf \
9947   vsnprintf \
9948   setsid \
9949   strncasecmp \
9950   strcasecmp \
9951   localtime_r \
9952   ctime_r \
9953   gmtime_r \
9954   strsep \
9955   inet_aton \
9956   inet_pton \
9957   inet_ntop \
9958   mallopt \
9959   setlinebuf \
9960   setvbuf \
9961   getusershell \
9962   initgroups \
9963   getaddrinfo \
9964   getnameinfo \
9965   closefrom \
9966   gettimeofday \
9967   getpeereid \
9968   setuid \
9969   setresuid \
9970   getresuid \
9971   strlcat \
9972   strlcpy \
9973   kqueue \
9974   openat \
9975   mkdirat \
9976   unlinkat \
9977   bindat \
9978   dladdr
9979
9980 do :
9981   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9984   cat >>confdefs.h <<_ACEOF
9985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9986 _ACEOF
9987
9988 fi
9989 done
9990
9991
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9993 $as_echo_n "checking return type of signal handlers... " >&6; }
9994 if ${ac_cv_type_signal+:} false; then :
9995   $as_echo_n "(cached) " >&6
9996 else
9997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h.  */
9999 #include <sys/types.h>
10000 #include <signal.h>
10001
10002 int
10003 main ()
10004 {
10005 return *(signal (0, 0)) (0) == 1;
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 if ac_fn_c_try_compile "$LINENO"; then :
10011   ac_cv_type_signal=int
10012 else
10013   ac_cv_type_signal=void
10014 fi
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10018 $as_echo "$ac_cv_type_signal" >&6; }
10019
10020 cat >>confdefs.h <<_ACEOF
10021 #define RETSIGTYPE $ac_cv_type_signal
10022 _ACEOF
10023
10024
10025
10026 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
10027
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
10029 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
10030
10031
10032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h.  */
10034
10035 #include <utmpx.h>
10036 #ifdef HAVE_STDDEF_H
10037 #include <stddef.h>
10038 #endif
10039 #ifndef offsetof
10040 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10041 #endif
10042
10043 int
10044 main ()
10045 {
10046  int foo = offsetof(struct utmpx, ut_xtime)
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 if ac_fn_c_try_compile "$LINENO"; then :
10052   has_element=" "
10053 else
10054   has_element=
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10057
10058   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
10059   if test "x$has_element" != "x"; then
10060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10061 $as_echo "yes" >&6; }
10062     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
10063   else
10064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
10067  fi
10068
10069  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
10070
10071 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
10072
10073  fi
10074 fi
10075
10076
10077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
10078 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
10079
10080
10081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h.  */
10083
10084 #include <netinet/in.h>
10085 #ifdef HAVE_STDDEF_H
10086 #include <stddef.h>
10087 #endif
10088 #ifndef offsetof
10089 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10090 #endif
10091
10092 int
10093 main ()
10094 {
10095  int foo = offsetof(struct in_pktinfo, ipi_addr)
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_compile "$LINENO"; then :
10101   has_element=" "
10102 else
10103   has_element=
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106
10107   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
10108   if test "x$has_element" != "x"; then
10109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10111     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
10112   else
10113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10115     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
10116  fi
10117
10118 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
10119
10120 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
10121
10122 fi
10123
10124
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
10126 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
10127
10128
10129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h.  */
10131
10132 #include <netinet/in.h>
10133 #ifdef HAVE_STDDEF_H
10134 #include <stddef.h>
10135 #endif
10136 #ifndef offsetof
10137 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10138 #endif
10139
10140 int
10141 main ()
10142 {
10143  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149   has_element=" "
10150 else
10151   has_element=
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154
10155   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10156   if test "x$has_element" != "x"; then
10157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158 $as_echo "yes" >&6; }
10159     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10160   else
10161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10163     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10164  fi
10165
10166 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10167
10168 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10169
10170 fi
10171
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10173 $as_echo_n "checking if htonll is defined... " >&6; }
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h.  */
10176
10177       #include <sys/types.h>
10178       #include <netinet/in.h>
10179
10180 int
10181 main ()
10182 {
10183
10184       return htonll(0);
10185
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192
10193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10194 $as_echo "yes" >&6; }
10195
10196 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10197
10198
10199 else
10200
10201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203
10204
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext \
10207     conftest$ac_exeext conftest.$ac_ext
10208
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10210 $as_echo_n "checking if htonlll is defined... " >&6; }
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h.  */
10213
10214       #include <sys/types.h>
10215       #include <netinet/in.h>
10216
10217 int
10218 main ()
10219 {
10220
10221       return htonlll(0);
10222
10223
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"; then :
10229
10230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10231 $as_echo "yes" >&6; }
10232
10233 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10234
10235
10236 else
10237
10238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240
10241
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext \
10244     conftest$ac_exeext conftest.$ac_ext
10245
10246
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10248 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10249 if ${ac_cv_c_const+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h.  */
10254
10255 int
10256 main ()
10257 {
10258
10259 #ifndef __cplusplus
10260   /* Ultrix mips cc rejects this sort of thing.  */
10261   typedef int charset[2];
10262   const charset cs = { 0, 0 };
10263   /* SunOS 4.1.1 cc rejects this.  */
10264   char const *const *pcpcc;
10265   char **ppc;
10266   /* NEC SVR4.0.2 mips cc rejects this.  */
10267   struct point {int x, y;};
10268   static struct point const zero = {0,0};
10269   /* AIX XL C 1.02.0.0 rejects this.
10270      It does not let you subtract one const X* pointer from another in
10271      an arm of an if-expression whose if-part is not a constant
10272      expression */
10273   const char *g = "string";
10274   pcpcc = &g + (g ? g-g : 0);
10275   /* HPUX 7.0 cc rejects these. */
10276   ++pcpcc;
10277   ppc = (char**) pcpcc;
10278   pcpcc = (char const *const *) ppc;
10279   { /* SCO 3.2v4 cc rejects this sort of thing.  */
10280     char tx;
10281     char *t = &tx;
10282     char const *s = 0 ? (char *) 0 : (char const *) 0;
10283
10284     *t++ = 0;
10285     if (s) return 0;
10286   }
10287   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10288     int x[] = {25, 17};
10289     const int *foo = &x[0];
10290     ++foo;
10291   }
10292   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10293     typedef const int *iptr;
10294     iptr p = 0;
10295     ++p;
10296   }
10297   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10298        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10299     struct s { int j; const int *ap[3]; } bx;
10300     struct s *b = &bx; b->j = 5;
10301   }
10302   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10303     const int foo = 10;
10304     if (!foo) return 0;
10305   }
10306   return !cs[0] && !zero.x;
10307 #endif
10308
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"; then :
10314   ac_cv_c_const=yes
10315 else
10316   ac_cv_c_const=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10321 $as_echo "$ac_cv_c_const" >&6; }
10322 if test $ac_cv_c_const = no; then
10323
10324 $as_echo "#define const /**/" >>confdefs.h
10325
10326 fi
10327
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10330 $as_echo_n "checking type of OS... " >&6; }
10331 OS=`uname -s`
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10333 $as_echo "$OS" >&6; }
10334 if test "$OS" = "OS/2"; then
10335   LIBPREFIX=
10336 else
10337   LIBPREFIX=lib
10338 fi
10339
10340
10341 if test "x$developer" = "xyes"; then
10342   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10343 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10344
10345
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10347 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10348 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351
10352
10353     CFLAGS_SAVED=$CFLAGS
10354     CFLAGS="$CFLAGS -Werror -Wdocumentation"
10355
10356     ac_ext=c
10357 ac_cpp='$CPP $CPPFLAGS'
10358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10361
10362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h.  */
10364
10365 int
10366 main ()
10367 {
10368 return 0;
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_compile "$LINENO"; then :
10374   ax_cv_cc_wdocumentation_flag="yes"
10375 else
10376   ax_cv_cc_wdocumentation_flag="no"
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379     ac_ext=c
10380 ac_cpp='$CPP $CPPFLAGS'
10381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10384
10385
10386     CFLAGS="$CFLAGS_SAVED"
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10390 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10391
10392   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10393     devflags="-Wdocumentation"
10394   fi
10395
10396
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
10398 $as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; }
10399 if ${ax_cv_cc_weverything_flag+:} false; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402
10403
10404     CFLAGS_SAVED=$CFLAGS
10405     CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return"
10406
10407     ac_ext=c
10408 ac_cpp='$CPP $CPPFLAGS'
10409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10412
10413     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h.  */
10415
10416 int
10417 main ()
10418 {
10419 return 0;
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_compile "$LINENO"; then :
10425   ax_cv_cc_weverything_flag="yes"
10426 else
10427   ax_cv_cc_weverything_flag="no"
10428 fi
10429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430     ac_ext=c
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10435
10436
10437     CFLAGS="$CFLAGS_SAVED"
10438
10439 fi
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
10441 $as_echo "$ax_cv_cc_weverything_flag" >&6; }
10442
10443   if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
10444     devflags="$devflags -W -Weverything -Wformat=2 -Wno-missing-field-initializers -Wno-date-time -Wno-padded -Wno-gnu-zero-variadic-macro-arguments -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-conversion -Wno-switch-enum -Wno-gnu-statement-expression -Wno-extended-offsetof -Wno-cast-align -Wno-documentation-unknown-command -Wno-covered-switch-default -Wno-packed -Wno-reserved-id-macro -DWITH_VERIFY_PTR=1"
10445   else
10446     if test "x$GCC" = "xyes"; then
10447       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"
10448       INSTALLSTRIP=""
10449     fi
10450   fi
10451
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10453 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10454
10455   CFLAGS="$CFLAGS $devflags"
10456         if test "x$EXPERIMENTAL" != "xno"; then
10457     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10458 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10459     EXPERIMENTAL=yes
10460   fi
10461 else
10462   devflags=""
10463   CFLAGS="$CFLAGS -DNDEBUG"
10464   INSTALLSTRIP=""
10465 fi
10466
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10468 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10469 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471 $as_echo "yes" >&6; }
10472
10473 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10474
10475 else
10476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 fi
10479
10480 export EXPERIMENTAL
10481
10482 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10483   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10484
10485 cat >>confdefs.h <<_ACEOF
10486 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10487 _ACEOF
10488
10489 fi
10490
10491
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10493 $as_echo_n "checking for __thread support in compiler... " >&6; }
10494   if test "$cross_compiling" = yes; then :
10495   have_tls=no
10496 else
10497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499
10500         static __thread int val;
10501         int main(int argc, char **argv) {
10502           val = 0;
10503           return val;
10504         }
10505
10506
10507 _ACEOF
10508 if ac_fn_c_try_run "$LINENO"; then :
10509   have_tls=yes
10510 else
10511   have_tls=no
10512 fi
10513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10514   conftest.$ac_objext conftest.beam conftest.$ac_ext
10515 fi
10516
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10518 $as_echo "$have_tls" >&6; }
10519   if test "x$have_tls" = "xyes"; then
10520
10521 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10522
10523   fi
10524
10525   if test "x$have_tls" = "xno"; then
10526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10527 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10528     if test "$cross_compiling" = yes; then :
10529   have_tls=no
10530 else
10531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h.  */
10533
10534           static _Thread_local int val;
10535           int main(int argc, char **argv) {
10536             val = 0;
10537             return val;
10538           }
10539
10540
10541 _ACEOF
10542 if ac_fn_c_try_run "$LINENO"; then :
10543   have_tls=yes
10544 else
10545   have_tls=no
10546 fi
10547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10548   conftest.$ac_objext conftest.beam conftest.$ac_ext
10549 fi
10550
10551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10552 $as_echo "$have_tls" >&6; }
10553     if test "x$have_tls" = "xyes"; then
10554
10555 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10556
10557     fi
10558   fi
10559   if test "x$have_tls" = "xno"; then
10560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10561 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10562     if test "$cross_compiling" = yes; then :
10563   have_tls=no
10564 else
10565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h.  */
10567
10568           static _Thread_local int val;
10569           int main(int argc, char **argv) {
10570             val = 0;
10571             return val;
10572           }
10573
10574
10575 _ACEOF
10576 if ac_fn_c_try_run "$LINENO"; then :
10577   have_tls=yes
10578 else
10579   have_tls=no
10580 fi
10581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10582   conftest.$ac_objext conftest.beam conftest.$ac_ext
10583 fi
10584
10585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10586 $as_echo "$have_tls" >&6; }
10587     if test "x$have_tls" = "xyes"; then
10588
10589 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10590
10591     fi
10592   fi
10593
10594
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10596 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10597 if ${ax_cv_cc_builtin_choose_expr+:} false; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600
10601     if test "$cross_compiling" = yes; then :
10602   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604 as_fn_error $? "cannot run test program while cross compiling
10605 See \`config.log' for more details" "$LINENO" 5; }
10606 else
10607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h.  */
10609
10610
10611           int main(int argc, char **argv) {
10612             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10613             return __builtin_choose_expr(0, 1, 0);
10614           }
10615
10616
10617 _ACEOF
10618 if ac_fn_c_try_run "$LINENO"; then :
10619   ax_cv_cc_builtin_choose_expr=yes
10620 else
10621   ax_cv_cc_builtin_choose_expr=no
10622
10623 fi
10624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10625   conftest.$ac_objext conftest.beam conftest.$ac_ext
10626 fi
10627
10628
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_choose_expr" >&5
10631 $as_echo "$ax_cv_cc_builtin_choose_expr" >&6; }
10632   if test "x$ax_cv_cc_builtin_choose_expr" = "xyes"; then
10633
10634 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10635
10636   fi
10637
10638
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10640 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10641 if ${ax_cv_cc_builtin_types_compatible_p+:} false; then :
10642   $as_echo_n "(cached) " >&6
10643 else
10644
10645     if test "$cross_compiling" = yes; then :
10646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10648 as_fn_error $? "cannot run test program while cross compiling
10649 See \`config.log' for more details" "$LINENO" 5; }
10650 else
10651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h.  */
10653
10654
10655           int main(int argc, char **argv) {
10656             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10657             return !(__builtin_types_compatible_p(char *, char *));
10658           }
10659
10660
10661 _ACEOF
10662 if ac_fn_c_try_run "$LINENO"; then :
10663   ax_cv_cc_builtin_types_compatible_p=yes
10664 else
10665   ax_cv_cc_builtin_types_compatible_p=no
10666
10667 fi
10668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10669   conftest.$ac_objext conftest.beam conftest.$ac_ext
10670 fi
10671
10672
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_types_compatible_p" >&5
10675 $as_echo "$ax_cv_cc_builtin_types_compatible_p" >&6; }
10676   if test "x$ax_cv_cc_builtin_types_compatible_p" = "xyes"; then
10677
10678 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10679
10680   fi
10681
10682
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10684 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10685 if ${ax_cv_cc_builtin_bswap64+:} false; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688
10689     if test "$cross_compiling" = yes; then :
10690   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10692 as_fn_error $? "cannot run test program while cross compiling
10693 See \`config.log' for more details" "$LINENO" 5; }
10694 else
10695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h.  */
10697
10698
10699           int main(int argc, char **argv) {
10700             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10701             return (__builtin_bswap64(0));
10702           }
10703
10704
10705 _ACEOF
10706 if ac_fn_c_try_run "$LINENO"; then :
10707   ax_cv_cc_builtin_bswap64=yes
10708 else
10709   ax_cv_cc_builtin_bswap64=no
10710
10711 fi
10712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10713   conftest.$ac_objext conftest.beam conftest.$ac_ext
10714 fi
10715
10716
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_bswap64" >&5
10719 $as_echo "$ax_cv_cc_builtin_bswap64" >&6; }
10720   if test "x$ax_cv_cc_builtin_bswap64" = "xyes"; then
10721
10722 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10723
10724   fi
10725
10726
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__bounded__)) support in compiler" >&5
10728 $as_echo_n "checking for __attribute__((__bounded__)) support in compiler... " >&6; }
10729 if ${ax_cv_cc_bounded_attribute+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732
10733     CFLAGS_SAVED=$CFLAGS
10734     CFLAGS="$CFLAGS -Werror"
10735     if test "$cross_compiling" = yes; then :
10736   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10738 as_fn_error $? "cannot run test program while cross compiling
10739 See \`config.log' for more details" "$LINENO" 5; }
10740 else
10741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h.  */
10743
10744
10745           void test(char *buff) __attribute__ ((__bounded__ (__string__, 1, 1)));
10746           int main(int argc, char **argv) {
10747             if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10748             return 0;
10749           }
10750
10751
10752 _ACEOF
10753 if ac_fn_c_try_run "$LINENO"; then :
10754   ax_cv_cc_bounded_attribute=yes
10755 else
10756   ax_cv_cc_bounded_attribute=no
10757
10758 fi
10759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10760   conftest.$ac_objext conftest.beam conftest.$ac_ext
10761 fi
10762
10763     CFLAGS="$CFLAGS_SAVED"
10764
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_bounded_attribute" >&5
10767 $as_echo "$ax_cv_cc_bounded_attribute" >&6; }
10768   if test "x$ax_cv_cc_bounded_attribute" = "xyes"; then
10769
10770 $as_echo "#define HAVE_ATTRIBUTE_BOUNDED 1" >>confdefs.h
10771
10772   fi
10773
10774
10775
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10777 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10778 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781   ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-ltalloc  $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787    Use char because int might match the return type of a GCC
10788    builtin and then its argument prototype would still apply.  */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char talloc_set_memlimit ();
10793 int
10794 main ()
10795 {
10796 return talloc_set_memlimit ();
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802   ac_cv_lib_talloc_talloc_set_memlimit=yes
10803 else
10804   ac_cv_lib_talloc_talloc_set_memlimit=no
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807     conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10809 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10811 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10812 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10813
10814
10815 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10816
10817
10818
10819 fi
10820
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10823 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10824 if ${ac_cv_lib_crypt_crypt+:} false; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   ac_check_lib_save_LIBS=$LIBS
10828 LIBS="-lcrypt  $LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833    Use char because int might match the return type of a GCC
10834    builtin and then its argument prototype would still apply.  */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char crypt ();
10839 int
10840 main ()
10841 {
10842 return crypt ();
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848   ac_cv_lib_crypt_crypt=yes
10849 else
10850   ac_cv_lib_crypt_crypt=no
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext \
10853     conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10855 fi
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10857 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10858 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10859   CRYPTLIB="-lcrypt"
10860
10861 fi
10862
10863
10864 if test "$CRYPTLIB" != ""; then
10865
10866 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10867
10868 else
10869   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10870 if test "x$ac_cv_func_crypt" = xyes; then :
10871
10872 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10873
10874 fi
10875
10876 fi
10877
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10879 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10880 if ${ac_cv_lib_cipher_setkey+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lcipher  $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h.  */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889    Use char because int might match the return type of a GCC
10890    builtin and then its argument prototype would still apply.  */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char setkey ();
10895 int
10896 main ()
10897 {
10898 return setkey ();
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904   ac_cv_lib_cipher_setkey=yes
10905 else
10906   ac_cv_lib_cipher_setkey=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909     conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10913 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10914 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10915   CRYPTLIB="${CRYPTLIB} -lcipher"
10916
10917 fi
10918
10919
10920
10921 execinfo_lib_dir=
10922
10923 # Check whether --with-execinfo-lib-dir was given.
10924 if test "${with_execinfo_lib_dir+set}" = set; then :
10925   withval=$with_execinfo_lib_dir;  case "$withval" in
10926     no)
10927         as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10928         ;;
10929     yes)
10930         ;;
10931     *)
10932         execinfo_lib_dir="$withval"
10933         ;;
10934   esac
10935
10936 fi
10937
10938
10939 execinfo_include_dir=
10940
10941 # Check whether --with-execinfo-include-dir was given.
10942 if test "${with_execinfo_include_dir+set}" = set; then :
10943   withval=$with_execinfo_include_dir;  case "$withval" in
10944     no)
10945         as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10946         ;;
10947     yes)
10948         ;;
10949     *)
10950         execinfo_include_dir="$withval"
10951         ;;
10952   esac
10953
10954 fi
10955
10956
10957 smart_try_dir=$execinfo_include_dir
10958
10959
10960 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10961 old_CPPFLAGS="$CPPFLAGS"
10962 smart_include=
10963 smart_include_dir="/usr/local/include /opt/include"
10964
10965 _smart_try_dir=
10966 _smart_include_dir=
10967
10968 for _prefix in $smart_prefix ""; do
10969   for _dir in $smart_try_dir; do
10970     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10971   done
10972
10973   for _dir in $smart_include_dir; do
10974     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10975   done
10976 done
10977
10978 if test "x$_smart_try_dir" != "x"; then
10979   for try in $_smart_try_dir; do
10980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10981 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10982     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h.  */
10985
10986                     #include <execinfo.h>
10987 int
10988 main ()
10989 {
10990 int a = 1;
10991   ;
10992   return 0;
10993 }
10994 _ACEOF
10995 if ac_fn_c_try_compile "$LINENO"; then :
10996
10997                      smart_include="-isystem $try"
10998                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10999 $as_echo "yes" >&6; }
11000                      break
11001
11002 else
11003
11004                      smart_include=
11005                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010   done
11011   CPPFLAGS="$old_CPPFLAGS"
11012 fi
11013
11014 if test "x$smart_include" = "x"; then
11015   for _prefix in $smart_prefix; do
11016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
11017 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
11018
11019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h.  */
11021
11022                     #include <execinfo.h>
11023 int
11024 main ()
11025 {
11026 int a = 1;
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_compile "$LINENO"; then :
11032
11033                      smart_include="-isystem ${_prefix}/"
11034                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; }
11036                      break
11037
11038 else
11039
11040                      smart_include=
11041                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11043
11044 fi
11045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046   done
11047 fi
11048
11049 if test "x$smart_include" = "x"; then
11050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
11051 $as_echo_n "checking for execinfo.h... " >&6; }
11052
11053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h.  */
11055
11056                     #include <execinfo.h>
11057 int
11058 main ()
11059 {
11060 int a = 1;
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_compile "$LINENO"; then :
11066
11067                      smart_include=" "
11068                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11069 $as_echo "yes" >&6; }
11070                      break
11071
11072 else
11073
11074                      smart_include=
11075                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11077
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 fi
11081
11082 if test "x$smart_include" = "x"; then
11083
11084   for prefix in $smart_prefix; do
11085
11086
11087 if test "x$LOCATE" != "x"; then
11088         DIRS=
11089   file="${_prefix}/${1}"
11090
11091   for x in `${LOCATE} $file 2>/dev/null`; do
11092                                         base=`echo $x | sed "s%/${file}%%"`
11093     if test "x$x" = "x$base"; then
11094       continue;
11095     fi
11096
11097     dir=`${DIRNAME} $x 2>/dev/null`
11098                 exclude=`echo ${dir} | ${GREP} /home`
11099     if test "x$exclude" != "x"; then
11100       continue
11101     fi
11102
11103                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11104     if test "x$already" = "x"; then
11105       DIRS="$DIRS $dir"
11106     fi
11107   done
11108 fi
11109
11110 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11111
11112   done
11113
11114
11115 if test "x$LOCATE" != "x"; then
11116         DIRS=
11117   file=execinfo.h
11118
11119   for x in `${LOCATE} $file 2>/dev/null`; do
11120                                         base=`echo $x | sed "s%/${file}%%"`
11121     if test "x$x" = "x$base"; then
11122       continue;
11123     fi
11124
11125     dir=`${DIRNAME} $x 2>/dev/null`
11126                 exclude=`echo ${dir} | ${GREP} /home`
11127     if test "x$exclude" != "x"; then
11128       continue
11129     fi
11130
11131                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11132     if test "x$already" = "x"; then
11133       DIRS="$DIRS $dir"
11134     fi
11135   done
11136 fi
11137
11138 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11139
11140
11141   for try in $_smart_include_dir; do
11142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
11143 $as_echo_n "checking for execinfo.h in $try... " >&6; }
11144     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h.  */
11147
11148                     #include <execinfo.h>
11149 int
11150 main ()
11151 {
11152 int a = 1;
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158
11159                      smart_include="-isystem $try"
11160                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11161 $as_echo "yes" >&6; }
11162                      break
11163
11164 else
11165
11166                      smart_include=
11167                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172   done
11173   CPPFLAGS="$old_CPPFLAGS"
11174 fi
11175
11176 if test "x$smart_include" != "x"; then
11177   eval "ac_cv_header_$ac_safe=yes"
11178   CPPFLAGS="$smart_include $old_CPPFLAGS"
11179   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11180 fi
11181
11182 smart_prefix=
11183
11184 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
11185   smart_try_dir=$execinfo_lib_dir
11186
11187
11188 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
11189 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
11190
11191 old_LIBS="$LIBS"
11192 old_CPPFLAGS="$CPPFLAGS"
11193 smart_lib=
11194 smart_ldflags=
11195 smart_lib_dir=
11196
11197 if test "x$smart_try_dir" != "x"; then
11198   for try in $smart_try_dir; do
11199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11200 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11201     LIBS="-lexecinfo $old_LIBS"
11202     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h.  */
11205 extern char backtrace_symbols();
11206 int
11207 main ()
11208 {
11209 backtrace_symbols()
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215
11216                  smart_lib="-lexecinfo"
11217                  smart_ldflags="-L$try -Wl,-rpath,$try"
11218                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219 $as_echo "yes" >&6; }
11220                  break
11221
11222 else
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext \
11227     conftest$ac_exeext conftest.$ac_ext
11228   done
11229   LIBS="$old_LIBS"
11230   CPPFLAGS="$old_CPPFLAGS"
11231 fi
11232
11233 if test "x$smart_lib" = "x"; then
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
11235 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
11236   LIBS="-lexecinfo $old_LIBS"
11237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h.  */
11239 extern char backtrace_symbols();
11240 int
11241 main ()
11242 {
11243 backtrace_symbols()
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249
11250                 smart_lib="-lexecinfo"
11251                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; }
11253
11254 else
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259     conftest$ac_exeext conftest.$ac_ext
11260   LIBS="$old_LIBS"
11261 fi
11262
11263 if test "x$smart_lib" = "x"; then
11264
11265
11266 if test "x$LOCATE" != "x"; then
11267         DIRS=
11268   file=libexecinfo${libltdl_cv_shlibext}
11269
11270   for x in `${LOCATE} $file 2>/dev/null`; do
11271                                         base=`echo $x | sed "s%/${file}%%"`
11272     if test "x$x" = "x$base"; then
11273       continue;
11274     fi
11275
11276     dir=`${DIRNAME} $x 2>/dev/null`
11277                 exclude=`echo ${dir} | ${GREP} /home`
11278     if test "x$exclude" != "x"; then
11279       continue
11280     fi
11281
11282                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11283     if test "x$already" = "x"; then
11284       DIRS="$DIRS $dir"
11285     fi
11286   done
11287 fi
11288
11289 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11290
11291
11292
11293 if test "x$LOCATE" != "x"; then
11294         DIRS=
11295   file=libexecinfo.a
11296
11297   for x in `${LOCATE} $file 2>/dev/null`; do
11298                                         base=`echo $x | sed "s%/${file}%%"`
11299     if test "x$x" = "x$base"; then
11300       continue;
11301     fi
11302
11303     dir=`${DIRNAME} $x 2>/dev/null`
11304                 exclude=`echo ${dir} | ${GREP} /home`
11305     if test "x$exclude" != "x"; then
11306       continue
11307     fi
11308
11309                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11310     if test "x$already" = "x"; then
11311       DIRS="$DIRS $dir"
11312     fi
11313   done
11314 fi
11315
11316 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11317
11318
11319   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11321 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11322     LIBS="-lexecinfo $old_LIBS"
11323     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h.  */
11326 extern char backtrace_symbols();
11327 int
11328 main ()
11329 {
11330 backtrace_symbols()
11331   ;
11332   return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336
11337                   smart_lib="-lexecinfo"
11338                   smart_ldflags="-L$try -Wl,-rpath,$try"
11339                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11340 $as_echo "yes" >&6; }
11341                   break
11342
11343 else
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11346 fi
11347 rm -f core conftest.err conftest.$ac_objext \
11348     conftest$ac_exeext conftest.$ac_ext
11349   done
11350   LIBS="$old_LIBS"
11351   CPPFLAGS="$old_CPPFLAGS"
11352 fi
11353
11354 if test "x$smart_lib" != "x"; then
11355   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11356   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11357   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11358 fi
11359
11360   if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11362 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366         #include <execinfo.h>
11367
11368 int
11369 main ()
11370 {
11371
11372         void *sym[1];
11373         backtrace_symbols(&sym, sizeof(sym))
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381 $as_echo "yes" >&6; }
11382         ac_cv_lib_execinfo_backtrace_symbols="yes"
11383
11384 else
11385
11386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388
11389
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392     conftest$ac_exeext conftest.$ac_ext
11393   fi
11394
11395   if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11396
11397 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11398
11399   fi
11400 fi
11401
11402 PCRE=yes
11403
11404 # Check whether --with-pcre was given.
11405 if test "${with_pcre+set}" = set; then :
11406   withval=$with_pcre;  case "$withval" in
11407     no)
11408     PCRE=no
11409         ;;
11410     yes)
11411     PCRE=yes
11412         ;;
11413   esac
11414
11415 fi
11416
11417
11418 pcre_lib_dir=
11419
11420 # Check whether --with-pcre-lib-dir was given.
11421 if test "${with_pcre_lib_dir+set}" = set; then :
11422   withval=$with_pcre_lib_dir;  case "$withval" in
11423     no)
11424         as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11425         ;;
11426     yes)
11427         ;;
11428     *)
11429         pcre_lib_dir="$withval"
11430         ;;
11431   esac
11432
11433 fi
11434
11435
11436 pcre_include_dir=
11437
11438 # Check whether --with-pcre-include-dir was given.
11439 if test "${with_pcre_include_dir+set}" = set; then :
11440   withval=$with_pcre_include_dir;  case "$withval" in
11441     no)
11442         as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11443         ;;
11444     yes)
11445         ;;
11446     *)
11447         pcre_include_dir="$withval"
11448         ;;
11449   esac
11450
11451 fi
11452
11453
11454 REGEX=
11455
11456 # Check whether --with-regex was given.
11457 if test "${with_regex+set}" = set; then :
11458   withval=$with_regex;  case "$withval" in
11459     no)
11460         REGEX=no
11461         ;;
11462     *)
11463         ;;
11464   esac
11465
11466 fi
11467
11468
11469 if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
11470   smart_try_dir=$pcre_include_dir
11471
11472
11473 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11474 old_CPPFLAGS="$CPPFLAGS"
11475 smart_include=
11476 smart_include_dir="/usr/local/include /opt/include"
11477
11478 _smart_try_dir=
11479 _smart_include_dir=
11480
11481 for _prefix in $smart_prefix ""; do
11482   for _dir in $smart_try_dir; do
11483     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11484   done
11485
11486   for _dir in $smart_include_dir; do
11487     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11488   done
11489 done
11490
11491 if test "x$_smart_try_dir" != "x"; then
11492   for try in $_smart_try_dir; do
11493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11494 $as_echo_n "checking for pcre.h in $try... " >&6; }
11495     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h.  */
11498
11499                     #include <pcre.h>
11500 int
11501 main ()
11502 {
11503 int a = 1;
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_compile "$LINENO"; then :
11509
11510                      smart_include="-isystem $try"
11511                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; }
11513                      break
11514
11515 else
11516
11517                      smart_include=
11518                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523   done
11524   CPPFLAGS="$old_CPPFLAGS"
11525 fi
11526
11527 if test "x$smart_include" = "x"; then
11528   for _prefix in $smart_prefix; do
11529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11530 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11531
11532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h.  */
11534
11535                     #include <pcre.h>
11536 int
11537 main ()
11538 {
11539 int a = 1;
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_compile "$LINENO"; then :
11545
11546                      smart_include="-isystem ${_prefix}/"
11547                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11548 $as_echo "yes" >&6; }
11549                      break
11550
11551 else
11552
11553                      smart_include=
11554                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559   done
11560 fi
11561
11562 if test "x$smart_include" = "x"; then
11563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11564 $as_echo_n "checking for pcre.h... " >&6; }
11565
11566     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h.  */
11568
11569                     #include <pcre.h>
11570 int
11571 main ()
11572 {
11573 int a = 1;
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_compile "$LINENO"; then :
11579
11580                      smart_include=" "
11581                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11582 $as_echo "yes" >&6; }
11583                      break
11584
11585 else
11586
11587                      smart_include=
11588                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11590
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 fi
11594
11595 if test "x$smart_include" = "x"; then
11596
11597   for prefix in $smart_prefix; do
11598
11599
11600 if test "x$LOCATE" != "x"; then
11601         DIRS=
11602   file="${_prefix}/${1}"
11603
11604   for x in `${LOCATE} $file 2>/dev/null`; do
11605                                         base=`echo $x | sed "s%/${file}%%"`
11606     if test "x$x" = "x$base"; then
11607       continue;
11608     fi
11609
11610     dir=`${DIRNAME} $x 2>/dev/null`
11611                 exclude=`echo ${dir} | ${GREP} /home`
11612     if test "x$exclude" != "x"; then
11613       continue
11614     fi
11615
11616                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11617     if test "x$already" = "x"; then
11618       DIRS="$DIRS $dir"
11619     fi
11620   done
11621 fi
11622
11623 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11624
11625   done
11626
11627
11628 if test "x$LOCATE" != "x"; then
11629         DIRS=
11630   file=pcre.h
11631
11632   for x in `${LOCATE} $file 2>/dev/null`; do
11633                                         base=`echo $x | sed "s%/${file}%%"`
11634     if test "x$x" = "x$base"; then
11635       continue;
11636     fi
11637
11638     dir=`${DIRNAME} $x 2>/dev/null`
11639                 exclude=`echo ${dir} | ${GREP} /home`
11640     if test "x$exclude" != "x"; then
11641       continue
11642     fi
11643
11644                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11645     if test "x$already" = "x"; then
11646       DIRS="$DIRS $dir"
11647     fi
11648   done
11649 fi
11650
11651 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11652
11653
11654   for try in $_smart_include_dir; do
11655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11656 $as_echo_n "checking for pcre.h in $try... " >&6; }
11657     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h.  */
11660
11661                     #include <pcre.h>
11662 int
11663 main ()
11664 {
11665 int a = 1;
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_compile "$LINENO"; then :
11671
11672                      smart_include="-isystem $try"
11673                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11675                      break
11676
11677 else
11678
11679                      smart_include=
11680                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685   done
11686   CPPFLAGS="$old_CPPFLAGS"
11687 fi
11688
11689 if test "x$smart_include" != "x"; then
11690   eval "ac_cv_header_$ac_safe=yes"
11691   CPPFLAGS="$smart_include $old_CPPFLAGS"
11692   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11693 fi
11694
11695 smart_prefix=
11696
11697   if test "x$ac_cv_header_pcre_h" = "xyes"; then
11698     smart_try_dir=$pcre_lib_dir
11699
11700
11701 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11702 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11703
11704 old_LIBS="$LIBS"
11705 old_CPPFLAGS="$CPPFLAGS"
11706 smart_lib=
11707 smart_ldflags=
11708 smart_lib_dir=
11709
11710 if test "x$smart_try_dir" != "x"; then
11711   for try in $smart_try_dir; do
11712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11713 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11714     LIBS="-lpcre $old_LIBS"
11715     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h.  */
11718 extern char pcre_compile();
11719 int
11720 main ()
11721 {
11722 pcre_compile()
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728
11729                  smart_lib="-lpcre"
11730                  smart_ldflags="-L$try -Wl,-rpath,$try"
11731                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11732 $as_echo "yes" >&6; }
11733                  break
11734
11735 else
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext \
11740     conftest$ac_exeext conftest.$ac_ext
11741   done
11742   LIBS="$old_LIBS"
11743   CPPFLAGS="$old_CPPFLAGS"
11744 fi
11745
11746 if test "x$smart_lib" = "x"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11748 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11749   LIBS="-lpcre $old_LIBS"
11750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h.  */
11752 extern char pcre_compile();
11753 int
11754 main ()
11755 {
11756 pcre_compile()
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762
11763                 smart_lib="-lpcre"
11764                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11765 $as_echo "yes" >&6; }
11766
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext \
11772     conftest$ac_exeext conftest.$ac_ext
11773   LIBS="$old_LIBS"
11774 fi
11775
11776 if test "x$smart_lib" = "x"; then
11777
11778
11779 if test "x$LOCATE" != "x"; then
11780         DIRS=
11781   file=libpcre${libltdl_cv_shlibext}
11782
11783   for x in `${LOCATE} $file 2>/dev/null`; do
11784                                         base=`echo $x | sed "s%/${file}%%"`
11785     if test "x$x" = "x$base"; then
11786       continue;
11787     fi
11788
11789     dir=`${DIRNAME} $x 2>/dev/null`
11790                 exclude=`echo ${dir} | ${GREP} /home`
11791     if test "x$exclude" != "x"; then
11792       continue
11793     fi
11794
11795                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11796     if test "x$already" = "x"; then
11797       DIRS="$DIRS $dir"
11798     fi
11799   done
11800 fi
11801
11802 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11803
11804
11805
11806 if test "x$LOCATE" != "x"; then
11807         DIRS=
11808   file=libpcre.a
11809
11810   for x in `${LOCATE} $file 2>/dev/null`; do
11811                                         base=`echo $x | sed "s%/${file}%%"`
11812     if test "x$x" = "x$base"; then
11813       continue;
11814     fi
11815
11816     dir=`${DIRNAME} $x 2>/dev/null`
11817                 exclude=`echo ${dir} | ${GREP} /home`
11818     if test "x$exclude" != "x"; then
11819       continue
11820     fi
11821
11822                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11823     if test "x$already" = "x"; then
11824       DIRS="$DIRS $dir"
11825     fi
11826   done
11827 fi
11828
11829 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11830
11831
11832   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11834 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11835     LIBS="-lpcre $old_LIBS"
11836     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839 extern char pcre_compile();
11840 int
11841 main ()
11842 {
11843 pcre_compile()
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_link "$LINENO"; then :
11849
11850                   smart_lib="-lpcre"
11851                   smart_ldflags="-L$try -Wl,-rpath,$try"
11852                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853 $as_echo "yes" >&6; }
11854                   break
11855
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861     conftest$ac_exeext conftest.$ac_ext
11862   done
11863   LIBS="$old_LIBS"
11864   CPPFLAGS="$old_CPPFLAGS"
11865 fi
11866
11867 if test "x$smart_lib" != "x"; then
11868   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11869   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11870   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11871 fi
11872
11873     if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11874       REGEX=yes
11875
11876 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11877
11878
11879 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11880
11881     fi
11882   fi
11883 fi
11884
11885 if test "x$REGEX" = "x"; then
11886   smart_try_dir=
11887
11888
11889 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11890 old_CPPFLAGS="$CPPFLAGS"
11891 smart_include=
11892 smart_include_dir="/usr/local/include /opt/include"
11893
11894 _smart_try_dir=
11895 _smart_include_dir=
11896
11897 for _prefix in $smart_prefix ""; do
11898   for _dir in $smart_try_dir; do
11899     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11900   done
11901
11902   for _dir in $smart_include_dir; do
11903     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11904   done
11905 done
11906
11907 if test "x$_smart_try_dir" != "x"; then
11908   for try in $_smart_try_dir; do
11909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11910 $as_echo_n "checking for regex.h in $try... " >&6; }
11911     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h.  */
11914
11915                     #include <regex.h>
11916 int
11917 main ()
11918 {
11919 int a = 1;
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_compile "$LINENO"; then :
11925
11926                      smart_include="-isystem $try"
11927                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929                      break
11930
11931 else
11932
11933                      smart_include=
11934                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939   done
11940   CPPFLAGS="$old_CPPFLAGS"
11941 fi
11942
11943 if test "x$smart_include" = "x"; then
11944   for _prefix in $smart_prefix; do
11945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11946 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11947
11948     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h.  */
11950
11951                     #include <regex.h>
11952 int
11953 main ()
11954 {
11955 int a = 1;
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961
11962                      smart_include="-isystem ${_prefix}/"
11963                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965                      break
11966
11967 else
11968
11969                      smart_include=
11970                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972
11973 fi
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975   done
11976 fi
11977
11978 if test "x$smart_include" = "x"; then
11979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11980 $as_echo_n "checking for regex.h... " >&6; }
11981
11982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984
11985                     #include <regex.h>
11986 int
11987 main ()
11988 {
11989 int a = 1;
11990   ;
11991   return 0;
11992 }
11993 _ACEOF
11994 if ac_fn_c_try_compile "$LINENO"; then :
11995
11996                      smart_include=" "
11997                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999                      break
12000
12001 else
12002
12003                      smart_include=
12004                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 fi
12010
12011 if test "x$smart_include" = "x"; then
12012
12013   for prefix in $smart_prefix; do
12014
12015
12016 if test "x$LOCATE" != "x"; then
12017         DIRS=
12018   file="${_prefix}/${1}"
12019
12020   for x in `${LOCATE} $file 2>/dev/null`; do
12021                                         base=`echo $x | sed "s%/${file}%%"`
12022     if test "x$x" = "x$base"; then
12023       continue;
12024     fi
12025
12026     dir=`${DIRNAME} $x 2>/dev/null`
12027                 exclude=`echo ${dir} | ${GREP} /home`
12028     if test "x$exclude" != "x"; then
12029       continue
12030     fi
12031
12032                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12033     if test "x$already" = "x"; then
12034       DIRS="$DIRS $dir"
12035     fi
12036   done
12037 fi
12038
12039 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12040
12041   done
12042
12043
12044 if test "x$LOCATE" != "x"; then
12045         DIRS=
12046   file=regex.h
12047
12048   for x in `${LOCATE} $file 2>/dev/null`; do
12049                                         base=`echo $x | sed "s%/${file}%%"`
12050     if test "x$x" = "x$base"; then
12051       continue;
12052     fi
12053
12054     dir=`${DIRNAME} $x 2>/dev/null`
12055                 exclude=`echo ${dir} | ${GREP} /home`
12056     if test "x$exclude" != "x"; then
12057       continue
12058     fi
12059
12060                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12061     if test "x$already" = "x"; then
12062       DIRS="$DIRS $dir"
12063     fi
12064   done
12065 fi
12066
12067 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12068
12069
12070   for try in $_smart_include_dir; do
12071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
12072 $as_echo_n "checking for regex.h in $try... " >&6; }
12073     CPPFLAGS="-isystem $try $old_CPPFLAGS"
12074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076
12077                     #include <regex.h>
12078 int
12079 main ()
12080 {
12081 int a = 1;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_compile "$LINENO"; then :
12087
12088                      smart_include="-isystem $try"
12089                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090 $as_echo "yes" >&6; }
12091                      break
12092
12093 else
12094
12095                      smart_include=
12096                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12098
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101   done
12102   CPPFLAGS="$old_CPPFLAGS"
12103 fi
12104
12105 if test "x$smart_include" != "x"; then
12106   eval "ac_cv_header_$ac_safe=yes"
12107   CPPFLAGS="$smart_include $old_CPPFLAGS"
12108   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
12109 fi
12110
12111 smart_prefix=
12112
12113   if test "x$ac_cv_header_regex_h" = "xyes"; then
12114     REGEX=yes
12115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
12116 $as_echo_n "checking for extended regular expressions... " >&6; }
12117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119
12120         #include <regex.h>
12121         #ifdef REG_EXTENDED
12122         yes
12123         #endif
12124
12125 _ACEOF
12126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12127   $EGREP "yes" >/dev/null 2>&1; then :
12128
12129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130 $as_echo "yes" >&6; }
12131
12132 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
12133
12134
12135 else
12136
12137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139
12140
12141 fi
12142 rm -f conftest*
12143
12144
12145                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
12146 $as_echo_n "checking for regcomp in -lregex... " >&6; }
12147 if ${ac_cv_lib_regex_regcomp+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lregex  $LIBS"
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h.  */
12154
12155 /* Override any GCC internal prototype to avoid an error.
12156    Use char because int might match the return type of a GCC
12157    builtin and then its argument prototype would still apply.  */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char regcomp ();
12162 int
12163 main ()
12164 {
12165 return regcomp ();
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171   ac_cv_lib_regex_regcomp=yes
12172 else
12173   ac_cv_lib_regex_regcomp=no
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext \
12176     conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
12180 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
12181 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
12182
12183         LIBS="-lregex $LIBS"
12184
12185
12186 fi
12187
12188
12189                     for ac_func in \
12190       regncomp \
12191       regnexec
12192
12193 do :
12194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12197   cat >>confdefs.h <<_ACEOF
12198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 fi
12202 done
12203
12204     if test x"$ac_cv_func_regncomp" = x"yes" && test  x"$ac_cv_func_regnexec" = x"yes"; then
12205
12206 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
12207
12208     fi
12209   fi
12210 fi
12211
12212 if test "x$REGEX" = "xyes"; then
12213
12214 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
12215
12216 fi
12217
12218
12219 $as_echo "#define GNUSTYLE 1" >>confdefs.h
12220
12221
12222
12223 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
12224
12225
12226
12227 $as_echo "#define BSDSTYLE 3" >>confdefs.h
12228
12229
12230 gethostbyaddrrstyle=""
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
12232 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
12233 case "$host" in
12234   *-freebsd*)
12235                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
12236         #ifdef HAVE_NETDB_H
12237         #include <netdb.h>
12238         #endif
12239
12240 "
12241 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
12242   ac_have_decl=1
12243 else
12244   ac_have_decl=0
12245 fi
12246
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
12249 _ACEOF
12250 if test $ac_have_decl = 1; then :
12251
12252 else
12253
12254
12255 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12256
12257         gethostbyaddrrstyle=BSD
12258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
12259 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
12260
12261 fi
12262
12263     ;;
12264 esac
12265
12266 if test "x$gethostbyaddrrstyle" = "x"; then
12267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h.  */
12269
12270       #include <stdio.h>
12271       #include <netdb.h>
12272
12273 int
12274 main ()
12275 {
12276  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282
12283
12284 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12285
12286       gethostbyaddrrstyle=GNU
12287
12288
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext \
12291     conftest$ac_exeext conftest.$ac_ext
12292 fi
12293
12294 if test "x$gethostbyaddrrstyle" = "x"; then
12295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297
12298       #include <stdio.h>
12299       #include <netdb.h>
12300
12301 int
12302 main ()
12303 {
12304  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_c_try_link "$LINENO"; then :
12310
12311
12312 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12313
12314       gethostbyaddrrstyle=SYSV
12315
12316
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319     conftest$ac_exeext conftest.$ac_ext
12320 fi
12321
12322
12323 if test "x$gethostbyaddrrstyle" = "x"; then
12324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326
12327       #include <stdio.h>
12328       #include <netdb.h>
12329
12330 int
12331 main ()
12332 {
12333  gethostbyaddr(NULL, 0, 0)
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339
12340
12341 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12342
12343       gethostbyaddrrstyle=BSD
12344
12345
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext \
12348     conftest$ac_exeext conftest.$ac_ext
12349 fi
12350
12351 if test "x$gethostbyaddrrstyle" = "x"; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12353 $as_echo "none!  It must not exist, here." >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12356 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12357 fi
12358
12359 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12361 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12362 fi
12363
12364 gethostbynamerstyle=""
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12366 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h.  */
12369
12370     #include <stdio.h>
12371     #include <netdb.h>
12372
12373 int
12374 main ()
12375 {
12376  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382
12383
12384 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12385
12386     gethostbynamerstyle=GNU
12387
12388
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext \
12391     conftest$ac_exeext conftest.$ac_ext
12392
12393 if test "x$gethostbynamerstyle" = "x"; then
12394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h.  */
12396
12397       #include <stdio.h>
12398       #include <netdb.h>
12399
12400 int
12401 main ()
12402 {
12403  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409
12410
12411 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12412
12413       gethostbynamerstyle=SYSV
12414
12415
12416 fi
12417 rm -f core conftest.err conftest.$ac_objext \
12418     conftest$ac_exeext conftest.$ac_ext
12419 fi
12420
12421 if test "x$gethostbynamerstyle" = "x"; then
12422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h.  */
12424
12425       #include <stdio.h>
12426       #include <netdb.h>
12427
12428 int
12429 main ()
12430 {
12431  gethostbyname(NULL)
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then :
12437
12438
12439 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12440
12441       gethostbynamerstyle=BSD
12442
12443
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446     conftest$ac_exeext conftest.$ac_ext
12447 fi
12448
12449 if test "x$gethostbynamerstyle" = "x"; then
12450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12451 $as_echo "none!  It must not exist, here." >&6; }
12452 else
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12454 $as_echo "${gethostbynamerstyle}-style" >&6; }
12455 fi
12456
12457 if test "x$gethostbynamerstyle" = "xBSD"; then
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12459 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12460 fi
12461
12462 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12464 $as_echo_n "checking getpwnam_r... " >&6; }
12465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467
12468       #include <stdlib.h>
12469       #include <sys/types.h>
12470       #include <pwd.h>
12471
12472 int
12473 main ()
12474 {
12475  getpwnam_r(NULL, NULL, NULL, 0, NULL)
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"; then :
12481
12482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484
12485 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12486
12487
12488 else
12489
12490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12492
12493
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext \
12496     conftest$ac_exeext conftest.$ac_ext
12497 fi
12498
12499 if test "x$ac_cv_header_grp_h" = "xyes"; then
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12501 $as_echo_n "checking getgrnam_r... " >&6; }
12502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504
12505       #include <stdlib.h>
12506       #include <sys/types.h>
12507       #include <grp.h>
12508
12509 int
12510 main ()
12511 {
12512  getgrnam_r(NULL, NULL, NULL, 0, NULL)
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"; then :
12518
12519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12520 $as_echo "yes" >&6; }
12521
12522 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12523
12524
12525 else
12526
12527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12529
12530
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext \
12533     conftest$ac_exeext conftest.$ac_ext
12534 fi
12535
12536
12537
12538 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12539
12540
12541 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12542
12543 ctimerstyle=""
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12545 $as_echo_n "checking ctime_r() syntax... " >&6; }
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h.  */
12548
12549     #include <time.h>
12550
12551 int
12552 main ()
12553 {
12554  ctime_r(NULL, NULL, 0)
12555   ;
12556   return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560
12561
12562 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12563
12564     ctimerstyle="SOLARIS"
12565
12566
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext \
12569     conftest$ac_exeext conftest.$ac_ext
12570
12571 if test "x$ctimerstyle" = "x"; then
12572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h.  */
12574
12575       #include <time.h>
12576
12577 int
12578 main ()
12579 {
12580  ctime_r(NULL, NULL)
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_link "$LINENO"; then :
12586
12587
12588 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12589
12590       ctimerstyle="POSIX"
12591
12592
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext \
12595     conftest$ac_exeext conftest.$ac_ext
12596 fi
12597
12598 if test "x$ctimerstyle" = "x"; then
12599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
12600 $as_echo "none!  It must not exist, here." >&6; }
12601 else
12602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12603 $as_echo "${ctimerstyle}-style" >&6; }
12604 fi
12605
12606 HOSTINFO=$host
12607
12608
12609
12610 top_builddir=`pwd`
12611 export top_builddir
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12613 $as_echo "top_builddir=$top_builddir" >&6; }
12614
12615
12616
12617
12618 if test "x$EXPERIMENTAL" = "xyes"; then
12619   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12620     MODULES="$MODULES $foo"
12621   done
12622 else
12623             for foo in `cat "${srcdir}"/src/modules/stable`; do
12624       MODULES="$MODULES $foo"
12625    done
12626 fi
12627
12628 mysubdirs=""
12629 for bar in $MODULES; do
12630   if test -f "${srcdir}"/src/modules/$bar/configure; then
12631     mysubdirs="$mysubdirs src/modules/$bar"
12632   fi
12633 done
12634
12635
12636
12637 subdirs="$subdirs $mysubdirs"
12638
12639
12640
12641 if test "x$werror" == "xyes"; then
12642   CFLAGS="-Werror $CFLAGS"
12643 fi
12644
12645 ac_config_commands="$ac_config_commands stamp-h"
12646
12647 ac_config_commands="$ac_config_commands build-radpaths-h"
12648
12649 ac_config_commands="$ac_config_commands main-chmod"
12650
12651 ac_config_commands="$ac_config_commands scripts-chmod"
12652
12653
12654
12655
12656
12657
12658 USE_STATIC_LIBS="yes"
12659
12660
12661
12662
12663   unset ac_cv_env_LIBS_set
12664   unset ac_cv_env_LIBS_value
12665
12666   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"
12667
12668 cat >confcache <<\_ACEOF
12669 # This file is a shell script that caches the results of configure
12670 # tests run on this system so they can be shared between configure
12671 # scripts and configure runs, see configure's option --config-cache.
12672 # It is not useful on other systems.  If it contains results you don't
12673 # want to keep, you may remove or edit it.
12674 #
12675 # config.status only pays attention to the cache file if you give it
12676 # the --recheck option to rerun configure.
12677 #
12678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12680 # following values.
12681
12682 _ACEOF
12683
12684 # The following way of writing the cache mishandles newlines in values,
12685 # but we know of no workaround that is simple, portable, and efficient.
12686 # So, we kill variables containing newlines.
12687 # Ultrix sh set writes to stderr and can't be redirected directly,
12688 # and sets the high bit in the cache file unless we assign to the vars.
12689 (
12690   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12691     eval ac_val=\$$ac_var
12692     case $ac_val in #(
12693     *${as_nl}*)
12694       case $ac_var in #(
12695       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12697       esac
12698       case $ac_var in #(
12699       _ | IFS | as_nl) ;; #(
12700       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12701       *) { eval $ac_var=; unset $ac_var;} ;;
12702       esac ;;
12703     esac
12704   done
12705
12706   (set) 2>&1 |
12707     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12708     *${as_nl}ac_space=\ *)
12709       # `set' does not quote correctly, so add quotes: double-quote
12710       # substitution turns \\\\ into \\, and sed turns \\ into \.
12711       sed -n \
12712         "s/'/'\\\\''/g;
12713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12714       ;; #(
12715     *)
12716       # `set' quotes correctly as required by POSIX, so do not add quotes.
12717       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12718       ;;
12719     esac |
12720     sort
12721 ) |
12722   sed '
12723      /^ac_cv_env_/b end
12724      t clear
12725      :clear
12726      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12727      t end
12728      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12729      :end' >>confcache
12730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12731   if test -w "$cache_file"; then
12732     if test "x$cache_file" != "x/dev/null"; then
12733       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12734 $as_echo "$as_me: updating cache $cache_file" >&6;}
12735       if test ! -f "$cache_file" || test -h "$cache_file"; then
12736         cat confcache >"$cache_file"
12737       else
12738         case $cache_file in #(
12739         */* | ?:*)
12740           mv -f confcache "$cache_file"$$ &&
12741           mv -f "$cache_file"$$ "$cache_file" ;; #(
12742         *)
12743           mv -f confcache "$cache_file" ;;
12744         esac
12745       fi
12746     fi
12747   else
12748     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12750   fi
12751 fi
12752 rm -f confcache
12753
12754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12755 # Let make expand exec_prefix.
12756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12757
12758 DEFS=-DHAVE_CONFIG_H
12759
12760 ac_libobjs=
12761 ac_ltlibobjs=
12762 U=
12763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12764   # 1. Remove the extension, and $U if already installed.
12765   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12766   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12767   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12768   #    will be set to the directory where LIBOBJS objects are built.
12769   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12770   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12771 done
12772 LIBOBJS=$ac_libobjs
12773
12774 LTLIBOBJS=$ac_ltlibobjs
12775
12776
12777
12778
12779 : "${CONFIG_STATUS=./config.status}"
12780 ac_write_fail=0
12781 ac_clean_files_save=$ac_clean_files
12782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12784 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12785 as_write_fail=0
12786 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12787 #! $SHELL
12788 # Generated by $as_me.
12789 # Run this file to recreate the current configuration.
12790 # Compiler output produced by configure, useful for debugging
12791 # configure, is in config.log if it exists.
12792
12793 debug=false
12794 ac_cs_recheck=false
12795 ac_cs_silent=false
12796
12797 SHELL=\${CONFIG_SHELL-$SHELL}
12798 export SHELL
12799 _ASEOF
12800 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12801 ## -------------------- ##
12802 ## M4sh Initialization. ##
12803 ## -------------------- ##
12804
12805 # Be more Bourne compatible
12806 DUALCASE=1; export DUALCASE # for MKS sh
12807 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12808   emulate sh
12809   NULLCMD=:
12810   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12811   # is contrary to our usage.  Disable this feature.
12812   alias -g '${1+"$@"}'='"$@"'
12813   setopt NO_GLOB_SUBST
12814 else
12815   case `(set -o) 2>/dev/null` in #(
12816   *posix*) :
12817     set -o posix ;; #(
12818   *) :
12819      ;;
12820 esac
12821 fi
12822
12823
12824 as_nl='
12825 '
12826 export as_nl
12827 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12828 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12829 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12831 # Prefer a ksh shell builtin over an external printf program on Solaris,
12832 # but without wasting forks for bash or zsh.
12833 if test -z "$BASH_VERSION$ZSH_VERSION" \
12834     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12835   as_echo='print -r --'
12836   as_echo_n='print -rn --'
12837 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12838   as_echo='printf %s\n'
12839   as_echo_n='printf %s'
12840 else
12841   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12842     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12843     as_echo_n='/usr/ucb/echo -n'
12844   else
12845     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12846     as_echo_n_body='eval
12847       arg=$1;
12848       case $arg in #(
12849       *"$as_nl"*)
12850         expr "X$arg" : "X\\(.*\\)$as_nl";
12851         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12852       esac;
12853       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12854     '
12855     export as_echo_n_body
12856     as_echo_n='sh -c $as_echo_n_body as_echo'
12857   fi
12858   export as_echo_body
12859   as_echo='sh -c $as_echo_body as_echo'
12860 fi
12861
12862 # The user is always right.
12863 if test "${PATH_SEPARATOR+set}" != set; then
12864   PATH_SEPARATOR=:
12865   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12866     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12867       PATH_SEPARATOR=';'
12868   }
12869 fi
12870
12871
12872 # IFS
12873 # We need space, tab and new line, in precisely that order.  Quoting is
12874 # there to prevent editors from complaining about space-tab.
12875 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12876 # splitting by setting IFS to empty value.)
12877 IFS=" ""        $as_nl"
12878
12879 # Find who we are.  Look in the path if we contain no directory separator.
12880 as_myself=
12881 case $0 in #((
12882   *[\\/]* ) as_myself=$0 ;;
12883   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886   IFS=$as_save_IFS
12887   test -z "$as_dir" && as_dir=.
12888     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12889   done
12890 IFS=$as_save_IFS
12891
12892      ;;
12893 esac
12894 # We did not find ourselves, most probably we were run as `sh COMMAND'
12895 # in which case we are not to be found in the path.
12896 if test "x$as_myself" = x; then
12897   as_myself=$0
12898 fi
12899 if test ! -f "$as_myself"; then
12900   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12901   exit 1
12902 fi
12903
12904 # Unset variables that we do not need and which cause bugs (e.g. in
12905 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12906 # suppresses any "Segmentation fault" message there.  '((' could
12907 # trigger a bug in pdksh 5.2.14.
12908 for as_var in BASH_ENV ENV MAIL MAILPATH
12909 do eval test x\${$as_var+set} = xset \
12910   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12911 done
12912 PS1='$ '
12913 PS2='> '
12914 PS4='+ '
12915
12916 # NLS nuisances.
12917 LC_ALL=C
12918 export LC_ALL
12919 LANGUAGE=C
12920 export LANGUAGE
12921
12922 # CDPATH.
12923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12924
12925
12926 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12927 # ----------------------------------------
12928 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12929 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12930 # script with STATUS, using 1 if that was 0.
12931 as_fn_error ()
12932 {
12933   as_status=$1; test $as_status -eq 0 && as_status=1
12934   if test "$4"; then
12935     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12936     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12937   fi
12938   $as_echo "$as_me: error: $2" >&2
12939   as_fn_exit $as_status
12940 } # as_fn_error
12941
12942
12943 # as_fn_set_status STATUS
12944 # -----------------------
12945 # Set $? to STATUS, without forking.
12946 as_fn_set_status ()
12947 {
12948   return $1
12949 } # as_fn_set_status
12950
12951 # as_fn_exit STATUS
12952 # -----------------
12953 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12954 as_fn_exit ()
12955 {
12956   set +e
12957   as_fn_set_status $1
12958   exit $1
12959 } # as_fn_exit
12960
12961 # as_fn_unset VAR
12962 # ---------------
12963 # Portably unset VAR.
12964 as_fn_unset ()
12965 {
12966   { eval $1=; unset $1;}
12967 }
12968 as_unset=as_fn_unset
12969 # as_fn_append VAR VALUE
12970 # ----------------------
12971 # Append the text in VALUE to the end of the definition contained in VAR. Take
12972 # advantage of any shell optimizations that allow amortized linear growth over
12973 # repeated appends, instead of the typical quadratic growth present in naive
12974 # implementations.
12975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12976   eval 'as_fn_append ()
12977   {
12978     eval $1+=\$2
12979   }'
12980 else
12981   as_fn_append ()
12982   {
12983     eval $1=\$$1\$2
12984   }
12985 fi # as_fn_append
12986
12987 # as_fn_arith ARG...
12988 # ------------------
12989 # Perform arithmetic evaluation on the ARGs, and store the result in the
12990 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12991 # must be portable across $(()) and expr.
12992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12993   eval 'as_fn_arith ()
12994   {
12995     as_val=$(( $* ))
12996   }'
12997 else
12998   as_fn_arith ()
12999   {
13000     as_val=`expr "$@" || test $? -eq 1`
13001   }
13002 fi # as_fn_arith
13003
13004
13005 if expr a : '\(a\)' >/dev/null 2>&1 &&
13006    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13007   as_expr=expr
13008 else
13009   as_expr=false
13010 fi
13011
13012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13013   as_basename=basename
13014 else
13015   as_basename=false
13016 fi
13017
13018 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13019   as_dirname=dirname
13020 else
13021   as_dirname=false
13022 fi
13023
13024 as_me=`$as_basename -- "$0" ||
13025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13026          X"$0" : 'X\(//\)$' \| \
13027          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13028 $as_echo X/"$0" |
13029     sed '/^.*\/\([^/][^/]*\)\/*$/{
13030             s//\1/
13031             q
13032           }
13033           /^X\/\(\/\/\)$/{
13034             s//\1/
13035             q
13036           }
13037           /^X\/\(\/\).*/{
13038             s//\1/
13039             q
13040           }
13041           s/.*/./; q'`
13042
13043 # Avoid depending upon Character Ranges.
13044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13047 as_cr_digits='0123456789'
13048 as_cr_alnum=$as_cr_Letters$as_cr_digits
13049
13050 ECHO_C= ECHO_N= ECHO_T=
13051 case `echo -n x` in #(((((
13052 -n*)
13053   case `echo 'xy\c'` in
13054   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13055   xy)  ECHO_C='\c';;
13056   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13057        ECHO_T=' ';;
13058   esac;;
13059 *)
13060   ECHO_N='-n';;
13061 esac
13062
13063 rm -f conf$$ conf$$.exe conf$$.file
13064 if test -d conf$$.dir; then
13065   rm -f conf$$.dir/conf$$.file
13066 else
13067   rm -f conf$$.dir
13068   mkdir conf$$.dir 2>/dev/null
13069 fi
13070 if (echo >conf$$.file) 2>/dev/null; then
13071   if ln -s conf$$.file conf$$ 2>/dev/null; then
13072     as_ln_s='ln -s'
13073     # ... but there are two gotchas:
13074     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13075     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13076     # In both cases, we have to default to `cp -pR'.
13077     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13078       as_ln_s='cp -pR'
13079   elif ln conf$$.file conf$$ 2>/dev/null; then
13080     as_ln_s=ln
13081   else
13082     as_ln_s='cp -pR'
13083   fi
13084 else
13085   as_ln_s='cp -pR'
13086 fi
13087 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13088 rmdir conf$$.dir 2>/dev/null
13089
13090
13091 # as_fn_mkdir_p
13092 # -------------
13093 # Create "$as_dir" as a directory, including parents if necessary.
13094 as_fn_mkdir_p ()
13095 {
13096
13097   case $as_dir in #(
13098   -*) as_dir=./$as_dir;;
13099   esac
13100   test -d "$as_dir" || eval $as_mkdir_p || {
13101     as_dirs=
13102     while :; do
13103       case $as_dir in #(
13104       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13105       *) as_qdir=$as_dir;;
13106       esac
13107       as_dirs="'$as_qdir' $as_dirs"
13108       as_dir=`$as_dirname -- "$as_dir" ||
13109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13110          X"$as_dir" : 'X\(//\)[^/]' \| \
13111          X"$as_dir" : 'X\(//\)$' \| \
13112          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13113 $as_echo X"$as_dir" |
13114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13115             s//\1/
13116             q
13117           }
13118           /^X\(\/\/\)[^/].*/{
13119             s//\1/
13120             q
13121           }
13122           /^X\(\/\/\)$/{
13123             s//\1/
13124             q
13125           }
13126           /^X\(\/\).*/{
13127             s//\1/
13128             q
13129           }
13130           s/.*/./; q'`
13131       test -d "$as_dir" && break
13132     done
13133     test -z "$as_dirs" || eval "mkdir $as_dirs"
13134   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13135
13136
13137 } # as_fn_mkdir_p
13138 if mkdir -p . 2>/dev/null; then
13139   as_mkdir_p='mkdir -p "$as_dir"'
13140 else
13141   test -d ./-p && rmdir ./-p
13142   as_mkdir_p=false
13143 fi
13144
13145
13146 # as_fn_executable_p FILE
13147 # -----------------------
13148 # Test if FILE is an executable regular file.
13149 as_fn_executable_p ()
13150 {
13151   test -f "$1" && test -x "$1"
13152 } # as_fn_executable_p
13153 as_test_x='test -x'
13154 as_executable_p=as_fn_executable_p
13155
13156 # Sed expression to map a string onto a valid CPP name.
13157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13158
13159 # Sed expression to map a string onto a valid variable name.
13160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13161
13162
13163 exec 6>&1
13164 ## ----------------------------------- ##
13165 ## Main body of $CONFIG_STATUS script. ##
13166 ## ----------------------------------- ##
13167 _ASEOF
13168 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13169
13170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13171 # Save the log message, to keep $0 and so on meaningful, and to
13172 # report actual input values of CONFIG_FILES etc. instead of their
13173 # values after options handling.
13174 ac_log="
13175 This file was extended by freeradius $as_me $Id$, which was
13176 generated by GNU Autoconf 2.69.  Invocation command line was
13177
13178   CONFIG_FILES    = $CONFIG_FILES
13179   CONFIG_HEADERS  = $CONFIG_HEADERS
13180   CONFIG_LINKS    = $CONFIG_LINKS
13181   CONFIG_COMMANDS = $CONFIG_COMMANDS
13182   $ $0 $@
13183
13184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13185 "
13186
13187 _ACEOF
13188
13189 case $ac_config_files in *"
13190 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13191 esac
13192
13193 case $ac_config_headers in *"
13194 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13195 esac
13196
13197
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13199 # Files that config.status was made for.
13200 config_files="$ac_config_files"
13201 config_headers="$ac_config_headers"
13202 config_commands="$ac_config_commands"
13203
13204 _ACEOF
13205
13206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13207 ac_cs_usage="\
13208 \`$as_me' instantiates files and other configuration actions
13209 from templates according to the current configuration.  Unless the files
13210 and actions are specified as TAGs, all are instantiated by default.
13211
13212 Usage: $0 [OPTION]... [TAG]...
13213
13214   -h, --help       print this help, then exit
13215   -V, --version    print version number and configuration settings, then exit
13216       --config     print configuration, then exit
13217   -q, --quiet, --silent
13218                    do not print progress messages
13219   -d, --debug      don't remove temporary files
13220       --recheck    update $as_me by reconfiguring in the same conditions
13221       --file=FILE[:TEMPLATE]
13222                    instantiate the configuration file FILE
13223       --header=FILE[:TEMPLATE]
13224                    instantiate the configuration header FILE
13225
13226 Configuration files:
13227 $config_files
13228
13229 Configuration headers:
13230 $config_headers
13231
13232 Configuration commands:
13233 $config_commands
13234
13235 Report bugs to <http://bugs.freeradius.org>.
13236 freeradius home page: <http://www.freeradius.org>."
13237
13238 _ACEOF
13239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13241 ac_cs_version="\\
13242 freeradius config.status $Id$
13243 configured by $0, generated by GNU Autoconf 2.69,
13244   with options \\"\$ac_cs_config\\"
13245
13246 Copyright (C) 2012 Free Software Foundation, Inc.
13247 This config.status script is free software; the Free Software Foundation
13248 gives unlimited permission to copy, distribute and modify it."
13249
13250 ac_pwd='$ac_pwd'
13251 srcdir='$srcdir'
13252 test -n "\$AWK" || AWK=awk
13253 _ACEOF
13254
13255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256 # The default lists apply if the user does not specify any file.
13257 ac_need_defaults=:
13258 while test $# != 0
13259 do
13260   case $1 in
13261   --*=?*)
13262     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13263     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13264     ac_shift=:
13265     ;;
13266   --*=)
13267     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13268     ac_optarg=
13269     ac_shift=:
13270     ;;
13271   *)
13272     ac_option=$1
13273     ac_optarg=$2
13274     ac_shift=shift
13275     ;;
13276   esac
13277
13278   case $ac_option in
13279   # Handling of the options.
13280   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13281     ac_cs_recheck=: ;;
13282   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13283     $as_echo "$ac_cs_version"; exit ;;
13284   --config | --confi | --conf | --con | --co | --c )
13285     $as_echo "$ac_cs_config"; exit ;;
13286   --debug | --debu | --deb | --de | --d | -d )
13287     debug=: ;;
13288   --file | --fil | --fi | --f )
13289     $ac_shift
13290     case $ac_optarg in
13291     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13292     '') as_fn_error $? "missing file argument" ;;
13293     esac
13294     as_fn_append CONFIG_FILES " '$ac_optarg'"
13295     ac_need_defaults=false;;
13296   --header | --heade | --head | --hea )
13297     $ac_shift
13298     case $ac_optarg in
13299     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13300     esac
13301     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13302     ac_need_defaults=false;;
13303   --he | --h)
13304     # Conflict between --help and --header
13305     as_fn_error $? "ambiguous option: \`$1'
13306 Try \`$0 --help' for more information.";;
13307   --help | --hel | -h )
13308     $as_echo "$ac_cs_usage"; exit ;;
13309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13310   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13311     ac_cs_silent=: ;;
13312
13313   # This is an error.
13314   -*) as_fn_error $? "unrecognized option: \`$1'
13315 Try \`$0 --help' for more information." ;;
13316
13317   *) as_fn_append ac_config_targets " $1"
13318      ac_need_defaults=false ;;
13319
13320   esac
13321   shift
13322 done
13323
13324 ac_configure_extra_args=
13325
13326 if $ac_cs_silent; then
13327   exec 6>/dev/null
13328   ac_configure_extra_args="$ac_configure_extra_args --silent"
13329 fi
13330
13331 _ACEOF
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13333 if \$ac_cs_recheck; then
13334   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13335   shift
13336   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13337   CONFIG_SHELL='$SHELL'
13338   export CONFIG_SHELL
13339   exec "\$@"
13340 fi
13341
13342 _ACEOF
13343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13344 exec 5>>config.log
13345 {
13346   echo
13347   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13348 ## Running $as_me. ##
13349 _ASBOX
13350   $as_echo "$ac_log"
13351 } >&5
13352
13353 _ACEOF
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13355 _ACEOF
13356
13357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13358
13359 # Handling of arguments.
13360 for ac_config_target in $ac_config_targets
13361 do
13362   case $ac_config_target in
13363     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13364     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13365     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13366     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13367     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13368     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13369     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13370     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13371     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13372     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13373     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13374     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13375     "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13376     "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13377     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13378     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13379     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13380
13381   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13382   esac
13383 done
13384
13385
13386 # If the user did not use the arguments to specify the items to instantiate,
13387 # then the envvar interface is used.  Set only those that are not.
13388 # We use the long form for the default assignment because of an extremely
13389 # bizarre bug on SunOS 4.1.3.
13390 if $ac_need_defaults; then
13391   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13392   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13393   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13394 fi
13395
13396 # Have a temporary directory for convenience.  Make it in the build tree
13397 # simply because there is no reason against having it here, and in addition,
13398 # creating and moving files from /tmp can sometimes cause problems.
13399 # Hook for its removal unless debugging.
13400 # Note that there is a small window in which the directory will not be cleaned:
13401 # after its creation but before its name has been assigned to `$tmp'.
13402 $debug ||
13403 {
13404   tmp= ac_tmp=
13405   trap 'exit_status=$?
13406   : "${ac_tmp:=$tmp}"
13407   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13408 ' 0
13409   trap 'as_fn_exit 1' 1 2 13 15
13410 }
13411 # Create a (secure) tmp directory for tmp files.
13412
13413 {
13414   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13415   test -d "$tmp"
13416 }  ||
13417 {
13418   tmp=./conf$$-$RANDOM
13419   (umask 077 && mkdir "$tmp")
13420 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13421 ac_tmp=$tmp
13422
13423 # Set up the scripts for CONFIG_FILES section.
13424 # No need to generate them if there are no CONFIG_FILES.
13425 # This happens for instance with `./config.status config.h'.
13426 if test -n "$CONFIG_FILES"; then
13427
13428
13429 ac_cr=`echo X | tr X '\015'`
13430 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13431 # But we know of no other shell where ac_cr would be empty at this
13432 # point, so we can use a bashism as a fallback.
13433 if test "x$ac_cr" = x; then
13434   eval ac_cr=\$\'\\r\'
13435 fi
13436 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13437 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13438   ac_cs_awk_cr='\\r'
13439 else
13440   ac_cs_awk_cr=$ac_cr
13441 fi
13442
13443 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13444 _ACEOF
13445
13446
13447 {
13448   echo "cat >conf$$subs.awk <<_ACEOF" &&
13449   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13450   echo "_ACEOF"
13451 } >conf$$subs.sh ||
13452   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13453 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13454 ac_delim='%!_!# '
13455 for ac_last_try in false false false false false :; do
13456   . ./conf$$subs.sh ||
13457     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13458
13459   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13460   if test $ac_delim_n = $ac_delim_num; then
13461     break
13462   elif $ac_last_try; then
13463     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13464   else
13465     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13466   fi
13467 done
13468 rm -f conf$$subs.sh
13469
13470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13471 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13472 _ACEOF
13473 sed -n '
13474 h
13475 s/^/S["/; s/!.*/"]=/
13476 p
13477 g
13478 s/^[^!]*!//
13479 :repl
13480 t repl
13481 s/'"$ac_delim"'$//
13482 t delim
13483 :nl
13484 h
13485 s/\(.\{148\}\)..*/\1/
13486 t more1
13487 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13488 p
13489 n
13490 b repl
13491 :more1
13492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13493 p
13494 g
13495 s/.\{148\}//
13496 t nl
13497 :delim
13498 h
13499 s/\(.\{148\}\)..*/\1/
13500 t more2
13501 s/["\\]/\\&/g; s/^/"/; s/$/"/
13502 p
13503 b
13504 :more2
13505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13506 p
13507 g
13508 s/.\{148\}//
13509 t delim
13510 ' <conf$$subs.awk | sed '
13511 /^[^""]/{
13512   N
13513   s/\n//
13514 }
13515 ' >>$CONFIG_STATUS || ac_write_fail=1
13516 rm -f conf$$subs.awk
13517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13518 _ACAWK
13519 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13520   for (key in S) S_is_set[key] = 1
13521   FS = "\a"
13522
13523 }
13524 {
13525   line = $ 0
13526   nfields = split(line, field, "@")
13527   substed = 0
13528   len = length(field[1])
13529   for (i = 2; i < nfields; i++) {
13530     key = field[i]
13531     keylen = length(key)
13532     if (S_is_set[key]) {
13533       value = S[key]
13534       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13535       len += length(value) + length(field[++i])
13536       substed = 1
13537     } else
13538       len += 1 + keylen
13539   }
13540
13541   print line
13542 }
13543
13544 _ACAWK
13545 _ACEOF
13546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13548   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13549 else
13550   cat
13551 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13552   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13553 _ACEOF
13554
13555 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13556 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13557 # trailing colons and then remove the whole line if VPATH becomes empty
13558 # (actually we leave an empty line to preserve line numbers).
13559 if test "x$srcdir" = x.; then
13560   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13561 h
13562 s///
13563 s/^/:/
13564 s/[      ]*$/:/
13565 s/:\$(srcdir):/:/g
13566 s/:\${srcdir}:/:/g
13567 s/:@srcdir@:/:/g
13568 s/^:*//
13569 s/:*$//
13570 x
13571 s/\(=[   ]*\).*/\1/
13572 G
13573 s/\n//
13574 s/^[^=]*=[       ]*$//
13575 }'
13576 fi
13577
13578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13579 fi # test -n "$CONFIG_FILES"
13580
13581 # Set up the scripts for CONFIG_HEADERS section.
13582 # No need to generate them if there are no CONFIG_HEADERS.
13583 # This happens for instance with `./config.status Makefile'.
13584 if test -n "$CONFIG_HEADERS"; then
13585 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13586 BEGIN {
13587 _ACEOF
13588
13589 # Transform confdefs.h into an awk script `defines.awk', embedded as
13590 # here-document in config.status, that substitutes the proper values into
13591 # config.h.in to produce config.h.
13592
13593 # Create a delimiter string that does not exist in confdefs.h, to ease
13594 # handling of long lines.
13595 ac_delim='%!_!# '
13596 for ac_last_try in false false :; do
13597   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13598   if test -z "$ac_tt"; then
13599     break
13600   elif $ac_last_try; then
13601     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13602   else
13603     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13604   fi
13605 done
13606
13607 # For the awk script, D is an array of macro values keyed by name,
13608 # likewise P contains macro parameters if any.  Preserve backslash
13609 # newline sequences.
13610
13611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13612 sed -n '
13613 s/.\{148\}/&'"$ac_delim"'/g
13614 t rset
13615 :rset
13616 s/^[     ]*#[    ]*define[       ][      ]*/ /
13617 t def
13618 d
13619 :def
13620 s/\\$//
13621 t bsnl
13622 s/["\\]/\\&/g
13623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13624 D["\1"]=" \3"/p
13625 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13626 d
13627 :bsnl
13628 s/["\\]/\\&/g
13629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13630 D["\1"]=" \3\\\\\\n"\\/p
13631 t cont
13632 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13633 t cont
13634 d
13635 :cont
13636 n
13637 s/.\{148\}/&'"$ac_delim"'/g
13638 t clear
13639 :clear
13640 s/\\$//
13641 t bsnlc
13642 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13643 d
13644 :bsnlc
13645 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13646 b cont
13647 ' <confdefs.h | sed '
13648 s/'"$ac_delim"'/"\\\
13649 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13650
13651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13652   for (key in D) D_is_set[key] = 1
13653   FS = "\a"
13654 }
13655 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13656   line = \$ 0
13657   split(line, arg, " ")
13658   if (arg[1] == "#") {
13659     defundef = arg[2]
13660     mac1 = arg[3]
13661   } else {
13662     defundef = substr(arg[1], 2)
13663     mac1 = arg[2]
13664   }
13665   split(mac1, mac2, "(") #)
13666   macro = mac2[1]
13667   prefix = substr(line, 1, index(line, defundef) - 1)
13668   if (D_is_set[macro]) {
13669     # Preserve the white space surrounding the "#".
13670     print prefix "define", macro P[macro] D[macro]
13671     next
13672   } else {
13673     # Replace #undef with comments.  This is necessary, for example,
13674     # in the case of _POSIX_SOURCE, which is predefined and required
13675     # on some systems where configure will not decide to define it.
13676     if (defundef == "undef") {
13677       print "/*", prefix defundef, macro, "*/"
13678       next
13679     }
13680   }
13681 }
13682 { print }
13683 _ACAWK
13684 _ACEOF
13685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13686   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13687 fi # test -n "$CONFIG_HEADERS"
13688
13689
13690 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13691 shift
13692 for ac_tag
13693 do
13694   case $ac_tag in
13695   :[FHLC]) ac_mode=$ac_tag; continue;;
13696   esac
13697   case $ac_mode$ac_tag in
13698   :[FHL]*:*);;
13699   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13700   :[FH]-) ac_tag=-:-;;
13701   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13702   esac
13703   ac_save_IFS=$IFS
13704   IFS=:
13705   set x $ac_tag
13706   IFS=$ac_save_IFS
13707   shift
13708   ac_file=$1
13709   shift
13710
13711   case $ac_mode in
13712   :L) ac_source=$1;;
13713   :[FH])
13714     ac_file_inputs=
13715     for ac_f
13716     do
13717       case $ac_f in
13718       -) ac_f="$ac_tmp/stdin";;
13719       *) # Look for the file first in the build tree, then in the source tree
13720          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13721          # because $ac_f cannot contain `:'.
13722          test -f "$ac_f" ||
13723            case $ac_f in
13724            [\\/$]*) false;;
13725            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13726            esac ||
13727            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13728       esac
13729       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13730       as_fn_append ac_file_inputs " '$ac_f'"
13731     done
13732
13733     # Let's still pretend it is `configure' which instantiates (i.e., don't
13734     # use $as_me), people would be surprised to read:
13735     #    /* config.h.  Generated by config.status.  */
13736     configure_input='Generated from '`
13737           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13738         `' by configure.'
13739     if test x"$ac_file" != x-; then
13740       configure_input="$ac_file.  $configure_input"
13741       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13742 $as_echo "$as_me: creating $ac_file" >&6;}
13743     fi
13744     # Neutralize special characters interpreted by sed in replacement strings.
13745     case $configure_input in #(
13746     *\&* | *\|* | *\\* )
13747        ac_sed_conf_input=`$as_echo "$configure_input" |
13748        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13749     *) ac_sed_conf_input=$configure_input;;
13750     esac
13751
13752     case $ac_tag in
13753     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13754       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13755     esac
13756     ;;
13757   esac
13758
13759   ac_dir=`$as_dirname -- "$ac_file" ||
13760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13761          X"$ac_file" : 'X\(//\)[^/]' \| \
13762          X"$ac_file" : 'X\(//\)$' \| \
13763          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13764 $as_echo X"$ac_file" |
13765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13766             s//\1/
13767             q
13768           }
13769           /^X\(\/\/\)[^/].*/{
13770             s//\1/
13771             q
13772           }
13773           /^X\(\/\/\)$/{
13774             s//\1/
13775             q
13776           }
13777           /^X\(\/\).*/{
13778             s//\1/
13779             q
13780           }
13781           s/.*/./; q'`
13782   as_dir="$ac_dir"; as_fn_mkdir_p
13783   ac_builddir=.
13784
13785 case "$ac_dir" in
13786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13787 *)
13788   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13789   # A ".." for each directory in $ac_dir_suffix.
13790   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13791   case $ac_top_builddir_sub in
13792   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13793   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13794   esac ;;
13795 esac
13796 ac_abs_top_builddir=$ac_pwd
13797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13798 # for backward compatibility:
13799 ac_top_builddir=$ac_top_build_prefix
13800
13801 case $srcdir in
13802   .)  # We are building in place.
13803     ac_srcdir=.
13804     ac_top_srcdir=$ac_top_builddir_sub
13805     ac_abs_top_srcdir=$ac_pwd ;;
13806   [\\/]* | ?:[\\/]* )  # Absolute name.
13807     ac_srcdir=$srcdir$ac_dir_suffix;
13808     ac_top_srcdir=$srcdir
13809     ac_abs_top_srcdir=$srcdir ;;
13810   *) # Relative name.
13811     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13812     ac_top_srcdir=$ac_top_build_prefix$srcdir
13813     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13814 esac
13815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13816
13817
13818   case $ac_mode in
13819   :F)
13820   #
13821   # CONFIG_FILE
13822   #
13823
13824 _ACEOF
13825
13826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13827 # If the template does not know about datarootdir, expand it.
13828 # FIXME: This hack should be removed a few years after 2.60.
13829 ac_datarootdir_hack=; ac_datarootdir_seen=
13830 ac_sed_dataroot='
13831 /datarootdir/ {
13832   p
13833   q
13834 }
13835 /@datadir@/p
13836 /@docdir@/p
13837 /@infodir@/p
13838 /@localedir@/p
13839 /@mandir@/p'
13840 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13841 *datarootdir*) ac_datarootdir_seen=yes;;
13842 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13844 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13845 _ACEOF
13846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13847   ac_datarootdir_hack='
13848   s&@datadir@&$datadir&g
13849   s&@docdir@&$docdir&g
13850   s&@infodir@&$infodir&g
13851   s&@localedir@&$localedir&g
13852   s&@mandir@&$mandir&g
13853   s&\\\${datarootdir}&$datarootdir&g' ;;
13854 esac
13855 _ACEOF
13856
13857 # Neutralize VPATH when `$srcdir' = `.'.
13858 # Shell code in configure.ac might set extrasub.
13859 # FIXME: do we really want to maintain this feature?
13860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13861 ac_sed_extra="$ac_vpsub
13862 $extrasub
13863 _ACEOF
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 :t
13866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13867 s|@configure_input@|$ac_sed_conf_input|;t t
13868 s&@top_builddir@&$ac_top_builddir_sub&;t t
13869 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13870 s&@srcdir@&$ac_srcdir&;t t
13871 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13872 s&@top_srcdir@&$ac_top_srcdir&;t t
13873 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13874 s&@builddir@&$ac_builddir&;t t
13875 s&@abs_builddir@&$ac_abs_builddir&;t t
13876 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13877 $ac_datarootdir_hack
13878 "
13879 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13880   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13881
13882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13883   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13884   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13885       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13887 which seems to be undefined.  Please make sure it is defined" >&5
13888 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13889 which seems to be undefined.  Please make sure it is defined" >&2;}
13890
13891   rm -f "$ac_tmp/stdin"
13892   case $ac_file in
13893   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13894   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13895   esac \
13896   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13897  ;;
13898   :H)
13899   #
13900   # CONFIG_HEADER
13901   #
13902   if test x"$ac_file" != x-; then
13903     {
13904       $as_echo "/* $configure_input  */" \
13905       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13906     } >"$ac_tmp/config.h" \
13907       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13908     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13909       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13910 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13911     else
13912       rm -f "$ac_file"
13913       mv "$ac_tmp/config.h" "$ac_file" \
13914         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13915     fi
13916   else
13917     $as_echo "/* $configure_input  */" \
13918       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13919       || as_fn_error $? "could not create -" "$LINENO" 5
13920   fi
13921  ;;
13922
13923   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13924 $as_echo "$as_me: executing $ac_file commands" >&6;}
13925  ;;
13926   esac
13927
13928
13929   case $ac_file$ac_mode in
13930     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13931     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13932     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13933     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13934
13935   esac
13936 done # for ac_tag
13937
13938
13939 as_fn_exit 0
13940 _ACEOF
13941 ac_clean_files=$ac_clean_files_save
13942
13943 test $ac_write_fail = 0 ||
13944   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13945
13946
13947 # configure is writing to config.log, and then calls config.status.
13948 # config.status does its own redirection, appending to config.log.
13949 # Unfortunately, on DOS this fails, as config.log is still kept open
13950 # by configure, so config.status won't be able to write to it; its
13951 # output is simply discarded.  So we exec the FD to /dev/null,
13952 # effectively closing config.log, so it can be properly (re)opened and
13953 # appended to by config.status.  When coming back to configure, we
13954 # need to make the FD available again.
13955 if test "$no_create" != yes; then
13956   ac_cs_success=:
13957   ac_config_status_args=
13958   test "$silent" = yes &&
13959     ac_config_status_args="$ac_config_status_args --quiet"
13960   exec 5>/dev/null
13961   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13962   exec 5>>config.log
13963   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13964   # would make configure fail if this is the last instruction.
13965   $ac_cs_success || as_fn_exit 1
13966 fi
13967
13968 #
13969 # CONFIG_SUBDIRS section.
13970 #
13971 if test "$no_recursion" != yes; then
13972
13973   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13974   # so they do not pile up.
13975   ac_sub_configure_args=
13976   ac_prev=
13977   eval "set x $ac_configure_args"
13978   shift
13979   for ac_arg
13980   do
13981     if test -n "$ac_prev"; then
13982       ac_prev=
13983       continue
13984     fi
13985     case $ac_arg in
13986     -cache-file | --cache-file | --cache-fil | --cache-fi \
13987     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13988       ac_prev=cache_file ;;
13989     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13990     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13991     | --c=*)
13992       ;;
13993     --config-cache | -C)
13994       ;;
13995     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13996       ac_prev=srcdir ;;
13997     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13998       ;;
13999     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14000       ac_prev=prefix ;;
14001     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14002       ;;
14003     --disable-option-checking)
14004       ;;
14005     *)
14006       case $ac_arg in
14007       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14008       esac
14009       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14010     esac
14011   done
14012
14013   # Always prepend --prefix to ensure using the same prefix
14014   # in subdir configurations.
14015   ac_arg="--prefix=$prefix"
14016   case $ac_arg in
14017   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14018   esac
14019   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14020
14021   # Pass --silent
14022   if test "$silent" = yes; then
14023     ac_sub_configure_args="--silent $ac_sub_configure_args"
14024   fi
14025
14026   # Always prepend --disable-option-checking to silence warnings, since
14027   # different subdirs can have different --enable and --with options.
14028   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14029
14030   ac_popdir=`pwd`
14031   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14032
14033     # Do not complain, so a configure script can configure whichever
14034     # parts of a large source tree are present.
14035     test -d "$srcdir/$ac_dir" || continue
14036
14037     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14038     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14039     $as_echo "$ac_msg" >&6
14040     as_dir="$ac_dir"; as_fn_mkdir_p
14041     ac_builddir=.
14042
14043 case "$ac_dir" in
14044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14045 *)
14046   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14047   # A ".." for each directory in $ac_dir_suffix.
14048   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14049   case $ac_top_builddir_sub in
14050   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14052   esac ;;
14053 esac
14054 ac_abs_top_builddir=$ac_pwd
14055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14056 # for backward compatibility:
14057 ac_top_builddir=$ac_top_build_prefix
14058
14059 case $srcdir in
14060   .)  # We are building in place.
14061     ac_srcdir=.
14062     ac_top_srcdir=$ac_top_builddir_sub
14063     ac_abs_top_srcdir=$ac_pwd ;;
14064   [\\/]* | ?:[\\/]* )  # Absolute name.
14065     ac_srcdir=$srcdir$ac_dir_suffix;
14066     ac_top_srcdir=$srcdir
14067     ac_abs_top_srcdir=$srcdir ;;
14068   *) # Relative name.
14069     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14070     ac_top_srcdir=$ac_top_build_prefix$srcdir
14071     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14072 esac
14073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14074
14075
14076     cd "$ac_dir"
14077
14078     # Check for guested configure; otherwise get Cygnus style configure.
14079     if test -f "$ac_srcdir/configure.gnu"; then
14080       ac_sub_configure=$ac_srcdir/configure.gnu
14081     elif test -f "$ac_srcdir/configure"; then
14082       ac_sub_configure=$ac_srcdir/configure
14083     elif test -f "$ac_srcdir/configure.in"; then
14084       # This should be Cygnus configure.
14085       ac_sub_configure=$ac_aux_dir/configure
14086     else
14087       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14089       ac_sub_configure=
14090     fi
14091
14092     # The recursion is here.
14093     if test -n "$ac_sub_configure"; then
14094       # Make the cache file name correct relative to the subdirectory.
14095       case $cache_file in
14096       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14097       *) # Relative name.
14098         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14099       esac
14100
14101       { $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
14102 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14103       # The eval makes quoting arguments work.
14104       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14105            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14106         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14107     fi
14108
14109     cd "$ac_popdir"
14110   done
14111 fi
14112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14113   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14115 fi
14116
14117