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
687 RADIUSD_VERSION_STRING
715 program_transform_name
728 enable_option_checking
731 enable_strict_dependencies
744 with_experimental_modules
746 with_openssl_includes
747 with_openssl_libraries
749 with_rlm_FOO_include_dir
751 with_talloc_include_dir
752 with_rlm_pcre_lib_dir
753 with_rlm_pcre_include_dir
755 ac_precious_vars='build_alias
767 ac_subdirs_all='$mysubdirs'
769 # Initialize some variables set by options.
771 ac_init_version=false
772 ac_unrecognized_opts=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
783 program_transform_name=s,x,x,
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
829 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 # Accept the important Cygnus configure options, so we can diagnose typos.
836 case $ac_dashdash$ac_option in
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
858 cache_file=config.cache ;;
860 -datadir | --datadir | --datadi | --datad)
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
886 eval enable_$ac_useropt=no ;;
888 -docdir | --docdir | --docdi | --doc | --do)
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
927 -help | --help | --hel | --he | -h)
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 # Obsolete; use --without-fp.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1076 -site=* | --site=* | --sit=*)
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=no ;;
1135 # Obsolete; use --with-x.
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error $? "missing argument to $ac_option"
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1185 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1203 # Be sure to have absolute directory names.
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error $? "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1307 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking ...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of freeradius $Id$:";;
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-developer enables features of interest to developers.
1382 --disable-largefile omit support for large files
1383 --enable-strict-dependencies fail configure on lack of module dependancy.
1384 --enable-werror causes the build to fail if any warnings are generated.
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1390 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1391 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1392 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1393 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1394 --with-threads Use threads, if available. (default=yes)
1395 --with-tcp Compile in TCP support. (default=yes)
1396 --with-vmps Compile in VMPS support. (default=yes)
1397 --with-dhcp Compile in DHCP support. (default=yes)
1398 --with-static-modules=QUOTED-MODULE-LIST
1399 --with-modules=QUOTED-MODULE-LIST
1400 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1401 --with-openssl Use OpenSSL. (default=yes)
1402 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1403 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1404 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1405 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1406 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1407 --with-talloc-include-dir=DIR
1408 Directory where the talloc includes may be found
1409 --with-pcre-lib-dir=DIR directory for PCRE library files
1410 --with-pcre-include-dir=DIR directory for PCRE include files
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1427 Report bugs to <http://bugs.freeradius.org>.
1428 freeradius home page: <http://www.freeradius.org>.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1458 .) # We are building in place.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1491 freeradius configure $Id$
1492 generated by GNU Autoconf 2.69
1494 Copyright (C) 2012 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_cxx_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1579 } # ac_fn_cxx_try_compile
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1623 ac_fn_c_check_header_mongrel ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if eval \${$3+:} false; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1647 ac_header_compiler=no
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1663 ac_header_preproc=no
1665 rm -f conftest.err conftest.i conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ( $as_echo "## ----------------------------------------- ##
1689 ## Report this to http://bugs.freeradius.org ##
1690 ## ----------------------------------------- ##"
1691 ) | sed "s/^/$as_me: WARNING: /" >&2
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1699 eval "$3=\$ac_header_compiler"
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 } # ac_fn_c_check_header_mongrel
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 } # ac_fn_c_check_header_compile
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 test -x conftest$ac_exeext
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1826 } # ac_fn_c_try_link
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_type
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1905 # include <limits.h>
1907 # include <assert.h>
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_func
1949 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1950 # ---------------------------------------------
1951 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1953 ac_fn_c_check_decl ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 as_decl_name=`echo $2|sed 's/ *(.*//'`
1957 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1959 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 #ifndef $as_decl_name
1971 (void) $as_decl_use;
1973 (void) $as_decl_name;
1981 if ac_fn_c_try_compile "$LINENO"; then :
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_decl
1994 cat >config.log <<_ACEOF
1995 This file contains any messages produced by compilers while
1996 running configure, to aid debugging if configure makes a mistake.
1998 It was created by freeradius $as_me $Id$, which was
1999 generated by GNU Autoconf 2.69. Invocation command line was
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 $as_echo "PATH: $as_dir"
2051 # Keep a trace of the command line.
2052 # Strip out --no-create and --no-recursion so they do not pile up.
2053 # Strip out --silent because we don't want to record it for future runs.
2054 # Also quote any args containing shell meta-characters.
2055 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_must_keep_next=false
2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067 | -silent | --silent | --silen | --sile | --sil)
2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 as_fn_append ac_configure_args1 " '$ac_arg'"
2076 if test $ac_must_keep_next = true; then
2077 ac_must_keep_next=false # Got value, back to normal.
2080 *=* | --config-cache | -C | -disable-* | --disable-* \
2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083 | -with-* | --with-* | -without-* | --without-* | --x)
2084 case "$ac_configure_args0 " in
2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088 -* ) ac_must_keep_next=true ;;
2091 as_fn_append ac_configure_args " '$ac_arg'"
2096 { ac_configure_args0=; unset ac_configure_args0;}
2097 { ac_configure_args1=; unset ac_configure_args1;}
2099 # When interrupted or exit'd, cleanup temporary files, and complete
2100 # config.log. We remove comments because anyway the quotes in there
2101 # would cause problems or look ugly.
2102 # WARNING: Use '\'' to represent an apostrophe within the trap.
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104 trap 'exit_status=$?
2105 # Save into config.log some information that might help in debugging.
2109 $as_echo "## ---------------- ##
2110 ## Cache variables. ##
2111 ## ---------------- ##"
2113 # The following way of writing the cache mishandles newlines in values,
2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116 eval ac_val=\$$ac_var
2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2124 _ | IFS | as_nl) ;; #(
2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126 *) { eval $ac_var=; unset $ac_var;} ;;
2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132 *${as_nl}ac_space=\ *)
2134 "s/'\''/'\''\\\\'\'''\''/g;
2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2145 $as_echo "## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##"
2149 for ac_var in $ac_subst_vars
2151 eval ac_val=\$$ac_var
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 $as_echo "$ac_var='\''$ac_val'\''"
2159 if test -n "$ac_subst_files"; then
2160 $as_echo "## ------------------- ##
2161 ## File substitutions. ##
2162 ## ------------------- ##"
2164 for ac_var in $ac_subst_files
2166 eval ac_val=\$$ac_var
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170 $as_echo "$ac_var='\''$ac_val'\''"
2175 if test -s confdefs.h; then
2176 $as_echo "## ----------- ##
2183 test "$ac_signal" != 0 &&
2184 $as_echo "$as_me: caught signal $ac_signal"
2185 $as_echo "$as_me: exit $exit_status"
2187 rm -f core *.core core.conftest.* &&
2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2191 for ac_signal in 1 2 13 15; do
2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2197 rm -f -r conftest* confdefs.h
2199 $as_echo "/* confdefs.h */" > confdefs.h
2201 # Predefined preprocessor variables.
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_NAME "$PACKAGE_NAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_STRING "$PACKAGE_STRING"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_URL "$PACKAGE_URL"
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2232 if test -n "$CONFIG_SITE"; then
2233 # We do not want a PATH search for config.site.
2234 case $CONFIG_SITE in #((
2235 -*) ac_site_file1=./$CONFIG_SITE;;
2236 */*) ac_site_file1=$CONFIG_SITE;;
2237 *) ac_site_file1=./$CONFIG_SITE;;
2239 elif test "x$prefix" != xNONE; then
2240 ac_site_file1=$prefix/share/config.site
2241 ac_site_file2=$prefix/etc/config.site
2243 ac_site_file1=$ac_default_prefix/share/config.site
2244 ac_site_file2=$ac_default_prefix/etc/config.site
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248 test "x$ac_site_file" = xNONE && continue
2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252 sed 's/^/| /' "$ac_site_file" >&5
2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2261 if test -r "$cache_file"; then
2262 # Some versions of bash will fail to source /dev/null (special files
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 $as_echo "$as_me: loading cache $cache_file" >&6;}
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269 *) . "./$cache_file";;
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 # Check that the precious variables saved in the cache have kept the same
2280 ac_cache_corrupted=false
2281 for ac_var in $ac_precious_vars; do
2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283 eval ac_new_set=\$ac_env_${ac_var}_set
2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285 eval ac_new_val=\$ac_env_${ac_var}_value
2286 case $ac_old_set,$ac_new_set in
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2297 if test "x$ac_old_val" != "x$ac_new_val"; then
2298 # differences in whitespace do not lead to failure.
2299 ac_old_val_w=`echo x $ac_old_val`
2300 ac_new_val_w=`echo x $ac_new_val`
2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304 ac_cache_corrupted=:
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308 eval $ac_var=\$ac_old_val
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2316 # Pass precious variables to config.status.
2317 if test "$ac_new_set" = set; then
2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 *) ac_arg=$ac_var=$ac_new_val ;;
2322 case " $ac_configure_args " in
2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328 if $ac_cache_corrupted; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335 ## -------------------- ##
2336 ## Main body of script. ##
2337 ## -------------------- ##
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2360 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2361 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2362 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2364 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2365 -v minor="$RADIUSD_MINOR_VERSION" \
2366 -v incrm="$RADIUSD_INCRM_VERSION" \
2367 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2369 RADIUSD_VERSION_STRING=`cat VERSION`
2374 cat >>confdefs.h <<_ACEOF
2375 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2379 cat >>confdefs.h <<_ACEOF
2380 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2385 # Check whether --enable-developer was given.
2386 if test "${enable_developer+set}" = set; then :
2387 enableval=$enable_developer; case "$enableval" in
2398 if test -d $srcdir/.git; then
2399 if test "x$developer" != "xno"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2401 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2406 if test "x$developer" = "xyes"; then
2412 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2413 if test -f "$ac_dir/install-sh"; then
2415 ac_install_sh="$ac_aux_dir/install-sh -c"
2417 elif test -f "$ac_dir/install.sh"; then
2419 ac_install_sh="$ac_aux_dir/install.sh -c"
2421 elif test -f "$ac_dir/shtool"; then
2423 ac_install_sh="$ac_aux_dir/shtool install -c"
2427 if test -z "$ac_aux_dir"; then
2428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2431 # These three variables are undocumented and unsupported,
2432 # and are intended to be withdrawn in a future Autoconf release.
2433 # They can cause serious problems if a builder's source tree is in a directory
2434 # whose full name contains unusual characters.
2435 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2440 # Make sure we can run config.sub.
2441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2445 $as_echo_n "checking build system type... " >&6; }
2446 if ${ac_cv_build+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2459 $as_echo "$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if ${ac_cv_host+:} false; then :
2481 $as_echo_n "(cached) " >&6
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2492 $as_echo "$ac_cv_host" >&6; }
2495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2498 ac_save_IFS=$IFS; IFS='-'
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2512 $as_echo_n "checking target system type... " >&6; }
2513 if ${ac_cv_target+:} false; then :
2514 $as_echo_n "(cached) " >&6
2516 if test "x$target_alias" = x; then
2517 ac_cv_target=$ac_cv_host
2519 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2525 $as_echo "$ac_cv_target" >&6; }
2526 case $ac_cv_target in
2528 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2530 target=$ac_cv_target
2531 ac_save_IFS=$IFS; IFS='-'
2537 # Remember, the first character of IFS is used to create $*,
2538 # except with old shells:
2541 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2544 # The aliases save the names the user supplied, while $host etc.
2545 # will get canonicalized.
2546 test -n "$target_alias" &&
2547 test "$program_prefix$program_suffix$program_transform_name" = \
2549 program_prefix=${target_alias}-
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_CC+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_CC"; then
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$CC" && break
2790 if test -z "$CC"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$ac_ct_CC" && break
2834 if test "x$ac_ct_CC" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2850 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error $? "no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details" "$LINENO" 5; }
2855 # Provide some information about the compiler.
2856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2859 for ac_option in --version -v -V -qversion; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869 if test -s conftest.err; then
2871 ... rest of stderr output deleted ...
2872 10q' conftest.err >conftest.er1
2873 cat conftest.er1 >&5
2875 rm -f conftest.er1 conftest.err
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2891 ac_clean_files_save=$ac_clean_files
2892 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2897 $as_echo_n "checking whether the C compiler works... " >&6; }
2898 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900 # The possible output files:
2901 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904 for ac_file in $ac_files
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2913 if { { ac_try="$ac_link_default"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2925 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2926 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2927 # so that the user can short-circuit this test for compilers unknown to
2929 for ac_file in $ac_files ''
2931 test -f "$ac_file" || continue
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936 # We found the default executable, but exeext='' is most
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2954 test "$ac_cv_exeext" = no && ac_cv_exeext=
2959 if test -z "$ac_file"; then :
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error 77 "C compiler cannot create executables
2968 See \`config.log' for more details" "$LINENO" 5; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2974 $as_echo_n "checking for C compiler default output file name... " >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2976 $as_echo "$ac_file" >&6; }
2977 ac_exeext=$ac_cv_exeext
2979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2980 ac_clean_files=$ac_clean_files_save
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2982 $as_echo_n "checking for suffix of executables... " >&6; }
2983 if { { ac_try="$ac_link"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989 $as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link") 2>&5
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2998 for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details" "$LINENO" 5; }
3013 rm -f conftest conftest$ac_cv_exeext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3015 $as_echo "$ac_cv_exeext" >&6; }
3017 rm -f conftest.$ac_ext
3018 EXEEXT=$ac_cv_exeext
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3026 FILE *f = fopen ("conftest.out", "w");
3027 return ferror (f) || fclose (f) != 0;
3033 ac_clean_files="$ac_clean_files conftest.out"
3034 # Check that the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3037 $as_echo_n "checking whether we are cross compiling... " >&6; }
3038 if test "$cross_compiling" != yes; then
3039 { { ac_try="$ac_link"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link") 2>&5
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }
3050 if { ac_try='./conftest$ac_cv_exeext'
3051 { { case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_try") 2>&5
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; }; then
3063 if test "$cross_compiling" = maybe; then
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot run C compiled programs.
3069 If you meant to cross compile, use \`--host'.
3070 See \`config.log' for more details" "$LINENO" 5; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3075 $as_echo "$cross_compiling" >&6; }
3077 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3078 ac_clean_files=$ac_clean_files_save
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3080 $as_echo_n "checking for suffix of object files... " >&6; }
3081 if ${ac_cv_objext+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3095 rm -f conftest.o conftest.obj
3096 if { { ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compile") 2>&5
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 for ac_file in conftest.o conftest.obj conftest.*; do
3108 test -f "$ac_file" || continue;
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of object files: cannot compile
3122 See \`config.log' for more details" "$LINENO" 5; }
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if ${ac_cv_c_compiler_gnu+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3149 if ac_fn_c_try_compile "$LINENO"; then :
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160 if test $ac_compiler_gnu = yes; then
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if ${ac_cv_prog_cc_g+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3187 if ac_fn_c_try_compile "$LINENO"; then :
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3218 if ac_fn_c_try_compile "$LINENO"; then :
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3229 $as_echo "$ac_cv_prog_cc_g" >&6; }
3230 if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232 elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3239 if test "$GCC" = yes; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3247 if ${ac_cv_prog_cc_c89+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 ac_cv_prog_cc_c89=no
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3258 struct buf { int x; };
3259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3260 static char *e (p, i)
3266 static char *f (char * (*g) (char **, int), char **p, ...)
3271 s = g (p, va_arg (v,int));
3276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3277 function prototypes and stuff, but not '\xHH' hex character constants.
3278 These don't provoke an error unfortunately, instead are silently treated
3279 as 'x'. The following induces an error, until -std is added to get
3280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3281 array size at least. It's necessary to write '\x00'==0 to get something
3282 that's true only with -std. */
3283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3286 inside strings and character constants. */
3288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290 int test (int i, double x);
3291 struct s1 {int (*f) (int a);};
3292 struct s2 {int (*f) (double a);};
3293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 CC="$ac_save_CC $ac_arg"
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_c89=$ac_arg
3311 rm -f core conftest.err conftest.$ac_objext
3312 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 rm -f conftest.$ac_ext
3319 case "x$ac_cv_prog_cc_c89" in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3322 $as_echo "none needed" >&6; } ;;
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3325 $as_echo "unsupported" >&6; } ;;
3327 CC="$CC $ac_cv_prog_cc_c89"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331 if test "x$ac_cv_prog_cc_c89" != xno; then :
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 ac_cpp='$CXXCPP $CPPFLAGS'
3343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3346 if test -z "$CXX"; then
3347 if test -n "$CCC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CXX+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$CXX"; then
3361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CXX"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3383 $as_echo "$CXX" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3390 test -n "$CXX" && break
3393 if test -z "$CXX"; then
3395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$ac_ct_CXX"; then
3405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_CXX="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3425 if test -n "$ac_ct_CXX"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3427 $as_echo "$ac_ct_CXX" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$ac_ct_CXX" && break
3437 if test "x$ac_ct_CXX" = x; then
3440 case $cross_compiling:$ac_tool_warned in
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3456 for ac_option in --version -v -V -qversion; do
3457 { { ac_try="$ac_compiler $ac_option >&5"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 if test -s conftest.err; then
3468 ... rest of stderr output deleted ...
3469 10q' conftest.err >conftest.er1
3470 cat conftest.er1 >&5
3472 rm -f conftest.er1 conftest.err
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3478 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3479 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3496 if ac_fn_cxx_try_compile "$LINENO"; then :
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3506 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3507 if test $ac_compiler_gnu = yes; then
3512 ac_test_CXXFLAGS=${CXXFLAGS+set}
3513 ac_save_CXXFLAGS=$CXXFLAGS
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3515 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3516 if ${ac_cv_prog_cxx_g+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3520 ac_cxx_werror_flag=yes
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_cxx_try_compile "$LINENO"; then :
3535 ac_cv_prog_cxx_g=yes
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3549 if ac_fn_cxx_try_compile "$LINENO"; then :
3552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_cxx_try_compile "$LINENO"; then :
3566 ac_cv_prog_cxx_g=yes
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3576 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3577 if test "$ac_test_CXXFLAGS" = set; then
3578 CXXFLAGS=$ac_save_CXXFLAGS
3579 elif test $ac_cv_prog_cxx_g = yes; then
3580 if test "$GXX" = yes; then
3586 if test "$GXX" = yes; then
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3606 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3607 # On Suns, sometimes $CPP names a directory.
3608 if test -n "$CPP" && test -d "$CPP"; then
3611 if test -z "$CPP"; then
3612 if ${ac_cv_prog_CPP+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 # Double quotes because CPP needs to be expanded
3616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3619 for ac_c_preproc_warn_flag in '' yes
3621 # Use a header file that comes with gcc, so configuring glibc
3622 # with a fresh cross-compiler works.
3623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3624 # <limits.h> exists even on freestanding compilers.
3625 # On the NeXT, cc -E runs the code through the compiler's parser,
3626 # not just through cpp. "Syntax error" is here to catch this case.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3630 # include <limits.h>
3632 # include <assert.h>
3636 if ac_fn_c_try_cpp "$LINENO"; then :
3639 # Broken: fails on valid input.
3642 rm -f conftest.err conftest.i conftest.$ac_ext
3644 # OK, works on sane cases. Now check whether nonexistent headers
3645 # can be detected and how.
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648 #include <ac_nonexistent.h>
3650 if ac_fn_c_try_cpp "$LINENO"; then :
3651 # Broken: success on invalid input.
3654 # Passes both tests.
3658 rm -f conftest.err conftest.i conftest.$ac_ext
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.i conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then :
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3676 $as_echo "$CPP" >&6; }
3678 for ac_c_preproc_warn_flag in '' yes
3680 # Use a header file that comes with gcc, so configuring glibc
3681 # with a fresh cross-compiler works.
3682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3683 # <limits.h> exists even on freestanding compilers.
3684 # On the NeXT, cc -E runs the code through the compiler's parser,
3685 # not just through cpp. "Syntax error" is here to catch this case.
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3689 # include <limits.h>
3691 # include <assert.h>
3695 if ac_fn_c_try_cpp "$LINENO"; then :
3698 # Broken: fails on valid input.
3701 rm -f conftest.err conftest.i conftest.$ac_ext
3703 # OK, works on sane cases. Now check whether nonexistent headers
3704 # can be detected and how.
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <ac_nonexistent.h>
3709 if ac_fn_c_try_cpp "$LINENO"; then :
3710 # Broken: success on invalid input.
3713 # Passes both tests.
3717 rm -f conftest.err conftest.i conftest.$ac_ext
3720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3721 rm -f conftest.i conftest.err conftest.$ac_ext
3722 if $ac_preproc_ok; then :
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3728 See \`config.log' for more details" "$LINENO" 5; }
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3740 if ${ac_cv_path_GREP+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -z "$GREP"; then
3744 ac_path_GREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in grep ggrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3754 as_fn_executable_p "$ac_path_GREP" || continue
3755 # Check for GNU ac_path_GREP and select it if it is found.
3756 # Check for GNU $ac_path_GREP
3757 case `"$ac_path_GREP" --version 2>&1` in
3759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3762 $as_echo_n 0123456789 >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 $as_echo 'GREP' >> "conftest.nl"
3769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 as_fn_arith $ac_count + 1 && ac_count=$as_val
3772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_GREP="$ac_path_GREP"
3775 ac_path_GREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 $ac_path_GREP_found && break 3
3788 if test -z "$ac_cv_path_GREP"; then
3789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3792 ac_cv_path_GREP=$GREP
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3797 $as_echo "$ac_cv_path_GREP" >&6; }
3798 GREP="$ac_cv_path_GREP"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3802 $as_echo_n "checking for egrep... " >&6; }
3803 if ${ac_cv_path_EGREP+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3807 then ac_cv_path_EGREP="$GREP -E"
3809 if test -z "$EGREP"; then
3810 ac_path_EGREP_found=false
3811 # Loop through the user's path and test for each of PROGNAME-LIST
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3816 test -z "$as_dir" && as_dir=.
3817 for ac_prog in egrep; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3820 as_fn_executable_p "$ac_path_EGREP" || continue
3821 # Check for GNU ac_path_EGREP and select it if it is found.
3822 # Check for GNU $ac_path_EGREP
3823 case `"$ac_path_EGREP" --version 2>&1` in
3825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3828 $as_echo_n 0123456789 >"conftest.in"
3831 cat "conftest.in" "conftest.in" >"conftest.tmp"
3832 mv "conftest.tmp" "conftest.in"
3833 cp "conftest.in" "conftest.nl"
3834 $as_echo 'EGREP' >> "conftest.nl"
3835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3837 as_fn_arith $ac_count + 1 && ac_count=$as_val
3838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3839 # Best one so far, save it but keep looking for a better one
3840 ac_cv_path_EGREP="$ac_path_EGREP"
3841 ac_path_EGREP_max=$ac_count
3843 # 10*(2^10) chars as input seems more than enough
3844 test $ac_count -gt 10 && break
3846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3849 $ac_path_EGREP_found && break 3
3854 if test -z "$ac_cv_path_EGREP"; then
3855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3858 ac_cv_path_EGREP=$EGREP
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3864 $as_echo "$ac_cv_path_EGREP" >&6; }
3865 EGREP="$ac_cv_path_EGREP"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3869 $as_echo_n "checking for ANSI C header files... " >&6; }
3870 if ${ac_cv_header_stdc+:} false; then :
3871 $as_echo_n "(cached) " >&6
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_header_stdc=yes
3891 ac_cv_header_stdc=no
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "memchr" >/dev/null 2>&1; then :
3906 ac_cv_header_stdc=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "free" >/dev/null 2>&1; then :
3923 ac_cv_header_stdc=no
3929 if test $ac_cv_header_stdc = yes; then
3930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931 if test "$cross_compiling" = yes; then :
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3938 #if ((' ' & 0x0FF) == 0x020)
3939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3942 # define ISLOWER(c) \
3943 (('a' <= (c) && (c) <= 'i') \
3944 || ('j' <= (c) && (c) <= 'r') \
3945 || ('s' <= (c) && (c) <= 'z'))
3946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3954 for (i = 0; i < 256; i++)
3955 if (XOR (islower (i), ISLOWER (i))
3956 || toupper (i) != TOUPPER (i))
3961 if ac_fn_c_try_run "$LINENO"; then :
3964 ac_cv_header_stdc=no
3966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3967 conftest.$ac_objext conftest.beam conftest.$ac_ext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3973 $as_echo "$ac_cv_header_stdc" >&6; }
3974 if test $ac_cv_header_stdc = yes; then
3976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3982 inttypes.h stdint.h unistd.h
3984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3988 cat >>confdefs.h <<_ACEOF
3989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3998 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3999 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4006 if test "$MINIX" = yes; then
4008 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4011 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4014 $as_echo "#define _MINIX 1" >>confdefs.h
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4020 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4021 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4027 # define __EXTENSIONS__ 1
4028 $ac_includes_default
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_safe_to_define___extensions__=yes
4040 ac_cv_safe_to_define___extensions__=no
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4045 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4046 test $ac_cv_safe_to_define___extensions__ = yes &&
4047 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4049 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4051 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4053 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4055 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4060 if test $ac_cv_c_compiler_gnu = yes; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4062 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4063 if ${ac_cv_prog_gcc_traditional+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 ac_pattern="Autoconf.*'x'"
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4074 ac_cv_prog_gcc_traditional=yes
4076 ac_cv_prog_gcc_traditional=no
4081 if test $ac_cv_prog_gcc_traditional = no; then
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4089 ac_cv_prog_gcc_traditional=yes
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4096 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4097 if test $ac_cv_prog_gcc_traditional = yes; then
4098 CC="$CC -traditional"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4103 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4104 if ${ac_cv_prog_suncc+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 cat > conftest.c <<EOF
4112 if { ac_try='${CC-cc} -E conftest.c'
4113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4118 ac_cv_prog_suncc=yes
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4124 $as_echo "$ac_cv_prog_suncc" >&6; }
4125 if test -n "$ac_tool_prefix"; then
4126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_RANLIB+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$RANLIB"; then
4134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 RANLIB=$ac_cv_prog_RANLIB
4154 if test -n "$RANLIB"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4156 $as_echo "$RANLIB" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4164 if test -z "$ac_cv_prog_RANLIB"; then
4165 ac_ct_RANLIB=$RANLIB
4166 # Extract the first word of "ranlib", so it can be a program name with args.
4167 set dummy ranlib; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -n "$ac_ct_RANLIB"; then
4174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_ac_ct_RANLIB="ranlib"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4194 if test -n "$ac_ct_RANLIB"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4196 $as_echo "$ac_ct_RANLIB" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4202 if test "x$ac_ct_RANLIB" = x; then
4205 case $cross_compiling:$ac_tool_warned in
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned=yes ;;
4211 RANLIB=$ac_ct_RANLIB
4214 RANLIB="$ac_cv_prog_RANLIB"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4220 $as_echo_n "checking if compiler is clang... " >&6; }
4221 if ${ax_cv_cc_clang+:} false; then :
4222 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4241 if ac_fn_c_try_compile "$LINENO"; then :
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4250 $as_echo "$ax_cv_cc_clang" >&6; }
4253 if test "x$GCC" = "xyes"; then
4254 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4259 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4260 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4261 $as_echo_n "(cached) " >&6
4265 CFLAGS_SAVED=$CFLAGS
4266 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ax_cv_cc_qunused_arguments_flag="yes"
4288 ax_cv_cc_qunused_arguments_flag="no"
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 CFLAGS="$CFLAGS_SAVED"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4302 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4304 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4305 CFLAGS="$CFLAGS -Qunused-arguments"
4306 LDFLAGS="$LDFLAGS -Qunused-arguments"
4309 # Check whether --enable-largefile was given.
4310 if test "${enable_largefile+set}" = set; then :
4311 enableval=$enable_largefile;
4314 if test "$enable_largefile" != no; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4318 if ${ac_cv_sys_largefile_CC+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 ac_cv_sys_largefile_CC=no
4322 if test "$GCC" != yes; then
4325 # IRIX 6.2 and later do not support large files by default,
4326 # so use the C compiler's -n32 option if that helps.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 /* Check that off_t can represent 2**63 - 1 correctly.
4331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4332 since some C++ compilers masquerading as C compilers
4333 incorrectly reject 9223372036854775807. */
4334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4336 && LARGE_OFF_T % 2147483647 == 1)
4346 if ac_fn_c_try_compile "$LINENO"; then :
4349 rm -f core conftest.err conftest.$ac_objext
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_sys_largefile_CC=' -n32'; break
4354 rm -f core conftest.err conftest.$ac_objext
4358 rm -f conftest.$ac_ext
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4363 if test "$ac_cv_sys_largefile_CC" != no; then
4364 CC=$CC$ac_cv_sys_largefile_CC
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4369 if ${ac_cv_sys_file_offset_bits+:} false; then :
4370 $as_echo_n "(cached) " >&6
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <sys/types.h>
4376 /* Check that off_t can represent 2**63 - 1 correctly.
4377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4378 since some C++ compilers masquerading as C compilers
4379 incorrectly reject 9223372036854775807. */
4380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4382 && LARGE_OFF_T % 2147483647 == 1)
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_sys_file_offset_bits=no; break
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #define _FILE_OFFSET_BITS 64
4399 #include <sys/types.h>
4400 /* Check that off_t can represent 2**63 - 1 correctly.
4401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4402 since some C++ compilers masquerading as C compilers
4403 incorrectly reject 9223372036854775807. */
4404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4406 && LARGE_OFF_T % 2147483647 == 1)
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_sys_file_offset_bits=64; break
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 ac_cv_sys_file_offset_bits=unknown
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4426 case $ac_cv_sys_file_offset_bits in #(
4429 cat >>confdefs.h <<_ACEOF
4430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4435 if test $ac_cv_sys_file_offset_bits = unknown; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4438 if ${ac_cv_sys_large_files+:} false; then :
4439 $as_echo_n "(cached) " >&6
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_cv_sys_large_files=no; break
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #define _LARGE_FILES 1
4468 #include <sys/types.h>
4469 /* Check that off_t can represent 2**63 - 1 correctly.
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471 since some C++ compilers masquerading as C compilers
4472 incorrectly reject 9223372036854775807. */
4473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475 && LARGE_OFF_T % 2147483647 == 1)
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 ac_cv_sys_large_files=1; break
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_sys_large_files=unknown
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4494 $as_echo "$ac_cv_sys_large_files" >&6; }
4495 case $ac_cv_sys_large_files in #(
4498 cat >>confdefs.h <<_ACEOF
4499 #define _LARGE_FILES $ac_cv_sys_large_files
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4512 if ${ac_cv_c_bigendian+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 ac_cv_c_bigendian=unknown
4516 # See if we're dealing with a universal compiler.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #ifndef __APPLE_CC__
4520 not a universal capable compiler
4525 if ac_fn_c_try_compile "$LINENO"; then :
4527 # Check for potential -arch flags. It is not universal unless
4528 # there are at least two -arch flags with different values.
4531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4532 if test -n "$ac_prev"; then
4534 i?86 | x86_64 | ppc | ppc64)
4535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4538 ac_cv_c_bigendian=universal
4544 elif test "x$ac_word" = "x-arch"; then
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 if test $ac_cv_c_bigendian = unknown; then
4551 # See if sys/param.h defines the BYTE_ORDER macro.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <sys/types.h>
4555 #include <sys/param.h>
4560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4580 #if BYTE_ORDER != BIG_ENDIAN
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_c_bigendian=yes
4591 ac_cv_c_bigendian=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 if test $ac_cv_c_bigendian = unknown; then
4598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 # It does; now see whether it defined to _BIG_ENDIAN or not.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_c_bigendian=yes
4634 ac_cv_c_bigendian=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test $ac_cv_c_bigendian = unknown; then
4641 # Compile a test program.
4642 if test "$cross_compiling" = yes; then :
4643 # Try to guess by grepping values from an object file.
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 short int ascii_mm[] =
4647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4648 short int ascii_ii[] =
4649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4650 int use_ascii (int i) {
4651 return ascii_mm[i] + ascii_ii[i];
4653 short int ebcdic_ii[] =
4654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4655 short int ebcdic_mm[] =
4656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657 int use_ebcdic (int i) {
4658 return ebcdic_mm[i] + ebcdic_ii[i];
4665 return use_ascii (foo) == use_ebcdic (foo);
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4672 ac_cv_c_bigendian=yes
4674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4675 if test "$ac_cv_c_bigendian" = unknown; then
4676 ac_cv_c_bigendian=no
4678 # finding both strings is unlikely to happen, but who knows?
4679 ac_cv_c_bigendian=unknown
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 $ac_includes_default
4692 /* Are we little or big endian? From Harbison&Steele. */
4696 char c[sizeof (long int)];
4699 return u.c[sizeof (long int) - 1] == 1;
4705 if ac_fn_c_try_run "$LINENO"; then :
4706 ac_cv_c_bigendian=no
4708 ac_cv_c_bigendian=yes
4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4711 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4717 $as_echo "$ac_cv_c_bigendian" >&6; }
4718 case $ac_cv_c_bigendian in #(
4720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4730 as_fn_error $? "unknown endianness
4731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4735 # Extract the first word of "gmake", so it can be a program name with args.
4736 set dummy gmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_GMAKE+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$GMAKE"; then
4743 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_GMAKE="yes"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4763 GMAKE=$ac_cv_prog_GMAKE
4764 if test -n "$GMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4766 $as_echo "$GMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 if test $GMAKE = no; then
4774 # Extract the first word of "make", so it can be a program name with args.
4775 set dummy make; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_path_MAKE+:} false; then :
4779 $as_echo_n "(cached) " >&6
4783 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4805 MAKE=$ac_cv_path_MAKE
4806 if test -n "$MAKE"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4808 $as_echo "$MAKE" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 # Extract the first word of "gmake", so it can be a program name with args.
4817 set dummy gmake; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_MAKE+:} false; then :
4821 $as_echo_n "(cached) " >&6
4825 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4847 MAKE=$ac_cv_path_MAKE
4848 if test -n "$MAKE"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4850 $as_echo "$MAKE" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4858 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4859 if test -z "$makever"; then
4860 as_fn_error $? "GNU Make is not installed. Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4865 $as_echo_n "checking number of system cores... " >&6; }
4866 if ${ax_cv_system_cores+:} false; then :
4867 $as_echo_n "(cached) " >&6
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 if test "$cross_compiling" = yes; then :
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4886 # include <windows.h>
4888 # include <sys/param.h>
4889 # include <sys/sysctl.h>
4891 # include <unistd.h>
4894 int main (int argc, char *argv[])
4899 SYSTEM_INFO sysinfo;
4900 GetSystemInfo(&sysinfo);
4902 count = sysinfo.dwNumberOfProcessors;
4909 nm[1] = HW_AVAILCPU;
4910 sysctl(nm, 2, &count, &len, NULL, 0);
4914 sysctl(nm, 2, &count, &len, NULL, 0);
4921 count = sysconf(_SC_NPROCESSORS_ONLN);
4928 if ac_fn_c_try_run "$LINENO"; then :
4929 ax_cv_system_cores=$?
4931 ax_cv_system_cores=$?
4933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4934 conftest.$ac_objext conftest.beam conftest.$ac_ext
4938 ac_cpp='$CPP $CPPFLAGS'
4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4946 $as_echo "$ax_cv_system_cores" >&6; }
4951 # Extract the first word of "git", so it can be a program name with args.
4952 set dummy git; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_GIT+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$GIT"; then
4959 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_GIT="yes"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4980 if test -n "$GIT"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4982 $as_echo "$GIT" >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4991 # Check whether --enable-strict-dependencies was given.
4992 if test "${enable_strict_dependencies+set}" = set; then :
4993 enableval=$enable_strict_dependencies;
4997 # Check whether --enable-werror was given.
4998 if test "${enable_werror+set}" = set; then :
4999 enableval=$enable_werror; case "$enableval" in
5010 docdir='${datadir}/doc/freeradius'
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5012 $as_echo_n "checking docdir... " >&6; }
5014 # Check whether --with-docdir was given.
5015 if test "${with_docdir+set}" = set; then :
5016 withval=$with_docdir; case "$withval" in
5022 [\\/$]* | ?:[\\/]* )
5026 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5034 $as_echo "$docdir" >&6; }
5035 if test "x$docdir" = xno; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5037 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5040 logdir='${localstatedir}/log/radius'
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5042 $as_echo_n "checking logdir... " >&6; }
5044 # Check whether --with-logdir was given.
5045 if test "${with_logdir+set}" = set; then :
5046 withval=$with_logdir; case "$withval" in
5048 as_fn_error $? "Need logdir" "$LINENO" 5
5052 [\\/$]* | ?:[\\/]* )
5056 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5064 $as_echo "$logdir" >&6; }
5066 radacctdir='${logdir}/radacct'
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5068 $as_echo_n "checking radacctdir... " >&6; }
5070 # Check whether --with-radacctdir was given.
5071 if test "${with_radacctdir+set}" = set; then :
5072 withval=$with_radacctdir; case "$withval" in
5074 as_fn_error $? "Need radacctdir" "$LINENO" 5
5078 [\\/$]* | ?:[\\/]* )
5079 radacctdir="$withval"
5082 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5090 $as_echo "$radacctdir" >&6; }
5092 raddbdir='${sysconfdir}/raddb'
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5094 $as_echo_n "checking raddbdir... " >&6; }
5096 # Check whether --with-raddbdir was given.
5097 if test "${with_raddbdir+set}" = set; then :
5098 withval=$with_raddbdir; case "$withval" in
5100 as_fn_error $? "Need raddbdir" "$LINENO" 5
5104 [\\/$]* | ?:[\\/]* )
5108 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5116 $as_echo "$raddbdir" >&6; }
5118 modconfdir="$raddbdir/mods-config"
5121 WITH_ASCEND_BINARY=yes
5123 # Check whether --with-ascend-binary was given.
5124 if test "${with_ascend_binary+set}" = set; then :
5125 withval=$with_ascend_binary; case "$withval" in
5129 WITH_ASCEND_BINARY=no
5134 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5136 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5142 # Check whether --with-threads was given.
5143 if test "${with_threads+set}" = set; then :
5144 withval=$with_threads; case "$withval" in
5156 # Check whether --with-tcp was given.
5157 if test "${with_tcp+set}" = set; then :
5158 withval=$with_tcp; case "$withval" in
5167 if test "x$WITH_TCP" = "xyes"; then
5169 $as_echo "#define WITH_TCP 1" >>confdefs.h
5175 # Check whether --with-vmps was given.
5176 if test "${with_vmps+set}" = set; then :
5177 withval=$with_vmps; case "$withval" in
5186 if test "x$WITH_VMPS" = "xyes"; then
5188 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5194 # Check whether --with-dhcp was given.
5195 if test "${with_dhcp+set}" = set; then :
5196 withval=$with_dhcp; case "$withval" in
5205 if test "x$WITH_DHCP" = "xyes"; then
5207 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5213 # Check whether --with-static_modules was given.
5214 if test "${with_static_modules+set}" = set; then :
5215 withval=$with_static_modules;
5216 for i in $withval; do
5217 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5225 # Check whether --with-modules was given.
5226 if test "${with_modules+set}" = set; then :
5227 withval=$with_modules;
5228 for i in $withval; do
5229 MODULES="$MODULES $i"
5237 # Check whether --with-experimental-modules was given.
5238 if test "${with_experimental_modules+set}" = set; then :
5239 withval=$with_experimental_modules; case "$withval" in
5254 # Check whether --with-openssl was given.
5255 if test "${with_openssl+set}" = set; then :
5256 withval=$with_openssl; case "$withval" in
5268 OPENSSL_INCLUDE_DIR=
5270 # Check whether --with-openssl-includes was given.
5271 if test "${with_openssl_includes+set}" = set; then :
5272 withval=$with_openssl_includes; case "$withval" in
5273 *) OPENSSL_INCLUDE_DIR="$withval"
5282 # Check whether --with-openssl-libraries was given.
5283 if test "${with_openssl_libraries+set}" = set; then :
5284 withval=$with_openssl_libraries; case "$withval" in
5285 *) OPENSSL_LIB_DIR="$withval"
5294 # Check whether --with-rlm-FOO-lib-dir was given.
5295 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5296 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5305 # Check whether --with-rlm-FOO-include-dir was given.
5306 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5307 withval=$with_rlm_FOO_include_dir; case "$withval" in
5317 # Check whether --with-udpfromto was given.
5318 if test "${with_udpfromto+set}" = set; then :
5319 withval=$with_udpfromto; case "$withval" in
5330 if test "x$WITH_UDPFROMTO" = "xyes"; then
5332 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5338 # Extract the first word of "perl", so it can be a program name with args.
5339 set dummy perl; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_path_PERL+:} false; then :
5343 $as_echo_n "(cached) " >&6
5347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5369 PERL=$ac_cv_path_PERL
5370 if test -n "$PERL"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5372 $as_echo "$PERL" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 if test "x$ac_cv_path_PERL" = "x"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5381 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5383 # Extract the first word of "snmpget", so it can be a program name with args.
5384 set dummy snmpget; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_SNMPGET+:} false; then :
5388 $as_echo_n "(cached) " >&6
5392 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 SNMPGET=$ac_cv_path_SNMPGET
5414 if test -n "$SNMPGET"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5416 $as_echo "$SNMPGET" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 if test "x$ac_cv_path_SNMPGET" = "x"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5425 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5428 # Extract the first word of "snmpwalk", so it can be a program name with args.
5429 set dummy snmpwalk; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_SNMPWALK+:} false; then :
5433 $as_echo_n "(cached) " >&6
5437 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 SNMPWALK=$ac_cv_path_SNMPWALK
5459 if test -n "$SNMPWALK"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5461 $as_echo "$SNMPWALK" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5470 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5473 # Extract the first word of "rusers", so it can be a program name with args.
5474 set dummy rusers; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_path_RUSERS+:} false; then :
5478 $as_echo_n "(cached) " >&6
5482 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5504 RUSERS=$ac_cv_path_RUSERS
5505 if test -n "$RUSERS"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5507 $as_echo "$RUSERS" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 missing_dir=`cd $ac_aux_dir && pwd`
5516 # expand $ac_aux_dir to an absolute path
5517 am_aux_dir=`cd $ac_aux_dir && pwd`
5519 if test x"${MISSING+set}" != xset; then
5522 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5524 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5527 # Use eval to expand $SHELL
5528 if eval "$MISSING --run true"; then
5529 am_missing_run="$MISSING --run "
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5533 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5537 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5540 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5543 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5546 # Extract the first word of "locate", so it can be a program name with args.
5547 set dummy locate; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_path_LOCATE+:} false; then :
5551 $as_echo_n "(cached) " >&6
5555 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 LOCATE=$ac_cv_path_LOCATE
5577 if test -n "$LOCATE"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5579 $as_echo "$LOCATE" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5586 # Extract the first word of "dirname", so it can be a program name with args.
5587 set dummy dirname; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_path_DIRNAME+:} false; then :
5591 $as_echo_n "(cached) " >&6
5595 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 DIRNAME=$ac_cv_path_DIRNAME
5617 if test -n "$DIRNAME"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5619 $as_echo "$DIRNAME" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5626 # Extract the first word of "grep", so it can be a program name with args.
5627 set dummy grep; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_path_GREP+:} false; then :
5631 $as_echo_n "(cached) " >&6
5635 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 GREP=$ac_cv_path_GREP
5657 if test -n "$GREP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5659 $as_echo "$GREP" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5669 if test "x$WITH_THREADS" = "xyes"; then
5670 if test $ac_cv_prog_suncc = "yes"; then
5671 CFLAGS="$CFLAGS -mt"
5674 for ac_header in pthread.h
5676 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5677 if test "x$ac_cv_header_pthread_h" = xyes; then :
5678 cat >>confdefs.h <<_ACEOF
5679 #define HAVE_PTHREAD_H 1
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5690 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5691 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 ac_check_lib_save_LIBS=$LIBS
5695 LIBS="-lpthread $LIBS"
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5699 /* Override any GCC internal prototype to avoid an error.
5700 Use char because int might match the return type of a GCC
5701 builtin and then its argument prototype would still apply. */
5705 char pthread_create ();
5709 return pthread_create ();
5714 if ac_fn_c_try_link "$LINENO"; then :
5715 ac_cv_lib_pthread_pthread_create=yes
5717 ac_cv_lib_pthread_pthread_create=no
5719 rm -f core conftest.err conftest.$ac_objext \
5720 conftest$ac_exeext conftest.$ac_ext
5721 LIBS=$ac_check_lib_save_LIBS
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5724 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5725 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5727 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5728 LIBS="-lpthread $LIBS"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5733 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5734 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 ac_check_lib_save_LIBS=$LIBS
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5742 /* Override any GCC internal prototype to avoid an error.
5743 Use char because int might match the return type of a GCC
5744 builtin and then its argument prototype would still apply. */
5748 char pthread_create ();
5752 return pthread_create ();
5757 if ac_fn_c_try_link "$LINENO"; then :
5758 ac_cv_lib_c_r_pthread_create=yes
5760 ac_cv_lib_c_r_pthread_create=no
5762 rm -f core conftest.err conftest.$ac_objext \
5763 conftest$ac_exeext conftest.$ac_ext
5764 LIBS=$ac_check_lib_save_LIBS
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5767 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5768 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5769 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5781 if test "x$WITH_THREADS" != "xyes"; then
5783 ac_cv_header_pthread_h="no"
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5788 $as_echo_n "checking for library containing sem_init... " >&6; }
5789 if ${ac_cv_search_sem_init+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 ac_func_search_save_LIBS=$LIBS
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5796 /* Override any GCC internal prototype to avoid an error.
5797 Use char because int might match the return type of a GCC
5798 builtin and then its argument prototype would still apply. */
5811 for ac_lib in '' pthread sem posix4 rt semaphore; do
5812 if test -z "$ac_lib"; then
5813 ac_res="none required"
5816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5818 if ac_fn_c_try_link "$LINENO"; then :
5819 ac_cv_search_sem_init=$ac_res
5821 rm -f core conftest.err conftest.$ac_objext \
5823 if ${ac_cv_search_sem_init+:} false; then :
5827 if ${ac_cv_search_sem_init+:} false; then :
5830 ac_cv_search_sem_init=no
5833 LIBS=$ac_func_search_save_LIBS
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5836 $as_echo "$ac_cv_search_sem_init" >&6; }
5837 ac_res=$ac_cv_search_sem_init
5838 if test "$ac_res" != no; then :
5839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5842 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
5848 if test "x$WITH_THREADS" = "xyes"; then
5850 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5856 if ${ac_cv_lib_dl_dlopen+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 ac_check_lib_save_LIBS=$LIBS
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5864 /* Override any GCC internal prototype to avoid an error.
5865 Use char because int might match the return type of a GCC
5866 builtin and then its argument prototype would still apply. */
5879 if ac_fn_c_try_link "$LINENO"; then :
5880 ac_cv_lib_dl_dlopen=yes
5882 ac_cv_lib_dl_dlopen=no
5884 rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 LIBS=$ac_check_lib_save_LIBS
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE_LIBDL 1
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5901 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5902 if ${ac_cv_lib_socket_getsockname+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 ac_check_lib_save_LIBS=$LIBS
5906 LIBS="-lsocket $LIBS"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5910 /* Override any GCC internal prototype to avoid an error.
5911 Use char because int might match the return type of a GCC
5912 builtin and then its argument prototype would still apply. */
5916 char getsockname ();
5920 return getsockname ();
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 ac_cv_lib_socket_getsockname=yes
5928 ac_cv_lib_socket_getsockname=no
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5935 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5936 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBSOCKET 1
5941 LIBS="-lsocket $LIBS"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5947 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5948 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5949 $as_echo_n "(cached) " >&6
5951 ac_check_lib_save_LIBS=$LIBS
5952 LIBS="-lresolv $LIBS"
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5956 /* Override any GCC internal prototype to avoid an error.
5957 Use char because int might match the return type of a GCC
5958 builtin and then its argument prototype would still apply. */
5966 return inet_aton ();
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 ac_cv_lib_resolv_inet_aton=yes
5974 ac_cv_lib_resolv_inet_aton=no
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5978 LIBS=$ac_check_lib_save_LIBS
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5981 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5982 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE_LIBRESOLV 1
5987 LIBS="-lresolv $LIBS"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5993 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5994 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5995 $as_echo_n "(cached) " >&6
5997 ac_check_lib_save_LIBS=$LIBS
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 /* Override any GCC internal prototype to avoid an error.
6003 Use char because int might match the return type of a GCC
6004 builtin and then its argument prototype would still apply. */
6012 return inet_ntoa ();
6017 if ac_fn_c_try_link "$LINENO"; then :
6018 ac_cv_lib_nsl_inet_ntoa=yes
6020 ac_cv_lib_nsl_inet_ntoa=no
6022 rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6027 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6028 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_LIBNSL 1
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6038 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6039 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lws2_32 $LIBS"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 /* Override any GCC internal prototype to avoid an error.
6048 Use char because int might match the return type of a GCC
6049 builtin and then its argument prototype would still apply. */
6062 if ac_fn_c_try_link "$LINENO"; then :
6063 ac_cv_lib_ws2_32_htonl=yes
6065 ac_cv_lib_ws2_32_htonl=no
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6072 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6073 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_LIBWS2_32 1
6078 LIBS="-lws2_32 $LIBS"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6085 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6086 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6087 $as_echo_n "(cached) " >&6
6089 ac_check_lib_save_LIBS=$LIBS
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6094 /* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6100 char pcap_open_live ();
6104 return pcap_open_live ();
6109 if ac_fn_c_try_link "$LINENO"; then :
6110 ac_cv_lib_pcap_pcap_open_live=yes
6112 ac_cv_lib_pcap_pcap_open_live=no
6114 rm -f core conftest.err conftest.$ac_objext \
6115 conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_check_lib_save_LIBS
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6119 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6120 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6124 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6130 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6138 $as_echo_n "checking for a readline compatible library... " >&6; }
6139 if ${vl_cv_lib_readline+:} false; then :
6140 $as_echo_n "(cached) " >&6
6144 for readline_lib in readline edit editline; do
6145 for termcap_lib in "" termcap curses ncurses; do
6146 if test -z "$termcap_lib"; then
6147 TRY_LIB="-l$readline_lib"
6149 TRY_LIB="-l$readline_lib -l$termcap_lib"
6151 LIBS="$ORIG_LIBS $TRY_LIB"
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6155 /* Override any GCC internal prototype to avoid an error.
6156 Use char because int might match the return type of a GCC
6157 builtin and then its argument prototype would still apply. */
6170 if ac_fn_c_try_link "$LINENO"; then :
6171 vl_cv_lib_readline="$TRY_LIB"
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6175 if test -n "$vl_cv_lib_readline"; then
6179 if test -n "$vl_cv_lib_readline"; then
6183 if test -z "$vl_cv_lib_readline"; then
6184 vl_cv_lib_readline="no"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6190 $as_echo "$vl_cv_lib_readline" >&6; }
6192 if test "$vl_cv_lib_readline" != "no"; then
6193 LIBREADLINE="$vl_cv_lib_readline"
6195 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6197 for ac_header in readline.h readline/readline.h
6199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6211 $as_echo_n "checking whether readline supports history... " >&6; }
6212 if ${vl_cv_lib_readline_history+:} false; then :
6213 $as_echo_n "(cached) " >&6
6216 vl_cv_lib_readline_history="no"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6220 /* Override any GCC internal prototype to avoid an error.
6221 Use char because int might match the return type of a GCC
6222 builtin and then its argument prototype would still apply. */
6226 char add_history ();
6230 return add_history ();
6235 if ac_fn_c_try_link "$LINENO"; then :
6236 vl_cv_lib_readline_history="yes"
6238 rm -f core conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6243 $as_echo "$vl_cv_lib_readline_history" >&6; }
6244 if test "$vl_cv_lib_readline_history" = "yes"; then
6246 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6248 for ac_header in history.h readline/history.h
6250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6253 cat >>confdefs.h <<_ACEOF
6254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6272 CFLAGS="$CFLAGS -DDARWIN"
6273 LIBS="-framework DirectoryService $LIBS"
6278 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6279 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6281 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6282 if eval \${$as_ac_Header+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <sys/types.h>
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 eval "$as_ac_Header=yes"
6302 eval "$as_ac_Header=no"
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 eval ac_res=\$$as_ac_Header
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6308 $as_echo "$ac_res" >&6; }
6309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6310 cat >>confdefs.h <<_ACEOF
6311 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6314 ac_header_dirent=$ac_hdr; break
6318 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6319 if test $ac_header_dirent = dirent.h; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6321 $as_echo_n "checking for library containing opendir... " >&6; }
6322 if ${ac_cv_search_opendir+:} false; then :
6323 $as_echo_n "(cached) " >&6
6325 ac_func_search_save_LIBS=$LIBS
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6344 for ac_lib in '' dir; do
6345 if test -z "$ac_lib"; then
6346 ac_res="none required"
6349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6351 if ac_fn_c_try_link "$LINENO"; then :
6352 ac_cv_search_opendir=$ac_res
6354 rm -f core conftest.err conftest.$ac_objext \
6356 if ${ac_cv_search_opendir+:} false; then :
6360 if ${ac_cv_search_opendir+:} false; then :
6363 ac_cv_search_opendir=no
6366 LIBS=$ac_func_search_save_LIBS
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6369 $as_echo "$ac_cv_search_opendir" >&6; }
6370 ac_res=$ac_cv_search_opendir
6371 if test "$ac_res" != no; then :
6372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6378 $as_echo_n "checking for library containing opendir... " >&6; }
6379 if ${ac_cv_search_opendir+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 ac_func_search_save_LIBS=$LIBS
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6386 /* Override any GCC internal prototype to avoid an error.
6387 Use char because int might match the return type of a GCC
6388 builtin and then its argument prototype would still apply. */
6401 for ac_lib in '' x; do
6402 if test -z "$ac_lib"; then
6403 ac_res="none required"
6406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6408 if ac_fn_c_try_link "$LINENO"; then :
6409 ac_cv_search_opendir=$ac_res
6411 rm -f core conftest.err conftest.$ac_objext \
6413 if ${ac_cv_search_opendir+:} false; then :
6417 if ${ac_cv_search_opendir+:} false; then :
6420 ac_cv_search_opendir=no
6423 LIBS=$ac_func_search_save_LIBS
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6426 $as_echo "$ac_cv_search_opendir" >&6; }
6427 ac_res=$ac_cv_search_opendir
6428 if test "$ac_res" != no; then :
6429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6436 $as_echo_n "checking for ANSI C header files... " >&6; }
6437 if ${ac_cv_header_stdc+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6455 if ac_fn_c_try_compile "$LINENO"; then :
6456 ac_cv_header_stdc=yes
6458 ac_cv_header_stdc=no
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 if test $ac_cv_header_stdc = yes; then
6463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470 $EGREP "memchr" >/dev/null 2>&1; then :
6473 ac_cv_header_stdc=no
6479 if test $ac_cv_header_stdc = yes; then
6480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "free" >/dev/null 2>&1; then :
6490 ac_cv_header_stdc=no
6496 if test $ac_cv_header_stdc = yes; then
6497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6498 if test "$cross_compiling" = yes; then :
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6505 #if ((' ' & 0x0FF) == 0x020)
6506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6509 # define ISLOWER(c) \
6510 (('a' <= (c) && (c) <= 'i') \
6511 || ('j' <= (c) && (c) <= 'r') \
6512 || ('s' <= (c) && (c) <= 'z'))
6513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6521 for (i = 0; i < 256; i++)
6522 if (XOR (islower (i), ISLOWER (i))
6523 || toupper (i) != TOUPPER (i))
6528 if ac_fn_c_try_run "$LINENO"; then :
6531 ac_cv_header_stdc=no
6533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6534 conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6540 $as_echo "$ac_cv_header_stdc" >&6; }
6541 if test $ac_cv_header_stdc = yes; then
6543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6548 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6549 if ${ac_cv_header_time+:} false; then :
6550 $as_echo_n "(cached) " >&6
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <sys/time.h>
6561 if ((struct tm *) 0)
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 ac_cv_header_time=yes
6570 ac_cv_header_time=no
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6575 $as_echo "$ac_cv_header_time" >&6; }
6576 if test $ac_cv_header_time = yes; then
6578 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6583 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6584 if ${ac_cv_header_sys_wait_h+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 #include <sys/types.h>
6590 #include <sys/wait.h>
6592 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6595 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6603 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 ac_cv_header_sys_wait_h=yes
6611 ac_cv_header_sys_wait_h=no
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6616 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6617 if test $ac_cv_header_sys_wait_h = yes; then
6619 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6667 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6669 cat >>confdefs.h <<_ACEOF
6670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6678 for ac_header in net/if.h
6680 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6681 # include <sys/socket.h>
6685 if test "x$ac_cv_header_net_if_h" = xyes; then :
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_NET_IF_H 1
6695 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6698 $as_echo "#define OSFC2 /**/" >>confdefs.h
6702 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6705 $as_echo "#define OSFSIA /**/" >>confdefs.h
6709 if test "x$WITH_OPENSSL" = xyes; then
6711 old_LDFLAGS="$LDFLAGS"
6713 OPENSSL_INCLUDE="-DNO_OPENSSL"
6715 if test "x$OPENSSL_LIB_DIR" != "x"; then
6716 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6720 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6721 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6722 $as_echo_n "(cached) " >&6
6724 ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lcrypto $LIBS"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6729 /* Override any GCC internal prototype to avoid an error.
6730 Use char because int might match the return type of a GCC
6731 builtin and then its argument prototype would still apply. */
6744 if ac_fn_c_try_link "$LINENO"; then :
6745 ac_cv_lib_crypto_DH_new=yes
6747 ac_cv_lib_crypto_DH_new=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6754 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6755 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6757 LIBS="-lcrypto $LIBS"
6759 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6762 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6763 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 ac_check_lib_save_LIBS=$LIBS
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6771 /* Override any GCC internal prototype to avoid an error.
6772 Use char because int might match the return type of a GCC
6773 builtin and then its argument prototype would still apply. */
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 ac_cv_lib_ssl_SSL_new=yes
6789 ac_cv_lib_ssl_SSL_new=no
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6796 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6797 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6800 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6802 if test "x$OPENSSL_LIB_DIR" != "x"; then
6803 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6805 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6811 as_fn_error $? "failed linking to libssl
6812 See \`config.log' for more details" "$LINENO" 5; }
6821 old_CPPFLAGS=$CPPFLAGS
6822 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6823 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6826 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6841 cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6849 as_fn_error $? "failed locating OpenSSL headers
6850 See \`config.log' for more details" "$LINENO" 5; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6859 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <openssl/crypto.h>
6863 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "yes" >/dev/null 2>&1; then :
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872 $as_echo "yes" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6880 as_fn_error $? "OpenSSL version too old
6881 See \`config.log' for more details" "$LINENO" 5; }
6888 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6889 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6891 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6895 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6896 if test "$cross_compiling" = yes; then :
6897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6899 as_fn_error $? "cannot run test program while cross compiling
6900 See \`config.log' for more details" "$LINENO" 5; }
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6906 #include <openssl/opensslv.h>
6907 #include <openssl/crypto.h>
6913 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6916 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6925 if ac_fn_c_try_run "$LINENO"; then :
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6928 $as_echo "yes" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 as_fn_error $? "OpenSSL library version does not match header version
6937 See \`config.log' for more details" "$LINENO" 5; }
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942 conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 CPPFLAGS=$old_CPPFLAGS
6948 LDFLAGS="$old_LDFLAGS"
6955 if test "x$PCAP_LIBS" = x; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6957 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6959 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6960 if test "x$ac_cv_header_pcap_h" = xyes; then :
6963 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6967 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6968 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 ac_check_lib_save_LIBS=$LIBS
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6976 /* Override any GCC internal prototype to avoid an error.
6977 Use char because int might match the return type of a GCC
6978 builtin and then its argument prototype would still apply. */
6982 char pcap_fopen_offline ();
6986 return pcap_fopen_offline ();
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 ac_cv_lib_pcap_pcap_fopen_offline=yes
6994 ac_cv_lib_pcap_pcap_fopen_offline=no
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 LIBS=$ac_check_lib_save_LIBS
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7001 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7002 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7005 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7013 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7014 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 ac_check_lib_save_LIBS=$LIBS
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7022 /* Override any GCC internal prototype to avoid an error.
7023 Use char because int might match the return type of a GCC
7024 builtin and then its argument prototype would still apply. */
7028 char pcap_dump_fopen ();
7032 return pcap_dump_fopen ();
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 ac_cv_lib_pcap_pcap_dump_fopen=yes
7040 ac_cv_lib_pcap_pcap_dump_fopen=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LIBS=$ac_check_lib_save_LIBS
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7047 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7048 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7051 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7062 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7072 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7073 if test "x$ac_cv_type_off_t" = xyes; then :
7077 cat >>confdefs.h <<_ACEOF
7078 #define off_t long int
7083 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7084 if test "x$ac_cv_type_pid_t" = xyes; then :
7088 cat >>confdefs.h <<_ACEOF
7094 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7095 if test "x$ac_cv_type_size_t" = xyes; then :
7099 cat >>confdefs.h <<_ACEOF
7100 #define size_t unsigned int
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7106 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7107 if ${ac_cv_type_uid_t+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "uid_t" >/dev/null 2>&1; then :
7117 ac_cv_type_uid_t=yes
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7125 $as_echo "$ac_cv_type_uid_t" >&6; }
7126 if test $ac_cv_type_uid_t = no; then
7128 $as_echo "#define uid_t int" >>confdefs.h
7131 $as_echo "#define gid_t int" >>confdefs.h
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7138 $as_echo_n "checking for socklen_t... " >&6; }
7139 if ${ac_cv_type_socklen_t+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 ac_cv_type_socklen_t=no
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #ifdef HAVE_SYS_TYPES_H
7146 # include <sys/types.h>
7149 #ifdef HAVE_SYS_SOCKET_H
7150 # include <sys/socket.h>
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 ac_cv_type_socklen_t=yes
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7169 $as_echo "$ac_cv_type_socklen_t" >&6; }
7171 if test "$ac_cv_type_socklen_t" != "yes"; then
7173 $as_echo "#define socklen_t int" >>confdefs.h
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7180 $as_echo_n "checking for uint8_t... " >&6; }
7181 if ${ac_cv_type_uint8_t+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 ac_cv_type_uint8_t=no
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #ifdef HAVE_INTTYPES_H
7188 # include <inttypes.h>
7191 #ifdef HAVE_STDINT_H
7192 # include <stdint.h>
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 ac_cv_type_uint8_t=yes
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7211 $as_echo "$ac_cv_type_uint8_t" >&6; }
7213 if test "$ac_cv_type_uint8_t" != "yes"; then
7215 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7222 $as_echo_n "checking for uint16_t... " >&6; }
7223 if ${ac_cv_type_uint16_t+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 ac_cv_type_uint16_t=no
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 #ifdef HAVE_INTTYPES_H
7230 # include <inttypes.h>
7233 #ifdef HAVE_STDINT_H
7234 # include <stdint.h>
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246 ac_cv_type_uint16_t=yes
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7253 $as_echo "$ac_cv_type_uint16_t" >&6; }
7255 if test "$ac_cv_type_uint16_t" != "yes"; then
7257 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7264 $as_echo_n "checking for uint32_t... " >&6; }
7265 if ${ac_cv_type_uint32_t+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 ac_cv_type_uint32_t=no
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #ifdef HAVE_INTTYPES_H
7272 # include <inttypes.h>
7275 #ifdef HAVE_STDINT_H
7276 # include <stdint.h>
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288 ac_cv_type_uint32_t=yes
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7295 $as_echo "$ac_cv_type_uint32_t" >&6; }
7297 if test "$ac_cv_type_uint32_t" != "yes"; then
7299 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7304 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7305 #ifdef HAVE_NETINET_IN_H
7306 # include <netinet/in.h>
7311 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7313 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7318 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7319 #ifdef HAVE_NETINET_IN_H
7320 # include <netinet/in.h>
7323 #ifdef HAVE_SYS_SOCKET_H
7324 # include <sys/socket.h>
7328 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7330 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7335 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7336 #ifdef HAVE_NETINET_IN_H
7337 # include <netinet/in.h>
7341 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7343 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7348 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7349 #ifdef HAVE_SYS_TYPES_H
7350 # include <sys/types.h>
7353 #ifdef HAVE_SYS_SOCKET_H
7354 # include <sys/socket.h>
7363 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7365 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7408 cat >>confdefs.h <<_ACEOF
7409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7417 $as_echo_n "checking return type of signal handlers... " >&6; }
7418 if ${ac_cv_type_signal+:} false; then :
7419 $as_echo_n "(cached) " >&6
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <sys/types.h>
7429 return *(signal (0, 0)) (0) == 1;
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 ac_cv_type_signal=int
7437 ac_cv_type_signal=void
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7442 $as_echo "$ac_cv_type_signal" >&6; }
7444 cat >>confdefs.h <<_ACEOF
7445 #define RETSIGTYPE $ac_cv_type_signal
7450 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7453 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7460 #ifdef HAVE_STDDEF_H
7464 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7470 int foo = offsetof(struct utmpx, ut_xtime)
7475 if ac_fn_c_try_compile "$LINENO"; then :
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7483 if test "x$has_element" != "x"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7486 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7493 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7495 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7502 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7508 #include <netinet/in.h>
7509 #ifdef HAVE_STDDEF_H
7513 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7519 int foo = offsetof(struct in_pktinfo, ipi_addr)
7524 if ac_fn_c_try_compile "$LINENO"; then :
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7532 if test "x$has_element" != "x"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }
7535 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7542 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7544 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7550 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7556 #include <netinet/in.h>
7557 #ifdef HAVE_STDDEF_H
7561 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7567 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7572 if ac_fn_c_try_compile "$LINENO"; then :
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7580 if test "x$has_element" != "x"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582 $as_echo "yes" >&6; }
7583 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7590 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7592 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7598 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7599 if ${ac_cv_c_const+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7610 /* Ultrix mips cc rejects this sort of thing. */
7611 typedef int charset[2];
7612 const charset cs = { 0, 0 };
7613 /* SunOS 4.1.1 cc rejects this. */
7614 char const *const *pcpcc;
7616 /* NEC SVR4.0.2 mips cc rejects this. */
7617 struct point {int x, y;};
7618 static struct point const zero = {0,0};
7619 /* AIX XL C 1.02.0.0 rejects this.
7620 It does not let you subtract one const X* pointer from another in
7621 an arm of an if-expression whose if-part is not a constant
7623 const char *g = "string";
7624 pcpcc = &g + (g ? g-g : 0);
7625 /* HPUX 7.0 cc rejects these. */
7627 ppc = (char**) pcpcc;
7628 pcpcc = (char const *const *) ppc;
7629 { /* SCO 3.2v4 cc rejects this sort of thing. */
7632 char const *s = 0 ? (char *) 0 : (char const *) 0;
7637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7639 const int *foo = &x[0];
7642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7643 typedef const int *iptr;
7647 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7649 struct s { int j; const int *ap[3]; } bx;
7650 struct s *b = &bx; b->j = 5;
7652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7656 return !cs[0] && !zero.x;
7663 if ac_fn_c_try_compile "$LINENO"; then :
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7671 $as_echo "$ac_cv_c_const" >&6; }
7672 if test $ac_cv_c_const = no; then
7674 $as_echo "#define const /**/" >>confdefs.h
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7680 $as_echo_n "checking type of OS... " >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7683 $as_echo "$OS" >&6; }
7684 if test "$OS" = "OS/2"; then
7691 if test "x$developer" = "xyes"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7693 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7697 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7698 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7699 $as_echo_n "(cached) " >&6
7703 CFLAGS_SAVED=$CFLAGS
7704 CFLAGS="$CFLAGS -Werror -Wdocumentation"
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 ax_cv_cc_wdocumentation_flag="yes"
7726 ax_cv_cc_wdocumentation_flag="no"
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 CFLAGS="$CFLAGS_SAVED"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7740 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7742 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7743 devflags="-Wdocumentation"
7746 if test "x$GCC" = "xyes"; then
7747 devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7752 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7754 CFLAGS="$CFLAGS $devflags"
7755 if test "x$EXPERIMENTAL" != "xno"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7757 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7762 CFLAGS="$CFLAGS -DNDEBUG"
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7765 $as_echo "no." >&6; }
7770 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7771 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7773 cat >>confdefs.h <<_ACEOF
7774 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
7781 $as_echo_n "checking for __thread support in compiler... " >&6; }
7782 if test "$cross_compiling" = yes; then :
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 static __thread int val;
7789 int main(int argc, char **argv) {
7796 if ac_fn_c_try_run "$LINENO"; then :
7801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7802 conftest.$ac_objext conftest.beam conftest.$ac_ext
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7806 $as_echo "$have_tls" >&6; }
7807 if test "x$have_tls" = "xyes"; then
7809 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7817 # Check whether --with-talloc-include-dir was given.
7818 if test "${with_talloc_include_dir+set}" = set; then :
7819 withval=$with_talloc_include_dir; case "$withval" in
7821 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7826 talloc_include_dir="$withval"
7832 smart_try_dir="$talloc_include_dir"
7835 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7836 old_CFLAGS="$CFLAGS"
7840 if test "x$smart_try_dir" != "x"; then
7841 for try in $smart_try_dir; do
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7843 $as_echo_n "checking for talloc.h in $try... " >&6; }
7844 CFLAGS="$old_CFLAGS -isystem $try"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7857 if ac_fn_c_try_compile "$LINENO"; then :
7859 smart_include="-isystem $try"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 CFLAGS="$old_CFLAGS"
7876 if test "x$smart_include" = "x"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7878 $as_echo_n "checking for talloc.h... " >&6; }
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7891 if ac_fn_c_try_compile "$LINENO"; then :
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 if test "x$smart_include" = "x"; then
7911 if test "x$LOCATE" != "x"; then
7915 for x in `${LOCATE} $file 2>/dev/null`; do
7916 base=`echo $x | sed "s%/${file}%%"`
7917 if test "x$x" = "x$base"; then
7921 dir=`${DIRNAME} $x 2>/dev/null`
7922 exclude=`echo ${dir} | ${GREP} /home`
7923 if test "x$exclude" != "x"; then
7927 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7928 if test "x$already" = "x"; then
7934 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7936 for try in $smart_include_dir /usr/local/include /opt/include; do
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7938 $as_echo_n "checking for talloc.h in $try... " >&6; }
7939 CFLAGS="$old_CFLAGS -isystem $try"
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7952 if ac_fn_c_try_compile "$LINENO"; then :
7954 smart_include="-isystem $try"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7956 $as_echo "yes" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 CFLAGS="$old_CFLAGS"
7971 if test "x$smart_include" != "x"; then
7972 eval "ac_cv_header_$ac_safe=yes"
7973 CFLAGS="$old_CFLAGS $smart_include"
7974 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7977 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7979 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7980 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7982 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7983 LIBS="-ltalloc ${LIBS}"
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7987 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7988 if ${ac_cv_lib_crypt_crypt+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 ac_check_lib_save_LIBS=$LIBS
7992 LIBS="-lcrypt $LIBS"
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7996 /* Override any GCC internal prototype to avoid an error.
7997 Use char because int might match the return type of a GCC
7998 builtin and then its argument prototype would still apply. */
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_lib_crypt_crypt=yes
8014 ac_cv_lib_crypt_crypt=no
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 LIBS=$ac_check_lib_save_LIBS
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8021 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8022 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8028 if test "$CRYPTLIB" != ""; then
8030 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8033 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8034 if test "x$ac_cv_func_crypt" = xyes; then :
8036 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8043 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8044 if ${ac_cv_lib_cipher_setkey+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 ac_check_lib_save_LIBS=$LIBS
8048 LIBS="-lcipher $LIBS"
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8052 /* Override any GCC internal prototype to avoid an error.
8053 Use char because int might match the return type of a GCC
8054 builtin and then its argument prototype would still apply. */
8067 if ac_fn_c_try_link "$LINENO"; then :
8068 ac_cv_lib_cipher_setkey=yes
8070 ac_cv_lib_cipher_setkey=no
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 LIBS=$ac_check_lib_save_LIBS
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8077 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8078 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8079 CRYPTLIB="${CRYPTLIB} -lcipher"
8088 # Check whether --with-rlm-pcre-lib-dir was given.
8089 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8090 withval=$with_rlm_pcre_lib_dir; case "$withval" in
8092 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8097 pcre_lib_dir="$withval"
8106 # Check whether --with-rlm-pcre-include-dir was given.
8107 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8108 withval=$with_rlm_pcre_include_dir; case "$withval" in
8110 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8115 pcre_include_dir="$withval"
8126 smart_try_dir=$pcre_include_dir
8129 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8130 old_CFLAGS="$CFLAGS"
8134 if test "x$smart_try_dir" != "x"; then
8135 for try in $smart_try_dir; do
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8137 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8138 CFLAGS="$old_CFLAGS -isystem $try"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8142 #include <pcreposix.h>
8151 if ac_fn_c_try_compile "$LINENO"; then :
8153 smart_include="-isystem $try"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155 $as_echo "yes" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 CFLAGS="$old_CFLAGS"
8170 if test "x$smart_include" = "x"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8172 $as_echo_n "checking for pcreposix.h... " >&6; }
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8176 #include <pcreposix.h>
8185 if ac_fn_c_try_compile "$LINENO"; then :
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8189 $as_echo "yes" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 if test "x$smart_include" = "x"; then
8205 if test "x$LOCATE" != "x"; then
8209 for x in `${LOCATE} $file 2>/dev/null`; do
8210 base=`echo $x | sed "s%/${file}%%"`
8211 if test "x$x" = "x$base"; then
8215 dir=`${DIRNAME} $x 2>/dev/null`
8216 exclude=`echo ${dir} | ${GREP} /home`
8217 if test "x$exclude" != "x"; then
8221 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8222 if test "x$already" = "x"; then
8228 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8230 for try in $smart_include_dir /usr/local/include /opt/include; do
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8232 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8233 CFLAGS="$old_CFLAGS -isystem $try"
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8237 #include <pcreposix.h>
8246 if ac_fn_c_try_compile "$LINENO"; then :
8248 smart_include="-isystem $try"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250 $as_echo "yes" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262 CFLAGS="$old_CFLAGS"
8265 if test "x$smart_include" != "x"; then
8266 eval "ac_cv_header_$ac_safe=yes"
8267 CFLAGS="$old_CFLAGS $smart_include"
8268 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8271 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8273 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8276 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8281 LIBS="-lpcre -lpcreposix $LIBS"
8287 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8288 old_CFLAGS="$CFLAGS"
8292 if test "x$smart_try_dir" != "x"; then
8293 for try in $smart_try_dir; do
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8295 $as_echo_n "checking for regex.h in $try... " >&6; }
8296 CFLAGS="$old_CFLAGS -isystem $try"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8309 if ac_fn_c_try_compile "$LINENO"; then :
8311 smart_include="-isystem $try"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8313 $as_echo "yes" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 CFLAGS="$old_CFLAGS"
8328 if test "x$smart_include" = "x"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8330 $as_echo_n "checking for regex.h... " >&6; }
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8343 if ac_fn_c_try_compile "$LINENO"; then :
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8347 $as_echo "yes" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 if test "x$smart_include" = "x"; then
8363 if test "x$LOCATE" != "x"; then
8367 for x in `${LOCATE} $file 2>/dev/null`; do
8368 base=`echo $x | sed "s%/${file}%%"`
8369 if test "x$x" = "x$base"; then
8373 dir=`${DIRNAME} $x 2>/dev/null`
8374 exclude=`echo ${dir} | ${GREP} /home`
8375 if test "x$exclude" != "x"; then
8379 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8380 if test "x$already" = "x"; then
8386 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8388 for try in $smart_include_dir /usr/local/include /opt/include; do
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8390 $as_echo_n "checking for regex.h in $try... " >&6; }
8391 CFLAGS="$old_CFLAGS -isystem $try"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8404 if ac_fn_c_try_compile "$LINENO"; then :
8406 smart_include="-isystem $try"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 $as_echo "yes" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 CFLAGS="$old_CFLAGS"
8423 if test "x$smart_include" != "x"; then
8424 eval "ac_cv_header_$ac_safe=yes"
8425 CFLAGS="$old_CFLAGS $smart_include"
8426 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8429 if test "x$ac_cv_header_regex_h" = "xyes"; then
8431 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8444 $EGREP "yes" >/dev/null 2>&1; then :
8446 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
8460 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8464 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8468 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8471 gethostbyaddrrstyle=""
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8473 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8476 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8482 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8491 if test $ac_have_decl = 1; then :
8496 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8498 gethostbyaddrrstyle=BSD
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8500 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8507 if test "x$gethostbyaddrrstyle" = "x"; then
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8517 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8522 if ac_fn_c_try_link "$LINENO"; then :
8525 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8527 gethostbyaddrrstyle=GNU
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8535 if test "x$gethostbyaddrrstyle" = "x"; then
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8545 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8550 if ac_fn_c_try_link "$LINENO"; then :
8553 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8555 gethostbyaddrrstyle=SYSV
8559 rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8564 if test "x$gethostbyaddrrstyle" = "x"; then
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8574 gethostbyaddr(NULL, 0, 0)
8579 if ac_fn_c_try_link "$LINENO"; then :
8582 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8584 gethostbyaddrrstyle=BSD
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8592 if test "x$gethostbyaddrrstyle" = "x"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8594 $as_echo "none! It must not exist, here." >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8597 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8600 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8602 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8605 gethostbynamerstyle=""
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8607 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8617 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8622 if ac_fn_c_try_link "$LINENO"; then :
8625 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8627 gethostbynamerstyle=GNU
8631 rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8634 if test "x$gethostbynamerstyle" = "x"; then
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8644 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8649 if ac_fn_c_try_link "$LINENO"; then :
8652 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8654 gethostbynamerstyle=SYSV
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8662 if test "x$gethostbynamerstyle" = "x"; then
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8677 if ac_fn_c_try_link "$LINENO"; then :
8680 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8682 gethostbynamerstyle=BSD
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8690 if test "x$gethostbynamerstyle" = "x"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8692 $as_echo "none! It must not exist, here." >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8695 $as_echo "${gethostbynamerstyle}-style" >&6; }
8698 if test "x$gethostbynamerstyle" = "xBSD"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8700 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8704 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8707 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8711 $as_echo_n "checking ctime_r() syntax... " >&6; }
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8720 ctime_r(NULL, NULL, 0)
8725 if ac_fn_c_try_link "$LINENO"; then :
8728 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8730 ctimerstyle="SOLARIS"
8734 rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8737 if test "x$ctimerstyle" = "x"; then
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8751 if ac_fn_c_try_link "$LINENO"; then :
8754 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8764 if test "x$ctimerstyle" = "x"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8766 $as_echo "none! It must not exist, here." >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8769 $as_echo "${ctimerstyle}-style" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8779 $as_echo "top_builddir=$top_builddir" >&6; }
8784 if test "x$EXPERIMENTAL" = "xyes"; then
8785 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8786 MODULES="$MODULES $foo"
8789 for foo in `cat "${srcdir}"/src/modules/stable`; do
8790 MODULES="$MODULES $foo"
8795 for bar in $MODULES; do
8796 if test -f "${srcdir}"/src/modules/$bar/configure; then
8797 mysubdirs="$mysubdirs src/modules/$bar"
8803 subdirs="$subdirs $mysubdirs"
8807 if test "x$werror" == "xyes"; then
8808 CFLAGS="-Werror $CFLAGS"
8811 ac_config_commands="$ac_config_commands stamp-h"
8813 ac_config_commands="$ac_config_commands build-radpaths-h"
8815 ac_config_commands="$ac_config_commands main-chmod"
8817 ac_config_commands="$ac_config_commands scripts-chmod"
8823 USE_SHARED_LIBS=$enable_shared
8825 USE_STATIC_LIBS=$enable_static
8830 unset ac_cv_env_LIBS_set
8831 unset ac_cv_env_LIBS_value
8833 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"
8835 cat >confcache <<\_ACEOF
8836 # This file is a shell script that caches the results of configure
8837 # tests run on this system so they can be shared between configure
8838 # scripts and configure runs, see configure's option --config-cache.
8839 # It is not useful on other systems. If it contains results you don't
8840 # want to keep, you may remove or edit it.
8842 # config.status only pays attention to the cache file if you give it
8843 # the --recheck option to rerun configure.
8845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8851 # The following way of writing the cache mishandles newlines in values,
8852 # but we know of no workaround that is simple, portable, and efficient.
8853 # So, we kill variables containing newlines.
8854 # Ultrix sh set writes to stderr and can't be redirected directly,
8855 # and sets the high bit in the cache file unless we assign to the vars.
8857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8858 eval ac_val=\$$ac_var
8862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8866 _ | IFS | as_nl) ;; #(
8867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8868 *) { eval $ac_var=; unset $ac_var;} ;;
8874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8875 *${as_nl}ac_space=\ *)
8876 # `set' does not quote correctly, so add quotes: double-quote
8877 # substitution turns \\\\ into \\, and sed turns \\ into \.
8880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8883 # `set' quotes correctly as required by POSIX, so do not add quotes.
8884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8898 if test -w "$cache_file"; then
8899 if test "x$cache_file" != "x/dev/null"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8901 $as_echo "$as_me: updating cache $cache_file" >&6;}
8902 if test ! -f "$cache_file" || test -h "$cache_file"; then
8903 cat confcache >"$cache_file"
8905 case $cache_file in #(
8907 mv -f confcache "$cache_file"$$ &&
8908 mv -f "$cache_file"$$ "$cache_file" ;; #(
8910 mv -f confcache "$cache_file" ;;
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8922 # Let make expand exec_prefix.
8923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8925 DEFS=-DHAVE_CONFIG_H
8930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8931 # 1. Remove the extension, and $U if already installed.
8932 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8933 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8934 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8935 # will be set to the directory where LIBOBJS objects are built.
8936 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8937 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8941 LTLIBOBJS=$ac_ltlibobjs
8946 : "${CONFIG_STATUS=./config.status}"
8948 ac_clean_files_save=$ac_clean_files
8949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8951 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8953 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8955 # Generated by $as_me.
8956 # Run this file to recreate the current configuration.
8957 # Compiler output produced by configure, useful for debugging
8958 # configure, is in config.log if it exists.
8964 SHELL=\${CONFIG_SHELL-$SHELL}
8967 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8968 ## -------------------- ##
8969 ## M4sh Initialization. ##
8970 ## -------------------- ##
8972 # Be more Bourne compatible
8973 DUALCASE=1; export DUALCASE # for MKS sh
8974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8978 # is contrary to our usage. Disable this feature.
8979 alias -g '${1+"$@"}'='"$@"'
8980 setopt NO_GLOB_SUBST
8982 case `(set -o) 2>/dev/null` in #(
8994 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8995 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8998 # Prefer a ksh shell builtin over an external printf program on Solaris,
8999 # but without wasting forks for bash or zsh.
9000 if test -z "$BASH_VERSION$ZSH_VERSION" \
9001 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9002 as_echo='print -r --'
9003 as_echo_n='print -rn --'
9004 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9005 as_echo='printf %s\n'
9006 as_echo_n='printf %s'
9008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9010 as_echo_n='/usr/ucb/echo -n'
9012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9013 as_echo_n_body='eval
9017 expr "X$arg" : "X\\(.*\\)$as_nl";
9018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9022 export as_echo_n_body
9023 as_echo_n='sh -c $as_echo_n_body as_echo'
9026 as_echo='sh -c $as_echo_body as_echo'
9029 # The user is always right.
9030 if test "${PATH_SEPARATOR+set}" != set; then
9032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9040 # We need space, tab and new line, in precisely that order. Quoting is
9041 # there to prevent editors from complaining about space-tab.
9042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9043 # splitting by setting IFS to empty value.)
9046 # Find who we are. Look in the path if we contain no directory separator.
9049 *[\\/]* ) as_myself=$0 ;;
9050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 test -z "$as_dir" && as_dir=.
9055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9061 # We did not find ourselves, most probably we were run as `sh COMMAND'
9062 # in which case we are not to be found in the path.
9063 if test "x$as_myself" = x; then
9066 if test ! -f "$as_myself"; then
9067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9071 # Unset variables that we do not need and which cause bugs (e.g. in
9072 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9073 # suppresses any "Segmentation fault" message there. '((' could
9074 # trigger a bug in pdksh 5.2.14.
9075 for as_var in BASH_ENV ENV MAIL MAILPATH
9076 do eval test x\${$as_var+set} = xset \
9077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9093 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9094 # ----------------------------------------
9095 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9096 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9097 # script with STATUS, using 1 if that was 0.
9100 as_status=$1; test $as_status -eq 0 && as_status=1
9102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9103 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9105 $as_echo "$as_me: error: $2" >&2
9106 as_fn_exit $as_status
9110 # as_fn_set_status STATUS
9111 # -----------------------
9112 # Set $? to STATUS, without forking.
9116 } # as_fn_set_status
9120 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9130 # Portably unset VAR.
9133 { eval $1=; unset $1;}
9135 as_unset=as_fn_unset
9136 # as_fn_append VAR VALUE
9137 # ----------------------
9138 # Append the text in VALUE to the end of the definition contained in VAR. Take
9139 # advantage of any shell optimizations that allow amortized linear growth over
9140 # repeated appends, instead of the typical quadratic growth present in naive
9142 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9143 eval 'as_fn_append ()
9154 # as_fn_arith ARG...
9155 # ------------------
9156 # Perform arithmetic evaluation on the ARGs, and store the result in the
9157 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9158 # must be portable across $(()) and expr.
9159 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9160 eval 'as_fn_arith ()
9167 as_val=`expr "$@" || test $? -eq 1`
9172 if expr a : '\(a\)' >/dev/null 2>&1 &&
9173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9179 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9180 as_basename=basename
9185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9191 as_me=`$as_basename -- "$0" ||
9192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9193 X"$0" : 'X\(//\)$' \| \
9194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9196 sed '/^.*\/\([^/][^/]*\)\/*$/{
9210 # Avoid depending upon Character Ranges.
9211 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9214 as_cr_digits='0123456789'
9215 as_cr_alnum=$as_cr_Letters$as_cr_digits
9217 ECHO_C= ECHO_N= ECHO_T=
9218 case `echo -n x` in #(((((
9220 case `echo 'xy\c'` in
9221 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9223 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9230 rm -f conf$$ conf$$.exe conf$$.file
9231 if test -d conf$$.dir; then
9232 rm -f conf$$.dir/conf$$.file
9235 mkdir conf$$.dir 2>/dev/null
9237 if (echo >conf$$.file) 2>/dev/null; then
9238 if ln -s conf$$.file conf$$ 2>/dev/null; then
9240 # ... but there are two gotchas:
9241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9243 # In both cases, we have to default to `cp -pR'.
9244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9246 elif ln conf$$.file conf$$ 2>/dev/null; then
9254 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9255 rmdir conf$$.dir 2>/dev/null
9260 # Create "$as_dir" as a directory, including parents if necessary.
9265 -*) as_dir=./$as_dir;;
9267 test -d "$as_dir" || eval $as_mkdir_p || {
9271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9272 *) as_qdir=$as_dir;;
9274 as_dirs="'$as_qdir' $as_dirs"
9275 as_dir=`$as_dirname -- "$as_dir" ||
9276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9277 X"$as_dir" : 'X\(//\)[^/]' \| \
9278 X"$as_dir" : 'X\(//\)$' \| \
9279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9280 $as_echo X"$as_dir" |
9281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9298 test -d "$as_dir" && break
9300 test -z "$as_dirs" || eval "mkdir $as_dirs"
9301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9305 if mkdir -p . 2>/dev/null; then
9306 as_mkdir_p='mkdir -p "$as_dir"'
9308 test -d ./-p && rmdir ./-p
9313 # as_fn_executable_p FILE
9314 # -----------------------
9315 # Test if FILE is an executable regular file.
9316 as_fn_executable_p ()
9318 test -f "$1" && test -x "$1"
9319 } # as_fn_executable_p
9321 as_executable_p=as_fn_executable_p
9323 # Sed expression to map a string onto a valid CPP name.
9324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9326 # Sed expression to map a string onto a valid variable name.
9327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9331 ## ----------------------------------- ##
9332 ## Main body of $CONFIG_STATUS script. ##
9333 ## ----------------------------------- ##
9335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9338 # Save the log message, to keep $0 and so on meaningful, and to
9339 # report actual input values of CONFIG_FILES etc. instead of their
9340 # values after options handling.
9342 This file was extended by freeradius $as_me $Id$, which was
9343 generated by GNU Autoconf 2.69. Invocation command line was
9345 CONFIG_FILES = $CONFIG_FILES
9346 CONFIG_HEADERS = $CONFIG_HEADERS
9347 CONFIG_LINKS = $CONFIG_LINKS
9348 CONFIG_COMMANDS = $CONFIG_COMMANDS
9351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9356 case $ac_config_files in *"
9357 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9360 case $ac_config_headers in *"
9361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9366 # Files that config.status was made for.
9367 config_files="$ac_config_files"
9368 config_headers="$ac_config_headers"
9369 config_commands="$ac_config_commands"
9373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9375 \`$as_me' instantiates files and other configuration actions
9376 from templates according to the current configuration. Unless the files
9377 and actions are specified as TAGs, all are instantiated by default.
9379 Usage: $0 [OPTION]... [TAG]...
9381 -h, --help print this help, then exit
9382 -V, --version print version number and configuration settings, then exit
9383 --config print configuration, then exit
9384 -q, --quiet, --silent
9385 do not print progress messages
9386 -d, --debug don't remove temporary files
9387 --recheck update $as_me by reconfiguring in the same conditions
9388 --file=FILE[:TEMPLATE]
9389 instantiate the configuration file FILE
9390 --header=FILE[:TEMPLATE]
9391 instantiate the configuration header FILE
9393 Configuration files:
9396 Configuration headers:
9399 Configuration commands:
9402 Report bugs to <http://bugs.freeradius.org>.
9403 freeradius home page: <http://www.freeradius.org>."
9406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9409 freeradius config.status $Id$
9410 configured by $0, generated by GNU Autoconf 2.69,
9411 with options \\"\$ac_cs_config\\"
9413 Copyright (C) 2012 Free Software Foundation, Inc.
9414 This config.status script is free software; the Free Software Foundation
9415 gives unlimited permission to copy, distribute and modify it."
9419 test -n "\$AWK" || AWK=awk
9422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9423 # The default lists apply if the user does not specify any file.
9429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9446 # Handling of the options.
9447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9449 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9450 $as_echo "$ac_cs_version"; exit ;;
9451 --config | --confi | --conf | --con | --co | --c )
9452 $as_echo "$ac_cs_config"; exit ;;
9453 --debug | --debu | --deb | --de | --d | -d )
9455 --file | --fil | --fi | --f )
9458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9459 '') as_fn_error $? "missing file argument" ;;
9461 as_fn_append CONFIG_FILES " '$ac_optarg'"
9462 ac_need_defaults=false;;
9463 --header | --heade | --head | --hea )
9466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9468 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9469 ac_need_defaults=false;;
9471 # Conflict between --help and --header
9472 as_fn_error $? "ambiguous option: \`$1'
9473 Try \`$0 --help' for more information.";;
9474 --help | --hel | -h )
9475 $as_echo "$ac_cs_usage"; exit ;;
9476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9481 -*) as_fn_error $? "unrecognized option: \`$1'
9482 Try \`$0 --help' for more information." ;;
9484 *) as_fn_append ac_config_targets " $1"
9485 ac_need_defaults=false ;;
9491 ac_configure_extra_args=
9493 if $ac_cs_silent; then
9495 ac_configure_extra_args="$ac_configure_extra_args --silent"
9499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9500 if \$ac_cs_recheck; then
9501 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9503 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9504 CONFIG_SHELL='$SHELL'
9510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9515 ## Running $as_me. ##
9521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9526 # Handling of arguments.
9527 for ac_config_target in $ac_config_targets
9529 case $ac_config_target in
9530 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9531 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9532 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9533 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9534 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9535 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9536 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9537 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9538 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9539 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9540 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9541 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9542 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9543 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9544 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9545 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9546 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9547 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9554 # If the user did not use the arguments to specify the items to instantiate,
9555 # then the envvar interface is used. Set only those that are not.
9556 # We use the long form for the default assignment because of an extremely
9557 # bizarre bug on SunOS 4.1.3.
9558 if $ac_need_defaults; then
9559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9564 # Have a temporary directory for convenience. Make it in the build tree
9565 # simply because there is no reason against having it here, and in addition,
9566 # creating and moving files from /tmp can sometimes cause problems.
9567 # Hook for its removal unless debugging.
9568 # Note that there is a small window in which the directory will not be cleaned:
9569 # after its creation but before its name has been assigned to `$tmp'.
9573 trap 'exit_status=$?
9575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9577 trap 'as_fn_exit 1' 1 2 13 15
9579 # Create a (secure) tmp directory for tmp files.
9582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9586 tmp=./conf$$-$RANDOM
9587 (umask 077 && mkdir "$tmp")
9588 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9591 # Set up the scripts for CONFIG_FILES section.
9592 # No need to generate them if there are no CONFIG_FILES.
9593 # This happens for instance with `./config.status config.h'.
9594 if test -n "$CONFIG_FILES"; then
9597 ac_cr=`echo X | tr X '\015'`
9598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9599 # But we know of no other shell where ac_cr would be empty at this
9600 # point, so we can use a bashism as a fallback.
9601 if test "x$ac_cr" = x; then
9602 eval ac_cr=\$\'\\r\'
9604 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9611 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9616 echo "cat >conf$$subs.awk <<_ACEOF" &&
9617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9621 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9623 for ac_last_try in false false false false false :; do
9624 . ./conf$$subs.sh ||
9625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9628 if test $ac_delim_n = $ac_delim_num; then
9630 elif $ac_last_try; then
9631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9639 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9643 s/^/S["/; s/!.*/"]=/
9653 s/\(.\{148\}\)..*/\1/
9655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9667 s/\(.\{148\}\)..*/\1/
9669 s/["\\]/\\&/g; s/^/"/; s/$/"/
9673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9678 ' <conf$$subs.awk | sed '
9683 ' >>$CONFIG_STATUS || ac_write_fail=1
9684 rm -f conf$$subs.awk
9685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9687 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9688 for (key in S) S_is_set[key] = 1
9694 nfields = split(line, field, "@")
9696 len = length(field[1])
9697 for (i = 2; i < nfields; i++) {
9699 keylen = length(key)
9700 if (S_is_set[key]) {
9702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9703 len += length(value) + length(field[++i])
9714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9719 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9723 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9724 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9725 # trailing colons and then remove the whole line if VPATH becomes empty
9726 # (actually we leave an empty line to preserve line numbers).
9727 if test "x$srcdir" = x.; then
9728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9747 fi # test -n "$CONFIG_FILES"
9749 # Set up the scripts for CONFIG_HEADERS section.
9750 # No need to generate them if there are no CONFIG_HEADERS.
9751 # This happens for instance with `./config.status Makefile'.
9752 if test -n "$CONFIG_HEADERS"; then
9753 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9757 # Transform confdefs.h into an awk script `defines.awk', embedded as
9758 # here-document in config.status, that substitutes the proper values into
9759 # config.h.in to produce config.h.
9761 # Create a delimiter string that does not exist in confdefs.h, to ease
9762 # handling of long lines.
9764 for ac_last_try in false false :; do
9765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9766 if test -z "$ac_tt"; then
9768 elif $ac_last_try; then
9769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9775 # For the awk script, D is an array of macro values keyed by name,
9776 # likewise P contains macro parameters if any. Preserve backslash
9777 # newline sequences.
9779 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9781 s/.\{148\}/&'"$ac_delim"'/g
9784 s/^[ ]*#[ ]*define[ ][ ]*/ /
9791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9797 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9798 D["\1"]=" \3\\\\\\n"\\/p
9800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9805 s/.\{148\}/&'"$ac_delim"'/g
9810 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9813 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9815 ' <confdefs.h | sed '
9816 s/'"$ac_delim"'/"\\\
9817 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9820 for (key in D) D_is_set[key] = 1
9823 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9825 split(line, arg, " ")
9826 if (arg[1] == "#") {
9830 defundef = substr(arg[1], 2)
9833 split(mac1, mac2, "(") #)
9835 prefix = substr(line, 1, index(line, defundef) - 1)
9836 if (D_is_set[macro]) {
9837 # Preserve the white space surrounding the "#".
9838 print prefix "define", macro P[macro] D[macro]
9841 # Replace #undef with comments. This is necessary, for example,
9842 # in the case of _POSIX_SOURCE, which is predefined and required
9843 # on some systems where configure will not decide to define it.
9844 if (defundef == "undef") {
9845 print "/*", prefix defundef, macro, "*/"
9853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9855 fi # test -n "$CONFIG_HEADERS"
9858 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9863 :[FHLC]) ac_mode=$ac_tag; continue;;
9865 case $ac_mode$ac_tag in
9867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9868 :[FH]-) ac_tag=-:-;;
9869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9886 -) ac_f="$ac_tmp/stdin";;
9887 *) # Look for the file first in the build tree, then in the source tree
9888 # (if the path is not absolute). The absolute path cannot be DOS-style,
9889 # because $ac_f cannot contain `:'.
9893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9898 as_fn_append ac_file_inputs " '$ac_f'"
9901 # Let's still pretend it is `configure' which instantiates (i.e., don't
9902 # use $as_me), people would be surprised to read:
9903 # /* config.h. Generated by config.status. */
9904 configure_input='Generated from '`
9905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9907 if test x"$ac_file" != x-; then
9908 configure_input="$ac_file. $configure_input"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9910 $as_echo "$as_me: creating $ac_file" >&6;}
9912 # Neutralize special characters interpreted by sed in replacement strings.
9913 case $configure_input in #(
9914 *\&* | *\|* | *\\* )
9915 ac_sed_conf_input=`$as_echo "$configure_input" |
9916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9917 *) ac_sed_conf_input=$configure_input;;
9921 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9927 ac_dir=`$as_dirname -- "$ac_file" ||
9928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9929 X"$ac_file" : 'X\(//\)[^/]' \| \
9930 X"$ac_file" : 'X\(//\)$' \| \
9931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9932 $as_echo X"$ac_file" |
9933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9950 as_dir="$ac_dir"; as_fn_mkdir_p
9954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9957 # A ".." for each directory in $ac_dir_suffix.
9958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9959 case $ac_top_builddir_sub in
9960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9964 ac_abs_top_builddir=$ac_pwd
9965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9966 # for backward compatibility:
9967 ac_top_builddir=$ac_top_build_prefix
9970 .) # We are building in place.
9972 ac_top_srcdir=$ac_top_builddir_sub
9973 ac_abs_top_srcdir=$ac_pwd ;;
9974 [\\/]* | ?:[\\/]* ) # Absolute name.
9975 ac_srcdir=$srcdir$ac_dir_suffix;
9976 ac_top_srcdir=$srcdir
9977 ac_abs_top_srcdir=$srcdir ;;
9979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9980 ac_top_srcdir=$ac_top_build_prefix$srcdir
9981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9995 # If the template does not know about datarootdir, expand it.
9996 # FIXME: This hack should be removed a few years after 2.60.
9997 ac_datarootdir_hack=; ac_datarootdir_seen=
10008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10009 *datarootdir*) ac_datarootdir_seen=yes;;
10010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10015 ac_datarootdir_hack='
10016 s&@datadir@&$datadir&g
10017 s&@docdir@&$docdir&g
10018 s&@infodir@&$infodir&g
10019 s&@localedir@&$localedir&g
10020 s&@mandir@&$mandir&g
10021 s&\\\${datarootdir}&$datarootdir&g' ;;
10025 # Neutralize VPATH when `$srcdir' = `.'.
10026 # Shell code in configure.ac might set extrasub.
10027 # FIXME: do we really want to maintain this feature?
10028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10029 ac_sed_extra="$ac_vpsub
10032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10035 s|@configure_input@|$ac_sed_conf_input|;t t
10036 s&@top_builddir@&$ac_top_builddir_sub&;t t
10037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10038 s&@srcdir@&$ac_srcdir&;t t
10039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10040 s&@top_srcdir@&$ac_top_srcdir&;t t
10041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10042 s&@builddir@&$ac_builddir&;t t
10043 s&@abs_builddir@&$ac_abs_builddir&;t t
10044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10045 $ac_datarootdir_hack
10047 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10053 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10055 which seems to be undefined. Please make sure it is defined" >&5
10056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10057 which seems to be undefined. Please make sure it is defined" >&2;}
10059 rm -f "$ac_tmp/stdin"
10061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10070 if test x"$ac_file" != x-; then
10072 $as_echo "/* $configure_input */" \
10073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10074 } >"$ac_tmp/config.h" \
10075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10078 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10081 mv "$ac_tmp/config.h" "$ac_file" \
10082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10085 $as_echo "/* $configure_input */" \
10086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10087 || as_fn_error $? "could not create -" "$LINENO" 5
10091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10092 $as_echo "$as_me: executing $ac_file commands" >&6;}
10097 case $ac_file$ac_mode in
10098 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10099 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10100 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10101 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10109 ac_clean_files=$ac_clean_files_save
10111 test $ac_write_fail = 0 ||
10112 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10115 # configure is writing to config.log, and then calls config.status.
10116 # config.status does its own redirection, appending to config.log.
10117 # Unfortunately, on DOS this fails, as config.log is still kept open
10118 # by configure, so config.status won't be able to write to it; its
10119 # output is simply discarded. So we exec the FD to /dev/null,
10120 # effectively closing config.log, so it can be properly (re)opened and
10121 # appended to by config.status. When coming back to configure, we
10122 # need to make the FD available again.
10123 if test "$no_create" != yes; then
10125 ac_config_status_args=
10126 test "$silent" = yes &&
10127 ac_config_status_args="$ac_config_status_args --quiet"
10129 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10132 # would make configure fail if this is the last instruction.
10133 $ac_cs_success || as_fn_exit 1
10137 # CONFIG_SUBDIRS section.
10139 if test "$no_recursion" != yes; then
10141 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10142 # so they do not pile up.
10143 ac_sub_configure_args=
10145 eval "set x $ac_configure_args"
10149 if test -n "$ac_prev"; then
10154 -cache-file | --cache-file | --cache-fil | --cache-fi \
10155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10156 ac_prev=cache_file ;;
10157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10161 --config-cache | -C)
10163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10171 --disable-option-checking)
10175 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10177 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10181 # Always prepend --prefix to ensure using the same prefix
10182 # in subdir configurations.
10183 ac_arg="--prefix=$prefix"
10185 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10187 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10190 if test "$silent" = yes; then
10191 ac_sub_configure_args="--silent $ac_sub_configure_args"
10194 # Always prepend --disable-option-checking to silence warnings, since
10195 # different subdirs can have different --enable and --with options.
10196 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10199 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10201 # Do not complain, so a configure script can configure whichever
10202 # parts of a large source tree are present.
10203 test -d "$srcdir/$ac_dir" || continue
10205 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10206 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10207 $as_echo "$ac_msg" >&6
10208 as_dir="$ac_dir"; as_fn_mkdir_p
10212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10215 # A ".." for each directory in $ac_dir_suffix.
10216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10217 case $ac_top_builddir_sub in
10218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10222 ac_abs_top_builddir=$ac_pwd
10223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10224 # for backward compatibility:
10225 ac_top_builddir=$ac_top_build_prefix
10228 .) # We are building in place.
10230 ac_top_srcdir=$ac_top_builddir_sub
10231 ac_abs_top_srcdir=$ac_pwd ;;
10232 [\\/]* | ?:[\\/]* ) # Absolute name.
10233 ac_srcdir=$srcdir$ac_dir_suffix;
10234 ac_top_srcdir=$srcdir
10235 ac_abs_top_srcdir=$srcdir ;;
10236 *) # Relative name.
10237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10238 ac_top_srcdir=$ac_top_build_prefix$srcdir
10239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10246 # Check for guested configure; otherwise get Cygnus style configure.
10247 if test -f "$ac_srcdir/configure.gnu"; then
10248 ac_sub_configure=$ac_srcdir/configure.gnu
10249 elif test -f "$ac_srcdir/configure"; then
10250 ac_sub_configure=$ac_srcdir/configure
10251 elif test -f "$ac_srcdir/configure.in"; then
10252 # This should be Cygnus configure.
10253 ac_sub_configure=$ac_aux_dir/configure
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10256 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10260 # The recursion is here.
10261 if test -n "$ac_sub_configure"; then
10262 # Make the cache file name correct relative to the subdirectory.
10263 case $cache_file in
10264 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10265 *) # Relative name.
10266 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10269 { $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
10270 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10271 # The eval makes quoting arguments work.
10272 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10273 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10274 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10280 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10282 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}