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
686 RADIUSD_VERSION_STRING
714 program_transform_name
727 enable_option_checking
730 enable_strict_dependencies
742 with_experimental_modules
744 with_openssl_includes
745 with_openssl_libraries
747 with_rlm_FOO_include_dir
749 with_talloc_include_dir
751 ac_precious_vars='build_alias
763 ac_subdirs_all='$mysubdirs'
765 # Initialize some variables set by options.
767 ac_init_version=false
768 ac_unrecognized_opts=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
779 program_transform_name=s,x,x,
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 # Accept the important Cygnus configure options, so we can diagnose typos.
832 case $ac_dashdash$ac_option in
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
854 cache_file=config.cache ;;
856 -datadir | --datadir | --datadi | --datad)
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
908 eval enable_$ac_useropt=\$ac_optarg ;;
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
923 -help | --help | --hel | --he | -h)
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 htmldir=$ac_optarg ;;
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
953 -libdir | --libdir | --libdi | --libd)
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
965 -localedir | --localedir | --localedi | --localed | --locale)
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 # Obsolete; use --without-fp.
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1044 -psdir | --psdir | --psdi | --psd | --ps)
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 sbindir=$ac_optarg ;;
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 sharedstatedir=$ac_optarg ;;
1070 -site | --site | --sit)
1072 -site=* | --site=* | --sit=*)
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval with_$ac_useropt=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=no ;;
1131 # Obsolete; use --with-x.
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information"
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error $? "missing argument to $ac_option"
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1199 # Be sure to have absolute directory names.
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1212 target=$target_alias
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 elif test "x$build_alias" != "x$host_alias"; then
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226 test "$silent" = yes && exec 6>/dev/null
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error $? "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error $? "pwd does not report name of working directory"
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking ...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of freeradius $Id$:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-developer enables features of interest to developers.
1378 --disable-largefile omit support for large files
1379 --enable-strict-dependencies Fail configure on lack of module dependancy.
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1385 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1386 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1387 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1388 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1389 --with-threads Use threads, if available. (default=yes)
1390 --with-tcp Compile in TCP support. (default=yes)
1391 --with-vmps Compile in VMPS support. (default=yes)
1392 --with-dhcp Compile in DHCP support. (default=yes)
1393 --with-static-modules=QUOTED-MODULE-LIST
1394 --with-modules=QUOTED-MODULE-LIST
1395 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1396 --with-openssl Use OpenSSL. (default=yes)
1397 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1398 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1399 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1400 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1401 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1402 --with-talloc-include-dir=DIR
1403 Directory where the talloc includes may be found
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1420 Report bugs to <http://bugs.freeradius.org>.
1421 freeradius home page: <http://www.freeradius.org>.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1484 freeradius configure $Id$
1485 generated by GNU Autoconf 2.69
1487 Copyright (C) 2012 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1534 } # ac_fn_c_try_compile
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1572 } # ac_fn_cxx_try_compile
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } > conftest.i && {
1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1611 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1614 # the include files in INCLUDES and setting the cache variable VAR
1616 ac_fn_c_check_header_mongrel ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if eval \${$3+:} false; then :
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 $as_echo "$ac_res" >&6; }
1629 # Is the header compilable?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1631 $as_echo_n "checking $2 usability... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 ac_header_compiler=yes
1640 ac_header_compiler=no
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1644 $as_echo "$ac_header_compiler" >&6; }
1646 # Is the header present?
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1648 $as_echo_n "checking $2 presence... " >&6; }
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1653 if ac_fn_c_try_cpp "$LINENO"; then :
1654 ac_header_preproc=yes
1656 ac_header_preproc=no
1658 rm -f conftest.err conftest.i conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1660 $as_echo "$ac_header_preproc" >&6; }
1662 # So? What about this header?
1663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1666 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1672 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1674 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1676 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1678 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ( $as_echo "## ----------------------------------------- ##
1682 ## Report this to http://bugs.freeradius.org ##
1683 ## ----------------------------------------- ##"
1684 ) | sed "s/^/$as_me: WARNING: /" >&2
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 eval "$3=\$ac_header_compiler"
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_mongrel
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=$ac_status
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_header_compile
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_link
1821 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1822 # -------------------------------------------
1823 # Tests whether TYPE exists after having included INCLUDES, setting cache
1824 # variable VAR accordingly.
1825 ac_fn_c_check_type ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1859 if ac_fn_c_try_compile "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_type
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1943 # ---------------------------------------------
1944 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1946 ac_fn_c_check_decl ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 as_decl_name=`echo $2|sed 's/ *(.*//'`
1950 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1952 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 #ifndef $as_decl_name
1964 (void) $as_decl_use;
1966 (void) $as_decl_name;
1974 if ac_fn_c_try_compile "$LINENO"; then :
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_decl
1987 cat >config.log <<_ACEOF
1988 This file contains any messages produced by compilers while
1989 running configure, to aid debugging if configure makes a mistake.
1991 It was created by freeradius $as_me $Id$, which was
1992 generated by GNU Autoconf 2.69. Invocation command line was
2004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2016 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 $as_echo "PATH: $as_dir"
2044 # Keep a trace of the command line.
2045 # Strip out --no-create and --no-recursion so they do not pile up.
2046 # Strip out --silent because we don't want to record it for future runs.
2047 # Also quote any args containing shell meta-characters.
2048 # Make two passes to allow for proper duplicate-argument suppression.
2052 ac_must_keep_next=false
2058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060 | -silent | --silent | --silen | --sile | --sil)
2063 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2068 as_fn_append ac_configure_args1 " '$ac_arg'"
2069 if test $ac_must_keep_next = true; then
2070 ac_must_keep_next=false # Got value, back to normal.
2073 *=* | --config-cache | -C | -disable-* | --disable-* \
2074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076 | -with-* | --with-* | -without-* | --without-* | --x)
2077 case "$ac_configure_args0 " in
2078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2081 -* ) ac_must_keep_next=true ;;
2084 as_fn_append ac_configure_args " '$ac_arg'"
2089 { ac_configure_args0=; unset ac_configure_args0;}
2090 { ac_configure_args1=; unset ac_configure_args1;}
2092 # When interrupted or exit'd, cleanup temporary files, and complete
2093 # config.log. We remove comments because anyway the quotes in there
2094 # would cause problems or look ugly.
2095 # WARNING: Use '\'' to represent an apostrophe within the trap.
2096 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2097 trap 'exit_status=$?
2098 # Save into config.log some information that might help in debugging.
2102 $as_echo "## ---------------- ##
2103 ## Cache variables. ##
2104 ## ---------------- ##"
2106 # The following way of writing the cache mishandles newlines in values,
2108 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2109 eval ac_val=\$$ac_var
2113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 _ | IFS | as_nl) ;; #(
2118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2119 *) { eval $ac_var=; unset $ac_var;} ;;
2124 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2125 *${as_nl}ac_space=\ *)
2127 "s/'\''/'\''\\\\'\'''\''/g;
2128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2138 $as_echo "## ----------------- ##
2139 ## Output variables. ##
2140 ## ----------------- ##"
2142 for ac_var in $ac_subst_vars
2144 eval ac_val=\$$ac_var
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 $as_echo "$ac_var='\''$ac_val'\''"
2152 if test -n "$ac_subst_files"; then
2153 $as_echo "## ------------------- ##
2154 ## File substitutions. ##
2155 ## ------------------- ##"
2157 for ac_var in $ac_subst_files
2159 eval ac_val=\$$ac_var
2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2163 $as_echo "$ac_var='\''$ac_val'\''"
2168 if test -s confdefs.h; then
2169 $as_echo "## ----------- ##
2176 test "$ac_signal" != 0 &&
2177 $as_echo "$as_me: caught signal $ac_signal"
2178 $as_echo "$as_me: exit $exit_status"
2180 rm -f core *.core core.conftest.* &&
2181 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 for ac_signal in 1 2 13 15; do
2185 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2190 rm -f -r conftest* confdefs.h
2192 $as_echo "/* confdefs.h */" > confdefs.h
2194 # Predefined preprocessor variables.
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_NAME "$PACKAGE_NAME"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_STRING "$PACKAGE_STRING"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_URL "$PACKAGE_URL"
2221 # Let the site file select an alternate cache file if it wants to.
2222 # Prefer an explicitly selected file to automatically selected ones.
2225 if test -n "$CONFIG_SITE"; then
2226 # We do not want a PATH search for config.site.
2227 case $CONFIG_SITE in #((
2228 -*) ac_site_file1=./$CONFIG_SITE;;
2229 */*) ac_site_file1=$CONFIG_SITE;;
2230 *) ac_site_file1=./$CONFIG_SITE;;
2232 elif test "x$prefix" != xNONE; then
2233 ac_site_file1=$prefix/share/config.site
2234 ac_site_file2=$prefix/etc/config.site
2236 ac_site_file1=$ac_default_prefix/share/config.site
2237 ac_site_file2=$ac_default_prefix/etc/config.site
2239 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2241 test "x$ac_site_file" = xNONE && continue
2242 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2244 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2245 sed 's/^/| /' "$ac_site_file" >&5
2247 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249 as_fn_error $? "failed to load site script $ac_site_file
2250 See \`config.log' for more details" "$LINENO" 5; }
2254 if test -r "$cache_file"; then
2255 # Some versions of bash will fail to source /dev/null (special files
2256 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2257 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2259 $as_echo "$as_me: loading cache $cache_file" >&6;}
2261 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2262 *) . "./$cache_file";;
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2267 $as_echo "$as_me: creating cache $cache_file" >&6;}
2271 # Check that the precious variables saved in the cache have kept the same
2273 ac_cache_corrupted=false
2274 for ac_var in $ac_precious_vars; do
2275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2276 eval ac_new_set=\$ac_env_${ac_var}_set
2277 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2278 eval ac_new_val=\$ac_env_${ac_var}_value
2279 case $ac_old_set,$ac_new_set in
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2283 ac_cache_corrupted=: ;;
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2286 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2287 ac_cache_corrupted=: ;;
2290 if test "x$ac_old_val" != "x$ac_new_val"; then
2291 # differences in whitespace do not lead to failure.
2292 ac_old_val_w=`echo x $ac_old_val`
2293 ac_new_val_w=`echo x $ac_new_val`
2294 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2296 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2297 ac_cache_corrupted=:
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2300 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2301 eval $ac_var=\$ac_old_val
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2304 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2306 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2309 # Pass precious variables to config.status.
2310 if test "$ac_new_set" = set; then
2312 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2313 *) ac_arg=$ac_var=$ac_new_val ;;
2315 case " $ac_configure_args " in
2316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2317 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2321 if $ac_cache_corrupted; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2325 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2326 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2328 ## -------------------- ##
2329 ## Main body of script. ##
2330 ## -------------------- ##
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2344 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2345 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2346 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2348 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2349 -v minor="$RADIUSD_MINOR_VERSION" \
2350 -v incrm="$RADIUSD_INCRM_VERSION" \
2351 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2353 RADIUSD_VERSION_STRING=`cat VERSION`
2358 cat >>confdefs.h <<_ACEOF
2359 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2363 cat >>confdefs.h <<_ACEOF
2364 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2369 # Check whether --enable-developer was given.
2370 if test "${enable_developer+set}" = set; then :
2371 enableval=$enable_developer; case "$enableval" in
2382 if test -d $srcdir/.git; then
2383 if test "x$developer" != "xno"; then
2388 if test "x$developer" = "xyes"; then
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Make sure we can run config.sub.
2426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430 $as_echo_n "checking build system type... " >&6; }
2431 if ${ac_cv_build+:} false; then :
2432 $as_echo_n "(cached) " >&6
2434 ac_build_alias=$build_alias
2435 test "x$ac_build_alias" = x &&
2436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437 test "x$ac_build_alias" = x &&
2438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444 $as_echo "$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2450 ac_save_IFS=$IFS; IFS='-'
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if ${ac_cv_host+:} false; then :
2466 $as_echo_n "(cached) " >&6
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 $as_echo "$ac_cv_host" >&6; }
2480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2483 ac_save_IFS=$IFS; IFS='-'
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 $as_echo_n "checking target system type... " >&6; }
2498 if ${ac_cv_target+:} false; then :
2499 $as_echo_n "(cached) " >&6
2501 if test "x$target_alias" = x; then
2502 ac_cv_target=$ac_cv_host
2504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2510 $as_echo "$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2515 target=$ac_cv_target
2516 ac_save_IFS=$IFS; IFS='-'
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529 # The aliases save the names the user supplied, while $host etc.
2530 # will get canonicalized.
2531 test -n "$target_alias" &&
2532 test "$program_prefix$program_suffix$program_transform_name" = \
2534 program_prefix=${target_alias}-
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 if test -n "$ac_tool_prefix"; then
2543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if ${ac_cv_prog_CC+:} false; then :
2548 $as_echo_n "(cached) " >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2573 $as_echo "$CC" >&6; }
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2581 if test -z "$ac_cv_prog_CC"; then
2583 # Extract the first word of "gcc", so it can be a program name with args.
2584 set dummy gcc; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 if test -n "$ac_ct_CC"; then
2591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_ac_ct_CC="gcc"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2611 if test -n "$ac_ct_CC"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2613 $as_echo "$ac_ct_CC" >&6; }
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2619 if test "x$ac_ct_CC" = x; then
2622 case $cross_compiling:$ac_tool_warned in
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2626 ac_tool_warned=yes ;;
2634 if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}cc; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_CC+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_CC="${ac_tool_prefix}cc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666 $as_echo "$CC" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2675 if test -z "$CC"; then
2676 # Extract the first word of "cc", so it can be a program name with args.
2677 set dummy cc; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2695 ac_prog_rejected=yes
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 if test $ac_prog_rejected = yes; then
2707 # We found a bogon in the path, so make sure we never use it.
2708 set dummy $ac_cv_prog_CC
2710 if test $# != 0; then
2711 # We chose a different compiler from the bogus one.
2712 # However, it has the same basename, so the bogon will be chosen
2713 # first if we set CC to just the basename; use the full file name.
2715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2733 for ac_prog in cl.exe
2735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_CC+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$CC"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$CC" && break
2775 if test -z "$CC"; then
2777 for ac_prog in cl.exe
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC="$ac_prog"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2809 $as_echo "$ac_ct_CC" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2816 test -n "$ac_ct_CC" && break
2819 if test "x$ac_ct_CC" = x; then
2822 case $cross_compiling:$ac_tool_warned in
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826 ac_tool_warned=yes ;;
2835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837 as_fn_error $? "no acceptable C compiler found in \$PATH
2838 See \`config.log' for more details" "$LINENO" 5; }
2840 # Provide some information about the compiler.
2841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2844 for ac_option in --version -v -V -qversion; do
2845 { { ac_try="$ac_compiler $ac_option >&5"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2851 $as_echo "$ac_try_echo"; } >&5
2852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2854 if test -s conftest.err; then
2856 ... rest of stderr output deleted ...
2857 10q' conftest.err >conftest.er1
2858 cat conftest.er1 >&5
2860 rm -f conftest.er1 conftest.err
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2876 ac_clean_files_save=$ac_clean_files
2877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2878 # Try to create an executable without -o first, disregard a.out.
2879 # It will help us diagnose broken compilers, and finding out an intuition
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2882 $as_echo_n "checking whether the C compiler works... " >&6; }
2883 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2885 # The possible output files:
2886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2889 for ac_file in $ac_files
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 if { { ac_try="$ac_link_default"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_link_default") 2>&5
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; }; then :
2909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2912 # so that the user can short-circuit this test for compilers unknown to
2914 for ac_file in $ac_files ''
2916 test -f "$ac_file" || continue
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2921 # We found the default executable, but exeext='' is most
2925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 # We set ac_cv_exeext here because the later test for it is not
2930 # safe: cross compilers may not add the suffix if given an `-o'
2931 # argument, so we may need to know it at that point already.
2932 # Even if this section looks crufty: it has the advantage of
2939 test "$ac_cv_exeext" = no && ac_cv_exeext=
2944 if test -z "$ac_file"; then :
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 $as_echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 as_fn_error 77 "C compiler cannot create executables
2953 See \`config.log' for more details" "$LINENO" 5; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956 $as_echo "yes" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2959 $as_echo_n "checking for C compiler default output file name... " >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2961 $as_echo "$ac_file" >&6; }
2962 ac_exeext=$ac_cv_exeext
2964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2965 ac_clean_files=$ac_clean_files_save
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2967 $as_echo_n "checking for suffix of executables... " >&6; }
2968 if { { ac_try="$ac_link"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2974 $as_echo "$ac_try_echo"; } >&5
2975 (eval "$ac_link") 2>&5
2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978 test $ac_status = 0; }; then :
2979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2981 # work properly (i.e., refer to `conftest.exe'), while it won't with
2983 for ac_file in conftest.exe conftest conftest.*; do
2984 test -f "$ac_file" || continue
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details" "$LINENO" 5; }
2998 rm -f conftest conftest$ac_cv_exeext
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3000 $as_echo "$ac_cv_exeext" >&6; }
3002 rm -f conftest.$ac_ext
3003 EXEEXT=$ac_cv_exeext
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3011 FILE *f = fopen ("conftest.out", "w");
3012 return ferror (f) || fclose (f) != 0;
3018 ac_clean_files="$ac_clean_files conftest.out"
3019 # Check that the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3022 $as_echo_n "checking whether we are cross compiling... " >&6; }
3023 if test "$cross_compiling" != yes; then
3024 { { ac_try="$ac_link"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_link") 2>&5
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3035 if { ac_try='./conftest$ac_cv_exeext'
3036 { { case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_try") 2>&5
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }; }; then
3048 if test "$cross_compiling" = maybe; then
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "cannot run C compiled programs.
3054 If you meant to cross compile, use \`--host'.
3055 See \`config.log' for more details" "$LINENO" 5; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3060 $as_echo "$cross_compiling" >&6; }
3062 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3063 ac_clean_files=$ac_clean_files_save
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3065 $as_echo_n "checking for suffix of object files... " >&6; }
3066 if ${ac_cv_objext+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3080 rm -f conftest.o conftest.obj
3081 if { { ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_compile") 2>&5
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }; then :
3092 for ac_file in conftest.o conftest.obj conftest.*; do
3093 test -f "$ac_file" || continue;
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101 $as_echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details" "$LINENO" 5; }
3109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3112 $as_echo "$ac_cv_objext" >&6; }
3113 OBJEXT=$ac_cv_objext
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3117 if ${ac_cv_c_compiler_gnu+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3134 if ac_fn_c_try_compile "$LINENO"; then :
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3145 if test $ac_compiler_gnu = yes; then
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3154 if ${ac_cv_prog_cc_g+:} false; then :
3155 $as_echo_n "(cached) " >&6
3157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 if ac_fn_c_try_compile "$LINENO"; then :
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3187 if ac_fn_c_try_compile "$LINENO"; then :
3190 ac_c_werror_flag=$ac_save_c_werror_flag
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3203 if ac_fn_c_try_compile "$LINENO"; then :
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3214 $as_echo "$ac_cv_prog_cc_g" >&6; }
3215 if test "$ac_test_CFLAGS" = set; then
3216 CFLAGS=$ac_save_CFLAGS
3217 elif test $ac_cv_prog_cc_g = yes; then
3218 if test "$GCC" = yes; then
3224 if test "$GCC" = yes; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3232 if ${ac_cv_prog_cc_c89+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 ac_cv_prog_cc_c89=no
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243 struct buf { int x; };
3244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245 static char *e (p, i)
3251 static char *f (char * (*g) (char **, int), char **p, ...)
3256 s = g (p, va_arg (v,int));
3261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
3264 as 'x'. The following induces an error, until -std is added to get
3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
3267 that's true only with -std. */
3268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3275 int test (int i, double x);
3276 struct s1 {int (*f) (int a);};
3277 struct s2 {int (*f) (double a);};
3278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3292 CC="$ac_save_CC $ac_arg"
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_cv_prog_cc_c89=$ac_arg
3296 rm -f core conftest.err conftest.$ac_objext
3297 test "x$ac_cv_prog_cc_c89" != "xno" && break
3299 rm -f conftest.$ac_ext
3304 case "x$ac_cv_prog_cc_c89" in
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3307 $as_echo "none needed" >&6; } ;;
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3310 $as_echo "unsupported" >&6; } ;;
3312 CC="$CC $ac_cv_prog_cc_c89"
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3316 if test "x$ac_cv_prog_cc_c89" != xno; then :
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 ac_cpp='$CXXCPP $CPPFLAGS'
3328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3331 if test -z "$CXX"; then
3332 if test -n "$CCC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CXX+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$CXX"; then
3346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 if test -n "$CXX"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3368 $as_echo "$CXX" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$CXX" && break
3378 if test -z "$CXX"; then
3380 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3387 $as_echo_n "(cached) " >&6
3389 if test -n "$ac_ct_CXX"; then
3390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CXX="$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3410 if test -n "$ac_ct_CXX"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3412 $as_echo "$ac_ct_CXX" >&6; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3419 test -n "$ac_ct_CXX" && break
3422 if test "x$ac_ct_CXX" = x; then
3425 case $cross_compiling:$ac_tool_warned in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429 ac_tool_warned=yes ;;
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3451 if test -s conftest.err; then
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3464 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3481 if ac_fn_cxx_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3491 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3497 ac_test_CXXFLAGS=${CXXFLAGS+set}
3498 ac_save_CXXFLAGS=$CXXFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3500 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3501 if ${ac_cv_prog_cxx_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3505 ac_cxx_werror_flag=yes
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 if ac_fn_cxx_try_compile "$LINENO"; then :
3520 ac_cv_prog_cxx_g=yes
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_cxx_try_compile "$LINENO"; then :
3537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_cxx_try_compile "$LINENO"; then :
3551 ac_cv_prog_cxx_g=yes
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3561 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3562 if test "$ac_test_CXXFLAGS" = set; then
3563 CXXFLAGS=$ac_save_CXXFLAGS
3564 elif test $ac_cv_prog_cxx_g = yes; then
3565 if test "$GXX" = yes; then
3571 if test "$GXX" = yes; then
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3592 # On Suns, sometimes $CPP names a directory.
3593 if test -n "$CPP" && test -d "$CPP"; then
3596 if test -z "$CPP"; then
3597 if ${ac_cv_prog_CPP+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 # Double quotes because CPP needs to be expanded
3601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604 for ac_c_preproc_warn_flag in '' yes
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
3608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3615 # include <limits.h>
3617 # include <assert.h>
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3624 # Broken: fails on valid input.
3627 rm -f conftest.err conftest.i conftest.$ac_ext
3629 # OK, works on sane cases. Now check whether nonexistent headers
3630 # can be detected and how.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3635 if ac_fn_c_try_cpp "$LINENO"; then :
3636 # Broken: success on invalid input.
3639 # Passes both tests.
3643 rm -f conftest.err conftest.i conftest.$ac_ext
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.i conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then :
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3661 $as_echo "$CPP" >&6; }
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3683 # Broken: fails on valid input.
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3688 # OK, works on sane cases. Now check whether nonexistent headers
3689 # can be detected and how.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695 # Broken: success on invalid input.
3698 # Passes both tests.
3702 rm -f conftest.err conftest.i conftest.$ac_ext
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.i conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then :
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3713 See \`config.log' for more details" "$LINENO" 5; }
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3725 if ${ac_cv_path_GREP+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 if test -z "$GREP"; then
3729 ac_path_GREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in grep ggrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3739 as_fn_executable_p "$ac_path_GREP" || continue
3740 # Check for GNU ac_path_GREP and select it if it is found.
3741 # Check for GNU $ac_path_GREP
3742 case `"$ac_path_GREP" --version 2>&1` in
3744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3747 $as_echo_n 0123456789 >"conftest.in"
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 $as_echo 'GREP' >> "conftest.nl"
3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 as_fn_arith $ac_count + 1 && ac_count=$as_val
3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_GREP="$ac_path_GREP"
3760 ac_path_GREP_max=$ac_count
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 $ac_path_GREP_found && break 3
3773 if test -z "$ac_cv_path_GREP"; then
3774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3777 ac_cv_path_GREP=$GREP
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3782 $as_echo "$ac_cv_path_GREP" >&6; }
3783 GREP="$ac_cv_path_GREP"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3787 $as_echo_n "checking for egrep... " >&6; }
3788 if ${ac_cv_path_EGREP+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3792 then ac_cv_path_EGREP="$GREP -E"
3794 if test -z "$EGREP"; then
3795 ac_path_EGREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in egrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3805 as_fn_executable_p "$ac_path_EGREP" || continue
3806 # Check for GNU ac_path_EGREP and select it if it is found.
3807 # Check for GNU $ac_path_EGREP
3808 case `"$ac_path_EGREP" --version 2>&1` in
3810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3813 $as_echo_n 0123456789 >"conftest.in"
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 $as_echo 'EGREP' >> "conftest.nl"
3820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 as_fn_arith $ac_count + 1 && ac_count=$as_val
3823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_EGREP="$ac_path_EGREP"
3826 ac_path_EGREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 $ac_path_EGREP_found && break 3
3839 if test -z "$ac_cv_path_EGREP"; then
3840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843 ac_cv_path_EGREP=$EGREP
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3849 $as_echo "$ac_cv_path_EGREP" >&6; }
3850 EGREP="$ac_cv_path_EGREP"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3854 $as_echo_n "checking for ANSI C header files... " >&6; }
3855 if ${ac_cv_header_stdc+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_header_stdc=yes
3876 ac_cv_header_stdc=no
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test $ac_cv_header_stdc = yes; then
3881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then :
3891 ac_cv_header_stdc=no
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "free" >/dev/null 2>&1; then :
3908 ac_cv_header_stdc=no
3914 if test $ac_cv_header_stdc = yes; then
3915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3916 if test "$cross_compiling" = yes; then :
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 #if ((' ' & 0x0FF) == 0x020)
3924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927 # define ISLOWER(c) \
3928 (('a' <= (c) && (c) <= 'i') \
3929 || ('j' <= (c) && (c) <= 'r') \
3930 || ('s' <= (c) && (c) <= 'z'))
3931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3939 for (i = 0; i < 256; i++)
3940 if (XOR (islower (i), ISLOWER (i))
3941 || toupper (i) != TOUPPER (i))
3946 if ac_fn_c_try_run "$LINENO"; then :
3949 ac_cv_header_stdc=no
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3952 conftest.$ac_objext conftest.beam conftest.$ac_ext
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3958 $as_echo "$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967 inttypes.h stdint.h unistd.h
3969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3973 cat >>confdefs.h <<_ACEOF
3974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3991 if test "$MINIX" = yes; then
3993 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999 $as_echo "#define _MINIX 1" >>confdefs.h
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4005 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4006 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4012 # define __EXTENSIONS__ 1
4013 $ac_includes_default
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_safe_to_define___extensions__=yes
4025 ac_cv_safe_to_define___extensions__=no
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4030 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4031 test $ac_cv_safe_to_define___extensions__ = yes &&
4032 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4034 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4036 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4038 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4040 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4045 if test $ac_cv_c_compiler_gnu = yes; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4047 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4048 if ${ac_cv_prog_gcc_traditional+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 ac_pattern="Autoconf.*'x'"
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4058 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4059 ac_cv_prog_gcc_traditional=yes
4061 ac_cv_prog_gcc_traditional=no
4066 if test $ac_cv_prog_gcc_traditional = no; then
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
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4081 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4082 if test $ac_cv_prog_gcc_traditional = yes; then
4083 CC="$CC -traditional"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4088 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4089 if ${ac_cv_prog_suncc+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 cat > conftest.c <<EOF
4097 if { ac_try='${CC-cc} -E conftest.c'
4098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4103 ac_cv_prog_suncc=yes
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4109 $as_echo "$ac_cv_prog_suncc" >&6; }
4110 if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_RANLIB+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$RANLIB"; then
4119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 RANLIB=$ac_cv_prog_RANLIB
4139 if test -n "$RANLIB"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4141 $as_echo "$RANLIB" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4149 if test -z "$ac_cv_prog_RANLIB"; then
4150 ac_ct_RANLIB=$RANLIB
4151 # Extract the first word of "ranlib", so it can be a program name with args.
4152 set dummy ranlib; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4156 $as_echo_n "(cached) " >&6
4158 if test -n "$ac_ct_RANLIB"; then
4159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_RANLIB="ranlib"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4179 if test -n "$ac_ct_RANLIB"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4181 $as_echo "$ac_ct_RANLIB" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4187 if test "x$ac_ct_RANLIB" = x; then
4190 case $cross_compiling:$ac_tool_warned in
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4196 RANLIB=$ac_ct_RANLIB
4199 RANLIB="$ac_cv_prog_RANLIB"
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
4204 $as_echo_n "checking if compiling with clang... " >&6; }
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"; then :
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
4229 $as_echo "$CLANG" >&6; }
4231 if test "x$GCC" = "xyes"; then
4232 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4235 if test "x$CLANG" = "xyes"; then
4236 CFLAGS="$CFLAGS -Qunused-arguments"
4237 LDFLAGS="$LDFLAGS -Qunused-arguments"
4240 # Check whether --enable-largefile was given.
4241 if test "${enable_largefile+set}" = set; then :
4242 enableval=$enable_largefile;
4245 if test "$enable_largefile" != no; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4248 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4249 if ${ac_cv_sys_largefile_CC+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 ac_cv_sys_largefile_CC=no
4253 if test "$GCC" != yes; then
4256 # IRIX 6.2 and later do not support large files by default,
4257 # so use the C compiler's -n32 option if that helps.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4277 if ac_fn_c_try_compile "$LINENO"; then :
4280 rm -f core conftest.err conftest.$ac_objext
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283 ac_cv_sys_largefile_CC=' -n32'; break
4285 rm -f core conftest.err conftest.$ac_objext
4289 rm -f conftest.$ac_ext
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4293 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4294 if test "$ac_cv_sys_largefile_CC" != no; then
4295 CC=$CC$ac_cv_sys_largefile_CC
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4299 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4300 if ${ac_cv_sys_file_offset_bits+:} false; then :
4301 $as_echo_n "(cached) " >&6
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <sys/types.h>
4307 /* Check that off_t can represent 2**63 - 1 correctly.
4308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4309 since some C++ compilers masquerading as C compilers
4310 incorrectly reject 9223372036854775807. */
4311 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4313 && LARGE_OFF_T % 2147483647 == 1)
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 ac_cv_sys_file_offset_bits=no; break
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #define _FILE_OFFSET_BITS 64
4330 #include <sys/types.h>
4331 /* Check that off_t can represent 2**63 - 1 correctly.
4332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4333 since some C++ compilers masquerading as C compilers
4334 incorrectly reject 9223372036854775807. */
4335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4337 && LARGE_OFF_T % 2147483647 == 1)
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_sys_file_offset_bits=64; break
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_sys_file_offset_bits=unknown
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4356 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4357 case $ac_cv_sys_file_offset_bits in #(
4360 cat >>confdefs.h <<_ACEOF
4361 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4366 if test $ac_cv_sys_file_offset_bits = unknown; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4368 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4369 if ${ac_cv_sys_large_files+:} 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_large_files=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 _LARGE_FILES 1
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_large_files=1; break
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 ac_cv_sys_large_files=unknown
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4425 $as_echo "$ac_cv_sys_large_files" >&6; }
4426 case $ac_cv_sys_large_files in #(
4429 cat >>confdefs.h <<_ACEOF
4430 #define _LARGE_FILES $ac_cv_sys_large_files
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4442 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4443 if ${ac_cv_c_bigendian+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 ac_cv_c_bigendian=unknown
4447 # See if we're dealing with a universal compiler.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #ifndef __APPLE_CC__
4451 not a universal capable compiler
4456 if ac_fn_c_try_compile "$LINENO"; then :
4458 # Check for potential -arch flags. It is not universal unless
4459 # there are at least two -arch flags with different values.
4462 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4463 if test -n "$ac_prev"; then
4465 i?86 | x86_64 | ppc | ppc64)
4466 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4469 ac_cv_c_bigendian=universal
4475 elif test "x$ac_word" = "x-arch"; then
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 if test $ac_cv_c_bigendian = unknown; then
4482 # See if sys/param.h defines the BYTE_ORDER macro.
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <sys/types.h>
4486 #include <sys/param.h>
4491 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4492 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 # It does; now see whether it defined to BIG_ENDIAN or not.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <sys/types.h>
4506 #include <sys/param.h>
4511 #if BYTE_ORDER != BIG_ENDIAN
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_c_bigendian=yes
4522 ac_cv_c_bigendian=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 if test $ac_cv_c_bigendian = unknown; then
4529 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4537 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 # It does; now see whether it defined to _BIG_ENDIAN or not.
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_cv_c_bigendian=yes
4565 ac_cv_c_bigendian=no
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 if test $ac_cv_c_bigendian = unknown; then
4572 # Compile a test program.
4573 if test "$cross_compiling" = yes; then :
4574 # Try to guess by grepping values from an object file.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 short int ascii_mm[] =
4578 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4579 short int ascii_ii[] =
4580 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4581 int use_ascii (int i) {
4582 return ascii_mm[i] + ascii_ii[i];
4584 short int ebcdic_ii[] =
4585 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4586 short int ebcdic_mm[] =
4587 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4588 int use_ebcdic (int i) {
4589 return ebcdic_mm[i] + ebcdic_ii[i];
4596 return use_ascii (foo) == use_ebcdic (foo);
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4603 ac_cv_c_bigendian=yes
4605 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4606 if test "$ac_cv_c_bigendian" = unknown; then
4607 ac_cv_c_bigendian=no
4609 # finding both strings is unlikely to happen, but who knows?
4610 ac_cv_c_bigendian=unknown
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 $ac_includes_default
4623 /* Are we little or big endian? From Harbison&Steele. */
4627 char c[sizeof (long int)];
4630 return u.c[sizeof (long int) - 1] == 1;
4636 if ac_fn_c_try_run "$LINENO"; then :
4637 ac_cv_c_bigendian=no
4639 ac_cv_c_bigendian=yes
4641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4642 conftest.$ac_objext conftest.beam conftest.$ac_ext
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4648 $as_echo "$ac_cv_c_bigendian" >&6; }
4649 case $ac_cv_c_bigendian in #(
4651 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4657 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4661 as_fn_error $? "unknown endianness
4662 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4666 # Extract the first word of "gmake", so it can be a program name with args.
4667 set dummy gmake; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_prog_GMAKE+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 if test -n "$GMAKE"; then
4674 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_GMAKE="yes"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4694 GMAKE=$ac_cv_prog_GMAKE
4695 if test -n "$GMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4697 $as_echo "$GMAKE" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4704 if test $GMAKE = no; then
4705 # Extract the first word of "make", so it can be a program name with args.
4706 set dummy make; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if ${ac_cv_path_MAKE+:} false; then :
4710 $as_echo_n "(cached) " >&6
4714 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4736 MAKE=$ac_cv_path_MAKE
4737 if test -n "$MAKE"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4739 $as_echo "$MAKE" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4747 # Extract the first word of "gmake", so it can be a program name with args.
4748 set dummy gmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_path_MAKE+:} false; then :
4752 $as_echo_n "(cached) " >&6
4756 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4778 MAKE=$ac_cv_path_MAKE
4779 if test -n "$MAKE"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4781 $as_echo "$MAKE" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4790 if test -z "$makever"; then
4791 as_fn_error $? "GNU Make is not installed. Please download and install it
4792 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4795 # Extract the first word of "git", so it can be a program name with args.
4796 set dummy git; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_GIT+:} false; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$GIT"; then
4803 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_GIT="yes"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4824 if test -n "$GIT"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4826 $as_echo "$GIT" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4835 # Check whether --enable-strict-dependencies was given.
4836 if test "${enable_strict_dependencies+set}" = set; then :
4837 enableval=$enable_strict_dependencies;
4841 docdir='${datadir}/doc/freeradius'
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
4843 $as_echo_n "checking docdir... " >&6; }
4845 # Check whether --with-docdir was given.
4846 if test "${with_docdir+set}" = set; then :
4847 withval=$with_docdir; case "$withval" in
4853 [\\/$]* | ?:[\\/]* )
4857 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
4865 $as_echo "$docdir" >&6; }
4866 if test "x$docdir" = xno; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
4868 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
4871 logdir='${localstatedir}/log/radius'
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
4873 $as_echo_n "checking logdir... " >&6; }
4875 # Check whether --with-logdir was given.
4876 if test "${with_logdir+set}" = set; then :
4877 withval=$with_logdir; case "$withval" in
4879 as_fn_error $? "Need logdir" "$LINENO" 5
4883 [\\/$]* | ?:[\\/]* )
4887 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
4895 $as_echo "$logdir" >&6; }
4897 radacctdir='${logdir}/radacct'
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
4899 $as_echo_n "checking radacctdir... " >&6; }
4901 # Check whether --with-radacctdir was given.
4902 if test "${with_radacctdir+set}" = set; then :
4903 withval=$with_radacctdir; case "$withval" in
4905 as_fn_error $? "Need radacctdir" "$LINENO" 5
4909 [\\/$]* | ?:[\\/]* )
4910 radacctdir="$withval"
4913 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
4921 $as_echo "$radacctdir" >&6; }
4923 raddbdir='${sysconfdir}/raddb'
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
4925 $as_echo_n "checking raddbdir... " >&6; }
4927 # Check whether --with-raddbdir was given.
4928 if test "${with_raddbdir+set}" = set; then :
4929 withval=$with_raddbdir; case "$withval" in
4931 as_fn_error $? "Need raddbdir" "$LINENO" 5
4935 [\\/$]* | ?:[\\/]* )
4939 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
4947 $as_echo "$raddbdir" >&6; }
4949 WITH_ASCEND_BINARY=yes
4951 # Check whether --with-ascend-binary was given.
4952 if test "${with_ascend_binary+set}" = set; then :
4953 withval=$with_ascend_binary; case "$withval" in
4957 WITH_ASCEND_BINARY=no
4962 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
4964 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
4970 # Check whether --with-threads was given.
4971 if test "${with_threads+set}" = set; then :
4972 withval=$with_threads; case "$withval" in
4984 # Check whether --with-tcp was given.
4985 if test "${with_tcp+set}" = set; then :
4986 withval=$with_tcp; case "$withval" in
4995 if test "x$WITH_TCP" = "xyes"; then
4997 $as_echo "#define WITH_TCP 1" >>confdefs.h
5003 # Check whether --with-vmps was given.
5004 if test "${with_vmps+set}" = set; then :
5005 withval=$with_vmps; case "$withval" in
5014 if test "x$WITH_VMPS" = "xyes"; then
5016 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5022 # Check whether --with-dhcp was given.
5023 if test "${with_dhcp+set}" = set; then :
5024 withval=$with_dhcp; case "$withval" in
5033 if test "x$WITH_DHCP" = "xyes"; then
5035 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5041 # Check whether --with-static_modules was given.
5042 if test "${with_static_modules+set}" = set; then :
5043 withval=$with_static_modules;
5044 for i in $withval; do
5045 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5053 # Check whether --with-modules was given.
5054 if test "${with_modules+set}" = set; then :
5055 withval=$with_modules;
5056 for i in $withval; do
5057 MODULES="$MODULES $i"
5065 # Check whether --with-experimental-modules was given.
5066 if test "${with_experimental_modules+set}" = set; then :
5067 withval=$with_experimental_modules; case "$withval" in
5082 # Check whether --with-openssl was given.
5083 if test "${with_openssl+set}" = set; then :
5084 withval=$with_openssl; case "$withval" in
5096 OPENSSL_INCLUDE_DIR=
5098 # Check whether --with-openssl-includes was given.
5099 if test "${with_openssl_includes+set}" = set; then :
5100 withval=$with_openssl_includes; case "$withval" in
5101 *) OPENSSL_INCLUDE_DIR="$withval"
5110 # Check whether --with-openssl-libraries was given.
5111 if test "${with_openssl_libraries+set}" = set; then :
5112 withval=$with_openssl_libraries; case "$withval" in
5113 *) OPENSSL_LIB_DIR="$withval"
5122 # Check whether --with-rlm-FOO-lib-dir was given.
5123 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5124 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5133 # Check whether --with-rlm-FOO-include-dir was given.
5134 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5135 withval=$with_rlm_FOO_include_dir; case "$withval" in
5146 # Check whether --with-udpfromto was given.
5147 if test "${with_udpfromto+set}" = set; then :
5148 withval=$with_udpfromto; case "$withval" in
5159 if test "x$WITH_UDPFROMTO" = "xyes"; then
5161 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5167 # Extract the first word of "perl", so it can be a program name with args.
5168 set dummy perl; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_path_PERL+:} false; then :
5172 $as_echo_n "(cached) " >&6
5176 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5198 PERL=$ac_cv_path_PERL
5199 if test -n "$PERL"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5201 $as_echo "$PERL" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 if test "x$ac_cv_path_PERL" = "x"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5210 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5212 # Extract the first word of "snmpget", so it can be a program name with args.
5213 set dummy snmpget; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_SNMPGET+:} false; then :
5217 $as_echo_n "(cached) " >&6
5221 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 SNMPGET=$ac_cv_path_SNMPGET
5243 if test -n "$SNMPGET"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5245 $as_echo "$SNMPGET" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "x$ac_cv_path_SNMPGET" = "x"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5254 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5257 # Extract the first word of "snmpwalk", so it can be a program name with args.
5258 set dummy snmpwalk; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_path_SNMPWALK+:} false; then :
5262 $as_echo_n "(cached) " >&6
5266 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 SNMPWALK=$ac_cv_path_SNMPWALK
5288 if test -n "$SNMPWALK"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5290 $as_echo "$SNMPWALK" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5297 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5299 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5302 # Extract the first word of "rusers", so it can be a program name with args.
5303 set dummy rusers; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_path_RUSERS+:} false; then :
5307 $as_echo_n "(cached) " >&6
5311 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5333 RUSERS=$ac_cv_path_RUSERS
5334 if test -n "$RUSERS"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5336 $as_echo "$RUSERS" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5344 missing_dir=`cd $ac_aux_dir && pwd`
5345 # expand $ac_aux_dir to an absolute path
5346 am_aux_dir=`cd $ac_aux_dir && pwd`
5348 if test x"${MISSING+set}" != xset; then
5351 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5353 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5356 # Use eval to expand $SHELL
5357 if eval "$MISSING --run true"; then
5358 am_missing_run="$MISSING --run "
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5362 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5372 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5375 # Extract the first word of "locate", so it can be a program name with args.
5376 set dummy locate; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_path_LOCATE+:} false; then :
5380 $as_echo_n "(cached) " >&6
5384 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 LOCATE=$ac_cv_path_LOCATE
5406 if test -n "$LOCATE"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5408 $as_echo "$LOCATE" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 # Extract the first word of "dirname", so it can be a program name with args.
5416 set dummy dirname; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_path_DIRNAME+:} false; then :
5420 $as_echo_n "(cached) " >&6
5424 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 DIRNAME=$ac_cv_path_DIRNAME
5446 if test -n "$DIRNAME"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5448 $as_echo "$DIRNAME" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 # Extract the first word of "grep", so it can be a program name with args.
5456 set dummy grep; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_path_GREP+:} false; then :
5460 $as_echo_n "(cached) " >&6
5464 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 GREP=$ac_cv_path_GREP
5486 if test -n "$GREP"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5488 $as_echo "$GREP" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5498 if test "x$WITH_THREADS" = "xyes"; then
5499 if test $ac_cv_prog_suncc = "yes"; then
5500 CFLAGS="$CFLAGS -mt"
5503 for ac_header in pthread.h
5505 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5506 if test "x$ac_cv_header_pthread_h" = xyes; then :
5507 cat >>confdefs.h <<_ACEOF
5508 #define HAVE_PTHREAD_H 1
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5519 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5520 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-lpthread $LIBS"
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 /* Override any GCC internal prototype to avoid an error.
5529 Use char because int might match the return type of a GCC
5530 builtin and then its argument prototype would still apply. */
5534 char pthread_create ();
5538 return pthread_create ();
5543 if ac_fn_c_try_link "$LINENO"; then :
5544 ac_cv_lib_pthread_pthread_create=yes
5546 ac_cv_lib_pthread_pthread_create=no
5548 rm -f core conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_check_lib_save_LIBS
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5553 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5554 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5555 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5556 LIBS="-lpthread $LIBS"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5559 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5560 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5561 $as_echo_n "(cached) " >&6
5563 ac_check_lib_save_LIBS=$LIBS
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5568 /* Override any GCC internal prototype to avoid an error.
5569 Use char because int might match the return type of a GCC
5570 builtin and then its argument prototype would still apply. */
5574 char pthread_create ();
5578 return pthread_create ();
5583 if ac_fn_c_try_link "$LINENO"; then :
5584 ac_cv_lib_c_r_pthread_create=yes
5586 ac_cv_lib_c_r_pthread_create=no
5588 rm -f core conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5590 LIBS=$ac_check_lib_save_LIBS
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5593 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5594 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5595 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5606 if test "x$WITH_THREADS" != "xyes"; then
5608 ac_cv_header_pthread_h="no"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5613 $as_echo_n "checking for library containing sem_init... " >&6; }
5614 if ${ac_cv_search_sem_init+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 ac_func_search_save_LIBS=$LIBS
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5621 /* Override any GCC internal prototype to avoid an error.
5622 Use char because int might match the return type of a GCC
5623 builtin and then its argument prototype would still apply. */
5636 for ac_lib in '' pthread sem posix4 rt semaphore; do
5637 if test -z "$ac_lib"; then
5638 ac_res="none required"
5641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5643 if ac_fn_c_try_link "$LINENO"; then :
5644 ac_cv_search_sem_init=$ac_res
5646 rm -f core conftest.err conftest.$ac_objext \
5648 if ${ac_cv_search_sem_init+:} false; then :
5652 if ${ac_cv_search_sem_init+:} false; then :
5655 ac_cv_search_sem_init=no
5658 LIBS=$ac_func_search_save_LIBS
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5661 $as_echo "$ac_cv_search_sem_init" >&6; }
5662 ac_res=$ac_cv_search_sem_init
5663 if test "$ac_res" != no; then :
5664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5667 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
5673 if test "x$WITH_THREADS" = "xyes"; then
5675 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5680 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5681 if ${ac_cv_lib_dl_dlopen+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 ac_check_lib_save_LIBS=$LIBS
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5689 /* Override any GCC internal prototype to avoid an error.
5690 Use char because int might match the return type of a GCC
5691 builtin and then its argument prototype would still apply. */
5704 if ac_fn_c_try_link "$LINENO"; then :
5705 ac_cv_lib_dl_dlopen=yes
5707 ac_cv_lib_dl_dlopen=no
5709 rm -f core conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 LIBS=$ac_check_lib_save_LIBS
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5715 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5716 cat >>confdefs.h <<_ACEOF
5717 #define HAVE_LIBDL 1
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5726 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5727 if ${ac_cv_lib_socket_getsockname+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lsocket $LIBS"
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5735 /* Override any GCC internal prototype to avoid an error.
5736 Use char because int might match the return type of a GCC
5737 builtin and then its argument prototype would still apply. */
5741 char getsockname ();
5745 return getsockname ();
5750 if ac_fn_c_try_link "$LINENO"; then :
5751 ac_cv_lib_socket_getsockname=yes
5753 ac_cv_lib_socket_getsockname=no
5755 rm -f core conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5757 LIBS=$ac_check_lib_save_LIBS
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5760 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5761 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5762 cat >>confdefs.h <<_ACEOF
5763 #define HAVE_LIBSOCKET 1
5766 LIBS="-lsocket $LIBS"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5772 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5773 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5774 $as_echo_n "(cached) " >&6
5776 ac_check_lib_save_LIBS=$LIBS
5777 LIBS="-lresolv $LIBS"
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5781 /* Override any GCC internal prototype to avoid an error.
5782 Use char because int might match the return type of a GCC
5783 builtin and then its argument prototype would still apply. */
5791 return inet_aton ();
5796 if ac_fn_c_try_link "$LINENO"; then :
5797 ac_cv_lib_resolv_inet_aton=yes
5799 ac_cv_lib_resolv_inet_aton=no
5801 rm -f core conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
5806 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
5807 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
5808 cat >>confdefs.h <<_ACEOF
5809 #define HAVE_LIBRESOLV 1
5812 LIBS="-lresolv $LIBS"
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5818 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5819 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 ac_check_lib_save_LIBS=$LIBS
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5837 return inet_ntoa ();
5842 if ac_fn_c_try_link "$LINENO"; then :
5843 ac_cv_lib_nsl_inet_ntoa=yes
5845 ac_cv_lib_nsl_inet_ntoa=no
5847 rm -f core conftest.err conftest.$ac_objext \
5848 conftest$ac_exeext conftest.$ac_ext
5849 LIBS=$ac_check_lib_save_LIBS
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5852 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5853 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5854 cat >>confdefs.h <<_ACEOF
5855 #define HAVE_LIBNSL 1
5864 if test "x$WITH_OPENSSL" = xyes; then
5866 old_LDFLAGS="$LDFLAGS"
5867 if test "x$OPENSSL_LIB_DIR" != "x"; then
5868 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
5871 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
5872 if ${ac_cv_lib_crypto_DH_new+:} false; then :
5873 $as_echo_n "(cached) " >&6
5875 ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcrypto $LIBS"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5880 /* Override any GCC internal prototype to avoid an error.
5881 Use char because int might match the return type of a GCC
5882 builtin and then its argument prototype would still apply. */
5895 if ac_fn_c_try_link "$LINENO"; then :
5896 ac_cv_lib_crypto_DH_new=yes
5898 ac_cv_lib_crypto_DH_new=no
5900 rm -f core conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
5905 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
5906 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
5908 LIBS="-lcrypto $LIBS"
5910 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
5913 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
5914 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 ac_check_lib_save_LIBS=$LIBS
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5922 /* Override any GCC internal prototype to avoid an error.
5923 Use char because int might match the return type of a GCC
5924 builtin and then its argument prototype would still apply. */
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 ac_cv_lib_ssl_SSL_new=yes
5940 ac_cv_lib_ssl_SSL_new=no
5942 rm -f core conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5944 LIBS=$ac_check_lib_save_LIBS
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
5947 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
5948 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
5951 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
5953 if test "x$OPENSSL_LIB_DIR" != "x"; then
5954 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
5956 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
5964 LDFLAGS="$old_LDFLAGS"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
5968 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
5969 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 ac_check_lib_save_LIBS=$LIBS
5973 LIBS="-lws2_32 $LIBS"
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 /* Override any GCC internal prototype to avoid an error.
5978 Use char because int might match the return type of a GCC
5979 builtin and then its argument prototype would still apply. */
5992 if ac_fn_c_try_link "$LINENO"; then :
5993 ac_cv_lib_ws2_32_htonl=yes
5995 ac_cv_lib_ws2_32_htonl=no
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext conftest.$ac_ext
5999 LIBS=$ac_check_lib_save_LIBS
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6002 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6003 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6004 cat >>confdefs.h <<_ACEOF
6005 #define HAVE_LIBWS2_32 1
6008 LIBS="-lws2_32 $LIBS"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6015 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6016 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6017 $as_echo_n "(cached) " >&6
6019 ac_check_lib_save_LIBS=$LIBS
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6024 /* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
6030 char pcap_open_live ();
6034 return pcap_open_live ();
6039 if ac_fn_c_try_link "$LINENO"; then :
6040 ac_cv_lib_pcap_pcap_open_live=yes
6042 ac_cv_lib_pcap_pcap_open_live=no
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046 LIBS=$ac_check_lib_save_LIBS
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6049 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6050 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6053 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6058 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6064 $as_echo_n "checking for a readline compatible library... " >&6; }
6065 if ${vl_cv_lib_readline+:} false; then :
6066 $as_echo_n "(cached) " >&6
6070 for readline_lib in readline edit editline; do
6071 for termcap_lib in "" termcap curses ncurses; do
6072 if test -z "$termcap_lib"; then
6073 TRY_LIB="-l$readline_lib"
6075 TRY_LIB="-l$readline_lib -l$termcap_lib"
6077 LIBS="$ORIG_LIBS $TRY_LIB"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6081 /* Override any GCC internal prototype to avoid an error.
6082 Use char because int might match the return type of a GCC
6083 builtin and then its argument prototype would still apply. */
6096 if ac_fn_c_try_link "$LINENO"; then :
6097 vl_cv_lib_readline="$TRY_LIB"
6099 rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101 if test -n "$vl_cv_lib_readline"; then
6102 LIBREADLINE="$TRY_LIB"
6106 if test -n "$vl_cv_lib_readline"; then
6110 if test -z "$vl_cv_lib_readline"; then
6111 vl_cv_lib_readline="no"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6117 $as_echo "$vl_cv_lib_readline" >&6; }
6119 if test "$vl_cv_lib_readline" != "no"; then
6121 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6123 for ac_header in readline.h readline/readline.h
6125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6128 cat >>confdefs.h <<_ACEOF
6129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6137 $as_echo_n "checking whether readline supports history... " >&6; }
6138 if ${vl_cv_lib_readline_history+:} false; then :
6139 $as_echo_n "(cached) " >&6
6142 vl_cv_lib_readline_history="no"
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6146 /* Override any GCC internal prototype to avoid an error.
6147 Use char because int might match the return type of a GCC
6148 builtin and then its argument prototype would still apply. */
6152 char add_history ();
6156 return add_history ();
6161 if ac_fn_c_try_link "$LINENO"; then :
6162 vl_cv_lib_readline_history="yes"
6164 rm -f core conftest.err conftest.$ac_objext \
6165 conftest$ac_exeext conftest.$ac_ext
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6169 $as_echo "$vl_cv_lib_readline_history" >&6; }
6170 if test "$vl_cv_lib_readline_history" = "yes"; then
6172 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6174 for ac_header in history.h readline/history.h
6176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6198 CFLAGS="$CFLAGS -DDARWIN"
6199 LIBS="-framework DirectoryService $LIBS"
6204 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6205 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6207 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6208 if eval \${$as_ac_Header+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <sys/types.h>
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 eval "$as_ac_Header=yes"
6228 eval "$as_ac_Header=no"
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 eval ac_res=\$$as_ac_Header
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6234 $as_echo "$ac_res" >&6; }
6235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6240 ac_header_dirent=$ac_hdr; break
6244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6245 if test $ac_header_dirent = dirent.h; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6247 $as_echo_n "checking for library containing opendir... " >&6; }
6248 if ${ac_cv_search_opendir+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 ac_func_search_save_LIBS=$LIBS
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6255 /* Override any GCC internal prototype to avoid an error.
6256 Use char because int might match the return type of a GCC
6257 builtin and then its argument prototype would still apply. */
6270 for ac_lib in '' dir; do
6271 if test -z "$ac_lib"; then
6272 ac_res="none required"
6275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 ac_cv_search_opendir=$ac_res
6280 rm -f core conftest.err conftest.$ac_objext \
6282 if ${ac_cv_search_opendir+:} false; then :
6286 if ${ac_cv_search_opendir+:} false; then :
6289 ac_cv_search_opendir=no
6292 LIBS=$ac_func_search_save_LIBS
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6295 $as_echo "$ac_cv_search_opendir" >&6; }
6296 ac_res=$ac_cv_search_opendir
6297 if test "$ac_res" != no; then :
6298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6304 $as_echo_n "checking for library containing opendir... " >&6; }
6305 if ${ac_cv_search_opendir+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 ac_func_search_save_LIBS=$LIBS
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6312 /* Override any GCC internal prototype to avoid an error.
6313 Use char because int might match the return type of a GCC
6314 builtin and then its argument prototype would still apply. */
6327 for ac_lib in '' x; do
6328 if test -z "$ac_lib"; then
6329 ac_res="none required"
6332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6334 if ac_fn_c_try_link "$LINENO"; then :
6335 ac_cv_search_opendir=$ac_res
6337 rm -f core conftest.err conftest.$ac_objext \
6339 if ${ac_cv_search_opendir+:} false; then :
6343 if ${ac_cv_search_opendir+:} false; then :
6346 ac_cv_search_opendir=no
6349 LIBS=$ac_func_search_save_LIBS
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6352 $as_echo "$ac_cv_search_opendir" >&6; }
6353 ac_res=$ac_cv_search_opendir
6354 if test "$ac_res" != no; then :
6355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6362 $as_echo_n "checking for ANSI C header files... " >&6; }
6363 if ${ac_cv_header_stdc+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 ac_cv_header_stdc=yes
6384 ac_cv_header_stdc=no
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 if test $ac_cv_header_stdc = yes; then
6389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "memchr" >/dev/null 2>&1; then :
6399 ac_cv_header_stdc=no
6405 if test $ac_cv_header_stdc = yes; then
6406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "free" >/dev/null 2>&1; then :
6416 ac_cv_header_stdc=no
6422 if test $ac_cv_header_stdc = yes; then
6423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6424 if test "$cross_compiling" = yes; then :
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6431 #if ((' ' & 0x0FF) == 0x020)
6432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6435 # define ISLOWER(c) \
6436 (('a' <= (c) && (c) <= 'i') \
6437 || ('j' <= (c) && (c) <= 'r') \
6438 || ('s' <= (c) && (c) <= 'z'))
6439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6447 for (i = 0; i < 256; i++)
6448 if (XOR (islower (i), ISLOWER (i))
6449 || toupper (i) != TOUPPER (i))
6454 if ac_fn_c_try_run "$LINENO"; then :
6457 ac_cv_header_stdc=no
6459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6460 conftest.$ac_objext conftest.beam conftest.$ac_ext
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6466 $as_echo "$ac_cv_header_stdc" >&6; }
6467 if test $ac_cv_header_stdc = yes; then
6469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6474 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6475 if ${ac_cv_header_time+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <sys/types.h>
6481 #include <sys/time.h>
6487 if ((struct tm *) 0)
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 ac_cv_header_time=yes
6496 ac_cv_header_time=no
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6501 $as_echo "$ac_cv_header_time" >&6; }
6502 if test $ac_cv_header_time = yes; then
6504 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6509 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6510 if ${ac_cv_header_sys_wait_h+:} false; then :
6511 $as_echo_n "(cached) " >&6
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 #include <sys/wait.h>
6518 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6521 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6529 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 ac_cv_header_sys_wait_h=yes
6537 ac_cv_header_sys_wait_h=no
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6542 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6543 if test $ac_cv_header_sys_wait_h = yes; then
6545 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6593 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 for ac_header in net/if.h
6606 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6607 # include <sys/socket.h>
6611 if test "x$ac_cv_header_net_if_h" = xyes; then :
6612 cat >>confdefs.h <<_ACEOF
6613 #define HAVE_NET_IF_H 1
6622 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
6623 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
6625 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
6630 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
6632 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6637 LIBS="$LIBS -lpcreposix"
6640 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6641 if test "x$ac_cv_header_regex_h" = xyes; then :
6643 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
6648 if test "x$ac_cv_header_regex_h" = "xyes"; then
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6661 $EGREP "yes" >/dev/null 2>&1; then :
6663 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
6675 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6678 $as_echo "#define OSFC2 /**/" >>confdefs.h
6682 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6685 $as_echo "#define OSFSIA /**/" >>confdefs.h
6689 OPENSSL_INCLUDE="-DNO_OPENSSL"
6690 if test "x$WITH_OPENSSL" = xyes; then
6691 if test "x$OPENSSL_LIBS" = "x"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
6693 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
6695 old_CPPFLAGS=$CPPFLAGS
6696 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6697 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6699 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6714 cat >>confdefs.h <<_ACEOF
6715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6725 if test "x$OPENSSL_LIBS" != "x"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6727 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <openssl/crypto.h>
6731 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737 $EGREP "yes" >/dev/null 2>&1; then :
6742 if test "x$goodssl" != "xyes"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6748 $as_echo "yes" >&6; }
6749 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6750 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6752 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6756 CPPFLAGS=$old_CPPFLAGS
6763 if test "x$PCAP_LIBS" = x; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6765 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6767 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6768 if test "x$ac_cv_header_pcap_h" = xyes; then :
6770 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
6775 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6782 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6783 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 ac_check_lib_save_LIBS=$LIBS
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6791 /* Override any GCC internal prototype to avoid an error.
6792 Use char because int might match the return type of a GCC
6793 builtin and then its argument prototype would still apply. */
6797 char pcap_fopen_offline ();
6801 return pcap_fopen_offline ();
6806 if ac_fn_c_try_link "$LINENO"; then :
6807 ac_cv_lib_pcap_pcap_fopen_offline=yes
6809 ac_cv_lib_pcap_pcap_fopen_offline=no
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 LIBS=$ac_check_lib_save_LIBS
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
6816 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
6817 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
6819 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
6825 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
6826 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 ac_check_lib_save_LIBS=$LIBS
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6834 /* Override any GCC internal prototype to avoid an error.
6835 Use char because int might match the return type of a GCC
6836 builtin and then its argument prototype would still apply. */
6840 char pcap_dump_fopen ();
6844 return pcap_dump_fopen ();
6849 if ac_fn_c_try_link "$LINENO"; then :
6850 ac_cv_lib_pcap_pcap_dump_fopen=yes
6852 ac_cv_lib_pcap_pcap_dump_fopen=no
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LIBS=$ac_check_lib_save_LIBS
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
6859 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
6860 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
6862 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
6871 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_off_t" = xyes; then :
6876 cat >>confdefs.h <<_ACEOF
6877 #define off_t long int
6882 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6883 if test "x$ac_cv_type_pid_t" = xyes; then :
6887 cat >>confdefs.h <<_ACEOF
6893 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6894 if test "x$ac_cv_type_size_t" = xyes; then :
6898 cat >>confdefs.h <<_ACEOF
6899 #define size_t unsigned int
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6905 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6906 if ${ac_cv_type_uid_t+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <sys/types.h>
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "uid_t" >/dev/null 2>&1; then :
6916 ac_cv_type_uid_t=yes
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6924 $as_echo "$ac_cv_type_uid_t" >&6; }
6925 if test $ac_cv_type_uid_t = no; then
6927 $as_echo "#define uid_t int" >>confdefs.h
6930 $as_echo "#define gid_t int" >>confdefs.h
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6937 $as_echo_n "checking for socklen_t... " >&6; }
6938 if ${ac_cv_type_socklen_t+:} false; then :
6939 $as_echo_n "(cached) " >&6
6941 ac_cv_type_socklen_t=no
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #ifdef HAVE_SYS_TYPES_H
6945 #include <sys/types.h>
6947 #ifdef HAVE_SYS_SOCKET_H
6948 #include <sys/socket.h>
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 ac_cv_type_socklen_t=yes
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6967 $as_echo "$ac_cv_type_socklen_t" >&6; }
6969 if test "$ac_cv_type_socklen_t" != "yes"; then
6971 $as_echo "#define socklen_t int" >>confdefs.h
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6978 $as_echo_n "checking for uint8_t... " >&6; }
6979 if ${ac_cv_type_uint8_t+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 ac_cv_type_uint8_t=no
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 #ifdef HAVE_INTTYPES_H
6986 #include <inttypes.h>
6988 #ifdef HAVE_STDINT_H
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 ac_cv_type_uint8_t=yes
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7008 $as_echo "$ac_cv_type_uint8_t" >&6; }
7010 if test "$ac_cv_type_uint8_t" != "yes"; then
7012 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7019 $as_echo_n "checking for uint16_t... " >&6; }
7020 if ${ac_cv_type_uint16_t+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 ac_cv_type_uint16_t=no
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #ifdef HAVE_INTTYPES_H
7027 #include <inttypes.h>
7029 #ifdef HAVE_STDINT_H
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 ac_cv_type_uint16_t=yes
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7049 $as_echo "$ac_cv_type_uint16_t" >&6; }
7051 if test "$ac_cv_type_uint16_t" != "yes"; then
7053 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7060 $as_echo_n "checking for uint32_t... " >&6; }
7061 if ${ac_cv_type_uint32_t+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 ac_cv_type_uint32_t=no
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 #ifdef HAVE_INTTYPES_H
7068 #include <inttypes.h>
7070 #ifdef HAVE_STDINT_H
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 ac_cv_type_uint32_t=yes
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7090 $as_echo "$ac_cv_type_uint32_t" >&6; }
7092 if test "$ac_cv_type_uint32_t" != "yes"; then
7094 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7099 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7100 #ifdef HAVE_NETINET_IN_H
7101 #include <netinet/in.h>
7105 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7107 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7112 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7113 #ifdef HAVE_NETINET_IN_H
7114 #include <netinet/in.h>
7116 #ifdef HAVE_SYS_SOCKET_H
7117 #include <sys/socket.h>
7121 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7123 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7128 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7129 #ifdef HAVE_NETINET_IN_H
7130 #include <netinet/in.h>
7134 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7136 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7141 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7142 #ifdef HAVE_SYS_TYPES_H
7143 #include <sys/types.h>
7145 #ifdef HAVE_SYS_SOCKET_H
7146 #include <sys/socket.h>
7153 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7155 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7198 cat >>confdefs.h <<_ACEOF
7199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7207 $as_echo_n "checking return type of signal handlers... " >&6; }
7208 if ${ac_cv_type_signal+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <sys/types.h>
7219 return *(signal (0, 0)) (0) == 1;
7224 if ac_fn_c_try_compile "$LINENO"; then :
7225 ac_cv_type_signal=int
7227 ac_cv_type_signal=void
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7232 $as_echo "$ac_cv_type_signal" >&6; }
7234 cat >>confdefs.h <<_ACEOF
7235 #define RETSIGTYPE $ac_cv_type_signal
7240 if test "x$ac_cv_header_utmpx_h" = "xyes"
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7244 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7251 #ifdef HAVE_STDDEF_H
7255 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7261 int foo = offsetof(struct utmpx, ut_xtime)
7266 if ac_fn_c_try_compile "$LINENO"; then :
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7274 if test "x$has_element" != "x"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7276 $as_echo "yes" >&6; }
7277 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7284 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
7287 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7294 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7300 #include <netinet/in.h>
7301 #ifdef HAVE_STDDEF_H
7305 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7311 int foo = offsetof(struct in_pktinfo, ipi_addr)
7316 if ac_fn_c_try_compile "$LINENO"; then :
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7324 if test "x$has_element" != "x"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7334 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
7337 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7343 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 #include <netinet/in.h>
7350 #ifdef HAVE_STDDEF_H
7354 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7360 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7365 if ac_fn_c_try_compile "$LINENO"; then :
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7373 if test "x$has_element" != "x"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7375 $as_echo "yes" >&6; }
7376 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7383 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
7386 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7392 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7393 if ${ac_cv_c_const+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7404 /* Ultrix mips cc rejects this sort of thing. */
7405 typedef int charset[2];
7406 const charset cs = { 0, 0 };
7407 /* SunOS 4.1.1 cc rejects this. */
7408 char const *const *pcpcc;
7410 /* NEC SVR4.0.2 mips cc rejects this. */
7411 struct point {int x, y;};
7412 static struct point const zero = {0,0};
7413 /* AIX XL C 1.02.0.0 rejects this.
7414 It does not let you subtract one const X* pointer from another in
7415 an arm of an if-expression whose if-part is not a constant
7417 const char *g = "string";
7418 pcpcc = &g + (g ? g-g : 0);
7419 /* HPUX 7.0 cc rejects these. */
7421 ppc = (char**) pcpcc;
7422 pcpcc = (char const *const *) ppc;
7423 { /* SCO 3.2v4 cc rejects this sort of thing. */
7426 char const *s = 0 ? (char *) 0 : (char const *) 0;
7431 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7433 const int *foo = &x[0];
7436 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7437 typedef const int *iptr;
7441 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7442 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7443 struct s { int j; const int *ap[3]; } bx;
7444 struct s *b = &bx; b->j = 5;
7446 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7450 return !cs[0] && !zero.x;
7457 if ac_fn_c_try_compile "$LINENO"; then :
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7465 $as_echo "$ac_cv_c_const" >&6; }
7466 if test $ac_cv_c_const = no; then
7468 $as_echo "#define const /**/" >>confdefs.h
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7474 $as_echo_n "checking type of OS... " >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7477 $as_echo "$OS" >&6; }
7478 if test "$OS" = "OS/2"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
7486 $as_echo_n "checking for developer gcc flags... " >&6; }
7489 if test "x$developer" = "xyes"; then
7490 if test "x$GCC" = "xyes"; then
7491 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"
7492 CFLAGS="$CFLAGS $devflags"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
7495 $as_echo "yes. Using $devflags" >&6; }
7498 if test "x$EXPERIMENTAL" != "xno"; then
7503 CFLAGS="$CFLAGS -DNDEBUG"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7506 $as_echo "no." >&6; }
7511 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7512 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7514 cat >>confdefs.h <<_ACEOF
7515 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
7522 $as_echo_n "checking for TLS... " >&6; }
7523 if test "$cross_compiling" = yes; then :
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
7530 if ac_fn_c_try_run "$LINENO"; then :
7535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7536 conftest.$ac_objext conftest.beam conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7540 $as_echo "$have_tls" >&6; }
7541 if test "$have_tls" = "yes"; then
7543 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7551 # Check whether --with-talloc-include-dir was given.
7552 if test "${with_talloc_include_dir+set}" = set; then :
7553 withval=$with_talloc_include_dir; case "$withval" in
7555 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7560 talloc_include_dir="$withval"
7567 smart_try_dir="$talloc_include_dir"
7570 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7571 old_CFLAGS="$CFLAGS"
7575 if test "x$smart_try_dir" != "x"; then
7576 for try in $smart_try_dir; do
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7578 $as_echo_n "checking for talloc.h in $try... " >&6; }
7579 CFLAGS="$old_CFLAGS -I$try"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7592 if ac_fn_c_try_compile "$LINENO"; then :
7594 smart_include="-I$try"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7596 $as_echo "yes" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 CFLAGS="$old_CFLAGS"
7611 if test "x$smart_include" = "x"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7613 $as_echo_n "checking for talloc.h... " >&6; }
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7626 if ac_fn_c_try_compile "$LINENO"; then :
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7630 $as_echo "yes" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 if test "x$smart_include" = "x"; then
7646 if test "x$LOCATE" != "x"; then
7650 for x in `${LOCATE} $file 2>/dev/null`; do
7651 base=`echo $x | sed "s%/${file}%%"`
7652 if test "x$x" = "x$base"; then
7656 dir=`${DIRNAME} $x 2>/dev/null`
7657 exclude=`echo ${dir} | ${GREP} /home`
7658 if test "x$exclude" != "x"; then
7662 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7663 if test "x$already" = "x"; then
7669 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7671 for try in $smart_include_dir /usr/local/include /opt/include; do
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7673 $as_echo_n "checking for talloc.h in $try... " >&6; }
7674 CFLAGS="$old_CFLAGS -I$try"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7687 if ac_fn_c_try_compile "$LINENO"; then :
7689 smart_include="-I$try"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691 $as_echo "yes" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 CFLAGS="$old_CFLAGS"
7706 if test "x$smart_include" != "x"; then
7707 eval "ac_cv_header_$ac_safe=yes"
7708 CFLAGS="$old_CFLAGS $smart_include"
7709 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7712 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7714 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7715 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7717 INCLUDE="${SMART_CFLAGS} ${INCLUDE}"
7718 LIBS="-ltalloc ${LIBS}"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
7722 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
7723 if ${ac_cv_lib_crypt_crypt+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 ac_check_lib_save_LIBS=$LIBS
7727 LIBS="-lcrypt $LIBS"
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7731 /* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */
7746 if ac_fn_c_try_link "$LINENO"; then :
7747 ac_cv_lib_crypt_crypt=yes
7749 ac_cv_lib_crypt_crypt=no
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 LIBS=$ac_check_lib_save_LIBS
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
7756 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
7757 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
7762 if test "$CRYPTLIB" != ""; then
7764 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7767 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
7768 if test "x$ac_cv_func_crypt" = xyes; then :
7770 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
7777 $as_echo_n "checking for setkey in -lcipher... " >&6; }
7778 if ${ac_cv_lib_cipher_setkey+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lcipher $LIBS"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7801 if ac_fn_c_try_link "$LINENO"; then :
7802 ac_cv_lib_cipher_setkey=yes
7804 ac_cv_lib_cipher_setkey=no
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
7811 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
7812 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
7813 CRYPTLIB="${CRYPTLIB} -lcipher"
7820 $as_echo "#define GNUSTYLE 1" >>confdefs.h
7823 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
7826 $as_echo "#define BSDSTYLE 3" >>confdefs.h
7828 gethostbyaddrrstyle=""
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
7830 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
7833 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
7839 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
7845 cat >>confdefs.h <<_ACEOF
7846 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
7848 if test $ac_have_decl = 1; then :
7853 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7855 gethostbyaddrrstyle=BSD
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
7857 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
7863 if test "x$gethostbyaddrrstyle" = "x"; then
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7873 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
7878 if ac_fn_c_try_link "$LINENO"; then :
7881 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
7883 gethostbyaddrrstyle=GNU
7886 rm -f core conftest.err conftest.$ac_objext \
7887 conftest$ac_exeext conftest.$ac_ext
7889 if test "x$gethostbyaddrrstyle" = "x"; then
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7899 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
7904 if ac_fn_c_try_link "$LINENO"; then :
7907 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
7909 gethostbyaddrrstyle=SYSV
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7915 if test "x$gethostbyaddrrstyle" = "x"; then
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7925 gethostbyaddr(NULL, 0, 0)
7930 if ac_fn_c_try_link "$LINENO"; then :
7933 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
7935 gethostbyaddrrstyle=BSD
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7942 if test "x$gethostbyaddrrstyle" = "x"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
7944 $as_echo "none! It must not exist, here." >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
7947 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
7950 if test "x$gethostbyaddrrstyle" = "xBSD"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
7952 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
7955 gethostbynamerstyle=""
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
7957 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7967 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
7972 if ac_fn_c_try_link "$LINENO"; then :
7975 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
7977 gethostbynamerstyle=GNU
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 if test "x$gethostbynamerstyle" = "x"; then
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7992 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
7997 if ac_fn_c_try_link "$LINENO"; then :
8000 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8002 gethostbynamerstyle=SYSV
8005 rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8008 if test "x$gethostbynamerstyle" = "x"; then
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8023 if ac_fn_c_try_link "$LINENO"; then :
8026 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8028 gethostbynamerstyle=BSD
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8035 if test "x$gethostbynamerstyle" = "x"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8037 $as_echo "none! It must not exist, here." >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8040 $as_echo "${gethostbynamerstyle}-style" >&6; }
8043 if test "x$gethostbynamerstyle" = "xBSD"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8045 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8049 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8052 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8056 $as_echo_n "checking ctime_r() syntax... " >&6; }
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8065 ctime_r(NULL, NULL, 0)
8070 if ac_fn_c_try_link "$LINENO"; then :
8073 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8075 ctimerstyle="SOLARIS"
8078 rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 if test "x$ctimerstyle" = "x"; then
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8094 if ac_fn_c_try_link "$LINENO"; then :
8097 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8106 if test "x$ctimerstyle" = "x"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8108 $as_echo "none! It must not exist, here." >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8111 $as_echo "${ctimerstyle}-style" >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8121 $as_echo "top_builddir=$top_builddir" >&6; }
8127 if test "x$EXPERIMENTAL" = "xyes"; then
8128 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8129 MODULES="$MODULES $foo"
8132 for foo in `cat "${srcdir}"/src/modules/stable`; do
8133 MODULES="$MODULES $foo"
8138 for bar in $MODULES; do
8139 if test -f "${srcdir}"/src/modules/$bar/configure; then
8140 mysubdirs="$mysubdirs src/modules/$bar"
8146 subdirs="$subdirs $mysubdirs"
8151 ac_config_commands="$ac_config_commands stamp-h"
8153 ac_config_commands="$ac_config_commands build-radpaths-h"
8155 ac_config_commands="$ac_config_commands main-chmod"
8157 ac_config_commands="$ac_config_commands scripts-chmod"
8163 USE_SHARED_LIBS=$enable_shared
8165 USE_STATIC_LIBS=$enable_static
8170 unset ac_cv_env_LIBS_set
8171 unset ac_cv_env_LIBS_value
8173 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"
8175 cat >confcache <<\_ACEOF
8176 # This file is a shell script that caches the results of configure
8177 # tests run on this system so they can be shared between configure
8178 # scripts and configure runs, see configure's option --config-cache.
8179 # It is not useful on other systems. If it contains results you don't
8180 # want to keep, you may remove or edit it.
8182 # config.status only pays attention to the cache file if you give it
8183 # the --recheck option to rerun configure.
8185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8191 # The following way of writing the cache mishandles newlines in values,
8192 # but we know of no workaround that is simple, portable, and efficient.
8193 # So, we kill variables containing newlines.
8194 # Ultrix sh set writes to stderr and can't be redirected directly,
8195 # and sets the high bit in the cache file unless we assign to the vars.
8197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8198 eval ac_val=\$$ac_var
8202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8203 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8206 _ | IFS | as_nl) ;; #(
8207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8208 *) { eval $ac_var=; unset $ac_var;} ;;
8214 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8215 *${as_nl}ac_space=\ *)
8216 # `set' does not quote correctly, so add quotes: double-quote
8217 # substitution turns \\\\ into \\, and sed turns \\ into \.
8220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8223 # `set' quotes correctly as required by POSIX, so do not add quotes.
8224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8235 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8237 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8238 if test -w "$cache_file"; then
8239 if test "x$cache_file" != "x/dev/null"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8241 $as_echo "$as_me: updating cache $cache_file" >&6;}
8242 if test ! -f "$cache_file" || test -h "$cache_file"; then
8243 cat confcache >"$cache_file"
8245 case $cache_file in #(
8247 mv -f confcache "$cache_file"$$ &&
8248 mv -f "$cache_file"$$ "$cache_file" ;; #(
8250 mv -f confcache "$cache_file" ;;
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8256 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8262 # Let make expand exec_prefix.
8263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8265 DEFS=-DHAVE_CONFIG_H
8270 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8271 # 1. Remove the extension, and $U if already installed.
8272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8273 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8275 # will be set to the directory where LIBOBJS objects are built.
8276 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8277 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8281 LTLIBOBJS=$ac_ltlibobjs
8286 : "${CONFIG_STATUS=./config.status}"
8288 ac_clean_files_save=$ac_clean_files
8289 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8291 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8293 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8295 # Generated by $as_me.
8296 # Run this file to recreate the current configuration.
8297 # Compiler output produced by configure, useful for debugging
8298 # configure, is in config.log if it exists.
8304 SHELL=\${CONFIG_SHELL-$SHELL}
8307 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8308 ## -------------------- ##
8309 ## M4sh Initialization. ##
8310 ## -------------------- ##
8312 # Be more Bourne compatible
8313 DUALCASE=1; export DUALCASE # for MKS sh
8314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8317 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8318 # is contrary to our usage. Disable this feature.
8319 alias -g '${1+"$@"}'='"$@"'
8320 setopt NO_GLOB_SUBST
8322 case `(set -o) 2>/dev/null` in #(
8334 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8335 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8337 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8338 # Prefer a ksh shell builtin over an external printf program on Solaris,
8339 # but without wasting forks for bash or zsh.
8340 if test -z "$BASH_VERSION$ZSH_VERSION" \
8341 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8342 as_echo='print -r --'
8343 as_echo_n='print -rn --'
8344 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8345 as_echo='printf %s\n'
8346 as_echo_n='printf %s'
8348 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8349 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8350 as_echo_n='/usr/ucb/echo -n'
8352 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8353 as_echo_n_body='eval
8357 expr "X$arg" : "X\\(.*\\)$as_nl";
8358 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8360 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8362 export as_echo_n_body
8363 as_echo_n='sh -c $as_echo_n_body as_echo'
8366 as_echo='sh -c $as_echo_body as_echo'
8369 # The user is always right.
8370 if test "${PATH_SEPARATOR+set}" != set; then
8372 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8373 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8380 # We need space, tab and new line, in precisely that order. Quoting is
8381 # there to prevent editors from complaining about space-tab.
8382 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8383 # splitting by setting IFS to empty value.)
8386 # Find who we are. Look in the path if we contain no directory separator.
8389 *[\\/]* ) as_myself=$0 ;;
8390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8401 # We did not find ourselves, most probably we were run as `sh COMMAND'
8402 # in which case we are not to be found in the path.
8403 if test "x$as_myself" = x; then
8406 if test ! -f "$as_myself"; then
8407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8411 # Unset variables that we do not need and which cause bugs (e.g. in
8412 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8413 # suppresses any "Segmentation fault" message there. '((' could
8414 # trigger a bug in pdksh 5.2.14.
8415 for as_var in BASH_ENV ENV MAIL MAILPATH
8416 do eval test x\${$as_var+set} = xset \
8417 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8434 # ----------------------------------------
8435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8437 # script with STATUS, using 1 if that was 0.
8440 as_status=$1; test $as_status -eq 0 && as_status=1
8442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8445 $as_echo "$as_me: error: $2" >&2
8446 as_fn_exit $as_status
8450 # as_fn_set_status STATUS
8451 # -----------------------
8452 # Set $? to STATUS, without forking.
8456 } # as_fn_set_status
8460 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8470 # Portably unset VAR.
8473 { eval $1=; unset $1;}
8475 as_unset=as_fn_unset
8476 # as_fn_append VAR VALUE
8477 # ----------------------
8478 # Append the text in VALUE to the end of the definition contained in VAR. Take
8479 # advantage of any shell optimizations that allow amortized linear growth over
8480 # repeated appends, instead of the typical quadratic growth present in naive
8482 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8483 eval 'as_fn_append ()
8494 # as_fn_arith ARG...
8495 # ------------------
8496 # Perform arithmetic evaluation on the ARGs, and store the result in the
8497 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8498 # must be portable across $(()) and expr.
8499 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8500 eval 'as_fn_arith ()
8507 as_val=`expr "$@" || test $? -eq 1`
8512 if expr a : '\(a\)' >/dev/null 2>&1 &&
8513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8520 as_basename=basename
8525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8531 as_me=`$as_basename -- "$0" ||
8532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8533 X"$0" : 'X\(//\)$' \| \
8534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8536 sed '/^.*\/\([^/][^/]*\)\/*$/{
8550 # Avoid depending upon Character Ranges.
8551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8554 as_cr_digits='0123456789'
8555 as_cr_alnum=$as_cr_Letters$as_cr_digits
8557 ECHO_C= ECHO_N= ECHO_T=
8558 case `echo -n x` in #(((((
8560 case `echo 'xy\c'` in
8561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8563 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8570 rm -f conf$$ conf$$.exe conf$$.file
8571 if test -d conf$$.dir; then
8572 rm -f conf$$.dir/conf$$.file
8575 mkdir conf$$.dir 2>/dev/null
8577 if (echo >conf$$.file) 2>/dev/null; then
8578 if ln -s conf$$.file conf$$ 2>/dev/null; then
8580 # ... but there are two gotchas:
8581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8583 # In both cases, we have to default to `cp -pR'.
8584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8586 elif ln conf$$.file conf$$ 2>/dev/null; then
8594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8595 rmdir conf$$.dir 2>/dev/null
8600 # Create "$as_dir" as a directory, including parents if necessary.
8605 -*) as_dir=./$as_dir;;
8607 test -d "$as_dir" || eval $as_mkdir_p || {
8611 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8612 *) as_qdir=$as_dir;;
8614 as_dirs="'$as_qdir' $as_dirs"
8615 as_dir=`$as_dirname -- "$as_dir" ||
8616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8617 X"$as_dir" : 'X\(//\)[^/]' \| \
8618 X"$as_dir" : 'X\(//\)$' \| \
8619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8620 $as_echo X"$as_dir" |
8621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8638 test -d "$as_dir" && break
8640 test -z "$as_dirs" || eval "mkdir $as_dirs"
8641 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8645 if mkdir -p . 2>/dev/null; then
8646 as_mkdir_p='mkdir -p "$as_dir"'
8648 test -d ./-p && rmdir ./-p
8653 # as_fn_executable_p FILE
8654 # -----------------------
8655 # Test if FILE is an executable regular file.
8656 as_fn_executable_p ()
8658 test -f "$1" && test -x "$1"
8659 } # as_fn_executable_p
8661 as_executable_p=as_fn_executable_p
8663 # Sed expression to map a string onto a valid CPP name.
8664 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8666 # Sed expression to map a string onto a valid variable name.
8667 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8671 ## ----------------------------------- ##
8672 ## Main body of $CONFIG_STATUS script. ##
8673 ## ----------------------------------- ##
8675 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8678 # Save the log message, to keep $0 and so on meaningful, and to
8679 # report actual input values of CONFIG_FILES etc. instead of their
8680 # values after options handling.
8682 This file was extended by freeradius $as_me $Id$, which was
8683 generated by GNU Autoconf 2.69. Invocation command line was
8685 CONFIG_FILES = $CONFIG_FILES
8686 CONFIG_HEADERS = $CONFIG_HEADERS
8687 CONFIG_LINKS = $CONFIG_LINKS
8688 CONFIG_COMMANDS = $CONFIG_COMMANDS
8691 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8696 case $ac_config_files in *"
8697 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8700 case $ac_config_headers in *"
8701 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8706 # Files that config.status was made for.
8707 config_files="$ac_config_files"
8708 config_headers="$ac_config_headers"
8709 config_commands="$ac_config_commands"
8713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8715 \`$as_me' instantiates files and other configuration actions
8716 from templates according to the current configuration. Unless the files
8717 and actions are specified as TAGs, all are instantiated by default.
8719 Usage: $0 [OPTION]... [TAG]...
8721 -h, --help print this help, then exit
8722 -V, --version print version number and configuration settings, then exit
8723 --config print configuration, then exit
8724 -q, --quiet, --silent
8725 do not print progress messages
8726 -d, --debug don't remove temporary files
8727 --recheck update $as_me by reconfiguring in the same conditions
8728 --file=FILE[:TEMPLATE]
8729 instantiate the configuration file FILE
8730 --header=FILE[:TEMPLATE]
8731 instantiate the configuration header FILE
8733 Configuration files:
8736 Configuration headers:
8739 Configuration commands:
8742 Report bugs to <http://bugs.freeradius.org>.
8743 freeradius home page: <http://www.freeradius.org>."
8746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8747 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8749 freeradius config.status $Id$
8750 configured by $0, generated by GNU Autoconf 2.69,
8751 with options \\"\$ac_cs_config\\"
8753 Copyright (C) 2012 Free Software Foundation, Inc.
8754 This config.status script is free software; the Free Software Foundation
8755 gives unlimited permission to copy, distribute and modify it."
8759 test -n "\$AWK" || AWK=awk
8762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8763 # The default lists apply if the user does not specify any file.
8769 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8770 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8774 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8786 # Handling of the options.
8787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8790 $as_echo "$ac_cs_version"; exit ;;
8791 --config | --confi | --conf | --con | --co | --c )
8792 $as_echo "$ac_cs_config"; exit ;;
8793 --debug | --debu | --deb | --de | --d | -d )
8795 --file | --fil | --fi | --f )
8798 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8799 '') as_fn_error $? "missing file argument" ;;
8801 as_fn_append CONFIG_FILES " '$ac_optarg'"
8802 ac_need_defaults=false;;
8803 --header | --heade | --head | --hea )
8806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8808 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8809 ac_need_defaults=false;;
8811 # Conflict between --help and --header
8812 as_fn_error $? "ambiguous option: \`$1'
8813 Try \`$0 --help' for more information.";;
8814 --help | --hel | -h )
8815 $as_echo "$ac_cs_usage"; exit ;;
8816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8821 -*) as_fn_error $? "unrecognized option: \`$1'
8822 Try \`$0 --help' for more information." ;;
8824 *) as_fn_append ac_config_targets " $1"
8825 ac_need_defaults=false ;;
8831 ac_configure_extra_args=
8833 if $ac_cs_silent; then
8835 ac_configure_extra_args="$ac_configure_extra_args --silent"
8839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8840 if \$ac_cs_recheck; then
8841 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8843 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8844 CONFIG_SHELL='$SHELL'
8850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8855 ## Running $as_me. ##
8861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8866 # Handling of arguments.
8867 for ac_config_target in $ac_config_targets
8869 case $ac_config_target in
8870 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
8871 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8872 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
8873 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
8874 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
8875 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
8876 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
8877 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
8878 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
8879 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
8880 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
8881 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
8882 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
8883 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
8884 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
8885 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
8886 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
8887 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
8889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8894 # If the user did not use the arguments to specify the items to instantiate,
8895 # then the envvar interface is used. Set only those that are not.
8896 # We use the long form for the default assignment because of an extremely
8897 # bizarre bug on SunOS 4.1.3.
8898 if $ac_need_defaults; then
8899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8900 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8901 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8904 # Have a temporary directory for convenience. Make it in the build tree
8905 # simply because there is no reason against having it here, and in addition,
8906 # creating and moving files from /tmp can sometimes cause problems.
8907 # Hook for its removal unless debugging.
8908 # Note that there is a small window in which the directory will not be cleaned:
8909 # after its creation but before its name has been assigned to `$tmp'.
8913 trap 'exit_status=$?
8915 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8917 trap 'as_fn_exit 1' 1 2 13 15
8919 # Create a (secure) tmp directory for tmp files.
8922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8926 tmp=./conf$$-$RANDOM
8927 (umask 077 && mkdir "$tmp")
8928 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8931 # Set up the scripts for CONFIG_FILES section.
8932 # No need to generate them if there are no CONFIG_FILES.
8933 # This happens for instance with `./config.status config.h'.
8934 if test -n "$CONFIG_FILES"; then
8937 ac_cr=`echo X | tr X '\015'`
8938 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8939 # But we know of no other shell where ac_cr would be empty at this
8940 # point, so we can use a bashism as a fallback.
8941 if test "x$ac_cr" = x; then
8942 eval ac_cr=\$\'\\r\'
8944 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8945 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8951 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8956 echo "cat >conf$$subs.awk <<_ACEOF" &&
8957 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8960 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8963 for ac_last_try in false false false false false :; do
8964 . ./conf$$subs.sh ||
8965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8967 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8968 if test $ac_delim_n = $ac_delim_num; then
8970 elif $ac_last_try; then
8971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8979 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8983 s/^/S["/; s/!.*/"]=/
8993 s/\(.\{148\}\)..*/\1/
8995 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9000 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9007 s/\(.\{148\}\)..*/\1/
9009 s/["\\]/\\&/g; s/^/"/; s/$/"/
9013 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9018 ' <conf$$subs.awk | sed '
9023 ' >>$CONFIG_STATUS || ac_write_fail=1
9024 rm -f conf$$subs.awk
9025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9027 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9028 for (key in S) S_is_set[key] = 1
9034 nfields = split(line, field, "@")
9036 len = length(field[1])
9037 for (i = 2; i < nfields; i++) {
9039 keylen = length(key)
9040 if (S_is_set[key]) {
9042 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9043 len += length(value) + length(field[++i])
9054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9055 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9056 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9059 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9060 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9063 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9064 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9065 # trailing colons and then remove the whole line if VPATH becomes empty
9066 # (actually we leave an empty line to preserve line numbers).
9067 if test "x$srcdir" = x.; then
9068 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9087 fi # test -n "$CONFIG_FILES"
9089 # Set up the scripts for CONFIG_HEADERS section.
9090 # No need to generate them if there are no CONFIG_HEADERS.
9091 # This happens for instance with `./config.status Makefile'.
9092 if test -n "$CONFIG_HEADERS"; then
9093 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9097 # Transform confdefs.h into an awk script `defines.awk', embedded as
9098 # here-document in config.status, that substitutes the proper values into
9099 # config.h.in to produce config.h.
9101 # Create a delimiter string that does not exist in confdefs.h, to ease
9102 # handling of long lines.
9104 for ac_last_try in false false :; do
9105 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9106 if test -z "$ac_tt"; then
9108 elif $ac_last_try; then
9109 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9115 # For the awk script, D is an array of macro values keyed by name,
9116 # likewise P contains macro parameters if any. Preserve backslash
9117 # newline sequences.
9119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9121 s/.\{148\}/&'"$ac_delim"'/g
9124 s/^[ ]*#[ ]*define[ ][ ]*/ /
9131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9138 D["\1"]=" \3\\\\\\n"\\/p
9140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9145 s/.\{148\}/&'"$ac_delim"'/g
9150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9155 ' <confdefs.h | sed '
9156 s/'"$ac_delim"'/"\\\
9157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9160 for (key in D) D_is_set[key] = 1
9163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9165 split(line, arg, " ")
9166 if (arg[1] == "#") {
9170 defundef = substr(arg[1], 2)
9173 split(mac1, mac2, "(") #)
9175 prefix = substr(line, 1, index(line, defundef) - 1)
9176 if (D_is_set[macro]) {
9177 # Preserve the white space surrounding the "#".
9178 print prefix "define", macro P[macro] D[macro]
9181 # Replace #undef with comments. This is necessary, for example,
9182 # in the case of _POSIX_SOURCE, which is predefined and required
9183 # on some systems where configure will not decide to define it.
9184 if (defundef == "undef") {
9185 print "/*", prefix defundef, macro, "*/"
9193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9194 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9195 fi # test -n "$CONFIG_HEADERS"
9198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9203 :[FHLC]) ac_mode=$ac_tag; continue;;
9205 case $ac_mode$ac_tag in
9207 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9208 :[FH]-) ac_tag=-:-;;
9209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9226 -) ac_f="$ac_tmp/stdin";;
9227 *) # Look for the file first in the build tree, then in the source tree
9228 # (if the path is not absolute). The absolute path cannot be DOS-style,
9229 # because $ac_f cannot contain `:'.
9233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9235 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9238 as_fn_append ac_file_inputs " '$ac_f'"
9241 # Let's still pretend it is `configure' which instantiates (i.e., don't
9242 # use $as_me), people would be surprised to read:
9243 # /* config.h. Generated by config.status. */
9244 configure_input='Generated from '`
9245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9247 if test x"$ac_file" != x-; then
9248 configure_input="$ac_file. $configure_input"
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9250 $as_echo "$as_me: creating $ac_file" >&6;}
9252 # Neutralize special characters interpreted by sed in replacement strings.
9253 case $configure_input in #(
9254 *\&* | *\|* | *\\* )
9255 ac_sed_conf_input=`$as_echo "$configure_input" |
9256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9257 *) ac_sed_conf_input=$configure_input;;
9261 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9267 ac_dir=`$as_dirname -- "$ac_file" ||
9268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9269 X"$ac_file" : 'X\(//\)[^/]' \| \
9270 X"$ac_file" : 'X\(//\)$' \| \
9271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9272 $as_echo X"$ac_file" |
9273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9290 as_dir="$ac_dir"; as_fn_mkdir_p
9294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9297 # A ".." for each directory in $ac_dir_suffix.
9298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9299 case $ac_top_builddir_sub in
9300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9304 ac_abs_top_builddir=$ac_pwd
9305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9306 # for backward compatibility:
9307 ac_top_builddir=$ac_top_build_prefix
9310 .) # We are building in place.
9312 ac_top_srcdir=$ac_top_builddir_sub
9313 ac_abs_top_srcdir=$ac_pwd ;;
9314 [\\/]* | ?:[\\/]* ) # Absolute name.
9315 ac_srcdir=$srcdir$ac_dir_suffix;
9316 ac_top_srcdir=$srcdir
9317 ac_abs_top_srcdir=$srcdir ;;
9319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9320 ac_top_srcdir=$ac_top_build_prefix$srcdir
9321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9335 # If the template does not know about datarootdir, expand it.
9336 # FIXME: This hack should be removed a few years after 2.60.
9337 ac_datarootdir_hack=; ac_datarootdir_seen=
9348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9349 *datarootdir*) ac_datarootdir_seen=yes;;
9350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9355 ac_datarootdir_hack='
9356 s&@datadir@&$datadir&g
9357 s&@docdir@&$docdir&g
9358 s&@infodir@&$infodir&g
9359 s&@localedir@&$localedir&g
9360 s&@mandir@&$mandir&g
9361 s&\\\${datarootdir}&$datarootdir&g' ;;
9365 # Neutralize VPATH when `$srcdir' = `.'.
9366 # Shell code in configure.ac might set extrasub.
9367 # FIXME: do we really want to maintain this feature?
9368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9369 ac_sed_extra="$ac_vpsub
9372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9375 s|@configure_input@|$ac_sed_conf_input|;t t
9376 s&@top_builddir@&$ac_top_builddir_sub&;t t
9377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9378 s&@srcdir@&$ac_srcdir&;t t
9379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9380 s&@top_srcdir@&$ac_top_srcdir&;t t
9381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9382 s&@builddir@&$ac_builddir&;t t
9383 s&@abs_builddir@&$ac_abs_builddir&;t t
9384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9385 $ac_datarootdir_hack
9387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9395 which seems to be undefined. Please make sure it is defined" >&5
9396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9397 which seems to be undefined. Please make sure it is defined" >&2;}
9399 rm -f "$ac_tmp/stdin"
9401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9410 if test x"$ac_file" != x-; then
9412 $as_echo "/* $configure_input */" \
9413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9414 } >"$ac_tmp/config.h" \
9415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9416 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9421 mv "$ac_tmp/config.h" "$ac_file" \
9422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9425 $as_echo "/* $configure_input */" \
9426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9427 || as_fn_error $? "could not create -" "$LINENO" 5
9431 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9432 $as_echo "$as_me: executing $ac_file commands" >&6;}
9437 case $ac_file$ac_mode in
9438 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
9439 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
9440 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
9441 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
9449 ac_clean_files=$ac_clean_files_save
9451 test $ac_write_fail = 0 ||
9452 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9455 # configure is writing to config.log, and then calls config.status.
9456 # config.status does its own redirection, appending to config.log.
9457 # Unfortunately, on DOS this fails, as config.log is still kept open
9458 # by configure, so config.status won't be able to write to it; its
9459 # output is simply discarded. So we exec the FD to /dev/null,
9460 # effectively closing config.log, so it can be properly (re)opened and
9461 # appended to by config.status. When coming back to configure, we
9462 # need to make the FD available again.
9463 if test "$no_create" != yes; then
9465 ac_config_status_args=
9466 test "$silent" = yes &&
9467 ac_config_status_args="$ac_config_status_args --quiet"
9469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9472 # would make configure fail if this is the last instruction.
9473 $ac_cs_success || as_fn_exit 1
9477 # CONFIG_SUBDIRS section.
9479 if test "$no_recursion" != yes; then
9481 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9482 # so they do not pile up.
9483 ac_sub_configure_args=
9485 eval "set x $ac_configure_args"
9489 if test -n "$ac_prev"; then
9494 -cache-file | --cache-file | --cache-fil | --cache-fi \
9495 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9496 ac_prev=cache_file ;;
9497 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9498 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9501 --config-cache | -C)
9503 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9505 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9511 --disable-option-checking)
9515 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9517 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9521 # Always prepend --prefix to ensure using the same prefix
9522 # in subdir configurations.
9523 ac_arg="--prefix=$prefix"
9525 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9527 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9530 if test "$silent" = yes; then
9531 ac_sub_configure_args="--silent $ac_sub_configure_args"
9534 # Always prepend --disable-option-checking to silence warnings, since
9535 # different subdirs can have different --enable and --with options.
9536 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9539 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9541 # Do not complain, so a configure script can configure whichever
9542 # parts of a large source tree are present.
9543 test -d "$srcdir/$ac_dir" || continue
9545 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9547 $as_echo "$ac_msg" >&6
9548 as_dir="$ac_dir"; as_fn_mkdir_p
9552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9555 # A ".." for each directory in $ac_dir_suffix.
9556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9557 case $ac_top_builddir_sub in
9558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9562 ac_abs_top_builddir=$ac_pwd
9563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9564 # for backward compatibility:
9565 ac_top_builddir=$ac_top_build_prefix
9568 .) # We are building in place.
9570 ac_top_srcdir=$ac_top_builddir_sub
9571 ac_abs_top_srcdir=$ac_pwd ;;
9572 [\\/]* | ?:[\\/]* ) # Absolute name.
9573 ac_srcdir=$srcdir$ac_dir_suffix;
9574 ac_top_srcdir=$srcdir
9575 ac_abs_top_srcdir=$srcdir ;;
9577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9578 ac_top_srcdir=$ac_top_build_prefix$srcdir
9579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9586 # Check for guested configure; otherwise get Cygnus style configure.
9587 if test -f "$ac_srcdir/configure.gnu"; then
9588 ac_sub_configure=$ac_srcdir/configure.gnu
9589 elif test -f "$ac_srcdir/configure"; then
9590 ac_sub_configure=$ac_srcdir/configure
9591 elif test -f "$ac_srcdir/configure.in"; then
9592 # This should be Cygnus configure.
9593 ac_sub_configure=$ac_aux_dir/configure
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9600 # The recursion is here.
9601 if test -n "$ac_sub_configure"; then
9602 # Make the cache file name correct relative to the subdirectory.
9604 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9606 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9609 { $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
9610 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9611 # The eval makes quoting arguments work.
9612 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9613 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9614 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}