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_rlm_ldap_lib_dir
752 with_rlm_pcre_include_dir
753 with_talloc_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-pcre-lib-dir=DIR directory for PCRE library files
1408 --with-pcre-include-dir=DIR directory for PCRE include files
1409 --with-talloc-include-dir=DIR
1410 Directory where the talloc includes may be found
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
6697 # Check whether --with-rlm-ldap-lib-dir was given.
6698 if test "${with_rlm_ldap_lib_dir+set}" = set; then :
6699 withval=$with_rlm_ldap_lib_dir; case "$withval" in
6701 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
6706 pcre_lib_dir="$withval"
6715 # Check whether --with-rlm-pcre-include-dir was given.
6716 if test "${with_rlm_pcre_include_dir+set}" = set; then :
6717 withval=$with_rlm_pcre_include_dir; case "$withval" in
6719 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
6724 pcre_include_dir="$withval"
6735 smart_try_dir=$pcre_include_dir
6738 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
6739 old_CFLAGS="$CFLAGS"
6743 if test "x$smart_try_dir" != "x"; then
6744 for try in $smart_try_dir; do
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
6746 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
6747 CFLAGS="$old_CFLAGS -isystem $try"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6751 #include <pcreposix.h>
6760 if ac_fn_c_try_compile "$LINENO"; then :
6762 smart_include="-isystem $try"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6764 $as_echo "yes" >&6; }
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 CFLAGS="$old_CFLAGS"
6779 if test "x$smart_include" = "x"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
6781 $as_echo_n "checking for pcreposix.h... " >&6; }
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6785 #include <pcreposix.h>
6794 if ac_fn_c_try_compile "$LINENO"; then :
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6798 $as_echo "yes" >&6; }
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 if test "x$smart_include" = "x"; then
6814 if test "x$LOCATE" != "x"; then
6818 for x in `${LOCATE} $file 2>/dev/null`; do
6819 base=`echo $x | sed "s%/${file}%%"`
6820 if test "x$x" = "x$base"; then
6824 dir=`${DIRNAME} $x 2>/dev/null`
6825 exclude=`echo ${dir} | ${GREP} /home`
6826 if test "x$exclude" != "x"; then
6830 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
6831 if test "x$already" = "x"; then
6837 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
6839 for try in $smart_include_dir /usr/local/include /opt/include; do
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
6841 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
6842 CFLAGS="$old_CFLAGS -isystem $try"
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6846 #include <pcreposix.h>
6855 if ac_fn_c_try_compile "$LINENO"; then :
6857 smart_include="-isystem $try"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6859 $as_echo "yes" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 CFLAGS="$old_CFLAGS"
6874 if test "x$smart_include" != "x"; then
6875 eval "ac_cv_header_$ac_safe=yes"
6876 CFLAGS="$old_CFLAGS $smart_include"
6877 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
6880 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6882 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
6885 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
6890 LIBS="$LIBS -lpcreposix"
6896 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
6897 old_CFLAGS="$CFLAGS"
6901 if test "x$smart_try_dir" != "x"; then
6902 for try in $smart_try_dir; do
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
6904 $as_echo_n "checking for regex.h in $try... " >&6; }
6905 CFLAGS="$old_CFLAGS -isystem $try"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6918 if ac_fn_c_try_compile "$LINENO"; then :
6920 smart_include="-isystem $try"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6922 $as_echo "yes" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 CFLAGS="$old_CFLAGS"
6937 if test "x$smart_include" = "x"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
6939 $as_echo_n "checking for regex.h... " >&6; }
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6952 if ac_fn_c_try_compile "$LINENO"; then :
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956 $as_echo "yes" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 if test "x$smart_include" = "x"; then
6972 if test "x$LOCATE" != "x"; then
6976 for x in `${LOCATE} $file 2>/dev/null`; do
6977 base=`echo $x | sed "s%/${file}%%"`
6978 if test "x$x" = "x$base"; then
6982 dir=`${DIRNAME} $x 2>/dev/null`
6983 exclude=`echo ${dir} | ${GREP} /home`
6984 if test "x$exclude" != "x"; then
6988 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
6989 if test "x$already" = "x"; then
6995 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
6997 for try in $smart_include_dir /usr/local/include /opt/include; do
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
6999 $as_echo_n "checking for regex.h in $try... " >&6; }
7000 CFLAGS="$old_CFLAGS -isystem $try"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7013 if ac_fn_c_try_compile "$LINENO"; then :
7015 smart_include="-isystem $try"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7017 $as_echo "yes" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 CFLAGS="$old_CFLAGS"
7032 if test "x$smart_include" != "x"; then
7033 eval "ac_cv_header_$ac_safe=yes"
7034 CFLAGS="$old_CFLAGS $smart_include"
7035 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7038 if test "x$ac_cv_header_regex_h" = "xyes"; then
7040 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053 $EGREP "yes" >/dev/null 2>&1; then :
7055 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
7068 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7071 $as_echo "#define OSFC2 /**/" >>confdefs.h
7075 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7078 $as_echo "#define OSFSIA /**/" >>confdefs.h
7082 if test "x$WITH_OPENSSL" = xyes; then
7084 old_LDFLAGS="$LDFLAGS"
7086 OPENSSL_INCLUDE="-DNO_OPENSSL"
7088 if test "x$OPENSSL_LIB_DIR" != "x"; then
7089 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7093 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7094 if ${ac_cv_lib_crypto_DH_new+:} false; then :
7095 $as_echo_n "(cached) " >&6
7097 ac_check_lib_save_LIBS=$LIBS
7098 LIBS="-lcrypto $LIBS"
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7102 /* Override any GCC internal prototype to avoid an error.
7103 Use char because int might match the return type of a GCC
7104 builtin and then its argument prototype would still apply. */
7117 if ac_fn_c_try_link "$LINENO"; then :
7118 ac_cv_lib_crypto_DH_new=yes
7120 ac_cv_lib_crypto_DH_new=no
7122 rm -f core conftest.err conftest.$ac_objext \
7123 conftest$ac_exeext conftest.$ac_ext
7124 LIBS=$ac_check_lib_save_LIBS
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
7127 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
7128 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
7130 LIBS="-lcrypto $LIBS"
7132 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7135 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7136 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
7137 $as_echo_n "(cached) " >&6
7139 ac_check_lib_save_LIBS=$LIBS
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7144 /* Override any GCC internal prototype to avoid an error.
7145 Use char because int might match the return type of a GCC
7146 builtin and then its argument prototype would still apply. */
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 ac_cv_lib_ssl_SSL_new=yes
7162 ac_cv_lib_ssl_SSL_new=no
7164 rm -f core conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166 LIBS=$ac_check_lib_save_LIBS
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
7169 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
7170 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
7173 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
7175 if test "x$OPENSSL_LIB_DIR" != "x"; then
7176 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
7178 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
7182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7184 as_fn_error $? "failed linking to libssl
7185 See \`config.log' for more details" "$LINENO" 5; }
7194 old_CPPFLAGS=$CPPFLAGS
7195 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7196 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
7199 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
7211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7212 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7214 cat >>confdefs.h <<_ACEOF
7215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7222 as_fn_error $? "failed locating OpenSSL headers
7223 See \`config.log' for more details" "$LINENO" 5; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
7232 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <openssl/crypto.h>
7236 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "yes" >/dev/null 2>&1; then :
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7245 $as_echo "yes" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7253 as_fn_error $? "OpenSSL version too old
7254 See \`config.log' for more details" "$LINENO" 5; }
7261 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7262 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
7264 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
7268 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
7269 if test "$cross_compiling" = yes; then :
7270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7272 as_fn_error $? "cannot run test program while cross compiling
7273 See \`config.log' for more details" "$LINENO" 5; }
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7279 #include <openssl/opensslv.h>
7280 #include <openssl/crypto.h>
7286 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
7289 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
7298 if ac_fn_c_try_run "$LINENO"; then :
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7309 as_fn_error $? "OpenSSL library version does not match header version
7310 See \`config.log' for more details" "$LINENO" 5; }
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7315 conftest.$ac_objext conftest.beam conftest.$ac_ext
7319 CPPFLAGS=$old_CPPFLAGS
7321 LDFLAGS="$old_LDFLAGS"
7328 if test "x$PCAP_LIBS" = x; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7330 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7332 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
7333 if test "x$ac_cv_header_pcap_h" = xyes; then :
7336 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7340 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7341 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 ac_check_lib_save_LIBS=$LIBS
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7355 char pcap_fopen_offline ();
7359 return pcap_fopen_offline ();
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_lib_pcap_pcap_fopen_offline=yes
7367 ac_cv_lib_pcap_pcap_fopen_offline=no
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 LIBS=$ac_check_lib_save_LIBS
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7374 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7375 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7378 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7386 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7387 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 ac_check_lib_save_LIBS=$LIBS
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7395 /* Override any GCC internal prototype to avoid an error.
7396 Use char because int might match the return type of a GCC
7397 builtin and then its argument prototype would still apply. */
7401 char pcap_dump_fopen ();
7405 return pcap_dump_fopen ();
7410 if ac_fn_c_try_link "$LINENO"; then :
7411 ac_cv_lib_pcap_pcap_dump_fopen=yes
7413 ac_cv_lib_pcap_pcap_dump_fopen=no
7415 rm -f core conftest.err conftest.$ac_objext \
7416 conftest$ac_exeext conftest.$ac_ext
7417 LIBS=$ac_check_lib_save_LIBS
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7420 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7421 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7424 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7435 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7445 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7446 if test "x$ac_cv_type_off_t" = xyes; then :
7450 cat >>confdefs.h <<_ACEOF
7451 #define off_t long int
7456 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7457 if test "x$ac_cv_type_pid_t" = xyes; then :
7461 cat >>confdefs.h <<_ACEOF
7467 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7468 if test "x$ac_cv_type_size_t" = xyes; then :
7472 cat >>confdefs.h <<_ACEOF
7473 #define size_t unsigned int
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7479 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7480 if ${ac_cv_type_uid_t+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485 #include <sys/types.h>
7488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489 $EGREP "uid_t" >/dev/null 2>&1; then :
7490 ac_cv_type_uid_t=yes
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7498 $as_echo "$ac_cv_type_uid_t" >&6; }
7499 if test $ac_cv_type_uid_t = no; then
7501 $as_echo "#define uid_t int" >>confdefs.h
7504 $as_echo "#define gid_t int" >>confdefs.h
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7511 $as_echo_n "checking for socklen_t... " >&6; }
7512 if ${ac_cv_type_socklen_t+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 ac_cv_type_socklen_t=no
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #ifdef HAVE_SYS_TYPES_H
7519 # include <sys/types.h>
7522 #ifdef HAVE_SYS_SOCKET_H
7523 # include <sys/socket.h>
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 ac_cv_type_socklen_t=yes
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7542 $as_echo "$ac_cv_type_socklen_t" >&6; }
7544 if test "$ac_cv_type_socklen_t" != "yes"; then
7546 $as_echo "#define socklen_t int" >>confdefs.h
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7553 $as_echo_n "checking for uint8_t... " >&6; }
7554 if ${ac_cv_type_uint8_t+:} false; then :
7555 $as_echo_n "(cached) " >&6
7557 ac_cv_type_uint8_t=no
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #ifdef HAVE_INTTYPES_H
7561 # include <inttypes.h>
7564 #ifdef HAVE_STDINT_H
7565 # include <stdint.h>
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_type_uint8_t=yes
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7584 $as_echo "$ac_cv_type_uint8_t" >&6; }
7586 if test "$ac_cv_type_uint8_t" != "yes"; then
7588 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7595 $as_echo_n "checking for uint16_t... " >&6; }
7596 if ${ac_cv_type_uint16_t+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 ac_cv_type_uint16_t=no
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #ifdef HAVE_INTTYPES_H
7603 # include <inttypes.h>
7606 #ifdef HAVE_STDINT_H
7607 # include <stdint.h>
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619 ac_cv_type_uint16_t=yes
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7626 $as_echo "$ac_cv_type_uint16_t" >&6; }
7628 if test "$ac_cv_type_uint16_t" != "yes"; then
7630 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7637 $as_echo_n "checking for uint32_t... " >&6; }
7638 if ${ac_cv_type_uint32_t+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 ac_cv_type_uint32_t=no
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #ifdef HAVE_INTTYPES_H
7645 # include <inttypes.h>
7648 #ifdef HAVE_STDINT_H
7649 # include <stdint.h>
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 ac_cv_type_uint32_t=yes
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7668 $as_echo "$ac_cv_type_uint32_t" >&6; }
7670 if test "$ac_cv_type_uint32_t" != "yes"; then
7672 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7677 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7678 #ifdef HAVE_NETINET_IN_H
7679 # include <netinet/in.h>
7684 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7686 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7691 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7692 #ifdef HAVE_NETINET_IN_H
7693 # include <netinet/in.h>
7696 #ifdef HAVE_SYS_SOCKET_H
7697 # include <sys/socket.h>
7701 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7703 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7708 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7709 #ifdef HAVE_NETINET_IN_H
7710 # include <netinet/in.h>
7714 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7716 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7721 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7722 #ifdef HAVE_SYS_TYPES_H
7723 # include <sys/types.h>
7726 #ifdef HAVE_SYS_SOCKET_H
7727 # include <sys/socket.h>
7736 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7738 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7781 cat >>confdefs.h <<_ACEOF
7782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7790 $as_echo_n "checking return type of signal handlers... " >&6; }
7791 if ${ac_cv_type_signal+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <sys/types.h>
7802 return *(signal (0, 0)) (0) == 1;
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 ac_cv_type_signal=int
7810 ac_cv_type_signal=void
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7815 $as_echo "$ac_cv_type_signal" >&6; }
7817 cat >>confdefs.h <<_ACEOF
7818 #define RETSIGTYPE $ac_cv_type_signal
7823 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7826 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7833 #ifdef HAVE_STDDEF_H
7837 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7843 int foo = offsetof(struct utmpx, ut_xtime)
7848 if ac_fn_c_try_compile "$LINENO"; then :
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7856 if test "x$has_element" != "x"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858 $as_echo "yes" >&6; }
7859 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7866 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7868 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7875 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7881 #include <netinet/in.h>
7882 #ifdef HAVE_STDDEF_H
7886 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7892 int foo = offsetof(struct in_pktinfo, ipi_addr)
7897 if ac_fn_c_try_compile "$LINENO"; then :
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7905 if test "x$has_element" != "x"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7907 $as_echo "yes" >&6; }
7908 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7915 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7917 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7923 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7929 #include <netinet/in.h>
7930 #ifdef HAVE_STDDEF_H
7934 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7940 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7945 if ac_fn_c_try_compile "$LINENO"; then :
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7953 if test "x$has_element" != "x"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7955 $as_echo "yes" >&6; }
7956 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7963 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7965 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7971 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7972 if ${ac_cv_c_const+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7983 /* Ultrix mips cc rejects this sort of thing. */
7984 typedef int charset[2];
7985 const charset cs = { 0, 0 };
7986 /* SunOS 4.1.1 cc rejects this. */
7987 char const *const *pcpcc;
7989 /* NEC SVR4.0.2 mips cc rejects this. */
7990 struct point {int x, y;};
7991 static struct point const zero = {0,0};
7992 /* AIX XL C 1.02.0.0 rejects this.
7993 It does not let you subtract one const X* pointer from another in
7994 an arm of an if-expression whose if-part is not a constant
7996 const char *g = "string";
7997 pcpcc = &g + (g ? g-g : 0);
7998 /* HPUX 7.0 cc rejects these. */
8000 ppc = (char**) pcpcc;
8001 pcpcc = (char const *const *) ppc;
8002 { /* SCO 3.2v4 cc rejects this sort of thing. */
8005 char const *s = 0 ? (char *) 0 : (char const *) 0;
8010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8012 const int *foo = &x[0];
8015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8016 typedef const int *iptr;
8020 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8022 struct s { int j; const int *ap[3]; } bx;
8023 struct s *b = &bx; b->j = 5;
8025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8029 return !cs[0] && !zero.x;
8036 if ac_fn_c_try_compile "$LINENO"; then :
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8044 $as_echo "$ac_cv_c_const" >&6; }
8045 if test $ac_cv_c_const = no; then
8047 $as_echo "#define const /**/" >>confdefs.h
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
8053 $as_echo_n "checking type of OS... " >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
8056 $as_echo "$OS" >&6; }
8057 if test "$OS" = "OS/2"; then
8064 if test "x$developer" = "xyes"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
8066 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
8070 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
8071 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
8072 $as_echo_n "(cached) " >&6
8076 CFLAGS_SAVED=$CFLAGS
8077 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8080 ac_cpp='$CPP $CPPFLAGS'
8081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ax_cv_cc_wdocumentation_flag="yes"
8099 ax_cv_cc_wdocumentation_flag="no"
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 ac_cpp='$CPP $CPPFLAGS'
8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109 CFLAGS="$CFLAGS_SAVED"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
8113 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
8115 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
8116 devflags="-Wdocumentation"
8119 if test "x$GCC" = "xyes"; then
8120 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"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
8125 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
8127 CFLAGS="$CFLAGS $devflags"
8128 if test "x$EXPERIMENTAL" != "xno"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
8130 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
8135 CFLAGS="$CFLAGS -DNDEBUG"
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
8138 $as_echo "no." >&6; }
8143 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
8144 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
8146 cat >>confdefs.h <<_ACEOF
8147 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
8154 $as_echo_n "checking for TLS... " >&6; }
8155 if test "$cross_compiling" = yes; then :
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
8162 if ac_fn_c_try_run "$LINENO"; then :
8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8168 conftest.$ac_objext conftest.beam conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
8172 $as_echo "$have_tls" >&6; }
8173 if test "$have_tls" = "yes"; then
8175 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
8183 # Check whether --with-talloc-include-dir was given.
8184 if test "${with_talloc_include_dir+set}" = set; then :
8185 withval=$with_talloc_include_dir; case "$withval" in
8187 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
8192 talloc_include_dir="$withval"
8198 smart_try_dir="$talloc_include_dir"
8201 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
8202 old_CFLAGS="$CFLAGS"
8206 if test "x$smart_try_dir" != "x"; then
8207 for try in $smart_try_dir; do
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8209 $as_echo_n "checking for talloc.h in $try... " >&6; }
8210 CFLAGS="$old_CFLAGS -isystem $try"
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8223 if ac_fn_c_try_compile "$LINENO"; then :
8225 smart_include="-isystem $try"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227 $as_echo "yes" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 CFLAGS="$old_CFLAGS"
8242 if test "x$smart_include" = "x"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
8244 $as_echo_n "checking for talloc.h... " >&6; }
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8257 if ac_fn_c_try_compile "$LINENO"; then :
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8261 $as_echo "yes" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 if test "x$smart_include" = "x"; then
8277 if test "x$LOCATE" != "x"; then
8281 for x in `${LOCATE} $file 2>/dev/null`; do
8282 base=`echo $x | sed "s%/${file}%%"`
8283 if test "x$x" = "x$base"; then
8287 dir=`${DIRNAME} $x 2>/dev/null`
8288 exclude=`echo ${dir} | ${GREP} /home`
8289 if test "x$exclude" != "x"; then
8293 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8294 if test "x$already" = "x"; then
8300 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8302 for try in $smart_include_dir /usr/local/include /opt/include; do
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8304 $as_echo_n "checking for talloc.h in $try... " >&6; }
8305 CFLAGS="$old_CFLAGS -isystem $try"
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8318 if ac_fn_c_try_compile "$LINENO"; then :
8320 smart_include="-isystem $try"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8322 $as_echo "yes" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 CFLAGS="$old_CFLAGS"
8337 if test "x$smart_include" != "x"; then
8338 eval "ac_cv_header_$ac_safe=yes"
8339 CFLAGS="$old_CFLAGS $smart_include"
8340 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8343 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8345 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8346 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8348 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
8349 LIBS="-ltalloc ${LIBS}"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8353 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8354 if ${ac_cv_lib_crypt_crypt+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 ac_check_lib_save_LIBS=$LIBS
8358 LIBS="-lcrypt $LIBS"
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8362 /* Override any GCC internal prototype to avoid an error.
8363 Use char because int might match the return type of a GCC
8364 builtin and then its argument prototype would still apply. */
8377 if ac_fn_c_try_link "$LINENO"; then :
8378 ac_cv_lib_crypt_crypt=yes
8380 ac_cv_lib_crypt_crypt=no
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8387 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8388 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8394 if test "$CRYPTLIB" != ""; then
8396 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8399 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8400 if test "x$ac_cv_func_crypt" = xyes; then :
8402 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8409 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8410 if ${ac_cv_lib_cipher_setkey+:} false; then :
8411 $as_echo_n "(cached) " >&6
8413 ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-lcipher $LIBS"
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8418 /* Override any GCC internal prototype to avoid an error.
8419 Use char because int might match the return type of a GCC
8420 builtin and then its argument prototype would still apply. */
8433 if ac_fn_c_try_link "$LINENO"; then :
8434 ac_cv_lib_cipher_setkey=yes
8436 ac_cv_lib_cipher_setkey=no
8438 rm -f core conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_lib_save_LIBS
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8443 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8444 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8445 CRYPTLIB="${CRYPTLIB} -lcipher"
8452 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8456 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8460 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8463 gethostbyaddrrstyle=""
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8465 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8468 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8474 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8480 cat >>confdefs.h <<_ACEOF
8481 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8483 if test $ac_have_decl = 1; then :
8488 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8490 gethostbyaddrrstyle=BSD
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8492 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8499 if test "x$gethostbyaddrrstyle" = "x"; then
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8509 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8514 if ac_fn_c_try_link "$LINENO"; then :
8517 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8519 gethostbyaddrrstyle=GNU
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8527 if test "x$gethostbyaddrrstyle" = "x"; then
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8537 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8542 if ac_fn_c_try_link "$LINENO"; then :
8545 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8547 gethostbyaddrrstyle=SYSV
8551 rm -f core conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8556 if test "x$gethostbyaddrrstyle" = "x"; then
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8566 gethostbyaddr(NULL, 0, 0)
8571 if ac_fn_c_try_link "$LINENO"; then :
8574 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8576 gethostbyaddrrstyle=BSD
8580 rm -f core conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8584 if test "x$gethostbyaddrrstyle" = "x"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8586 $as_echo "none! It must not exist, here." >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8589 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8592 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8594 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8597 gethostbynamerstyle=""
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8599 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8609 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8614 if ac_fn_c_try_link "$LINENO"; then :
8617 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8619 gethostbynamerstyle=GNU
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8626 if test "x$gethostbynamerstyle" = "x"; then
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8636 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8641 if ac_fn_c_try_link "$LINENO"; then :
8644 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8646 gethostbynamerstyle=SYSV
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8654 if test "x$gethostbynamerstyle" = "x"; then
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8669 if ac_fn_c_try_link "$LINENO"; then :
8672 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8674 gethostbynamerstyle=BSD
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8682 if test "x$gethostbynamerstyle" = "x"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8684 $as_echo "none! It must not exist, here." >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8687 $as_echo "${gethostbynamerstyle}-style" >&6; }
8690 if test "x$gethostbynamerstyle" = "xBSD"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8692 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8696 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8699 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8703 $as_echo_n "checking ctime_r() syntax... " >&6; }
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8712 ctime_r(NULL, NULL, 0)
8717 if ac_fn_c_try_link "$LINENO"; then :
8720 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8722 ctimerstyle="SOLARIS"
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8729 if test "x$ctimerstyle" = "x"; then
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8743 if ac_fn_c_try_link "$LINENO"; then :
8746 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8752 rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8756 if test "x$ctimerstyle" = "x"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8758 $as_echo "none! It must not exist, here." >&6; }
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8761 $as_echo "${ctimerstyle}-style" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8771 $as_echo "top_builddir=$top_builddir" >&6; }
8776 if test "x$EXPERIMENTAL" = "xyes"; then
8777 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8778 MODULES="$MODULES $foo"
8781 for foo in `cat "${srcdir}"/src/modules/stable`; do
8782 MODULES="$MODULES $foo"
8787 for bar in $MODULES; do
8788 if test -f "${srcdir}"/src/modules/$bar/configure; then
8789 mysubdirs="$mysubdirs src/modules/$bar"
8795 subdirs="$subdirs $mysubdirs"
8799 if test "x$werror" == "xyes"; then
8800 CFLAGS="-Werror $CFLAGS"
8803 ac_config_commands="$ac_config_commands stamp-h"
8805 ac_config_commands="$ac_config_commands build-radpaths-h"
8807 ac_config_commands="$ac_config_commands main-chmod"
8809 ac_config_commands="$ac_config_commands scripts-chmod"
8815 USE_SHARED_LIBS=$enable_shared
8817 USE_STATIC_LIBS=$enable_static
8822 unset ac_cv_env_LIBS_set
8823 unset ac_cv_env_LIBS_value
8825 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"
8827 cat >confcache <<\_ACEOF
8828 # This file is a shell script that caches the results of configure
8829 # tests run on this system so they can be shared between configure
8830 # scripts and configure runs, see configure's option --config-cache.
8831 # It is not useful on other systems. If it contains results you don't
8832 # want to keep, you may remove or edit it.
8834 # config.status only pays attention to the cache file if you give it
8835 # the --recheck option to rerun configure.
8837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8843 # The following way of writing the cache mishandles newlines in values,
8844 # but we know of no workaround that is simple, portable, and efficient.
8845 # So, we kill variables containing newlines.
8846 # Ultrix sh set writes to stderr and can't be redirected directly,
8847 # and sets the high bit in the cache file unless we assign to the vars.
8849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8850 eval ac_val=\$$ac_var
8854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8858 _ | IFS | as_nl) ;; #(
8859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8860 *) { eval $ac_var=; unset $ac_var;} ;;
8866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8867 *${as_nl}ac_space=\ *)
8868 # `set' does not quote correctly, so add quotes: double-quote
8869 # substitution turns \\\\ into \\, and sed turns \\ into \.
8872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8875 # `set' quotes correctly as required by POSIX, so do not add quotes.
8876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8890 if test -w "$cache_file"; then
8891 if test "x$cache_file" != "x/dev/null"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8893 $as_echo "$as_me: updating cache $cache_file" >&6;}
8894 if test ! -f "$cache_file" || test -h "$cache_file"; then
8895 cat confcache >"$cache_file"
8897 case $cache_file in #(
8899 mv -f confcache "$cache_file"$$ &&
8900 mv -f "$cache_file"$$ "$cache_file" ;; #(
8902 mv -f confcache "$cache_file" ;;
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8908 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8914 # Let make expand exec_prefix.
8915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8917 DEFS=-DHAVE_CONFIG_H
8922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8923 # 1. Remove the extension, and $U if already installed.
8924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8925 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8927 # will be set to the directory where LIBOBJS objects are built.
8928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8933 LTLIBOBJS=$ac_ltlibobjs
8938 : "${CONFIG_STATUS=./config.status}"
8940 ac_clean_files_save=$ac_clean_files
8941 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8943 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8945 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8947 # Generated by $as_me.
8948 # Run this file to recreate the current configuration.
8949 # Compiler output produced by configure, useful for debugging
8950 # configure, is in config.log if it exists.
8956 SHELL=\${CONFIG_SHELL-$SHELL}
8959 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8960 ## -------------------- ##
8961 ## M4sh Initialization. ##
8962 ## -------------------- ##
8964 # Be more Bourne compatible
8965 DUALCASE=1; export DUALCASE # for MKS sh
8966 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8969 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8970 # is contrary to our usage. Disable this feature.
8971 alias -g '${1+"$@"}'='"$@"'
8972 setopt NO_GLOB_SUBST
8974 case `(set -o) 2>/dev/null` in #(
8986 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8987 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8988 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8990 # Prefer a ksh shell builtin over an external printf program on Solaris,
8991 # but without wasting forks for bash or zsh.
8992 if test -z "$BASH_VERSION$ZSH_VERSION" \
8993 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8994 as_echo='print -r --'
8995 as_echo_n='print -rn --'
8996 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8997 as_echo='printf %s\n'
8998 as_echo_n='printf %s'
9000 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9001 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9002 as_echo_n='/usr/ucb/echo -n'
9004 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9005 as_echo_n_body='eval
9009 expr "X$arg" : "X\\(.*\\)$as_nl";
9010 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9012 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9014 export as_echo_n_body
9015 as_echo_n='sh -c $as_echo_n_body as_echo'
9018 as_echo='sh -c $as_echo_body as_echo'
9021 # The user is always right.
9022 if test "${PATH_SEPARATOR+set}" != set; then
9024 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9025 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9032 # We need space, tab and new line, in precisely that order. Quoting is
9033 # there to prevent editors from complaining about space-tab.
9034 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9035 # splitting by setting IFS to empty value.)
9038 # Find who we are. Look in the path if we contain no directory separator.
9041 *[\\/]* ) as_myself=$0 ;;
9042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 test -z "$as_dir" && as_dir=.
9047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9053 # We did not find ourselves, most probably we were run as `sh COMMAND'
9054 # in which case we are not to be found in the path.
9055 if test "x$as_myself" = x; then
9058 if test ! -f "$as_myself"; then
9059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9063 # Unset variables that we do not need and which cause bugs (e.g. in
9064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9065 # suppresses any "Segmentation fault" message there. '((' could
9066 # trigger a bug in pdksh 5.2.14.
9067 for as_var in BASH_ENV ENV MAIL MAILPATH
9068 do eval test x\${$as_var+set} = xset \
9069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9085 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9086 # ----------------------------------------
9087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9089 # script with STATUS, using 1 if that was 0.
9092 as_status=$1; test $as_status -eq 0 && as_status=1
9094 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9097 $as_echo "$as_me: error: $2" >&2
9098 as_fn_exit $as_status
9102 # as_fn_set_status STATUS
9103 # -----------------------
9104 # Set $? to STATUS, without forking.
9108 } # as_fn_set_status
9112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9122 # Portably unset VAR.
9125 { eval $1=; unset $1;}
9127 as_unset=as_fn_unset
9128 # as_fn_append VAR VALUE
9129 # ----------------------
9130 # Append the text in VALUE to the end of the definition contained in VAR. Take
9131 # advantage of any shell optimizations that allow amortized linear growth over
9132 # repeated appends, instead of the typical quadratic growth present in naive
9134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9135 eval 'as_fn_append ()
9146 # as_fn_arith ARG...
9147 # ------------------
9148 # Perform arithmetic evaluation on the ARGs, and store the result in the
9149 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9150 # must be portable across $(()) and expr.
9151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9152 eval 'as_fn_arith ()
9159 as_val=`expr "$@" || test $? -eq 1`
9164 if expr a : '\(a\)' >/dev/null 2>&1 &&
9165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9172 as_basename=basename
9177 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9183 as_me=`$as_basename -- "$0" ||
9184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9185 X"$0" : 'X\(//\)$' \| \
9186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9188 sed '/^.*\/\([^/][^/]*\)\/*$/{
9202 # Avoid depending upon Character Ranges.
9203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9206 as_cr_digits='0123456789'
9207 as_cr_alnum=$as_cr_Letters$as_cr_digits
9209 ECHO_C= ECHO_N= ECHO_T=
9210 case `echo -n x` in #(((((
9212 case `echo 'xy\c'` in
9213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9222 rm -f conf$$ conf$$.exe conf$$.file
9223 if test -d conf$$.dir; then
9224 rm -f conf$$.dir/conf$$.file
9227 mkdir conf$$.dir 2>/dev/null
9229 if (echo >conf$$.file) 2>/dev/null; then
9230 if ln -s conf$$.file conf$$ 2>/dev/null; then
9232 # ... but there are two gotchas:
9233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9235 # In both cases, we have to default to `cp -pR'.
9236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9238 elif ln conf$$.file conf$$ 2>/dev/null; then
9246 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9247 rmdir conf$$.dir 2>/dev/null
9252 # Create "$as_dir" as a directory, including parents if necessary.
9257 -*) as_dir=./$as_dir;;
9259 test -d "$as_dir" || eval $as_mkdir_p || {
9263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9264 *) as_qdir=$as_dir;;
9266 as_dirs="'$as_qdir' $as_dirs"
9267 as_dir=`$as_dirname -- "$as_dir" ||
9268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9269 X"$as_dir" : 'X\(//\)[^/]' \| \
9270 X"$as_dir" : 'X\(//\)$' \| \
9271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9272 $as_echo X"$as_dir" |
9273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9290 test -d "$as_dir" && break
9292 test -z "$as_dirs" || eval "mkdir $as_dirs"
9293 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9297 if mkdir -p . 2>/dev/null; then
9298 as_mkdir_p='mkdir -p "$as_dir"'
9300 test -d ./-p && rmdir ./-p
9305 # as_fn_executable_p FILE
9306 # -----------------------
9307 # Test if FILE is an executable regular file.
9308 as_fn_executable_p ()
9310 test -f "$1" && test -x "$1"
9311 } # as_fn_executable_p
9313 as_executable_p=as_fn_executable_p
9315 # Sed expression to map a string onto a valid CPP name.
9316 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9318 # Sed expression to map a string onto a valid variable name.
9319 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9323 ## ----------------------------------- ##
9324 ## Main body of $CONFIG_STATUS script. ##
9325 ## ----------------------------------- ##
9327 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9330 # Save the log message, to keep $0 and so on meaningful, and to
9331 # report actual input values of CONFIG_FILES etc. instead of their
9332 # values after options handling.
9334 This file was extended by freeradius $as_me $Id$, which was
9335 generated by GNU Autoconf 2.69. Invocation command line was
9337 CONFIG_FILES = $CONFIG_FILES
9338 CONFIG_HEADERS = $CONFIG_HEADERS
9339 CONFIG_LINKS = $CONFIG_LINKS
9340 CONFIG_COMMANDS = $CONFIG_COMMANDS
9343 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9348 case $ac_config_files in *"
9349 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9352 case $ac_config_headers in *"
9353 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9358 # Files that config.status was made for.
9359 config_files="$ac_config_files"
9360 config_headers="$ac_config_headers"
9361 config_commands="$ac_config_commands"
9365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9367 \`$as_me' instantiates files and other configuration actions
9368 from templates according to the current configuration. Unless the files
9369 and actions are specified as TAGs, all are instantiated by default.
9371 Usage: $0 [OPTION]... [TAG]...
9373 -h, --help print this help, then exit
9374 -V, --version print version number and configuration settings, then exit
9375 --config print configuration, then exit
9376 -q, --quiet, --silent
9377 do not print progress messages
9378 -d, --debug don't remove temporary files
9379 --recheck update $as_me by reconfiguring in the same conditions
9380 --file=FILE[:TEMPLATE]
9381 instantiate the configuration file FILE
9382 --header=FILE[:TEMPLATE]
9383 instantiate the configuration header FILE
9385 Configuration files:
9388 Configuration headers:
9391 Configuration commands:
9394 Report bugs to <http://bugs.freeradius.org>.
9395 freeradius home page: <http://www.freeradius.org>."
9398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9399 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9401 freeradius config.status $Id$
9402 configured by $0, generated by GNU Autoconf 2.69,
9403 with options \\"\$ac_cs_config\\"
9405 Copyright (C) 2012 Free Software Foundation, Inc.
9406 This config.status script is free software; the Free Software Foundation
9407 gives unlimited permission to copy, distribute and modify it."
9411 test -n "\$AWK" || AWK=awk
9414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9415 # The default lists apply if the user does not specify any file.
9421 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9438 # Handling of the options.
9439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9442 $as_echo "$ac_cs_version"; exit ;;
9443 --config | --confi | --conf | --con | --co | --c )
9444 $as_echo "$ac_cs_config"; exit ;;
9445 --debug | --debu | --deb | --de | --d | -d )
9447 --file | --fil | --fi | --f )
9450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9451 '') as_fn_error $? "missing file argument" ;;
9453 as_fn_append CONFIG_FILES " '$ac_optarg'"
9454 ac_need_defaults=false;;
9455 --header | --heade | --head | --hea )
9458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9461 ac_need_defaults=false;;
9463 # Conflict between --help and --header
9464 as_fn_error $? "ambiguous option: \`$1'
9465 Try \`$0 --help' for more information.";;
9466 --help | --hel | -h )
9467 $as_echo "$ac_cs_usage"; exit ;;
9468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9473 -*) as_fn_error $? "unrecognized option: \`$1'
9474 Try \`$0 --help' for more information." ;;
9476 *) as_fn_append ac_config_targets " $1"
9477 ac_need_defaults=false ;;
9483 ac_configure_extra_args=
9485 if $ac_cs_silent; then
9487 ac_configure_extra_args="$ac_configure_extra_args --silent"
9491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9492 if \$ac_cs_recheck; then
9493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9496 CONFIG_SHELL='$SHELL'
9502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9507 ## Running $as_me. ##
9513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9518 # Handling of arguments.
9519 for ac_config_target in $ac_config_targets
9521 case $ac_config_target in
9522 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9523 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9524 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9525 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9526 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9527 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9528 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9529 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9530 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9531 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9532 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9533 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9534 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9535 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9536 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9537 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9538 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9539 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9546 # If the user did not use the arguments to specify the items to instantiate,
9547 # then the envvar interface is used. Set only those that are not.
9548 # We use the long form for the default assignment because of an extremely
9549 # bizarre bug on SunOS 4.1.3.
9550 if $ac_need_defaults; then
9551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9556 # Have a temporary directory for convenience. Make it in the build tree
9557 # simply because there is no reason against having it here, and in addition,
9558 # creating and moving files from /tmp can sometimes cause problems.
9559 # Hook for its removal unless debugging.
9560 # Note that there is a small window in which the directory will not be cleaned:
9561 # after its creation but before its name has been assigned to `$tmp'.
9565 trap 'exit_status=$?
9567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9569 trap 'as_fn_exit 1' 1 2 13 15
9571 # Create a (secure) tmp directory for tmp files.
9574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9578 tmp=./conf$$-$RANDOM
9579 (umask 077 && mkdir "$tmp")
9580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9583 # Set up the scripts for CONFIG_FILES section.
9584 # No need to generate them if there are no CONFIG_FILES.
9585 # This happens for instance with `./config.status config.h'.
9586 if test -n "$CONFIG_FILES"; then
9589 ac_cr=`echo X | tr X '\015'`
9590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9591 # But we know of no other shell where ac_cr would be empty at this
9592 # point, so we can use a bashism as a fallback.
9593 if test "x$ac_cr" = x; then
9594 eval ac_cr=\$\'\\r\'
9596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9608 echo "cat >conf$$subs.awk <<_ACEOF" &&
9609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9615 for ac_last_try in false false false false false :; do
9616 . ./conf$$subs.sh ||
9617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9620 if test $ac_delim_n = $ac_delim_num; then
9622 elif $ac_last_try; then
9623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9631 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9635 s/^/S["/; s/!.*/"]=/
9645 s/\(.\{148\}\)..*/\1/
9647 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9659 s/\(.\{148\}\)..*/\1/
9661 s/["\\]/\\&/g; s/^/"/; s/$/"/
9665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9670 ' <conf$$subs.awk | sed '
9675 ' >>$CONFIG_STATUS || ac_write_fail=1
9676 rm -f conf$$subs.awk
9677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9679 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9680 for (key in S) S_is_set[key] = 1
9686 nfields = split(line, field, "@")
9688 len = length(field[1])
9689 for (i = 2; i < nfields; i++) {
9691 keylen = length(key)
9692 if (S_is_set[key]) {
9694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9695 len += length(value) + length(field[++i])
9706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9711 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9717 # trailing colons and then remove the whole line if VPATH becomes empty
9718 # (actually we leave an empty line to preserve line numbers).
9719 if test "x$srcdir" = x.; then
9720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9739 fi # test -n "$CONFIG_FILES"
9741 # Set up the scripts for CONFIG_HEADERS section.
9742 # No need to generate them if there are no CONFIG_HEADERS.
9743 # This happens for instance with `./config.status Makefile'.
9744 if test -n "$CONFIG_HEADERS"; then
9745 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9749 # Transform confdefs.h into an awk script `defines.awk', embedded as
9750 # here-document in config.status, that substitutes the proper values into
9751 # config.h.in to produce config.h.
9753 # Create a delimiter string that does not exist in confdefs.h, to ease
9754 # handling of long lines.
9756 for ac_last_try in false false :; do
9757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9758 if test -z "$ac_tt"; then
9760 elif $ac_last_try; then
9761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9767 # For the awk script, D is an array of macro values keyed by name,
9768 # likewise P contains macro parameters if any. Preserve backslash
9769 # newline sequences.
9771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9773 s/.\{148\}/&'"$ac_delim"'/g
9776 s/^[ ]*#[ ]*define[ ][ ]*/ /
9783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9790 D["\1"]=" \3\\\\\\n"\\/p
9792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9797 s/.\{148\}/&'"$ac_delim"'/g
9802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9807 ' <confdefs.h | sed '
9808 s/'"$ac_delim"'/"\\\
9809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9812 for (key in D) D_is_set[key] = 1
9815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9817 split(line, arg, " ")
9818 if (arg[1] == "#") {
9822 defundef = substr(arg[1], 2)
9825 split(mac1, mac2, "(") #)
9827 prefix = substr(line, 1, index(line, defundef) - 1)
9828 if (D_is_set[macro]) {
9829 # Preserve the white space surrounding the "#".
9830 print prefix "define", macro P[macro] D[macro]
9833 # Replace #undef with comments. This is necessary, for example,
9834 # in the case of _POSIX_SOURCE, which is predefined and required
9835 # on some systems where configure will not decide to define it.
9836 if (defundef == "undef") {
9837 print "/*", prefix defundef, macro, "*/"
9845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9847 fi # test -n "$CONFIG_HEADERS"
9850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9855 :[FHLC]) ac_mode=$ac_tag; continue;;
9857 case $ac_mode$ac_tag in
9859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9860 :[FH]-) ac_tag=-:-;;
9861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9878 -) ac_f="$ac_tmp/stdin";;
9879 *) # Look for the file first in the build tree, then in the source tree
9880 # (if the path is not absolute). The absolute path cannot be DOS-style,
9881 # because $ac_f cannot contain `:'.
9885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9890 as_fn_append ac_file_inputs " '$ac_f'"
9893 # Let's still pretend it is `configure' which instantiates (i.e., don't
9894 # use $as_me), people would be surprised to read:
9895 # /* config.h. Generated by config.status. */
9896 configure_input='Generated from '`
9897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9899 if test x"$ac_file" != x-; then
9900 configure_input="$ac_file. $configure_input"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9902 $as_echo "$as_me: creating $ac_file" >&6;}
9904 # Neutralize special characters interpreted by sed in replacement strings.
9905 case $configure_input in #(
9906 *\&* | *\|* | *\\* )
9907 ac_sed_conf_input=`$as_echo "$configure_input" |
9908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9909 *) ac_sed_conf_input=$configure_input;;
9913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9919 ac_dir=`$as_dirname -- "$ac_file" ||
9920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9921 X"$ac_file" : 'X\(//\)[^/]' \| \
9922 X"$ac_file" : 'X\(//\)$' \| \
9923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9924 $as_echo X"$ac_file" |
9925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9942 as_dir="$ac_dir"; as_fn_mkdir_p
9946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9949 # A ".." for each directory in $ac_dir_suffix.
9950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9951 case $ac_top_builddir_sub in
9952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9956 ac_abs_top_builddir=$ac_pwd
9957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9958 # for backward compatibility:
9959 ac_top_builddir=$ac_top_build_prefix
9962 .) # We are building in place.
9964 ac_top_srcdir=$ac_top_builddir_sub
9965 ac_abs_top_srcdir=$ac_pwd ;;
9966 [\\/]* | ?:[\\/]* ) # Absolute name.
9967 ac_srcdir=$srcdir$ac_dir_suffix;
9968 ac_top_srcdir=$srcdir
9969 ac_abs_top_srcdir=$srcdir ;;
9971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9972 ac_top_srcdir=$ac_top_build_prefix$srcdir
9973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9987 # If the template does not know about datarootdir, expand it.
9988 # FIXME: This hack should be removed a few years after 2.60.
9989 ac_datarootdir_hack=; ac_datarootdir_seen=
10000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10001 *datarootdir*) ac_datarootdir_seen=yes;;
10002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10007 ac_datarootdir_hack='
10008 s&@datadir@&$datadir&g
10009 s&@docdir@&$docdir&g
10010 s&@infodir@&$infodir&g
10011 s&@localedir@&$localedir&g
10012 s&@mandir@&$mandir&g
10013 s&\\\${datarootdir}&$datarootdir&g' ;;
10017 # Neutralize VPATH when `$srcdir' = `.'.
10018 # Shell code in configure.ac might set extrasub.
10019 # FIXME: do we really want to maintain this feature?
10020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10021 ac_sed_extra="$ac_vpsub
10024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10027 s|@configure_input@|$ac_sed_conf_input|;t t
10028 s&@top_builddir@&$ac_top_builddir_sub&;t t
10029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10030 s&@srcdir@&$ac_srcdir&;t t
10031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10032 s&@top_srcdir@&$ac_top_srcdir&;t t
10033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10034 s&@builddir@&$ac_builddir&;t t
10035 s&@abs_builddir@&$ac_abs_builddir&;t t
10036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10037 $ac_datarootdir_hack
10039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10047 which seems to be undefined. Please make sure it is defined" >&5
10048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10049 which seems to be undefined. Please make sure it is defined" >&2;}
10051 rm -f "$ac_tmp/stdin"
10053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10062 if test x"$ac_file" != x-; then
10064 $as_echo "/* $configure_input */" \
10065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10066 } >"$ac_tmp/config.h" \
10067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10073 mv "$ac_tmp/config.h" "$ac_file" \
10074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10077 $as_echo "/* $configure_input */" \
10078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10079 || as_fn_error $? "could not create -" "$LINENO" 5
10083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10084 $as_echo "$as_me: executing $ac_file commands" >&6;}
10089 case $ac_file$ac_mode in
10090 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10091 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10092 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10093 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10101 ac_clean_files=$ac_clean_files_save
10103 test $ac_write_fail = 0 ||
10104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10107 # configure is writing to config.log, and then calls config.status.
10108 # config.status does its own redirection, appending to config.log.
10109 # Unfortunately, on DOS this fails, as config.log is still kept open
10110 # by configure, so config.status won't be able to write to it; its
10111 # output is simply discarded. So we exec the FD to /dev/null,
10112 # effectively closing config.log, so it can be properly (re)opened and
10113 # appended to by config.status. When coming back to configure, we
10114 # need to make the FD available again.
10115 if test "$no_create" != yes; then
10117 ac_config_status_args=
10118 test "$silent" = yes &&
10119 ac_config_status_args="$ac_config_status_args --quiet"
10121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10124 # would make configure fail if this is the last instruction.
10125 $ac_cs_success || as_fn_exit 1
10129 # CONFIG_SUBDIRS section.
10131 if test "$no_recursion" != yes; then
10133 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10134 # so they do not pile up.
10135 ac_sub_configure_args=
10137 eval "set x $ac_configure_args"
10141 if test -n "$ac_prev"; then
10146 -cache-file | --cache-file | --cache-fil | --cache-fi \
10147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10148 ac_prev=cache_file ;;
10149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10153 --config-cache | -C)
10155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10163 --disable-option-checking)
10167 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10169 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10173 # Always prepend --prefix to ensure using the same prefix
10174 # in subdir configurations.
10175 ac_arg="--prefix=$prefix"
10177 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10179 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10182 if test "$silent" = yes; then
10183 ac_sub_configure_args="--silent $ac_sub_configure_args"
10186 # Always prepend --disable-option-checking to silence warnings, since
10187 # different subdirs can have different --enable and --with options.
10188 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10191 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10193 # Do not complain, so a configure script can configure whichever
10194 # parts of a large source tree are present.
10195 test -d "$srcdir/$ac_dir" || continue
10197 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10199 $as_echo "$ac_msg" >&6
10200 as_dir="$ac_dir"; as_fn_mkdir_p
10204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10207 # A ".." for each directory in $ac_dir_suffix.
10208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10209 case $ac_top_builddir_sub in
10210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10214 ac_abs_top_builddir=$ac_pwd
10215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10216 # for backward compatibility:
10217 ac_top_builddir=$ac_top_build_prefix
10220 .) # We are building in place.
10222 ac_top_srcdir=$ac_top_builddir_sub
10223 ac_abs_top_srcdir=$ac_pwd ;;
10224 [\\/]* | ?:[\\/]* ) # Absolute name.
10225 ac_srcdir=$srcdir$ac_dir_suffix;
10226 ac_top_srcdir=$srcdir
10227 ac_abs_top_srcdir=$srcdir ;;
10228 *) # Relative name.
10229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10230 ac_top_srcdir=$ac_top_build_prefix$srcdir
10231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10238 # Check for guested configure; otherwise get Cygnus style configure.
10239 if test -f "$ac_srcdir/configure.gnu"; then
10240 ac_sub_configure=$ac_srcdir/configure.gnu
10241 elif test -f "$ac_srcdir/configure"; then
10242 ac_sub_configure=$ac_srcdir/configure
10243 elif test -f "$ac_srcdir/configure.in"; then
10244 # This should be Cygnus configure.
10245 ac_sub_configure=$ac_aux_dir/configure
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10248 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10252 # The recursion is here.
10253 if test -n "$ac_sub_configure"; then
10254 # Make the cache file name correct relative to the subdirectory.
10255 case $cache_file in
10256 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10257 *) # Relative name.
10258 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10261 { $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
10262 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10263 # The eval makes quoting arguments work.
10264 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10265 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10266 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10274 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}