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
676 RADIUSD_VERSION_STRING
704 program_transform_name
717 enable_option_checking
720 enable_strict_dependencies
732 with_experimental_modules
734 with_openssl_includes
735 with_openssl_libraries
737 with_rlm_FOO_include_dir
739 with_talloc_include_dir
741 ac_precious_vars='build_alias
753 ac_subdirs_all='$mysubdirs'
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=\$ac_optarg ;;
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
913 -help | --help | --hel | --he | -h)
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 htmldir=$ac_optarg ;;
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
943 -libdir | --libdir | --libdi | --libd)
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
955 -localedir | --localedir | --localedi | --localed | --locale)
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 # Obsolete; use --without-fp.
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1034 -psdir | --psdir | --psdi | --psd | --ps)
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 sbindir=$ac_optarg ;;
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 sharedstatedir=$ac_optarg ;;
1060 -site | --site | --sit)
1062 -site=* | --site=* | --sit=*)
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $? "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $? "pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1352 if test -n "$ac_init_help"; then
1353 case $ac_init_help in
1354 short | recursive ) echo "Configuration of freeradius $Id$:";;
1359 --disable-option-checking ignore unrecognized --enable/--with options
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --enable-developer enables features of interest to developers.
1363 --disable-largefile omit support for large files
1364 --enable-strict-dependencies Fail configure on lack of module dependancy.
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1370 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1371 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1372 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1373 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1374 --with-threads Use threads, if available. (default=yes)
1375 --with-tcp Compile in TCP support. (default=yes)
1376 --with-vmps Compile in VMPS support. (default=yes)
1377 --with-dhcp Compile in DHCP support. (default=yes)
1378 --with-static-modules=QUOTED-MODULE-LIST
1379 --with-modules=QUOTED-MODULE-LIST
1380 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1381 --with-openssl Use OpenSSL. (default=yes)
1382 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1383 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1384 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1385 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1386 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1387 --with-talloc-include-dir=DIR
1388 Directory where the talloc includes may be found
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CXX C++ compiler command
1399 CXXFLAGS C++ compiler flags
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to <http://bugs.freeradius.org>.
1406 freeradius home page: <http://www.freeradius.org>.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1469 freeradius configure $Id$
1470 generated by GNU Autoconf 2.69
1472 Copyright (C) 2012 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517 as_fn_set_status $ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_cxx_try_compile LINENO
1522 # ----------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_cxx_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_cxx_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_cxx_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1601 ac_fn_c_check_header_mongrel ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if eval \${$3+:} false; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1625 ac_header_compiler=no
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1638 if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1641 ac_header_preproc=no
1643 rm -f conftest.err conftest.i conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ( $as_echo "## ----------------------------------------- ##
1667 ## Report this to http://bugs.freeradius.org ##
1668 ## ----------------------------------------- ##"
1669 ) | sed "s/^/$as_me: WARNING: /" >&2
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1677 eval "$3=\$ac_header_compiler"
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 } # ac_fn_c_check_header_mongrel
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=$ac_status
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 } # ac_fn_c_check_header_compile
1760 # ac_fn_c_try_link LINENO
1761 # -----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_try_link
1806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1807 # -------------------------------------------
1808 # Tests whether TYPE exists after having included INCLUDES, setting cache
1809 # variable VAR accordingly.
1810 ac_fn_c_check_type ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1844 if ac_fn_c_try_compile "$LINENO"; then :
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_type
1860 # ac_fn_c_check_func LINENO FUNC VAR
1861 # ----------------------------------
1862 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1863 ac_fn_c_check_func ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1875 #define $2 innocuous_$2
1877 /* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char $2 (); below.
1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880 <limits.h> exists even on freestanding compilers. */
1883 # include <limits.h>
1885 # include <assert.h>
1890 /* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1897 /* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900 #if defined __stub_$2 || defined __stub___$2
1912 if ac_fn_c_try_link "$LINENO"; then :
1917 rm -f core conftest.err conftest.$ac_objext \
1918 conftest$ac_exeext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 } # ac_fn_c_check_func
1927 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1928 # ---------------------------------------------
1929 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931 ac_fn_c_check_decl ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 as_decl_name=`echo $2|sed 's/ *(.*//'`
1935 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1947 #ifndef $as_decl_name
1949 (void) $as_decl_use;
1951 (void) $as_decl_name;
1959 if ac_fn_c_try_compile "$LINENO"; then :
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_decl
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by freeradius $as_me $Id$, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_must_keep_next=false
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 -* ) ac_must_keep_next=true ;;
2069 as_fn_append ac_configure_args " '$ac_arg'"
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2127 for ac_var in $ac_subst_vars
2129 eval ac_val=\$$ac_var
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 $as_echo "$ac_var='\''$ac_val'\''"
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2142 for ac_var in $ac_subst_files
2144 eval ac_val=\$$ac_var
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 $as_echo "$ac_var='\''$ac_val'\''"
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2177 $as_echo "/* confdefs.h */" > confdefs.h
2179 # Predefined preprocessor variables.
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 # Check that the precious variables saved in the cache have kept the same
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2329 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2330 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2331 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2333 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2334 -v minor="$RADIUSD_MINOR_VERSION" \
2335 -v incrm="$RADIUSD_INCRM_VERSION" \
2336 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2338 RADIUSD_VERSION_STRING=`cat VERSION`
2343 cat >>confdefs.h <<_ACEOF
2344 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2348 cat >>confdefs.h <<_ACEOF
2349 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2354 # Check whether --enable-developer was given.
2355 if test "${enable_developer+set}" = set; then :
2356 enableval=$enable_developer; case "$enableval" in
2367 if test -d $srcdir/.git; then
2368 if test "x$developer" != "xno"; then
2373 if test "x$developer" = "xyes"; then
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 if test -n "$ac_tool_prefix"; then
2387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if ${ac_cv_prog_CC+:} false; then :
2392 $as_echo_n "(cached) " >&6
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CC"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2417 $as_echo "$CC" >&6; }
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2425 if test -z "$ac_cv_prog_CC"; then
2427 # Extract the first word of "gcc", so it can be a program name with args.
2428 set dummy gcc; ac_word=$2
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2432 $as_echo_n "(cached) " >&6
2434 if test -n "$ac_ct_CC"; then
2435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_ac_ct_CC="gcc"
2445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2457 $as_echo "$ac_ct_CC" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2463 if test "x$ac_ct_CC" = x; then
2466 case $cross_compiling:$ac_tool_warned in
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2470 ac_tool_warned=yes ;;
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}cc; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_CC+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_CC="${ac_tool_prefix}cc"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test -n "$CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510 $as_echo "$CC" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2519 if test -z "$CC"; then
2520 # Extract the first word of "cc", so it can be a program name with args.
2521 set dummy cc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2539 ac_prog_rejected=yes
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 if test $ac_prog_rejected = yes; then
2551 # We found a bogon in the path, so make sure we never use it.
2552 set dummy $ac_cv_prog_CC
2554 if test $# != 0; then
2555 # We chose a different compiler from the bogus one.
2556 # However, it has the same basename, so the bogon will be chosen
2557 # first if we set CC to just the basename; use the full file name.
2559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2565 if test -n "$CC"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567 $as_echo "$CC" >&6; }
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_CC+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CC"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609 $as_echo "$CC" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2616 test -n "$CC" && break
2619 if test -z "$CC"; then
2621 for ac_prog in cl.exe
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_ac_ct_CC="$ac_prog"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2653 $as_echo "$ac_ct_CC" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2660 test -n "$ac_ct_CC" && break
2663 if test "x$ac_ct_CC" = x; then
2666 case $cross_compiling:$ac_tool_warned in
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2679 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681 as_fn_error $? "no acceptable C compiler found in \$PATH
2682 See \`config.log' for more details" "$LINENO" 5; }
2684 # Provide some information about the compiler.
2685 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2688 for ac_option in --version -v -V -qversion; do
2689 { { ac_try="$ac_compiler $ac_option >&5"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2698 if test -s conftest.err; then
2700 ... rest of stderr output deleted ...
2701 10q' conftest.err >conftest.er1
2702 cat conftest.er1 >&5
2704 rm -f conftest.er1 conftest.err
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2720 ac_clean_files_save=$ac_clean_files
2721 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2722 # Try to create an executable without -o first, disregard a.out.
2723 # It will help us diagnose broken compilers, and finding out an intuition
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2726 $as_echo_n "checking whether the C compiler works... " >&6; }
2727 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729 # The possible output files:
2730 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2733 for ac_file in $ac_files
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 if { { ac_try="$ac_link_default"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_link_default") 2>&5
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; }; then :
2753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2758 for ac_file in $ac_files ''
2760 test -f "$ac_file" || continue
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2765 # We found the default executable, but exeext='' is most
2769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 # We set ac_cv_exeext here because the later test for it is not
2774 # safe: cross compilers may not add the suffix if given an `-o'
2775 # argument, so we may need to know it at that point already.
2776 # Even if this section looks crufty: it has the advantage of
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788 if test -z "$ac_file"; then :
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 $as_echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796 as_fn_error 77 "C compiler cannot create executables
2797 See \`config.log' for more details" "$LINENO" 5; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800 $as_echo "yes" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2803 $as_echo_n "checking for C compiler default output file name... " >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2805 $as_echo "$ac_file" >&6; }
2806 ac_exeext=$ac_cv_exeext
2808 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2809 ac_clean_files=$ac_clean_files_save
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2811 $as_echo_n "checking for suffix of executables... " >&6; }
2812 if { { ac_try="$ac_link"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2818 $as_echo "$ac_try_echo"; } >&5
2819 (eval "$ac_link") 2>&5
2821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2822 test $ac_status = 0; }; then :
2823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2825 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 for ac_file in conftest.exe conftest conftest.*; do
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2840 See \`config.log' for more details" "$LINENO" 5; }
2842 rm -f conftest conftest$ac_cv_exeext
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2844 $as_echo "$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2855 FILE *f = fopen ("conftest.out", "w");
2856 return ferror (f) || fclose (f) != 0;
2862 ac_clean_files="$ac_clean_files conftest.out"
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2866 $as_echo_n "checking whether we are cross compiling... " >&6; }
2867 if test "$cross_compiling" != yes; then
2868 { { ac_try="$ac_link"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874 $as_echo "$ac_try_echo"; } >&5
2875 (eval "$ac_link") 2>&5
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }
2879 if { ac_try='./conftest$ac_cv_exeext'
2880 { { case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_try") 2>&5
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; }; then
2892 if test "$cross_compiling" = maybe; then
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error $? "cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details" "$LINENO" 5; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2904 $as_echo "$cross_compiling" >&6; }
2906 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2907 ac_clean_files=$ac_clean_files_save
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2909 $as_echo_n "checking for suffix of object files... " >&6; }
2910 if ${ac_cv_objext+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2924 rm -f conftest.o conftest.obj
2925 if { { ac_try="$ac_compile"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compile") 2>&5
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 for ac_file in conftest.o conftest.obj conftest.*; do
2937 test -f "$ac_file" || continue;
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error $? "cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details" "$LINENO" 5; }
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2956 $as_echo "$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2961 if ${ac_cv_c_compiler_gnu+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2978 if ac_fn_c_try_compile "$LINENO"; then :
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2988 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2989 if test $ac_compiler_gnu = yes; then
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2997 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2998 if ${ac_cv_prog_cc_g+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3016 if ac_fn_c_try_compile "$LINENO"; then :
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3031 if ac_fn_c_try_compile "$LINENO"; then :
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3047 if ac_fn_c_try_compile "$LINENO"; then :
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3058 $as_echo "$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3068 if test "$GCC" = yes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076 if ${ac_cv_prog_cc_c89+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 ac_cv_prog_cc_c89=no
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087 struct buf { int x; };
3088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089 static char *e (p, i)
3095 static char *f (char * (*g) (char **, int), char **p, ...)
3100 s = g (p, va_arg (v,int));
3105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
3108 as 'x'. The following induces an error, until -std is added to get
3109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
3111 that's true only with -std. */
3112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3119 int test (int i, double x);
3120 struct s1 {int (*f) (int a);};
3121 struct s2 {int (*f) (double a);};
3122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3136 CC="$ac_save_CC $ac_arg"
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_cv_prog_cc_c89=$ac_arg
3140 rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
3143 rm -f conftest.$ac_ext
3148 case "x$ac_cv_prog_cc_c89" in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151 $as_echo "none needed" >&6; } ;;
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154 $as_echo "unsupported" >&6; } ;;
3156 CC="$CC $ac_cv_prog_cc_c89"
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3160 if test "x$ac_cv_prog_cc_c89" != xno; then :
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 ac_cpp='$CXXCPP $CPPFLAGS'
3172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3175 if test -z "$CXX"; then
3176 if test -n "$CCC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CXX+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$CXX"; then
3190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 if test -n "$CXX"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3212 $as_echo "$CXX" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$CXX" && break
3222 if test -z "$CXX"; then
3224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$ac_ct_CXX"; then
3234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_ac_ct_CXX="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3254 if test -n "$ac_ct_CXX"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3256 $as_echo "$ac_ct_CXX" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$ac_ct_CXX" && break
3266 if test "x$ac_ct_CXX" = x; then
3269 case $cross_compiling:$ac_tool_warned in
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3281 # Provide some information about the compiler.
3282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3285 for ac_option in --version -v -V -qversion; do
3286 { { ac_try="$ac_compiler $ac_option >&5"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295 if test -s conftest.err; then
3297 ... rest of stderr output deleted ...
3298 10q' conftest.err >conftest.er1
3299 cat conftest.er1 >&5
3301 rm -f conftest.er1 conftest.err
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3307 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3308 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3325 if ac_fn_cxx_try_compile "$LINENO"; then :
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336 if test $ac_compiler_gnu = yes; then
3341 ac_test_CXXFLAGS=${CXXFLAGS+set}
3342 ac_save_CXXFLAGS=$CXXFLAGS
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3345 if ${ac_cv_prog_cxx_g+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 if ac_fn_cxx_try_compile "$LINENO"; then :
3364 ac_cv_prog_cxx_g=yes
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_cxx_try_compile "$LINENO"; then :
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_cxx_try_compile "$LINENO"; then :
3395 ac_cv_prog_cxx_g=yes
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3405 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3406 if test "$ac_test_CXXFLAGS" = set; then
3407 CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409 if test "$GXX" = yes; then
3415 if test "$GXX" = yes; then
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3436 # On Suns, sometimes $CPP names a directory.
3437 if test -n "$CPP" && test -d "$CPP"; then
3440 if test -z "$CPP"; then
3441 if ${ac_cv_prog_CPP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 # Double quotes because CPP needs to be expanded
3445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448 for ac_c_preproc_warn_flag in '' yes
3450 # Use a header file that comes with gcc, so configuring glibc
3451 # with a fresh cross-compiler works.
3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453 # <limits.h> exists even on freestanding compilers.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3459 # include <limits.h>
3461 # include <assert.h>
3465 if ac_fn_c_try_cpp "$LINENO"; then :
3468 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.i conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #include <ac_nonexistent.h>
3479 if ac_fn_c_try_cpp "$LINENO"; then :
3480 # Broken: success on invalid input.
3483 # Passes both tests.
3487 rm -f conftest.err conftest.i conftest.$ac_ext
3490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491 rm -f conftest.i conftest.err conftest.$ac_ext
3492 if $ac_preproc_ok; then :
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3505 $as_echo "$CPP" >&6; }
3507 for ac_c_preproc_warn_flag in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3518 # include <limits.h>
3520 # include <assert.h>
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3527 # Broken: fails on valid input.
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <ac_nonexistent.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3542 # Passes both tests.
3546 rm -f conftest.err conftest.i conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.i conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then :
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details" "$LINENO" 5; }
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3569 if ${ac_cv_path_GREP+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -z "$GREP"; then
3573 ac_path_GREP_found=false
3574 # Loop through the user's path and test for each of PROGNAME-LIST
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3579 test -z "$as_dir" && as_dir=.
3580 for ac_prog in grep ggrep; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3583 as_fn_executable_p "$ac_path_GREP" || continue
3584 # Check for GNU ac_path_GREP and select it if it is found.
3585 # Check for GNU $ac_path_GREP
3586 case `"$ac_path_GREP" --version 2>&1` in
3588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3591 $as_echo_n 0123456789 >"conftest.in"
3594 cat "conftest.in" "conftest.in" >"conftest.tmp"
3595 mv "conftest.tmp" "conftest.in"
3596 cp "conftest.in" "conftest.nl"
3597 $as_echo 'GREP' >> "conftest.nl"
3598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600 as_fn_arith $ac_count + 1 && ac_count=$as_val
3601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3602 # Best one so far, save it but keep looking for a better one
3603 ac_cv_path_GREP="$ac_path_GREP"
3604 ac_path_GREP_max=$ac_count
3606 # 10*(2^10) chars as input seems more than enough
3607 test $ac_count -gt 10 && break
3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3612 $ac_path_GREP_found && break 3
3617 if test -z "$ac_cv_path_GREP"; then
3618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3621 ac_cv_path_GREP=$GREP
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3626 $as_echo "$ac_cv_path_GREP" >&6; }
3627 GREP="$ac_cv_path_GREP"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3631 $as_echo_n "checking for egrep... " >&6; }
3632 if ${ac_cv_path_EGREP+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3636 then ac_cv_path_EGREP="$GREP -E"
3638 if test -z "$EGREP"; then
3639 ac_path_EGREP_found=false
3640 # Loop through the user's path and test for each of PROGNAME-LIST
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3645 test -z "$as_dir" && as_dir=.
3646 for ac_prog in egrep; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649 as_fn_executable_p "$ac_path_EGREP" || continue
3650 # Check for GNU ac_path_EGREP and select it if it is found.
3651 # Check for GNU $ac_path_EGREP
3652 case `"$ac_path_EGREP" --version 2>&1` in
3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3657 $as_echo_n 0123456789 >"conftest.in"
3660 cat "conftest.in" "conftest.in" >"conftest.tmp"
3661 mv "conftest.tmp" "conftest.in"
3662 cp "conftest.in" "conftest.nl"
3663 $as_echo 'EGREP' >> "conftest.nl"
3664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666 as_fn_arith $ac_count + 1 && ac_count=$as_val
3667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668 # Best one so far, save it but keep looking for a better one
3669 ac_cv_path_EGREP="$ac_path_EGREP"
3670 ac_path_EGREP_max=$ac_count
3672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678 $ac_path_EGREP_found && break 3
3683 if test -z "$ac_cv_path_EGREP"; then
3684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3687 ac_cv_path_EGREP=$EGREP
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3693 $as_echo "$ac_cv_path_EGREP" >&6; }
3694 EGREP="$ac_cv_path_EGREP"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3698 $as_echo_n "checking for ANSI C header files... " >&6; }
3699 if ${ac_cv_header_stdc+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_header_stdc=yes
3720 ac_cv_header_stdc=no
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 if test $ac_cv_header_stdc = yes; then
3725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "memchr" >/dev/null 2>&1; then :
3735 ac_cv_header_stdc=no
3741 if test $ac_cv_header_stdc = yes; then
3742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749 $EGREP "free" >/dev/null 2>&1; then :
3752 ac_cv_header_stdc=no
3758 if test $ac_cv_header_stdc = yes; then
3759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3760 if test "$cross_compiling" = yes; then :
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 #if ((' ' & 0x0FF) == 0x020)
3768 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3769 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3771 # define ISLOWER(c) \
3772 (('a' <= (c) && (c) <= 'i') \
3773 || ('j' <= (c) && (c) <= 'r') \
3774 || ('s' <= (c) && (c) <= 'z'))
3775 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3778 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3783 for (i = 0; i < 256; i++)
3784 if (XOR (islower (i), ISLOWER (i))
3785 || toupper (i) != TOUPPER (i))
3790 if ac_fn_c_try_run "$LINENO"; then :
3793 ac_cv_header_stdc=no
3795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3796 conftest.$ac_objext conftest.beam conftest.$ac_ext
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3802 $as_echo "$ac_cv_header_stdc" >&6; }
3803 if test $ac_cv_header_stdc = yes; then
3805 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3809 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3810 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3811 inttypes.h stdint.h unistd.h
3813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3817 cat >>confdefs.h <<_ACEOF
3818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3828 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3835 if test "$MINIX" = yes; then
3837 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3840 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3843 $as_echo "#define _MINIX 1" >>confdefs.h
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3849 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3850 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3856 # define __EXTENSIONS__ 1
3857 $ac_includes_default
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_safe_to_define___extensions__=yes
3869 ac_cv_safe_to_define___extensions__=no
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3874 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3875 test $ac_cv_safe_to_define___extensions__ = yes &&
3876 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3878 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3880 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3882 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3884 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3889 if test $ac_cv_c_compiler_gnu = yes; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3891 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3892 if ${ac_cv_prog_gcc_traditional+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 ac_pattern="Autoconf.*'x'"
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3903 ac_cv_prog_gcc_traditional=yes
3905 ac_cv_prog_gcc_traditional=no
3910 if test $ac_cv_prog_gcc_traditional = no; then
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3918 ac_cv_prog_gcc_traditional=yes
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3925 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3926 if test $ac_cv_prog_gcc_traditional = yes; then
3927 CC="$CC -traditional"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
3932 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
3933 if ${ac_cv_prog_suncc+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 cat > conftest.c <<EOF
3941 if { ac_try='${CC-cc} -E conftest.c'
3942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
3947 ac_cv_prog_suncc=yes
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
3953 $as_echo "$ac_cv_prog_suncc" >&6; }
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_RANLIB+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$RANLIB"; then
3963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 RANLIB=$ac_cv_prog_RANLIB
3983 if test -n "$RANLIB"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3985 $as_echo "$RANLIB" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4025 $as_echo "$ac_ct_RANLIB" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4031 if test "x$ac_ct_RANLIB" = x; then
4034 case $cross_compiling:$ac_tool_warned in
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4040 RANLIB=$ac_ct_RANLIB
4043 RANLIB="$ac_cv_prog_RANLIB"
4047 if test "x$GCC" = "xyes"; then
4048 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4051 # Check whether --enable-largefile was given.
4052 if test "${enable_largefile+set}" = set; then :
4053 enableval=$enable_largefile;
4056 if test "$enable_largefile" != no; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4059 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4060 if ${ac_cv_sys_largefile_CC+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 ac_cv_sys_largefile_CC=no
4064 if test "$GCC" != yes; then
4067 # IRIX 6.2 and later do not support large files by default,
4068 # so use the C compiler's -n32 option if that helps.
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <sys/types.h>
4072 /* Check that off_t can represent 2**63 - 1 correctly.
4073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4074 since some C++ compilers masquerading as C compilers
4075 incorrectly reject 9223372036854775807. */
4076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4078 && LARGE_OFF_T % 2147483647 == 1)
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 rm -f core conftest.err conftest.$ac_objext
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_sys_largefile_CC=' -n32'; break
4096 rm -f core conftest.err conftest.$ac_objext
4100 rm -f conftest.$ac_ext
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4104 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4105 if test "$ac_cv_sys_largefile_CC" != no; then
4106 CC=$CC$ac_cv_sys_largefile_CC
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4110 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4111 if ${ac_cv_sys_file_offset_bits+:} false; then :
4112 $as_echo_n "(cached) " >&6
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 /* Check that off_t can represent 2**63 - 1 correctly.
4119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4120 since some C++ compilers masquerading as C compilers
4121 incorrectly reject 9223372036854775807. */
4122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4124 && LARGE_OFF_T % 2147483647 == 1)
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_sys_file_offset_bits=no; break
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #define _FILE_OFFSET_BITS 64
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_sys_file_offset_bits=64; break
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 ac_cv_sys_file_offset_bits=unknown
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4167 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4168 case $ac_cv_sys_file_offset_bits in #(
4171 cat >>confdefs.h <<_ACEOF
4172 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4177 if test $ac_cv_sys_file_offset_bits = unknown; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4179 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4180 if ${ac_cv_sys_large_files+:} false; then :
4181 $as_echo_n "(cached) " >&6
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189 since some C++ compilers masquerading as C compilers
4190 incorrectly reject 9223372036854775807. */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193 && LARGE_OFF_T % 2147483647 == 1)
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_sys_large_files=no; break
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #define _LARGE_FILES 1
4210 #include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213 since some C++ compilers masquerading as C compilers
4214 incorrectly reject 9223372036854775807. */
4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217 && LARGE_OFF_T % 2147483647 == 1)
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_sys_large_files=1; break
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ac_cv_sys_large_files=unknown
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4236 $as_echo "$ac_cv_sys_large_files" >&6; }
4237 case $ac_cv_sys_large_files in #(
4240 cat >>confdefs.h <<_ACEOF
4241 #define _LARGE_FILES $ac_cv_sys_large_files
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4253 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4254 if ${ac_cv_c_bigendian+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 ac_cv_c_bigendian=unknown
4258 # See if we're dealing with a universal compiler.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #ifndef __APPLE_CC__
4262 not a universal capable compiler
4267 if ac_fn_c_try_compile "$LINENO"; then :
4269 # Check for potential -arch flags. It is not universal unless
4270 # there are at least two -arch flags with different values.
4273 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4274 if test -n "$ac_prev"; then
4276 i?86 | x86_64 | ppc | ppc64)
4277 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4280 ac_cv_c_bigendian=universal
4286 elif test "x$ac_word" = "x-arch"; then
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 if test $ac_cv_c_bigendian = unknown; then
4293 # See if sys/param.h defines the BYTE_ORDER macro.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <sys/types.h>
4297 #include <sys/param.h>
4302 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4303 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 # It does; now see whether it defined to BIG_ENDIAN or not.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <sys/types.h>
4317 #include <sys/param.h>
4322 #if BYTE_ORDER != BIG_ENDIAN
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_c_bigendian=yes
4333 ac_cv_c_bigendian=no
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 if test $ac_cv_c_bigendian = unknown; then
4340 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4348 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 # It does; now see whether it defined to _BIG_ENDIAN or not.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_c_bigendian=yes
4376 ac_cv_c_bigendian=no
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 if test $ac_cv_c_bigendian = unknown; then
4383 # Compile a test program.
4384 if test "$cross_compiling" = yes; then :
4385 # Try to guess by grepping values from an object file.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 short int ascii_mm[] =
4389 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4390 short int ascii_ii[] =
4391 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4392 int use_ascii (int i) {
4393 return ascii_mm[i] + ascii_ii[i];
4395 short int ebcdic_ii[] =
4396 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4397 short int ebcdic_mm[] =
4398 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4399 int use_ebcdic (int i) {
4400 return ebcdic_mm[i] + ebcdic_ii[i];
4407 return use_ascii (foo) == use_ebcdic (foo);
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4414 ac_cv_c_bigendian=yes
4416 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4417 if test "$ac_cv_c_bigendian" = unknown; then
4418 ac_cv_c_bigendian=no
4420 # finding both strings is unlikely to happen, but who knows?
4421 ac_cv_c_bigendian=unknown
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 $ac_includes_default
4434 /* Are we little or big endian? From Harbison&Steele. */
4438 char c[sizeof (long int)];
4441 return u.c[sizeof (long int) - 1] == 1;
4447 if ac_fn_c_try_run "$LINENO"; then :
4448 ac_cv_c_bigendian=no
4450 ac_cv_c_bigendian=yes
4452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4453 conftest.$ac_objext conftest.beam conftest.$ac_ext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4459 $as_echo "$ac_cv_c_bigendian" >&6; }
4460 case $ac_cv_c_bigendian in #(
4462 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4468 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4472 as_fn_error $? "unknown endianness
4473 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4477 # Extract the first word of "gmake", so it can be a program name with args.
4478 set dummy gmake; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_GMAKE+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 if test -n "$GMAKE"; then
4485 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_GMAKE="yes"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4505 GMAKE=$ac_cv_prog_GMAKE
4506 if test -n "$GMAKE"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4508 $as_echo "$GMAKE" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 if test $GMAKE = no; then
4516 # Extract the first word of "make", so it can be a program name with args.
4517 set dummy make; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_path_MAKE+:} false; then :
4521 $as_echo_n "(cached) " >&6
4525 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4547 MAKE=$ac_cv_path_MAKE
4548 if test -n "$MAKE"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4550 $as_echo "$MAKE" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 # Extract the first word of "gmake", so it can be a program name with args.
4559 set dummy gmake; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if ${ac_cv_path_MAKE+:} false; then :
4563 $as_echo_n "(cached) " >&6
4567 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4589 MAKE=$ac_cv_path_MAKE
4590 if test -n "$MAKE"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4592 $as_echo "$MAKE" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4600 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4601 if test -z "$makever"; then
4602 as_fn_error $? "GNU Make is not installed. Please download and install it
4603 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4606 # Extract the first word of "git", so it can be a program name with args.
4607 set dummy git; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_prog_GIT+:} false; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -n "$GIT"; then
4614 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_GIT="yes"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4635 if test -n "$GIT"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4637 $as_echo "$GIT" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4646 # Check whether --enable-strict-dependencies was given.
4647 if test "${enable_strict_dependencies+set}" = set; then :
4648 enableval=$enable_strict_dependencies;
4652 docdir='${datadir}/doc/freeradius'
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
4654 $as_echo_n "checking docdir... " >&6; }
4656 # Check whether --with-docdir was given.
4657 if test "${with_docdir+set}" = set; then :
4658 withval=$with_docdir; case "$withval" in
4664 [\\/$]* | ?:[\\/]* )
4668 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
4676 $as_echo "$docdir" >&6; }
4677 if test "x$docdir" = xno; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
4679 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
4682 logdir='${localstatedir}/log/radius'
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
4684 $as_echo_n "checking logdir... " >&6; }
4686 # Check whether --with-logdir was given.
4687 if test "${with_logdir+set}" = set; then :
4688 withval=$with_logdir; case "$withval" in
4690 as_fn_error $? "Need logdir" "$LINENO" 5
4694 [\\/$]* | ?:[\\/]* )
4698 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
4706 $as_echo "$logdir" >&6; }
4708 radacctdir='${logdir}/radacct'
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
4710 $as_echo_n "checking radacctdir... " >&6; }
4712 # Check whether --with-radacctdir was given.
4713 if test "${with_radacctdir+set}" = set; then :
4714 withval=$with_radacctdir; case "$withval" in
4716 as_fn_error $? "Need radacctdir" "$LINENO" 5
4720 [\\/$]* | ?:[\\/]* )
4721 radacctdir="$withval"
4724 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
4732 $as_echo "$radacctdir" >&6; }
4734 raddbdir='${sysconfdir}/raddb'
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
4736 $as_echo_n "checking raddbdir... " >&6; }
4738 # Check whether --with-raddbdir was given.
4739 if test "${with_raddbdir+set}" = set; then :
4740 withval=$with_raddbdir; case "$withval" in
4742 as_fn_error $? "Need raddbdir" "$LINENO" 5
4746 [\\/$]* | ?:[\\/]* )
4750 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
4758 $as_echo "$raddbdir" >&6; }
4760 WITH_ASCEND_BINARY=yes
4762 # Check whether --with-ascend-binary was given.
4763 if test "${with_ascend_binary+set}" = set; then :
4764 withval=$with_ascend_binary; case "$withval" in
4768 WITH_ASCEND_BINARY=no
4773 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
4775 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
4781 # Check whether --with-threads was given.
4782 if test "${with_threads+set}" = set; then :
4783 withval=$with_threads; case "$withval" in
4795 # Check whether --with-tcp was given.
4796 if test "${with_tcp+set}" = set; then :
4797 withval=$with_tcp; case "$withval" in
4806 if test "x$WITH_TCP" = "xyes"; then
4808 $as_echo "#define WITH_TCP 1" >>confdefs.h
4814 # Check whether --with-vmps was given.
4815 if test "${with_vmps+set}" = set; then :
4816 withval=$with_vmps; case "$withval" in
4825 if test "x$WITH_VMPS" = "xyes"; then
4827 $as_echo "#define WITH_VMPS 1" >>confdefs.h
4833 # Check whether --with-dhcp was given.
4834 if test "${with_dhcp+set}" = set; then :
4835 withval=$with_dhcp; case "$withval" in
4844 if test "x$WITH_DHCP" = "xyes"; then
4846 $as_echo "#define WITH_DHCP 1" >>confdefs.h
4852 # Check whether --with-static_modules was given.
4853 if test "${with_static_modules+set}" = set; then :
4854 withval=$with_static_modules;
4855 for i in $withval; do
4856 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
4864 # Check whether --with-modules was given.
4865 if test "${with_modules+set}" = set; then :
4866 withval=$with_modules;
4867 for i in $withval; do
4868 MODULES="$MODULES $i"
4876 # Check whether --with-experimental-modules was given.
4877 if test "${with_experimental_modules+set}" = set; then :
4878 withval=$with_experimental_modules; case "$withval" in
4893 # Check whether --with-openssl was given.
4894 if test "${with_openssl+set}" = set; then :
4895 withval=$with_openssl; case "$withval" in
4907 OPENSSL_INCLUDE_DIR=
4909 # Check whether --with-openssl-includes was given.
4910 if test "${with_openssl_includes+set}" = set; then :
4911 withval=$with_openssl_includes; case "$withval" in
4912 *) OPENSSL_INCLUDE_DIR="$withval"
4921 # Check whether --with-openssl-libraries was given.
4922 if test "${with_openssl_libraries+set}" = set; then :
4923 withval=$with_openssl_libraries; case "$withval" in
4924 *) OPENSSL_LIB_DIR="$withval"
4933 # Check whether --with-rlm-FOO-lib-dir was given.
4934 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
4935 withval=$with_rlm_FOO_lib_dir; case "$withval" in
4944 # Check whether --with-rlm-FOO-include-dir was given.
4945 if test "${with_rlm_FOO_include_dir+set}" = set; then :
4946 withval=$with_rlm_FOO_include_dir; case "$withval" in
4957 # Check whether --with-udpfromto was given.
4958 if test "${with_udpfromto+set}" = set; then :
4959 withval=$with_udpfromto; case "$withval" in
4970 if test "x$WITH_UDPFROMTO" = "xyes"; then
4972 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
4978 # Extract the first word of "perl", so it can be a program name with args.
4979 set dummy perl; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_path_PERL+:} false; then :
4983 $as_echo_n "(cached) " >&6
4987 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5009 PERL=$ac_cv_path_PERL
5010 if test -n "$PERL"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5012 $as_echo "$PERL" >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5019 if test "x$ac_cv_path_PERL" = "x"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5021 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5023 # Extract the first word of "snmpget", so it can be a program name with args.
5024 set dummy snmpget; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_path_SNMPGET+:} false; then :
5028 $as_echo_n "(cached) " >&6
5032 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 SNMPGET=$ac_cv_path_SNMPGET
5054 if test -n "$SNMPGET"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5056 $as_echo "$SNMPGET" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 if test "x$ac_cv_path_SNMPGET" = "x"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5065 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5068 # Extract the first word of "snmpwalk", so it can be a program name with args.
5069 set dummy snmpwalk; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_path_SNMPWALK+:} false; then :
5073 $as_echo_n "(cached) " >&6
5077 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 SNMPWALK=$ac_cv_path_SNMPWALK
5099 if test -n "$SNMPWALK"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5101 $as_echo "$SNMPWALK" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5110 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5113 # Extract the first word of "rusers", so it can be a program name with args.
5114 set dummy rusers; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_RUSERS+:} false; then :
5118 $as_echo_n "(cached) " >&6
5122 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5144 RUSERS=$ac_cv_path_RUSERS
5145 if test -n "$RUSERS"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5147 $as_echo "$RUSERS" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5155 missing_dir=`cd $ac_aux_dir && pwd`
5156 # expand $ac_aux_dir to an absolute path
5157 am_aux_dir=`cd $ac_aux_dir && pwd`
5159 if test x"${MISSING+set}" != xset; then
5162 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5164 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5167 # Use eval to expand $SHELL
5168 if eval "$MISSING --run true"; then
5169 am_missing_run="$MISSING --run "
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5173 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5177 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5180 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5183 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5186 # Extract the first word of "locate", so it can be a program name with args.
5187 set dummy locate; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_path_LOCATE+:} false; then :
5191 $as_echo_n "(cached) " >&6
5195 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 LOCATE=$ac_cv_path_LOCATE
5217 if test -n "$LOCATE"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5219 $as_echo "$LOCATE" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 # Extract the first word of "dirname", so it can be a program name with args.
5227 set dummy dirname; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_DIRNAME+:} false; then :
5231 $as_echo_n "(cached) " >&6
5235 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 DIRNAME=$ac_cv_path_DIRNAME
5257 if test -n "$DIRNAME"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5259 $as_echo "$DIRNAME" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5266 # Extract the first word of "grep", so it can be a program name with args.
5267 set dummy grep; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_path_GREP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5275 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 GREP=$ac_cv_path_GREP
5297 if test -n "$GREP"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5299 $as_echo "$GREP" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5309 if test "x$WITH_THREADS" = "xyes"; then
5310 if test $ac_cv_prog_suncc = "yes"; then
5311 CFLAGS="$CFLAGS -mt"
5314 for ac_header in pthread.h
5316 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5317 if test "x$ac_cv_header_pthread_h" = xyes; then :
5318 cat >>confdefs.h <<_ACEOF
5319 #define HAVE_PTHREAD_H 1
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5330 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5331 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5332 $as_echo_n "(cached) " >&6
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lpthread $LIBS"
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5339 /* Override any GCC internal prototype to avoid an error.
5340 Use char because int might match the return type of a GCC
5341 builtin and then its argument prototype would still apply. */
5345 char pthread_create ();
5349 return pthread_create ();
5354 if ac_fn_c_try_link "$LINENO"; then :
5355 ac_cv_lib_pthread_pthread_create=yes
5357 ac_cv_lib_pthread_pthread_create=no
5359 rm -f core conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 LIBS=$ac_check_lib_save_LIBS
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5364 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5365 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5366 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5367 LIBS="-lpthread $LIBS"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5370 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5371 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 ac_check_lib_save_LIBS=$LIBS
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5379 /* Override any GCC internal prototype to avoid an error.
5380 Use char because int might match the return type of a GCC
5381 builtin and then its argument prototype would still apply. */
5385 char pthread_create ();
5389 return pthread_create ();
5394 if ac_fn_c_try_link "$LINENO"; then :
5395 ac_cv_lib_c_r_pthread_create=yes
5397 ac_cv_lib_c_r_pthread_create=no
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5404 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5405 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5406 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5417 if test "x$WITH_THREADS" != "xyes"; then
5419 ac_cv_header_pthread_h="no"
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5424 $as_echo_n "checking for library containing sem_init... " >&6; }
5425 if ${ac_cv_search_sem_init+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 ac_func_search_save_LIBS=$LIBS
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5447 for ac_lib in '' pthread sem posix4 rt semaphore; do
5448 if test -z "$ac_lib"; then
5449 ac_res="none required"
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5454 if ac_fn_c_try_link "$LINENO"; then :
5455 ac_cv_search_sem_init=$ac_res
5457 rm -f core conftest.err conftest.$ac_objext \
5459 if ${ac_cv_search_sem_init+:} false; then :
5463 if ${ac_cv_search_sem_init+:} false; then :
5466 ac_cv_search_sem_init=no
5469 LIBS=$ac_func_search_save_LIBS
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5472 $as_echo "$ac_cv_search_sem_init" >&6; }
5473 ac_res=$ac_cv_search_sem_init
5474 if test "$ac_res" != no; then :
5475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5478 as_fn_error $? "-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
5484 if test "x$WITH_THREADS" = "xyes"; then
5486 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5492 if ${ac_cv_lib_dl_dlopen+:} false; then :
5493 $as_echo_n "(cached) " >&6
5495 ac_check_lib_save_LIBS=$LIBS
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5500 /* Override any GCC internal prototype to avoid an error.
5501 Use char because int might match the return type of a GCC
5502 builtin and then its argument prototype would still apply. */
5515 if ac_fn_c_try_link "$LINENO"; then :
5516 ac_cv_lib_dl_dlopen=yes
5518 ac_cv_lib_dl_dlopen=no
5520 rm -f core conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5522 LIBS=$ac_check_lib_save_LIBS
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5527 cat >>confdefs.h <<_ACEOF
5528 #define HAVE_LIBDL 1
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5537 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5538 if ${ac_cv_lib_socket_getsockname+:} false; then :
5539 $as_echo_n "(cached) " >&6
5541 ac_check_lib_save_LIBS=$LIBS
5542 LIBS="-lsocket $LIBS"
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5546 /* Override any GCC internal prototype to avoid an error.
5547 Use char because int might match the return type of a GCC
5548 builtin and then its argument prototype would still apply. */
5552 char getsockname ();
5556 return getsockname ();
5561 if ac_fn_c_try_link "$LINENO"; then :
5562 ac_cv_lib_socket_getsockname=yes
5564 ac_cv_lib_socket_getsockname=no
5566 rm -f core conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
5568 LIBS=$ac_check_lib_save_LIBS
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5571 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5572 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5573 cat >>confdefs.h <<_ACEOF
5574 #define HAVE_LIBSOCKET 1
5577 LIBS="-lsocket $LIBS"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5583 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5584 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lresolv $LIBS"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5602 return inet_aton ();
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 ac_cv_lib_resolv_inet_aton=yes
5610 ac_cv_lib_resolv_inet_aton=no
5612 rm -f core conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5617 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5618 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5619 cat >>confdefs.h <<_ACEOF
5620 #define HAVE_LIBRESOLV 1
5623 LIBS="-lresolv $LIBS"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5629 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5630 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_check_lib_save_LIBS=$LIBS
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5648 return inet_ntoa ();
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 ac_cv_lib_nsl_inet_ntoa=yes
5656 ac_cv_lib_nsl_inet_ntoa=no
5658 rm -f core conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5663 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5664 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5665 cat >>confdefs.h <<_ACEOF
5666 #define HAVE_LIBNSL 1
5675 if test "x$WITH_OPENSSL" = xyes; then
5677 old_LDFLAGS="$LDFLAGS"
5678 if test "x$OPENSSL_LIB_DIR" != "x"; then
5679 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
5682 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
5683 if ${ac_cv_lib_crypto_DH_new+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 ac_check_lib_save_LIBS=$LIBS
5687 LIBS="-lcrypto $LIBS"
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5691 /* Override any GCC internal prototype to avoid an error.
5692 Use char because int might match the return type of a GCC
5693 builtin and then its argument prototype would still apply. */
5706 if ac_fn_c_try_link "$LINENO"; then :
5707 ac_cv_lib_crypto_DH_new=yes
5709 ac_cv_lib_crypto_DH_new=no
5711 rm -f core conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
5716 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
5717 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
5719 LIBS="-lcrypto $LIBS"
5721 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5724 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5725 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5726 $as_echo_n "(cached) " >&6
5728 ac_check_lib_save_LIBS=$LIBS
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5733 /* Override any GCC internal prototype to avoid an error.
5734 Use char because int might match the return type of a GCC
5735 builtin and then its argument prototype would still apply. */
5748 if ac_fn_c_try_link "$LINENO"; then :
5749 ac_cv_lib_ssl_SSL_new=yes
5751 ac_cv_lib_ssl_SSL_new=no
5753 rm -f core conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 LIBS=$ac_check_lib_save_LIBS
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5758 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5759 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5762 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
5764 if test "x$OPENSSL_LIB_DIR" != "x"; then
5765 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
5767 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
5775 LDFLAGS="$old_LDFLAGS"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
5779 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
5780 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 ac_check_lib_save_LIBS=$LIBS
5784 LIBS="-lws2_32 $LIBS"
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 ac_cv_lib_ws2_32_htonl=yes
5806 ac_cv_lib_ws2_32_htonl=no
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 LIBS=$ac_check_lib_save_LIBS
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
5813 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
5814 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
5815 cat >>confdefs.h <<_ACEOF
5816 #define HAVE_LIBWS2_32 1
5819 LIBS="-lws2_32 $LIBS"
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
5826 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
5827 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 ac_check_lib_save_LIBS=$LIBS
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5835 /* Override any GCC internal prototype to avoid an error.
5836 Use char because int might match the return type of a GCC
5837 builtin and then its argument prototype would still apply. */
5841 char pcap_open_live ();
5845 return pcap_open_live ();
5850 if ac_fn_c_try_link "$LINENO"; then :
5851 ac_cv_lib_pcap_pcap_open_live=yes
5853 ac_cv_lib_pcap_pcap_open_live=no
5855 rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
5860 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
5861 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
5864 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
5869 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
5875 $as_echo_n "checking for a readline compatible library... " >&6; }
5876 if ${vl_cv_lib_readline+:} false; then :
5877 $as_echo_n "(cached) " >&6
5881 for readline_lib in readline edit editline; do
5882 for termcap_lib in "" termcap curses ncurses; do
5883 if test -z "$termcap_lib"; then
5884 TRY_LIB="-l$readline_lib"
5886 TRY_LIB="-l$readline_lib -l$termcap_lib"
5888 LIBS="$ORIG_LIBS $TRY_LIB"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5892 /* Override any GCC internal prototype to avoid an error.
5893 Use char because int might match the return type of a GCC
5894 builtin and then its argument prototype would still apply. */
5907 if ac_fn_c_try_link "$LINENO"; then :
5908 vl_cv_lib_readline="$TRY_LIB"
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5912 if test -n "$vl_cv_lib_readline"; then
5913 LIBREADLINE="$TRY_LIB"
5917 if test -n "$vl_cv_lib_readline"; then
5921 if test -z "$vl_cv_lib_readline"; then
5922 vl_cv_lib_readline="no"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
5928 $as_echo "$vl_cv_lib_readline" >&6; }
5930 if test "$vl_cv_lib_readline" != "no"; then
5932 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
5934 for ac_header in readline.h readline/readline.h
5936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
5948 $as_echo_n "checking whether readline supports history... " >&6; }
5949 if ${vl_cv_lib_readline_history+:} false; then :
5950 $as_echo_n "(cached) " >&6
5953 vl_cv_lib_readline_history="no"
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5957 /* Override any GCC internal prototype to avoid an error.
5958 Use char because int might match the return type of a GCC
5959 builtin and then its argument prototype would still apply. */
5963 char add_history ();
5967 return add_history ();
5972 if ac_fn_c_try_link "$LINENO"; then :
5973 vl_cv_lib_readline_history="yes"
5975 rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
5980 $as_echo "$vl_cv_lib_readline_history" >&6; }
5981 if test "$vl_cv_lib_readline_history" = "yes"; then
5983 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
5985 for ac_header in history.h readline/history.h
5987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5989 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5990 cat >>confdefs.h <<_ACEOF
5991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6006 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6009 CFLAGS="$CFLAGS -DDARWIN"
6010 LIBS="-framework DirectoryService $LIBS"
6015 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6016 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6018 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6019 if eval \${$as_ac_Header+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 eval "$as_ac_Header=yes"
6039 eval "$as_ac_Header=no"
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 eval ac_res=\$$as_ac_Header
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6045 $as_echo "$ac_res" >&6; }
6046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6047 cat >>confdefs.h <<_ACEOF
6048 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6051 ac_header_dirent=$ac_hdr; break
6055 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6056 if test $ac_header_dirent = dirent.h; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6058 $as_echo_n "checking for library containing opendir... " >&6; }
6059 if ${ac_cv_search_opendir+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 ac_func_search_save_LIBS=$LIBS
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 /* Override any GCC internal prototype to avoid an error.
6067 Use char because int might match the return type of a GCC
6068 builtin and then its argument prototype would still apply. */
6081 for ac_lib in '' dir; do
6082 if test -z "$ac_lib"; then
6083 ac_res="none required"
6086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6088 if ac_fn_c_try_link "$LINENO"; then :
6089 ac_cv_search_opendir=$ac_res
6091 rm -f core conftest.err conftest.$ac_objext \
6093 if ${ac_cv_search_opendir+:} false; then :
6097 if ${ac_cv_search_opendir+:} false; then :
6100 ac_cv_search_opendir=no
6103 LIBS=$ac_func_search_save_LIBS
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6106 $as_echo "$ac_cv_search_opendir" >&6; }
6107 ac_res=$ac_cv_search_opendir
6108 if test "$ac_res" != no; then :
6109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6115 $as_echo_n "checking for library containing opendir... " >&6; }
6116 if ${ac_cv_search_opendir+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 ac_func_search_save_LIBS=$LIBS
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6123 /* Override any GCC internal prototype to avoid an error.
6124 Use char because int might match the return type of a GCC
6125 builtin and then its argument prototype would still apply. */
6138 for ac_lib in '' x; do
6139 if test -z "$ac_lib"; then
6140 ac_res="none required"
6143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6145 if ac_fn_c_try_link "$LINENO"; then :
6146 ac_cv_search_opendir=$ac_res
6148 rm -f core conftest.err conftest.$ac_objext \
6150 if ${ac_cv_search_opendir+:} false; then :
6154 if ${ac_cv_search_opendir+:} false; then :
6157 ac_cv_search_opendir=no
6160 LIBS=$ac_func_search_save_LIBS
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6163 $as_echo "$ac_cv_search_opendir" >&6; }
6164 ac_res=$ac_cv_search_opendir
6165 if test "$ac_res" != no; then :
6166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6173 $as_echo_n "checking for ANSI C header files... " >&6; }
6174 if ${ac_cv_header_stdc+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_header_stdc=yes
6195 ac_cv_header_stdc=no
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 if test $ac_cv_header_stdc = yes; then
6200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 $EGREP "memchr" >/dev/null 2>&1; then :
6210 ac_cv_header_stdc=no
6216 if test $ac_cv_header_stdc = yes; then
6217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224 $EGREP "free" >/dev/null 2>&1; then :
6227 ac_cv_header_stdc=no
6233 if test $ac_cv_header_stdc = yes; then
6234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6235 if test "$cross_compiling" = yes; then :
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6242 #if ((' ' & 0x0FF) == 0x020)
6243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6246 # define ISLOWER(c) \
6247 (('a' <= (c) && (c) <= 'i') \
6248 || ('j' <= (c) && (c) <= 'r') \
6249 || ('s' <= (c) && (c) <= 'z'))
6250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6258 for (i = 0; i < 256; i++)
6259 if (XOR (islower (i), ISLOWER (i))
6260 || toupper (i) != TOUPPER (i))
6265 if ac_fn_c_try_run "$LINENO"; then :
6268 ac_cv_header_stdc=no
6270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6271 conftest.$ac_objext conftest.beam conftest.$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6277 $as_echo "$ac_cv_header_stdc" >&6; }
6278 if test $ac_cv_header_stdc = yes; then
6280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6285 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6286 if ${ac_cv_header_time+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <sys/types.h>
6292 #include <sys/time.h>
6298 if ((struct tm *) 0)
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 ac_cv_header_time=yes
6307 ac_cv_header_time=no
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6312 $as_echo "$ac_cv_header_time" >&6; }
6313 if test $ac_cv_header_time = yes; then
6315 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6320 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6321 if ${ac_cv_header_sys_wait_h+:} false; then :
6322 $as_echo_n "(cached) " >&6
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #include <sys/types.h>
6327 #include <sys/wait.h>
6329 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6332 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6340 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6345 if ac_fn_c_try_compile "$LINENO"; then :
6346 ac_cv_header_sys_wait_h=yes
6348 ac_cv_header_sys_wait_h=no
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6353 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6354 if test $ac_cv_header_sys_wait_h = yes; then
6356 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6406 cat >>confdefs.h <<_ACEOF
6407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 for ac_header in net/if.h
6417 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6418 # include <sys/socket.h>
6422 if test "x$ac_cv_header_net_if_h" = xyes; then :
6423 cat >>confdefs.h <<_ACEOF
6424 #define HAVE_NET_IF_H 1
6433 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6434 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6436 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6441 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6443 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6448 LIBS="$LIBS -lpcreposix"
6451 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6452 if test "x$ac_cv_header_regex_h" = xyes; then :
6454 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6459 if test "x$ac_cv_header_regex_h" = "xyes"; then
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6472 $EGREP "yes" >/dev/null 2>&1; then :
6474 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6486 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6489 $as_echo "#define OSFC2 /**/" >>confdefs.h
6493 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6496 $as_echo "#define OSFSIA /**/" >>confdefs.h
6500 OPENSSL_INCLUDE="-DNO_OPENSSL"
6501 if test "x$WITH_OPENSSL" = xyes; then
6502 if test "x$OPENSSL_LIBS" = "x"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
6504 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
6506 old_CPPFLAGS=$CPPFLAGS
6507 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6508 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6510 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6525 cat >>confdefs.h <<_ACEOF
6526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 if test "x$OPENSSL_LIBS" != "x"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6538 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #include <openssl/crypto.h>
6542 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548 $EGREP "yes" >/dev/null 2>&1; then :
6553 if test "x$goodssl" != "xyes"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }
6560 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6561 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6563 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6567 CPPFLAGS=$old_CPPFLAGS
6574 if test "x$PCAP_LIBS" = x; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6576 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6578 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6579 if test "x$ac_cv_header_pcap_h" = xyes; then :
6581 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
6586 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6593 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6594 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 ac_check_lib_save_LIBS=$LIBS
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6602 /* Override any GCC internal prototype to avoid an error.
6603 Use char because int might match the return type of a GCC
6604 builtin and then its argument prototype would still apply. */
6608 char pcap_fopen_offline ();
6612 return pcap_fopen_offline ();
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 ac_cv_lib_pcap_pcap_fopen_offline=yes
6620 ac_cv_lib_pcap_pcap_fopen_offline=no
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 LIBS=$ac_check_lib_save_LIBS
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
6627 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
6628 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
6630 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
6636 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
6637 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 ac_check_lib_save_LIBS=$LIBS
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 /* Override any GCC internal prototype to avoid an error.
6646 Use char because int might match the return type of a GCC
6647 builtin and then its argument prototype would still apply. */
6651 char pcap_dump_fopen ();
6655 return pcap_dump_fopen ();
6660 if ac_fn_c_try_link "$LINENO"; then :
6661 ac_cv_lib_pcap_pcap_dump_fopen=yes
6663 ac_cv_lib_pcap_pcap_dump_fopen=no
6665 rm -f core conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 LIBS=$ac_check_lib_save_LIBS
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
6670 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
6671 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
6673 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
6682 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6683 if test "x$ac_cv_type_off_t" = xyes; then :
6687 cat >>confdefs.h <<_ACEOF
6688 #define off_t long int
6693 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6694 if test "x$ac_cv_type_pid_t" = xyes; then :
6698 cat >>confdefs.h <<_ACEOF
6704 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6705 if test "x$ac_cv_type_size_t" = xyes; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define size_t unsigned int
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6716 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6717 if ${ac_cv_type_uid_t+:} false; then :
6718 $as_echo_n "(cached) " >&6
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #include <sys/types.h>
6725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6726 $EGREP "uid_t" >/dev/null 2>&1; then :
6727 ac_cv_type_uid_t=yes
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6735 $as_echo "$ac_cv_type_uid_t" >&6; }
6736 if test $ac_cv_type_uid_t = no; then
6738 $as_echo "#define uid_t int" >>confdefs.h
6741 $as_echo "#define gid_t int" >>confdefs.h
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6748 $as_echo_n "checking for socklen_t... " >&6; }
6749 if ${ac_cv_type_socklen_t+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 ac_cv_type_socklen_t=no
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #ifdef HAVE_SYS_TYPES_H
6756 #include <sys/types.h>
6758 #ifdef HAVE_SYS_SOCKET_H
6759 #include <sys/socket.h>
6770 if ac_fn_c_try_compile "$LINENO"; then :
6771 ac_cv_type_socklen_t=yes
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6778 $as_echo "$ac_cv_type_socklen_t" >&6; }
6780 if test "$ac_cv_type_socklen_t" != "yes"; then
6782 $as_echo "#define socklen_t int" >>confdefs.h
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6789 $as_echo_n "checking for uint8_t... " >&6; }
6790 if ${ac_cv_type_uint8_t+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 ac_cv_type_uint8_t=no
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796 #ifdef HAVE_INTTYPES_H
6797 #include <inttypes.h>
6799 #ifdef HAVE_STDINT_H
6811 if ac_fn_c_try_compile "$LINENO"; then :
6812 ac_cv_type_uint8_t=yes
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
6819 $as_echo "$ac_cv_type_uint8_t" >&6; }
6821 if test "$ac_cv_type_uint8_t" != "yes"; then
6823 $as_echo "#define uint8_t unsigned char" >>confdefs.h
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
6830 $as_echo_n "checking for uint16_t... " >&6; }
6831 if ${ac_cv_type_uint16_t+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 ac_cv_type_uint16_t=no
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #ifdef HAVE_INTTYPES_H
6838 #include <inttypes.h>
6840 #ifdef HAVE_STDINT_H
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 ac_cv_type_uint16_t=yes
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
6860 $as_echo "$ac_cv_type_uint16_t" >&6; }
6862 if test "$ac_cv_type_uint16_t" != "yes"; then
6864 $as_echo "#define uint16_t unsigned short" >>confdefs.h
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
6871 $as_echo_n "checking for uint32_t... " >&6; }
6872 if ${ac_cv_type_uint32_t+:} false; then :
6873 $as_echo_n "(cached) " >&6
6875 ac_cv_type_uint32_t=no
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 #ifdef HAVE_INTTYPES_H
6879 #include <inttypes.h>
6881 #ifdef HAVE_STDINT_H
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 ac_cv_type_uint32_t=yes
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
6901 $as_echo "$ac_cv_type_uint32_t" >&6; }
6903 if test "$ac_cv_type_uint32_t" != "yes"; then
6905 $as_echo "#define uint32_t unsigned int" >>confdefs.h
6910 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
6911 #ifdef HAVE_NETINET_IN_H
6912 #include <netinet/in.h>
6916 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
6918 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
6923 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
6924 #ifdef HAVE_NETINET_IN_H
6925 #include <netinet/in.h>
6927 #ifdef HAVE_SYS_SOCKET_H
6928 #include <sys/socket.h>
6932 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
6934 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
6939 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
6940 #ifdef HAVE_NETINET_IN_H
6941 #include <netinet/in.h>
6945 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
6947 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
6952 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
6953 #ifdef HAVE_SYS_TYPES_H
6954 #include <sys/types.h>
6956 #ifdef HAVE_SYS_SOCKET_H
6957 #include <sys/socket.h>
6964 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
6966 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
7027 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
7028 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7036 #ifdef HAVE_UNISTD_H
7045 #ifdef HAVE_RESOURCE_H
7046 #include <resource.h>
7048 #ifdef HAVE_GETOPT_H
7051 #ifdef HAVE_MALLOC_H
7060 #ifdef HAVE_SYS_SELECT_H
7061 #include <sys/select.h>
7069 #ifdef HAVE_SYSLOG_H
7072 #ifdef HAVE_INTTYPES_H
7073 #include <inttypes.h>
7075 #ifdef HAVE_STDINT_H
7078 #ifdef HAVE_ARPA_INET_H
7079 #include <arpa/inet.h>
7085 char *(*pfn) = (char *(*)) $ac_func
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 eval "radius_cv_decl_needed_$ac_func=no"
7093 eval "radius_cv_decl_needed_$ac_func=yes"
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7100 $as_echo "yes" >&6; }
7101 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7102 cat >>confdefs.h <<_ACEOF
7103 #define $radius_tr_decl 1
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7115 $as_echo_n "checking return type of signal handlers... " >&6; }
7116 if ${ac_cv_type_signal+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 #include <sys/types.h>
7127 return *(signal (0, 0)) (0) == 1;
7132 if ac_fn_c_try_compile "$LINENO"; then :
7133 ac_cv_type_signal=int
7135 ac_cv_type_signal=void
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7140 $as_echo "$ac_cv_type_signal" >&6; }
7142 cat >>confdefs.h <<_ACEOF
7143 #define RETSIGTYPE $ac_cv_type_signal
7148 if test "x$ac_cv_header_utmpx_h" = "xyes"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7152 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7159 #ifdef HAVE_STDDEF_H
7163 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7169 int foo = offsetof(struct utmpx, ut_xtime)
7174 if ac_fn_c_try_compile "$LINENO"; then :
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7182 if test "x$has_element" != "x"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 $as_echo "yes" >&6; }
7185 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7192 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7195 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7202 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7208 #include <netinet/in.h>
7209 #ifdef HAVE_STDDEF_H
7213 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7219 int foo = offsetof(struct in_pktinfo, ipi_addr)
7224 if ac_fn_c_try_compile "$LINENO"; then :
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7232 if test "x$has_element" != "x"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234 $as_echo "yes" >&6; }
7235 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7242 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7245 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7251 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7257 #include <netinet/in.h>
7258 #ifdef HAVE_STDDEF_H
7262 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7268 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7273 if ac_fn_c_try_compile "$LINENO"; then :
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7281 if test "x$has_element" != "x"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7283 $as_echo "yes" >&6; }
7284 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7291 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
7294 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7300 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7301 if ${ac_cv_c_const+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7312 /* Ultrix mips cc rejects this sort of thing. */
7313 typedef int charset[2];
7314 const charset cs = { 0, 0 };
7315 /* SunOS 4.1.1 cc rejects this. */
7316 char const *const *pcpcc;
7318 /* NEC SVR4.0.2 mips cc rejects this. */
7319 struct point {int x, y;};
7320 static struct point const zero = {0,0};
7321 /* AIX XL C 1.02.0.0 rejects this.
7322 It does not let you subtract one const X* pointer from another in
7323 an arm of an if-expression whose if-part is not a constant
7325 const char *g = "string";
7326 pcpcc = &g + (g ? g-g : 0);
7327 /* HPUX 7.0 cc rejects these. */
7329 ppc = (char**) pcpcc;
7330 pcpcc = (char const *const *) ppc;
7331 { /* SCO 3.2v4 cc rejects this sort of thing. */
7334 char const *s = 0 ? (char *) 0 : (char const *) 0;
7339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7341 const int *foo = &x[0];
7344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7345 typedef const int *iptr;
7349 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7351 struct s { int j; const int *ap[3]; } bx;
7352 struct s *b = &bx; b->j = 5;
7354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7358 return !cs[0] && !zero.x;
7365 if ac_fn_c_try_compile "$LINENO"; then :
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7373 $as_echo "$ac_cv_c_const" >&6; }
7374 if test $ac_cv_c_const = no; then
7376 $as_echo "#define const /**/" >>confdefs.h
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7382 $as_echo_n "checking type of OS... " >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7385 $as_echo "$OS" >&6; }
7386 if test "$OS" = "OS/2"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
7394 $as_echo_n "checking for developer gcc flags... " >&6; }
7397 if test "x$developer" = "xyes"; then
7398 if test "x$GCC" = "xyes"; then
7399 devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wformat=2"
7400 CFLAGS="$CFLAGS $devflags"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
7403 $as_echo "yes. Using $devflags" >&6; }
7406 if test "x$EXPERIMENTAL" != "xno"; then
7411 CFLAGS="$CFLAGS -DNDEBUG"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7414 $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
7456 LIBS="$LIBS $LIBLTDL"
7457 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
7458 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
7460 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
7468 # Check whether --with-talloc-include-dir was given.
7469 if test "${with_talloc_include_dir+set}" = set; then :
7470 withval=$with_talloc_include_dir; case "$withval" in
7472 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7477 talloc_include_dir="$withval"
7484 smart_try_dir="$talloc_include_dir"
7487 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7489 $as_echo_n "checking for talloc.h... " >&6; }
7491 old_CFLAGS="$CFLAGS"
7495 if test "x$smart_try_dir" != "x"; then
7496 for try in $smart_try_dir; do
7497 CFLAGS="$old_CFLAGS -I$try"
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 smart_include="-I$try"
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 if test "x$smart_include" != "x"; then
7520 CFLAGS="$old_CFLAGS"
7523 if test "x$smart_include" = "x"; then
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7536 if ac_fn_c_try_compile "$LINENO"; then :
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 if test "x$smart_include" = "x"; then
7547 if test "x$LOCATE" != "x"; then
7551 for x in `${LOCATE} $file 2>/dev/null`; do
7552 base=`echo $x | sed "s%/${file}%%"`
7553 if test "x$x" = "x$base"; then
7557 dir=`${DIRNAME} $x 2>/dev/null`
7558 exclude=`echo ${dir} | ${GREP} /home`
7559 if test "x$exclude" != "x"; then
7563 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7564 if test "x$already" = "x"; then
7570 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7573 for try in $smart_include_dir /usr/local/include /opt/include; do
7574 CFLAGS="$old_CFLAGS -I$try"
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 smart_include="-I$try"
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 if test "x$smart_include" != "x"; then
7597 CFLAGS="$old_CFLAGS"
7600 if test "x$smart_include" != "x"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602 $as_echo "yes" >&6; }
7603 eval "ac_cv_header_$ac_safe=yes"
7604 CFLAGS="$old_CFLAGS $smart_include"
7605 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7613 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7614 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7616 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7617 LIBS="-ltalloc ${LIBS}"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7621 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7622 if ${ac_cv_lib_crypt_crypt+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lcrypt $LIBS"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7630 /* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 ac_cv_lib_crypt_crypt=yes
7648 ac_cv_lib_crypt_crypt=no
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7655 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7656 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7661 if test "$CRYPTLIB" != ""; then
7663 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7666 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7667 if test "x$ac_cv_func_crypt" = xyes; then :
7669 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
7676 $as_echo_n "checking for setkey in -lcipher... " >&6; }
7677 if ${ac_cv_lib_cipher_setkey+:} false; then :
7678 $as_echo_n "(cached) " >&6
7680 ac_check_lib_save_LIBS=$LIBS
7681 LIBS="-lcipher $LIBS"
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7685 /* Override any GCC internal prototype to avoid an error.
7686 Use char because int might match the return type of a GCC
7687 builtin and then its argument prototype would still apply. */
7700 if ac_fn_c_try_link "$LINENO"; then :
7701 ac_cv_lib_cipher_setkey=yes
7703 ac_cv_lib_cipher_setkey=no
7705 rm -f core conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7707 LIBS=$ac_check_lib_save_LIBS
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
7710 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
7711 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
7712 CRYPTLIB="${CRYPTLIB} -lcipher"
7719 $as_echo "#define GNUSTYLE 1" >>confdefs.h
7722 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
7725 $as_echo "#define BSDSTYLE 3" >>confdefs.h
7727 gethostbyaddrrstyle=""
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
7729 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
7732 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
7738 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
7744 cat >>confdefs.h <<_ACEOF
7745 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
7747 if test $ac_have_decl = 1; then :
7752 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7754 gethostbyaddrrstyle=BSD
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
7756 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
7762 if test "x$gethostbyaddrrstyle" = "x"; then
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7772 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
7777 if ac_fn_c_try_link "$LINENO"; then :
7780 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
7782 gethostbyaddrrstyle=GNU
7785 rm -f core conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7788 if test "x$gethostbyaddrrstyle" = "x"; then
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7798 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
7803 if ac_fn_c_try_link "$LINENO"; then :
7806 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
7808 gethostbyaddrrstyle=SYSV
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7814 if test "x$gethostbyaddrrstyle" = "x"; then
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7824 gethostbyaddr(NULL, 0, 0)
7829 if ac_fn_c_try_link "$LINENO"; then :
7832 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7834 gethostbyaddrrstyle=BSD
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7841 if test "x$gethostbyaddrrstyle" = "x"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7843 $as_echo "none! It must not exist, here." >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
7846 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
7849 if test "x$gethostbyaddrrstyle" = "xBSD"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
7851 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
7854 gethostbynamerstyle=""
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
7856 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7866 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
7871 if ac_fn_c_try_link "$LINENO"; then :
7874 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
7876 gethostbynamerstyle=GNU
7879 rm -f core conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 if test "x$gethostbynamerstyle" = "x"; then
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7891 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
7896 if ac_fn_c_try_link "$LINENO"; then :
7899 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
7901 gethostbynamerstyle=SYSV
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7907 if test "x$gethostbynamerstyle" = "x"; then
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7922 if ac_fn_c_try_link "$LINENO"; then :
7925 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
7927 gethostbynamerstyle=BSD
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7934 if test "x$gethostbynamerstyle" = "x"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7936 $as_echo "none! It must not exist, here." >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
7939 $as_echo "${gethostbynamerstyle}-style" >&6; }
7942 if test "x$gethostbynamerstyle" = "xBSD"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
7944 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
7948 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
7951 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
7955 $as_echo_n "checking ctime_r() syntax... " >&6; }
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7964 ctime_r(NULL, NULL, 0)
7969 if ac_fn_c_try_link "$LINENO"; then :
7972 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
7974 ctimerstyle="SOLARIS"
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 if test "x$ctimerstyle" = "x"; then
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7993 if ac_fn_c_try_link "$LINENO"; then :
7996 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8001 rm -f core conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8005 if test "x$ctimerstyle" = "x"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8007 $as_echo "none! It must not exist, here." >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8010 $as_echo "${ctimerstyle}-style" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8020 $as_echo "top_builddir=$top_builddir" >&6; }
8028 if test "x$EXPERIMENTAL" = "xyes"; then
8029 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8030 MODULES="$MODULES $foo"
8033 for foo in `cat "${srcdir}"/src/modules/stable`; do
8034 MODULES="$MODULES $foo"
8039 for bar in $MODULES; do
8040 if test -f "${srcdir}"/src/modules/$bar/configure; then
8041 mysubdirs="$mysubdirs src/modules/$bar"
8046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8047 if test -f "$ac_dir/install-sh"; then
8049 ac_install_sh="$ac_aux_dir/install-sh -c"
8051 elif test -f "$ac_dir/install.sh"; then
8053 ac_install_sh="$ac_aux_dir/install.sh -c"
8055 elif test -f "$ac_dir/shtool"; then
8057 ac_install_sh="$ac_aux_dir/shtool install -c"
8061 if test -z "$ac_aux_dir"; then
8062 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
8065 # These three variables are undocumented and unsupported,
8066 # and are intended to be withdrawn in a future Autoconf release.
8067 # They can cause serious problems if a builder's source tree is in a directory
8068 # whose full name contains unusual characters.
8069 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8070 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8071 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8076 subdirs="$subdirs $mysubdirs"
8081 ac_config_commands="$ac_config_commands stamp-h"
8083 ac_config_commands="$ac_config_commands build-radpaths-h"
8085 ac_config_commands="$ac_config_commands main-chmod"
8087 ac_config_commands="$ac_config_commands scripts-chmod"
8093 USE_SHARED_LIBS=$enable_shared
8095 USE_STATIC_LIBS=$enable_static
8100 unset ac_cv_env_LIBS_set
8101 unset ac_cv_env_LIBS_value
8103 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
8105 cat >confcache <<\_ACEOF
8106 # This file is a shell script that caches the results of configure
8107 # tests run on this system so they can be shared between configure
8108 # scripts and configure runs, see configure's option --config-cache.
8109 # It is not useful on other systems. If it contains results you don't
8110 # want to keep, you may remove or edit it.
8112 # config.status only pays attention to the cache file if you give it
8113 # the --recheck option to rerun configure.
8115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8121 # The following way of writing the cache mishandles newlines in values,
8122 # but we know of no workaround that is simple, portable, and efficient.
8123 # So, we kill variables containing newlines.
8124 # Ultrix sh set writes to stderr and can't be redirected directly,
8125 # and sets the high bit in the cache file unless we assign to the vars.
8127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8128 eval ac_val=\$$ac_var
8132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8136 _ | IFS | as_nl) ;; #(
8137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8138 *) { eval $ac_var=; unset $ac_var;} ;;
8144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8145 *${as_nl}ac_space=\ *)
8146 # `set' does not quote correctly, so add quotes: double-quote
8147 # substitution turns \\\\ into \\, and sed turns \\ into \.
8150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8153 # `set' quotes correctly as required by POSIX, so do not add quotes.
8154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8168 if test -w "$cache_file"; then
8169 if test "x$cache_file" != "x/dev/null"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8171 $as_echo "$as_me: updating cache $cache_file" >&6;}
8172 if test ! -f "$cache_file" || test -h "$cache_file"; then
8173 cat confcache >"$cache_file"
8175 case $cache_file in #(
8177 mv -f confcache "$cache_file"$$ &&
8178 mv -f "$cache_file"$$ "$cache_file" ;; #(
8180 mv -f confcache "$cache_file" ;;
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8186 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8191 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8192 # Let make expand exec_prefix.
8193 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8195 DEFS=-DHAVE_CONFIG_H
8200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8201 # 1. Remove the extension, and $U if already installed.
8202 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8203 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8204 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8205 # will be set to the directory where LIBOBJS objects are built.
8206 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8207 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8211 LTLIBOBJS=$ac_ltlibobjs
8216 : "${CONFIG_STATUS=./config.status}"
8218 ac_clean_files_save=$ac_clean_files
8219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8225 # Generated by $as_me.
8226 # Run this file to recreate the current configuration.
8227 # Compiler output produced by configure, useful for debugging
8228 # configure, is in config.log if it exists.
8234 SHELL=\${CONFIG_SHELL-$SHELL}
8237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8238 ## -------------------- ##
8239 ## M4sh Initialization. ##
8240 ## -------------------- ##
8242 # Be more Bourne compatible
8243 DUALCASE=1; export DUALCASE # for MKS sh
8244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8247 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8248 # is contrary to our usage. Disable this feature.
8249 alias -g '${1+"$@"}'='"$@"'
8250 setopt NO_GLOB_SUBST
8252 case `(set -o) 2>/dev/null` in #(
8264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8268 # Prefer a ksh shell builtin over an external printf program on Solaris,
8269 # but without wasting forks for bash or zsh.
8270 if test -z "$BASH_VERSION$ZSH_VERSION" \
8271 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8272 as_echo='print -r --'
8273 as_echo_n='print -rn --'
8274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8275 as_echo='printf %s\n'
8276 as_echo_n='printf %s'
8278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8279 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8280 as_echo_n='/usr/ucb/echo -n'
8282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8283 as_echo_n_body='eval
8287 expr "X$arg" : "X\\(.*\\)$as_nl";
8288 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8290 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8292 export as_echo_n_body
8293 as_echo_n='sh -c $as_echo_n_body as_echo'
8296 as_echo='sh -c $as_echo_body as_echo'
8299 # The user is always right.
8300 if test "${PATH_SEPARATOR+set}" != set; then
8302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8310 # We need space, tab and new line, in precisely that order. Quoting is
8311 # there to prevent editors from complaining about space-tab.
8312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8313 # splitting by setting IFS to empty value.)
8316 # Find who we are. Look in the path if we contain no directory separator.
8319 *[\\/]* ) as_myself=$0 ;;
8320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8331 # We did not find ourselves, most probably we were run as `sh COMMAND'
8332 # in which case we are not to be found in the path.
8333 if test "x$as_myself" = x; then
8336 if test ! -f "$as_myself"; then
8337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8341 # Unset variables that we do not need and which cause bugs (e.g. in
8342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8343 # suppresses any "Segmentation fault" message there. '((' could
8344 # trigger a bug in pdksh 5.2.14.
8345 for as_var in BASH_ENV ENV MAIL MAILPATH
8346 do eval test x\${$as_var+set} = xset \
8347 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8364 # ----------------------------------------
8365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8367 # script with STATUS, using 1 if that was 0.
8370 as_status=$1; test $as_status -eq 0 && as_status=1
8372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8375 $as_echo "$as_me: error: $2" >&2
8376 as_fn_exit $as_status
8380 # as_fn_set_status STATUS
8381 # -----------------------
8382 # Set $? to STATUS, without forking.
8386 } # as_fn_set_status
8390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8400 # Portably unset VAR.
8403 { eval $1=; unset $1;}
8405 as_unset=as_fn_unset
8406 # as_fn_append VAR VALUE
8407 # ----------------------
8408 # Append the text in VALUE to the end of the definition contained in VAR. Take
8409 # advantage of any shell optimizations that allow amortized linear growth over
8410 # repeated appends, instead of the typical quadratic growth present in naive
8412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8413 eval 'as_fn_append ()
8424 # as_fn_arith ARG...
8425 # ------------------
8426 # Perform arithmetic evaluation on the ARGs, and store the result in the
8427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8428 # must be portable across $(()) and expr.
8429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8430 eval 'as_fn_arith ()
8437 as_val=`expr "$@" || test $? -eq 1`
8442 if expr a : '\(a\)' >/dev/null 2>&1 &&
8443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8450 as_basename=basename
8455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8461 as_me=`$as_basename -- "$0" ||
8462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8463 X"$0" : 'X\(//\)$' \| \
8464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8466 sed '/^.*\/\([^/][^/]*\)\/*$/{
8480 # Avoid depending upon Character Ranges.
8481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8484 as_cr_digits='0123456789'
8485 as_cr_alnum=$as_cr_Letters$as_cr_digits
8487 ECHO_C= ECHO_N= ECHO_T=
8488 case `echo -n x` in #(((((
8490 case `echo 'xy\c'` in
8491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8500 rm -f conf$$ conf$$.exe conf$$.file
8501 if test -d conf$$.dir; then
8502 rm -f conf$$.dir/conf$$.file
8505 mkdir conf$$.dir 2>/dev/null
8507 if (echo >conf$$.file) 2>/dev/null; then
8508 if ln -s conf$$.file conf$$ 2>/dev/null; then
8510 # ... but there are two gotchas:
8511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8513 # In both cases, we have to default to `cp -pR'.
8514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8516 elif ln conf$$.file conf$$ 2>/dev/null; then
8524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8525 rmdir conf$$.dir 2>/dev/null
8530 # Create "$as_dir" as a directory, including parents if necessary.
8535 -*) as_dir=./$as_dir;;
8537 test -d "$as_dir" || eval $as_mkdir_p || {
8541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8542 *) as_qdir=$as_dir;;
8544 as_dirs="'$as_qdir' $as_dirs"
8545 as_dir=`$as_dirname -- "$as_dir" ||
8546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8547 X"$as_dir" : 'X\(//\)[^/]' \| \
8548 X"$as_dir" : 'X\(//\)$' \| \
8549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8550 $as_echo X"$as_dir" |
8551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8568 test -d "$as_dir" && break
8570 test -z "$as_dirs" || eval "mkdir $as_dirs"
8571 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8575 if mkdir -p . 2>/dev/null; then
8576 as_mkdir_p='mkdir -p "$as_dir"'
8578 test -d ./-p && rmdir ./-p
8583 # as_fn_executable_p FILE
8584 # -----------------------
8585 # Test if FILE is an executable regular file.
8586 as_fn_executable_p ()
8588 test -f "$1" && test -x "$1"
8589 } # as_fn_executable_p
8591 as_executable_p=as_fn_executable_p
8593 # Sed expression to map a string onto a valid CPP name.
8594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8596 # Sed expression to map a string onto a valid variable name.
8597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8601 ## ----------------------------------- ##
8602 ## Main body of $CONFIG_STATUS script. ##
8603 ## ----------------------------------- ##
8605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8608 # Save the log message, to keep $0 and so on meaningful, and to
8609 # report actual input values of CONFIG_FILES etc. instead of their
8610 # values after options handling.
8612 This file was extended by freeradius $as_me $Id$, which was
8613 generated by GNU Autoconf 2.69. Invocation command line was
8615 CONFIG_FILES = $CONFIG_FILES
8616 CONFIG_HEADERS = $CONFIG_HEADERS
8617 CONFIG_LINKS = $CONFIG_LINKS
8618 CONFIG_COMMANDS = $CONFIG_COMMANDS
8621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8626 case $ac_config_files in *"
8627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8630 case $ac_config_headers in *"
8631 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8636 # Files that config.status was made for.
8637 config_files="$ac_config_files"
8638 config_headers="$ac_config_headers"
8639 config_commands="$ac_config_commands"
8643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8645 \`$as_me' instantiates files and other configuration actions
8646 from templates according to the current configuration. Unless the files
8647 and actions are specified as TAGs, all are instantiated by default.
8649 Usage: $0 [OPTION]... [TAG]...
8651 -h, --help print this help, then exit
8652 -V, --version print version number and configuration settings, then exit
8653 --config print configuration, then exit
8654 -q, --quiet, --silent
8655 do not print progress messages
8656 -d, --debug don't remove temporary files
8657 --recheck update $as_me by reconfiguring in the same conditions
8658 --file=FILE[:TEMPLATE]
8659 instantiate the configuration file FILE
8660 --header=FILE[:TEMPLATE]
8661 instantiate the configuration header FILE
8663 Configuration files:
8666 Configuration headers:
8669 Configuration commands:
8672 Report bugs to <http://bugs.freeradius.org>.
8673 freeradius home page: <http://www.freeradius.org>."
8676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8679 freeradius config.status $Id$
8680 configured by $0, generated by GNU Autoconf 2.69,
8681 with options \\"\$ac_cs_config\\"
8683 Copyright (C) 2012 Free Software Foundation, Inc.
8684 This config.status script is free software; the Free Software Foundation
8685 gives unlimited permission to copy, distribute and modify it."
8689 test -n "\$AWK" || AWK=awk
8692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8693 # The default lists apply if the user does not specify any file.
8699 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8700 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8716 # Handling of the options.
8717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8720 $as_echo "$ac_cs_version"; exit ;;
8721 --config | --confi | --conf | --con | --co | --c )
8722 $as_echo "$ac_cs_config"; exit ;;
8723 --debug | --debu | --deb | --de | --d | -d )
8725 --file | --fil | --fi | --f )
8728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8729 '') as_fn_error $? "missing file argument" ;;
8731 as_fn_append CONFIG_FILES " '$ac_optarg'"
8732 ac_need_defaults=false;;
8733 --header | --heade | --head | --hea )
8736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8739 ac_need_defaults=false;;
8741 # Conflict between --help and --header
8742 as_fn_error $? "ambiguous option: \`$1'
8743 Try \`$0 --help' for more information.";;
8744 --help | --hel | -h )
8745 $as_echo "$ac_cs_usage"; exit ;;
8746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8751 -*) as_fn_error $? "unrecognized option: \`$1'
8752 Try \`$0 --help' for more information." ;;
8754 *) as_fn_append ac_config_targets " $1"
8755 ac_need_defaults=false ;;
8761 ac_configure_extra_args=
8763 if $ac_cs_silent; then
8765 ac_configure_extra_args="$ac_configure_extra_args --silent"
8769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8770 if \$ac_cs_recheck; then
8771 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8774 CONFIG_SHELL='$SHELL'
8780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8785 ## Running $as_me. ##
8791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8796 # Handling of arguments.
8797 for ac_config_target in $ac_config_targets
8799 case $ac_config_target in
8800 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
8801 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8802 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
8803 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
8804 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
8805 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
8806 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
8807 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
8808 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
8809 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
8810 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
8811 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
8812 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
8813 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
8814 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
8815 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
8816 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
8817 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
8819 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8824 # If the user did not use the arguments to specify the items to instantiate,
8825 # then the envvar interface is used. Set only those that are not.
8826 # We use the long form for the default assignment because of an extremely
8827 # bizarre bug on SunOS 4.1.3.
8828 if $ac_need_defaults; then
8829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8834 # Have a temporary directory for convenience. Make it in the build tree
8835 # simply because there is no reason against having it here, and in addition,
8836 # creating and moving files from /tmp can sometimes cause problems.
8837 # Hook for its removal unless debugging.
8838 # Note that there is a small window in which the directory will not be cleaned:
8839 # after its creation but before its name has been assigned to `$tmp'.
8843 trap 'exit_status=$?
8845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8847 trap 'as_fn_exit 1' 1 2 13 15
8849 # Create a (secure) tmp directory for tmp files.
8852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8856 tmp=./conf$$-$RANDOM
8857 (umask 077 && mkdir "$tmp")
8858 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8861 # Set up the scripts for CONFIG_FILES section.
8862 # No need to generate them if there are no CONFIG_FILES.
8863 # This happens for instance with `./config.status config.h'.
8864 if test -n "$CONFIG_FILES"; then
8867 ac_cr=`echo X | tr X '\015'`
8868 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8869 # But we know of no other shell where ac_cr would be empty at this
8870 # point, so we can use a bashism as a fallback.
8871 if test "x$ac_cr" = x; then
8872 eval ac_cr=\$\'\\r\'
8874 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8875 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8881 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8886 echo "cat >conf$$subs.awk <<_ACEOF" &&
8887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8893 for ac_last_try in false false false false false :; do
8894 . ./conf$$subs.sh ||
8895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8898 if test $ac_delim_n = $ac_delim_num; then
8900 elif $ac_last_try; then
8901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8909 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8913 s/^/S["/; s/!.*/"]=/
8923 s/\(.\{148\}\)..*/\1/
8925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8937 s/\(.\{148\}\)..*/\1/
8939 s/["\\]/\\&/g; s/^/"/; s/$/"/
8943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8948 ' <conf$$subs.awk | sed '
8953 ' >>$CONFIG_STATUS || ac_write_fail=1
8954 rm -f conf$$subs.awk
8955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8957 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8958 for (key in S) S_is_set[key] = 1
8964 nfields = split(line, field, "@")
8966 len = length(field[1])
8967 for (i = 2; i < nfields; i++) {
8969 keylen = length(key)
8970 if (S_is_set[key]) {
8972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8973 len += length(value) + length(field[++i])
8984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8989 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8993 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8994 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8995 # trailing colons and then remove the whole line if VPATH becomes empty
8996 # (actually we leave an empty line to preserve line numbers).
8997 if test "x$srcdir" = x.; then
8998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9017 fi # test -n "$CONFIG_FILES"
9019 # Set up the scripts for CONFIG_HEADERS section.
9020 # No need to generate them if there are no CONFIG_HEADERS.
9021 # This happens for instance with `./config.status Makefile'.
9022 if test -n "$CONFIG_HEADERS"; then
9023 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9027 # Transform confdefs.h into an awk script `defines.awk', embedded as
9028 # here-document in config.status, that substitutes the proper values into
9029 # config.h.in to produce config.h.
9031 # Create a delimiter string that does not exist in confdefs.h, to ease
9032 # handling of long lines.
9034 for ac_last_try in false false :; do
9035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9036 if test -z "$ac_tt"; then
9038 elif $ac_last_try; then
9039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9045 # For the awk script, D is an array of macro values keyed by name,
9046 # likewise P contains macro parameters if any. Preserve backslash
9047 # newline sequences.
9049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9051 s/.\{148\}/&'"$ac_delim"'/g
9054 s/^[ ]*#[ ]*define[ ][ ]*/ /
9061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9068 D["\1"]=" \3\\\\\\n"\\/p
9070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9075 s/.\{148\}/&'"$ac_delim"'/g
9080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9085 ' <confdefs.h | sed '
9086 s/'"$ac_delim"'/"\\\
9087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9090 for (key in D) D_is_set[key] = 1
9093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9095 split(line, arg, " ")
9096 if (arg[1] == "#") {
9100 defundef = substr(arg[1], 2)
9103 split(mac1, mac2, "(") #)
9105 prefix = substr(line, 1, index(line, defundef) - 1)
9106 if (D_is_set[macro]) {
9107 # Preserve the white space surrounding the "#".
9108 print prefix "define", macro P[macro] D[macro]
9111 # Replace #undef with comments. This is necessary, for example,
9112 # in the case of _POSIX_SOURCE, which is predefined and required
9113 # on some systems where configure will not decide to define it.
9114 if (defundef == "undef") {
9115 print "/*", prefix defundef, macro, "*/"
9123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9125 fi # test -n "$CONFIG_HEADERS"
9128 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9133 :[FHLC]) ac_mode=$ac_tag; continue;;
9135 case $ac_mode$ac_tag in
9137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9138 :[FH]-) ac_tag=-:-;;
9139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9156 -) ac_f="$ac_tmp/stdin";;
9157 *) # Look for the file first in the build tree, then in the source tree
9158 # (if the path is not absolute). The absolute path cannot be DOS-style,
9159 # because $ac_f cannot contain `:'.
9163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9168 as_fn_append ac_file_inputs " '$ac_f'"
9171 # Let's still pretend it is `configure' which instantiates (i.e., don't
9172 # use $as_me), people would be surprised to read:
9173 # /* config.h. Generated by config.status. */
9174 configure_input='Generated from '`
9175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9177 if test x"$ac_file" != x-; then
9178 configure_input="$ac_file. $configure_input"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9180 $as_echo "$as_me: creating $ac_file" >&6;}
9182 # Neutralize special characters interpreted by sed in replacement strings.
9183 case $configure_input in #(
9184 *\&* | *\|* | *\\* )
9185 ac_sed_conf_input=`$as_echo "$configure_input" |
9186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9187 *) ac_sed_conf_input=$configure_input;;
9191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9197 ac_dir=`$as_dirname -- "$ac_file" ||
9198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9199 X"$ac_file" : 'X\(//\)[^/]' \| \
9200 X"$ac_file" : 'X\(//\)$' \| \
9201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9202 $as_echo X"$ac_file" |
9203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9220 as_dir="$ac_dir"; as_fn_mkdir_p
9224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9227 # A ".." for each directory in $ac_dir_suffix.
9228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9229 case $ac_top_builddir_sub in
9230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9234 ac_abs_top_builddir=$ac_pwd
9235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9236 # for backward compatibility:
9237 ac_top_builddir=$ac_top_build_prefix
9240 .) # We are building in place.
9242 ac_top_srcdir=$ac_top_builddir_sub
9243 ac_abs_top_srcdir=$ac_pwd ;;
9244 [\\/]* | ?:[\\/]* ) # Absolute name.
9245 ac_srcdir=$srcdir$ac_dir_suffix;
9246 ac_top_srcdir=$srcdir
9247 ac_abs_top_srcdir=$srcdir ;;
9249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9250 ac_top_srcdir=$ac_top_build_prefix$srcdir
9251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9265 # If the template does not know about datarootdir, expand it.
9266 # FIXME: This hack should be removed a few years after 2.60.
9267 ac_datarootdir_hack=; ac_datarootdir_seen=
9278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9279 *datarootdir*) ac_datarootdir_seen=yes;;
9280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9285 ac_datarootdir_hack='
9286 s&@datadir@&$datadir&g
9287 s&@docdir@&$docdir&g
9288 s&@infodir@&$infodir&g
9289 s&@localedir@&$localedir&g
9290 s&@mandir@&$mandir&g
9291 s&\\\${datarootdir}&$datarootdir&g' ;;
9295 # Neutralize VPATH when `$srcdir' = `.'.
9296 # Shell code in configure.ac might set extrasub.
9297 # FIXME: do we really want to maintain this feature?
9298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9299 ac_sed_extra="$ac_vpsub
9302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9305 s|@configure_input@|$ac_sed_conf_input|;t t
9306 s&@top_builddir@&$ac_top_builddir_sub&;t t
9307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9308 s&@srcdir@&$ac_srcdir&;t t
9309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9310 s&@top_srcdir@&$ac_top_srcdir&;t t
9311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9312 s&@builddir@&$ac_builddir&;t t
9313 s&@abs_builddir@&$ac_abs_builddir&;t t
9314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9315 $ac_datarootdir_hack
9317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9325 which seems to be undefined. Please make sure it is defined" >&5
9326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9327 which seems to be undefined. Please make sure it is defined" >&2;}
9329 rm -f "$ac_tmp/stdin"
9331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9340 if test x"$ac_file" != x-; then
9342 $as_echo "/* $configure_input */" \
9343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9344 } >"$ac_tmp/config.h" \
9345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9351 mv "$ac_tmp/config.h" "$ac_file" \
9352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9355 $as_echo "/* $configure_input */" \
9356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9357 || as_fn_error $? "could not create -" "$LINENO" 5
9361 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9362 $as_echo "$as_me: executing $ac_file commands" >&6;}
9367 case $ac_file$ac_mode in
9368 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9369 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9370 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9371 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9379 ac_clean_files=$ac_clean_files_save
9381 test $ac_write_fail = 0 ||
9382 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9385 # configure is writing to config.log, and then calls config.status.
9386 # config.status does its own redirection, appending to config.log.
9387 # Unfortunately, on DOS this fails, as config.log is still kept open
9388 # by configure, so config.status won't be able to write to it; its
9389 # output is simply discarded. So we exec the FD to /dev/null,
9390 # effectively closing config.log, so it can be properly (re)opened and
9391 # appended to by config.status. When coming back to configure, we
9392 # need to make the FD available again.
9393 if test "$no_create" != yes; then
9395 ac_config_status_args=
9396 test "$silent" = yes &&
9397 ac_config_status_args="$ac_config_status_args --quiet"
9399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9402 # would make configure fail if this is the last instruction.
9403 $ac_cs_success || as_fn_exit 1
9407 # CONFIG_SUBDIRS section.
9409 if test "$no_recursion" != yes; then
9411 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9412 # so they do not pile up.
9413 ac_sub_configure_args=
9415 eval "set x $ac_configure_args"
9419 if test -n "$ac_prev"; then
9424 -cache-file | --cache-file | --cache-fil | --cache-fi \
9425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9426 ac_prev=cache_file ;;
9427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9431 --config-cache | -C)
9433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9437 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9439 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9441 --disable-option-checking)
9445 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9447 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9451 # Always prepend --prefix to ensure using the same prefix
9452 # in subdir configurations.
9453 ac_arg="--prefix=$prefix"
9455 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9457 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9460 if test "$silent" = yes; then
9461 ac_sub_configure_args="--silent $ac_sub_configure_args"
9464 # Always prepend --disable-option-checking to silence warnings, since
9465 # different subdirs can have different --enable and --with options.
9466 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9469 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9471 # Do not complain, so a configure script can configure whichever
9472 # parts of a large source tree are present.
9473 test -d "$srcdir/$ac_dir" || continue
9475 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9477 $as_echo "$ac_msg" >&6
9478 as_dir="$ac_dir"; as_fn_mkdir_p
9482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9485 # A ".." for each directory in $ac_dir_suffix.
9486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9487 case $ac_top_builddir_sub in
9488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9492 ac_abs_top_builddir=$ac_pwd
9493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9494 # for backward compatibility:
9495 ac_top_builddir=$ac_top_build_prefix
9498 .) # We are building in place.
9500 ac_top_srcdir=$ac_top_builddir_sub
9501 ac_abs_top_srcdir=$ac_pwd ;;
9502 [\\/]* | ?:[\\/]* ) # Absolute name.
9503 ac_srcdir=$srcdir$ac_dir_suffix;
9504 ac_top_srcdir=$srcdir
9505 ac_abs_top_srcdir=$srcdir ;;
9507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9508 ac_top_srcdir=$ac_top_build_prefix$srcdir
9509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9516 # Check for guested configure; otherwise get Cygnus style configure.
9517 if test -f "$ac_srcdir/configure.gnu"; then
9518 ac_sub_configure=$ac_srcdir/configure.gnu
9519 elif test -f "$ac_srcdir/configure"; then
9520 ac_sub_configure=$ac_srcdir/configure
9521 elif test -f "$ac_srcdir/configure.in"; then
9522 # This should be Cygnus configure.
9523 ac_sub_configure=$ac_aux_dir/configure
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9530 # The recursion is here.
9531 if test -n "$ac_sub_configure"; then
9532 # Make the cache file name correct relative to the subdirectory.
9534 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9536 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9540 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9541 # The eval makes quoting arguments work.
9542 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9543 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9544 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}