2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
5 # Report bugs to <http://bugs.freeradius.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
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 :
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
240 if test "x$CONFIG_SHELL" != x; then :
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.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
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 :
401 as_val=`expr "$@" || test $? -eq 1`
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.
413 as_status=$1; test $as_status -eq 0 && as_status=1
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
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`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
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'
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
674 RADIUSD_VERSION_STRING
702 program_transform_name
715 enable_option_checking
718 enable_strict_dependencies
730 with_experimental_modules
732 with_openssl_includes
733 with_openssl_libraries
735 with_rlm_FOO_include_dir
737 with_talloc_include_dir
739 ac_precious_vars='build_alias
751 ac_subdirs_all='$mysubdirs'
753 # Initialize some variables set by options.
755 ac_init_version=false
756 ac_unrecognized_opts=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name=s,x,x,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
911 -help | --help | --hel | --he | -h)
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 # Obsolete; use --without-fp.
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1060 -site=* | --site=* | --sit=*)
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=no ;;
1119 # Obsolete; use --with-x.
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error $? "missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1187 # Be sure to have absolute directory names.
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $? "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1350 if test -n "$ac_init_help"; then
1351 case $ac_init_help in
1352 short | recursive ) echo "Configuration of freeradius $Id$:";;
1357 --disable-option-checking ignore unrecognized --enable/--with options
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --enable-developer enables features of interest to developers.
1361 --disable-largefile omit support for large files
1362 --enable-strict-dependencies Fail configure on lack of module dependancy.
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1368 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1369 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1370 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1371 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1372 --with-threads Use threads, if available. (default=yes)
1373 --with-tcp Compile in TCP support. (default=yes)
1374 --with-vmps Compile in VMPS support. (default=yes)
1375 --with-dhcp Compile in DHCP support. (default=yes)
1376 --with-static-modules=QUOTED-MODULE-LIST
1377 --with-modules=QUOTED-MODULE-LIST
1378 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1379 --with-openssl Use OpenSSL. (default=yes)
1380 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1381 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1382 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1383 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1384 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1385 --with-talloc-include-dir=DIR
1386 Directory where the talloc includes may be found
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CXX C++ compiler command
1397 CXXFLAGS C++ compiler flags
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to <http://bugs.freeradius.org>.
1404 freeradius home page: <http://www.freeradius.org>.
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1434 .) # We are building in place.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1467 freeradius configure $Id$
1468 generated by GNU Autoconf 2.69
1470 Copyright (C) 2012 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515 as_fn_set_status $ac_retval
1517 } # ac_fn_c_try_compile
1519 # ac_fn_cxx_try_compile LINENO
1520 # ----------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_cxx_try_compile ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_cxx_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_cxx_try_compile
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i && {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1594 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597 # the include files in INCLUDES and setting the cache variable VAR
1599 ac_fn_c_check_header_mongrel ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if eval \${$3+:} false; then :
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1612 # Is the header compilable?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614 $as_echo_n "checking $2 usability... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_header_compiler=yes
1623 ac_header_compiler=no
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627 $as_echo "$ac_header_compiler" >&6; }
1629 # Is the header present?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631 $as_echo_n "checking $2 presence... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1636 if ac_fn_c_try_cpp "$LINENO"; then :
1637 ac_header_preproc=yes
1639 ac_header_preproc=no
1641 rm -f conftest.err conftest.i conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643 $as_echo "$ac_header_preproc" >&6; }
1645 # So? What about this header?
1646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1657 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1661 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ( $as_echo "## ----------------------------------------- ##
1665 ## Report this to http://bugs.freeradius.org ##
1666 ## ----------------------------------------- ##"
1667 ) | sed "s/^/$as_me: WARNING: /" >&2
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1675 eval "$3=\$ac_header_compiler"
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_mongrel
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile "$LINENO"; then :
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 test -x conftest$ac_exeext
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_c_try_link
1804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1805 # -------------------------------------------
1806 # Tests whether TYPE exists after having included INCLUDES, setting cache
1807 # variable VAR accordingly.
1808 ac_fn_c_check_type ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1842 if ac_fn_c_try_compile "$LINENO"; then :
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 } # ac_fn_c_check_type
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1881 # include <limits.h>
1883 # include <assert.h>
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1910 if ac_fn_c_try_link "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_func
1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926 # ---------------------------------------------
1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929 ac_fn_c_check_decl ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 #ifndef $as_decl_name
1947 (void) $as_decl_use;
1949 (void) $as_decl_name;
1957 if ac_fn_c_try_compile "$LINENO"; then :
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_decl
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1974 It was created by freeradius $as_me $Id$, which was
1975 generated by GNU Autoconf 2.69. Invocation command line was
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_must_keep_next=false
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 -* ) ac_must_keep_next=true ;;
2067 as_fn_append ac_configure_args " '$ac_arg'"
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2089 # The following way of writing the cache mishandles newlines in values,
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2125 for ac_var in $ac_subst_vars
2127 eval ac_val=\$$ac_var
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 $as_echo "$ac_var='\''$ac_val'\''"
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2140 for ac_var in $ac_subst_files
2142 eval ac_val=\$$ac_var
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 $as_echo "$ac_var='\''$ac_val'\''"
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 $as_echo "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1=./$CONFIG_SITE;;
2212 */*) ac_site_file1=$CONFIG_SITE;;
2213 *) ac_site_file1=./$CONFIG_SITE;;
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 test "x$ac_site_file" = xNONE && continue
2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $? "failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 # Check that the precious variables saved in the cache have kept the same
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2327 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2328 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2329 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2331 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2332 -v minor="$RADIUSD_MINOR_VERSION" \
2333 -v incrm="$RADIUSD_INCRM_VERSION" \
2334 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2336 RADIUSD_VERSION_STRING=`cat VERSION`
2341 cat >>confdefs.h <<_ACEOF
2342 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2346 cat >>confdefs.h <<_ACEOF
2347 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2352 # Check whether --enable-developer was given.
2353 if test "${enable_developer+set}" = set; then :
2354 enableval=$enable_developer; case "$enableval" in
2365 if test -d $srcdir/.git; then
2366 if test "x$developer" != "xno"; then
2371 if test "x$developer" = "xyes"; then
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if ${ac_cv_prog_CC+:} false; then :
2390 $as_echo_n "(cached) " >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2415 $as_echo "$CC" >&6; }
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418 $as_echo "no" >&6; }
2423 if test -z "$ac_cv_prog_CC"; then
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2430 $as_echo_n "(cached) " >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_ac_ct_CC="gcc"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2455 $as_echo "$ac_ct_CC" >&6; }
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2461 if test "x$ac_ct_CC" = x; then
2464 case $cross_compiling:$ac_tool_warned in
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468 ac_tool_warned=yes ;;
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}cc; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_CC+:} false; then :
2483 $as_echo_n "(cached) " >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="${ac_tool_prefix}cc"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CC"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2508 $as_echo "$CC" >&6; }
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2517 if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519 set dummy cc; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_CC+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected=yes
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563 if test -n "$CC"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565 $as_echo "$CC" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_CC+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2614 test -n "$CC" && break
2617 if test -z "$CC"; then
2619 for ac_prog in cl.exe
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC="$ac_prog"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651 $as_echo "$ac_ct_CC" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2658 test -n "$ac_ct_CC" && break
2661 if test "x$ac_ct_CC" = x; then
2664 case $cross_compiling:$ac_tool_warned in
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668 ac_tool_warned=yes ;;
2677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error $? "no acceptable C compiler found in \$PATH
2680 See \`config.log' for more details" "$LINENO" 5; }
2682 # Provide some information about the compiler.
2683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2686 for ac_option in --version -v -V -qversion; do
2687 { { ac_try="$ac_compiler $ac_option >&5"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2696 if test -s conftest.err; then
2698 ... rest of stderr output deleted ...
2699 10q' conftest.err >conftest.er1
2700 cat conftest.er1 >&5
2702 rm -f conftest.er1 conftest.err
2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; }
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2724 $as_echo_n "checking whether the C compiler works... " >&6; }
2725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727 # The possible output files:
2728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2731 for ac_file in $ac_files
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 if { { ac_try="$ac_link_default"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746 $as_echo "$ac_try_echo"; } >&5
2747 (eval "$ac_link_default") 2>&5
2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750 test $ac_status = 0; }; then :
2751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2756 for ac_file in $ac_files ''
2758 test -f "$ac_file" || continue
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2763 # We found the default executable, but exeext='' is most
2767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786 if test -z "$ac_file"; then :
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 $as_echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error 77 "C compiler cannot create executables
2795 See \`config.log' for more details" "$LINENO" 5; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798 $as_echo "yes" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2801 $as_echo_n "checking for C compiler default output file name... " >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2803 $as_echo "$ac_file" >&6; }
2804 ac_exeext=$ac_cv_exeext
2806 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2807 ac_clean_files=$ac_clean_files_save
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2809 $as_echo_n "checking for suffix of executables... " >&6; }
2810 if { { ac_try="$ac_link"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2816 $as_echo "$ac_try_echo"; } >&5
2817 (eval "$ac_link") 2>&5
2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2820 test $ac_status = 0; }; then :
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details" "$LINENO" 5; }
2840 rm -f conftest conftest$ac_cv_exeext
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2842 $as_echo "$ac_cv_exeext" >&6; }
2844 rm -f conftest.$ac_ext
2845 EXEEXT=$ac_cv_exeext
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2853 FILE *f = fopen ("conftest.out", "w");
2854 return ferror (f) || fclose (f) != 0;
2860 ac_clean_files="$ac_clean_files conftest.out"
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2864 $as_echo_n "checking whether we are cross compiling... " >&6; }
2865 if test "$cross_compiling" != yes; then
2866 { { ac_try="$ac_link"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_link") 2>&5
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }
2877 if { ac_try='./conftest$ac_cv_exeext'
2878 { { case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_try") 2>&5
2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; }; }; then
2890 if test "$cross_compiling" = maybe; then
2893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895 as_fn_error $? "cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details" "$LINENO" 5; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2902 $as_echo "$cross_compiling" >&6; }
2904 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2905 ac_clean_files=$ac_clean_files_save
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2907 $as_echo_n "checking for suffix of object files... " >&6; }
2908 if ${ac_cv_objext+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912 /* end confdefs.h. */
2922 rm -f conftest.o conftest.obj
2923 if { { ac_try="$ac_compile"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compile") 2>&5
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error $? "cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details" "$LINENO" 5; }
2951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2954 $as_echo "$ac_cv_objext" >&6; }
2955 OBJEXT=$ac_cv_objext
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2959 if ${ac_cv_c_compiler_gnu+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2976 if ac_fn_c_try_compile "$LINENO"; then :
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2987 if test $ac_compiler_gnu = yes; then
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2996 if ${ac_cv_prog_cc_g+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 ac_save_c_werror_flag=$ac_c_werror_flag
3000 ac_c_werror_flag=yes
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3014 if ac_fn_c_try_compile "$LINENO"; then :
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3029 if ac_fn_c_try_compile "$LINENO"; then :
3032 ac_c_werror_flag=$ac_save_c_werror_flag
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3045 if ac_fn_c_try_compile "$LINENO"; then :
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3056 $as_echo "$ac_cv_prog_cc_g" >&6; }
3057 if test "$ac_test_CFLAGS" = set; then
3058 CFLAGS=$ac_save_CFLAGS
3059 elif test $ac_cv_prog_cc_g = yes; then
3060 if test "$GCC" = yes; then
3066 if test "$GCC" = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3074 if ${ac_cv_prog_cc_c89+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 ac_cv_prog_cc_c89=no
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3085 struct buf { int x; };
3086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3087 static char *e (p, i)
3093 static char *f (char * (*g) (char **, int), char **p, ...)
3098 s = g (p, va_arg (v,int));
3103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3104 function prototypes and stuff, but not '\xHH' hex character constants.
3105 These don't provoke an error unfortunately, instead are silently treated
3106 as 'x'. The following induces an error, until -std is added to get
3107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3108 array size at least. It's necessary to write '\x00'==0 to get something
3109 that's true only with -std. */
3110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3113 inside strings and character constants. */
3115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3117 int test (int i, double x);
3118 struct s1 {int (*f) (int a);};
3119 struct s2 {int (*f) (double a);};
3120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3134 CC="$ac_save_CC $ac_arg"
3135 if ac_fn_c_try_compile "$LINENO"; then :
3136 ac_cv_prog_cc_c89=$ac_arg
3138 rm -f core conftest.err conftest.$ac_objext
3139 test "x$ac_cv_prog_cc_c89" != "xno" && break
3141 rm -f conftest.$ac_ext
3146 case "x$ac_cv_prog_cc_c89" in
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3149 $as_echo "none needed" >&6; } ;;
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3152 $as_echo "unsupported" >&6; } ;;
3154 CC="$CC $ac_cv_prog_cc_c89"
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3158 if test "x$ac_cv_prog_cc_c89" != xno; then :
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 ac_cpp='$CXXCPP $CPPFLAGS'
3170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3173 if test -z "$CXX"; then
3174 if test -n "$CCC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CXX+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$CXX"; then
3188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 if test -n "$CXX"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3210 $as_echo "$CXX" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$CXX" && break
3220 if test -z "$CXX"; then
3222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$ac_ct_CXX"; then
3232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CXX="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3252 if test -n "$ac_ct_CXX"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3254 $as_echo "$ac_ct_CXX" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$ac_ct_CXX" && break
3264 if test "x$ac_ct_CXX" = x; then
3267 case $cross_compiling:$ac_tool_warned in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 if test -s conftest.err; then
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3299 rm -f conftest.er1 conftest.err
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3306 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3339 ac_test_CXXFLAGS=${CXXFLAGS+set}
3340 ac_save_CXXFLAGS=$CXXFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3343 if ${ac_cv_prog_cxx_g+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3347 ac_cxx_werror_flag=yes
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3361 if ac_fn_cxx_try_compile "$LINENO"; then :
3362 ac_cv_prog_cxx_g=yes
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 if ac_fn_cxx_try_compile "$LINENO"; then :
3379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_cxx_try_compile "$LINENO"; then :
3393 ac_cv_prog_cxx_g=yes
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3404 if test "$ac_test_CXXFLAGS" = set; then
3405 CXXFLAGS=$ac_save_CXXFLAGS
3406 elif test $ac_cv_prog_cxx_g = yes; then
3407 if test "$GXX" = yes; then
3413 if test "$GXX" = yes; then
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3438 if test -z "$CPP"; then
3439 if ${ac_cv_prog_CPP+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 # Double quotes because CPP needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3466 # Broken: fails on valid input.
3469 rm -f conftest.err conftest.i conftest.$ac_ext
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if ac_fn_c_try_cpp "$LINENO"; then :
3478 # Broken: success on invalid input.
3481 # Passes both tests.
3485 rm -f conftest.err conftest.i conftest.$ac_ext
3488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 rm -f conftest.i conftest.err conftest.$ac_ext
3490 if $ac_preproc_ok; then :
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3503 $as_echo "$CPP" >&6; }
3505 for ac_c_preproc_warn_flag in '' yes
3507 # Use a header file that comes with gcc, so configuring glibc
3508 # with a fresh cross-compiler works.
3509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3510 # <limits.h> exists even on freestanding compilers.
3511 # On the NeXT, cc -E runs the code through the compiler's parser,
3512 # not just through cpp. "Syntax error" is here to catch this case.
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3516 # include <limits.h>
3518 # include <assert.h>
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3525 # Broken: fails on valid input.
3528 rm -f conftest.err conftest.i conftest.$ac_ext
3530 # OK, works on sane cases. Now check whether nonexistent headers
3531 # can be detected and how.
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534 #include <ac_nonexistent.h>
3536 if ac_fn_c_try_cpp "$LINENO"; then :
3537 # Broken: success on invalid input.
3540 # Passes both tests.
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.i conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then :
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3555 See \`config.log' for more details" "$LINENO" 5; }
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3566 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3567 if ${ac_cv_path_GREP+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -z "$GREP"; then
3571 ac_path_GREP_found=false
3572 # Loop through the user's path and test for each of PROGNAME-LIST
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577 test -z "$as_dir" && as_dir=.
3578 for ac_prog in grep ggrep; do
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3581 as_fn_executable_p "$ac_path_GREP" || continue
3582 # Check for GNU ac_path_GREP and select it if it is found.
3583 # Check for GNU $ac_path_GREP
3584 case `"$ac_path_GREP" --version 2>&1` in
3586 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3589 $as_echo_n 0123456789 >"conftest.in"
3592 cat "conftest.in" "conftest.in" >"conftest.tmp"
3593 mv "conftest.tmp" "conftest.in"
3594 cp "conftest.in" "conftest.nl"
3595 $as_echo 'GREP' >> "conftest.nl"
3596 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3598 as_fn_arith $ac_count + 1 && ac_count=$as_val
3599 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3600 # Best one so far, save it but keep looking for a better one
3601 ac_cv_path_GREP="$ac_path_GREP"
3602 ac_path_GREP_max=$ac_count
3604 # 10*(2^10) chars as input seems more than enough
3605 test $ac_count -gt 10 && break
3607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 $ac_path_GREP_found && break 3
3615 if test -z "$ac_cv_path_GREP"; then
3616 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619 ac_cv_path_GREP=$GREP
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3624 $as_echo "$ac_cv_path_GREP" >&6; }
3625 GREP="$ac_cv_path_GREP"
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3629 $as_echo_n "checking for egrep... " >&6; }
3630 if ${ac_cv_path_EGREP+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3634 then ac_cv_path_EGREP="$GREP -E"
3636 if test -z "$EGREP"; then
3637 ac_path_EGREP_found=false
3638 # Loop through the user's path and test for each of PROGNAME-LIST
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643 test -z "$as_dir" && as_dir=.
3644 for ac_prog in egrep; do
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3647 as_fn_executable_p "$ac_path_EGREP" || continue
3648 # Check for GNU ac_path_EGREP and select it if it is found.
3649 # Check for GNU $ac_path_EGREP
3650 case `"$ac_path_EGREP" --version 2>&1` in
3652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655 $as_echo_n 0123456789 >"conftest.in"
3658 cat "conftest.in" "conftest.in" >"conftest.tmp"
3659 mv "conftest.tmp" "conftest.in"
3660 cp "conftest.in" "conftest.nl"
3661 $as_echo 'EGREP' >> "conftest.nl"
3662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3664 as_fn_arith $ac_count + 1 && ac_count=$as_val
3665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3666 # Best one so far, save it but keep looking for a better one
3667 ac_cv_path_EGREP="$ac_path_EGREP"
3668 ac_path_EGREP_max=$ac_count
3670 # 10*(2^10) chars as input seems more than enough
3671 test $ac_count -gt 10 && break
3673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676 $ac_path_EGREP_found && break 3
3681 if test -z "$ac_cv_path_EGREP"; then
3682 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3685 ac_cv_path_EGREP=$EGREP
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3691 $as_echo "$ac_cv_path_EGREP" >&6; }
3692 EGREP="$ac_cv_path_EGREP"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3696 $as_echo_n "checking for ANSI C header files... " >&6; }
3697 if ${ac_cv_header_stdc+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_cv_header_stdc=yes
3718 ac_cv_header_stdc=no
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 if test $ac_cv_header_stdc = yes; then
3723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "memchr" >/dev/null 2>&1; then :
3733 ac_cv_header_stdc=no
3739 if test $ac_cv_header_stdc = yes; then
3740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 $EGREP "free" >/dev/null 2>&1; then :
3750 ac_cv_header_stdc=no
3756 if test $ac_cv_header_stdc = yes; then
3757 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3758 if test "$cross_compiling" = yes; then :
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3765 #if ((' ' & 0x0FF) == 0x020)
3766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3769 # define ISLOWER(c) \
3770 (('a' <= (c) && (c) <= 'i') \
3771 || ('j' <= (c) && (c) <= 'r') \
3772 || ('s' <= (c) && (c) <= 'z'))
3773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3781 for (i = 0; i < 256; i++)
3782 if (XOR (islower (i), ISLOWER (i))
3783 || toupper (i) != TOUPPER (i))
3788 if ac_fn_c_try_run "$LINENO"; then :
3791 ac_cv_header_stdc=no
3793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3794 conftest.$ac_objext conftest.beam conftest.$ac_ext
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3800 $as_echo "$ac_cv_header_stdc" >&6; }
3801 if test $ac_cv_header_stdc = yes; then
3803 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3807 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3809 inttypes.h stdint.h unistd.h
3811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3814 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3815 cat >>confdefs.h <<_ACEOF
3816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3826 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3833 if test "$MINIX" = yes; then
3835 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3838 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3841 $as_echo "#define _MINIX 1" >>confdefs.h
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3847 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3848 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3854 # define __EXTENSIONS__ 1
3855 $ac_includes_default
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_safe_to_define___extensions__=yes
3867 ac_cv_safe_to_define___extensions__=no
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3872 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3873 test $ac_cv_safe_to_define___extensions__ = yes &&
3874 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3876 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3878 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3880 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3882 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3887 if test $ac_cv_c_compiler_gnu = yes; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3889 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3890 if ${ac_cv_prog_gcc_traditional+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 ac_pattern="Autoconf.*'x'"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3901 ac_cv_prog_gcc_traditional=yes
3903 ac_cv_prog_gcc_traditional=no
3908 if test $ac_cv_prog_gcc_traditional = no; then
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3916 ac_cv_prog_gcc_traditional=yes
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3923 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3924 if test $ac_cv_prog_gcc_traditional = yes; then
3925 CC="$CC -traditional"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
3930 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
3931 if ${ac_cv_prog_suncc+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 cat > conftest.c <<EOF
3939 if { ac_try='${CC-cc} -E conftest.c'
3940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
3945 ac_cv_prog_suncc=yes
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
3951 $as_echo "$ac_cv_prog_suncc" >&6; }
3952 if test -n "$ac_tool_prefix"; then
3953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_RANLIB+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if test -n "$RANLIB"; then
3961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 RANLIB=$ac_cv_prog_RANLIB
3981 if test -n "$RANLIB"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3983 $as_echo "$RANLIB" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3991 if test -z "$ac_cv_prog_RANLIB"; then
3992 ac_ct_RANLIB=$RANLIB
3993 # Extract the first word of "ranlib", so it can be a program name with args.
3994 set dummy ranlib; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$ac_ct_RANLIB"; then
4001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_ac_ct_RANLIB="ranlib"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4021 if test -n "$ac_ct_RANLIB"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4023 $as_echo "$ac_ct_RANLIB" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4029 if test "x$ac_ct_RANLIB" = x; then
4032 case $cross_compiling:$ac_tool_warned in
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4036 ac_tool_warned=yes ;;
4038 RANLIB=$ac_ct_RANLIB
4041 RANLIB="$ac_cv_prog_RANLIB"
4045 if test "x$GCC" = "xyes"; then
4046 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4049 # Check whether --enable-largefile was given.
4050 if test "${enable_largefile+set}" = set; then :
4051 enableval=$enable_largefile;
4054 if test "$enable_largefile" != no; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4058 if ${ac_cv_sys_largefile_CC+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 ac_cv_sys_largefile_CC=no
4062 if test "$GCC" != yes; then
4065 # IRIX 6.2 and later do not support large files by default,
4066 # so use the C compiler's -n32 option if that helps.
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4086 if ac_fn_c_try_compile "$LINENO"; then :
4089 rm -f core conftest.err conftest.$ac_objext
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_cv_sys_largefile_CC=' -n32'; break
4094 rm -f core conftest.err conftest.$ac_objext
4098 rm -f conftest.$ac_ext
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4102 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4103 if test "$ac_cv_sys_largefile_CC" != no; then
4104 CC=$CC$ac_cv_sys_largefile_CC
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4108 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4109 if ${ac_cv_sys_file_offset_bits+:} false; then :
4110 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_cv_sys_file_offset_bits=no; break
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #define _FILE_OFFSET_BITS 64
4139 #include <sys/types.h>
4140 /* Check that off_t can represent 2**63 - 1 correctly.
4141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4142 since some C++ compilers masquerading as C compilers
4143 incorrectly reject 9223372036854775807. */
4144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4146 && LARGE_OFF_T % 2147483647 == 1)
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_sys_file_offset_bits=64; break
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_cv_sys_file_offset_bits=unknown
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4165 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4166 case $ac_cv_sys_file_offset_bits in #(
4169 cat >>confdefs.h <<_ACEOF
4170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4175 if test $ac_cv_sys_file_offset_bits = unknown; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4177 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4178 if ${ac_cv_sys_large_files+:} false; then :
4179 $as_echo_n "(cached) " >&6
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #include <sys/types.h>
4185 /* Check that off_t can represent 2**63 - 1 correctly.
4186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4187 since some C++ compilers masquerading as C compilers
4188 incorrectly reject 9223372036854775807. */
4189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4191 && LARGE_OFF_T % 2147483647 == 1)
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_sys_large_files=no; break
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 #define _LARGE_FILES 1
4208 #include <sys/types.h>
4209 /* Check that off_t can represent 2**63 - 1 correctly.
4210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4211 since some C++ compilers masquerading as C compilers
4212 incorrectly reject 9223372036854775807. */
4213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4215 && LARGE_OFF_T % 2147483647 == 1)
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_sys_large_files=1; break
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_cv_sys_large_files=unknown
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4234 $as_echo "$ac_cv_sys_large_files" >&6; }
4235 case $ac_cv_sys_large_files in #(
4238 cat >>confdefs.h <<_ACEOF
4239 #define _LARGE_FILES $ac_cv_sys_large_files
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4251 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4252 if ${ac_cv_c_bigendian+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 ac_cv_c_bigendian=unknown
4256 # See if we're dealing with a universal compiler.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifndef __APPLE_CC__
4260 not a universal capable compiler
4265 if ac_fn_c_try_compile "$LINENO"; then :
4267 # Check for potential -arch flags. It is not universal unless
4268 # there are at least two -arch flags with different values.
4271 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4272 if test -n "$ac_prev"; then
4274 i?86 | x86_64 | ppc | ppc64)
4275 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4278 ac_cv_c_bigendian=universal
4284 elif test "x$ac_word" = "x-arch"; then
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 if test $ac_cv_c_bigendian = unknown; then
4291 # See if sys/param.h defines the BYTE_ORDER macro.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <sys/types.h>
4295 #include <sys/param.h>
4300 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4301 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311 # It does; now see whether it defined to BIG_ENDIAN or not.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <sys/types.h>
4315 #include <sys/param.h>
4320 #if BYTE_ORDER != BIG_ENDIAN
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_cv_c_bigendian=yes
4331 ac_cv_c_bigendian=no
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 if test $ac_cv_c_bigendian = unknown; then
4338 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4346 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 # It does; now see whether it defined to _BIG_ENDIAN or not.
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_c_bigendian=yes
4374 ac_cv_c_bigendian=no
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 if test $ac_cv_c_bigendian = unknown; then
4381 # Compile a test program.
4382 if test "$cross_compiling" = yes; then :
4383 # Try to guess by grepping values from an object file.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 short int ascii_mm[] =
4387 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4388 short int ascii_ii[] =
4389 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4390 int use_ascii (int i) {
4391 return ascii_mm[i] + ascii_ii[i];
4393 short int ebcdic_ii[] =
4394 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4395 short int ebcdic_mm[] =
4396 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4397 int use_ebcdic (int i) {
4398 return ebcdic_mm[i] + ebcdic_ii[i];
4405 return use_ascii (foo) == use_ebcdic (foo);
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4412 ac_cv_c_bigendian=yes
4414 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4415 if test "$ac_cv_c_bigendian" = unknown; then
4416 ac_cv_c_bigendian=no
4418 # finding both strings is unlikely to happen, but who knows?
4419 ac_cv_c_bigendian=unknown
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 $ac_includes_default
4432 /* Are we little or big endian? From Harbison&Steele. */
4436 char c[sizeof (long int)];
4439 return u.c[sizeof (long int) - 1] == 1;
4445 if ac_fn_c_try_run "$LINENO"; then :
4446 ac_cv_c_bigendian=no
4448 ac_cv_c_bigendian=yes
4450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4451 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4457 $as_echo "$ac_cv_c_bigendian" >&6; }
4458 case $ac_cv_c_bigendian in #(
4460 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4466 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4470 as_fn_error $? "unknown endianness
4471 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4475 # Extract the first word of "gmake", so it can be a program name with args.
4476 set dummy gmake; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if ${ac_cv_prog_GMAKE+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 if test -n "$GMAKE"; then
4483 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_GMAKE="yes"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4503 GMAKE=$ac_cv_prog_GMAKE
4504 if test -n "$GMAKE"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4506 $as_echo "$GMAKE" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4513 if test $GMAKE = no; then
4514 # Extract the first word of "make", so it can be a program name with args.
4515 set dummy make; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_path_MAKE+:} false; then :
4519 $as_echo_n "(cached) " >&6
4523 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4545 MAKE=$ac_cv_path_MAKE
4546 if test -n "$MAKE"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4548 $as_echo "$MAKE" >&6; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4556 # Extract the first word of "gmake", so it can be a program name with args.
4557 set dummy gmake; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_path_MAKE+:} false; then :
4561 $as_echo_n "(cached) " >&6
4565 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4587 MAKE=$ac_cv_path_MAKE
4588 if test -n "$MAKE"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4590 $as_echo "$MAKE" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4598 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4599 if test -z "$makever"; then
4600 as_fn_error $? "GNU Make is not installed. Please download and install it
4601 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4604 # Extract the first word of "git", so it can be a program name with args.
4605 set dummy git; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_GIT+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$GIT"; then
4612 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_GIT="yes"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4633 if test -n "$GIT"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4635 $as_echo "$GIT" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4644 # Check whether --enable-strict-dependencies was given.
4645 if test "${enable_strict_dependencies+set}" = set; then :
4646 enableval=$enable_strict_dependencies;
4650 docdir='${datadir}/doc/freeradius'
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
4652 $as_echo_n "checking docdir... " >&6; }
4654 # Check whether --with-docdir was given.
4655 if test "${with_docdir+set}" = set; then :
4656 withval=$with_docdir; case "$withval" in
4662 [\\/$]* | ?:[\\/]* )
4666 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
4674 $as_echo "$docdir" >&6; }
4675 if test "x$docdir" = xno; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
4677 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
4680 logdir='${localstatedir}/log/radius'
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
4682 $as_echo_n "checking logdir... " >&6; }
4684 # Check whether --with-logdir was given.
4685 if test "${with_logdir+set}" = set; then :
4686 withval=$with_logdir; case "$withval" in
4688 as_fn_error $? "Need logdir" "$LINENO" 5
4692 [\\/$]* | ?:[\\/]* )
4696 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
4704 $as_echo "$logdir" >&6; }
4706 radacctdir='${logdir}/radacct'
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
4708 $as_echo_n "checking radacctdir... " >&6; }
4710 # Check whether --with-radacctdir was given.
4711 if test "${with_radacctdir+set}" = set; then :
4712 withval=$with_radacctdir; case "$withval" in
4714 as_fn_error $? "Need radacctdir" "$LINENO" 5
4718 [\\/$]* | ?:[\\/]* )
4719 radacctdir="$withval"
4722 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
4730 $as_echo "$radacctdir" >&6; }
4732 raddbdir='${sysconfdir}/raddb'
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
4734 $as_echo_n "checking raddbdir... " >&6; }
4736 # Check whether --with-raddbdir was given.
4737 if test "${with_raddbdir+set}" = set; then :
4738 withval=$with_raddbdir; case "$withval" in
4740 as_fn_error $? "Need raddbdir" "$LINENO" 5
4744 [\\/$]* | ?:[\\/]* )
4748 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
4756 $as_echo "$raddbdir" >&6; }
4758 WITH_ASCEND_BINARY=yes
4760 # Check whether --with-ascend-binary was given.
4761 if test "${with_ascend_binary+set}" = set; then :
4762 withval=$with_ascend_binary; case "$withval" in
4766 WITH_ASCEND_BINARY=no
4771 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
4773 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
4779 # Check whether --with-threads was given.
4780 if test "${with_threads+set}" = set; then :
4781 withval=$with_threads; case "$withval" in
4793 # Check whether --with-tcp was given.
4794 if test "${with_tcp+set}" = set; then :
4795 withval=$with_tcp; case "$withval" in
4804 if test "x$WITH_TCP" = "xyes"; then
4806 $as_echo "#define WITH_TCP 1" >>confdefs.h
4812 # Check whether --with-vmps was given.
4813 if test "${with_vmps+set}" = set; then :
4814 withval=$with_vmps; case "$withval" in
4823 if test "x$WITH_VMPS" = "xyes"; then
4825 $as_echo "#define WITH_VMPS 1" >>confdefs.h
4831 # Check whether --with-dhcp was given.
4832 if test "${with_dhcp+set}" = set; then :
4833 withval=$with_dhcp; case "$withval" in
4842 if test "x$WITH_DHCP" = "xyes"; then
4844 $as_echo "#define WITH_DHCP 1" >>confdefs.h
4850 # Check whether --with-static_modules was given.
4851 if test "${with_static_modules+set}" = set; then :
4852 withval=$with_static_modules;
4853 for i in $withval; do
4854 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
4862 # Check whether --with-modules was given.
4863 if test "${with_modules+set}" = set; then :
4864 withval=$with_modules;
4865 for i in $withval; do
4866 MODULES="$MODULES $i"
4874 # Check whether --with-experimental-modules was given.
4875 if test "${with_experimental_modules+set}" = set; then :
4876 withval=$with_experimental_modules; case "$withval" in
4891 # Check whether --with-openssl was given.
4892 if test "${with_openssl+set}" = set; then :
4893 withval=$with_openssl; case "$withval" in
4905 OPENSSL_INCLUDE_DIR=
4907 # Check whether --with-openssl-includes was given.
4908 if test "${with_openssl_includes+set}" = set; then :
4909 withval=$with_openssl_includes; case "$withval" in
4910 *) OPENSSL_INCLUDE_DIR="$withval"
4919 # Check whether --with-openssl-libraries was given.
4920 if test "${with_openssl_libraries+set}" = set; then :
4921 withval=$with_openssl_libraries; case "$withval" in
4922 *) OPENSSL_LIB_DIR="$withval"
4931 # Check whether --with-rlm-FOO-lib-dir was given.
4932 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
4933 withval=$with_rlm_FOO_lib_dir; case "$withval" in
4942 # Check whether --with-rlm-FOO-include-dir was given.
4943 if test "${with_rlm_FOO_include_dir+set}" = set; then :
4944 withval=$with_rlm_FOO_include_dir; case "$withval" in
4955 # Check whether --with-udpfromto was given.
4956 if test "${with_udpfromto+set}" = set; then :
4957 withval=$with_udpfromto; case "$withval" in
4968 if test "x$WITH_UDPFROMTO" = "xyes"; then
4970 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
4976 # Extract the first word of "perl", so it can be a program name with args.
4977 set dummy perl; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_path_PERL+:} false; then :
4981 $as_echo_n "(cached) " >&6
4985 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5007 PERL=$ac_cv_path_PERL
5008 if test -n "$PERL"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5010 $as_echo "$PERL" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 if test "x$ac_cv_path_PERL" = "x"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5019 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5021 # Extract the first word of "snmpget", so it can be a program name with args.
5022 set dummy snmpget; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_path_SNMPGET+:} false; then :
5026 $as_echo_n "(cached) " >&6
5030 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 SNMPGET=$ac_cv_path_SNMPGET
5052 if test -n "$SNMPGET"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5054 $as_echo "$SNMPGET" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5061 if test "x$ac_cv_path_SNMPGET" = "x"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5063 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5066 # Extract the first word of "snmpwalk", so it can be a program name with args.
5067 set dummy snmpwalk; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_SNMPWALK+:} false; then :
5071 $as_echo_n "(cached) " >&6
5075 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 SNMPWALK=$ac_cv_path_SNMPWALK
5097 if test -n "$SNMPWALK"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5099 $as_echo "$SNMPWALK" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5108 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5111 # Extract the first word of "rusers", so it can be a program name with args.
5112 set dummy rusers; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_RUSERS+:} false; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5142 RUSERS=$ac_cv_path_RUSERS
5143 if test -n "$RUSERS"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5145 $as_echo "$RUSERS" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5153 missing_dir=`cd $ac_aux_dir && pwd`
5154 # expand $ac_aux_dir to an absolute path
5155 am_aux_dir=`cd $ac_aux_dir && pwd`
5157 if test x"${MISSING+set}" != xset; then
5160 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5162 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5165 # Use eval to expand $SHELL
5166 if eval "$MISSING --run true"; then
5167 am_missing_run="$MISSING --run "
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5171 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5175 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5178 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5184 # Extract the first word of "locate", so it can be a program name with args.
5185 set dummy locate; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_path_LOCATE+:} false; then :
5189 $as_echo_n "(cached) " >&6
5193 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 LOCATE=$ac_cv_path_LOCATE
5215 if test -n "$LOCATE"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5217 $as_echo "$LOCATE" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 # Extract the first word of "dirname", so it can be a program name with args.
5225 set dummy dirname; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_path_DIRNAME+:} false; then :
5229 $as_echo_n "(cached) " >&6
5233 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 DIRNAME=$ac_cv_path_DIRNAME
5255 if test -n "$DIRNAME"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5257 $as_echo "$DIRNAME" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 # Extract the first word of "grep", so it can be a program name with args.
5265 set dummy grep; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_path_GREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5273 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 GREP=$ac_cv_path_GREP
5295 if test -n "$GREP"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5297 $as_echo "$GREP" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5307 if test "x$WITH_THREADS" = "xyes"; then
5308 if test $ac_cv_prog_suncc = "yes"; then
5309 CFLAGS="$CFLAGS -mt"
5312 for ac_header in pthread.h
5314 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5315 if test "x$ac_cv_header_pthread_h" = xyes; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define HAVE_PTHREAD_H 1
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5328 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5329 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 ac_check_lib_save_LIBS=$LIBS
5333 LIBS="-lpthread $LIBS"
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5337 /* Override any GCC internal prototype to avoid an error.
5338 Use char because int might match the return type of a GCC
5339 builtin and then its argument prototype would still apply. */
5343 char pthread_create ();
5347 return pthread_create ();
5352 if ac_fn_c_try_link "$LINENO"; then :
5353 ac_cv_lib_pthread_pthread_create=yes
5355 ac_cv_lib_pthread_pthread_create=no
5357 rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5359 LIBS=$ac_check_lib_save_LIBS
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5362 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5363 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5364 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5365 LIBS="-lpthread $LIBS"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5368 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5369 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5370 $as_echo_n "(cached) " >&6
5372 ac_check_lib_save_LIBS=$LIBS
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5377 /* Override any GCC internal prototype to avoid an error.
5378 Use char because int might match the return type of a GCC
5379 builtin and then its argument prototype would still apply. */
5383 char pthread_create ();
5387 return pthread_create ();
5392 if ac_fn_c_try_link "$LINENO"; then :
5393 ac_cv_lib_c_r_pthread_create=yes
5395 ac_cv_lib_c_r_pthread_create=no
5397 rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5399 LIBS=$ac_check_lib_save_LIBS
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5402 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5403 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5404 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5415 if test "x$WITH_THREADS" != "xyes"; then
5417 ac_cv_header_pthread_h="no"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5422 $as_echo_n "checking for library containing sem_init... " >&6; }
5423 if ${ac_cv_search_sem_init+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 ac_func_search_save_LIBS=$LIBS
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 /* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
5445 for ac_lib in '' pthread sem posix4 rt semaphore; do
5446 if test -z "$ac_lib"; then
5447 ac_res="none required"
5450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5452 if ac_fn_c_try_link "$LINENO"; then :
5453 ac_cv_search_sem_init=$ac_res
5455 rm -f core conftest.err conftest.$ac_objext \
5457 if ${ac_cv_search_sem_init+:} false; then :
5461 if ${ac_cv_search_sem_init+:} false; then :
5464 ac_cv_search_sem_init=no
5467 LIBS=$ac_func_search_save_LIBS
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5470 $as_echo "$ac_cv_search_sem_init" >&6; }
5471 ac_res=$ac_cv_search_sem_init
5472 if test "$ac_res" != no; then :
5473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5476 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
5482 if test "x$WITH_THREADS" = "xyes"; then
5484 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5490 if ${ac_cv_lib_dl_dlopen+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 ac_check_lib_save_LIBS=$LIBS
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5498 /* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
5513 if ac_fn_c_try_link "$LINENO"; then :
5514 ac_cv_lib_dl_dlopen=yes
5516 ac_cv_lib_dl_dlopen=no
5518 rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520 LIBS=$ac_check_lib_save_LIBS
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5525 cat >>confdefs.h <<_ACEOF
5526 #define HAVE_LIBDL 1
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5535 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5536 if ${ac_cv_lib_socket_getsockname+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 ac_check_lib_save_LIBS=$LIBS
5540 LIBS="-lsocket $LIBS"
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5544 /* Override any GCC internal prototype to avoid an error.
5545 Use char because int might match the return type of a GCC
5546 builtin and then its argument prototype would still apply. */
5550 char getsockname ();
5554 return getsockname ();
5559 if ac_fn_c_try_link "$LINENO"; then :
5560 ac_cv_lib_socket_getsockname=yes
5562 ac_cv_lib_socket_getsockname=no
5564 rm -f core conftest.err conftest.$ac_objext \
5565 conftest$ac_exeext conftest.$ac_ext
5566 LIBS=$ac_check_lib_save_LIBS
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5569 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5570 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define HAVE_LIBSOCKET 1
5575 LIBS="-lsocket $LIBS"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5581 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5582 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5583 $as_echo_n "(cached) " >&6
5585 ac_check_lib_save_LIBS=$LIBS
5586 LIBS="-lresolv $LIBS"
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5590 /* Override any GCC internal prototype to avoid an error.
5591 Use char because int might match the return type of a GCC
5592 builtin and then its argument prototype would still apply. */
5600 return inet_aton ();
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 ac_cv_lib_resolv_inet_aton=yes
5608 ac_cv_lib_resolv_inet_aton=no
5610 rm -f core conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_check_lib_save_LIBS
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5615 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5616 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5617 cat >>confdefs.h <<_ACEOF
5618 #define HAVE_LIBRESOLV 1
5621 LIBS="-lresolv $LIBS"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5627 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5628 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 ac_check_lib_save_LIBS=$LIBS
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5636 /* Override any GCC internal prototype to avoid an error.
5637 Use char because int might match the return type of a GCC
5638 builtin and then its argument prototype would still apply. */
5646 return inet_ntoa ();
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 ac_cv_lib_nsl_inet_ntoa=yes
5654 ac_cv_lib_nsl_inet_ntoa=no
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 LIBS=$ac_check_lib_save_LIBS
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5661 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5662 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5663 cat >>confdefs.h <<_ACEOF
5664 #define HAVE_LIBNSL 1
5673 if test "x$WITH_OPENSSL" = xyes; then
5675 old_LDFLAGS="$LDFLAGS"
5676 if test "x$OPENSSL_LIB_DIR" != "x"; then
5677 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
5680 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
5681 if ${ac_cv_lib_crypto_DH_new+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 ac_check_lib_save_LIBS=$LIBS
5685 LIBS="-lcrypto $LIBS"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5689 /* Override any GCC internal prototype to avoid an error.
5690 Use char because int might match the return type of a GCC
5691 builtin and then its argument prototype would still apply. */
5704 if ac_fn_c_try_link "$LINENO"; then :
5705 ac_cv_lib_crypto_DH_new=yes
5707 ac_cv_lib_crypto_DH_new=no
5709 rm -f core conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 LIBS=$ac_check_lib_save_LIBS
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
5714 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
5715 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
5717 LIBS="-lcrypto $LIBS"
5719 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5722 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5723 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 ac_check_lib_save_LIBS=$LIBS
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5731 /* Override any GCC internal prototype to avoid an error.
5732 Use char because int might match the return type of a GCC
5733 builtin and then its argument prototype would still apply. */
5746 if ac_fn_c_try_link "$LINENO"; then :
5747 ac_cv_lib_ssl_SSL_new=yes
5749 ac_cv_lib_ssl_SSL_new=no
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 LIBS=$ac_check_lib_save_LIBS
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5756 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5757 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5760 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
5762 if test "x$OPENSSL_LIB_DIR" != "x"; then
5763 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
5765 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
5773 LDFLAGS="$old_LDFLAGS"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
5777 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
5778 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 ac_check_lib_save_LIBS=$LIBS
5782 LIBS="-lws2_32 $LIBS"
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5786 /* Override any GCC internal prototype to avoid an error.
5787 Use char because int might match the return type of a GCC
5788 builtin and then its argument prototype would still apply. */
5801 if ac_fn_c_try_link "$LINENO"; then :
5802 ac_cv_lib_ws2_32_htonl=yes
5804 ac_cv_lib_ws2_32_htonl=no
5806 rm -f core conftest.err conftest.$ac_objext \
5807 conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
5811 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
5812 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_LIBWS2_32 1
5817 LIBS="-lws2_32 $LIBS"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
5824 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
5825 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
5826 $as_echo_n "(cached) " >&6
5828 ac_check_lib_save_LIBS=$LIBS
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5833 /* Override any GCC internal prototype to avoid an error.
5834 Use char because int might match the return type of a GCC
5835 builtin and then its argument prototype would still apply. */
5839 char pcap_open_live ();
5843 return pcap_open_live ();
5848 if ac_fn_c_try_link "$LINENO"; then :
5849 ac_cv_lib_pcap_pcap_open_live=yes
5851 ac_cv_lib_pcap_pcap_open_live=no
5853 rm -f core conftest.err conftest.$ac_objext \
5854 conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_check_lib_save_LIBS
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
5858 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
5859 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
5862 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
5867 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
5873 $as_echo_n "checking for a readline compatible library... " >&6; }
5874 if ${vl_cv_lib_readline+:} false; then :
5875 $as_echo_n "(cached) " >&6
5879 for readline_lib in readline edit editline; do
5880 for termcap_lib in "" termcap curses ncurses; do
5881 if test -z "$termcap_lib"; then
5882 TRY_LIB="-l$readline_lib"
5884 TRY_LIB="-l$readline_lib -l$termcap_lib"
5886 LIBS="$ORIG_LIBS $TRY_LIB"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5890 /* Override any GCC internal prototype to avoid an error.
5891 Use char because int might match the return type of a GCC
5892 builtin and then its argument prototype would still apply. */
5905 if ac_fn_c_try_link "$LINENO"; then :
5906 vl_cv_lib_readline="$TRY_LIB"
5908 rm -f core conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5910 if test -n "$vl_cv_lib_readline"; then
5911 LIBREADLINE="$TRY_LIB"
5915 if test -n "$vl_cv_lib_readline"; then
5919 if test -z "$vl_cv_lib_readline"; then
5920 vl_cv_lib_readline="no"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
5926 $as_echo "$vl_cv_lib_readline" >&6; }
5928 if test "$vl_cv_lib_readline" != "no"; then
5930 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
5932 for ac_header in readline.h readline/readline.h
5934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
5946 $as_echo_n "checking whether readline supports history... " >&6; }
5947 if ${vl_cv_lib_readline_history+:} false; then :
5948 $as_echo_n "(cached) " >&6
5951 vl_cv_lib_readline_history="no"
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5955 /* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5961 char add_history ();
5965 return add_history ();
5970 if ac_fn_c_try_link "$LINENO"; then :
5971 vl_cv_lib_readline_history="yes"
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
5978 $as_echo "$vl_cv_lib_readline_history" >&6; }
5979 if test "$vl_cv_lib_readline_history" = "yes"; then
5981 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
5983 for ac_header in history.h readline/history.h
5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6004 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6007 CFLAGS="$CFLAGS -DDARWIN"
6008 LIBS="-framework DirectoryService $LIBS"
6013 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6014 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6016 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6017 if eval \${$as_ac_Header+:} false; then :
6018 $as_echo_n "(cached) " >&6
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #include <sys/types.h>
6034 if ac_fn_c_try_compile "$LINENO"; then :
6035 eval "$as_ac_Header=yes"
6037 eval "$as_ac_Header=no"
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 eval ac_res=\$$as_ac_Header
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6043 $as_echo "$ac_res" >&6; }
6044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6045 cat >>confdefs.h <<_ACEOF
6046 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6049 ac_header_dirent=$ac_hdr; break
6053 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6054 if test $ac_header_dirent = dirent.h; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6056 $as_echo_n "checking for library containing opendir... " >&6; }
6057 if ${ac_cv_search_opendir+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 ac_func_search_save_LIBS=$LIBS
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6064 /* Override any GCC internal prototype to avoid an error.
6065 Use char because int might match the return type of a GCC
6066 builtin and then its argument prototype would still apply. */
6079 for ac_lib in '' dir; do
6080 if test -z "$ac_lib"; then
6081 ac_res="none required"
6084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 ac_cv_search_opendir=$ac_res
6089 rm -f core conftest.err conftest.$ac_objext \
6091 if ${ac_cv_search_opendir+:} false; then :
6095 if ${ac_cv_search_opendir+:} false; then :
6098 ac_cv_search_opendir=no
6101 LIBS=$ac_func_search_save_LIBS
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6104 $as_echo "$ac_cv_search_opendir" >&6; }
6105 ac_res=$ac_cv_search_opendir
6106 if test "$ac_res" != no; then :
6107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6113 $as_echo_n "checking for library containing opendir... " >&6; }
6114 if ${ac_cv_search_opendir+:} false; then :
6115 $as_echo_n "(cached) " >&6
6117 ac_func_search_save_LIBS=$LIBS
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6121 /* Override any GCC internal prototype to avoid an error.
6122 Use char because int might match the return type of a GCC
6123 builtin and then its argument prototype would still apply. */
6136 for ac_lib in '' x; do
6137 if test -z "$ac_lib"; then
6138 ac_res="none required"
6141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6143 if ac_fn_c_try_link "$LINENO"; then :
6144 ac_cv_search_opendir=$ac_res
6146 rm -f core conftest.err conftest.$ac_objext \
6148 if ${ac_cv_search_opendir+:} false; then :
6152 if ${ac_cv_search_opendir+:} false; then :
6155 ac_cv_search_opendir=no
6158 LIBS=$ac_func_search_save_LIBS
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6161 $as_echo "$ac_cv_search_opendir" >&6; }
6162 ac_res=$ac_cv_search_opendir
6163 if test "$ac_res" != no; then :
6164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6171 $as_echo_n "checking for ANSI C header files... " >&6; }
6172 if ${ac_cv_header_stdc+:} false; then :
6173 $as_echo_n "(cached) " >&6
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_cv_header_stdc=yes
6193 ac_cv_header_stdc=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 if test $ac_cv_header_stdc = yes; then
6198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6205 $EGREP "memchr" >/dev/null 2>&1; then :
6208 ac_cv_header_stdc=no
6214 if test $ac_cv_header_stdc = yes; then
6215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222 $EGREP "free" >/dev/null 2>&1; then :
6225 ac_cv_header_stdc=no
6231 if test $ac_cv_header_stdc = yes; then
6232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6233 if test "$cross_compiling" = yes; then :
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6240 #if ((' ' & 0x0FF) == 0x020)
6241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6244 # define ISLOWER(c) \
6245 (('a' <= (c) && (c) <= 'i') \
6246 || ('j' <= (c) && (c) <= 'r') \
6247 || ('s' <= (c) && (c) <= 'z'))
6248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6256 for (i = 0; i < 256; i++)
6257 if (XOR (islower (i), ISLOWER (i))
6258 || toupper (i) != TOUPPER (i))
6263 if ac_fn_c_try_run "$LINENO"; then :
6266 ac_cv_header_stdc=no
6268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6269 conftest.$ac_objext conftest.beam conftest.$ac_ext
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6275 $as_echo "$ac_cv_header_stdc" >&6; }
6276 if test $ac_cv_header_stdc = yes; then
6278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6284 if ${ac_cv_header_time+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <sys/types.h>
6290 #include <sys/time.h>
6296 if ((struct tm *) 0)
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 ac_cv_header_time=yes
6305 ac_cv_header_time=no
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6310 $as_echo "$ac_cv_header_time" >&6; }
6311 if test $ac_cv_header_time = yes; then
6313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6318 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6319 if ${ac_cv_header_sys_wait_h+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <sys/types.h>
6325 #include <sys/wait.h>
6327 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6330 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6338 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 ac_cv_header_sys_wait_h=yes
6346 ac_cv_header_sys_wait_h=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6351 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6352 if test $ac_cv_header_sys_wait_h = yes; then
6354 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6404 cat >>confdefs.h <<_ACEOF
6405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6413 for ac_header in net/if.h
6415 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6416 # include <sys/socket.h>
6420 if test "x$ac_cv_header_net_if_h" = xyes; then :
6421 cat >>confdefs.h <<_ACEOF
6422 #define HAVE_NET_IF_H 1
6431 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6432 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6434 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6439 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6441 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6446 LIBS="$LIBS -lpcreposix"
6449 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6450 if test "x$ac_cv_header_regex_h" = xyes; then :
6452 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6457 if test "x$ac_cv_header_regex_h" = "xyes"; then
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470 $EGREP "yes" >/dev/null 2>&1; then :
6472 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6484 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6487 $as_echo "#define OSFC2 /**/" >>confdefs.h
6491 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6494 $as_echo "#define OSFSIA /**/" >>confdefs.h
6498 OPENSSL_INCLUDE="-DNO_OPENSSL"
6499 if test "x$WITH_OPENSSL" = xyes; then
6500 if test "x$OPENSSL_LIBS" = "x"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
6502 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
6504 old_CPPFLAGS=$CPPFLAGS
6505 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6506 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6508 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6523 cat >>confdefs.h <<_ACEOF
6524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 if test "x$OPENSSL_LIBS" != "x"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6536 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <openssl/crypto.h>
6540 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6546 $EGREP "yes" >/dev/null 2>&1; then :
6551 if test "x$goodssl" != "xyes"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6558 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6559 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6561 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6565 CPPFLAGS=$old_CPPFLAGS
6572 if test "x$PCAP_LIBS" = x; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6574 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6576 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6577 if test "x$ac_cv_header_pcap_h" = xyes; then :
6579 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
6584 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6591 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6592 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6593 $as_echo_n "(cached) " >&6
6595 ac_check_lib_save_LIBS=$LIBS
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 /* Override any GCC internal prototype to avoid an error.
6601 Use char because int might match the return type of a GCC
6602 builtin and then its argument prototype would still apply. */
6606 char pcap_fopen_offline ();
6610 return pcap_fopen_offline ();
6615 if ac_fn_c_try_link "$LINENO"; then :
6616 ac_cv_lib_pcap_pcap_fopen_offline=yes
6618 ac_cv_lib_pcap_pcap_fopen_offline=no
6620 rm -f core conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 LIBS=$ac_check_lib_save_LIBS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
6625 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
6626 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
6628 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
6634 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
6635 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
6636 $as_echo_n "(cached) " >&6
6638 ac_check_lib_save_LIBS=$LIBS
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 /* Override any GCC internal prototype to avoid an error.
6644 Use char because int might match the return type of a GCC
6645 builtin and then its argument prototype would still apply. */
6649 char pcap_dump_fopen ();
6653 return pcap_dump_fopen ();
6658 if ac_fn_c_try_link "$LINENO"; then :
6659 ac_cv_lib_pcap_pcap_dump_fopen=yes
6661 ac_cv_lib_pcap_pcap_dump_fopen=no
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6665 LIBS=$ac_check_lib_save_LIBS
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
6668 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
6669 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
6671 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
6680 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6681 if test "x$ac_cv_type_off_t" = xyes; then :
6685 cat >>confdefs.h <<_ACEOF
6686 #define off_t long int
6691 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6692 if test "x$ac_cv_type_pid_t" = xyes; then :
6696 cat >>confdefs.h <<_ACEOF
6702 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6703 if test "x$ac_cv_type_size_t" = xyes; then :
6707 cat >>confdefs.h <<_ACEOF
6708 #define size_t unsigned int
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6714 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6715 if ${ac_cv_type_uid_t+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 #include <sys/types.h>
6723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6724 $EGREP "uid_t" >/dev/null 2>&1; then :
6725 ac_cv_type_uid_t=yes
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6733 $as_echo "$ac_cv_type_uid_t" >&6; }
6734 if test $ac_cv_type_uid_t = no; then
6736 $as_echo "#define uid_t int" >>confdefs.h
6739 $as_echo "#define gid_t int" >>confdefs.h
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6746 $as_echo_n "checking for socklen_t... " >&6; }
6747 if ${ac_cv_type_socklen_t+:} false; then :
6748 $as_echo_n "(cached) " >&6
6750 ac_cv_type_socklen_t=no
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #ifdef HAVE_SYS_TYPES_H
6754 #include <sys/types.h>
6756 #ifdef HAVE_SYS_SOCKET_H
6757 #include <sys/socket.h>
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_type_socklen_t=yes
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6776 $as_echo "$ac_cv_type_socklen_t" >&6; }
6778 if test "$ac_cv_type_socklen_t" != "yes"; then
6780 $as_echo "#define socklen_t int" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6787 $as_echo_n "checking for uint8_t... " >&6; }
6788 if ${ac_cv_type_uint8_t+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 ac_cv_type_uint8_t=no
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 #ifdef HAVE_INTTYPES_H
6795 #include <inttypes.h>
6797 #ifdef HAVE_STDINT_H
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 ac_cv_type_uint8_t=yes
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
6817 $as_echo "$ac_cv_type_uint8_t" >&6; }
6819 if test "$ac_cv_type_uint8_t" != "yes"; then
6821 $as_echo "#define uint8_t unsigned char" >>confdefs.h
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
6828 $as_echo_n "checking for uint16_t... " >&6; }
6829 if ${ac_cv_type_uint16_t+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 ac_cv_type_uint16_t=no
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #ifdef HAVE_INTTYPES_H
6836 #include <inttypes.h>
6838 #ifdef HAVE_STDINT_H
6850 if ac_fn_c_try_compile "$LINENO"; then :
6851 ac_cv_type_uint16_t=yes
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
6858 $as_echo "$ac_cv_type_uint16_t" >&6; }
6860 if test "$ac_cv_type_uint16_t" != "yes"; then
6862 $as_echo "#define uint16_t unsigned short" >>confdefs.h
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
6869 $as_echo_n "checking for uint32_t... " >&6; }
6870 if ${ac_cv_type_uint32_t+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 ac_cv_type_uint32_t=no
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 #ifdef HAVE_INTTYPES_H
6877 #include <inttypes.h>
6879 #ifdef HAVE_STDINT_H
6891 if ac_fn_c_try_compile "$LINENO"; then :
6892 ac_cv_type_uint32_t=yes
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
6899 $as_echo "$ac_cv_type_uint32_t" >&6; }
6901 if test "$ac_cv_type_uint32_t" != "yes"; then
6903 $as_echo "#define uint32_t unsigned int" >>confdefs.h
6908 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
6909 #ifdef HAVE_NETINET_IN_H
6910 #include <netinet/in.h>
6914 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
6916 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
6921 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
6922 #ifdef HAVE_NETINET_IN_H
6923 #include <netinet/in.h>
6925 #ifdef HAVE_SYS_SOCKET_H
6926 #include <sys/socket.h>
6930 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
6932 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
6937 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
6938 #ifdef HAVE_NETINET_IN_H
6939 #include <netinet/in.h>
6943 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
6945 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
6950 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
6951 #ifdef HAVE_SYS_TYPES_H
6952 #include <sys/types.h>
6954 #ifdef HAVE_SYS_SOCKET_H
6955 #include <sys/socket.h>
6962 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
6964 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7007 cat >>confdefs.h <<_ACEOF
7008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
7025 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
7026 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7034 #ifdef HAVE_UNISTD_H
7043 #ifdef HAVE_RESOURCE_H
7044 #include <resource.h>
7046 #ifdef HAVE_GETOPT_H
7049 #ifdef HAVE_MALLOC_H
7058 #ifdef HAVE_SYS_SELECT_H
7059 #include <sys/select.h>
7067 #ifdef HAVE_SYSLOG_H
7070 #ifdef HAVE_INTTYPES_H
7071 #include <inttypes.h>
7073 #ifdef HAVE_STDINT_H
7076 #ifdef HAVE_ARPA_INET_H
7077 #include <arpa/inet.h>
7083 char *(*pfn) = (char *(*)) $ac_func
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 eval "radius_cv_decl_needed_$ac_func=no"
7091 eval "radius_cv_decl_needed_$ac_func=yes"
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7098 $as_echo "yes" >&6; }
7099 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7100 cat >>confdefs.h <<_ACEOF
7101 #define $radius_tr_decl 1
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7113 $as_echo_n "checking return type of signal handlers... " >&6; }
7114 if ${ac_cv_type_signal+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7125 return *(signal (0, 0)) (0) == 1;
7130 if ac_fn_c_try_compile "$LINENO"; then :
7131 ac_cv_type_signal=int
7133 ac_cv_type_signal=void
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7138 $as_echo "$ac_cv_type_signal" >&6; }
7140 cat >>confdefs.h <<_ACEOF
7141 #define RETSIGTYPE $ac_cv_type_signal
7146 if test "x$ac_cv_header_utmpx_h" = "xyes"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7150 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7157 #ifdef HAVE_STDDEF_H
7161 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7167 int foo = offsetof(struct utmpx, ut_xtime)
7172 if ac_fn_c_try_compile "$LINENO"; then :
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7180 if test "x$has_element" != "x"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7182 $as_echo "yes" >&6; }
7183 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7190 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7193 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7200 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7206 #include <netinet/in.h>
7207 #ifdef HAVE_STDDEF_H
7211 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7217 int foo = offsetof(struct in_pktinfo, ipi_addr)
7222 if ac_fn_c_try_compile "$LINENO"; then :
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7230 if test "x$has_element" != "x"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7232 $as_echo "yes" >&6; }
7233 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7240 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7243 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7249 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7255 #include <netinet/in.h>
7256 #ifdef HAVE_STDDEF_H
7260 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7266 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7271 if ac_fn_c_try_compile "$LINENO"; then :
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7279 if test "x$has_element" != "x"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7282 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7289 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
7292 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7298 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7299 if ${ac_cv_c_const+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7310 /* Ultrix mips cc rejects this sort of thing. */
7311 typedef int charset[2];
7312 const charset cs = { 0, 0 };
7313 /* SunOS 4.1.1 cc rejects this. */
7314 char const *const *pcpcc;
7316 /* NEC SVR4.0.2 mips cc rejects this. */
7317 struct point {int x, y;};
7318 static struct point const zero = {0,0};
7319 /* AIX XL C 1.02.0.0 rejects this.
7320 It does not let you subtract one const X* pointer from another in
7321 an arm of an if-expression whose if-part is not a constant
7323 const char *g = "string";
7324 pcpcc = &g + (g ? g-g : 0);
7325 /* HPUX 7.0 cc rejects these. */
7327 ppc = (char**) pcpcc;
7328 pcpcc = (char const *const *) ppc;
7329 { /* SCO 3.2v4 cc rejects this sort of thing. */
7332 char const *s = 0 ? (char *) 0 : (char const *) 0;
7337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7339 const int *foo = &x[0];
7342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7343 typedef const int *iptr;
7347 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7349 struct s { int j; const int *ap[3]; } bx;
7350 struct s *b = &bx; b->j = 5;
7352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7356 return !cs[0] && !zero.x;
7363 if ac_fn_c_try_compile "$LINENO"; then :
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7371 $as_echo "$ac_cv_c_const" >&6; }
7372 if test $ac_cv_c_const = no; then
7374 $as_echo "#define const /**/" >>confdefs.h
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7380 $as_echo_n "checking type of OS... " >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7383 $as_echo "$OS" >&6; }
7384 if test "$OS" = "OS/2"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
7392 $as_echo_n "checking for developer gcc flags... " >&6; }
7395 if test "x$developer" = "xyes"; then
7396 if test "x$GCC" = "xyes"; then
7397 devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wformat=2"
7398 CFLAGS="$CFLAGS $devflags"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
7401 $as_echo "yes. Using $devflags" >&6; }
7404 if test "x$EXPERIMENTAL" != "xno"; then
7409 CFLAGS="$CFLAGS -DNDEBUG"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7412 $as_echo "no." >&6; }
7417 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7418 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7420 cat >>confdefs.h <<_ACEOF
7421 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7428 $as_echo_n "checking for TLS... " >&6; }
7429 if test "$cross_compiling" = yes; then :
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7436 if ac_fn_c_try_run "$LINENO"; then :
7441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7442 conftest.$ac_objext conftest.beam conftest.$ac_ext
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7446 $as_echo "$have_tls" >&6; }
7447 if test "$have_tls" = "yes"; then
7449 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7457 # Check whether --with-talloc-include-dir was given.
7458 if test "${with_talloc_include_dir+set}" = set; then :
7459 withval=$with_talloc_include_dir; case "$withval" in
7461 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7466 talloc_include_dir="$withval"
7473 smart_try_dir="$talloc_include_dir"
7476 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7478 $as_echo_n "checking for talloc.h... " >&6; }
7480 old_CFLAGS="$CFLAGS"
7484 if test "x$smart_try_dir" != "x"; then
7485 for try in $smart_try_dir; do
7486 CFLAGS="$old_CFLAGS -I$try"
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 smart_include="-I$try"
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 if test "x$smart_include" != "x"; then
7509 CFLAGS="$old_CFLAGS"
7512 if test "x$smart_include" = "x"; then
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7525 if ac_fn_c_try_compile "$LINENO"; then :
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 if test "x$smart_include" = "x"; then
7536 if test "x$LOCATE" != "x"; then
7540 for x in `${LOCATE} $file 2>/dev/null`; do
7541 base=`echo $x | sed "s%/${file}%%"`
7542 if test "x$x" = "x$base"; then
7546 dir=`${DIRNAME} $x 2>/dev/null`
7547 exclude=`echo ${dir} | ${GREP} /home`
7548 if test "x$exclude" != "x"; then
7552 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7553 if test "x$already" = "x"; then
7559 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7562 for try in $smart_include_dir /usr/local/include /opt/include; do
7563 CFLAGS="$old_CFLAGS -I$try"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 smart_include="-I$try"
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 if test "x$smart_include" != "x"; then
7586 CFLAGS="$old_CFLAGS"
7589 if test "x$smart_include" != "x"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7591 $as_echo "yes" >&6; }
7592 eval "ac_cv_header_$ac_safe=yes"
7593 CFLAGS="$old_CFLAGS $smart_include"
7594 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7600 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7602 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7603 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7605 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7606 LIBS="-ltalloc ${LIBS}"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7610 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7611 if ${ac_cv_lib_crypt_crypt+:} false; then :
7612 $as_echo_n "(cached) " >&6
7614 ac_check_lib_save_LIBS=$LIBS
7615 LIBS="-lcrypt $LIBS"
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7619 /* Override any GCC internal prototype to avoid an error.
7620 Use char because int might match the return type of a GCC
7621 builtin and then its argument prototype would still apply. */
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 ac_cv_lib_crypt_crypt=yes
7637 ac_cv_lib_crypt_crypt=no
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 LIBS=$ac_check_lib_save_LIBS
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7644 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7645 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7650 if test "$CRYPTLIB" != ""; then
7652 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7655 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7656 if test "x$ac_cv_func_crypt" = xyes; then :
7658 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
7665 $as_echo_n "checking for setkey in -lcipher... " >&6; }
7666 if ${ac_cv_lib_cipher_setkey+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 ac_check_lib_save_LIBS=$LIBS
7670 LIBS="-lcipher $LIBS"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7674 /* Override any GCC internal prototype to avoid an error.
7675 Use char because int might match the return type of a GCC
7676 builtin and then its argument prototype would still apply. */
7689 if ac_fn_c_try_link "$LINENO"; then :
7690 ac_cv_lib_cipher_setkey=yes
7692 ac_cv_lib_cipher_setkey=no
7694 rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_check_lib_save_LIBS
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
7699 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
7700 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
7701 CRYPTLIB="${CRYPTLIB} -lcipher"
7708 $as_echo "#define GNUSTYLE 1" >>confdefs.h
7711 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
7714 $as_echo "#define BSDSTYLE 3" >>confdefs.h
7716 gethostbyaddrrstyle=""
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
7718 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
7721 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
7727 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
7736 if test $ac_have_decl = 1; then :
7741 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7743 gethostbyaddrrstyle=BSD
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
7745 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
7751 if test "x$gethostbyaddrrstyle" = "x"; then
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7761 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
7766 if ac_fn_c_try_link "$LINENO"; then :
7769 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
7771 gethostbyaddrrstyle=GNU
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7777 if test "x$gethostbyaddrrstyle" = "x"; then
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7787 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
7792 if ac_fn_c_try_link "$LINENO"; then :
7795 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
7797 gethostbyaddrrstyle=SYSV
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7803 if test "x$gethostbyaddrrstyle" = "x"; then
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7813 gethostbyaddr(NULL, 0, 0)
7818 if ac_fn_c_try_link "$LINENO"; then :
7821 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7823 gethostbyaddrrstyle=BSD
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7830 if test "x$gethostbyaddrrstyle" = "x"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7832 $as_echo "none! It must not exist, here." >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
7835 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
7838 if test "x$gethostbyaddrrstyle" = "xBSD"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
7840 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
7843 gethostbynamerstyle=""
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
7845 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7855 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
7860 if ac_fn_c_try_link "$LINENO"; then :
7863 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
7865 gethostbynamerstyle=GNU
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 if test "x$gethostbynamerstyle" = "x"; then
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7880 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
7885 if ac_fn_c_try_link "$LINENO"; then :
7888 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
7890 gethostbynamerstyle=SYSV
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7896 if test "x$gethostbynamerstyle" = "x"; then
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7911 if ac_fn_c_try_link "$LINENO"; then :
7914 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
7916 gethostbynamerstyle=BSD
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7923 if test "x$gethostbynamerstyle" = "x"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7925 $as_echo "none! It must not exist, here." >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
7928 $as_echo "${gethostbynamerstyle}-style" >&6; }
7931 if test "x$gethostbynamerstyle" = "xBSD"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
7933 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
7937 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
7940 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
7944 $as_echo_n "checking ctime_r() syntax... " >&6; }
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7953 ctime_r(NULL, NULL, 0)
7958 if ac_fn_c_try_link "$LINENO"; then :
7961 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
7963 ctimerstyle="SOLARIS"
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 if test "x$ctimerstyle" = "x"; then
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7982 if ac_fn_c_try_link "$LINENO"; then :
7985 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7994 if test "x$ctimerstyle" = "x"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7996 $as_echo "none! It must not exist, here." >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
7999 $as_echo "${ctimerstyle}-style" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8009 $as_echo "top_builddir=$top_builddir" >&6; }
8015 if test "x$EXPERIMENTAL" = "xyes"; then
8016 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8017 MODULES="$MODULES $foo"
8020 for foo in `cat "${srcdir}"/src/modules/stable`; do
8021 MODULES="$MODULES $foo"
8026 for bar in $MODULES; do
8027 if test -f "${srcdir}"/src/modules/$bar/configure; then
8028 mysubdirs="$mysubdirs src/modules/$bar"
8033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8034 if test -f "$ac_dir/install-sh"; then
8036 ac_install_sh="$ac_aux_dir/install-sh -c"
8038 elif test -f "$ac_dir/install.sh"; then
8040 ac_install_sh="$ac_aux_dir/install.sh -c"
8042 elif test -f "$ac_dir/shtool"; then
8044 ac_install_sh="$ac_aux_dir/shtool install -c"
8048 if test -z "$ac_aux_dir"; then
8049 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
8052 # These three variables are undocumented and unsupported,
8053 # and are intended to be withdrawn in a future Autoconf release.
8054 # They can cause serious problems if a builder's source tree is in a directory
8055 # whose full name contains unusual characters.
8056 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8057 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8058 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8063 subdirs="$subdirs $mysubdirs"
8068 ac_config_commands="$ac_config_commands stamp-h"
8070 ac_config_commands="$ac_config_commands build-radpaths-h"
8072 ac_config_commands="$ac_config_commands main-chmod"
8074 ac_config_commands="$ac_config_commands scripts-chmod"
8080 USE_SHARED_LIBS=$enable_shared
8082 USE_STATIC_LIBS=$enable_static
8087 unset ac_cv_env_LIBS_set
8088 unset ac_cv_env_LIBS_value
8090 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
8092 cat >confcache <<\_ACEOF
8093 # This file is a shell script that caches the results of configure
8094 # tests run on this system so they can be shared between configure
8095 # scripts and configure runs, see configure's option --config-cache.
8096 # It is not useful on other systems. If it contains results you don't
8097 # want to keep, you may remove or edit it.
8099 # config.status only pays attention to the cache file if you give it
8100 # the --recheck option to rerun configure.
8102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8108 # The following way of writing the cache mishandles newlines in values,
8109 # but we know of no workaround that is simple, portable, and efficient.
8110 # So, we kill variables containing newlines.
8111 # Ultrix sh set writes to stderr and can't be redirected directly,
8112 # and sets the high bit in the cache file unless we assign to the vars.
8114 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8115 eval ac_val=\$$ac_var
8119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8120 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8123 _ | IFS | as_nl) ;; #(
8124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8125 *) { eval $ac_var=; unset $ac_var;} ;;
8131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8132 *${as_nl}ac_space=\ *)
8133 # `set' does not quote correctly, so add quotes: double-quote
8134 # substitution turns \\\\ into \\, and sed turns \\ into \.
8137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8140 # `set' quotes correctly as required by POSIX, so do not add quotes.
8141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8154 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8155 if test -w "$cache_file"; then
8156 if test "x$cache_file" != "x/dev/null"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8158 $as_echo "$as_me: updating cache $cache_file" >&6;}
8159 if test ! -f "$cache_file" || test -h "$cache_file"; then
8160 cat confcache >"$cache_file"
8162 case $cache_file in #(
8164 mv -f confcache "$cache_file"$$ &&
8165 mv -f "$cache_file"$$ "$cache_file" ;; #(
8167 mv -f confcache "$cache_file" ;;
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8179 # Let make expand exec_prefix.
8180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8182 DEFS=-DHAVE_CONFIG_H
8187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8188 # 1. Remove the extension, and $U if already installed.
8189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8190 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8192 # will be set to the directory where LIBOBJS objects are built.
8193 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8194 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8198 LTLIBOBJS=$ac_ltlibobjs
8203 : "${CONFIG_STATUS=./config.status}"
8205 ac_clean_files_save=$ac_clean_files
8206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8208 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8210 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8212 # Generated by $as_me.
8213 # Run this file to recreate the current configuration.
8214 # Compiler output produced by configure, useful for debugging
8215 # configure, is in config.log if it exists.
8221 SHELL=\${CONFIG_SHELL-$SHELL}
8224 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8225 ## -------------------- ##
8226 ## M4sh Initialization. ##
8227 ## -------------------- ##
8229 # Be more Bourne compatible
8230 DUALCASE=1; export DUALCASE # for MKS sh
8231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8235 # is contrary to our usage. Disable this feature.
8236 alias -g '${1+"$@"}'='"$@"'
8237 setopt NO_GLOB_SUBST
8239 case `(set -o) 2>/dev/null` in #(
8251 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8252 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8255 # Prefer a ksh shell builtin over an external printf program on Solaris,
8256 # but without wasting forks for bash or zsh.
8257 if test -z "$BASH_VERSION$ZSH_VERSION" \
8258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8259 as_echo='print -r --'
8260 as_echo_n='print -rn --'
8261 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8262 as_echo='printf %s\n'
8263 as_echo_n='printf %s'
8265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8267 as_echo_n='/usr/ucb/echo -n'
8269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8270 as_echo_n_body='eval
8274 expr "X$arg" : "X\\(.*\\)$as_nl";
8275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8279 export as_echo_n_body
8280 as_echo_n='sh -c $as_echo_n_body as_echo'
8283 as_echo='sh -c $as_echo_body as_echo'
8286 # The user is always right.
8287 if test "${PATH_SEPARATOR+set}" != set; then
8289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8297 # We need space, tab and new line, in precisely that order. Quoting is
8298 # there to prevent editors from complaining about space-tab.
8299 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8300 # splitting by setting IFS to empty value.)
8303 # Find who we are. Look in the path if we contain no directory separator.
8306 *[\\/]* ) as_myself=$0 ;;
8307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8318 # We did not find ourselves, most probably we were run as `sh COMMAND'
8319 # in which case we are not to be found in the path.
8320 if test "x$as_myself" = x; then
8323 if test ! -f "$as_myself"; then
8324 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8328 # Unset variables that we do not need and which cause bugs (e.g. in
8329 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8330 # suppresses any "Segmentation fault" message there. '((' could
8331 # trigger a bug in pdksh 5.2.14.
8332 for as_var in BASH_ENV ENV MAIL MAILPATH
8333 do eval test x\${$as_var+set} = xset \
8334 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8350 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8351 # ----------------------------------------
8352 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8353 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8354 # script with STATUS, using 1 if that was 0.
8357 as_status=$1; test $as_status -eq 0 && as_status=1
8359 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8360 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8362 $as_echo "$as_me: error: $2" >&2
8363 as_fn_exit $as_status
8367 # as_fn_set_status STATUS
8368 # -----------------------
8369 # Set $? to STATUS, without forking.
8373 } # as_fn_set_status
8377 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8387 # Portably unset VAR.
8390 { eval $1=; unset $1;}
8392 as_unset=as_fn_unset
8393 # as_fn_append VAR VALUE
8394 # ----------------------
8395 # Append the text in VALUE to the end of the definition contained in VAR. Take
8396 # advantage of any shell optimizations that allow amortized linear growth over
8397 # repeated appends, instead of the typical quadratic growth present in naive
8399 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8400 eval 'as_fn_append ()
8411 # as_fn_arith ARG...
8412 # ------------------
8413 # Perform arithmetic evaluation on the ARGs, and store the result in the
8414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8415 # must be portable across $(()) and expr.
8416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8417 eval 'as_fn_arith ()
8424 as_val=`expr "$@" || test $? -eq 1`
8429 if expr a : '\(a\)' >/dev/null 2>&1 &&
8430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8437 as_basename=basename
8442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8448 as_me=`$as_basename -- "$0" ||
8449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8450 X"$0" : 'X\(//\)$' \| \
8451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8453 sed '/^.*\/\([^/][^/]*\)\/*$/{
8467 # Avoid depending upon Character Ranges.
8468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8471 as_cr_digits='0123456789'
8472 as_cr_alnum=$as_cr_Letters$as_cr_digits
8474 ECHO_C= ECHO_N= ECHO_T=
8475 case `echo -n x` in #(((((
8477 case `echo 'xy\c'` in
8478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8480 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8487 rm -f conf$$ conf$$.exe conf$$.file
8488 if test -d conf$$.dir; then
8489 rm -f conf$$.dir/conf$$.file
8492 mkdir conf$$.dir 2>/dev/null
8494 if (echo >conf$$.file) 2>/dev/null; then
8495 if ln -s conf$$.file conf$$ 2>/dev/null; then
8497 # ... but there are two gotchas:
8498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8500 # In both cases, we have to default to `cp -pR'.
8501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8503 elif ln conf$$.file conf$$ 2>/dev/null; then
8511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8512 rmdir conf$$.dir 2>/dev/null
8517 # Create "$as_dir" as a directory, including parents if necessary.
8522 -*) as_dir=./$as_dir;;
8524 test -d "$as_dir" || eval $as_mkdir_p || {
8528 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8529 *) as_qdir=$as_dir;;
8531 as_dirs="'$as_qdir' $as_dirs"
8532 as_dir=`$as_dirname -- "$as_dir" ||
8533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8534 X"$as_dir" : 'X\(//\)[^/]' \| \
8535 X"$as_dir" : 'X\(//\)$' \| \
8536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8537 $as_echo X"$as_dir" |
8538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8555 test -d "$as_dir" && break
8557 test -z "$as_dirs" || eval "mkdir $as_dirs"
8558 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8562 if mkdir -p . 2>/dev/null; then
8563 as_mkdir_p='mkdir -p "$as_dir"'
8565 test -d ./-p && rmdir ./-p
8570 # as_fn_executable_p FILE
8571 # -----------------------
8572 # Test if FILE is an executable regular file.
8573 as_fn_executable_p ()
8575 test -f "$1" && test -x "$1"
8576 } # as_fn_executable_p
8578 as_executable_p=as_fn_executable_p
8580 # Sed expression to map a string onto a valid CPP name.
8581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8583 # Sed expression to map a string onto a valid variable name.
8584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8588 ## ----------------------------------- ##
8589 ## Main body of $CONFIG_STATUS script. ##
8590 ## ----------------------------------- ##
8592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8595 # Save the log message, to keep $0 and so on meaningful, and to
8596 # report actual input values of CONFIG_FILES etc. instead of their
8597 # values after options handling.
8599 This file was extended by freeradius $as_me $Id$, which was
8600 generated by GNU Autoconf 2.69. Invocation command line was
8602 CONFIG_FILES = $CONFIG_FILES
8603 CONFIG_HEADERS = $CONFIG_HEADERS
8604 CONFIG_LINKS = $CONFIG_LINKS
8605 CONFIG_COMMANDS = $CONFIG_COMMANDS
8608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8613 case $ac_config_files in *"
8614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8617 case $ac_config_headers in *"
8618 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8623 # Files that config.status was made for.
8624 config_files="$ac_config_files"
8625 config_headers="$ac_config_headers"
8626 config_commands="$ac_config_commands"
8630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8632 \`$as_me' instantiates files and other configuration actions
8633 from templates according to the current configuration. Unless the files
8634 and actions are specified as TAGs, all are instantiated by default.
8636 Usage: $0 [OPTION]... [TAG]...
8638 -h, --help print this help, then exit
8639 -V, --version print version number and configuration settings, then exit
8640 --config print configuration, then exit
8641 -q, --quiet, --silent
8642 do not print progress messages
8643 -d, --debug don't remove temporary files
8644 --recheck update $as_me by reconfiguring in the same conditions
8645 --file=FILE[:TEMPLATE]
8646 instantiate the configuration file FILE
8647 --header=FILE[:TEMPLATE]
8648 instantiate the configuration header FILE
8650 Configuration files:
8653 Configuration headers:
8656 Configuration commands:
8659 Report bugs to <http://bugs.freeradius.org>.
8660 freeradius home page: <http://www.freeradius.org>."
8663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8664 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8666 freeradius config.status $Id$
8667 configured by $0, generated by GNU Autoconf 2.69,
8668 with options \\"\$ac_cs_config\\"
8670 Copyright (C) 2012 Free Software Foundation, Inc.
8671 This config.status script is free software; the Free Software Foundation
8672 gives unlimited permission to copy, distribute and modify it."
8676 test -n "\$AWK" || AWK=awk
8679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8680 # The default lists apply if the user does not specify any file.
8686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8703 # Handling of the options.
8704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8707 $as_echo "$ac_cs_version"; exit ;;
8708 --config | --confi | --conf | --con | --co | --c )
8709 $as_echo "$ac_cs_config"; exit ;;
8710 --debug | --debu | --deb | --de | --d | -d )
8712 --file | --fil | --fi | --f )
8715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8716 '') as_fn_error $? "missing file argument" ;;
8718 as_fn_append CONFIG_FILES " '$ac_optarg'"
8719 ac_need_defaults=false;;
8720 --header | --heade | --head | --hea )
8723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8725 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8726 ac_need_defaults=false;;
8728 # Conflict between --help and --header
8729 as_fn_error $? "ambiguous option: \`$1'
8730 Try \`$0 --help' for more information.";;
8731 --help | --hel | -h )
8732 $as_echo "$ac_cs_usage"; exit ;;
8733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8734 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8738 -*) as_fn_error $? "unrecognized option: \`$1'
8739 Try \`$0 --help' for more information." ;;
8741 *) as_fn_append ac_config_targets " $1"
8742 ac_need_defaults=false ;;
8748 ac_configure_extra_args=
8750 if $ac_cs_silent; then
8752 ac_configure_extra_args="$ac_configure_extra_args --silent"
8756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8757 if \$ac_cs_recheck; then
8758 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8761 CONFIG_SHELL='$SHELL'
8767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8772 ## Running $as_me. ##
8778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8783 # Handling of arguments.
8784 for ac_config_target in $ac_config_targets
8786 case $ac_config_target in
8787 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
8788 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8789 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
8790 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
8791 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
8792 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
8793 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
8794 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
8795 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
8796 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
8797 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
8798 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
8799 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
8800 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
8801 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
8802 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
8803 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
8804 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
8806 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8811 # If the user did not use the arguments to specify the items to instantiate,
8812 # then the envvar interface is used. Set only those that are not.
8813 # We use the long form for the default assignment because of an extremely
8814 # bizarre bug on SunOS 4.1.3.
8815 if $ac_need_defaults; then
8816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8821 # Have a temporary directory for convenience. Make it in the build tree
8822 # simply because there is no reason against having it here, and in addition,
8823 # creating and moving files from /tmp can sometimes cause problems.
8824 # Hook for its removal unless debugging.
8825 # Note that there is a small window in which the directory will not be cleaned:
8826 # after its creation but before its name has been assigned to `$tmp'.
8830 trap 'exit_status=$?
8832 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8834 trap 'as_fn_exit 1' 1 2 13 15
8836 # Create a (secure) tmp directory for tmp files.
8839 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8843 tmp=./conf$$-$RANDOM
8844 (umask 077 && mkdir "$tmp")
8845 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8848 # Set up the scripts for CONFIG_FILES section.
8849 # No need to generate them if there are no CONFIG_FILES.
8850 # This happens for instance with `./config.status config.h'.
8851 if test -n "$CONFIG_FILES"; then
8854 ac_cr=`echo X | tr X '\015'`
8855 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8856 # But we know of no other shell where ac_cr would be empty at this
8857 # point, so we can use a bashism as a fallback.
8858 if test "x$ac_cr" = x; then
8859 eval ac_cr=\$\'\\r\'
8861 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8862 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8868 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8873 echo "cat >conf$$subs.awk <<_ACEOF" &&
8874 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8878 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8880 for ac_last_try in false false false false false :; do
8881 . ./conf$$subs.sh ||
8882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8884 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8885 if test $ac_delim_n = $ac_delim_num; then
8887 elif $ac_last_try; then
8888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8896 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8900 s/^/S["/; s/!.*/"]=/
8910 s/\(.\{148\}\)..*/\1/
8912 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8917 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8924 s/\(.\{148\}\)..*/\1/
8926 s/["\\]/\\&/g; s/^/"/; s/$/"/
8930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8935 ' <conf$$subs.awk | sed '
8940 ' >>$CONFIG_STATUS || ac_write_fail=1
8941 rm -f conf$$subs.awk
8942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8944 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8945 for (key in S) S_is_set[key] = 1
8951 nfields = split(line, field, "@")
8953 len = length(field[1])
8954 for (i = 2; i < nfields; i++) {
8956 keylen = length(key)
8957 if (S_is_set[key]) {
8959 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8960 len += length(value) + length(field[++i])
8971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8976 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8977 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8980 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8981 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8982 # trailing colons and then remove the whole line if VPATH becomes empty
8983 # (actually we leave an empty line to preserve line numbers).
8984 if test "x$srcdir" = x.; then
8985 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9004 fi # test -n "$CONFIG_FILES"
9006 # Set up the scripts for CONFIG_HEADERS section.
9007 # No need to generate them if there are no CONFIG_HEADERS.
9008 # This happens for instance with `./config.status Makefile'.
9009 if test -n "$CONFIG_HEADERS"; then
9010 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9014 # Transform confdefs.h into an awk script `defines.awk', embedded as
9015 # here-document in config.status, that substitutes the proper values into
9016 # config.h.in to produce config.h.
9018 # Create a delimiter string that does not exist in confdefs.h, to ease
9019 # handling of long lines.
9021 for ac_last_try in false false :; do
9022 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9023 if test -z "$ac_tt"; then
9025 elif $ac_last_try; then
9026 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9032 # For the awk script, D is an array of macro values keyed by name,
9033 # likewise P contains macro parameters if any. Preserve backslash
9034 # newline sequences.
9036 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9038 s/.\{148\}/&'"$ac_delim"'/g
9041 s/^[ ]*#[ ]*define[ ][ ]*/ /
9048 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9055 D["\1"]=" \3\\\\\\n"\\/p
9057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9062 s/.\{148\}/&'"$ac_delim"'/g
9067 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9070 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9072 ' <confdefs.h | sed '
9073 s/'"$ac_delim"'/"\\\
9074 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9077 for (key in D) D_is_set[key] = 1
9080 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9082 split(line, arg, " ")
9083 if (arg[1] == "#") {
9087 defundef = substr(arg[1], 2)
9090 split(mac1, mac2, "(") #)
9092 prefix = substr(line, 1, index(line, defundef) - 1)
9093 if (D_is_set[macro]) {
9094 # Preserve the white space surrounding the "#".
9095 print prefix "define", macro P[macro] D[macro]
9098 # Replace #undef with comments. This is necessary, for example,
9099 # in the case of _POSIX_SOURCE, which is predefined and required
9100 # on some systems where configure will not decide to define it.
9101 if (defundef == "undef") {
9102 print "/*", prefix defundef, macro, "*/"
9110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9111 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9112 fi # test -n "$CONFIG_HEADERS"
9115 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9120 :[FHLC]) ac_mode=$ac_tag; continue;;
9122 case $ac_mode$ac_tag in
9124 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9125 :[FH]-) ac_tag=-:-;;
9126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9143 -) ac_f="$ac_tmp/stdin";;
9144 *) # Look for the file first in the build tree, then in the source tree
9145 # (if the path is not absolute). The absolute path cannot be DOS-style,
9146 # because $ac_f cannot contain `:'.
9150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9154 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9155 as_fn_append ac_file_inputs " '$ac_f'"
9158 # Let's still pretend it is `configure' which instantiates (i.e., don't
9159 # use $as_me), people would be surprised to read:
9160 # /* config.h. Generated by config.status. */
9161 configure_input='Generated from '`
9162 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9164 if test x"$ac_file" != x-; then
9165 configure_input="$ac_file. $configure_input"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9167 $as_echo "$as_me: creating $ac_file" >&6;}
9169 # Neutralize special characters interpreted by sed in replacement strings.
9170 case $configure_input in #(
9171 *\&* | *\|* | *\\* )
9172 ac_sed_conf_input=`$as_echo "$configure_input" |
9173 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9174 *) ac_sed_conf_input=$configure_input;;
9178 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9184 ac_dir=`$as_dirname -- "$ac_file" ||
9185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9186 X"$ac_file" : 'X\(//\)[^/]' \| \
9187 X"$ac_file" : 'X\(//\)$' \| \
9188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9189 $as_echo X"$ac_file" |
9190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9207 as_dir="$ac_dir"; as_fn_mkdir_p
9211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9214 # A ".." for each directory in $ac_dir_suffix.
9215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9216 case $ac_top_builddir_sub in
9217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9221 ac_abs_top_builddir=$ac_pwd
9222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9223 # for backward compatibility:
9224 ac_top_builddir=$ac_top_build_prefix
9227 .) # We are building in place.
9229 ac_top_srcdir=$ac_top_builddir_sub
9230 ac_abs_top_srcdir=$ac_pwd ;;
9231 [\\/]* | ?:[\\/]* ) # Absolute name.
9232 ac_srcdir=$srcdir$ac_dir_suffix;
9233 ac_top_srcdir=$srcdir
9234 ac_abs_top_srcdir=$srcdir ;;
9236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9237 ac_top_srcdir=$ac_top_build_prefix$srcdir
9238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9252 # If the template does not know about datarootdir, expand it.
9253 # FIXME: This hack should be removed a few years after 2.60.
9254 ac_datarootdir_hack=; ac_datarootdir_seen=
9265 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9266 *datarootdir*) ac_datarootdir_seen=yes;;
9267 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9269 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9272 ac_datarootdir_hack='
9273 s&@datadir@&$datadir&g
9274 s&@docdir@&$docdir&g
9275 s&@infodir@&$infodir&g
9276 s&@localedir@&$localedir&g
9277 s&@mandir@&$mandir&g
9278 s&\\\${datarootdir}&$datarootdir&g' ;;
9282 # Neutralize VPATH when `$srcdir' = `.'.
9283 # Shell code in configure.ac might set extrasub.
9284 # FIXME: do we really want to maintain this feature?
9285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9286 ac_sed_extra="$ac_vpsub
9289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9292 s|@configure_input@|$ac_sed_conf_input|;t t
9293 s&@top_builddir@&$ac_top_builddir_sub&;t t
9294 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9295 s&@srcdir@&$ac_srcdir&;t t
9296 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9297 s&@top_srcdir@&$ac_top_srcdir&;t t
9298 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9299 s&@builddir@&$ac_builddir&;t t
9300 s&@abs_builddir@&$ac_abs_builddir&;t t
9301 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9302 $ac_datarootdir_hack
9304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9310 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9312 which seems to be undefined. Please make sure it is defined" >&5
9313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9314 which seems to be undefined. Please make sure it is defined" >&2;}
9316 rm -f "$ac_tmp/stdin"
9318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9327 if test x"$ac_file" != x-; then
9329 $as_echo "/* $configure_input */" \
9330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9331 } >"$ac_tmp/config.h" \
9332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9333 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9335 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9338 mv "$ac_tmp/config.h" "$ac_file" \
9339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9342 $as_echo "/* $configure_input */" \
9343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9344 || as_fn_error $? "could not create -" "$LINENO" 5
9348 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9349 $as_echo "$as_me: executing $ac_file commands" >&6;}
9354 case $ac_file$ac_mode in
9355 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9356 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9357 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9358 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9366 ac_clean_files=$ac_clean_files_save
9368 test $ac_write_fail = 0 ||
9369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9372 # configure is writing to config.log, and then calls config.status.
9373 # config.status does its own redirection, appending to config.log.
9374 # Unfortunately, on DOS this fails, as config.log is still kept open
9375 # by configure, so config.status won't be able to write to it; its
9376 # output is simply discarded. So we exec the FD to /dev/null,
9377 # effectively closing config.log, so it can be properly (re)opened and
9378 # appended to by config.status. When coming back to configure, we
9379 # need to make the FD available again.
9380 if test "$no_create" != yes; then
9382 ac_config_status_args=
9383 test "$silent" = yes &&
9384 ac_config_status_args="$ac_config_status_args --quiet"
9386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9389 # would make configure fail if this is the last instruction.
9390 $ac_cs_success || as_fn_exit 1
9394 # CONFIG_SUBDIRS section.
9396 if test "$no_recursion" != yes; then
9398 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9399 # so they do not pile up.
9400 ac_sub_configure_args=
9402 eval "set x $ac_configure_args"
9406 if test -n "$ac_prev"; then
9411 -cache-file | --cache-file | --cache-fil | --cache-fi \
9412 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9413 ac_prev=cache_file ;;
9414 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9415 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9418 --config-cache | -C)
9420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9428 --disable-option-checking)
9432 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9434 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9438 # Always prepend --prefix to ensure using the same prefix
9439 # in subdir configurations.
9440 ac_arg="--prefix=$prefix"
9442 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9444 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9447 if test "$silent" = yes; then
9448 ac_sub_configure_args="--silent $ac_sub_configure_args"
9451 # Always prepend --disable-option-checking to silence warnings, since
9452 # different subdirs can have different --enable and --with options.
9453 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9456 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9458 # Do not complain, so a configure script can configure whichever
9459 # parts of a large source tree are present.
9460 test -d "$srcdir/$ac_dir" || continue
9462 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9464 $as_echo "$ac_msg" >&6
9465 as_dir="$ac_dir"; as_fn_mkdir_p
9469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9472 # A ".." for each directory in $ac_dir_suffix.
9473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9474 case $ac_top_builddir_sub in
9475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9479 ac_abs_top_builddir=$ac_pwd
9480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9481 # for backward compatibility:
9482 ac_top_builddir=$ac_top_build_prefix
9485 .) # We are building in place.
9487 ac_top_srcdir=$ac_top_builddir_sub
9488 ac_abs_top_srcdir=$ac_pwd ;;
9489 [\\/]* | ?:[\\/]* ) # Absolute name.
9490 ac_srcdir=$srcdir$ac_dir_suffix;
9491 ac_top_srcdir=$srcdir
9492 ac_abs_top_srcdir=$srcdir ;;
9494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9495 ac_top_srcdir=$ac_top_build_prefix$srcdir
9496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9503 # Check for guested configure; otherwise get Cygnus style configure.
9504 if test -f "$ac_srcdir/configure.gnu"; then
9505 ac_sub_configure=$ac_srcdir/configure.gnu
9506 elif test -f "$ac_srcdir/configure"; then
9507 ac_sub_configure=$ac_srcdir/configure
9508 elif test -f "$ac_srcdir/configure.in"; then
9509 # This should be Cygnus configure.
9510 ac_sub_configure=$ac_aux_dir/configure
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9517 # The recursion is here.
9518 if test -n "$ac_sub_configure"; then
9519 # Make the cache file name correct relative to the subdirectory.
9521 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9523 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9526 { $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
9527 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9528 # The eval makes quoting arguments work.
9529 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9530 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9531 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9537 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9539 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}