Merge pull request #807 from Feh/3.0.4rc2-compile-fixes
[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_LDFLAGS
642 OPENSSL_LIBS
643 LIBREADLINE
644 TALLOC_LDFLAGS
645 TALLOC_LIBS
646 DIRNAME
647 LOCATE
648 AUTOHEADER
649 AUTOCONF
650 ACLOCAL
651 RUSERS
652 SNMPWALK
653 SNMPGET
654 PERL
655 modconfdir
656 dictdir
657 raddbdir
658 radacctdir
659 logdir
660 GIT
661 FR_MAKEFLAGS
662 MAKE
663 GMAKE
664 clang_path
665 RANLIB
666 EGREP
667 GREP
668 CPP
669 ac_ct_CXX
670 CXXFLAGS
671 CXX
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 RADIUSD_VERSION_STRING
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_developer
734 enable_largefile
735 enable_strict_dependencies
736 enable_werror
737 with_docdir
738 with_logdir
739 with_radacctdir
740 with_raddbdir
741 with_dictdir
742 with_ascend_binary
743 with_threads
744 with_tcp
745 with_vmps
746 with_dhcp
747 with_static_modules
748 with_shared_libs
749 with_modules
750 with_experimental_modules
751 with_udpfromto
752 with_rlm_FOO_lib_dir
753 with_rlm_FOO_include_dir
754 with_openssl
755 with_openssl_lib_dir
756 with_openssl_include_dir
757 with_talloc_lib_dir
758 with_talloc_include_dir
759 with_pcap_lib_dir
760 with_pcap_include_dir
761 with_collectdclient_lib_dir
762 with_collectdclient_include_dir
763 with_execinfo_lib_dir
764 with_execinfo_include_dir
765 with_pcre_lib_dir
766 with_pcre_include_dir
767 with_regex
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CXX
778 CXXFLAGS
779 CCC
780 CPP'
781 ac_subdirs_all='$mysubdirs'
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *=)   ac_optarg= ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$as_myself" : 'X\(//\)[^/]' \| \
1262          X"$as_myself" : 'X\(//\)$' \| \
1263          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking ...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR            user executables [EPREFIX/bin]
1356   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR        program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR            object code libraries [EPREFIX/lib]
1362   --includedir=DIR        C header files [PREFIX/include]
1363   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR           info documentation [DATAROOTDIR/info]
1367   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR            man documentation [DATAROOTDIR/man]
1369   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1370   --htmldir=DIR           html documentation [DOCDIR]
1371   --dvidir=DIR            dvi documentation [DOCDIR]
1372   --pdfdir=DIR            pdf documentation [DOCDIR]
1373   --psdir=DIR             ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of freeradius $Id$:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-option-checking  ignore unrecognized --enable/--with options
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-developer      enables features of interest to developers.
1396   --disable-largefile     omit support for large files
1397   --enable-strict-dependencies  fail configure on lack of module dependancy.
1398   --enable-werror         causes the build to fail if any warnings are generated.
1399
1400 Optional Packages:
1401   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1402   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1403   --with-docdir=DIR       directory for documentation DATADIR/doc/freeradius
1404   --with-logdir=DIR       directory for logfiles LOCALSTATEDIR/log/radius
1405   --with-radacctdir=DIR   directory for detail files LOGDIR/radacct
1406   --with-raddbdir=DIR     directory for config files SYSCONFDIR/raddb
1407   --with-dictdir=DIR      directory for dictionary files DATAROOTDIR/freeradius
1408   --with-ascend-binary    include support for Ascend binary filter attributes (default=yes)
1409   --with-threads          use threads, if available.  (default=yes)
1410   --with-tcp              compile in TCP support. (default=yes)
1411   --with-vmps             compile in VMPS support. (default=yes)
1412   --with-dhcp             compile in DHCP support. (default=yes)
1413   --with-static-modules=QUOTED-MODULE-LIST
1414   --with-shared-libs      build dynamic libraries and link against them.
1415                           (default=yes)
1416   --with-modules=QUOTED-MODULE-LIST
1417   --with-experimental-modules
1418                           use experimental and unstable modules. (default=no,
1419                           unless --enable-developer=yes)
1420   --with-udpfromto        compile in UDPFROMTO support. (default=yes)
1421   --with-rlm-FOO-lib-dir=DIR
1422                           directory in which to look for library files used by
1423                           module FOO
1424   --with-rlm-FOO-include-dir=DIR
1425                           directory in which to look for include files used by
1426                           module FOO
1427   --with-openssl          use OpenSSL. (default=yes)
1428   --with-openssl-lib-dir=DIR
1429                           directory to look for OpenSSL library files
1430   --with-openssl-include-dir=DIR
1431                           directory to look for OpenSSL include files
1432   --with-talloc-lib-dir=DIR
1433                           directory in which to look for talloc library files
1434   --with-talloc-include-dir=DIR
1435                           directory in which to look for talloc include files
1436   --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1437   --with-pcap-include-dir=DIR
1438                           directory in which to look for pcap include files
1439   --with-collectdclient-lib-dir=DIR
1440                           directory in which to look for collectdclient
1441                           library files
1442   --with-collectdclient-include-dir=DIR
1443                           directory in which to look for collectdclient
1444                           include files
1445   --with-execinfo-lib-dir=DIR
1446                           directory in which to look for execinfo library
1447                           files
1448   --with-execinfo-include-dir=DIR
1449                           directory in which to look for execinfo include
1450                           files
1451   --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1452   --with-pcre-include-dir=DIR
1453                           directory in which to look for pcre include files
1454   --with-regex            Whether to build with regular expressions
1455                           (default=yes)
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   LIBS        libraries to pass to the linker, e.g. -l<library>
1463   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <http://bugs.freeradius.org>.
1473 freeradius home page: <http://www.freeradius.org>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" ||
1482       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483       continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 freeradius configure $Id$
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543   exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext
1557   if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_compile") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest.$ac_objext; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581         ac_retval=1
1582 fi
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584   as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext
1595   if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_compile") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_cxx_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest.$ac_objext; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_cxx_try_compile
1625
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } > conftest.i && {
1648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649          test ! -s conftest.err
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656     ac_retval=1
1657 fi
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_cpp
1662
1663 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1667 # accordingly.
1668 ac_fn_c_check_header_mongrel ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if eval \${$3+:} false; then :
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 fi
1677 eval ac_res=\$$3
1678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 else
1681   # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690   ac_header_compiler=yes
1691 else
1692   ac_header_compiler=no
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1697
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h.  */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_cpp "$LINENO"; then :
1706   ac_header_preproc=yes
1707 else
1708   ac_header_preproc=no
1709 fi
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1713
1714 # So?  What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716   yes:no: )
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721     ;;
1722   no:yes:* )
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ----------------------------------------- ##
1734 ## Report this to http://bugs.freeradius.org ##
1735 ## ----------------------------------------- ##"
1736      ) | sed "s/^/$as_me: WARNING:     /" >&2
1737     ;;
1738 esac
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   eval "$3=\$ac_header_compiler"
1745 fi
1746 eval ac_res=\$$3
1747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 fi
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_c_check_header_mongrel
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772   { { case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_try") 2>&5
1779   ac_status=$?
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; }; }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: program exited with status $ac_status" >&5
1785        $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788        ac_retval=$ac_status
1789 fi
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_run
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          test -x conftest$ac_exeext
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861         ac_retval=1
1862 fi
1863   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865   # interfere with the next link command; also delete a directory that is
1866   # left behind by Apple's compiler.  We do this before executing the actions.
1867   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_link
1872
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882   $as_echo_n "(cached) " >&6
1883 else
1884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1888 #define $2 innocuous_$2
1889
1890 /* System header to define __stub macros and hopefully few prototypes,
1891     which can conflict with char $2 (); below.
1892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893     <limits.h> exists even on freestanding compilers.  */
1894
1895 #ifdef __STDC__
1896 # include <limits.h>
1897 #else
1898 # include <assert.h>
1899 #endif
1900
1901 #undef $2
1902
1903 /* Override any GCC internal prototype to avoid an error.
1904    Use char because int might match the return type of a GCC
1905    builtin and then its argument prototype would still apply.  */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911     to always fail with ENOSYS.  Some functions are actually named
1912     something starting with __ and the normal name is an alias.  */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1916
1917 int
1918 main ()
1919 {
1920 return $2 ();
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"; then :
1926   eval "$3=yes"
1927 else
1928   eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext \
1931     conftest$ac_exeext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_func
1939
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   eval "$3=no"
1953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h.  */
1955 $4
1956 int
1957 main ()
1958 {
1959 if (sizeof ($2))
1960          return 0;
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
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
1980 else
1981   eval "$3=yes"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_type
1993
1994 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1995 # ---------------------------------------------
1996 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1997 # accordingly.
1998 ac_fn_c_check_decl ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   as_decl_name=`echo $2|sed 's/ *(.*//'`
2002   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2005 if eval \${$3+:} false; then :
2006   $as_echo_n "(cached) " >&6
2007 else
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 #ifndef $as_decl_name
2015 #ifdef __cplusplus
2016   (void) $as_decl_use;
2017 #else
2018   (void) $as_decl_name;
2019 #endif
2020 #endif
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$3=yes"
2028 else
2029   eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_decl
2039 cat >config.log <<_ACEOF
2040 This file contains any messages produced by compilers while
2041 running configure, to aid debugging if configure makes a mistake.
2042
2043 It was created by freeradius $as_me $Id$, which was
2044 generated by GNU Autoconf 2.69.  Invocation command line was
2045
2046   $ $0 $@
2047
2048 _ACEOF
2049 exec 5>>config.log
2050 {
2051 cat <<_ASUNAME
2052 ## --------- ##
2053 ## Platform. ##
2054 ## --------- ##
2055
2056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2061
2062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2064
2065 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2066 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2069 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2070 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2071 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2072
2073 _ASUNAME
2074
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080     $as_echo "PATH: $as_dir"
2081   done
2082 IFS=$as_save_IFS
2083
2084 } >&5
2085
2086 cat >&5 <<_ACEOF
2087
2088
2089 ## ----------- ##
2090 ## Core tests. ##
2091 ## ----------- ##
2092
2093 _ACEOF
2094
2095
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_configure_args=
2102 ac_configure_args0=
2103 ac_configure_args1=
2104 ac_must_keep_next=false
2105 for ac_pass in 1 2
2106 do
2107   for ac_arg
2108   do
2109     case $ac_arg in
2110     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112     | -silent | --silent | --silen | --sile | --sil)
2113       continue ;;
2114     *\'*)
2115       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116     esac
2117     case $ac_pass in
2118     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2119     2)
2120       as_fn_append ac_configure_args1 " '$ac_arg'"
2121       if test $ac_must_keep_next = true; then
2122         ac_must_keep_next=false # Got value, back to normal.
2123       else
2124         case $ac_arg in
2125           *=* | --config-cache | -C | -disable-* | --disable-* \
2126           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128           | -with-* | --with-* | -without-* | --without-* | --x)
2129             case "$ac_configure_args0 " in
2130               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131             esac
2132             ;;
2133           -* ) ac_must_keep_next=true ;;
2134         esac
2135       fi
2136       as_fn_append ac_configure_args " '$ac_arg'"
2137       ;;
2138     esac
2139   done
2140 done
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2143
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log.  We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150   # Save into config.log some information that might help in debugging.
2151   {
2152     echo
2153
2154     $as_echo "## ---------------- ##
2155 ## Cache variables. ##
2156 ## ---------------- ##"
2157     echo
2158     # The following way of writing the cache mishandles newlines in values,
2159 (
2160   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161     eval ac_val=\$$ac_var
2162     case $ac_val in #(
2163     *${as_nl}*)
2164       case $ac_var in #(
2165       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167       esac
2168       case $ac_var in #(
2169       _ | IFS | as_nl) ;; #(
2170       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171       *) { eval $ac_var=; unset $ac_var;} ;;
2172       esac ;;
2173     esac
2174   done
2175   (set) 2>&1 |
2176     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177     *${as_nl}ac_space=\ *)
2178       sed -n \
2179         "s/'\''/'\''\\\\'\'''\''/g;
2180           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181       ;; #(
2182     *)
2183       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184       ;;
2185     esac |
2186     sort
2187 )
2188     echo
2189
2190     $as_echo "## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##"
2193     echo
2194     for ac_var in $ac_subst_vars
2195     do
2196       eval ac_val=\$$ac_var
2197       case $ac_val in
2198       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199       esac
2200       $as_echo "$ac_var='\''$ac_val'\''"
2201     done | sort
2202     echo
2203
2204     if test -n "$ac_subst_files"; then
2205       $as_echo "## ------------------- ##
2206 ## File substitutions. ##
2207 ## ------------------- ##"
2208       echo
2209       for ac_var in $ac_subst_files
2210       do
2211         eval ac_val=\$$ac_var
2212         case $ac_val in
2213         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214         esac
2215         $as_echo "$ac_var='\''$ac_val'\''"
2216       done | sort
2217       echo
2218     fi
2219
2220     if test -s confdefs.h; then
2221       $as_echo "## ----------- ##
2222 ## confdefs.h. ##
2223 ## ----------- ##"
2224       echo
2225       cat confdefs.h
2226       echo
2227     fi
2228     test "$ac_signal" != 0 &&
2229       $as_echo "$as_me: caught signal $ac_signal"
2230     $as_echo "$as_me: exit $exit_status"
2231   } >&5
2232   rm -f core *.core core.conftest.* &&
2233     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234     exit $exit_status
2235 ' 0
2236 for ac_signal in 1 2 13 15; do
2237   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 done
2239 ac_signal=0
2240
2241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2242 rm -f -r conftest* confdefs.h
2243
2244 $as_echo "/* confdefs.h */" > confdefs.h
2245
2246 # Predefined preprocessor variables.
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_NAME "$PACKAGE_NAME"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_STRING "$PACKAGE_STRING"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_URL "$PACKAGE_URL"
2270 _ACEOF
2271
2272
2273 # Let the site file select an alternate cache file if it wants to.
2274 # Prefer an explicitly selected file to automatically selected ones.
2275 ac_site_file1=NONE
2276 ac_site_file2=NONE
2277 if test -n "$CONFIG_SITE"; then
2278   # We do not want a PATH search for config.site.
2279   case $CONFIG_SITE in #((
2280     -*)  ac_site_file1=./$CONFIG_SITE;;
2281     */*) ac_site_file1=$CONFIG_SITE;;
2282     *)   ac_site_file1=./$CONFIG_SITE;;
2283   esac
2284 elif test "x$prefix" != xNONE; then
2285   ac_site_file1=$prefix/share/config.site
2286   ac_site_file2=$prefix/etc/config.site
2287 else
2288   ac_site_file1=$ac_default_prefix/share/config.site
2289   ac_site_file2=$ac_default_prefix/etc/config.site
2290 fi
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2292 do
2293   test "x$ac_site_file" = xNONE && continue
2294   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297     sed 's/^/| /' "$ac_site_file" >&5
2298     . "$ac_site_file" \
2299       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 as_fn_error $? "failed to load site script $ac_site_file
2302 See \`config.log' for more details" "$LINENO" 5; }
2303   fi
2304 done
2305
2306 if test -r "$cache_file"; then
2307   # Some versions of bash will fail to source /dev/null (special files
2308   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2309   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2310     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311 $as_echo "$as_me: loading cache $cache_file" >&6;}
2312     case $cache_file in
2313       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314       *)                      . "./$cache_file";;
2315     esac
2316   fi
2317 else
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319 $as_echo "$as_me: creating cache $cache_file" >&6;}
2320   >$cache_file
2321 fi
2322
2323 # Check that the precious variables saved in the cache have kept the same
2324 # value.
2325 ac_cache_corrupted=false
2326 for ac_var in $ac_precious_vars; do
2327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328   eval ac_new_set=\$ac_env_${ac_var}_set
2329   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330   eval ac_new_val=\$ac_env_${ac_var}_value
2331   case $ac_old_set,$ac_new_set in
2332     set,)
2333       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335       ac_cache_corrupted=: ;;
2336     ,set)
2337       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339       ac_cache_corrupted=: ;;
2340     ,);;
2341     *)
2342       if test "x$ac_old_val" != "x$ac_new_val"; then
2343         # differences in whitespace do not lead to failure.
2344         ac_old_val_w=`echo x $ac_old_val`
2345         ac_new_val_w=`echo x $ac_new_val`
2346         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349           ac_cache_corrupted=:
2350         else
2351           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353           eval $ac_var=\$ac_old_val
2354         fi
2355         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2356 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2357         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2358 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2359       fi;;
2360   esac
2361   # Pass precious variables to config.status.
2362   if test "$ac_new_set" = set; then
2363     case $ac_new_val in
2364     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365     *) ac_arg=$ac_var=$ac_new_val ;;
2366     esac
2367     case " $ac_configure_args " in
2368       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2369       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370     esac
2371   fi
2372 done
2373 if $ac_cache_corrupted; then
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2379 fi
2380 ## -------------------- ##
2381 ## Main body of script. ##
2382 ## -------------------- ##
2383
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390
2391
2392 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2406 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2407 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2408
2409 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2410 -v minor="$RADIUSD_MINOR_VERSION" \
2411 -v incrm="$RADIUSD_INCRM_VERSION" \
2412 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2413
2414 RADIUSD_VERSION_STRING=`cat VERSION`
2415
2416
2417
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2421 _ACEOF
2422
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2426 _ACEOF
2427
2428
2429
2430 # Check whether --enable-developer was given.
2431 if test "${enable_developer+set}" = set; then :
2432   enableval=$enable_developer;  case "$enableval" in
2433   no)
2434     developer=no
2435     ;;
2436   *)
2437     developer=yes
2438   esac
2439
2440 fi
2441
2442
2443 if test -d $srcdir/.git; then
2444   if test "x$developer" != "xno"; then
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2446 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2447     developer="yes"
2448   fi
2449 fi
2450
2451 if test "x$developer" = "xyes"; then
2452   : ${CFLAGS=-g3}
2453 fi
2454
2455
2456 ac_aux_dir=
2457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458   if test -f "$ac_dir/install-sh"; then
2459     ac_aux_dir=$ac_dir
2460     ac_install_sh="$ac_aux_dir/install-sh -c"
2461     break
2462   elif test -f "$ac_dir/install.sh"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/install.sh -c"
2465     break
2466   elif test -f "$ac_dir/shtool"; then
2467     ac_aux_dir=$ac_dir
2468     ac_install_sh="$ac_aux_dir/shtool install -c"
2469     break
2470   fi
2471 done
2472 if test -z "$ac_aux_dir"; then
2473   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2474 fi
2475
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2483
2484
2485 # Make sure we can run config.sub.
2486 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2487   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2490 $as_echo_n "checking build system type... " >&6; }
2491 if ${ac_cv_build+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   ac_build_alias=$build_alias
2495 test "x$ac_build_alias" = x &&
2496   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2497 test "x$ac_build_alias" = x &&
2498   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2499 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2500   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2501
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2504 $as_echo "$ac_cv_build" >&6; }
2505 case $ac_cv_build in
2506 *-*-*) ;;
2507 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2508 esac
2509 build=$ac_cv_build
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_build
2512 shift
2513 build_cpu=$1
2514 build_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 build_os=$*
2519 IFS=$ac_save_IFS
2520 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2521
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2524 $as_echo_n "checking host system type... " >&6; }
2525 if ${ac_cv_host+:} false; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   if test "x$host_alias" = x; then
2529   ac_cv_host=$ac_cv_build
2530 else
2531   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2532     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2533 fi
2534
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2537 $as_echo "$ac_cv_host" >&6; }
2538 case $ac_cv_host in
2539 *-*-*) ;;
2540 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2541 esac
2542 host=$ac_cv_host
2543 ac_save_IFS=$IFS; IFS='-'
2544 set x $ac_cv_host
2545 shift
2546 host_cpu=$1
2547 host_vendor=$2
2548 shift; shift
2549 # Remember, the first character of IFS is used to create $*,
2550 # except with old shells:
2551 host_os=$*
2552 IFS=$ac_save_IFS
2553 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2554
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2557 $as_echo_n "checking target system type... " >&6; }
2558 if ${ac_cv_target+:} false; then :
2559   $as_echo_n "(cached) " >&6
2560 else
2561   if test "x$target_alias" = x; then
2562   ac_cv_target=$ac_cv_host
2563 else
2564   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2565     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2566 fi
2567
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2570 $as_echo "$ac_cv_target" >&6; }
2571 case $ac_cv_target in
2572 *-*-*) ;;
2573 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2574 esac
2575 target=$ac_cv_target
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_target
2578 shift
2579 target_cpu=$1
2580 target_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 target_os=$*
2585 IFS=$ac_save_IFS
2586 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2587
2588
2589 # The aliases save the names the user supplied, while $host etc.
2590 # will get canonicalized.
2591 test -n "$target_alias" &&
2592   test "$program_prefix$program_suffix$program_transform_name" = \
2593     NONENONEs,x,x, &&
2594   program_prefix=${target_alias}-
2595
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test -n "$CC"; then
2611   ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618     for ac_exec_ext in '' $ac_executable_extensions; do
2619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625   done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640 fi
2641 if test -z "$ac_cv_prog_CC"; then
2642   ac_ct_CC=$CC
2643   # Extract the first word of "gcc", so it can be a program name with args.
2644 set dummy gcc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$ac_ct_CC"; then
2651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_ac_ct_CC="gcc"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2673 $as_echo "$ac_ct_CC" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679   if test "x$ac_ct_CC" = x; then
2680     CC=""
2681   else
2682     case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688     CC=$ac_ct_CC
2689   fi
2690 else
2691   CC="$ac_cv_prog_CC"
2692 fi
2693
2694 if test -z "$CC"; then
2695           if test -n "$ac_tool_prefix"; then
2696     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$CC"; then
2704   ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713     ac_cv_prog_CC="${ac_tool_prefix}cc"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   fi
2734 fi
2735 if test -z "$CC"; then
2736   # Extract the first word of "cc", so it can be a program name with args.
2737 set dummy cc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   if test -n "$CC"; then
2744   ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746   ac_prog_rejected=no
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752     for ac_exec_ext in '' $ac_executable_extensions; do
2753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2755        ac_prog_rejected=yes
2756        continue
2757      fi
2758     ac_cv_prog_CC="cc"
2759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763   done
2764 IFS=$as_save_IFS
2765
2766 if test $ac_prog_rejected = yes; then
2767   # We found a bogon in the path, so make sure we never use it.
2768   set dummy $ac_cv_prog_CC
2769   shift
2770   if test $# != 0; then
2771     # We chose a different compiler from the bogus one.
2772     # However, it has the same basename, so the bogon will be chosen
2773     # first if we set CC to just the basename; use the full file name.
2774     shift
2775     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2776   fi
2777 fi
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2784 else
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$CC"; then
2792   if test -n "$ac_tool_prefix"; then
2793   for ac_prog in cl.exe
2794   do
2795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CC+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810     for ac_exec_ext in '' $ac_executable_extensions; do
2811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817   done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832     test -n "$CC" && break
2833   done
2834 fi
2835 if test -z "$CC"; then
2836   ac_ct_CC=$CC
2837   for ac_prog in cl.exe
2838 do
2839   # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$ac_ct_CC"; then
2847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856     ac_cv_prog_ac_ct_CC="$ac_prog"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869 $as_echo "$ac_ct_CC" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876   test -n "$ac_ct_CC" && break
2877 done
2878
2879   if test "x$ac_ct_CC" = x; then
2880     CC=""
2881   else
2882     case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888     CC=$ac_ct_CC
2889   fi
2890 fi
2891
2892 fi
2893
2894
2895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error $? "no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details" "$LINENO" 5; }
2899
2900 # Provide some information about the compiler.
2901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2902 set X $ac_compile
2903 ac_compiler=$2
2904 for ac_option in --version -v -V -qversion; do
2905   { { ac_try="$ac_compiler $ac_option >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2913   ac_status=$?
2914   if test -s conftest.err; then
2915     sed '10a\
2916 ... rest of stderr output deleted ...
2917          10q' conftest.err >conftest.er1
2918     cat conftest.er1 >&5
2919   fi
2920   rm -f conftest.er1 conftest.err
2921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922   test $ac_status = 0; }
2923 done
2924
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 ac_clean_files_save=$ac_clean_files
2937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2938 # Try to create an executable without -o first, disregard a.out.
2939 # It will help us diagnose broken compilers, and finding out an intuition
2940 # of exeext.
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2942 $as_echo_n "checking whether the C compiler works... " >&6; }
2943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2944
2945 # The possible output files:
2946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2947
2948 ac_rmfiles=
2949 for ac_file in $ac_files
2950 do
2951   case $ac_file in
2952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2953     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2954   esac
2955 done
2956 rm -f $ac_rmfiles
2957
2958 if { { ac_try="$ac_link_default"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 $as_echo "$ac_try_echo"; } >&5
2965   (eval "$ac_link_default") 2>&5
2966   ac_status=$?
2967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968   test $ac_status = 0; }; then :
2969   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2971 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2972 # so that the user can short-circuit this test for compilers unknown to
2973 # Autoconf.
2974 for ac_file in $ac_files ''
2975 do
2976   test -f "$ac_file" || continue
2977   case $ac_file in
2978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2979         ;;
2980     [ab].out )
2981         # We found the default executable, but exeext='' is most
2982         # certainly right.
2983         break;;
2984     *.* )
2985         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2986         then :; else
2987            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988         fi
2989         # We set ac_cv_exeext here because the later test for it is not
2990         # safe: cross compilers may not add the suffix if given an `-o'
2991         # argument, so we may need to know it at that point already.
2992         # Even if this section looks crufty: it has the advantage of
2993         # actually working.
2994         break;;
2995     * )
2996         break;;
2997   esac
2998 done
2999 test "$ac_cv_exeext" = no && ac_cv_exeext=
3000
3001 else
3002   ac_file=''
3003 fi
3004 if test -z "$ac_file"; then :
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 $as_echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error 77 "C compiler cannot create executables
3013 See \`config.log' for more details" "$LINENO" 5; }
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3019 $as_echo_n "checking for C compiler default output file name... " >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3021 $as_echo "$ac_file" >&6; }
3022 ac_exeext=$ac_cv_exeext
3023
3024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3027 $as_echo_n "checking for suffix of executables... " >&6; }
3028 if { { ac_try="$ac_link"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035   (eval "$ac_link") 2>&5
3036   ac_status=$?
3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038   test $ac_status = 0; }; then :
3039   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3040 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3041 # work properly (i.e., refer to `conftest.exe'), while it won't with
3042 # `rm'.
3043 for ac_file in conftest.exe conftest conftest.*; do
3044   test -f "$ac_file" || continue
3045   case $ac_file in
3046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048           break;;
3049     * ) break;;
3050   esac
3051 done
3052 else
3053   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details" "$LINENO" 5; }
3057 fi
3058 rm -f conftest conftest$ac_cv_exeext
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3060 $as_echo "$ac_cv_exeext" >&6; }
3061
3062 rm -f conftest.$ac_ext
3063 EXEEXT=$ac_cv_exeext
3064 ac_exeext=$EXEEXT
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h.  */
3067 #include <stdio.h>
3068 int
3069 main ()
3070 {
3071 FILE *f = fopen ("conftest.out", "w");
3072  return ferror (f) || fclose (f) != 0;
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 ac_clean_files="$ac_clean_files conftest.out"
3079 # Check that the compiler produces executables we can run.  If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3082 $as_echo_n "checking whether we are cross compiling... " >&6; }
3083 if test "$cross_compiling" != yes; then
3084   { { ac_try="$ac_link"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091   (eval "$ac_link") 2>&5
3092   ac_status=$?
3093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094   test $ac_status = 0; }
3095   if { ac_try='./conftest$ac_cv_exeext'
3096   { { case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105   test $ac_status = 0; }; }; then
3106     cross_compiling=no
3107   else
3108     if test "$cross_compiling" = maybe; then
3109         cross_compiling=yes
3110     else
3111         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error $? "cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details" "$LINENO" 5; }
3116     fi
3117   fi
3118 fi
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120 $as_echo "$cross_compiling" >&6; }
3121
3122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3123 ac_clean_files=$ac_clean_files_save
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3125 $as_echo_n "checking for suffix of object files... " >&6; }
3126 if ${ac_cv_objext+:} false; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h.  */
3131
3132 int
3133 main ()
3134 {
3135
3136   ;
3137   return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.o conftest.obj
3141 if { { ac_try="$ac_compile"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148   (eval "$ac_compile") 2>&5
3149   ac_status=$?
3150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151   test $ac_status = 0; }; then :
3152   for ac_file in conftest.o conftest.obj conftest.*; do
3153   test -f "$ac_file" || continue;
3154   case $ac_file in
3155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3156     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3157        break;;
3158   esac
3159 done
3160 else
3161   $as_echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of object files: cannot compile
3167 See \`config.log' for more details" "$LINENO" 5; }
3168 fi
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3172 $as_echo "$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3174 ac_objext=$OBJEXT
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3177 if ${ac_cv_c_compiler_gnu+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186 #ifndef __GNUC__
3187        choke me
3188 #endif
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 if ac_fn_c_try_compile "$LINENO"; then :
3195   ac_compiler_gnu=yes
3196 else
3197   ac_compiler_gnu=no
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205 if test $ac_compiler_gnu = yes; then
3206   GCC=yes
3207 else
3208   GCC=
3209 fi
3210 ac_test_CFLAGS=${CFLAGS+set}
3211 ac_save_CFLAGS=$CFLAGS
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3214 if ${ac_cv_prog_cc_g+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   ac_save_c_werror_flag=$ac_c_werror_flag
3218    ac_c_werror_flag=yes
3219    ac_cv_prog_cc_g=no
3220    CFLAGS="-g"
3221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 if ac_fn_c_try_compile "$LINENO"; then :
3233   ac_cv_prog_cc_g=yes
3234 else
3235   CFLAGS=""
3236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 if ac_fn_c_try_compile "$LINENO"; then :
3248
3249 else
3250   ac_c_werror_flag=$ac_save_c_werror_flag
3251          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3265 fi
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 fi
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271    ac_c_werror_flag=$ac_save_c_werror_flag
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3274 $as_echo "$ac_cv_prog_cc_g" >&6; }
3275 if test "$ac_test_CFLAGS" = set; then
3276   CFLAGS=$ac_save_CFLAGS
3277 elif test $ac_cv_prog_cc_g = yes; then
3278   if test "$GCC" = yes; then
3279     CFLAGS="-g -O2"
3280   else
3281     CFLAGS="-g"
3282   fi
3283 else
3284   if test "$GCC" = yes; then
3285     CFLAGS="-O2"
3286   else
3287     CFLAGS=
3288   fi
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3292 if ${ac_cv_prog_cc_c89+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   ac_cv_prog_cc_c89=no
3296 ac_save_CC=$CC
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299 #include <stdarg.h>
3300 #include <stdio.h>
3301 struct stat;
3302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3303 struct buf { int x; };
3304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305 static char *e (p, i)
3306      char **p;
3307      int i;
3308 {
3309   return p[i];
3310 }
3311 static char *f (char * (*g) (char **, int), char **p, ...)
3312 {
3313   char *s;
3314   va_list v;
3315   va_start (v,p);
3316   s = g (p, va_arg (v,int));
3317   va_end (v);
3318   return s;
3319 }
3320
3321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3322    function prototypes and stuff, but not '\xHH' hex character constants.
3323    These don't provoke an error unfortunately, instead are silently treated
3324    as 'x'.  The following induces an error, until -std is added to get
3325    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3326    array size at least.  It's necessary to write '\x00'==0 to get something
3327    that's true only with -std.  */
3328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
3330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331    inside strings and character constants.  */
3332 #define FOO(x) 'x'
3333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 int argc;
3340 char **argv;
3341 int
3342 main ()
3343 {
3344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351 do
3352   CC="$ac_save_CC $ac_arg"
3353   if ac_fn_c_try_compile "$LINENO"; then :
3354   ac_cv_prog_cc_c89=$ac_arg
3355 fi
3356 rm -f core conftest.err conftest.$ac_objext
3357   test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 done
3359 rm -f conftest.$ac_ext
3360 CC=$ac_save_CC
3361
3362 fi
3363 # AC_CACHE_VAL
3364 case "x$ac_cv_prog_cc_c89" in
3365   x)
3366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3367 $as_echo "none needed" >&6; } ;;
3368   xno)
3369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3370 $as_echo "unsupported" >&6; } ;;
3371   *)
3372     CC="$CC $ac_cv_prog_cc_c89"
3373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3375 esac
3376 if test "x$ac_cv_prog_cc_c89" != xno; then :
3377
3378 fi
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386 ac_ext=cpp
3387 ac_cpp='$CXXCPP $CPPFLAGS'
3388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392   if test -n "$CCC"; then
3393     CXX=$CCC
3394   else
3395     if test -n "$ac_tool_prefix"; then
3396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3397   do
3398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_CXX+:} false; then :
3403   $as_echo_n "(cached) " >&6
3404 else
3405   if test -n "$CXX"; then
3406   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413     for ac_exec_ext in '' $ac_executable_extensions; do
3414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420   done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 CXX=$ac_cv_prog_CXX
3426 if test -n "$CXX"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3428 $as_echo "$CXX" >&6; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435     test -n "$CXX" && break
3436   done
3437 fi
3438 if test -z "$CXX"; then
3439   ac_ct_CXX=$CXX
3440   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3441 do
3442   # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$ac_ct_CXX"; then
3450   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457     for ac_exec_ext in '' $ac_executable_extensions; do
3458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_ac_ct_CXX="$ac_prog"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3470 if test -n "$ac_ct_CXX"; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3472 $as_echo "$ac_ct_CXX" >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3477
3478
3479   test -n "$ac_ct_CXX" && break
3480 done
3481
3482   if test "x$ac_ct_CXX" = x; then
3483     CXX="g++"
3484   else
3485     case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491     CXX=$ac_ct_CXX
3492   fi
3493 fi
3494
3495   fi
3496 fi
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3499 set X $ac_compile
3500 ac_compiler=$2
3501 for ac_option in --version -v -V -qversion; do
3502   { { ac_try="$ac_compiler $ac_option >&5"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510   ac_status=$?
3511   if test -s conftest.err; then
3512     sed '10a\
3513 ... rest of stderr output deleted ...
3514          10q' conftest.err >conftest.er1
3515     cat conftest.er1 >&5
3516   fi
3517   rm -f conftest.er1 conftest.err
3518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519   test $ac_status = 0; }
3520 done
3521
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3524 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533 #ifndef __GNUC__
3534        choke me
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_cxx_try_compile "$LINENO"; then :
3542   ac_compiler_gnu=yes
3543 else
3544   ac_compiler_gnu=no
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3548
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3553   GXX=yes
3554 else
3555   GXX=
3556 fi
3557 ac_test_CXXFLAGS=${CXXFLAGS+set}
3558 ac_save_CXXFLAGS=$CXXFLAGS
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3561 if ${ac_cv_prog_cxx_g+:} false; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3565    ac_cxx_werror_flag=yes
3566    ac_cv_prog_cxx_g=no
3567    CXXFLAGS="-g"
3568    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 if ac_fn_cxx_try_compile "$LINENO"; then :
3580   ac_cv_prog_cxx_g=yes
3581 else
3582   CXXFLAGS=""
3583       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h.  */
3585
3586 int
3587 main ()
3588 {
3589
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
3595
3596 else
3597   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3598          CXXFLAGS="-g"
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   ac_cv_prog_cxx_g=yes
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3622 if test "$ac_test_CXXFLAGS" = set; then
3623   CXXFLAGS=$ac_save_CXXFLAGS
3624 elif test $ac_cv_prog_cxx_g = yes; then
3625   if test "$GXX" = yes; then
3626     CXXFLAGS="-g -O2"
3627   else
3628     CXXFLAGS="-g"
3629   fi
3630 else
3631   if test "$GXX" = yes; then
3632     CXXFLAGS="-O2"
3633   else
3634     CXXFLAGS=
3635   fi
3636 fi
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3654   CPP=
3655 fi
3656 if test -z "$CPP"; then
3657   if ${ac_cv_prog_CPP+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660       # Double quotes because CPP needs to be expanded
3661     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3662     do
3663       ac_preproc_ok=false
3664 for ac_c_preproc_warn_flag in '' yes
3665 do
3666   # Use a header file that comes with gcc, so configuring glibc
3667   # with a fresh cross-compiler works.
3668   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669   # <limits.h> exists even on freestanding compilers.
3670   # On the NeXT, cc -E runs the code through the compiler's parser,
3671   # not just through cpp. "Syntax error" is here to catch this case.
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #ifdef __STDC__
3675 # include <limits.h>
3676 #else
3677 # include <assert.h>
3678 #endif
3679                      Syntax error
3680 _ACEOF
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3682
3683 else
3684   # Broken: fails on valid input.
3685 continue
3686 fi
3687 rm -f conftest.err conftest.i conftest.$ac_ext
3688
3689   # OK, works on sane cases.  Now check whether nonexistent headers
3690   # can be detected and how.
3691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693 #include <ac_nonexistent.h>
3694 _ACEOF
3695 if ac_fn_c_try_cpp "$LINENO"; then :
3696   # Broken: success on invalid input.
3697 continue
3698 else
3699   # Passes both tests.
3700 ac_preproc_ok=:
3701 break
3702 fi
3703 rm -f conftest.err conftest.i conftest.$ac_ext
3704
3705 done
3706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707 rm -f conftest.i conftest.err conftest.$ac_ext
3708 if $ac_preproc_ok; then :
3709   break
3710 fi
3711
3712     done
3713     ac_cv_prog_CPP=$CPP
3714
3715 fi
3716   CPP=$ac_cv_prog_CPP
3717 else
3718   ac_cv_prog_CPP=$CPP
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3721 $as_echo "$CPP" >&6; }
3722 ac_preproc_ok=false
3723 for ac_c_preproc_warn_flag in '' yes
3724 do
3725   # Use a header file that comes with gcc, so configuring glibc
3726   # with a fresh cross-compiler works.
3727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728   # <limits.h> exists even on freestanding compilers.
3729   # On the NeXT, cc -E runs the code through the compiler's parser,
3730   # not just through cpp. "Syntax error" is here to catch this case.
3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #ifdef __STDC__
3734 # include <limits.h>
3735 #else
3736 # include <assert.h>
3737 #endif
3738                      Syntax error
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741
3742 else
3743   # Broken: fails on valid input.
3744 continue
3745 fi
3746 rm -f conftest.err conftest.i conftest.$ac_ext
3747
3748   # OK, works on sane cases.  Now check whether nonexistent headers
3749   # can be detected and how.
3750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h.  */
3752 #include <ac_nonexistent.h>
3753 _ACEOF
3754 if ac_fn_c_try_cpp "$LINENO"; then :
3755   # Broken: success on invalid input.
3756 continue
3757 else
3758   # Passes both tests.
3759 ac_preproc_ok=:
3760 break
3761 fi
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764 done
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.i conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then :
3768
3769 else
3770   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details" "$LINENO" 5; }
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
3782
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3784 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3785 if ${ac_cv_path_GREP+:} false; then :
3786   $as_echo_n "(cached) " >&6
3787 else
3788   if test -z "$GREP"; then
3789   ac_path_GREP_found=false
3790   # Loop through the user's path and test for each of PROGNAME-LIST
3791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796     for ac_prog in grep ggrep; do
3797     for ac_exec_ext in '' $ac_executable_extensions; do
3798       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3799       as_fn_executable_p "$ac_path_GREP" || continue
3800 # Check for GNU ac_path_GREP and select it if it is found.
3801   # Check for GNU $ac_path_GREP
3802 case `"$ac_path_GREP" --version 2>&1` in
3803 *GNU*)
3804   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3805 *)
3806   ac_count=0
3807   $as_echo_n 0123456789 >"conftest.in"
3808   while :
3809   do
3810     cat "conftest.in" "conftest.in" >"conftest.tmp"
3811     mv "conftest.tmp" "conftest.in"
3812     cp "conftest.in" "conftest.nl"
3813     $as_echo 'GREP' >> "conftest.nl"
3814     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816     as_fn_arith $ac_count + 1 && ac_count=$as_val
3817     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3818       # Best one so far, save it but keep looking for a better one
3819       ac_cv_path_GREP="$ac_path_GREP"
3820       ac_path_GREP_max=$ac_count
3821     fi
3822     # 10*(2^10) chars as input seems more than enough
3823     test $ac_count -gt 10 && break
3824   done
3825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 esac
3827
3828       $ac_path_GREP_found && break 3
3829     done
3830   done
3831   done
3832 IFS=$as_save_IFS
3833   if test -z "$ac_cv_path_GREP"; then
3834     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835   fi
3836 else
3837   ac_cv_path_GREP=$GREP
3838 fi
3839
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3842 $as_echo "$ac_cv_path_GREP" >&6; }
3843  GREP="$ac_cv_path_GREP"
3844
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3847 $as_echo_n "checking for egrep... " >&6; }
3848 if ${ac_cv_path_EGREP+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3852    then ac_cv_path_EGREP="$GREP -E"
3853    else
3854      if test -z "$EGREP"; then
3855   ac_path_EGREP_found=false
3856   # Loop through the user's path and test for each of PROGNAME-LIST
3857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_prog in egrep; do
3863     for ac_exec_ext in '' $ac_executable_extensions; do
3864       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3865       as_fn_executable_p "$ac_path_EGREP" || continue
3866 # Check for GNU ac_path_EGREP and select it if it is found.
3867   # Check for GNU $ac_path_EGREP
3868 case `"$ac_path_EGREP" --version 2>&1` in
3869 *GNU*)
3870   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3871 *)
3872   ac_count=0
3873   $as_echo_n 0123456789 >"conftest.in"
3874   while :
3875   do
3876     cat "conftest.in" "conftest.in" >"conftest.tmp"
3877     mv "conftest.tmp" "conftest.in"
3878     cp "conftest.in" "conftest.nl"
3879     $as_echo 'EGREP' >> "conftest.nl"
3880     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882     as_fn_arith $ac_count + 1 && ac_count=$as_val
3883     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3884       # Best one so far, save it but keep looking for a better one
3885       ac_cv_path_EGREP="$ac_path_EGREP"
3886       ac_path_EGREP_max=$ac_count
3887     fi
3888     # 10*(2^10) chars as input seems more than enough
3889     test $ac_count -gt 10 && break
3890   done
3891   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 esac
3893
3894       $ac_path_EGREP_found && break 3
3895     done
3896   done
3897   done
3898 IFS=$as_save_IFS
3899   if test -z "$ac_cv_path_EGREP"; then
3900     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3901   fi
3902 else
3903   ac_cv_path_EGREP=$EGREP
3904 fi
3905
3906    fi
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3909 $as_echo "$ac_cv_path_EGREP" >&6; }
3910  EGREP="$ac_cv_path_EGREP"
3911
3912
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3914 $as_echo_n "checking for ANSI C header files... " >&6; }
3915 if ${ac_cv_header_stdc+:} false; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920 #include <stdlib.h>
3921 #include <stdarg.h>
3922 #include <string.h>
3923 #include <float.h>
3924
3925 int
3926 main ()
3927 {
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_header_stdc=yes
3935 else
3936   ac_cv_header_stdc=no
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939
3940 if test $ac_cv_header_stdc = yes; then
3941   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944 #include <string.h>
3945
3946 _ACEOF
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948   $EGREP "memchr" >/dev/null 2>&1; then :
3949
3950 else
3951   ac_cv_header_stdc=no
3952 fi
3953 rm -f conftest*
3954
3955 fi
3956
3957 if test $ac_cv_header_stdc = yes; then
3958   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961 #include <stdlib.h>
3962
3963 _ACEOF
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965   $EGREP "free" >/dev/null 2>&1; then :
3966
3967 else
3968   ac_cv_header_stdc=no
3969 fi
3970 rm -f conftest*
3971
3972 fi
3973
3974 if test $ac_cv_header_stdc = yes; then
3975   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3976   if test "$cross_compiling" = yes; then :
3977   :
3978 else
3979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981 #include <ctype.h>
3982 #include <stdlib.h>
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 #else
3987 # define ISLOWER(c) \
3988                    (('a' <= (c) && (c) <= 'i') \
3989                      || ('j' <= (c) && (c) <= 'r') \
3990                      || ('s' <= (c) && (c) <= 'z'))
3991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3992 #endif
3993
3994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 int
3996 main ()
3997 {
3998   int i;
3999   for (i = 0; i < 256; i++)
4000     if (XOR (islower (i), ISLOWER (i))
4001         || toupper (i) != TOUPPER (i))
4002       return 2;
4003   return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_run "$LINENO"; then :
4007
4008 else
4009   ac_cv_header_stdc=no
4010 fi
4011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4012   conftest.$ac_objext conftest.beam conftest.$ac_ext
4013 fi
4014
4015 fi
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4018 $as_echo "$ac_cv_header_stdc" >&6; }
4019 if test $ac_cv_header_stdc = yes; then
4020
4021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4022
4023 fi
4024
4025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027                   inttypes.h stdint.h unistd.h
4028 do :
4029   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4031 "
4032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4033   cat >>confdefs.h <<_ACEOF
4034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 _ACEOF
4036
4037 fi
4038
4039 done
4040
4041
4042
4043   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4044 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4045   MINIX=yes
4046 else
4047   MINIX=
4048 fi
4049
4050
4051   if test "$MINIX" = yes; then
4052
4053 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4054
4055
4056 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4057
4058
4059 $as_echo "#define _MINIX 1" >>confdefs.h
4060
4061   fi
4062
4063
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4065 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4066 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h.  */
4071
4072 #         define __EXTENSIONS__ 1
4073           $ac_includes_default
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_safe_to_define___extensions__=yes
4084 else
4085   ac_cv_safe_to_define___extensions__=no
4086 fi
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4090 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4091   test $ac_cv_safe_to_define___extensions__ = yes &&
4092     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4093
4094   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4095
4096   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4097
4098   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4099
4100   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4101
4102
4103
4104
4105 if test $ac_cv_c_compiler_gnu = yes; then
4106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4107 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4108 if ${ac_cv_prog_gcc_traditional+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111     ac_pattern="Autoconf.*'x'"
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114 #include <sgtty.h>
4115 Autoconf TIOCGETP
4116 _ACEOF
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4119   ac_cv_prog_gcc_traditional=yes
4120 else
4121   ac_cv_prog_gcc_traditional=no
4122 fi
4123 rm -f conftest*
4124
4125
4126   if test $ac_cv_prog_gcc_traditional = no; then
4127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129 #include <termio.h>
4130 Autoconf TCGETA
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4134   ac_cv_prog_gcc_traditional=yes
4135 fi
4136 rm -f conftest*
4137
4138   fi
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4141 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4142   if test $ac_cv_prog_gcc_traditional = yes; then
4143     CC="$CC -traditional"
4144   fi
4145 fi
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4148 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4149 if ${ac_cv_prog_suncc+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   cat > conftest.c <<EOF
4153 #ifdef __SUNPRO_C
4154   yes;
4155 #endif
4156 EOF
4157 if { ac_try='${CC-cc} -E conftest.c'
4158   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4163   ac_cv_prog_suncc=yes
4164 else
4165   ac_cv_prog_suncc=no
4166 fi
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4169 $as_echo "$ac_cv_prog_suncc" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_RANLIB+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$RANLIB"; then
4179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 RANLIB=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4201 $as_echo "$RANLIB" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208 fi
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210   ac_ct_RANLIB=$RANLIB
4211   # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if test -n "$ac_ct_RANLIB"; then
4219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226     for ac_exec_ext in '' $ac_executable_extensions; do
4227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228     ac_cv_prog_ac_ct_RANLIB="ranlib"
4229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230     break 2
4231   fi
4232 done
4233   done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4241 $as_echo "$ac_ct_RANLIB" >&6; }
4242 else
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247   if test "x$ac_ct_RANLIB" = x; then
4248     RANLIB=":"
4249   else
4250     case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256     RANLIB=$ac_ct_RANLIB
4257   fi
4258 else
4259   RANLIB="$ac_cv_prog_RANLIB"
4260 fi
4261
4262
4263
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4265 $as_echo_n "checking if compiler is clang... " >&6; }
4266 if ${ax_cv_cc_clang+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269
4270
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278     #ifndef __clang__
4279          not clang
4280     #endif
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287   ax_cv_cc_clang=yes
4288 else
4289   ax_cv_cc_clang=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4295 $as_echo "$ax_cv_cc_clang" >&6; }
4296
4297 if test "x$ax_cv_cc_clang" = "xyes"; then
4298   clang_path="$CC"
4299
4300 else
4301   clang_path=""
4302
4303 fi
4304
4305
4306 if test "x$GCC" = "xyes"; then
4307   CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4308 fi
4309
4310
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4312 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4313 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316
4317
4318     CFLAGS_SAVED=$CFLAGS
4319     CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4320
4321     ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333 return 0;
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339   ax_cv_cc_qunused_arguments_flag="yes"
4340 else
4341   ax_cv_cc_qunused_arguments_flag="no"
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344     ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349
4350
4351     CFLAGS="$CFLAGS_SAVED"
4352
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4355 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4356
4357 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4358   CFLAGS="$CFLAGS -Qunused-arguments"
4359   LDFLAGS="$LDFLAGS -Qunused-arguments"
4360 fi
4361
4362 # Check whether --enable-largefile was given.
4363 if test "${enable_largefile+set}" = set; then :
4364   enableval=$enable_largefile;
4365 fi
4366
4367 if test "$enable_largefile" != no; then
4368
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4371 if ${ac_cv_sys_largefile_CC+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   ac_cv_sys_largefile_CC=no
4375      if test "$GCC" != yes; then
4376        ac_save_CC=$CC
4377        while :; do
4378          # IRIX 6.2 and later do not support large files by default,
4379          # so use the C compiler's -n32 option if that helps.
4380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382 #include <sys/types.h>
4383  /* Check that off_t can represent 2**63 - 1 correctly.
4384     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4385     since some C++ compilers masquerading as C compilers
4386     incorrectly reject 9223372036854775807.  */
4387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4388   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4389                        && LARGE_OFF_T % 2147483647 == 1)
4390                       ? 1 : -1];
4391 int
4392 main ()
4393 {
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399          if ac_fn_c_try_compile "$LINENO"; then :
4400   break
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext
4403          CC="$CC -n32"
4404          if ac_fn_c_try_compile "$LINENO"; then :
4405   ac_cv_sys_largefile_CC=' -n32'; break
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext
4408          break
4409        done
4410        CC=$ac_save_CC
4411        rm -f conftest.$ac_ext
4412     fi
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4416   if test "$ac_cv_sys_largefile_CC" != no; then
4417     CC=$CC$ac_cv_sys_largefile_CC
4418   fi
4419
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4422 if ${ac_cv_sys_file_offset_bits+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   while :; do
4426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428 #include <sys/types.h>
4429  /* Check that off_t can represent 2**63 - 1 correctly.
4430     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4431     since some C++ compilers masquerading as C compilers
4432     incorrectly reject 9223372036854775807.  */
4433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4434   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4435                        && LARGE_OFF_T % 2147483647 == 1)
4436                       ? 1 : -1];
4437 int
4438 main ()
4439 {
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446   ac_cv_sys_file_offset_bits=no; break
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451 #define _FILE_OFFSET_BITS 64
4452 #include <sys/types.h>
4453  /* Check that off_t can represent 2**63 - 1 correctly.
4454     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4455     since some C++ compilers masquerading as C compilers
4456     incorrectly reject 9223372036854775807.  */
4457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4458   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4459                        && LARGE_OFF_T % 2147483647 == 1)
4460                       ? 1 : -1];
4461 int
4462 main ()
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470   ac_cv_sys_file_offset_bits=64; break
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473   ac_cv_sys_file_offset_bits=unknown
4474   break
4475 done
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4479 case $ac_cv_sys_file_offset_bits in #(
4480   no | unknown) ;;
4481   *)
4482 cat >>confdefs.h <<_ACEOF
4483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4484 _ACEOF
4485 ;;
4486 esac
4487 rm -rf conftest*
4488   if test $ac_cv_sys_file_offset_bits = unknown; then
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4491 if ${ac_cv_sys_large_files+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   while :; do
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #include <sys/types.h>
4498  /* Check that off_t can represent 2**63 - 1 correctly.
4499     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4500     since some C++ compilers masquerading as C compilers
4501     incorrectly reject 9223372036854775807.  */
4502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4503   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4504                        && LARGE_OFF_T % 2147483647 == 1)
4505                       ? 1 : -1];
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515   ac_cv_sys_large_files=no; break
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520 #define _LARGE_FILES 1
4521 #include <sys/types.h>
4522  /* Check that off_t can represent 2**63 - 1 correctly.
4523     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524     since some C++ compilers masquerading as C compilers
4525     incorrectly reject 9223372036854775807.  */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528                        && LARGE_OFF_T % 2147483647 == 1)
4529                       ? 1 : -1];
4530 int
4531 main ()
4532 {
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539   ac_cv_sys_large_files=1; break
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542   ac_cv_sys_large_files=unknown
4543   break
4544 done
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4547 $as_echo "$ac_cv_sys_large_files" >&6; }
4548 case $ac_cv_sys_large_files in #(
4549   no | unknown) ;;
4550   *)
4551 cat >>confdefs.h <<_ACEOF
4552 #define _LARGE_FILES $ac_cv_sys_large_files
4553 _ACEOF
4554 ;;
4555 esac
4556 rm -rf conftest*
4557   fi
4558
4559
4560 fi
4561
4562
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4565 if ${ac_cv_c_bigendian+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   ac_cv_c_bigendian=unknown
4569     # See if we're dealing with a universal compiler.
4570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h.  */
4572 #ifndef __APPLE_CC__
4573                not a universal capable compiler
4574              #endif
4575              typedef int dummy;
4576
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579
4580         # Check for potential -arch flags.  It is not universal unless
4581         # there are at least two -arch flags with different values.
4582         ac_arch=
4583         ac_prev=
4584         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4585          if test -n "$ac_prev"; then
4586            case $ac_word in
4587              i?86 | x86_64 | ppc | ppc64)
4588                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4589                  ac_arch=$ac_word
4590                else
4591                  ac_cv_c_bigendian=universal
4592                  break
4593                fi
4594                ;;
4595            esac
4596            ac_prev=
4597          elif test "x$ac_word" = "x-arch"; then
4598            ac_prev=arch
4599          fi
4600        done
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603     if test $ac_cv_c_bigendian = unknown; then
4604       # See if sys/param.h defines the BYTE_ORDER macro.
4605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607 #include <sys/types.h>
4608              #include <sys/param.h>
4609
4610 int
4611 main ()
4612 {
4613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4614                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4615                      && LITTLE_ENDIAN)
4616               bogus endian macros
4617              #endif
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624   # It does; now see whether it defined to BIG_ENDIAN or not.
4625          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h.  */
4627 #include <sys/types.h>
4628                 #include <sys/param.h>
4629
4630 int
4631 main ()
4632 {
4633 #if BYTE_ORDER != BIG_ENDIAN
4634                  not big endian
4635                 #endif
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642   ac_cv_c_bigendian=yes
4643 else
4644   ac_cv_c_bigendian=no
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649     fi
4650     if test $ac_cv_c_bigendian = unknown; then
4651       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <limits.h>
4655
4656 int
4657 main ()
4658 {
4659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4660               bogus endian macros
4661              #endif
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668   # It does; now see whether it defined to _BIG_ENDIAN or not.
4669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h.  */
4671 #include <limits.h>
4672
4673 int
4674 main ()
4675 {
4676 #ifndef _BIG_ENDIAN
4677                  not big endian
4678                 #endif
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685   ac_cv_c_bigendian=yes
4686 else
4687   ac_cv_c_bigendian=no
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692     fi
4693     if test $ac_cv_c_bigendian = unknown; then
4694       # Compile a test program.
4695       if test "$cross_compiling" = yes; then :
4696   # Try to guess by grepping values from an object file.
4697          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 short int ascii_mm[] =
4700                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4701                 short int ascii_ii[] =
4702                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4703                 int use_ascii (int i) {
4704                   return ascii_mm[i] + ascii_ii[i];
4705                 }
4706                 short int ebcdic_ii[] =
4707                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4708                 short int ebcdic_mm[] =
4709                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4710                 int use_ebcdic (int i) {
4711                   return ebcdic_mm[i] + ebcdic_ii[i];
4712                 }
4713                 extern int foo;
4714
4715 int
4716 main ()
4717 {
4718 return use_ascii (foo) == use_ebcdic (foo);
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4725               ac_cv_c_bigendian=yes
4726             fi
4727             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4728               if test "$ac_cv_c_bigendian" = unknown; then
4729                 ac_cv_c_bigendian=no
4730               else
4731                 # finding both strings is unlikely to happen, but who knows?
4732                 ac_cv_c_bigendian=unknown
4733               fi
4734             fi
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 else
4738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740 $ac_includes_default
4741 int
4742 main ()
4743 {
4744
4745              /* Are we little or big endian?  From Harbison&Steele.  */
4746              union
4747              {
4748                long int l;
4749                char c[sizeof (long int)];
4750              } u;
4751              u.l = 1;
4752              return u.c[sizeof (long int) - 1] == 1;
4753
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_run "$LINENO"; then :
4759   ac_cv_c_bigendian=no
4760 else
4761   ac_cv_c_bigendian=yes
4762 fi
4763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4764   conftest.$ac_objext conftest.beam conftest.$ac_ext
4765 fi
4766
4767     fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4770 $as_echo "$ac_cv_c_bigendian" >&6; }
4771  case $ac_cv_c_bigendian in #(
4772    yes)
4773
4774 $as_echo "#define RADIUS_BIG_ENDIAN 1" >>confdefs.h
4775 ;; #(
4776    no)
4777
4778 $as_echo "#define RADIUS_LITTLE_ENDIAN 1" >>confdefs.h
4779
4780  ;; #(
4781    universal)
4782
4783 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4784
4785      ;; #(
4786    *)
4787      as_fn_error $? "unknown endianness
4788  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4789  esac
4790
4791
4792 # Extract the first word of "gmake", so it can be a program name with args.
4793 set dummy gmake; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_GMAKE+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   if test -n "$GMAKE"; then
4800   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807     for ac_exec_ext in '' $ac_executable_extensions; do
4808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809     ac_cv_prog_GMAKE="yes"
4810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814   done
4815 IFS=$as_save_IFS
4816
4817   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4818 fi
4819 fi
4820 GMAKE=$ac_cv_prog_GMAKE
4821 if test -n "$GMAKE"; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4823 $as_echo "$GMAKE" >&6; }
4824 else
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828
4829
4830 if test $GMAKE = no; then
4831   # Extract the first word of "make", so it can be a program name with args.
4832 set dummy make; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if ${ac_cv_path_MAKE+:} false; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   case $MAKE in
4839   [\\/]* | ?:[\\/]*)
4840   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4841   ;;
4842   *)
4843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848     for ac_exec_ext in '' $ac_executable_extensions; do
4849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855   done
4856 IFS=$as_save_IFS
4857
4858   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4859   ;;
4860 esac
4861 fi
4862 MAKE=$ac_cv_path_MAKE
4863 if test -n "$MAKE"; then
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4865 $as_echo "$MAKE" >&6; }
4866 else
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870
4871
4872 else
4873   # Extract the first word of "gmake", so it can be a program name with args.
4874 set dummy gmake; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_path_MAKE+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   case $MAKE in
4881   [\\/]* | ?:[\\/]*)
4882   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4883   ;;
4884   *)
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890     for ac_exec_ext in '' $ac_executable_extensions; do
4891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897   done
4898 IFS=$as_save_IFS
4899
4900   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4901   ;;
4902 esac
4903 fi
4904 MAKE=$ac_cv_path_MAKE
4905 if test -n "$MAKE"; then
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4907 $as_echo "$MAKE" >&6; }
4908 else
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914 fi
4915 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4916 if test -z "$makever"; then
4917   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
4918 fi
4919
4920
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4922 $as_echo_n "checking number of system cores... " >&6; }
4923 if ${ax_cv_system_cores+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926
4927       ac_ext=c
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932
4933       if test "$cross_compiling" = yes; then :
4934   ax_cv_system_cores=
4935
4936 else
4937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h.  */
4939
4940           #include <stdio.h>
4941           #include <stdint.h>
4942           #ifdef _WIN32
4943           #  include <windows.h>
4944           #elif MACOS
4945           #  include <sys/param.h>
4946           #  include <sys/sysctl.h>
4947           #else
4948           #  include <unistd.h>
4949           #endif
4950
4951           int main (int argc, char *argv[])
4952           {
4953             uint32_t count;
4954
4955             #ifdef WIN32
4956             SYSTEM_INFO sysinfo;
4957             GetSystemInfo(&sysinfo);
4958
4959             count = sysinfo.dwNumberOfProcessors;
4960
4961             #elif MACOS
4962             int nm[2];
4963             size_t len = 4;
4964
4965             nm[0] = CTL_HW;
4966             nm[1] = HW_AVAILCPU;
4967             sysctl(nm, 2, &count, &len, NULL, 0);
4968
4969             if(count < 1) {
4970               nm[1] = HW_NCPU;
4971               sysctl(nm, 2, &count, &len, NULL, 0);
4972               if(count < 1) {
4973                 count = 1;
4974               }
4975             }
4976
4977             #else
4978             count = sysconf(_SC_NPROCESSORS_ONLN);
4979             #endif
4980
4981             return count;
4982           }
4983
4984 _ACEOF
4985 if ac_fn_c_try_run "$LINENO"; then :
4986   ax_cv_system_cores=$?
4987 else
4988   ax_cv_system_cores=$?
4989 fi
4990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4991   conftest.$ac_objext conftest.beam conftest.$ac_ext
4992 fi
4993
4994     ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5003 $as_echo "$ax_cv_system_cores" >&6; }
5004
5005
5006
5007
5008 # Extract the first word of "git", so it can be a program name with args.
5009 set dummy git; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_GIT+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -n "$GIT"; then
5016   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_exec_ext in '' $ac_executable_extensions; do
5024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025     ac_cv_prog_GIT="yes"
5026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5034 fi
5035 fi
5036 GIT=$ac_cv_prog_GIT
5037 if test -n "$GIT"; then
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5039 $as_echo "$GIT" >&6; }
5040 else
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046
5047
5048 # Check whether --enable-strict-dependencies was given.
5049 if test "${enable_strict_dependencies+set}" = set; then :
5050   enableval=$enable_strict_dependencies;
5051 fi
5052
5053
5054 # Check whether --enable-werror was given.
5055 if test "${enable_werror+set}" = set; then :
5056   enableval=$enable_werror;  case "$enableval" in
5057     no)
5058       werror=no
5059     ;;
5060     *)
5061       werror=yes
5062   esac
5063
5064 fi
5065
5066
5067 docdir='${datadir}/doc/freeradius'
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5069 $as_echo_n "checking docdir... " >&6; }
5070
5071 # Check whether --with-docdir was given.
5072 if test "${with_docdir+set}" = set; then :
5073   withval=$with_docdir;  case "$withval" in
5074   no)
5075     docdir=no
5076     ;;
5077   yes)
5078     ;;
5079   [\\/$]* | ?:[\\/]* )
5080     docdir="$withval"
5081     ;;
5082   *)
5083     as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5084     ;;
5085   esac
5086
5087 fi
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5091 $as_echo "$docdir" >&6; }
5092 if test "x$docdir" = xno; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5094 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5095 fi
5096
5097 logdir='${localstatedir}/log/radius'
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5099 $as_echo_n "checking logdir... " >&6; }
5100
5101 # Check whether --with-logdir was given.
5102 if test "${with_logdir+set}" = set; then :
5103   withval=$with_logdir;  case "$withval" in
5104   no)
5105     as_fn_error $? "Need logdir" "$LINENO" 5
5106     ;;
5107   yes)
5108     ;;
5109   [\\/$]* | ?:[\\/]* )
5110     logdir="$withval"
5111     ;;
5112   *)
5113     as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5114     ;;
5115   esac
5116
5117 fi
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5121 $as_echo "$logdir" >&6; }
5122
5123 radacctdir='${logdir}/radacct'
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5125 $as_echo_n "checking radacctdir... " >&6; }
5126
5127 # Check whether --with-radacctdir was given.
5128 if test "${with_radacctdir+set}" = set; then :
5129   withval=$with_radacctdir;  case "$withval" in
5130   no)
5131     as_fn_error $? "Need radacctdir" "$LINENO" 5
5132     ;;
5133   yes)
5134     ;;
5135   [\\/$]* | ?:[\\/]* )
5136     radacctdir="$withval"
5137     ;;
5138   *)
5139     as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5140     ;;
5141   esac
5142
5143 fi
5144
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5147 $as_echo "$radacctdir" >&6; }
5148
5149 raddbdir='${sysconfdir}/raddb'
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5151 $as_echo_n "checking raddbdir... " >&6; }
5152
5153 # Check whether --with-raddbdir was given.
5154 if test "${with_raddbdir+set}" = set; then :
5155   withval=$with_raddbdir;  case "$withval" in
5156   no)
5157     as_fn_error $? "Need raddbdir" "$LINENO" 5
5158     ;;
5159   yes)
5160     ;;
5161   [\\/$]* | ?:[\\/]* )
5162     raddbdir="$withval"
5163     ;;
5164   *)
5165     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5166     ;;
5167   esac
5168
5169 fi
5170
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5173 $as_echo "$raddbdir" >&6; }
5174
5175 dictdir='${datarootdir}/freeradius'
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5177 $as_echo_n "checking dictdir... " >&6; }
5178
5179 # Check whether --with-dictdir was given.
5180 if test "${with_dictdir+set}" = set; then :
5181   withval=$with_dictdir;  case "$withval" in
5182   no)
5183     as_fn_error $? "Need dictdir" "$LINENO" 5
5184     ;;
5185   yes)
5186     ;;
5187   [\\/$]* | ?:[\\/]* )
5188     dictdir="$withval"
5189     ;;
5190   *)
5191     as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5192     ;;
5193   esac
5194
5195 fi
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5199 $as_echo "$dictdir" >&6; }
5200
5201 modconfdir='${raddbdir}/mods-config'
5202
5203
5204 WITH_ASCEND_BINARY=yes
5205
5206 # Check whether --with-ascend-binary was given.
5207 if test "${with_ascend_binary+set}" = set; then :
5208   withval=$with_ascend_binary;  case "$withval" in
5209   yes)
5210     ;;
5211   *)
5212     WITH_ASCEND_BINARY=no
5213   esac
5214
5215 fi
5216
5217 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5218
5219 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5220
5221 fi
5222
5223 WITH_THREADS=yes
5224
5225 # Check whether --with-threads was given.
5226 if test "${with_threads+set}" = set; then :
5227   withval=$with_threads;  case "$withval" in
5228   yes)
5229     ;;
5230   *)
5231     WITH_THREADS=no
5232   esac
5233
5234 fi
5235
5236
5237 WITH_TCP=yes
5238
5239 # Check whether --with-tcp was given.
5240 if test "${with_tcp+set}" = set; then :
5241   withval=$with_tcp;  case "$withval" in
5242   yes)
5243     ;;
5244   *)
5245     WITH_TCP=no
5246   esac
5247
5248 fi
5249
5250 if test "x$WITH_TCP" = "xyes"; then
5251
5252 $as_echo "#define WITH_TCP 1" >>confdefs.h
5253
5254 fi
5255
5256 WITH_VMPS=yes
5257
5258 # Check whether --with-vmps was given.
5259 if test "${with_vmps+set}" = set; then :
5260   withval=$with_vmps;  case "$withval" in
5261   yes)
5262     ;;
5263   *)
5264     WITH_VMPS=no
5265   esac
5266
5267 fi
5268
5269 if test "x$WITH_VMPS" = "xyes"; then
5270
5271 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5272
5273 fi
5274
5275 WITH_DHCP=yes
5276
5277 # Check whether --with-dhcp was given.
5278 if test "${with_dhcp+set}" = set; then :
5279   withval=$with_dhcp;  case "$withval" in
5280   yes)
5281     ;;
5282   *)
5283     WITH_DHCP=no
5284   esac
5285
5286 fi
5287
5288 if test "x$WITH_DHCP" = "xyes"; then
5289
5290 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5291
5292 fi
5293
5294 STATIC_MODULES=
5295
5296 # Check whether --with-static_modules was given.
5297 if test "${with_static_modules+set}" = set; then :
5298   withval=$with_static_modules;
5299   for i in $withval; do
5300     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5301   done
5302
5303 fi
5304
5305
5306 USE_SHARED_LIBS=yes
5307
5308 # Check whether --with-shared-libs was given.
5309 if test "${with_shared_libs+set}" = set; then :
5310   withval=$with_shared_libs;  case "$withval" in
5311   no)
5312     USE_SHARED_LIBS=no
5313     ;;
5314   *)
5315   esac
5316
5317 fi
5318
5319
5320 MODULES=
5321
5322 # Check whether --with-modules was given.
5323 if test "${with_modules+set}" = set; then :
5324   withval=$with_modules;
5325  for i in $withval; do
5326    MODULES="$MODULES $i"
5327  done
5328
5329 fi
5330
5331
5332 EXPERIMENTAL=
5333
5334 # Check whether --with-experimental-modules was given.
5335 if test "${with_experimental_modules+set}" = set; then :
5336   withval=$with_experimental_modules;  case "$withval" in
5337   yes)
5338     EXPERIMENTAL=yes
5339     ;;
5340   no)
5341     EXPERIMENTAL=no
5342     ;;
5343   *)
5344   esac
5345
5346 fi
5347
5348
5349 WITH_UDPFROMTO=yes
5350
5351 # Check whether --with-udpfromto was given.
5352 if test "${with_udpfromto+set}" = set; then :
5353   withval=$with_udpfromto;  case "$withval" in
5354   yes)
5355     WITH_UDPFROMTO=yes
5356     ;;
5357   *)
5358     WITH_UDPFROMTO=no
5359   esac
5360
5361 fi
5362
5363
5364 if test "x$WITH_UDPFROMTO" = "xyes"; then
5365
5366 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5367
5368 fi
5369
5370
5371
5372 # Check whether --with-rlm-FOO-lib-dir was given.
5373 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5374   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
5375   *)
5376     ;;
5377   esac
5378
5379 fi
5380
5381
5382
5383 # Check whether --with-rlm-FOO-include-dir was given.
5384 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5385   withval=$with_rlm_FOO_include_dir;  case "$withval" in
5386   *)
5387     ;;
5388   esac
5389
5390 fi
5391
5392
5393 WITH_OPENSSL=yes
5394
5395 # Check whether --with-openssl was given.
5396 if test "${with_openssl+set}" = set; then :
5397   withval=$with_openssl;  case "$withval" in
5398   no)
5399     WITH_OPENSSL=no
5400     ;;
5401   *)
5402     WITH_OPENSSL=yes
5403     ;;
5404   esac
5405
5406 fi
5407
5408
5409 openssl_lib_dir=
5410
5411 # Check whether --with-openssl-lib-dir was given.
5412 if test "${with_openssl_lib_dir+set}" = set; then :
5413   withval=$with_openssl_lib_dir;  case "$withval" in
5414   *) openssl_lib_dir="$withval"
5415     ;;
5416   esac
5417
5418 fi
5419
5420
5421 openssl_include_dir=
5422
5423 # Check whether --with-openssl-include-dir was given.
5424 if test "${with_openssl_include_dir+set}" = set; then :
5425   withval=$with_openssl_include_dir;  case "$withval" in
5426   *) openssl_include_dir="$withval"
5427     ;;
5428   esac
5429
5430 fi
5431
5432
5433
5434 CHECKRAD=checkrad
5435 # Extract the first word of "perl", so it can be a program name with args.
5436 set dummy perl; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_PERL+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   case $PERL in
5443   [\\/]* | ?:[\\/]*)
5444   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5445   ;;
5446   *)
5447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5463   ;;
5464 esac
5465 fi
5466 PERL=$ac_cv_path_PERL
5467 if test -n "$PERL"; then
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5469 $as_echo "$PERL" >&6; }
5470 else
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476 if test "x$ac_cv_path_PERL" = "x"; then
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5478 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5479 fi
5480 # Extract the first word of "snmpget", so it can be a program name with args.
5481 set dummy snmpget; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_SNMPGET+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   case $SNMPGET in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507   ;;
5508 esac
5509 fi
5510 SNMPGET=$ac_cv_path_SNMPGET
5511 if test -n "$SNMPGET"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5513 $as_echo "$SNMPGET" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 if test "x$ac_cv_path_SNMPGET" = "x"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5522 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5523 fi
5524
5525 # Extract the first word of "snmpwalk", so it can be a program name with args.
5526 set dummy snmpwalk; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_path_SNMPWALK+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   case $SNMPWALK in
5533   [\\/]* | ?:[\\/]*)
5534   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5535   ;;
5536   *)
5537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551
5552   ;;
5553 esac
5554 fi
5555 SNMPWALK=$ac_cv_path_SNMPWALK
5556 if test -n "$SNMPWALK"; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5558 $as_echo "$SNMPWALK" >&6; }
5559 else
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5567 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5568 fi
5569
5570 # Extract the first word of "rusers", so it can be a program name with args.
5571 set dummy rusers; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_path_RUSERS+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   case $RUSERS in
5578   [\\/]* | ?:[\\/]*)
5579   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5580   ;;
5581   *)
5582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587     for ac_exec_ext in '' $ac_executable_extensions; do
5588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594   done
5595 IFS=$as_save_IFS
5596
5597   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5598   ;;
5599 esac
5600 fi
5601 RUSERS=$ac_cv_path_RUSERS
5602 if test -n "$RUSERS"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5604 $as_echo "$RUSERS" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611
5612 missing_dir=`cd $ac_aux_dir && pwd`
5613 # expand $ac_aux_dir to an absolute path
5614 am_aux_dir=`cd $ac_aux_dir && pwd`
5615
5616 if test x"${MISSING+set}" != xset; then
5617   case $am_aux_dir in
5618   *\ * | *\     *)
5619     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5620   *)
5621     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5622   esac
5623 fi
5624 # Use eval to expand $SHELL
5625 if eval "$MISSING --run true"; then
5626   am_missing_run="$MISSING --run "
5627 else
5628   am_missing_run=
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5630 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5631 fi
5632
5633
5634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5635
5636
5637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5638
5639
5640 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5641
5642
5643 # Extract the first word of "locate", so it can be a program name with args.
5644 set dummy locate; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_path_LOCATE+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   case $LOCATE in
5651   [\\/]* | ?:[\\/]*)
5652   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5653   ;;
5654   *)
5655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667   done
5668 IFS=$as_save_IFS
5669
5670   ;;
5671 esac
5672 fi
5673 LOCATE=$ac_cv_path_LOCATE
5674 if test -n "$LOCATE"; then
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5676 $as_echo "$LOCATE" >&6; }
5677 else
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683 # Extract the first word of "dirname", so it can be a program name with args.
5684 set dummy dirname; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_DIRNAME+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   case $DIRNAME in
5691   [\\/]* | ?:[\\/]*)
5692   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5693   ;;
5694   *)
5695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710   ;;
5711 esac
5712 fi
5713 DIRNAME=$ac_cv_path_DIRNAME
5714 if test -n "$DIRNAME"; then
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5716 $as_echo "$DIRNAME" >&6; }
5717 else
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722
5723 # Extract the first word of "grep", so it can be a program name with args.
5724 set dummy grep; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_GREP+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $GREP in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750   ;;
5751 esac
5752 fi
5753 GREP=$ac_cv_path_GREP
5754 if test -n "$GREP"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5756 $as_echo "$GREP" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763
5764
5765 talloc_lib_dir=
5766
5767 # Check whether --with-talloc-lib-dir was given.
5768 if test "${with_talloc_lib_dir+set}" = set; then :
5769   withval=$with_talloc_lib_dir; case "$withval" in
5770     no)
5771       as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5772       ;;
5773     yes)
5774       ;;
5775     *)
5776       talloc_lib_dir="$withval"
5777       ;;
5778   esac
5779 fi
5780
5781
5782 talloc_include_dir=
5783
5784 # Check whether --with-talloc-include-dir was given.
5785 if test "${with_talloc_include_dir+set}" = set; then :
5786   withval=$with_talloc_include_dir; case "$withval" in
5787     no)
5788       as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5789       ;;
5790     yes)
5791       ;;
5792     *)
5793       talloc_include_dir="$withval"
5794       ;;
5795   esac
5796 fi
5797
5798
5799 smart_try_dir="$talloc_lib_dir"
5800
5801
5802 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5803 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5804
5805 old_LIBS="$LIBS"
5806 old_CPPFLAGS="$CPPFLAGS"
5807 smart_lib=
5808 smart_ldflags=
5809 smart_lib_dir=
5810
5811 if test "x$smart_try_dir" != "x"; then
5812   for try in $smart_try_dir; do
5813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5814 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5815     LIBS="-ltalloc $old_LIBS"
5816     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5817     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h.  */
5819 extern char _talloc();
5820 int
5821 main ()
5822 {
5823 _talloc()
5824   ;
5825   return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_c_try_link "$LINENO"; then :
5829
5830                  smart_lib="-ltalloc"
5831                  smart_ldflags="-L$try -Wl,-rpath,$try"
5832                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833 $as_echo "yes" >&6; }
5834                  break
5835
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841     conftest$ac_exeext conftest.$ac_ext
5842   done
5843   LIBS="$old_LIBS"
5844   CPPFLAGS="$old_CPPFLAGS"
5845 fi
5846
5847 if test "x$smart_lib" = "x"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5849 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5850   LIBS="-ltalloc $old_LIBS"
5851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h.  */
5853 extern char _talloc();
5854 int
5855 main ()
5856 {
5857 _talloc()
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 if ac_fn_c_try_link "$LINENO"; then :
5863
5864                 smart_lib="-ltalloc"
5865                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext \
5873     conftest$ac_exeext conftest.$ac_ext
5874   LIBS="$old_LIBS"
5875 fi
5876
5877 if test "x$smart_lib" = "x"; then
5878
5879
5880 if test "x$LOCATE" != "x"; then
5881         DIRS=
5882   file=libtalloc${libltdl_cv_shlibext}
5883
5884   for x in `${LOCATE} $file 2>/dev/null`; do
5885                                         base=`echo $x | sed "s%/${file}%%"`
5886     if test "x$x" = "x$base"; then
5887       continue;
5888     fi
5889
5890     dir=`${DIRNAME} $x 2>/dev/null`
5891                 exclude=`echo ${dir} | ${GREP} /home`
5892     if test "x$exclude" != "x"; then
5893       continue
5894     fi
5895
5896                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5897     if test "x$already" = "x"; then
5898       DIRS="$DIRS $dir"
5899     fi
5900   done
5901 fi
5902
5903 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5904
5905
5906
5907 if test "x$LOCATE" != "x"; then
5908         DIRS=
5909   file=libtalloc.a
5910
5911   for x in `${LOCATE} $file 2>/dev/null`; do
5912                                         base=`echo $x | sed "s%/${file}%%"`
5913     if test "x$x" = "x$base"; then
5914       continue;
5915     fi
5916
5917     dir=`${DIRNAME} $x 2>/dev/null`
5918                 exclude=`echo ${dir} | ${GREP} /home`
5919     if test "x$exclude" != "x"; then
5920       continue
5921     fi
5922
5923                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5924     if test "x$already" = "x"; then
5925       DIRS="$DIRS $dir"
5926     fi
5927   done
5928 fi
5929
5930 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5931
5932
5933   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5935 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5936     LIBS="-ltalloc $old_LIBS"
5937     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h.  */
5940 extern char _talloc();
5941 int
5942 main ()
5943 {
5944 _talloc()
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 if ac_fn_c_try_link "$LINENO"; then :
5950
5951                   smart_lib="-ltalloc"
5952                   smart_ldflags="-L$try -Wl,-rpath,$try"
5953                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5954 $as_echo "yes" >&6; }
5955                   break
5956
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext \
5962     conftest$ac_exeext conftest.$ac_ext
5963   done
5964   LIBS="$old_LIBS"
5965   CPPFLAGS="$old_CPPFLAGS"
5966 fi
5967
5968 if test "x$smart_lib" != "x"; then
5969   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
5970   LIBS="$smart_ldflags $smart_lib $old_LIBS"
5971   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
5972 fi
5973
5974 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
5976 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
5977   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
5978 fi
5979
5980 TALLOC_LIBS="${smart_lib}"
5981 TALLOC_LDFLAGS="${smart_ldflags}"
5982
5983
5984 LIBS="$old_LIBS"
5985
5986 old_CFLAGS=$CFLAGS
5987 if test "x$WITH_THREADS" = "xyes"; then
5988   if test $ac_cv_prog_suncc = "yes"; then
5989     CFLAGS="$CFLAGS -mt"
5990   fi
5991
5992   for ac_header in pthread.h
5993 do :
5994   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5995 if test "x$ac_cv_header_pthread_h" = xyes; then :
5996   cat >>confdefs.h <<_ACEOF
5997 #define HAVE_PTHREAD_H 1
5998 _ACEOF
5999
6000 else
6001
6002       WITH_THREADS="no"
6003       fail=pthread.h
6004
6005 fi
6006
6007 done
6008
6009
6010                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6011 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6012 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-lpthread  $LIBS"
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019
6020 /* Override any GCC internal prototype to avoid an error.
6021    Use char because int might match the return type of a GCC
6022    builtin and then its argument prototype would still apply.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 #endif
6026 char pthread_create ();
6027 int
6028 main ()
6029 {
6030 return pthread_create ();
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_link "$LINENO"; then :
6036   ac_cv_lib_pthread_pthread_create=yes
6037 else
6038   ac_cv_lib_pthread_pthread_create=no
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext \
6041     conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6045 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6046 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6047
6048       CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6049       LIBS="-lpthread $LIBS"
6050
6051 else
6052
6053                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6054 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6055 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-lc_r  $LIBS"
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h.  */
6062
6063 /* Override any GCC internal prototype to avoid an error.
6064    Use char because int might match the return type of a GCC
6065    builtin and then its argument prototype would still apply.  */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 char pthread_create ();
6070 int
6071 main ()
6072 {
6073 return pthread_create ();
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 if ac_fn_c_try_link "$LINENO"; then :
6079   ac_cv_lib_c_r_pthread_create=yes
6080 else
6081   ac_cv_lib_c_r_pthread_create=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext \
6084     conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6088 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6089 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6090    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6091 else
6092
6093           WITH_THREADS="no"
6094           fail=-lpthread
6095
6096
6097 fi
6098
6099
6100
6101 fi
6102
6103
6104   if test "x$WITH_THREADS" != "xyes"; then
6105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6106 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6107     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6108 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6109   else
6110
6111 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6112
6113   fi
6114 fi
6115
6116 if test "x$WITH_THREADS" != "xyes"; then
6117   CFLAGS=$old_CFLAGS
6118   ac_cv_header_pthread_h="no"
6119   WITH_THREADS=no
6120 else
6121
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6123 $as_echo_n "checking for library containing sem_init... " >&6; }
6124 if ${ac_cv_search_sem_init+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   ac_func_search_save_LIBS=$LIBS
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130
6131 /* Override any GCC internal prototype to avoid an error.
6132    Use char because int might match the return type of a GCC
6133    builtin and then its argument prototype would still apply.  */
6134 #ifdef __cplusplus
6135 extern "C"
6136 #endif
6137 char sem_init ();
6138 int
6139 main ()
6140 {
6141 return sem_init ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 for ac_lib in '' pthread sem posix4 rt semaphore; do
6147   if test -z "$ac_lib"; then
6148     ac_res="none required"
6149   else
6150     ac_res=-l$ac_lib
6151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6152   fi
6153   if ac_fn_c_try_link "$LINENO"; then :
6154   ac_cv_search_sem_init=$ac_res
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext \
6157     conftest$ac_exeext
6158   if ${ac_cv_search_sem_init+:} false; then :
6159   break
6160 fi
6161 done
6162 if ${ac_cv_search_sem_init+:} false; then :
6163
6164 else
6165   ac_cv_search_sem_init=no
6166 fi
6167 rm conftest.$ac_ext
6168 LIBS=$ac_func_search_save_LIBS
6169 fi
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6171 $as_echo "$ac_cv_search_sem_init" >&6; }
6172 ac_res=$ac_cv_search_sem_init
6173 if test "$ac_res" != no; then :
6174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6175
6176 else
6177   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
6178
6179 fi
6180
6181 fi
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6185 if ${ac_cv_lib_dl_dlopen+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   ac_check_lib_save_LIBS=$LIBS
6189 LIBS="-ldl  $LIBS"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h.  */
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194    Use char because int might match the return type of a GCC
6195    builtin and then its argument prototype would still apply.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char dlopen ();
6200 int
6201 main ()
6202 {
6203 return dlopen ();
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209   ac_cv_lib_dl_dlopen=yes
6210 else
6211   ac_cv_lib_dl_dlopen=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214     conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6219 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6220   cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBDL 1
6222 _ACEOF
6223
6224   LIBS="-ldl $LIBS"
6225
6226 fi
6227
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6230 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6231 if ${ac_cv_lib_socket_getsockname+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lsocket  $LIBS"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239 /* Override any GCC internal prototype to avoid an error.
6240    Use char because int might match the return type of a GCC
6241    builtin and then its argument prototype would still apply.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 char getsockname ();
6246 int
6247 main ()
6248 {
6249 return getsockname ();
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255   ac_cv_lib_socket_getsockname=yes
6256 else
6257   ac_cv_lib_socket_getsockname=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext \
6260     conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6264 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6265 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6266   cat >>confdefs.h <<_ACEOF
6267 #define HAVE_LIBSOCKET 1
6268 _ACEOF
6269
6270   LIBS="-lsocket $LIBS"
6271
6272 fi
6273
6274
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6276 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6277 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   ac_check_lib_save_LIBS=$LIBS
6281 LIBS="-lresolv  $LIBS"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h.  */
6284
6285 /* Override any GCC internal prototype to avoid an error.
6286    Use char because int might match the return type of a GCC
6287    builtin and then its argument prototype would still apply.  */
6288 #ifdef __cplusplus
6289 extern "C"
6290 #endif
6291 char inet_aton ();
6292 int
6293 main ()
6294 {
6295 return inet_aton ();
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_link "$LINENO"; then :
6301   ac_cv_lib_resolv_inet_aton=yes
6302 else
6303   ac_cv_lib_resolv_inet_aton=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext \
6306     conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6310 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6311 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6312   cat >>confdefs.h <<_ACEOF
6313 #define HAVE_LIBRESOLV 1
6314 _ACEOF
6315
6316   LIBS="-lresolv $LIBS"
6317
6318 fi
6319
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6322 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6323 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6324   $as_echo_n "(cached) " >&6
6325 else
6326   ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lnsl  $LIBS"
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h.  */
6330
6331 /* Override any GCC internal prototype to avoid an error.
6332    Use char because int might match the return type of a GCC
6333    builtin and then its argument prototype would still apply.  */
6334 #ifdef __cplusplus
6335 extern "C"
6336 #endif
6337 char inet_ntoa ();
6338 int
6339 main ()
6340 {
6341 return inet_ntoa ();
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 if ac_fn_c_try_link "$LINENO"; then :
6347   ac_cv_lib_nsl_inet_ntoa=yes
6348 else
6349   ac_cv_lib_nsl_inet_ntoa=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext \
6352     conftest$ac_exeext conftest.$ac_ext
6353 LIBS=$ac_check_lib_save_LIBS
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6356 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6357 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6358   cat >>confdefs.h <<_ACEOF
6359 #define HAVE_LIBNSL 1
6360 _ACEOF
6361
6362   LIBS="-lnsl $LIBS"
6363
6364 fi
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6367 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6368 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   ac_check_lib_save_LIBS=$LIBS
6372 LIBS="-lws2_32  $LIBS"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h.  */
6375
6376 /* Override any GCC internal prototype to avoid an error.
6377    Use char because int might match the return type of a GCC
6378    builtin and then its argument prototype would still apply.  */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 char htonl ();
6383 int
6384 main ()
6385 {
6386 return htonl ();
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392   ac_cv_lib_ws2_32_htonl=yes
6393 else
6394   ac_cv_lib_ws2_32_htonl=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397     conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6401 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6402 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6403   cat >>confdefs.h <<_ACEOF
6404 #define HAVE_LIBWS2_32 1
6405 _ACEOF
6406
6407   LIBS="-lws2_32 $LIBS"
6408
6409 fi
6410
6411
6412 pcap_lib_dir=
6413
6414 # Check whether --with-pcap-lib-dir was given.
6415 if test "${with_pcap_lib_dir+set}" = set; then :
6416   withval=$with_pcap_lib_dir; case "$withval" in
6417     no)
6418       as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6419       ;;
6420     yes)
6421       ;;
6422     *)
6423       pcap_lib_dir="$withval"
6424       ;;
6425   esac
6426 fi
6427
6428
6429 pcap_include_dir=
6430
6431 # Check whether --with-pcap-include-dir was given.
6432 if test "${with_pcap_include_dir+set}" = set; then :
6433   withval=$with_pcap_include_dir; case "$withval" in
6434     no)
6435       as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6436       ;;
6437     yes)
6438       ;;
6439     *)
6440       pcap_include_dir="$withval"
6441       ;;
6442   esac
6443 fi
6444
6445
6446 smart_try_dir="$pcap_lib_dir"
6447
6448
6449 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6450 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6451
6452 old_LIBS="$LIBS"
6453 old_CPPFLAGS="$CPPFLAGS"
6454 smart_lib=
6455 smart_ldflags=
6456 smart_lib_dir=
6457
6458 if test "x$smart_try_dir" != "x"; then
6459   for try in $smart_try_dir; do
6460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6461 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6462     LIBS="-lpcap $old_LIBS"
6463     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h.  */
6466 extern char pcap_open_live();
6467 int
6468 main ()
6469 {
6470 pcap_open_live()
6471   ;
6472   return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_c_try_link "$LINENO"; then :
6476
6477                  smart_lib="-lpcap"
6478                  smart_ldflags="-L$try -Wl,-rpath,$try"
6479                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6480 $as_echo "yes" >&6; }
6481                  break
6482
6483 else
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext \
6488     conftest$ac_exeext conftest.$ac_ext
6489   done
6490   LIBS="$old_LIBS"
6491   CPPFLAGS="$old_CPPFLAGS"
6492 fi
6493
6494 if test "x$smart_lib" = "x"; then
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6496 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6497   LIBS="-lpcap $old_LIBS"
6498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h.  */
6500 extern char pcap_open_live();
6501 int
6502 main ()
6503 {
6504 pcap_open_live()
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 if ac_fn_c_try_link "$LINENO"; then :
6510
6511                 smart_lib="-lpcap"
6512                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6513 $as_echo "yes" >&6; }
6514
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext \
6520     conftest$ac_exeext conftest.$ac_ext
6521   LIBS="$old_LIBS"
6522 fi
6523
6524 if test "x$smart_lib" = "x"; then
6525
6526
6527 if test "x$LOCATE" != "x"; then
6528         DIRS=
6529   file=libpcap${libltdl_cv_shlibext}
6530
6531   for x in `${LOCATE} $file 2>/dev/null`; do
6532                                         base=`echo $x | sed "s%/${file}%%"`
6533     if test "x$x" = "x$base"; then
6534       continue;
6535     fi
6536
6537     dir=`${DIRNAME} $x 2>/dev/null`
6538                 exclude=`echo ${dir} | ${GREP} /home`
6539     if test "x$exclude" != "x"; then
6540       continue
6541     fi
6542
6543                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6544     if test "x$already" = "x"; then
6545       DIRS="$DIRS $dir"
6546     fi
6547   done
6548 fi
6549
6550 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6551
6552
6553
6554 if test "x$LOCATE" != "x"; then
6555         DIRS=
6556   file=libpcap.a
6557
6558   for x in `${LOCATE} $file 2>/dev/null`; do
6559                                         base=`echo $x | sed "s%/${file}%%"`
6560     if test "x$x" = "x$base"; then
6561       continue;
6562     fi
6563
6564     dir=`${DIRNAME} $x 2>/dev/null`
6565                 exclude=`echo ${dir} | ${GREP} /home`
6566     if test "x$exclude" != "x"; then
6567       continue
6568     fi
6569
6570                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6571     if test "x$already" = "x"; then
6572       DIRS="$DIRS $dir"
6573     fi
6574   done
6575 fi
6576
6577 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6578
6579
6580   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6582 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6583     LIBS="-lpcap $old_LIBS"
6584     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h.  */
6587 extern char pcap_open_live();
6588 int
6589 main ()
6590 {
6591 pcap_open_live()
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597
6598                   smart_lib="-lpcap"
6599                   smart_ldflags="-L$try -Wl,-rpath,$try"
6600                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6601 $as_echo "yes" >&6; }
6602                   break
6603
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext \
6609     conftest$ac_exeext conftest.$ac_ext
6610   done
6611   LIBS="$old_LIBS"
6612   CPPFLAGS="$old_CPPFLAGS"
6613 fi
6614
6615 if test "x$smart_lib" != "x"; then
6616   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6617   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6618   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6619 fi
6620
6621 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6622   { $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
6623 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener.  Use --with-pcap-lib-dir=<path>." >&2;}
6624 else
6625
6626 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6627
6628
6629   for ac_func in \
6630     pcap_fopen_offline \
6631     pcap_dump_fopen \
6632     pcap_create \
6633     pcap_activate
6634
6635 do :
6636   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6639   cat >>confdefs.h <<_ACEOF
6640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6641 _ACEOF
6642
6643 fi
6644 done
6645
6646
6647   PCAP_LIBS="${smart_lib}"
6648   PCAP_LDFLAGS="${smart_ldflags}"
6649 fi
6650 LIBS="${old_LIBS}"
6651
6652 collectdclient_lib_dir=
6653
6654 # Check whether --with-collectdclient-lib-dir was given.
6655 if test "${with_collectdclient_lib_dir+set}" = set; then :
6656   withval=$with_collectdclient_lib_dir; case "$withval" in
6657     no)
6658       as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6659       ;;
6660     yes)
6661       ;;
6662     *)
6663       collectdclient_lib_dir="$withval"
6664       ;;
6665   esac
6666 fi
6667
6668
6669 collectdclient_include_dir=
6670
6671 # Check whether --with-collectdclient-include-dir was given.
6672 if test "${with_collectdclient_include_dir+set}" = set; then :
6673   withval=$with_collectdclient_include_dir; case "$withval" in
6674     no)
6675       as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6676       ;;
6677     yes)
6678       ;;
6679     *)
6680       collectdclient_include_dir="$withval"
6681       ;;
6682   esac
6683 fi
6684
6685
6686 smart_try_dir="$collectdclient_lib_dir"
6687
6688
6689 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6690 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6691
6692 old_LIBS="$LIBS"
6693 old_CPPFLAGS="$CPPFLAGS"
6694 smart_lib=
6695 smart_ldflags=
6696 smart_lib_dir=
6697
6698 if test "x$smart_try_dir" != "x"; then
6699   for try in $smart_try_dir; do
6700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6701 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6702     LIBS="-lcollectdclient $old_LIBS"
6703     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h.  */
6706 extern char lcc_connect();
6707 int
6708 main ()
6709 {
6710 lcc_connect()
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 if ac_fn_c_try_link "$LINENO"; then :
6716
6717                  smart_lib="-lcollectdclient"
6718                  smart_ldflags="-L$try -Wl,-rpath,$try"
6719                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6720 $as_echo "yes" >&6; }
6721                  break
6722
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext \
6728     conftest$ac_exeext conftest.$ac_ext
6729   done
6730   LIBS="$old_LIBS"
6731   CPPFLAGS="$old_CPPFLAGS"
6732 fi
6733
6734 if test "x$smart_lib" = "x"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6736 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6737   LIBS="-lcollectdclient $old_LIBS"
6738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740 extern char lcc_connect();
6741 int
6742 main ()
6743 {
6744 lcc_connect()
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750
6751                 smart_lib="-lcollectdclient"
6752                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6754
6755 else
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext \
6760     conftest$ac_exeext conftest.$ac_ext
6761   LIBS="$old_LIBS"
6762 fi
6763
6764 if test "x$smart_lib" = "x"; then
6765
6766
6767 if test "x$LOCATE" != "x"; then
6768         DIRS=
6769   file=libcollectdclient${libltdl_cv_shlibext}
6770
6771   for x in `${LOCATE} $file 2>/dev/null`; do
6772                                         base=`echo $x | sed "s%/${file}%%"`
6773     if test "x$x" = "x$base"; then
6774       continue;
6775     fi
6776
6777     dir=`${DIRNAME} $x 2>/dev/null`
6778                 exclude=`echo ${dir} | ${GREP} /home`
6779     if test "x$exclude" != "x"; then
6780       continue
6781     fi
6782
6783                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6784     if test "x$already" = "x"; then
6785       DIRS="$DIRS $dir"
6786     fi
6787   done
6788 fi
6789
6790 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6791
6792
6793
6794 if test "x$LOCATE" != "x"; then
6795         DIRS=
6796   file=libcollectdclient.a
6797
6798   for x in `${LOCATE} $file 2>/dev/null`; do
6799                                         base=`echo $x | sed "s%/${file}%%"`
6800     if test "x$x" = "x$base"; then
6801       continue;
6802     fi
6803
6804     dir=`${DIRNAME} $x 2>/dev/null`
6805                 exclude=`echo ${dir} | ${GREP} /home`
6806     if test "x$exclude" != "x"; then
6807       continue
6808     fi
6809
6810                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6811     if test "x$already" = "x"; then
6812       DIRS="$DIRS $dir"
6813     fi
6814   done
6815 fi
6816
6817 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6818
6819
6820   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6822 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6823     LIBS="-lcollectdclient $old_LIBS"
6824     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 extern char lcc_connect();
6828 int
6829 main ()
6830 {
6831 lcc_connect()
6832   ;
6833   return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_link "$LINENO"; then :
6837
6838                   smart_lib="-lcollectdclient"
6839                   smart_ldflags="-L$try -Wl,-rpath,$try"
6840                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841 $as_echo "yes" >&6; }
6842                   break
6843
6844 else
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext \
6849     conftest$ac_exeext conftest.$ac_ext
6850   done
6851   LIBS="$old_LIBS"
6852   CPPFLAGS="$old_CPPFLAGS"
6853 fi
6854
6855 if test "x$smart_lib" != "x"; then
6856   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6857   LIBS="$smart_ldflags $smart_lib $old_LIBS"
6858   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6859 fi
6860
6861 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
6863 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
6864 else
6865   COLLECTDC_LIBS="${smart_lib}"
6866   COLLECTDC_LDFLAGS="${smart_ldflags}"
6867 fi
6868 LIBS="${old_LIBS}"
6869
6870
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6872 $as_echo_n "checking for a readline compatible library... " >&6; }
6873 if ${vl_cv_lib_readline+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876
6877     ORIG_LIBS="$LIBS"
6878     for readline_lib in readline edit editline; do
6879       for termcap_lib in "" termcap curses ncurses; do
6880         if test -z "$termcap_lib"; then
6881           TRY_LIB="-l$readline_lib"
6882         else
6883           TRY_LIB="-l$readline_lib -l$termcap_lib"
6884         fi
6885         LIBS="$ORIG_LIBS $TRY_LIB"
6886         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h.  */
6888
6889 /* Override any GCC internal prototype to avoid an error.
6890    Use char because int might match the return type of a GCC
6891    builtin and then its argument prototype would still apply.  */
6892 #ifdef __cplusplus
6893 extern "C"
6894 #endif
6895 char readline ();
6896 int
6897 main ()
6898 {
6899 return readline ();
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905   vl_cv_lib_readline="$TRY_LIB"
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext \
6908     conftest$ac_exeext conftest.$ac_ext
6909         if test -n "$vl_cv_lib_readline"; then
6910           break
6911         fi
6912       done
6913       if test -n "$vl_cv_lib_readline"; then
6914         break
6915       fi
6916     done
6917     if test -z "$vl_cv_lib_readline"; then
6918       vl_cv_lib_readline="no"
6919       LIBS="$ORIG_LIBS"
6920     fi
6921
6922 fi
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6924 $as_echo "$vl_cv_lib_readline" >&6; }
6925
6926   if test "$vl_cv_lib_readline" != "no"; then
6927     LIBREADLINE="$vl_cv_lib_readline"
6928
6929 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6930
6931     for ac_header in readline.h readline/readline.h
6932 do :
6933   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6936   cat >>confdefs.h <<_ACEOF
6937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6938 _ACEOF
6939
6940 fi
6941
6942 done
6943
6944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6945 $as_echo_n "checking whether readline supports history... " >&6; }
6946 if ${vl_cv_lib_readline_history+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949
6950       vl_cv_lib_readline_history="no"
6951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h.  */
6953
6954 /* Override any GCC internal prototype to avoid an error.
6955    Use char because int might match the return type of a GCC
6956    builtin and then its argument prototype would still apply.  */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 char add_history ();
6961 int
6962 main ()
6963 {
6964 return add_history ();
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 if ac_fn_c_try_link "$LINENO"; then :
6970   vl_cv_lib_readline_history="yes"
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext \
6973     conftest$ac_exeext conftest.$ac_ext
6974
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6977 $as_echo "$vl_cv_lib_readline_history" >&6; }
6978     if test "$vl_cv_lib_readline_history" = "yes"; then
6979
6980 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6981
6982       for ac_header in history.h readline/history.h
6983 do :
6984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6987   cat >>confdefs.h <<_ACEOF
6988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6989 _ACEOF
6990
6991 fi
6992
6993 done
6994
6995     fi
6996   fi
6997
6998
6999
7000
7001 smart_try_dir="$talloc_include_dir"
7002
7003
7004 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7005 old_CPPFLAGS="$CPPFLAGS"
7006 smart_include=
7007 smart_include_dir="/usr/local/include /opt/include"
7008
7009 _smart_try_dir=
7010 _smart_include_dir=
7011
7012 for _prefix in $smart_prefix ""; do
7013   for _dir in $smart_try_dir; do
7014     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7015   done
7016
7017   for _dir in $smart_include_dir; do
7018     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7019   done
7020 done
7021
7022 if test "x$_smart_try_dir" != "x"; then
7023   for try in $_smart_try_dir; do
7024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7025 $as_echo_n "checking for talloc.h in $try... " >&6; }
7026     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029
7030                     #include <talloc.h>
7031 int
7032 main ()
7033 {
7034 int a = 1;
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040
7041                      smart_include="-isystem $try"
7042                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7043 $as_echo "yes" >&6; }
7044                      break
7045
7046 else
7047
7048                      smart_include=
7049                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054   done
7055   CPPFLAGS="$old_CPPFLAGS"
7056 fi
7057
7058 if test "x$smart_include" = "x"; then
7059   for _prefix in $smart_prefix; do
7060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7061 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7062
7063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065
7066                     #include <talloc.h>
7067 int
7068 main ()
7069 {
7070 int a = 1;
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076
7077                      smart_include="-isystem ${_prefix}/"
7078                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080                      break
7081
7082 else
7083
7084                      smart_include=
7085                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7087
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090   done
7091 fi
7092
7093 if test "x$smart_include" = "x"; then
7094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7095 $as_echo_n "checking for talloc.h... " >&6; }
7096
7097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h.  */
7099
7100                     #include <talloc.h>
7101 int
7102 main ()
7103 {
7104 int a = 1;
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110
7111                      smart_include=" "
7112                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114                      break
7115
7116 else
7117
7118                      smart_include=
7119                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125
7126 if test "x$smart_include" = "x"; then
7127
7128   for prefix in $smart_prefix; do
7129
7130
7131 if test "x$LOCATE" != "x"; then
7132         DIRS=
7133   file="${_prefix}/${1}"
7134
7135   for x in `${LOCATE} $file 2>/dev/null`; do
7136                                         base=`echo $x | sed "s%/${file}%%"`
7137     if test "x$x" = "x$base"; then
7138       continue;
7139     fi
7140
7141     dir=`${DIRNAME} $x 2>/dev/null`
7142                 exclude=`echo ${dir} | ${GREP} /home`
7143     if test "x$exclude" != "x"; then
7144       continue
7145     fi
7146
7147                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7148     if test "x$already" = "x"; then
7149       DIRS="$DIRS $dir"
7150     fi
7151   done
7152 fi
7153
7154 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7155
7156   done
7157
7158
7159 if test "x$LOCATE" != "x"; then
7160         DIRS=
7161   file=talloc.h
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_include_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_include_dir=\"\$_smart_include_dir $DIRS\""
7183
7184
7185   for try in $_smart_include_dir; do
7186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7187 $as_echo_n "checking for talloc.h in $try... " >&6; }
7188     CPPFLAGS="-isystem $try $old_CPPFLAGS"
7189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191
7192                     #include <talloc.h>
7193 int
7194 main ()
7195 {
7196 int a = 1;
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7202
7203                      smart_include="-isystem $try"
7204                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7205 $as_echo "yes" >&6; }
7206                      break
7207
7208 else
7209
7210                      smart_include=
7211                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216   done
7217   CPPFLAGS="$old_CPPFLAGS"
7218 fi
7219
7220 if test "x$smart_include" != "x"; then
7221   eval "ac_cv_header_$ac_safe=yes"
7222   CPPFLAGS="$smart_include $old_CPPFLAGS"
7223   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7224 fi
7225
7226 smart_prefix=
7227
7228 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7230 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7231   as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7232 fi
7233
7234 case "$host" in
7235   *-interix*)
7236     CFLAGS="$CFLAGS -D_ALL_SOURCE"
7237     ;;
7238   *-darwin*)
7239     CFLAGS="$CFLAGS -DDARWIN"
7240     LIBS="-framework DirectoryService $LIBS"
7241
7242 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7243
7244     ;;
7245 esac
7246
7247 ac_header_dirent=no
7248 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7249   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7251 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7252 if eval \${$as_ac_Header+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h.  */
7257 #include <sys/types.h>
7258 #include <$ac_hdr>
7259
7260 int
7261 main ()
7262 {
7263 if ((DIR *) 0)
7264 return 0;
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"; then :
7270   eval "$as_ac_Header=yes"
7271 else
7272   eval "$as_ac_Header=no"
7273 fi
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 fi
7276 eval ac_res=\$$as_ac_Header
7277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7280   cat >>confdefs.h <<_ACEOF
7281 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 ac_header_dirent=$ac_hdr; break
7285 fi
7286
7287 done
7288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7289 if test $ac_header_dirent = dirent.h; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7291 $as_echo_n "checking for library containing opendir... " >&6; }
7292 if ${ac_cv_search_opendir+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   ac_func_search_save_LIBS=$LIBS
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h.  */
7298
7299 /* Override any GCC internal prototype to avoid an error.
7300    Use char because int might match the return type of a GCC
7301    builtin and then its argument prototype would still apply.  */
7302 #ifdef __cplusplus
7303 extern "C"
7304 #endif
7305 char opendir ();
7306 int
7307 main ()
7308 {
7309 return opendir ();
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 for ac_lib in '' dir; do
7315   if test -z "$ac_lib"; then
7316     ac_res="none required"
7317   else
7318     ac_res=-l$ac_lib
7319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7320   fi
7321   if ac_fn_c_try_link "$LINENO"; then :
7322   ac_cv_search_opendir=$ac_res
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext \
7325     conftest$ac_exeext
7326   if ${ac_cv_search_opendir+:} false; then :
7327   break
7328 fi
7329 done
7330 if ${ac_cv_search_opendir+:} false; then :
7331
7332 else
7333   ac_cv_search_opendir=no
7334 fi
7335 rm conftest.$ac_ext
7336 LIBS=$ac_func_search_save_LIBS
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7339 $as_echo "$ac_cv_search_opendir" >&6; }
7340 ac_res=$ac_cv_search_opendir
7341 if test "$ac_res" != no; then :
7342   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7343
7344 fi
7345
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7348 $as_echo_n "checking for library containing opendir... " >&6; }
7349 if ${ac_cv_search_opendir+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   ac_func_search_save_LIBS=$LIBS
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355
7356 /* Override any GCC internal prototype to avoid an error.
7357    Use char because int might match the return type of a GCC
7358    builtin and then its argument prototype would still apply.  */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char opendir ();
7363 int
7364 main ()
7365 {
7366 return opendir ();
7367   ;
7368   return 0;
7369 }
7370 _ACEOF
7371 for ac_lib in '' x; do
7372   if test -z "$ac_lib"; then
7373     ac_res="none required"
7374   else
7375     ac_res=-l$ac_lib
7376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7377   fi
7378   if ac_fn_c_try_link "$LINENO"; then :
7379   ac_cv_search_opendir=$ac_res
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382     conftest$ac_exeext
7383   if ${ac_cv_search_opendir+:} false; then :
7384   break
7385 fi
7386 done
7387 if ${ac_cv_search_opendir+:} false; then :
7388
7389 else
7390   ac_cv_search_opendir=no
7391 fi
7392 rm conftest.$ac_ext
7393 LIBS=$ac_func_search_save_LIBS
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7396 $as_echo "$ac_cv_search_opendir" >&6; }
7397 ac_res=$ac_cv_search_opendir
7398 if test "$ac_res" != no; then :
7399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7400
7401 fi
7402
7403 fi
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7406 $as_echo_n "checking for ANSI C header files... " >&6; }
7407 if ${ac_cv_header_stdc+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412 #include <stdlib.h>
7413 #include <stdarg.h>
7414 #include <string.h>
7415 #include <float.h>
7416
7417 int
7418 main ()
7419 {
7420
7421   ;
7422   return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426   ac_cv_header_stdc=yes
7427 else
7428   ac_cv_header_stdc=no
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431
7432 if test $ac_cv_header_stdc = yes; then
7433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436 #include <string.h>
7437
7438 _ACEOF
7439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7440   $EGREP "memchr" >/dev/null 2>&1; then :
7441
7442 else
7443   ac_cv_header_stdc=no
7444 fi
7445 rm -f conftest*
7446
7447 fi
7448
7449 if test $ac_cv_header_stdc = yes; then
7450   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h.  */
7453 #include <stdlib.h>
7454
7455 _ACEOF
7456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457   $EGREP "free" >/dev/null 2>&1; then :
7458
7459 else
7460   ac_cv_header_stdc=no
7461 fi
7462 rm -f conftest*
7463
7464 fi
7465
7466 if test $ac_cv_header_stdc = yes; then
7467   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7468   if test "$cross_compiling" = yes; then :
7469   :
7470 else
7471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473 #include <ctype.h>
7474 #include <stdlib.h>
7475 #if ((' ' & 0x0FF) == 0x020)
7476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7478 #else
7479 # define ISLOWER(c) \
7480                    (('a' <= (c) && (c) <= 'i') \
7481                      || ('j' <= (c) && (c) <= 'r') \
7482                      || ('s' <= (c) && (c) <= 'z'))
7483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7484 #endif
7485
7486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7487 int
7488 main ()
7489 {
7490   int i;
7491   for (i = 0; i < 256; i++)
7492     if (XOR (islower (i), ISLOWER (i))
7493         || toupper (i) != TOUPPER (i))
7494       return 2;
7495   return 0;
7496 }
7497 _ACEOF
7498 if ac_fn_c_try_run "$LINENO"; then :
7499
7500 else
7501   ac_cv_header_stdc=no
7502 fi
7503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7504   conftest.$ac_objext conftest.beam conftest.$ac_ext
7505 fi
7506
7507 fi
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7510 $as_echo "$ac_cv_header_stdc" >&6; }
7511 if test $ac_cv_header_stdc = yes; then
7512
7513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7514
7515 fi
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7518 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7519 if ${ac_cv_header_time+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h.  */
7524 #include <sys/types.h>
7525 #include <sys/time.h>
7526 #include <time.h>
7527
7528 int
7529 main ()
7530 {
7531 if ((struct tm *) 0)
7532 return 0;
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538   ac_cv_header_time=yes
7539 else
7540   ac_cv_header_time=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7545 $as_echo "$ac_cv_header_time" >&6; }
7546 if test $ac_cv_header_time = yes; then
7547
7548 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7549
7550 fi
7551
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7553 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7554 if ${ac_cv_header_sys_wait_h+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h.  */
7559 #include <sys/types.h>
7560 #include <sys/wait.h>
7561 #ifndef WEXITSTATUS
7562 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7563 #endif
7564 #ifndef WIFEXITED
7565 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7566 #endif
7567
7568 int
7569 main ()
7570 {
7571   int s;
7572   wait (&s);
7573   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7574   ;
7575   return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579   ac_cv_header_sys_wait_h=yes
7580 else
7581   ac_cv_header_sys_wait_h=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7586 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7587 if test $ac_cv_header_sys_wait_h = yes; then
7588
7589 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7590
7591 fi
7592
7593
7594 for ac_header in \
7595   dlfcn.h \
7596   unistd.h \
7597   crypt.h \
7598   errno.h \
7599   resource.h \
7600   sys/resource.h \
7601   getopt.h \
7602   malloc.h \
7603   utmp.h \
7604   utmpx.h \
7605   signal.h \
7606   sys/select.h \
7607   syslog.h \
7608   inttypes.h \
7609   stdint.h \
7610   stdbool.h \
7611   stdio.h \
7612   netdb.h \
7613   semaphore.h \
7614   arpa/inet.h \
7615   netinet/in.h \
7616   sys/types.h \
7617   sys/socket.h \
7618   winsock.h \
7619   utime.h \
7620   sys/time.h \
7621   sys/wait.h \
7622   sys/security.h \
7623   fcntl.h \
7624   sys/fcntl.h \
7625   sys/prctl.h \
7626   sys/ptrace.h \
7627   sys/un.h \
7628   glob.h \
7629   prot.h \
7630   pwd.h \
7631   grp.h \
7632   stddef.h \
7633   fnmatch.h \
7634   sia.h \
7635   siad.h \
7636   features.h \
7637   limits.h
7638
7639 do :
7640   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7641 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7643   cat >>confdefs.h <<_ACEOF
7644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7645 _ACEOF
7646
7647 fi
7648
7649 done
7650
7651
7652 for ac_header in net/if.h
7653 do :
7654   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7655     #ifdef HAVE_SYS_SOCKET_H
7656     #  include <sys/socket.h>
7657     #endif
7658
7659
7660 "
7661 if test "x$ac_cv_header_net_if_h" = xyes; then :
7662   cat >>confdefs.h <<_ACEOF
7663 #define HAVE_NET_IF_H 1
7664 _ACEOF
7665
7666 fi
7667
7668 done
7669
7670
7671 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7672 then
7673
7674 $as_echo "#define OSFC2 /**/" >>confdefs.h
7675
7676 fi
7677
7678 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7679 then
7680
7681 $as_echo "#define OSFSIA /**/" >>confdefs.h
7682
7683 fi
7684
7685 if test "x$WITH_OPENSSL" = xyes; then
7686   OLD_LIBS="$LIBS"
7687
7688         CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
7689
7690         smart_try_dir="$openssl_lib_dir"
7691
7692
7693 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7694 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7695
7696 old_LIBS="$LIBS"
7697 old_CPPFLAGS="$CPPFLAGS"
7698 smart_lib=
7699 smart_ldflags=
7700 smart_lib_dir=
7701
7702 if test "x$smart_try_dir" != "x"; then
7703   for try in $smart_try_dir; do
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7705 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7706     LIBS="-lcrypto $old_LIBS"
7707     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 extern char DH_new();
7711 int
7712 main ()
7713 {
7714 DH_new()
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720
7721                  smart_lib="-lcrypto"
7722                  smart_ldflags="-L$try -Wl,-rpath,$try"
7723                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724 $as_echo "yes" >&6; }
7725                  break
7726
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext \
7732     conftest$ac_exeext conftest.$ac_ext
7733   done
7734   LIBS="$old_LIBS"
7735   CPPFLAGS="$old_CPPFLAGS"
7736 fi
7737
7738 if test "x$smart_lib" = "x"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7740 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7741   LIBS="-lcrypto $old_LIBS"
7742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h.  */
7744 extern char DH_new();
7745 int
7746 main ()
7747 {
7748 DH_new()
7749   ;
7750   return 0;
7751 }
7752 _ACEOF
7753 if ac_fn_c_try_link "$LINENO"; then :
7754
7755                 smart_lib="-lcrypto"
7756                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7757 $as_echo "yes" >&6; }
7758
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext \
7764     conftest$ac_exeext conftest.$ac_ext
7765   LIBS="$old_LIBS"
7766 fi
7767
7768 if test "x$smart_lib" = "x"; then
7769
7770
7771 if test "x$LOCATE" != "x"; then
7772         DIRS=
7773   file=libcrypto${libltdl_cv_shlibext}
7774
7775   for x in `${LOCATE} $file 2>/dev/null`; do
7776                                         base=`echo $x | sed "s%/${file}%%"`
7777     if test "x$x" = "x$base"; then
7778       continue;
7779     fi
7780
7781     dir=`${DIRNAME} $x 2>/dev/null`
7782                 exclude=`echo ${dir} | ${GREP} /home`
7783     if test "x$exclude" != "x"; then
7784       continue
7785     fi
7786
7787                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7788     if test "x$already" = "x"; then
7789       DIRS="$DIRS $dir"
7790     fi
7791   done
7792 fi
7793
7794 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7795
7796
7797
7798 if test "x$LOCATE" != "x"; then
7799         DIRS=
7800   file=libcrypto.a
7801
7802   for x in `${LOCATE} $file 2>/dev/null`; do
7803                                         base=`echo $x | sed "s%/${file}%%"`
7804     if test "x$x" = "x$base"; then
7805       continue;
7806     fi
7807
7808     dir=`${DIRNAME} $x 2>/dev/null`
7809                 exclude=`echo ${dir} | ${GREP} /home`
7810     if test "x$exclude" != "x"; then
7811       continue
7812     fi
7813
7814                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7815     if test "x$already" = "x"; then
7816       DIRS="$DIRS $dir"
7817     fi
7818   done
7819 fi
7820
7821 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7822
7823
7824   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7826 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7827     LIBS="-lcrypto $old_LIBS"
7828     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h.  */
7831 extern char DH_new();
7832 int
7833 main ()
7834 {
7835 DH_new()
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841
7842                   smart_lib="-lcrypto"
7843                   smart_ldflags="-L$try -Wl,-rpath,$try"
7844                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7845 $as_echo "yes" >&6; }
7846                   break
7847
7848 else
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext \
7853     conftest$ac_exeext conftest.$ac_ext
7854   done
7855   LIBS="$old_LIBS"
7856   CPPFLAGS="$old_CPPFLAGS"
7857 fi
7858
7859 if test "x$smart_lib" != "x"; then
7860   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7861   LIBS="$smart_ldflags $smart_lib $old_LIBS"
7862   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7863 fi
7864
7865   if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
7866
7867 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7868
7869     OPENSSL_LIBS="$smart_lib"
7870     OPENSSL_LDFLAGS="$smart_ldflags"
7871
7872
7873
7874 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
7875 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
7876
7877 old_LIBS="$LIBS"
7878 old_CPPFLAGS="$CPPFLAGS"
7879 smart_lib=
7880 smart_ldflags=
7881 smart_lib_dir=
7882
7883 if test "x$smart_try_dir" != "x"; then
7884   for try in $smart_try_dir; do
7885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
7886 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
7887     LIBS="-lssl $old_LIBS"
7888     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891 extern char SSL_new();
7892 int
7893 main ()
7894 {
7895 SSL_new()
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901
7902                  smart_lib="-lssl"
7903                  smart_ldflags="-L$try -Wl,-rpath,$try"
7904                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7906                  break
7907
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext \
7913     conftest$ac_exeext conftest.$ac_ext
7914   done
7915   LIBS="$old_LIBS"
7916   CPPFLAGS="$old_CPPFLAGS"
7917 fi
7918
7919 if test "x$smart_lib" = "x"; then
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7921 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7922   LIBS="-lssl $old_LIBS"
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925 extern char SSL_new();
7926 int
7927 main ()
7928 {
7929 SSL_new()
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"; then :
7935
7936                 smart_lib="-lssl"
7937                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7939
7940 else
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext \
7945     conftest$ac_exeext conftest.$ac_ext
7946   LIBS="$old_LIBS"
7947 fi
7948
7949 if test "x$smart_lib" = "x"; then
7950
7951
7952 if test "x$LOCATE" != "x"; then
7953         DIRS=
7954   file=libssl${libltdl_cv_shlibext}
7955
7956   for x in `${LOCATE} $file 2>/dev/null`; do
7957                                         base=`echo $x | sed "s%/${file}%%"`
7958     if test "x$x" = "x$base"; then
7959       continue;
7960     fi
7961
7962     dir=`${DIRNAME} $x 2>/dev/null`
7963                 exclude=`echo ${dir} | ${GREP} /home`
7964     if test "x$exclude" != "x"; then
7965       continue
7966     fi
7967
7968                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7969     if test "x$already" = "x"; then
7970       DIRS="$DIRS $dir"
7971     fi
7972   done
7973 fi
7974
7975 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7976
7977
7978
7979 if test "x$LOCATE" != "x"; then
7980         DIRS=
7981   file=libssl.a
7982
7983   for x in `${LOCATE} $file 2>/dev/null`; do
7984                                         base=`echo $x | sed "s%/${file}%%"`
7985     if test "x$x" = "x$base"; then
7986       continue;
7987     fi
7988
7989     dir=`${DIRNAME} $x 2>/dev/null`
7990                 exclude=`echo ${dir} | ${GREP} /home`
7991     if test "x$exclude" != "x"; then
7992       continue
7993     fi
7994
7995                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7996     if test "x$already" = "x"; then
7997       DIRS="$DIRS $dir"
7998     fi
7999   done
8000 fi
8001
8002 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8003
8004
8005   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8007 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8008     LIBS="-lssl $old_LIBS"
8009     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012 extern char SSL_new();
8013 int
8014 main ()
8015 {
8016 SSL_new()
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022
8023                   smart_lib="-lssl"
8024                   smart_ldflags="-L$try -Wl,-rpath,$try"
8025                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026 $as_echo "yes" >&6; }
8027                   break
8028
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034     conftest$ac_exeext conftest.$ac_ext
8035   done
8036   LIBS="$old_LIBS"
8037   CPPFLAGS="$old_CPPFLAGS"
8038 fi
8039
8040 if test "x$smart_lib" != "x"; then
8041   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8042   LIBS="$smart_ldflags $smart_lib $old_LIBS"
8043   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8044 fi
8045
8046     if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8047       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8049 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8050 See \`config.log' for more details" "$LINENO" 5; }
8051     else
8052
8053 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8054
8055       OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8056
8057       if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8058         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8060 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8061 See \`config.log' for more details" "$LINENO" 5; }
8062       fi
8063     fi
8064   else
8065     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8067 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8068 See \`config.log' for more details" "$LINENO" 5; }
8069   fi
8070
8071   smart_try_dir="$openssl_include_dir"
8072
8073
8074 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8075 old_CPPFLAGS="$CPPFLAGS"
8076 smart_include=
8077 smart_include_dir="/usr/local/include /opt/include"
8078
8079 _smart_try_dir=
8080 _smart_include_dir=
8081
8082 for _prefix in $smart_prefix ""; do
8083   for _dir in $smart_try_dir; do
8084     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8085   done
8086
8087   for _dir in $smart_include_dir; do
8088     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8089   done
8090 done
8091
8092 if test "x$_smart_try_dir" != "x"; then
8093   for try in $_smart_try_dir; do
8094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8095 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8096     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099
8100                     #include <openssl/ssl.h>
8101 int
8102 main ()
8103 {
8104 int a = 1;
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110
8111                      smart_include="-isystem $try"
8112                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113 $as_echo "yes" >&6; }
8114                      break
8115
8116 else
8117
8118                      smart_include=
8119                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124   done
8125   CPPFLAGS="$old_CPPFLAGS"
8126 fi
8127
8128 if test "x$smart_include" = "x"; then
8129   for _prefix in $smart_prefix; do
8130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8131 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8132
8133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135
8136                     #include <openssl/ssl.h>
8137 int
8138 main ()
8139 {
8140 int a = 1;
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_compile "$LINENO"; then :
8146
8147                      smart_include="-isystem ${_prefix}/"
8148                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149 $as_echo "yes" >&6; }
8150                      break
8151
8152 else
8153
8154                      smart_include=
8155                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160   done
8161 fi
8162
8163 if test "x$smart_include" = "x"; then
8164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8165 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8166
8167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h.  */
8169
8170                     #include <openssl/ssl.h>
8171 int
8172 main ()
8173 {
8174 int a = 1;
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_compile "$LINENO"; then :
8180
8181                      smart_include=" "
8182                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8183 $as_echo "yes" >&6; }
8184                      break
8185
8186 else
8187
8188                      smart_include=
8189                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196 if test "x$smart_include" = "x"; then
8197
8198   for prefix in $smart_prefix; do
8199
8200
8201 if test "x$LOCATE" != "x"; then
8202         DIRS=
8203   file="${_prefix}/${1}"
8204
8205   for x in `${LOCATE} $file 2>/dev/null`; do
8206                                         base=`echo $x | sed "s%/${file}%%"`
8207     if test "x$x" = "x$base"; then
8208       continue;
8209     fi
8210
8211     dir=`${DIRNAME} $x 2>/dev/null`
8212                 exclude=`echo ${dir} | ${GREP} /home`
8213     if test "x$exclude" != "x"; then
8214       continue
8215     fi
8216
8217                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8218     if test "x$already" = "x"; then
8219       DIRS="$DIRS $dir"
8220     fi
8221   done
8222 fi
8223
8224 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8225
8226   done
8227
8228
8229 if test "x$LOCATE" != "x"; then
8230         DIRS=
8231   file=openssl/ssl.h
8232
8233   for x in `${LOCATE} $file 2>/dev/null`; do
8234                                         base=`echo $x | sed "s%/${file}%%"`
8235     if test "x$x" = "x$base"; then
8236       continue;
8237     fi
8238
8239     dir=`${DIRNAME} $x 2>/dev/null`
8240                 exclude=`echo ${dir} | ${GREP} /home`
8241     if test "x$exclude" != "x"; then
8242       continue
8243     fi
8244
8245                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8246     if test "x$already" = "x"; then
8247       DIRS="$DIRS $dir"
8248     fi
8249   done
8250 fi
8251
8252 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8253
8254
8255   for try in $_smart_include_dir; do
8256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8257 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8258     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h.  */
8261
8262                     #include <openssl/ssl.h>
8263 int
8264 main ()
8265 {
8266 int a = 1;
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272
8273                      smart_include="-isystem $try"
8274                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8275 $as_echo "yes" >&6; }
8276                      break
8277
8278 else
8279
8280                      smart_include=
8281                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8283
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286   done
8287   CPPFLAGS="$old_CPPFLAGS"
8288 fi
8289
8290 if test "x$smart_include" != "x"; then
8291   eval "ac_cv_header_$ac_safe=yes"
8292   CPPFLAGS="$smart_include $old_CPPFLAGS"
8293   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8294 fi
8295
8296 smart_prefix=
8297
8298   if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8299
8300 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8301
8302
8303     for ac_header in \
8304       openssl/crypto.h \
8305       openssl/err.h \
8306       openssl/evp.h \
8307       openssl/md5.h \
8308       openssl/md4.h \
8309       openssl/sha.h \
8310       openssl/ocsp.h \
8311       openssl/engine.h
8312 do :
8313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8316   cat >>confdefs.h <<_ACEOF
8317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8318 _ACEOF
8319
8320 else
8321
8322         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8324 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8325 See \`config.log' for more details" "$LINENO" 5; }
8326
8327
8328 fi
8329
8330 done
8331
8332
8333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8334 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 #include <openssl/crypto.h>
8338        #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8339        yes
8340        #endif
8341
8342 _ACEOF
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344   $EGREP "yes" >/dev/null 2>&1; then :
8345
8346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347 $as_echo "yes" >&6; }
8348
8349 else
8350
8351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8355 as_fn_error $? "OpenSSL version too old
8356 See \`config.log' for more details" "$LINENO" 5; }
8357
8358
8359 fi
8360 rm -f conftest*
8361
8362
8363                         old_CPPFLAGS="$CPPFLAGS"
8364     CPPFLAGS="$OPENSSL_LDFLAGS $CPPFLAGS"
8365
8366                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8367 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8368     if test "$cross_compiling" = yes; then :
8369   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8371 as_fn_error $? "cannot run test program while cross compiling
8372 See \`config.log' for more details" "$LINENO" 5; }
8373 else
8374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h.  */
8376
8377           #include <stdio.h>
8378           #include <openssl/opensslv.h>
8379           #include <openssl/crypto.h>
8380
8381 int
8382 main ()
8383 {
8384
8385           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8386           if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8387             return 0;
8388           } else {
8389             return 1;
8390           }
8391
8392
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_run "$LINENO"; then :
8398
8399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 $as_echo "yes" >&6; }
8401
8402 else
8403
8404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8408 as_fn_error $? "OpenSSL library version does not match header version
8409 See \`config.log' for more details" "$LINENO" 5; }
8410
8411
8412 fi
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414   conftest.$ac_objext conftest.beam conftest.$ac_ext
8415 fi
8416
8417     CPPFLAGS="$old_CPPFLAGS"
8418   fi
8419
8420   LIBS="$OLD_LIBS"
8421
8422
8423   export OPENSSL_LIBS OPENSSL_LDFLAGS
8424 fi
8425
8426 if test "x$PCAP_LIBS" = x; then
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8428 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8429 else
8430         smart_try_dir="$pcap_include_dir"
8431
8432
8433 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8434 old_CPPFLAGS="$CPPFLAGS"
8435 smart_include=
8436 smart_include_dir="/usr/local/include /opt/include"
8437
8438 _smart_try_dir=
8439 _smart_include_dir=
8440
8441 for _prefix in $smart_prefix ""; do
8442   for _dir in $smart_try_dir; do
8443     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8444   done
8445
8446   for _dir in $smart_include_dir; do
8447     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8448   done
8449 done
8450
8451 if test "x$_smart_try_dir" != "x"; then
8452   for try in $_smart_try_dir; do
8453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8454 $as_echo_n "checking for pcap.h in $try... " >&6; }
8455     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458
8459                     #include <pcap.h>
8460 int
8461 main ()
8462 {
8463 int a = 1;
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469
8470                      smart_include="-isystem $try"
8471                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8472 $as_echo "yes" >&6; }
8473                      break
8474
8475 else
8476
8477                      smart_include=
8478                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483   done
8484   CPPFLAGS="$old_CPPFLAGS"
8485 fi
8486
8487 if test "x$smart_include" = "x"; then
8488   for _prefix in $smart_prefix; do
8489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8490 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8491
8492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h.  */
8494
8495                     #include <pcap.h>
8496 int
8497 main ()
8498 {
8499 int a = 1;
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505
8506                      smart_include="-isystem ${_prefix}/"
8507                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8508 $as_echo "yes" >&6; }
8509                      break
8510
8511 else
8512
8513                      smart_include=
8514                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8516
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519   done
8520 fi
8521
8522 if test "x$smart_include" = "x"; then
8523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8524 $as_echo_n "checking for pcap.h... " >&6; }
8525
8526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528
8529                     #include <pcap.h>
8530 int
8531 main ()
8532 {
8533 int a = 1;
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539
8540                      smart_include=" "
8541                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8542 $as_echo "yes" >&6; }
8543                      break
8544
8545 else
8546
8547                      smart_include=
8548                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8550
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554
8555 if test "x$smart_include" = "x"; then
8556
8557   for prefix in $smart_prefix; do
8558
8559
8560 if test "x$LOCATE" != "x"; then
8561         DIRS=
8562   file="${_prefix}/${1}"
8563
8564   for x in `${LOCATE} $file 2>/dev/null`; do
8565                                         base=`echo $x | sed "s%/${file}%%"`
8566     if test "x$x" = "x$base"; then
8567       continue;
8568     fi
8569
8570     dir=`${DIRNAME} $x 2>/dev/null`
8571                 exclude=`echo ${dir} | ${GREP} /home`
8572     if test "x$exclude" != "x"; then
8573       continue
8574     fi
8575
8576                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8577     if test "x$already" = "x"; then
8578       DIRS="$DIRS $dir"
8579     fi
8580   done
8581 fi
8582
8583 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8584
8585   done
8586
8587
8588 if test "x$LOCATE" != "x"; then
8589         DIRS=
8590   file=pcap.h
8591
8592   for x in `${LOCATE} $file 2>/dev/null`; do
8593                                         base=`echo $x | sed "s%/${file}%%"`
8594     if test "x$x" = "x$base"; then
8595       continue;
8596     fi
8597
8598     dir=`${DIRNAME} $x 2>/dev/null`
8599                 exclude=`echo ${dir} | ${GREP} /home`
8600     if test "x$exclude" != "x"; then
8601       continue
8602     fi
8603
8604                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8605     if test "x$already" = "x"; then
8606       DIRS="$DIRS $dir"
8607     fi
8608   done
8609 fi
8610
8611 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8612
8613
8614   for try in $_smart_include_dir; do
8615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8616 $as_echo_n "checking for pcap.h in $try... " >&6; }
8617     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h.  */
8620
8621                     #include <pcap.h>
8622 int
8623 main ()
8624 {
8625 int a = 1;
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631
8632                      smart_include="-isystem $try"
8633                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8634 $as_echo "yes" >&6; }
8635                      break
8636
8637 else
8638
8639                      smart_include=
8640                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645   done
8646   CPPFLAGS="$old_CPPFLAGS"
8647 fi
8648
8649 if test "x$smart_include" != "x"; then
8650   eval "ac_cv_header_$ac_safe=yes"
8651   CPPFLAGS="$smart_include $old_CPPFLAGS"
8652   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8653 fi
8654
8655 smart_prefix=
8656
8657   if test "x$ac_cv_header_pcap_h" == "xyes"; then
8658
8659 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
8660
8661
8662
8663   else
8664     { $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
8665 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
8666   fi
8667 fi
8668
8669 if test "x$COLLECTDC_LIBS" = x; then
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
8671 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
8672 else
8673         smart_try_dir="$collectdclient_include_dir"
8674
8675
8676 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
8677 old_CPPFLAGS="$CPPFLAGS"
8678 smart_include=
8679 smart_include_dir="/usr/local/include /opt/include"
8680
8681 _smart_try_dir=
8682 _smart_include_dir=
8683
8684 for _prefix in $smart_prefix ""; do
8685   for _dir in $smart_try_dir; do
8686     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8687   done
8688
8689   for _dir in $smart_include_dir; do
8690     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8691   done
8692 done
8693
8694 if test "x$_smart_try_dir" != "x"; then
8695   for try in $_smart_try_dir; do
8696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8697 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8698     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h.  */
8701
8702                     #include <collectd/client.h>
8703 int
8704 main ()
8705 {
8706 int a = 1;
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712
8713                      smart_include="-isystem $try"
8714                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716                      break
8717
8718 else
8719
8720                      smart_include=
8721                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726   done
8727   CPPFLAGS="$old_CPPFLAGS"
8728 fi
8729
8730 if test "x$smart_include" = "x"; then
8731   for _prefix in $smart_prefix; do
8732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
8733 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
8734
8735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h.  */
8737
8738                     #include <collectd/client.h>
8739 int
8740 main ()
8741 {
8742 int a = 1;
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"; then :
8748
8749                      smart_include="-isystem ${_prefix}/"
8750                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8751 $as_echo "yes" >&6; }
8752                      break
8753
8754 else
8755
8756                      smart_include=
8757                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762   done
8763 fi
8764
8765 if test "x$smart_include" = "x"; then
8766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
8767 $as_echo_n "checking for collectd/client.h... " >&6; }
8768
8769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h.  */
8771
8772                     #include <collectd/client.h>
8773 int
8774 main ()
8775 {
8776 int a = 1;
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 if ac_fn_c_try_compile "$LINENO"; then :
8782
8783                      smart_include=" "
8784                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8785 $as_echo "yes" >&6; }
8786                      break
8787
8788 else
8789
8790                      smart_include=
8791                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 fi
8797
8798 if test "x$smart_include" = "x"; then
8799
8800   for prefix in $smart_prefix; do
8801
8802
8803 if test "x$LOCATE" != "x"; then
8804         DIRS=
8805   file="${_prefix}/${1}"
8806
8807   for x in `${LOCATE} $file 2>/dev/null`; do
8808                                         base=`echo $x | sed "s%/${file}%%"`
8809     if test "x$x" = "x$base"; then
8810       continue;
8811     fi
8812
8813     dir=`${DIRNAME} $x 2>/dev/null`
8814                 exclude=`echo ${dir} | ${GREP} /home`
8815     if test "x$exclude" != "x"; then
8816       continue
8817     fi
8818
8819                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8820     if test "x$already" = "x"; then
8821       DIRS="$DIRS $dir"
8822     fi
8823   done
8824 fi
8825
8826 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8827
8828   done
8829
8830
8831 if test "x$LOCATE" != "x"; then
8832         DIRS=
8833   file=collectd/client.h
8834
8835   for x in `${LOCATE} $file 2>/dev/null`; do
8836                                         base=`echo $x | sed "s%/${file}%%"`
8837     if test "x$x" = "x$base"; then
8838       continue;
8839     fi
8840
8841     dir=`${DIRNAME} $x 2>/dev/null`
8842                 exclude=`echo ${dir} | ${GREP} /home`
8843     if test "x$exclude" != "x"; then
8844       continue
8845     fi
8846
8847                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8848     if test "x$already" = "x"; then
8849       DIRS="$DIRS $dir"
8850     fi
8851   done
8852 fi
8853
8854 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8855
8856
8857   for try in $_smart_include_dir; do
8858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8859 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8860     CPPFLAGS="-isystem $try $old_CPPFLAGS"
8861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h.  */
8863
8864                     #include <collectd/client.h>
8865 int
8866 main ()
8867 {
8868 int a = 1;
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 if ac_fn_c_try_compile "$LINENO"; then :
8874
8875                      smart_include="-isystem $try"
8876                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8877 $as_echo "yes" >&6; }
8878                      break
8879
8880 else
8881
8882                      smart_include=
8883                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888   done
8889   CPPFLAGS="$old_CPPFLAGS"
8890 fi
8891
8892 if test "x$smart_include" != "x"; then
8893   eval "ac_cv_header_$ac_safe=yes"
8894   CPPFLAGS="$smart_include $old_CPPFLAGS"
8895   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8896 fi
8897
8898 smart_prefix=
8899
8900   if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
8901
8902 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
8903
8904
8905
8906   else
8907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
8908 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
8909   fi
8910 fi
8911
8912
8913 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8914 if test "x$ac_cv_type_off_t" = xyes; then :
8915
8916 else
8917
8918 cat >>confdefs.h <<_ACEOF
8919 #define off_t long int
8920 _ACEOF
8921
8922 fi
8923
8924 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8925 if test "x$ac_cv_type_pid_t" = xyes; then :
8926
8927 else
8928
8929 cat >>confdefs.h <<_ACEOF
8930 #define pid_t int
8931 _ACEOF
8932
8933 fi
8934
8935 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8936 if test "x$ac_cv_type_size_t" = xyes; then :
8937
8938 else
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define size_t unsigned int
8942 _ACEOF
8943
8944 fi
8945
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8947 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8948 if ${ac_cv_type_uid_t+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h.  */
8953 #include <sys/types.h>
8954
8955 _ACEOF
8956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8957   $EGREP "uid_t" >/dev/null 2>&1; then :
8958   ac_cv_type_uid_t=yes
8959 else
8960   ac_cv_type_uid_t=no
8961 fi
8962 rm -f conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8966 $as_echo "$ac_cv_type_uid_t" >&6; }
8967 if test $ac_cv_type_uid_t = no; then
8968
8969 $as_echo "#define uid_t int" >>confdefs.h
8970
8971
8972 $as_echo "#define gid_t int" >>confdefs.h
8973
8974 fi
8975
8976
8977
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8979 $as_echo_n "checking for socklen_t... " >&6; }
8980 if ${ac_cv_type_socklen_t+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983    ac_cv_type_socklen_t=no
8984       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h.  */
8986 #ifdef HAVE_SYS_TYPES_H
8987     #  include <sys/types.h>
8988     #endif
8989
8990     #ifdef HAVE_SYS_SOCKET_H
8991     #  include <sys/socket.h>
8992     #endif
8993
8994 int
8995 main ()
8996 {
8997 socklen_t foo
8998   ;
8999   return 0;
9000 }
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"; then :
9003   ac_cv_type_socklen_t=yes
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006
9007
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9010 $as_echo "$ac_cv_type_socklen_t" >&6; }
9011
9012   if test "$ac_cv_type_socklen_t" != "yes"; then
9013
9014 $as_echo "#define socklen_t int" >>confdefs.h
9015
9016   fi
9017
9018
9019
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9021 $as_echo_n "checking for uint8_t... " >&6; }
9022 if ${ac_cv_type_uint8_t+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025    ac_cv_type_uint8_t=no
9026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h.  */
9028 #ifdef HAVE_INTTYPES_H
9029     #  include <inttypes.h>
9030     #endif
9031
9032     #ifdef HAVE_STDINT_H
9033     #  include <stdint.h>
9034     #endif
9035
9036 int
9037 main ()
9038 {
9039 uint8_t foo
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045   ac_cv_type_uint8_t=yes
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048
9049
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9052 $as_echo "$ac_cv_type_uint8_t" >&6; }
9053
9054   if test "$ac_cv_type_uint8_t" != "yes"; then
9055
9056 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9057
9058   fi
9059
9060
9061
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9063 $as_echo_n "checking for uint16_t... " >&6; }
9064 if ${ac_cv_type_uint16_t+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067    ac_cv_type_uint16_t=no
9068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h.  */
9070 #ifdef HAVE_INTTYPES_H
9071     #  include <inttypes.h>
9072     #endif
9073
9074     #ifdef HAVE_STDINT_H
9075     #  include <stdint.h>
9076     #endif
9077
9078 int
9079 main ()
9080 {
9081 uint16_t foo
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087   ac_cv_type_uint16_t=yes
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090
9091
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9094 $as_echo "$ac_cv_type_uint16_t" >&6; }
9095
9096   if test "$ac_cv_type_uint16_t" != "yes"; then
9097
9098 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9099
9100   fi
9101
9102
9103
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9105 $as_echo_n "checking for uint32_t... " >&6; }
9106 if ${ac_cv_type_uint32_t+:} false; then :
9107   $as_echo_n "(cached) " >&6
9108 else
9109    ac_cv_type_uint32_t=no
9110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h.  */
9112 #ifdef HAVE_INTTYPES_H
9113     #  include <inttypes.h>
9114     #endif
9115
9116     #ifdef HAVE_STDINT_H
9117     #  include <stdint.h>
9118     #endif
9119
9120 int
9121 main ()
9122 {
9123 uint32_t foo
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129   ac_cv_type_uint32_t=yes
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132
9133
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9136 $as_echo "$ac_cv_type_uint32_t" >&6; }
9137
9138   if test "$ac_cv_type_uint32_t" != "yes"; then
9139
9140 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9141
9142   fi
9143
9144
9145
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9147 $as_echo_n "checking for uint64_t... " >&6; }
9148 if ${ac_cv_type_uint64_t+:} false; then :
9149   $as_echo_n "(cached) " >&6
9150 else
9151    ac_cv_type_uint64_t=no
9152       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h.  */
9154 #ifdef HAVE_INTTYPES_H
9155     #  include <inttypes.h>
9156     #endif
9157
9158     #ifdef HAVE_STDINT_H
9159     #  include <stdint.h>
9160     #endif
9161
9162 int
9163 main ()
9164 {
9165 uint64_t foo
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_compile "$LINENO"; then :
9171   ac_cv_type_uint64_t=yes
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174
9175
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9178 $as_echo "$ac_cv_type_uint64_t" >&6; }
9179
9180   if test "$ac_cv_type_uint64_t" != "yes"; then
9181
9182 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9183
9184   fi
9185
9186
9187 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9188 if test "x$ac_cv_type___uint128_t" = xyes; then :
9189
9190 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9191
9192 fi
9193
9194
9195 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9196     #ifdef HAVE_INTTYPES_H
9197     #  include <inttypes.h>
9198     #endif
9199
9200     #ifdef HAVE_STDINT_H
9201     #  include <stdint.h>
9202     #endif
9203
9204
9205 "
9206 if test "x$ac_cv_type_uint128_t" = xyes; then :
9207
9208 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9209
9210 fi
9211
9212
9213 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9214     #ifdef HAVE_NETINET_IN_H
9215     #  include <netinet/in.h>
9216     #endif
9217
9218
9219 "
9220 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9221
9222 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9223
9224 fi
9225
9226
9227 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9228     #ifdef HAVE_NETINET_IN_H
9229     #  include <netinet/in.h>
9230     #endif
9231
9232     #ifdef HAVE_SYS_SOCKET_H
9233     #  include <sys/socket.h>
9234     #endif
9235
9236 "
9237 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9238
9239 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9240
9241 fi
9242
9243
9244 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9245     #ifdef HAVE_NETINET_IN_H
9246     #  include <netinet/in.h>
9247     #endif
9248
9249 "
9250 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9251
9252 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9253
9254 fi
9255
9256
9257 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9258     #ifdef HAVE_SYS_TYPES_H
9259     #  include <sys/types.h>
9260     #endif
9261
9262     #ifdef HAVE_SYS_SOCKET_H
9263     #  include <sys/socket.h>
9264     #endif
9265
9266     #ifdef HAVE_NETDB_H
9267     #  include <netdb.h>
9268     #endif
9269
9270
9271 "
9272 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9273
9274 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9275
9276 fi
9277
9278
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9280 $as_echo_n "checking if sig_t is defined... " >&6; }
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h.  */
9283
9284       #ifdef HAVE_SIGNAL_H
9285       #  include <signal.h>
9286       #endif
9287
9288 int
9289 main ()
9290 {
9291
9292       sig_t func;
9293       return 0;
9294
9295
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301
9302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9303 $as_echo "yes" >&6; }
9304
9305 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9306
9307
9308 else
9309
9310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9312
9313
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316     conftest$ac_exeext conftest.$ac_ext
9317
9318 for ac_func in \
9319   getopt_long \
9320   fcntl \
9321   strsignal \
9322   sigaction \
9323   sigprocmask \
9324   pthread_sigmask \
9325   snprintf \
9326   vsnprintf \
9327   setsid \
9328   strncasecmp \
9329   strcasecmp \
9330   localtime_r \
9331   ctime_r \
9332   gmtime_r \
9333   strsep \
9334   inet_aton \
9335   inet_pton \
9336   inet_ntop \
9337   mallopt \
9338   setlinebuf \
9339   setvbuf \
9340   getusershell \
9341   initgroups \
9342   getaddrinfo \
9343   getnameinfo \
9344   closefrom \
9345   gettimeofday \
9346   getpeereid \
9347   setuid \
9348   setresuid \
9349   getresuid \
9350   strlcat \
9351   strlcpy
9352
9353 do :
9354   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9357   cat >>confdefs.h <<_ACEOF
9358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9359 _ACEOF
9360
9361 fi
9362 done
9363
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9366 $as_echo_n "checking return type of signal handlers... " >&6; }
9367 if ${ac_cv_type_signal+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h.  */
9372 #include <sys/types.h>
9373 #include <signal.h>
9374
9375 int
9376 main ()
9377 {
9378 return *(signal (0, 0)) (0) == 1;
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384   ac_cv_type_signal=int
9385 else
9386   ac_cv_type_signal=void
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9391 $as_echo "$ac_cv_type_signal" >&6; }
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define RETSIGTYPE $ac_cv_type_signal
9395 _ACEOF
9396
9397
9398
9399 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
9400
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9402 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
9403
9404
9405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h.  */
9407
9408 #include <utmpx.h>
9409 #ifdef HAVE_STDDEF_H
9410 #include <stddef.h>
9411 #endif
9412 #ifndef offsetof
9413 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9414 #endif
9415
9416 int
9417 main ()
9418 {
9419  int foo = offsetof(struct utmpx, ut_xtime)
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 if ac_fn_c_try_compile "$LINENO"; then :
9425   has_element=" "
9426 else
9427   has_element=
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430
9431   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9432   if test "x$has_element" != "x"; then
9433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9434 $as_echo "yes" >&6; }
9435     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9436   else
9437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9439     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9440  fi
9441
9442  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
9443
9444 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
9445
9446  fi
9447 fi
9448
9449
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
9451 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
9452
9453
9454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h.  */
9456
9457 #include <netinet/in.h>
9458 #ifdef HAVE_STDDEF_H
9459 #include <stddef.h>
9460 #endif
9461 #ifndef offsetof
9462 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9463 #endif
9464
9465 int
9466 main ()
9467 {
9468  int foo = offsetof(struct in_pktinfo, ipi_addr)
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474   has_element=" "
9475 else
9476   has_element=
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479
9480   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
9481   if test "x$has_element" != "x"; then
9482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483 $as_echo "yes" >&6; }
9484     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
9485   else
9486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
9489  fi
9490
9491 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
9492
9493 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
9494
9495 fi
9496
9497
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
9499 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
9500
9501
9502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h.  */
9504
9505 #include <netinet/in.h>
9506 #ifdef HAVE_STDDEF_H
9507 #include <stddef.h>
9508 #endif
9509 #ifndef offsetof
9510 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9511 #endif
9512
9513 int
9514 main ()
9515 {
9516  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522   has_element=" "
9523 else
9524   has_element=
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527
9528   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
9529   if test "x$has_element" != "x"; then
9530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9531 $as_echo "yes" >&6; }
9532     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
9533   else
9534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9536     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
9537  fi
9538
9539 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
9540
9541 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
9542
9543 fi
9544
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
9546 $as_echo_n "checking if htonll is defined... " >&6; }
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h.  */
9549
9550       #include <sys/types.h>
9551       #include <netinet/in.h>
9552
9553 int
9554 main ()
9555 {
9556
9557       return htonll(0);
9558
9559
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565
9566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9567 $as_echo "yes" >&6; }
9568
9569 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
9570
9571
9572 else
9573
9574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576
9577
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext \
9580     conftest$ac_exeext conftest.$ac_ext
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
9583 $as_echo_n "checking if htonlll is defined... " >&6; }
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h.  */
9586
9587       #include <sys/types.h>
9588       #include <netinet/in.h>
9589
9590 int
9591 main ()
9592 {
9593
9594       return htonlll(0);
9595
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602
9603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9604 $as_echo "yes" >&6; }
9605
9606 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
9607
9608
9609 else
9610
9611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9613
9614
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617     conftest$ac_exeext conftest.$ac_ext
9618
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9621 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9622 if ${ac_cv_c_const+:} false; then :
9623   $as_echo_n "(cached) " >&6
9624 else
9625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h.  */
9627
9628 int
9629 main ()
9630 {
9631
9632 #ifndef __cplusplus
9633   /* Ultrix mips cc rejects this sort of thing.  */
9634   typedef int charset[2];
9635   const charset cs = { 0, 0 };
9636   /* SunOS 4.1.1 cc rejects this.  */
9637   char const *const *pcpcc;
9638   char **ppc;
9639   /* NEC SVR4.0.2 mips cc rejects this.  */
9640   struct point {int x, y;};
9641   static struct point const zero = {0,0};
9642   /* AIX XL C 1.02.0.0 rejects this.
9643      It does not let you subtract one const X* pointer from another in
9644      an arm of an if-expression whose if-part is not a constant
9645      expression */
9646   const char *g = "string";
9647   pcpcc = &g + (g ? g-g : 0);
9648   /* HPUX 7.0 cc rejects these. */
9649   ++pcpcc;
9650   ppc = (char**) pcpcc;
9651   pcpcc = (char const *const *) ppc;
9652   { /* SCO 3.2v4 cc rejects this sort of thing.  */
9653     char tx;
9654     char *t = &tx;
9655     char const *s = 0 ? (char *) 0 : (char const *) 0;
9656
9657     *t++ = 0;
9658     if (s) return 0;
9659   }
9660   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9661     int x[] = {25, 17};
9662     const int *foo = &x[0];
9663     ++foo;
9664   }
9665   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9666     typedef const int *iptr;
9667     iptr p = 0;
9668     ++p;
9669   }
9670   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9671        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9672     struct s { int j; const int *ap[3]; } bx;
9673     struct s *b = &bx; b->j = 5;
9674   }
9675   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9676     const int foo = 10;
9677     if (!foo) return 0;
9678   }
9679   return !cs[0] && !zero.x;
9680 #endif
9681
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"; then :
9687   ac_cv_c_const=yes
9688 else
9689   ac_cv_c_const=no
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9694 $as_echo "$ac_cv_c_const" >&6; }
9695 if test $ac_cv_c_const = no; then
9696
9697 $as_echo "#define const /**/" >>confdefs.h
9698
9699 fi
9700
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
9703 $as_echo_n "checking type of OS... " >&6; }
9704 OS=`uname -s`
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
9706 $as_echo "$OS" >&6; }
9707 if test "$OS" = "OS/2"; then
9708   LIBPREFIX=
9709 else
9710   LIBPREFIX=lib
9711 fi
9712
9713
9714 if test "x$developer" = "xyes"; then
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
9716 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
9717
9718
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
9720 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
9721 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724
9725
9726     CFLAGS_SAVED=$CFLAGS
9727     CFLAGS="$CFLAGS -Werror -Wdocumentation"
9728
9729     ac_ext=c
9730 ac_cpp='$CPP $CPPFLAGS'
9731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9734
9735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h.  */
9737
9738 int
9739 main ()
9740 {
9741 return 0;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_compile "$LINENO"; then :
9747   ax_cv_cc_wdocumentation_flag="yes"
9748 else
9749   ax_cv_cc_wdocumentation_flag="no"
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752     ac_ext=c
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757
9758
9759     CFLAGS="$CFLAGS_SAVED"
9760
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
9763 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
9764
9765   if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
9766     devflags="-Wdocumentation"
9767   fi
9768
9769   if test "x$GCC" = "xyes"; then
9770     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"
9771     INSTALLSTRIP=""
9772   fi
9773
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
9775 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
9776
9777   CFLAGS="$CFLAGS $devflags"
9778         if test "x$EXPERIMENTAL" != "xno"; then
9779     { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
9780 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
9781     EXPERIMENTAL=yes
9782   fi
9783 else
9784   devflags=""
9785   CFLAGS="$CFLAGS -DNDEBUG"
9786   INSTALLSTRIP=""
9787 fi
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
9790 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
9791 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9793 $as_echo "yes" >&6; }
9794
9795 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
9796
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9800 fi
9801
9802 export EXPERIMENTAL
9803
9804 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
9805   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
9806
9807 cat >>confdefs.h <<_ACEOF
9808 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
9809 _ACEOF
9810
9811 fi
9812
9813
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
9815 $as_echo_n "checking for __thread support in compiler... " >&6; }
9816   if test "$cross_compiling" = yes; then :
9817   have_tls=no
9818 else
9819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h.  */
9821
9822         static __thread int val;
9823         int main(int argc, char **argv) {
9824           val = 0;
9825           return val;
9826         }
9827
9828
9829 _ACEOF
9830 if ac_fn_c_try_run "$LINENO"; then :
9831   have_tls=yes
9832 else
9833   have_tls=no
9834 fi
9835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9836   conftest.$ac_objext conftest.beam conftest.$ac_ext
9837 fi
9838
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9840 $as_echo "$have_tls" >&6; }
9841   if test "x$have_tls" = "xyes"; then
9842
9843 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
9844
9845   fi
9846
9847   if test "x$have_tls" = "xno"; then
9848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
9849 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
9850     if test "$cross_compiling" = yes; then :
9851   have_tls=no
9852 else
9853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h.  */
9855
9856           static _Thread_local int val;
9857           int main(int argc, char **argv) {
9858             val = 0;
9859             return val;
9860           }
9861
9862
9863 _ACEOF
9864 if ac_fn_c_try_run "$LINENO"; then :
9865   have_tls=yes
9866 else
9867   have_tls=no
9868 fi
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9870   conftest.$ac_objext conftest.beam conftest.$ac_ext
9871 fi
9872
9873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9874 $as_echo "$have_tls" >&6; }
9875     if test "x$have_tls" = "xyes"; then
9876
9877 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
9878
9879     fi
9880   fi
9881   if test "x$have_tls" = "xno"; then
9882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
9883 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
9884     if test "$cross_compiling" = yes; then :
9885   have_tls=no
9886 else
9887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h.  */
9889
9890           static _Thread_local int val;
9891           int main(int argc, char **argv) {
9892             val = 0;
9893             return val;
9894           }
9895
9896
9897 _ACEOF
9898 if ac_fn_c_try_run "$LINENO"; then :
9899   have_tls=yes
9900 else
9901   have_tls=no
9902 fi
9903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9904   conftest.$ac_objext conftest.beam conftest.$ac_ext
9905 fi
9906
9907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
9908 $as_echo "$have_tls" >&6; }
9909     if test "x$have_tls" = "xyes"; then
9910
9911 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
9912
9913     fi
9914   fi
9915
9916
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
9918 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
9919   if test "$cross_compiling" = yes; then :
9920   have_builtin_choose_expr=no
9921 else
9922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h.  */
9924
9925         int main(int argc, char **argv) {
9926           return __builtin_choose_expr(0, 1, 0);
9927         }
9928
9929
9930 _ACEOF
9931 if ac_fn_c_try_run "$LINENO"; then :
9932   have_builtin_choose_expr=yes
9933 else
9934   have_builtin_choose_expr=no
9935 fi
9936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9937   conftest.$ac_objext conftest.beam conftest.$ac_ext
9938 fi
9939
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_choose_expr" >&5
9941 $as_echo "$have_builtin_choose_expr" >&6; }
9942   if test "x$have_builtin_choose_expr" = "xyes"; then
9943
9944 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
9945
9946   fi
9947
9948
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
9950 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
9951   if test "$cross_compiling" = yes; then :
9952   have_builtin_types_compatible_p=no
9953 else
9954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956
9957         int main(int argc, char **argv) {
9958           return !(__builtin_types_compatible_p(char *, char *));
9959         }
9960
9961
9962 _ACEOF
9963 if ac_fn_c_try_run "$LINENO"; then :
9964   have_builtin_types_compatible_p=yes
9965 else
9966   have_builtin_types_compatible_p=no
9967 fi
9968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9969   conftest.$ac_objext conftest.beam conftest.$ac_ext
9970 fi
9971
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_types_compatible_p" >&5
9973 $as_echo "$have_builtin_types_compatible_p" >&6; }
9974   if test "x$have_builtin_types_compatible_p" = "xyes"; then
9975
9976 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
9977
9978   fi
9979
9980
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
9982 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
9983   if test "$cross_compiling" = yes; then :
9984   have_builtin_bswap64=no
9985 else
9986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988
9989         int main(int argc, char **argv) {
9990           return (__builtin_bswap64(0));
9991         }
9992
9993
9994 _ACEOF
9995 if ac_fn_c_try_run "$LINENO"; then :
9996   have_builtin_bswap64=yes
9997 else
9998   have_builtin_bswap64=no
9999 fi
10000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10001   conftest.$ac_objext conftest.beam conftest.$ac_ext
10002 fi
10003
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_bswap64" >&5
10005 $as_echo "$have_builtin_bswap64" >&6; }
10006   if test "x$have_builtin_bswap64" = "xyes"; then
10007
10008 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10009
10010   fi
10011
10012
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10015 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10016 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10017   $as_echo_n "(cached) " >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-ltalloc  $LIBS"
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023
10024 /* Override any GCC internal prototype to avoid an error.
10025    Use char because int might match the return type of a GCC
10026    builtin and then its argument prototype would still apply.  */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 char talloc_set_memlimit ();
10031 int
10032 main ()
10033 {
10034 return talloc_set_memlimit ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 if ac_fn_c_try_link "$LINENO"; then :
10040   ac_cv_lib_talloc_talloc_set_memlimit=yes
10041 else
10042   ac_cv_lib_talloc_talloc_set_memlimit=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext \
10045     conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10049 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10050 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10051
10052
10053 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10054
10055
10056
10057 fi
10058
10059
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10061 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10062 if ${ac_cv_lib_crypt_crypt+:} false; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lcrypt  $LIBS"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h.  */
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char crypt ();
10077 int
10078 main ()
10079 {
10080 return crypt ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086   ac_cv_lib_crypt_crypt=yes
10087 else
10088   ac_cv_lib_crypt_crypt=no
10089 fi
10090 rm -f core conftest.err conftest.$ac_objext \
10091     conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10095 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10096 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10097   CRYPTLIB="-lcrypt"
10098
10099 fi
10100
10101
10102 if test "$CRYPTLIB" != ""; then
10103
10104 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10105
10106 else
10107   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10108 if test "x$ac_cv_func_crypt" = xyes; then :
10109
10110 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10111
10112 fi
10113
10114 fi
10115
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10117 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10118 if ${ac_cv_lib_cipher_setkey+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lcipher  $LIBS"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h.  */
10125
10126 /* Override any GCC internal prototype to avoid an error.
10127    Use char because int might match the return type of a GCC
10128    builtin and then its argument prototype would still apply.  */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char setkey ();
10133 int
10134 main ()
10135 {
10136 return setkey ();
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142   ac_cv_lib_cipher_setkey=yes
10143 else
10144   ac_cv_lib_cipher_setkey=no
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext \
10147     conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10151 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10152 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10153   CRYPTLIB="${CRYPTLIB} -lcipher"
10154
10155 fi
10156
10157
10158
10159 execinfo_lib_dir=
10160
10161 # Check whether --with-execinfo-lib-dir was given.
10162 if test "${with_execinfo_lib_dir+set}" = set; then :
10163   withval=$with_execinfo_lib_dir;  case "$withval" in
10164     no)
10165         as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10166         ;;
10167     yes)
10168         ;;
10169     *)
10170         execinfo_lib_dir="$withval"
10171         ;;
10172   esac
10173
10174 fi
10175
10176
10177 execinfo_include_dir=
10178
10179 # Check whether --with-execinfo-include-dir was given.
10180 if test "${with_execinfo_include_dir+set}" = set; then :
10181   withval=$with_execinfo_include_dir;  case "$withval" in
10182     no)
10183         as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10184         ;;
10185     yes)
10186         ;;
10187     *)
10188         execinfo_include_dir="$withval"
10189         ;;
10190   esac
10191
10192 fi
10193
10194
10195 smart_try_dir=$execinfo_include_dir
10196
10197
10198 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10199 old_CPPFLAGS="$CPPFLAGS"
10200 smart_include=
10201 smart_include_dir="/usr/local/include /opt/include"
10202
10203 _smart_try_dir=
10204 _smart_include_dir=
10205
10206 for _prefix in $smart_prefix ""; do
10207   for _dir in $smart_try_dir; do
10208     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10209   done
10210
10211   for _dir in $smart_include_dir; do
10212     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10213   done
10214 done
10215
10216 if test "x$_smart_try_dir" != "x"; then
10217   for try in $_smart_try_dir; do
10218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10219 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10220     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h.  */
10223
10224                     #include <execinfo.h>
10225 int
10226 main ()
10227 {
10228 int a = 1;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234
10235                      smart_include="-isystem $try"
10236                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237 $as_echo "yes" >&6; }
10238                      break
10239
10240 else
10241
10242                      smart_include=
10243                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10245
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248   done
10249   CPPFLAGS="$old_CPPFLAGS"
10250 fi
10251
10252 if test "x$smart_include" = "x"; then
10253   for _prefix in $smart_prefix; do
10254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
10255 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
10256
10257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h.  */
10259
10260                     #include <execinfo.h>
10261 int
10262 main ()
10263 {
10264 int a = 1;
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_compile "$LINENO"; then :
10270
10271                      smart_include="-isystem ${_prefix}/"
10272                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10273 $as_echo "yes" >&6; }
10274                      break
10275
10276 else
10277
10278                      smart_include=
10279                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284   done
10285 fi
10286
10287 if test "x$smart_include" = "x"; then
10288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
10289 $as_echo_n "checking for execinfo.h... " >&6; }
10290
10291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h.  */
10293
10294                     #include <execinfo.h>
10295 int
10296 main ()
10297 {
10298 int a = 1;
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_compile "$LINENO"; then :
10304
10305                      smart_include=" "
10306                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10307 $as_echo "yes" >&6; }
10308                      break
10309
10310 else
10311
10312                      smart_include=
10313                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 fi
10319
10320 if test "x$smart_include" = "x"; then
10321
10322   for prefix in $smart_prefix; do
10323
10324
10325 if test "x$LOCATE" != "x"; then
10326         DIRS=
10327   file="${_prefix}/${1}"
10328
10329   for x in `${LOCATE} $file 2>/dev/null`; do
10330                                         base=`echo $x | sed "s%/${file}%%"`
10331     if test "x$x" = "x$base"; then
10332       continue;
10333     fi
10334
10335     dir=`${DIRNAME} $x 2>/dev/null`
10336                 exclude=`echo ${dir} | ${GREP} /home`
10337     if test "x$exclude" != "x"; then
10338       continue
10339     fi
10340
10341                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10342     if test "x$already" = "x"; then
10343       DIRS="$DIRS $dir"
10344     fi
10345   done
10346 fi
10347
10348 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10349
10350   done
10351
10352
10353 if test "x$LOCATE" != "x"; then
10354         DIRS=
10355   file=execinfo.h
10356
10357   for x in `${LOCATE} $file 2>/dev/null`; do
10358                                         base=`echo $x | sed "s%/${file}%%"`
10359     if test "x$x" = "x$base"; then
10360       continue;
10361     fi
10362
10363     dir=`${DIRNAME} $x 2>/dev/null`
10364                 exclude=`echo ${dir} | ${GREP} /home`
10365     if test "x$exclude" != "x"; then
10366       continue
10367     fi
10368
10369                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10370     if test "x$already" = "x"; then
10371       DIRS="$DIRS $dir"
10372     fi
10373   done
10374 fi
10375
10376 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10377
10378
10379   for try in $_smart_include_dir; do
10380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10381 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10382     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h.  */
10385
10386                     #include <execinfo.h>
10387 int
10388 main ()
10389 {
10390 int a = 1;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396
10397                      smart_include="-isystem $try"
10398                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10399 $as_echo "yes" >&6; }
10400                      break
10401
10402 else
10403
10404                      smart_include=
10405                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410   done
10411   CPPFLAGS="$old_CPPFLAGS"
10412 fi
10413
10414 if test "x$smart_include" != "x"; then
10415   eval "ac_cv_header_$ac_safe=yes"
10416   CPPFLAGS="$smart_include $old_CPPFLAGS"
10417   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10418 fi
10419
10420 smart_prefix=
10421
10422 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
10423   smart_try_dir=$execinfo_lib_dir
10424
10425
10426 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
10427 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
10428
10429 old_LIBS="$LIBS"
10430 old_CPPFLAGS="$CPPFLAGS"
10431 smart_lib=
10432 smart_ldflags=
10433 smart_lib_dir=
10434
10435 if test "x$smart_try_dir" != "x"; then
10436   for try in $smart_try_dir; do
10437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10438 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10439     LIBS="-lexecinfo $old_LIBS"
10440     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h.  */
10443 extern char backtrace_symbols();
10444 int
10445 main ()
10446 {
10447 backtrace_symbols()
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453
10454                  smart_lib="-lexecinfo"
10455                  smart_ldflags="-L$try -Wl,-rpath,$try"
10456                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; }
10458                  break
10459
10460 else
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465     conftest$ac_exeext conftest.$ac_ext
10466   done
10467   LIBS="$old_LIBS"
10468   CPPFLAGS="$old_CPPFLAGS"
10469 fi
10470
10471 if test "x$smart_lib" = "x"; then
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
10473 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
10474   LIBS="-lexecinfo $old_LIBS"
10475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h.  */
10477 extern char backtrace_symbols();
10478 int
10479 main ()
10480 {
10481 backtrace_symbols()
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 if ac_fn_c_try_link "$LINENO"; then :
10487
10488                 smart_lib="-lexecinfo"
10489                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; }
10491
10492 else
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext \
10497     conftest$ac_exeext conftest.$ac_ext
10498   LIBS="$old_LIBS"
10499 fi
10500
10501 if test "x$smart_lib" = "x"; then
10502
10503
10504 if test "x$LOCATE" != "x"; then
10505         DIRS=
10506   file=libexecinfo${libltdl_cv_shlibext}
10507
10508   for x in `${LOCATE} $file 2>/dev/null`; do
10509                                         base=`echo $x | sed "s%/${file}%%"`
10510     if test "x$x" = "x$base"; then
10511       continue;
10512     fi
10513
10514     dir=`${DIRNAME} $x 2>/dev/null`
10515                 exclude=`echo ${dir} | ${GREP} /home`
10516     if test "x$exclude" != "x"; then
10517       continue
10518     fi
10519
10520                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
10521     if test "x$already" = "x"; then
10522       DIRS="$DIRS $dir"
10523     fi
10524   done
10525 fi
10526
10527 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
10528
10529
10530
10531 if test "x$LOCATE" != "x"; then
10532         DIRS=
10533   file=libexecinfo.a
10534
10535   for x in `${LOCATE} $file 2>/dev/null`; do
10536                                         base=`echo $x | sed "s%/${file}%%"`
10537     if test "x$x" = "x$base"; then
10538       continue;
10539     fi
10540
10541     dir=`${DIRNAME} $x 2>/dev/null`
10542                 exclude=`echo ${dir} | ${GREP} /home`
10543     if test "x$exclude" != "x"; then
10544       continue
10545     fi
10546
10547                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
10548     if test "x$already" = "x"; then
10549       DIRS="$DIRS $dir"
10550     fi
10551   done
10552 fi
10553
10554 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
10555
10556
10557   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
10558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10559 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10560     LIBS="-lexecinfo $old_LIBS"
10561     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h.  */
10564 extern char backtrace_symbols();
10565 int
10566 main ()
10567 {
10568 backtrace_symbols()
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574
10575                   smart_lib="-lexecinfo"
10576                   smart_ldflags="-L$try -Wl,-rpath,$try"
10577                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; }
10579                   break
10580
10581 else
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585 rm -f core conftest.err conftest.$ac_objext \
10586     conftest$ac_exeext conftest.$ac_ext
10587   done
10588   LIBS="$old_LIBS"
10589   CPPFLAGS="$old_CPPFLAGS"
10590 fi
10591
10592 if test "x$smart_lib" != "x"; then
10593   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
10594   LIBS="$smart_ldflags $smart_lib $old_LIBS"
10595   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
10596 fi
10597
10598   if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
10599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
10600 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
10601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h.  */
10603
10604         #include <execinfo.h>
10605
10606 int
10607 main ()
10608 {
10609
10610         void *sym[1];
10611         backtrace_symbols(&sym, sizeof(sym))
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617
10618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 $as_echo "yes" >&6; }
10620         ac_cv_lib_execinfo_backtrace_symbols="yes"
10621
10622 else
10623
10624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626
10627
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext \
10630     conftest$ac_exeext conftest.$ac_ext
10631   fi
10632
10633   if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
10634
10635 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
10636
10637   fi
10638 fi
10639
10640 pcre_lib_dir=
10641
10642 # Check whether --with-pcre-lib-dir was given.
10643 if test "${with_pcre_lib_dir+set}" = set; then :
10644   withval=$with_pcre_lib_dir;  case "$withval" in
10645     no)
10646         as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
10647         ;;
10648     yes)
10649         ;;
10650     *)
10651         pcre_lib_dir="$withval"
10652         ;;
10653   esac
10654
10655 fi
10656
10657
10658 pcre_include_dir=
10659
10660 # Check whether --with-pcre-include-dir was given.
10661 if test "${with_pcre_include_dir+set}" = set; then :
10662   withval=$with_pcre_include_dir;  case "$withval" in
10663     no)
10664         as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
10665         ;;
10666     yes)
10667         ;;
10668     *)
10669         pcre_include_dir="$withval"
10670         ;;
10671   esac
10672
10673 fi
10674
10675
10676 REGEX=
10677
10678 # Check whether --with-regex was given.
10679 if test "${with_regex+set}" = set; then :
10680   withval=$with_regex;  case "$withval" in
10681     no)
10682         REGEX=no
10683         ;;
10684     *)
10685         ;;
10686   esac
10687
10688 fi
10689
10690
10691 if test "x$REGEX" = "x"; then
10692   smart_try_dir=$pcre_include_dir
10693
10694
10695 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
10696 old_CPPFLAGS="$CPPFLAGS"
10697 smart_include=
10698 smart_include_dir="/usr/local/include /opt/include"
10699
10700 _smart_try_dir=
10701 _smart_include_dir=
10702
10703 for _prefix in $smart_prefix ""; do
10704   for _dir in $smart_try_dir; do
10705     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10706   done
10707
10708   for _dir in $smart_include_dir; do
10709     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10710   done
10711 done
10712
10713 if test "x$_smart_try_dir" != "x"; then
10714   for try in $_smart_try_dir; do
10715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
10716 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
10717     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h.  */
10720
10721                     #include <pcreposix.h>
10722 int
10723 main ()
10724 {
10725 int a = 1;
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 if ac_fn_c_try_compile "$LINENO"; then :
10731
10732                      smart_include="-isystem $try"
10733                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; }
10735                      break
10736
10737 else
10738
10739                      smart_include=
10740                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745   done
10746   CPPFLAGS="$old_CPPFLAGS"
10747 fi
10748
10749 if test "x$smart_include" = "x"; then
10750   for _prefix in $smart_prefix; do
10751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcreposix.h" >&5
10752 $as_echo_n "checking for ${_prefix}/pcreposix.h... " >&6; }
10753
10754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756
10757                     #include <pcreposix.h>
10758 int
10759 main ()
10760 {
10761 int a = 1;
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767
10768                      smart_include="-isystem ${_prefix}/"
10769                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; }
10771                      break
10772
10773 else
10774
10775                      smart_include=
10776                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10781   done
10782 fi
10783
10784 if test "x$smart_include" = "x"; then
10785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
10786 $as_echo_n "checking for pcreposix.h... " >&6; }
10787
10788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h.  */
10790
10791                     #include <pcreposix.h>
10792 int
10793 main ()
10794 {
10795 int a = 1;
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_compile "$LINENO"; then :
10801
10802                      smart_include=" "
10803                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }
10805                      break
10806
10807 else
10808
10809                      smart_include=
10810                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816
10817 if test "x$smart_include" = "x"; then
10818
10819   for prefix in $smart_prefix; do
10820
10821
10822 if test "x$LOCATE" != "x"; then
10823         DIRS=
10824   file="${_prefix}/${1}"
10825
10826   for x in `${LOCATE} $file 2>/dev/null`; do
10827                                         base=`echo $x | sed "s%/${file}%%"`
10828     if test "x$x" = "x$base"; then
10829       continue;
10830     fi
10831
10832     dir=`${DIRNAME} $x 2>/dev/null`
10833                 exclude=`echo ${dir} | ${GREP} /home`
10834     if test "x$exclude" != "x"; then
10835       continue
10836     fi
10837
10838                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10839     if test "x$already" = "x"; then
10840       DIRS="$DIRS $dir"
10841     fi
10842   done
10843 fi
10844
10845 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10846
10847   done
10848
10849
10850 if test "x$LOCATE" != "x"; then
10851         DIRS=
10852   file=pcreposix.h
10853
10854   for x in `${LOCATE} $file 2>/dev/null`; do
10855                                         base=`echo $x | sed "s%/${file}%%"`
10856     if test "x$x" = "x$base"; then
10857       continue;
10858     fi
10859
10860     dir=`${DIRNAME} $x 2>/dev/null`
10861                 exclude=`echo ${dir} | ${GREP} /home`
10862     if test "x$exclude" != "x"; then
10863       continue
10864     fi
10865
10866                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10867     if test "x$already" = "x"; then
10868       DIRS="$DIRS $dir"
10869     fi
10870   done
10871 fi
10872
10873 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10874
10875
10876   for try in $_smart_include_dir; do
10877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
10878 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
10879     CPPFLAGS="-isystem $try $old_CPPFLAGS"
10880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h.  */
10882
10883                     #include <pcreposix.h>
10884 int
10885 main ()
10886 {
10887 int a = 1;
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_compile "$LINENO"; then :
10893
10894                      smart_include="-isystem $try"
10895                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896 $as_echo "yes" >&6; }
10897                      break
10898
10899 else
10900
10901                      smart_include=
10902                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10907   done
10908   CPPFLAGS="$old_CPPFLAGS"
10909 fi
10910
10911 if test "x$smart_include" != "x"; then
10912   eval "ac_cv_header_$ac_safe=yes"
10913   CPPFLAGS="$smart_include $old_CPPFLAGS"
10914   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10915 fi
10916
10917 smart_prefix=
10918
10919   if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
10920     smart_try_dir=$pcre_lib_dir
10921
10922
10923 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
10924 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
10925
10926 old_LIBS="$LIBS"
10927 old_CPPFLAGS="$CPPFLAGS"
10928 smart_lib=
10929 smart_ldflags=
10930 smart_lib_dir=
10931
10932 if test "x$smart_try_dir" != "x"; then
10933   for try in $smart_try_dir; do
10934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
10935 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
10936     LIBS="-lpcre $old_LIBS"
10937     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h.  */
10940 extern char pcre_compile();
10941 int
10942 main ()
10943 {
10944 pcre_compile()
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 if ac_fn_c_try_link "$LINENO"; then :
10950
10951                  smart_lib="-lpcre"
10952                  smart_ldflags="-L$try -Wl,-rpath,$try"
10953                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954 $as_echo "yes" >&6; }
10955                  break
10956
10957 else
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963   done
10964   LIBS="$old_LIBS"
10965   CPPFLAGS="$old_CPPFLAGS"
10966 fi
10967
10968 if test "x$smart_lib" = "x"; then
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
10970 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
10971   LIBS="-lpcre $old_LIBS"
10972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974 extern char pcre_compile();
10975 int
10976 main ()
10977 {
10978 pcre_compile()
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984
10985                 smart_lib="-lpcre"
10986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987 $as_echo "yes" >&6; }
10988
10989 else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994     conftest$ac_exeext conftest.$ac_ext
10995   LIBS="$old_LIBS"
10996 fi
10997
10998 if test "x$smart_lib" = "x"; then
10999
11000
11001 if test "x$LOCATE" != "x"; then
11002         DIRS=
11003   file=libpcre${libltdl_cv_shlibext}
11004
11005   for x in `${LOCATE} $file 2>/dev/null`; do
11006                                         base=`echo $x | sed "s%/${file}%%"`
11007     if test "x$x" = "x$base"; then
11008       continue;
11009     fi
11010
11011     dir=`${DIRNAME} $x 2>/dev/null`
11012                 exclude=`echo ${dir} | ${GREP} /home`
11013     if test "x$exclude" != "x"; then
11014       continue
11015     fi
11016
11017                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11018     if test "x$already" = "x"; then
11019       DIRS="$DIRS $dir"
11020     fi
11021   done
11022 fi
11023
11024 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11025
11026
11027
11028 if test "x$LOCATE" != "x"; then
11029         DIRS=
11030   file=libpcre.a
11031
11032   for x in `${LOCATE} $file 2>/dev/null`; do
11033                                         base=`echo $x | sed "s%/${file}%%"`
11034     if test "x$x" = "x$base"; then
11035       continue;
11036     fi
11037
11038     dir=`${DIRNAME} $x 2>/dev/null`
11039                 exclude=`echo ${dir} | ${GREP} /home`
11040     if test "x$exclude" != "x"; then
11041       continue
11042     fi
11043
11044                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11045     if test "x$already" = "x"; then
11046       DIRS="$DIRS $dir"
11047     fi
11048   done
11049 fi
11050
11051 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11052
11053
11054   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11056 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11057     LIBS="-lpcre $old_LIBS"
11058     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h.  */
11061 extern char pcre_compile();
11062 int
11063 main ()
11064 {
11065 pcre_compile()
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071
11072                   smart_lib="-lpcre"
11073                   smart_ldflags="-L$try -Wl,-rpath,$try"
11074                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11075 $as_echo "yes" >&6; }
11076                   break
11077
11078 else
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext \
11083     conftest$ac_exeext conftest.$ac_ext
11084   done
11085   LIBS="$old_LIBS"
11086   CPPFLAGS="$old_CPPFLAGS"
11087 fi
11088
11089 if test "x$smart_lib" != "x"; then
11090   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11091   LIBS="$smart_ldflags $smart_lib $old_LIBS"
11092   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11093 fi
11094
11095     if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11096       REGEX=yes
11097
11098       smart_try_dir=$pcre_lib_dir
11099
11100 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11101
11102
11103                               LIBS=$(echo "$LIBS" | sed -e 's/-lpcre/-lpcre -lpcreposix/')
11104     fi
11105   fi
11106 fi
11107
11108 if test "x$REGEX" = "x"; then
11109   smart_try_dir=
11110
11111
11112 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11113 old_CPPFLAGS="$CPPFLAGS"
11114 smart_include=
11115 smart_include_dir="/usr/local/include /opt/include"
11116
11117 _smart_try_dir=
11118 _smart_include_dir=
11119
11120 for _prefix in $smart_prefix ""; do
11121   for _dir in $smart_try_dir; do
11122     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11123   done
11124
11125   for _dir in $smart_include_dir; do
11126     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11127   done
11128 done
11129
11130 if test "x$_smart_try_dir" != "x"; then
11131   for try in $_smart_try_dir; do
11132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11133 $as_echo_n "checking for regex.h in $try... " >&6; }
11134     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h.  */
11137
11138                     #include <regex.h>
11139 int
11140 main ()
11141 {
11142 int a = 1;
11143   ;
11144   return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_compile "$LINENO"; then :
11148
11149                      smart_include="-isystem $try"
11150                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152                      break
11153
11154 else
11155
11156                      smart_include=
11157                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11159
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162   done
11163   CPPFLAGS="$old_CPPFLAGS"
11164 fi
11165
11166 if test "x$smart_include" = "x"; then
11167   for _prefix in $smart_prefix; do
11168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11169 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11170
11171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h.  */
11173
11174                     #include <regex.h>
11175 int
11176 main ()
11177 {
11178 int a = 1;
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_c_try_compile "$LINENO"; then :
11184
11185                      smart_include="-isystem ${_prefix}/"
11186                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11187 $as_echo "yes" >&6; }
11188                      break
11189
11190 else
11191
11192                      smart_include=
11193                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11195
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198   done
11199 fi
11200
11201 if test "x$smart_include" = "x"; then
11202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11203 $as_echo_n "checking for regex.h... " >&6; }
11204
11205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h.  */
11207
11208                     #include <regex.h>
11209 int
11210 main ()
11211 {
11212 int a = 1;
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 if ac_fn_c_try_compile "$LINENO"; then :
11218
11219                      smart_include=" "
11220                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222                      break
11223
11224 else
11225
11226                      smart_include=
11227                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232 fi
11233
11234 if test "x$smart_include" = "x"; then
11235
11236   for prefix in $smart_prefix; do
11237
11238
11239 if test "x$LOCATE" != "x"; then
11240         DIRS=
11241   file="${_prefix}/${1}"
11242
11243   for x in `${LOCATE} $file 2>/dev/null`; do
11244                                         base=`echo $x | sed "s%/${file}%%"`
11245     if test "x$x" = "x$base"; then
11246       continue;
11247     fi
11248
11249     dir=`${DIRNAME} $x 2>/dev/null`
11250                 exclude=`echo ${dir} | ${GREP} /home`
11251     if test "x$exclude" != "x"; then
11252       continue
11253     fi
11254
11255                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11256     if test "x$already" = "x"; then
11257       DIRS="$DIRS $dir"
11258     fi
11259   done
11260 fi
11261
11262 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11263
11264   done
11265
11266
11267 if test "x$LOCATE" != "x"; then
11268         DIRS=
11269   file=regex.h
11270
11271   for x in `${LOCATE} $file 2>/dev/null`; do
11272                                         base=`echo $x | sed "s%/${file}%%"`
11273     if test "x$x" = "x$base"; then
11274       continue;
11275     fi
11276
11277     dir=`${DIRNAME} $x 2>/dev/null`
11278                 exclude=`echo ${dir} | ${GREP} /home`
11279     if test "x$exclude" != "x"; then
11280       continue
11281     fi
11282
11283                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11284     if test "x$already" = "x"; then
11285       DIRS="$DIRS $dir"
11286     fi
11287   done
11288 fi
11289
11290 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11291
11292
11293   for try in $_smart_include_dir; do
11294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11295 $as_echo_n "checking for regex.h in $try... " >&6; }
11296     CPPFLAGS="-isystem $try $old_CPPFLAGS"
11297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300                     #include <regex.h>
11301 int
11302 main ()
11303 {
11304 int a = 1;
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310
11311                      smart_include="-isystem $try"
11312                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11314                      break
11315
11316 else
11317
11318                      smart_include=
11319                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321
11322 fi
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324   done
11325   CPPFLAGS="$old_CPPFLAGS"
11326 fi
11327
11328 if test "x$smart_include" != "x"; then
11329   eval "ac_cv_header_$ac_safe=yes"
11330   CPPFLAGS="$smart_include $old_CPPFLAGS"
11331   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11332 fi
11333
11334 smart_prefix=
11335
11336   if test "x$ac_cv_header_regex_h" = "xyes"; then
11337     REGEX=yes
11338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
11339 $as_echo_n "checking for extended regular expressions... " >&6; }
11340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343         #include <regex.h>
11344         #ifdef REG_EXTENDED
11345         yes
11346         #endif
11347
11348 _ACEOF
11349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11350   $EGREP "yes" >/dev/null 2>&1; then :
11351
11352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11353 $as_echo "yes" >&6; }
11354
11355 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
11356
11357
11358 else
11359
11360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362
11363
11364 fi
11365 rm -f conftest*
11366
11367
11368                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
11369 $as_echo_n "checking for regcomp in -lregex... " >&6; }
11370 if ${ac_cv_lib_regex_regcomp+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-lregex  $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h.  */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379    Use char because int might match the return type of a GCC
11380    builtin and then its argument prototype would still apply.  */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char regcomp ();
11385 int
11386 main ()
11387 {
11388 return regcomp ();
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394   ac_cv_lib_regex_regcomp=yes
11395 else
11396   ac_cv_lib_regex_regcomp=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399     conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
11403 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
11404 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
11405
11406         LIBS="-lregex $LIBS"
11407
11408
11409 fi
11410
11411   fi
11412 fi
11413
11414 if test "x$REGEX" = "xyes"; then
11415
11416 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
11417
11418 fi
11419
11420
11421 $as_echo "#define GNUSTYLE 1" >>confdefs.h
11422
11423
11424
11425 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
11426
11427
11428
11429 $as_echo "#define BSDSTYLE 3" >>confdefs.h
11430
11431
11432 gethostbyaddrrstyle=""
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
11434 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
11435 case "$host" in
11436   *-freebsd*)
11437                             ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
11438         #ifdef HAVE_NETDB_H
11439         #include <netdb.h>
11440         #endif
11441
11442 "
11443 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
11444   ac_have_decl=1
11445 else
11446   ac_have_decl=0
11447 fi
11448
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
11451 _ACEOF
11452 if test $ac_have_decl = 1; then :
11453
11454 else
11455
11456
11457 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11458
11459         gethostbyaddrrstyle=BSD
11460         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
11461 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
11462
11463 fi
11464
11465     ;;
11466 esac
11467
11468 if test "x$gethostbyaddrrstyle" = "x"; then
11469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h.  */
11471
11472       #include <stdio.h>
11473       #include <netdb.h>
11474
11475 int
11476 main ()
11477 {
11478  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484
11485
11486 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
11487
11488       gethostbyaddrrstyle=GNU
11489
11490
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493     conftest$ac_exeext conftest.$ac_ext
11494 fi
11495
11496 if test "x$gethostbyaddrrstyle" = "x"; then
11497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h.  */
11499
11500       #include <stdio.h>
11501       #include <netdb.h>
11502
11503 int
11504 main ()
11505 {
11506  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512
11513
11514 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
11515
11516       gethostbyaddrrstyle=SYSV
11517
11518
11519 fi
11520 rm -f core conftest.err conftest.$ac_objext \
11521     conftest$ac_exeext conftest.$ac_ext
11522 fi
11523
11524
11525 if test "x$gethostbyaddrrstyle" = "x"; then
11526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h.  */
11528
11529       #include <stdio.h>
11530       #include <netdb.h>
11531
11532 int
11533 main ()
11534 {
11535  gethostbyaddr(NULL, 0, 0)
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541
11542
11543 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11544
11545       gethostbyaddrrstyle=BSD
11546
11547
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550     conftest$ac_exeext conftest.$ac_ext
11551 fi
11552
11553 if test "x$gethostbyaddrrstyle" = "x"; then
11554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
11555 $as_echo "none!  It must not exist, here." >&6; }
11556 else
11557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
11558 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
11559 fi
11560
11561 if test "x$gethostbyaddrrstyle" = "xBSD"; then
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
11563 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
11564 fi
11565
11566 gethostbynamerstyle=""
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
11568 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h.  */
11571
11572     #include <stdio.h>
11573     #include <netdb.h>
11574
11575 int
11576 main ()
11577 {
11578  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584
11585
11586 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
11587
11588     gethostbynamerstyle=GNU
11589
11590
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593     conftest$ac_exeext conftest.$ac_ext
11594
11595 if test "x$gethostbynamerstyle" = "x"; then
11596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h.  */
11598
11599       #include <stdio.h>
11600       #include <netdb.h>
11601
11602 int
11603 main ()
11604 {
11605  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611
11612
11613 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
11614
11615       gethostbynamerstyle=SYSV
11616
11617
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext \
11620     conftest$ac_exeext conftest.$ac_ext
11621 fi
11622
11623 if test "x$gethostbynamerstyle" = "x"; then
11624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h.  */
11626
11627       #include <stdio.h>
11628       #include <netdb.h>
11629
11630 int
11631 main ()
11632 {
11633  gethostbyname(NULL)
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639
11640
11641 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
11642
11643       gethostbynamerstyle=BSD
11644
11645
11646 fi
11647 rm -f core conftest.err conftest.$ac_objext \
11648     conftest$ac_exeext conftest.$ac_ext
11649 fi
11650
11651 if test "x$gethostbynamerstyle" = "x"; then
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
11653 $as_echo "none!  It must not exist, here." >&6; }
11654 else
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
11656 $as_echo "${gethostbynamerstyle}-style" >&6; }
11657 fi
11658
11659 if test "x$gethostbynamerstyle" = "xBSD"; then
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
11661 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
11662 fi
11663
11664 if test "x$ac_cv_header_pwd_h" = "xyes"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
11666 $as_echo_n "checking getpwnam_r... " >&6; }
11667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h.  */
11669
11670       #include <stdlib.h>
11671       #include <sys/types.h>
11672       #include <pwd.h>
11673
11674 int
11675 main ()
11676 {
11677  getpwnam_r(NULL, NULL, NULL, 0, NULL)
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 if ac_fn_c_try_link "$LINENO"; then :
11683
11684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685 $as_echo "yes" >&6; }
11686
11687 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
11688
11689
11690 else
11691
11692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11694
11695
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext \
11698     conftest$ac_exeext conftest.$ac_ext
11699 fi
11700
11701 if test "x$ac_cv_header_grp_h" = "xyes"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
11703 $as_echo_n "checking getgrnam_r... " >&6; }
11704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h.  */
11706
11707       #include <stdlib.h>
11708       #include <sys/types.h>
11709       #include <grp.h>
11710
11711 int
11712 main ()
11713 {
11714  getgrnam_r(NULL, NULL, NULL, 0, NULL)
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720
11721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11723
11724 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
11725
11726
11727 else
11728
11729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731
11732
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735     conftest$ac_exeext conftest.$ac_ext
11736 fi
11737
11738
11739
11740 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
11741
11742
11743 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
11744
11745 ctimerstyle=""
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
11747 $as_echo_n "checking ctime_r() syntax... " >&6; }
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h.  */
11750
11751     #include <time.h>
11752
11753 int
11754 main ()
11755 {
11756  ctime_r(NULL, NULL, 0)
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762
11763
11764 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
11765
11766     ctimerstyle="SOLARIS"
11767
11768
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext \
11771     conftest$ac_exeext conftest.$ac_ext
11772
11773 if test "x$ctimerstyle" = "x"; then
11774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h.  */
11776
11777       #include <time.h>
11778
11779 int
11780 main ()
11781 {
11782  ctime_r(NULL, NULL)
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788
11789
11790 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
11791
11792       ctimerstyle="POSIX"
11793
11794
11795 fi
11796 rm -f core conftest.err conftest.$ac_objext \
11797     conftest$ac_exeext conftest.$ac_ext
11798 fi
11799
11800 if test "x$ctimerstyle" = "x"; then
11801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
11802 $as_echo "none!  It must not exist, here." >&6; }
11803 else
11804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
11805 $as_echo "${ctimerstyle}-style" >&6; }
11806 fi
11807
11808 HOSTINFO=$host
11809
11810
11811
11812 top_builddir=`pwd`
11813 export top_builddir
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
11815 $as_echo "top_builddir=$top_builddir" >&6; }
11816
11817
11818
11819
11820 if test "x$EXPERIMENTAL" = "xyes"; then
11821   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
11822     MODULES="$MODULES $foo"
11823   done
11824 else
11825             for foo in `cat "${srcdir}"/src/modules/stable`; do
11826       MODULES="$MODULES $foo"
11827    done
11828 fi
11829
11830 mysubdirs=""
11831 for bar in $MODULES; do
11832   if test -f "${srcdir}"/src/modules/$bar/configure; then
11833     mysubdirs="$mysubdirs src/modules/$bar"
11834   fi
11835 done
11836
11837
11838
11839 subdirs="$subdirs $mysubdirs"
11840
11841
11842
11843 if test "x$werror" == "xyes"; then
11844   CFLAGS="-Werror $CFLAGS"
11845 fi
11846
11847 ac_config_commands="$ac_config_commands stamp-h"
11848
11849 ac_config_commands="$ac_config_commands build-radpaths-h"
11850
11851 ac_config_commands="$ac_config_commands main-chmod"
11852
11853 ac_config_commands="$ac_config_commands scripts-chmod"
11854
11855
11856
11857
11858
11859
11860 USE_STATIC_LIBS="yes"
11861
11862
11863
11864
11865   unset ac_cv_env_LIBS_set
11866   unset ac_cv_env_LIBS_value
11867
11868   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"
11869
11870 cat >confcache <<\_ACEOF
11871 # This file is a shell script that caches the results of configure
11872 # tests run on this system so they can be shared between configure
11873 # scripts and configure runs, see configure's option --config-cache.
11874 # It is not useful on other systems.  If it contains results you don't
11875 # want to keep, you may remove or edit it.
11876 #
11877 # config.status only pays attention to the cache file if you give it
11878 # the --recheck option to rerun configure.
11879 #
11880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11882 # following values.
11883
11884 _ACEOF
11885
11886 # The following way of writing the cache mishandles newlines in values,
11887 # but we know of no workaround that is simple, portable, and efficient.
11888 # So, we kill variables containing newlines.
11889 # Ultrix sh set writes to stderr and can't be redirected directly,
11890 # and sets the high bit in the cache file unless we assign to the vars.
11891 (
11892   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11893     eval ac_val=\$$ac_var
11894     case $ac_val in #(
11895     *${as_nl}*)
11896       case $ac_var in #(
11897       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11898 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11899       esac
11900       case $ac_var in #(
11901       _ | IFS | as_nl) ;; #(
11902       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11903       *) { eval $ac_var=; unset $ac_var;} ;;
11904       esac ;;
11905     esac
11906   done
11907
11908   (set) 2>&1 |
11909     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11910     *${as_nl}ac_space=\ *)
11911       # `set' does not quote correctly, so add quotes: double-quote
11912       # substitution turns \\\\ into \\, and sed turns \\ into \.
11913       sed -n \
11914         "s/'/'\\\\''/g;
11915           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11916       ;; #(
11917     *)
11918       # `set' quotes correctly as required by POSIX, so do not add quotes.
11919       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11920       ;;
11921     esac |
11922     sort
11923 ) |
11924   sed '
11925      /^ac_cv_env_/b end
11926      t clear
11927      :clear
11928      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11929      t end
11930      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11931      :end' >>confcache
11932 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11933   if test -w "$cache_file"; then
11934     if test "x$cache_file" != "x/dev/null"; then
11935       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11936 $as_echo "$as_me: updating cache $cache_file" >&6;}
11937       if test ! -f "$cache_file" || test -h "$cache_file"; then
11938         cat confcache >"$cache_file"
11939       else
11940         case $cache_file in #(
11941         */* | ?:*)
11942           mv -f confcache "$cache_file"$$ &&
11943           mv -f "$cache_file"$$ "$cache_file" ;; #(
11944         *)
11945           mv -f confcache "$cache_file" ;;
11946         esac
11947       fi
11948     fi
11949   else
11950     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11951 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11952   fi
11953 fi
11954 rm -f confcache
11955
11956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11957 # Let make expand exec_prefix.
11958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11959
11960 DEFS=-DHAVE_CONFIG_H
11961
11962 ac_libobjs=
11963 ac_ltlibobjs=
11964 U=
11965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11966   # 1. Remove the extension, and $U if already installed.
11967   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11968   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11969   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11970   #    will be set to the directory where LIBOBJS objects are built.
11971   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11972   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11973 done
11974 LIBOBJS=$ac_libobjs
11975
11976 LTLIBOBJS=$ac_ltlibobjs
11977
11978
11979
11980
11981 : "${CONFIG_STATUS=./config.status}"
11982 ac_write_fail=0
11983 ac_clean_files_save=$ac_clean_files
11984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11987 as_write_fail=0
11988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11989 #! $SHELL
11990 # Generated by $as_me.
11991 # Run this file to recreate the current configuration.
11992 # Compiler output produced by configure, useful for debugging
11993 # configure, is in config.log if it exists.
11994
11995 debug=false
11996 ac_cs_recheck=false
11997 ac_cs_silent=false
11998
11999 SHELL=\${CONFIG_SHELL-$SHELL}
12000 export SHELL
12001 _ASEOF
12002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12003 ## -------------------- ##
12004 ## M4sh Initialization. ##
12005 ## -------------------- ##
12006
12007 # Be more Bourne compatible
12008 DUALCASE=1; export DUALCASE # for MKS sh
12009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12010   emulate sh
12011   NULLCMD=:
12012   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12013   # is contrary to our usage.  Disable this feature.
12014   alias -g '${1+"$@"}'='"$@"'
12015   setopt NO_GLOB_SUBST
12016 else
12017   case `(set -o) 2>/dev/null` in #(
12018   *posix*) :
12019     set -o posix ;; #(
12020   *) :
12021      ;;
12022 esac
12023 fi
12024
12025
12026 as_nl='
12027 '
12028 export as_nl
12029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12033 # Prefer a ksh shell builtin over an external printf program on Solaris,
12034 # but without wasting forks for bash or zsh.
12035 if test -z "$BASH_VERSION$ZSH_VERSION" \
12036     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12037   as_echo='print -r --'
12038   as_echo_n='print -rn --'
12039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12040   as_echo='printf %s\n'
12041   as_echo_n='printf %s'
12042 else
12043   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12044     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12045     as_echo_n='/usr/ucb/echo -n'
12046   else
12047     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12048     as_echo_n_body='eval
12049       arg=$1;
12050       case $arg in #(
12051       *"$as_nl"*)
12052         expr "X$arg" : "X\\(.*\\)$as_nl";
12053         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12054       esac;
12055       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12056     '
12057     export as_echo_n_body
12058     as_echo_n='sh -c $as_echo_n_body as_echo'
12059   fi
12060   export as_echo_body
12061   as_echo='sh -c $as_echo_body as_echo'
12062 fi
12063
12064 # The user is always right.
12065 if test "${PATH_SEPARATOR+set}" != set; then
12066   PATH_SEPARATOR=:
12067   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12068     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12069       PATH_SEPARATOR=';'
12070   }
12071 fi
12072
12073
12074 # IFS
12075 # We need space, tab and new line, in precisely that order.  Quoting is
12076 # there to prevent editors from complaining about space-tab.
12077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12078 # splitting by setting IFS to empty value.)
12079 IFS=" ""        $as_nl"
12080
12081 # Find who we are.  Look in the path if we contain no directory separator.
12082 as_myself=
12083 case $0 in #((
12084   *[\\/]* ) as_myself=$0 ;;
12085   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in $PATH
12087 do
12088   IFS=$as_save_IFS
12089   test -z "$as_dir" && as_dir=.
12090     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12091   done
12092 IFS=$as_save_IFS
12093
12094      ;;
12095 esac
12096 # We did not find ourselves, most probably we were run as `sh COMMAND'
12097 # in which case we are not to be found in the path.
12098 if test "x$as_myself" = x; then
12099   as_myself=$0
12100 fi
12101 if test ! -f "$as_myself"; then
12102   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12103   exit 1
12104 fi
12105
12106 # Unset variables that we do not need and which cause bugs (e.g. in
12107 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12108 # suppresses any "Segmentation fault" message there.  '((' could
12109 # trigger a bug in pdksh 5.2.14.
12110 for as_var in BASH_ENV ENV MAIL MAILPATH
12111 do eval test x\${$as_var+set} = xset \
12112   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12113 done
12114 PS1='$ '
12115 PS2='> '
12116 PS4='+ '
12117
12118 # NLS nuisances.
12119 LC_ALL=C
12120 export LC_ALL
12121 LANGUAGE=C
12122 export LANGUAGE
12123
12124 # CDPATH.
12125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12126
12127
12128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12129 # ----------------------------------------
12130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12132 # script with STATUS, using 1 if that was 0.
12133 as_fn_error ()
12134 {
12135   as_status=$1; test $as_status -eq 0 && as_status=1
12136   if test "$4"; then
12137     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12138     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12139   fi
12140   $as_echo "$as_me: error: $2" >&2
12141   as_fn_exit $as_status
12142 } # as_fn_error
12143
12144
12145 # as_fn_set_status STATUS
12146 # -----------------------
12147 # Set $? to STATUS, without forking.
12148 as_fn_set_status ()
12149 {
12150   return $1
12151 } # as_fn_set_status
12152
12153 # as_fn_exit STATUS
12154 # -----------------
12155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12156 as_fn_exit ()
12157 {
12158   set +e
12159   as_fn_set_status $1
12160   exit $1
12161 } # as_fn_exit
12162
12163 # as_fn_unset VAR
12164 # ---------------
12165 # Portably unset VAR.
12166 as_fn_unset ()
12167 {
12168   { eval $1=; unset $1;}
12169 }
12170 as_unset=as_fn_unset
12171 # as_fn_append VAR VALUE
12172 # ----------------------
12173 # Append the text in VALUE to the end of the definition contained in VAR. Take
12174 # advantage of any shell optimizations that allow amortized linear growth over
12175 # repeated appends, instead of the typical quadratic growth present in naive
12176 # implementations.
12177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12178   eval 'as_fn_append ()
12179   {
12180     eval $1+=\$2
12181   }'
12182 else
12183   as_fn_append ()
12184   {
12185     eval $1=\$$1\$2
12186   }
12187 fi # as_fn_append
12188
12189 # as_fn_arith ARG...
12190 # ------------------
12191 # Perform arithmetic evaluation on the ARGs, and store the result in the
12192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12193 # must be portable across $(()) and expr.
12194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12195   eval 'as_fn_arith ()
12196   {
12197     as_val=$(( $* ))
12198   }'
12199 else
12200   as_fn_arith ()
12201   {
12202     as_val=`expr "$@" || test $? -eq 1`
12203   }
12204 fi # as_fn_arith
12205
12206
12207 if expr a : '\(a\)' >/dev/null 2>&1 &&
12208    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12209   as_expr=expr
12210 else
12211   as_expr=false
12212 fi
12213
12214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12215   as_basename=basename
12216 else
12217   as_basename=false
12218 fi
12219
12220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12221   as_dirname=dirname
12222 else
12223   as_dirname=false
12224 fi
12225
12226 as_me=`$as_basename -- "$0" ||
12227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12228          X"$0" : 'X\(//\)$' \| \
12229          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12230 $as_echo X/"$0" |
12231     sed '/^.*\/\([^/][^/]*\)\/*$/{
12232             s//\1/
12233             q
12234           }
12235           /^X\/\(\/\/\)$/{
12236             s//\1/
12237             q
12238           }
12239           /^X\/\(\/\).*/{
12240             s//\1/
12241             q
12242           }
12243           s/.*/./; q'`
12244
12245 # Avoid depending upon Character Ranges.
12246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12249 as_cr_digits='0123456789'
12250 as_cr_alnum=$as_cr_Letters$as_cr_digits
12251
12252 ECHO_C= ECHO_N= ECHO_T=
12253 case `echo -n x` in #(((((
12254 -n*)
12255   case `echo 'xy\c'` in
12256   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12257   xy)  ECHO_C='\c';;
12258   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12259        ECHO_T=' ';;
12260   esac;;
12261 *)
12262   ECHO_N='-n';;
12263 esac
12264
12265 rm -f conf$$ conf$$.exe conf$$.file
12266 if test -d conf$$.dir; then
12267   rm -f conf$$.dir/conf$$.file
12268 else
12269   rm -f conf$$.dir
12270   mkdir conf$$.dir 2>/dev/null
12271 fi
12272 if (echo >conf$$.file) 2>/dev/null; then
12273   if ln -s conf$$.file conf$$ 2>/dev/null; then
12274     as_ln_s='ln -s'
12275     # ... but there are two gotchas:
12276     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12277     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12278     # In both cases, we have to default to `cp -pR'.
12279     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12280       as_ln_s='cp -pR'
12281   elif ln conf$$.file conf$$ 2>/dev/null; then
12282     as_ln_s=ln
12283   else
12284     as_ln_s='cp -pR'
12285   fi
12286 else
12287   as_ln_s='cp -pR'
12288 fi
12289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12290 rmdir conf$$.dir 2>/dev/null
12291
12292
12293 # as_fn_mkdir_p
12294 # -------------
12295 # Create "$as_dir" as a directory, including parents if necessary.
12296 as_fn_mkdir_p ()
12297 {
12298
12299   case $as_dir in #(
12300   -*) as_dir=./$as_dir;;
12301   esac
12302   test -d "$as_dir" || eval $as_mkdir_p || {
12303     as_dirs=
12304     while :; do
12305       case $as_dir in #(
12306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12307       *) as_qdir=$as_dir;;
12308       esac
12309       as_dirs="'$as_qdir' $as_dirs"
12310       as_dir=`$as_dirname -- "$as_dir" ||
12311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12312          X"$as_dir" : 'X\(//\)[^/]' \| \
12313          X"$as_dir" : 'X\(//\)$' \| \
12314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12315 $as_echo X"$as_dir" |
12316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12317             s//\1/
12318             q
12319           }
12320           /^X\(\/\/\)[^/].*/{
12321             s//\1/
12322             q
12323           }
12324           /^X\(\/\/\)$/{
12325             s//\1/
12326             q
12327           }
12328           /^X\(\/\).*/{
12329             s//\1/
12330             q
12331           }
12332           s/.*/./; q'`
12333       test -d "$as_dir" && break
12334     done
12335     test -z "$as_dirs" || eval "mkdir $as_dirs"
12336   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12337
12338
12339 } # as_fn_mkdir_p
12340 if mkdir -p . 2>/dev/null; then
12341   as_mkdir_p='mkdir -p "$as_dir"'
12342 else
12343   test -d ./-p && rmdir ./-p
12344   as_mkdir_p=false
12345 fi
12346
12347
12348 # as_fn_executable_p FILE
12349 # -----------------------
12350 # Test if FILE is an executable regular file.
12351 as_fn_executable_p ()
12352 {
12353   test -f "$1" && test -x "$1"
12354 } # as_fn_executable_p
12355 as_test_x='test -x'
12356 as_executable_p=as_fn_executable_p
12357
12358 # Sed expression to map a string onto a valid CPP name.
12359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12360
12361 # Sed expression to map a string onto a valid variable name.
12362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12363
12364
12365 exec 6>&1
12366 ## ----------------------------------- ##
12367 ## Main body of $CONFIG_STATUS script. ##
12368 ## ----------------------------------- ##
12369 _ASEOF
12370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12371
12372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12373 # Save the log message, to keep $0 and so on meaningful, and to
12374 # report actual input values of CONFIG_FILES etc. instead of their
12375 # values after options handling.
12376 ac_log="
12377 This file was extended by freeradius $as_me $Id$, which was
12378 generated by GNU Autoconf 2.69.  Invocation command line was
12379
12380   CONFIG_FILES    = $CONFIG_FILES
12381   CONFIG_HEADERS  = $CONFIG_HEADERS
12382   CONFIG_LINKS    = $CONFIG_LINKS
12383   CONFIG_COMMANDS = $CONFIG_COMMANDS
12384   $ $0 $@
12385
12386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12387 "
12388
12389 _ACEOF
12390
12391 case $ac_config_files in *"
12392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12393 esac
12394
12395 case $ac_config_headers in *"
12396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12397 esac
12398
12399
12400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401 # Files that config.status was made for.
12402 config_files="$ac_config_files"
12403 config_headers="$ac_config_headers"
12404 config_commands="$ac_config_commands"
12405
12406 _ACEOF
12407
12408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12409 ac_cs_usage="\
12410 \`$as_me' instantiates files and other configuration actions
12411 from templates according to the current configuration.  Unless the files
12412 and actions are specified as TAGs, all are instantiated by default.
12413
12414 Usage: $0 [OPTION]... [TAG]...
12415
12416   -h, --help       print this help, then exit
12417   -V, --version    print version number and configuration settings, then exit
12418       --config     print configuration, then exit
12419   -q, --quiet, --silent
12420                    do not print progress messages
12421   -d, --debug      don't remove temporary files
12422       --recheck    update $as_me by reconfiguring in the same conditions
12423       --file=FILE[:TEMPLATE]
12424                    instantiate the configuration file FILE
12425       --header=FILE[:TEMPLATE]
12426                    instantiate the configuration header FILE
12427
12428 Configuration files:
12429 $config_files
12430
12431 Configuration headers:
12432 $config_headers
12433
12434 Configuration commands:
12435 $config_commands
12436
12437 Report bugs to <http://bugs.freeradius.org>.
12438 freeradius home page: <http://www.freeradius.org>."
12439
12440 _ACEOF
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12443 ac_cs_version="\\
12444 freeradius config.status $Id$
12445 configured by $0, generated by GNU Autoconf 2.69,
12446   with options \\"\$ac_cs_config\\"
12447
12448 Copyright (C) 2012 Free Software Foundation, Inc.
12449 This config.status script is free software; the Free Software Foundation
12450 gives unlimited permission to copy, distribute and modify it."
12451
12452 ac_pwd='$ac_pwd'
12453 srcdir='$srcdir'
12454 test -n "\$AWK" || AWK=awk
12455 _ACEOF
12456
12457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12458 # The default lists apply if the user does not specify any file.
12459 ac_need_defaults=:
12460 while test $# != 0
12461 do
12462   case $1 in
12463   --*=?*)
12464     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12465     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12466     ac_shift=:
12467     ;;
12468   --*=)
12469     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12470     ac_optarg=
12471     ac_shift=:
12472     ;;
12473   *)
12474     ac_option=$1
12475     ac_optarg=$2
12476     ac_shift=shift
12477     ;;
12478   esac
12479
12480   case $ac_option in
12481   # Handling of the options.
12482   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12483     ac_cs_recheck=: ;;
12484   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12485     $as_echo "$ac_cs_version"; exit ;;
12486   --config | --confi | --conf | --con | --co | --c )
12487     $as_echo "$ac_cs_config"; exit ;;
12488   --debug | --debu | --deb | --de | --d | -d )
12489     debug=: ;;
12490   --file | --fil | --fi | --f )
12491     $ac_shift
12492     case $ac_optarg in
12493     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12494     '') as_fn_error $? "missing file argument" ;;
12495     esac
12496     as_fn_append CONFIG_FILES " '$ac_optarg'"
12497     ac_need_defaults=false;;
12498   --header | --heade | --head | --hea )
12499     $ac_shift
12500     case $ac_optarg in
12501     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12502     esac
12503     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12504     ac_need_defaults=false;;
12505   --he | --h)
12506     # Conflict between --help and --header
12507     as_fn_error $? "ambiguous option: \`$1'
12508 Try \`$0 --help' for more information.";;
12509   --help | --hel | -h )
12510     $as_echo "$ac_cs_usage"; exit ;;
12511   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12512   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12513     ac_cs_silent=: ;;
12514
12515   # This is an error.
12516   -*) as_fn_error $? "unrecognized option: \`$1'
12517 Try \`$0 --help' for more information." ;;
12518
12519   *) as_fn_append ac_config_targets " $1"
12520      ac_need_defaults=false ;;
12521
12522   esac
12523   shift
12524 done
12525
12526 ac_configure_extra_args=
12527
12528 if $ac_cs_silent; then
12529   exec 6>/dev/null
12530   ac_configure_extra_args="$ac_configure_extra_args --silent"
12531 fi
12532
12533 _ACEOF
12534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535 if \$ac_cs_recheck; then
12536   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12537   shift
12538   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12539   CONFIG_SHELL='$SHELL'
12540   export CONFIG_SHELL
12541   exec "\$@"
12542 fi
12543
12544 _ACEOF
12545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12546 exec 5>>config.log
12547 {
12548   echo
12549   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12550 ## Running $as_me. ##
12551 _ASBOX
12552   $as_echo "$ac_log"
12553 } >&5
12554
12555 _ACEOF
12556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12557 _ACEOF
12558
12559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12560
12561 # Handling of arguments.
12562 for ac_config_target in $ac_config_targets
12563 do
12564   case $ac_config_target in
12565     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
12566     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
12567     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
12568     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
12569     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
12570     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
12571     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
12572     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
12573     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
12574     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
12575     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
12576     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
12577     "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
12578     "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
12579     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
12580     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
12581     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
12582
12583   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12584   esac
12585 done
12586
12587
12588 # If the user did not use the arguments to specify the items to instantiate,
12589 # then the envvar interface is used.  Set only those that are not.
12590 # We use the long form for the default assignment because of an extremely
12591 # bizarre bug on SunOS 4.1.3.
12592 if $ac_need_defaults; then
12593   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12594   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12595   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12596 fi
12597
12598 # Have a temporary directory for convenience.  Make it in the build tree
12599 # simply because there is no reason against having it here, and in addition,
12600 # creating and moving files from /tmp can sometimes cause problems.
12601 # Hook for its removal unless debugging.
12602 # Note that there is a small window in which the directory will not be cleaned:
12603 # after its creation but before its name has been assigned to `$tmp'.
12604 $debug ||
12605 {
12606   tmp= ac_tmp=
12607   trap 'exit_status=$?
12608   : "${ac_tmp:=$tmp}"
12609   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12610 ' 0
12611   trap 'as_fn_exit 1' 1 2 13 15
12612 }
12613 # Create a (secure) tmp directory for tmp files.
12614
12615 {
12616   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12617   test -d "$tmp"
12618 }  ||
12619 {
12620   tmp=./conf$$-$RANDOM
12621   (umask 077 && mkdir "$tmp")
12622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12623 ac_tmp=$tmp
12624
12625 # Set up the scripts for CONFIG_FILES section.
12626 # No need to generate them if there are no CONFIG_FILES.
12627 # This happens for instance with `./config.status config.h'.
12628 if test -n "$CONFIG_FILES"; then
12629
12630
12631 ac_cr=`echo X | tr X '\015'`
12632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12633 # But we know of no other shell where ac_cr would be empty at this
12634 # point, so we can use a bashism as a fallback.
12635 if test "x$ac_cr" = x; then
12636   eval ac_cr=\$\'\\r\'
12637 fi
12638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12640   ac_cs_awk_cr='\\r'
12641 else
12642   ac_cs_awk_cr=$ac_cr
12643 fi
12644
12645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12646 _ACEOF
12647
12648
12649 {
12650   echo "cat >conf$$subs.awk <<_ACEOF" &&
12651   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12652   echo "_ACEOF"
12653 } >conf$$subs.sh ||
12654   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12656 ac_delim='%!_!# '
12657 for ac_last_try in false false false false false :; do
12658   . ./conf$$subs.sh ||
12659     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12660
12661   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12662   if test $ac_delim_n = $ac_delim_num; then
12663     break
12664   elif $ac_last_try; then
12665     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12666   else
12667     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12668   fi
12669 done
12670 rm -f conf$$subs.sh
12671
12672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12674 _ACEOF
12675 sed -n '
12676 h
12677 s/^/S["/; s/!.*/"]=/
12678 p
12679 g
12680 s/^[^!]*!//
12681 :repl
12682 t repl
12683 s/'"$ac_delim"'$//
12684 t delim
12685 :nl
12686 h
12687 s/\(.\{148\}\)..*/\1/
12688 t more1
12689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12690 p
12691 n
12692 b repl
12693 :more1
12694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12695 p
12696 g
12697 s/.\{148\}//
12698 t nl
12699 :delim
12700 h
12701 s/\(.\{148\}\)..*/\1/
12702 t more2
12703 s/["\\]/\\&/g; s/^/"/; s/$/"/
12704 p
12705 b
12706 :more2
12707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12708 p
12709 g
12710 s/.\{148\}//
12711 t delim
12712 ' <conf$$subs.awk | sed '
12713 /^[^""]/{
12714   N
12715   s/\n//
12716 }
12717 ' >>$CONFIG_STATUS || ac_write_fail=1
12718 rm -f conf$$subs.awk
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 _ACAWK
12721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12722   for (key in S) S_is_set[key] = 1
12723   FS = "\a"
12724
12725 }
12726 {
12727   line = $ 0
12728   nfields = split(line, field, "@")
12729   substed = 0
12730   len = length(field[1])
12731   for (i = 2; i < nfields; i++) {
12732     key = field[i]
12733     keylen = length(key)
12734     if (S_is_set[key]) {
12735       value = S[key]
12736       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12737       len += length(value) + length(field[++i])
12738       substed = 1
12739     } else
12740       len += 1 + keylen
12741   }
12742
12743   print line
12744 }
12745
12746 _ACAWK
12747 _ACEOF
12748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12750   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12751 else
12752   cat
12753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12754   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12755 _ACEOF
12756
12757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12759 # trailing colons and then remove the whole line if VPATH becomes empty
12760 # (actually we leave an empty line to preserve line numbers).
12761 if test "x$srcdir" = x.; then
12762   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12763 h
12764 s///
12765 s/^/:/
12766 s/[      ]*$/:/
12767 s/:\$(srcdir):/:/g
12768 s/:\${srcdir}:/:/g
12769 s/:@srcdir@:/:/g
12770 s/^:*//
12771 s/:*$//
12772 x
12773 s/\(=[   ]*\).*/\1/
12774 G
12775 s/\n//
12776 s/^[^=]*=[       ]*$//
12777 }'
12778 fi
12779
12780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781 fi # test -n "$CONFIG_FILES"
12782
12783 # Set up the scripts for CONFIG_HEADERS section.
12784 # No need to generate them if there are no CONFIG_HEADERS.
12785 # This happens for instance with `./config.status Makefile'.
12786 if test -n "$CONFIG_HEADERS"; then
12787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12788 BEGIN {
12789 _ACEOF
12790
12791 # Transform confdefs.h into an awk script `defines.awk', embedded as
12792 # here-document in config.status, that substitutes the proper values into
12793 # config.h.in to produce config.h.
12794
12795 # Create a delimiter string that does not exist in confdefs.h, to ease
12796 # handling of long lines.
12797 ac_delim='%!_!# '
12798 for ac_last_try in false false :; do
12799   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12800   if test -z "$ac_tt"; then
12801     break
12802   elif $ac_last_try; then
12803     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12804   else
12805     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12806   fi
12807 done
12808
12809 # For the awk script, D is an array of macro values keyed by name,
12810 # likewise P contains macro parameters if any.  Preserve backslash
12811 # newline sequences.
12812
12813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12814 sed -n '
12815 s/.\{148\}/&'"$ac_delim"'/g
12816 t rset
12817 :rset
12818 s/^[     ]*#[    ]*define[       ][      ]*/ /
12819 t def
12820 d
12821 :def
12822 s/\\$//
12823 t bsnl
12824 s/["\\]/\\&/g
12825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12826 D["\1"]=" \3"/p
12827 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12828 d
12829 :bsnl
12830 s/["\\]/\\&/g
12831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12832 D["\1"]=" \3\\\\\\n"\\/p
12833 t cont
12834 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12835 t cont
12836 d
12837 :cont
12838 n
12839 s/.\{148\}/&'"$ac_delim"'/g
12840 t clear
12841 :clear
12842 s/\\$//
12843 t bsnlc
12844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12845 d
12846 :bsnlc
12847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12848 b cont
12849 ' <confdefs.h | sed '
12850 s/'"$ac_delim"'/"\\\
12851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12852
12853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12854   for (key in D) D_is_set[key] = 1
12855   FS = "\a"
12856 }
12857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12858   line = \$ 0
12859   split(line, arg, " ")
12860   if (arg[1] == "#") {
12861     defundef = arg[2]
12862     mac1 = arg[3]
12863   } else {
12864     defundef = substr(arg[1], 2)
12865     mac1 = arg[2]
12866   }
12867   split(mac1, mac2, "(") #)
12868   macro = mac2[1]
12869   prefix = substr(line, 1, index(line, defundef) - 1)
12870   if (D_is_set[macro]) {
12871     # Preserve the white space surrounding the "#".
12872     print prefix "define", macro P[macro] D[macro]
12873     next
12874   } else {
12875     # Replace #undef with comments.  This is necessary, for example,
12876     # in the case of _POSIX_SOURCE, which is predefined and required
12877     # on some systems where configure will not decide to define it.
12878     if (defundef == "undef") {
12879       print "/*", prefix defundef, macro, "*/"
12880       next
12881     }
12882   }
12883 }
12884 { print }
12885 _ACAWK
12886 _ACEOF
12887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12888   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12889 fi # test -n "$CONFIG_HEADERS"
12890
12891
12892 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12893 shift
12894 for ac_tag
12895 do
12896   case $ac_tag in
12897   :[FHLC]) ac_mode=$ac_tag; continue;;
12898   esac
12899   case $ac_mode$ac_tag in
12900   :[FHL]*:*);;
12901   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12902   :[FH]-) ac_tag=-:-;;
12903   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12904   esac
12905   ac_save_IFS=$IFS
12906   IFS=:
12907   set x $ac_tag
12908   IFS=$ac_save_IFS
12909   shift
12910   ac_file=$1
12911   shift
12912
12913   case $ac_mode in
12914   :L) ac_source=$1;;
12915   :[FH])
12916     ac_file_inputs=
12917     for ac_f
12918     do
12919       case $ac_f in
12920       -) ac_f="$ac_tmp/stdin";;
12921       *) # Look for the file first in the build tree, then in the source tree
12922          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12923          # because $ac_f cannot contain `:'.
12924          test -f "$ac_f" ||
12925            case $ac_f in
12926            [\\/$]*) false;;
12927            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12928            esac ||
12929            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12930       esac
12931       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12932       as_fn_append ac_file_inputs " '$ac_f'"
12933     done
12934
12935     # Let's still pretend it is `configure' which instantiates (i.e., don't
12936     # use $as_me), people would be surprised to read:
12937     #    /* config.h.  Generated by config.status.  */
12938     configure_input='Generated from '`
12939           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12940         `' by configure.'
12941     if test x"$ac_file" != x-; then
12942       configure_input="$ac_file.  $configure_input"
12943       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12944 $as_echo "$as_me: creating $ac_file" >&6;}
12945     fi
12946     # Neutralize special characters interpreted by sed in replacement strings.
12947     case $configure_input in #(
12948     *\&* | *\|* | *\\* )
12949        ac_sed_conf_input=`$as_echo "$configure_input" |
12950        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12951     *) ac_sed_conf_input=$configure_input;;
12952     esac
12953
12954     case $ac_tag in
12955     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12956       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12957     esac
12958     ;;
12959   esac
12960
12961   ac_dir=`$as_dirname -- "$ac_file" ||
12962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12963          X"$ac_file" : 'X\(//\)[^/]' \| \
12964          X"$ac_file" : 'X\(//\)$' \| \
12965          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12966 $as_echo X"$ac_file" |
12967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12968             s//\1/
12969             q
12970           }
12971           /^X\(\/\/\)[^/].*/{
12972             s//\1/
12973             q
12974           }
12975           /^X\(\/\/\)$/{
12976             s//\1/
12977             q
12978           }
12979           /^X\(\/\).*/{
12980             s//\1/
12981             q
12982           }
12983           s/.*/./; q'`
12984   as_dir="$ac_dir"; as_fn_mkdir_p
12985   ac_builddir=.
12986
12987 case "$ac_dir" in
12988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12989 *)
12990   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12991   # A ".." for each directory in $ac_dir_suffix.
12992   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12993   case $ac_top_builddir_sub in
12994   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12995   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12996   esac ;;
12997 esac
12998 ac_abs_top_builddir=$ac_pwd
12999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13000 # for backward compatibility:
13001 ac_top_builddir=$ac_top_build_prefix
13002
13003 case $srcdir in
13004   .)  # We are building in place.
13005     ac_srcdir=.
13006     ac_top_srcdir=$ac_top_builddir_sub
13007     ac_abs_top_srcdir=$ac_pwd ;;
13008   [\\/]* | ?:[\\/]* )  # Absolute name.
13009     ac_srcdir=$srcdir$ac_dir_suffix;
13010     ac_top_srcdir=$srcdir
13011     ac_abs_top_srcdir=$srcdir ;;
13012   *) # Relative name.
13013     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13014     ac_top_srcdir=$ac_top_build_prefix$srcdir
13015     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13016 esac
13017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13018
13019
13020   case $ac_mode in
13021   :F)
13022   #
13023   # CONFIG_FILE
13024   #
13025
13026 _ACEOF
13027
13028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13029 # If the template does not know about datarootdir, expand it.
13030 # FIXME: This hack should be removed a few years after 2.60.
13031 ac_datarootdir_hack=; ac_datarootdir_seen=
13032 ac_sed_dataroot='
13033 /datarootdir/ {
13034   p
13035   q
13036 }
13037 /@datadir@/p
13038 /@docdir@/p
13039 /@infodir@/p
13040 /@localedir@/p
13041 /@mandir@/p'
13042 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13043 *datarootdir*) ac_datarootdir_seen=yes;;
13044 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13046 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13047 _ACEOF
13048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13049   ac_datarootdir_hack='
13050   s&@datadir@&$datadir&g
13051   s&@docdir@&$docdir&g
13052   s&@infodir@&$infodir&g
13053   s&@localedir@&$localedir&g
13054   s&@mandir@&$mandir&g
13055   s&\\\${datarootdir}&$datarootdir&g' ;;
13056 esac
13057 _ACEOF
13058
13059 # Neutralize VPATH when `$srcdir' = `.'.
13060 # Shell code in configure.ac might set extrasub.
13061 # FIXME: do we really want to maintain this feature?
13062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13063 ac_sed_extra="$ac_vpsub
13064 $extrasub
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13067 :t
13068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13069 s|@configure_input@|$ac_sed_conf_input|;t t
13070 s&@top_builddir@&$ac_top_builddir_sub&;t t
13071 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13072 s&@srcdir@&$ac_srcdir&;t t
13073 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13074 s&@top_srcdir@&$ac_top_srcdir&;t t
13075 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13076 s&@builddir@&$ac_builddir&;t t
13077 s&@abs_builddir@&$ac_abs_builddir&;t t
13078 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13079 $ac_datarootdir_hack
13080 "
13081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13082   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13083
13084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13085   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13086   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13087       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13089 which seems to be undefined.  Please make sure it is defined" >&5
13090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13091 which seems to be undefined.  Please make sure it is defined" >&2;}
13092
13093   rm -f "$ac_tmp/stdin"
13094   case $ac_file in
13095   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13096   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13097   esac \
13098   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13099  ;;
13100   :H)
13101   #
13102   # CONFIG_HEADER
13103   #
13104   if test x"$ac_file" != x-; then
13105     {
13106       $as_echo "/* $configure_input  */" \
13107       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13108     } >"$ac_tmp/config.h" \
13109       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13110     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13111       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13113     else
13114       rm -f "$ac_file"
13115       mv "$ac_tmp/config.h" "$ac_file" \
13116         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13117     fi
13118   else
13119     $as_echo "/* $configure_input  */" \
13120       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13121       || as_fn_error $? "could not create -" "$LINENO" 5
13122   fi
13123  ;;
13124
13125   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13126 $as_echo "$as_me: executing $ac_file commands" >&6;}
13127  ;;
13128   esac
13129
13130
13131   case $ac_file$ac_mode in
13132     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13133     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13134     "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13135     "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13136
13137   esac
13138 done # for ac_tag
13139
13140
13141 as_fn_exit 0
13142 _ACEOF
13143 ac_clean_files=$ac_clean_files_save
13144
13145 test $ac_write_fail = 0 ||
13146   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13147
13148
13149 # configure is writing to config.log, and then calls config.status.
13150 # config.status does its own redirection, appending to config.log.
13151 # Unfortunately, on DOS this fails, as config.log is still kept open
13152 # by configure, so config.status won't be able to write to it; its
13153 # output is simply discarded.  So we exec the FD to /dev/null,
13154 # effectively closing config.log, so it can be properly (re)opened and
13155 # appended to by config.status.  When coming back to configure, we
13156 # need to make the FD available again.
13157 if test "$no_create" != yes; then
13158   ac_cs_success=:
13159   ac_config_status_args=
13160   test "$silent" = yes &&
13161     ac_config_status_args="$ac_config_status_args --quiet"
13162   exec 5>/dev/null
13163   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13164   exec 5>>config.log
13165   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13166   # would make configure fail if this is the last instruction.
13167   $ac_cs_success || as_fn_exit 1
13168 fi
13169
13170 #
13171 # CONFIG_SUBDIRS section.
13172 #
13173 if test "$no_recursion" != yes; then
13174
13175   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13176   # so they do not pile up.
13177   ac_sub_configure_args=
13178   ac_prev=
13179   eval "set x $ac_configure_args"
13180   shift
13181   for ac_arg
13182   do
13183     if test -n "$ac_prev"; then
13184       ac_prev=
13185       continue
13186     fi
13187     case $ac_arg in
13188     -cache-file | --cache-file | --cache-fil | --cache-fi \
13189     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13190       ac_prev=cache_file ;;
13191     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13192     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13193     | --c=*)
13194       ;;
13195     --config-cache | -C)
13196       ;;
13197     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13198       ac_prev=srcdir ;;
13199     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13200       ;;
13201     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13202       ac_prev=prefix ;;
13203     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13204       ;;
13205     --disable-option-checking)
13206       ;;
13207     *)
13208       case $ac_arg in
13209       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13210       esac
13211       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13212     esac
13213   done
13214
13215   # Always prepend --prefix to ensure using the same prefix
13216   # in subdir configurations.
13217   ac_arg="--prefix=$prefix"
13218   case $ac_arg in
13219   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13220   esac
13221   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13222
13223   # Pass --silent
13224   if test "$silent" = yes; then
13225     ac_sub_configure_args="--silent $ac_sub_configure_args"
13226   fi
13227
13228   # Always prepend --disable-option-checking to silence warnings, since
13229   # different subdirs can have different --enable and --with options.
13230   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13231
13232   ac_popdir=`pwd`
13233   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13234
13235     # Do not complain, so a configure script can configure whichever
13236     # parts of a large source tree are present.
13237     test -d "$srcdir/$ac_dir" || continue
13238
13239     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13240     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13241     $as_echo "$ac_msg" >&6
13242     as_dir="$ac_dir"; as_fn_mkdir_p
13243     ac_builddir=.
13244
13245 case "$ac_dir" in
13246 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13247 *)
13248   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13249   # A ".." for each directory in $ac_dir_suffix.
13250   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13251   case $ac_top_builddir_sub in
13252   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13253   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13254   esac ;;
13255 esac
13256 ac_abs_top_builddir=$ac_pwd
13257 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13258 # for backward compatibility:
13259 ac_top_builddir=$ac_top_build_prefix
13260
13261 case $srcdir in
13262   .)  # We are building in place.
13263     ac_srcdir=.
13264     ac_top_srcdir=$ac_top_builddir_sub
13265     ac_abs_top_srcdir=$ac_pwd ;;
13266   [\\/]* | ?:[\\/]* )  # Absolute name.
13267     ac_srcdir=$srcdir$ac_dir_suffix;
13268     ac_top_srcdir=$srcdir
13269     ac_abs_top_srcdir=$srcdir ;;
13270   *) # Relative name.
13271     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13272     ac_top_srcdir=$ac_top_build_prefix$srcdir
13273     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13274 esac
13275 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13276
13277
13278     cd "$ac_dir"
13279
13280     # Check for guested configure; otherwise get Cygnus style configure.
13281     if test -f "$ac_srcdir/configure.gnu"; then
13282       ac_sub_configure=$ac_srcdir/configure.gnu
13283     elif test -f "$ac_srcdir/configure"; then
13284       ac_sub_configure=$ac_srcdir/configure
13285     elif test -f "$ac_srcdir/configure.in"; then
13286       # This should be Cygnus configure.
13287       ac_sub_configure=$ac_aux_dir/configure
13288     else
13289       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13290 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13291       ac_sub_configure=
13292     fi
13293
13294     # The recursion is here.
13295     if test -n "$ac_sub_configure"; then
13296       # Make the cache file name correct relative to the subdirectory.
13297       case $cache_file in
13298       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13299       *) # Relative name.
13300         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13301       esac
13302
13303       { $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
13304 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13305       # The eval makes quoting arguments work.
13306       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13307            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13308         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13309     fi
13310
13311     cd "$ac_popdir"
13312   done
13313 fi
13314 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13316 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13317 fi
13318
13319