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
691 RADIUSD_VERSION_STRING
719 program_transform_name
732 enable_option_checking
735 enable_strict_dependencies
749 with_experimental_modules
752 with_openssl_includes
753 with_openssl_libraries
755 with_rlm_FOO_include_dir
756 with_talloc_include_dir
758 with_pcap_include_dir
760 with_rlm_pcre_lib_dir
761 with_rlm_pcre_include_dir
763 ac_precious_vars='build_alias
775 ac_subdirs_all='$mysubdirs'
777 # Initialize some variables set by options.
779 ac_init_version=false
780 ac_unrecognized_opts=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
791 program_transform_name=s,x,x,
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=no ;;
1143 # Obsolete; use --with-x.
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of freeradius $Id$:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-developer enables features of interest to developers.
1390 --disable-largefile omit support for large files
1391 --enable-strict-dependencies fail configure on lack of module dependancy.
1392 --enable-werror causes the build to fail if any warnings are generated.
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1398 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1399 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1400 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1401 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1402 --with-threads use threads, if available. (default=yes)
1403 --with-tcp compile in TCP support. (default=yes)
1404 --with-vmps compile in VMPS support. (default=yes)
1405 --with-dhcp compile in DHCP support. (default=yes)
1406 --with-static-modules=QUOTED-MODULE-LIST
1407 --with-shared-libs build dynamic libraries and link against them. (default=yes)
1408 --with-modules=QUOTED-MODULE-LIST
1409 --with-experimental-modules use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1410 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1411 --with-openssl use OpenSSL. (default=yes)
1412 --with-openssl-includes=DIR directory to look for OpenSSL include files in
1413 --with-openssl-libraries=DIR directory to look for OpenSSL library files in
1414 --with-rlm-FOO-lib-dir=DIR directory to look for library files used by module FOO in
1415 --with-rlm-FOO-include-dir=DIR directory to look for include files used by module FOO in
1416 --with-talloc-include-dir=DIR directory to look for talloc include files in
1417 --with-talloc-lib-dir=DIR directory to look for talloc library files in
1418 --with-pcap-include-dir=DIR directory to look for pcap include files in
1419 --with-pcap-lib-dir=DIR directory to look for pcap library files in
1420 --with-pcre-lib-dir=DIR directory to look for PCRE library files in
1421 --with-pcre-include-dir=DIR directory to look for PCRE include files in
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 CXX C++ compiler command
1432 CXXFLAGS C++ compiler flags
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1438 Report bugs to <http://bugs.freeradius.org>.
1439 freeradius home page: <http://www.freeradius.org>.
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 freeradius configure $Id$
1503 generated by GNU Autoconf 2.69
1505 Copyright (C) 2012 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1552 } # ac_fn_c_try_compile
1554 # ac_fn_cxx_try_compile LINENO
1555 # ----------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_cxx_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_cxx_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_cxx_try_compile
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1634 ac_fn_c_check_header_mongrel ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if eval \${$3+:} false; then :
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1647 # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1658 ac_header_compiler=no
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1674 ac_header_preproc=no
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1680 # So? What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ( $as_echo "## ----------------------------------------- ##
1700 ## Report this to http://bugs.freeradius.org ##
1701 ## ----------------------------------------- ##"
1702 ) | sed "s/^/$as_me: WARNING: /" >&2
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 eval "$3=\$ac_header_compiler"
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_header_mongrel
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_link
1839 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1840 # -------------------------------------------
1841 # Tests whether TYPE exists after having included INCLUDES, setting cache
1842 # variable VAR accordingly.
1843 ac_fn_c_check_type ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1877 if ac_fn_c_try_compile "$LINENO"; then :
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_type
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1916 # include <limits.h>
1918 # include <assert.h>
1923 /* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1930 /* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933 #if defined __stub_$2 || defined __stub___$2
1945 if ac_fn_c_try_link "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_func
1960 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1961 # ---------------------------------------------
1962 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 ac_fn_c_check_decl ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 as_decl_name=`echo $2|sed 's/ *(.*//'`
1968 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1970 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 #ifndef $as_decl_name
1982 (void) $as_decl_use;
1984 (void) $as_decl_name;
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_decl
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2009 It was created by freeradius $as_me $Id$, which was
2010 generated by GNU Autoconf 2.69. Invocation command line was
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 $as_echo "PATH: $as_dir"
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2070 ac_must_keep_next=false
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2081 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086 as_fn_append ac_configure_args1 " '$ac_arg'"
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099 -* ) ac_must_keep_next=true ;;
2102 as_fn_append ac_configure_args " '$ac_arg'"
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log. We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116 # Save into config.log some information that might help in debugging.
2120 $as_echo "## ---------------- ##
2121 ## Cache variables. ##
2122 ## ---------------- ##"
2124 # The following way of writing the cache mishandles newlines in values,
2126 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2127 eval ac_val=\$$ac_var
2131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135 _ | IFS | as_nl) ;; #(
2136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2137 *) { eval $ac_var=; unset $ac_var;} ;;
2142 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2143 *${as_nl}ac_space=\ *)
2145 "s/'\''/'\''\\\\'\'''\''/g;
2146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156 $as_echo "## ----------------- ##
2157 ## Output variables. ##
2158 ## ----------------- ##"
2160 for ac_var in $ac_subst_vars
2162 eval ac_val=\$$ac_var
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 $as_echo "$ac_var='\''$ac_val'\''"
2170 if test -n "$ac_subst_files"; then
2171 $as_echo "## ------------------- ##
2172 ## File substitutions. ##
2173 ## ------------------- ##"
2175 for ac_var in $ac_subst_files
2177 eval ac_val=\$$ac_var
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 $as_echo "$ac_var='\''$ac_val'\''"
2186 if test -s confdefs.h; then
2187 $as_echo "## ----------- ##
2194 test "$ac_signal" != 0 &&
2195 $as_echo "$as_me: caught signal $ac_signal"
2196 $as_echo "$as_me: exit $exit_status"
2198 rm -f core *.core core.conftest.* &&
2199 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202 for ac_signal in 1 2 13 15; do
2203 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2208 rm -f -r conftest* confdefs.h
2210 $as_echo "/* confdefs.h */" > confdefs.h
2212 # Predefined preprocessor variables.
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_NAME "$PACKAGE_NAME"
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_STRING "$PACKAGE_STRING"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_URL "$PACKAGE_URL"
2239 # Let the site file select an alternate cache file if it wants to.
2240 # Prefer an explicitly selected file to automatically selected ones.
2243 if test -n "$CONFIG_SITE"; then
2244 # We do not want a PATH search for config.site.
2245 case $CONFIG_SITE in #((
2246 -*) ac_site_file1=./$CONFIG_SITE;;
2247 */*) ac_site_file1=$CONFIG_SITE;;
2248 *) ac_site_file1=./$CONFIG_SITE;;
2250 elif test "x$prefix" != xNONE; then
2251 ac_site_file1=$prefix/share/config.site
2252 ac_site_file2=$prefix/etc/config.site
2254 ac_site_file1=$ac_default_prefix/share/config.site
2255 ac_site_file2=$ac_default_prefix/etc/config.site
2257 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259 test "x$ac_site_file" = xNONE && continue
2260 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2262 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2263 sed 's/^/| /' "$ac_site_file" >&5
2265 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 as_fn_error $? "failed to load site script $ac_site_file
2268 See \`config.log' for more details" "$LINENO" 5; }
2272 if test -r "$cache_file"; then
2273 # Some versions of bash will fail to source /dev/null (special files
2274 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2275 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277 $as_echo "$as_me: loading cache $cache_file" >&6;}
2279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285 $as_echo "$as_me: creating cache $cache_file" >&6;}
2289 # Check that the precious variables saved in the cache have kept the same
2291 ac_cache_corrupted=false
2292 for ac_var in $ac_precious_vars; do
2293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
2295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
2297 case $ac_old_set,$ac_new_set in
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
2309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 *) ac_arg=$ac_var=$ac_new_val ;;
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2339 if $ac_cache_corrupted; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2346 ## -------------------- ##
2347 ## Main body of script. ##
2348 ## -------------------- ##
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2371 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2372 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2373 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2375 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2376 -v minor="$RADIUSD_MINOR_VERSION" \
2377 -v incrm="$RADIUSD_INCRM_VERSION" \
2378 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2380 RADIUSD_VERSION_STRING=`cat VERSION`
2385 cat >>confdefs.h <<_ACEOF
2386 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2390 cat >>confdefs.h <<_ACEOF
2391 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2396 # Check whether --enable-developer was given.
2397 if test "${enable_developer+set}" = set; then :
2398 enableval=$enable_developer; case "$enableval" in
2409 if test -d $srcdir/.git; then
2410 if test "x$developer" != "xno"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2412 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2417 if test "x$developer" = "xyes"; then
2423 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2424 if test -f "$ac_dir/install-sh"; then
2426 ac_install_sh="$ac_aux_dir/install-sh -c"
2428 elif test -f "$ac_dir/install.sh"; then
2430 ac_install_sh="$ac_aux_dir/install.sh -c"
2432 elif test -f "$ac_dir/shtool"; then
2434 ac_install_sh="$ac_aux_dir/shtool install -c"
2438 if test -z "$ac_aux_dir"; then
2439 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2447 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2448 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2451 # Make sure we can run config.sub.
2452 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2453 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2456 $as_echo_n "checking build system type... " >&6; }
2457 if ${ac_cv_build+:} false; then :
2458 $as_echo_n "(cached) " >&6
2460 ac_build_alias=$build_alias
2461 test "x$ac_build_alias" = x &&
2462 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2463 test "x$ac_build_alias" = x &&
2464 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2465 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2470 $as_echo "$ac_cv_build" >&6; }
2471 case $ac_cv_build in
2473 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2476 ac_save_IFS=$IFS; IFS='-'
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2486 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2490 $as_echo_n "checking host system type... " >&6; }
2491 if ${ac_cv_host+:} false; then :
2492 $as_echo_n "(cached) " >&6
2494 if test "x$host_alias" = x; then
2495 ac_cv_host=$ac_cv_build
2497 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2503 $as_echo "$ac_cv_host" >&6; }
2506 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2509 ac_save_IFS=$IFS; IFS='-'
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2519 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2523 $as_echo_n "checking target system type... " >&6; }
2524 if ${ac_cv_target+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test "x$target_alias" = x; then
2528 ac_cv_target=$ac_cv_host
2530 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2536 $as_echo "$ac_cv_target" >&6; }
2537 case $ac_cv_target in
2539 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2541 target=$ac_cv_target
2542 ac_save_IFS=$IFS; IFS='-'
2548 # Remember, the first character of IFS is used to create $*,
2549 # except with old shells:
2552 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2555 # The aliases save the names the user supplied, while $host etc.
2556 # will get canonicalized.
2557 test -n "$target_alias" &&
2558 test "$program_prefix$program_suffix$program_transform_name" = \
2560 program_prefix=${target_alias}-
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2566 $as_echo_n "checking if cc is apple llvm... " >&6; }
2567 if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 # Extract the first word of "sw_vers", so it can be a program name with args.
2571 set dummy sw_vers; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_SW_VERS+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$SW_VERS"; then
2578 ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_SW_VERS="yes"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2598 SW_VERS=$ac_cv_prog_SW_VERS
2599 if test -n "$SW_VERS"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2601 $as_echo "$SW_VERS" >&6; }
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2608 # Extract the first word of "xcodebuild", so it can be a program name with args.
2609 set dummy xcodebuild; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$XCODEBUILD"; then
2616 ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_XCODEBUILD="yes"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2636 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2637 if test -n "$XCODEBUILD"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2639 $as_echo "$XCODEBUILD" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2647 if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2649 $as_echo "$as_me: determining OSX SDK path" >&6;}
2650 osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2652 $as_echo "$osx_sdk_path" >&6; }
2654 export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path"
2655 export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path"
2656 export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/"
2657 DARWIN_CFLAGS="--sysroot=$osx_sdk_path"
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_CC+:} false; then :
2678 $as_echo_n "(cached) " >&6
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test -n "$CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2711 if test -z "$ac_cv_prog_CC"; then
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_ac_ct_CC="gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 $as_echo "$ac_ct_CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2749 if test "x$ac_ct_CC" = x; then
2752 case $cross_compiling:$ac_tool_warned in
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2764 if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}cc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}cc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2805 if test -z "$CC"; then
2806 # Extract the first word of "cc", so it can be a program name with args.
2807 set dummy cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected=yes
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy $ac_cv_prog_CC
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2851 if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 $as_echo "$CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog in cl.exe
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$CC" && break
2905 if test -z "$CC"; then
2907 for ac_prog in cl.exe
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2946 test -n "$ac_ct_CC" && break
2949 if test "x$ac_ct_CC" = x; then
2952 case $cross_compiling:$ac_tool_warned in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $? "no acceptable C compiler found in \$PATH
2968 See \`config.log' for more details" "$LINENO" 5; }
2970 # Provide some information about the compiler.
2971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974 for ac_option in --version -v -V -qversion; do
2975 { { ac_try="$ac_compiler $ac_option >&5"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984 if test -s conftest.err; then
2986 ... rest of stderr output deleted ...
2987 10q' conftest.err >conftest.er1
2988 cat conftest.er1 >&5
2990 rm -f conftest.er1 conftest.err
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3012 $as_echo_n "checking whether the C compiler works... " >&6; }
3013 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015 # The possible output files:
3016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019 for ac_file in $ac_files
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028 if { { ac_try="$ac_link_default"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link_default") 2>&5
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3041 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3042 # so that the user can short-circuit this test for compilers unknown to
3044 for ac_file in $ac_files ''
3046 test -f "$ac_file" || continue
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051 # We found the default executable, but exeext='' is most
3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 # We set ac_cv_exeext here because the later test for it is not
3060 # safe: cross compilers may not add the suffix if given an `-o'
3061 # argument, so we may need to know it at that point already.
3062 # Even if this section looks crufty: it has the advantage of
3069 test "$ac_cv_exeext" = no && ac_cv_exeext=
3074 if test -z "$ac_file"; then :
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 $as_echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error 77 "C compiler cannot create executables
3083 See \`config.log' for more details" "$LINENO" 5; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 ac_exeext=$ac_cv_exeext
3094 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3095 ac_clean_files=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3097 $as_echo_n "checking for suffix of executables... " >&6; }
3098 if { { ac_try="$ac_link"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link") 2>&5
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 for ac_file in conftest.exe conftest conftest.*; do
3114 test -f "$ac_file" || continue
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details" "$LINENO" 5; }
3128 rm -f conftest conftest$ac_cv_exeext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3132 rm -f conftest.$ac_ext
3133 EXEEXT=$ac_cv_exeext
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3141 FILE *f = fopen ("conftest.out", "w");
3142 return ferror (f) || fclose (f) != 0;
3148 ac_clean_files="$ac_clean_files conftest.out"
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3152 $as_echo_n "checking whether we are cross compiling... " >&6; }
3153 if test "$cross_compiling" != yes; then
3154 { { ac_try="$ac_link"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 if { ac_try='./conftest$ac_cv_exeext'
3166 { { case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_try") 2>&5
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; }; then
3178 if test "$cross_compiling" = maybe; then
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details" "$LINENO" 5; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3190 $as_echo "$cross_compiling" >&6; }
3192 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3193 ac_clean_files=$ac_clean_files_save
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3195 $as_echo_n "checking for suffix of object files... " >&6; }
3196 if ${ac_cv_objext+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3210 rm -f conftest.o conftest.obj
3211 if { { ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compile") 2>&5
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 for ac_file in conftest.o conftest.obj conftest.*; do
3223 test -f "$ac_file" || continue;
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details" "$LINENO" 5; }
3239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3242 $as_echo "$ac_cv_objext" >&6; }
3243 OBJEXT=$ac_cv_objext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3247 if ${ac_cv_c_compiler_gnu+:} false; then :
3248 $as_echo_n "(cached) " >&6
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3275 if test $ac_compiler_gnu = yes; then
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3284 if ${ac_cv_prog_cc_g+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 ac_save_c_werror_flag=$ac_c_werror_flag
3288 ac_c_werror_flag=yes
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 if ac_fn_c_try_compile "$LINENO"; then :
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_c_werror_flag=$ac_save_c_werror_flag
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 if ac_fn_c_try_compile "$LINENO"; then :
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3344 $as_echo "$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3354 if test "$GCC" = yes; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3362 if ${ac_cv_prog_cc_c89+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_cv_prog_cc_c89=no
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_c89=$ac_arg
3426 rm -f core conftest.err conftest.$ac_objext
3427 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 rm -f conftest.$ac_ext
3434 case "x$ac_cv_prog_cc_c89" in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3442 CC="$CC $ac_cv_prog_cc_c89"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 ac_cpp='$CXXCPP $CPPFLAGS'
3458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3461 if test -z "$CXX"; then
3462 if test -n "$CCC"; then
3465 if test -n "$ac_tool_prefix"; then
3466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CXX+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$CXX"; then
3476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 if test -n "$CXX"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3498 $as_echo "$CXX" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3505 test -n "$CXX" && break
3508 if test -z "$CXX"; then
3510 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$ac_ct_CXX"; then
3520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CXX="$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3540 if test -n "$ac_ct_CXX"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3542 $as_echo "$ac_ct_CXX" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$ac_ct_CXX" && break
3552 if test "x$ac_ct_CXX" = x; then
3555 case $cross_compiling:$ac_tool_warned in
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3567 # Provide some information about the compiler.
3568 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3571 for ac_option in --version -v -V -qversion; do
3572 { { ac_try="$ac_compiler $ac_option >&5"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581 if test -s conftest.err; then
3583 ... rest of stderr output deleted ...
3584 10q' conftest.err >conftest.er1
3585 cat conftest.er1 >&5
3587 rm -f conftest.er1 conftest.err
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3594 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3611 if ac_fn_cxx_try_compile "$LINENO"; then :
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3621 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3627 ac_test_CXXFLAGS=${CXXFLAGS+set}
3628 ac_save_CXXFLAGS=$CXXFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3630 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3631 if ${ac_cv_prog_cxx_g+:} false; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3635 ac_cxx_werror_flag=yes
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 if ac_fn_cxx_try_compile "$LINENO"; then :
3650 ac_cv_prog_cxx_g=yes
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_cxx_try_compile "$LINENO"; then :
3667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_cxx_try_compile "$LINENO"; then :
3681 ac_cv_prog_cxx_g=yes
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3691 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3692 if test "$ac_test_CXXFLAGS" = set; then
3693 CXXFLAGS=$ac_save_CXXFLAGS
3694 elif test $ac_cv_prog_cxx_g = yes; then
3695 if test "$GXX" = yes; then
3701 if test "$GXX" = yes; then
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3722 # On Suns, sometimes $CPP names a directory.
3723 if test -n "$CPP" && test -d "$CPP"; then
3726 if test -z "$CPP"; then
3727 if ${ac_cv_prog_CPP+:} false; then :
3728 $as_echo_n "(cached) " >&6
3730 # Double quotes because CPP needs to be expanded
3731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error" is here to catch this case.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3745 # include <limits.h>
3747 # include <assert.h>
3751 if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: fails on valid input.
3757 rm -f conftest.err conftest.i conftest.$ac_ext
3759 # OK, works on sane cases. Now check whether nonexistent headers
3760 # can be detected and how.
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3765 if ac_fn_c_try_cpp "$LINENO"; then :
3766 # Broken: success on invalid input.
3769 # Passes both tests.
3773 rm -f conftest.err conftest.i conftest.$ac_ext
3776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777 rm -f conftest.i conftest.err conftest.$ac_ext
3778 if $ac_preproc_ok; then :
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3791 $as_echo "$CPP" >&6; }
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3804 # include <limits.h>
3806 # include <assert.h>
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: fails on valid input.
3816 rm -f conftest.err conftest.i conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <ac_nonexistent.h>
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3828 # Passes both tests.
3832 rm -f conftest.err conftest.i conftest.$ac_ext
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.i conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3843 See \`config.log' for more details" "$LINENO" 5; }
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3855 if ${ac_cv_path_GREP+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -z "$GREP"; then
3859 ac_path_GREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in grep ggrep; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3869 as_fn_executable_p "$ac_path_GREP" || continue
3870 # Check for GNU ac_path_GREP and select it if it is found.
3871 # Check for GNU $ac_path_GREP
3872 case `"$ac_path_GREP" --version 2>&1` in
3874 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3877 $as_echo_n 0123456789 >"conftest.in"
3880 cat "conftest.in" "conftest.in" >"conftest.tmp"
3881 mv "conftest.tmp" "conftest.in"
3882 cp "conftest.in" "conftest.nl"
3883 $as_echo 'GREP' >> "conftest.nl"
3884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886 as_fn_arith $ac_count + 1 && ac_count=$as_val
3887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_GREP="$ac_path_GREP"
3890 ac_path_GREP_max=$ac_count
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898 $ac_path_GREP_found && break 3
3903 if test -z "$ac_cv_path_GREP"; then
3904 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3907 ac_cv_path_GREP=$GREP
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3912 $as_echo "$ac_cv_path_GREP" >&6; }
3913 GREP="$ac_cv_path_GREP"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3917 $as_echo_n "checking for egrep... " >&6; }
3918 if ${ac_cv_path_EGREP+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3922 then ac_cv_path_EGREP="$GREP -E"
3924 if test -z "$EGREP"; then
3925 ac_path_EGREP_found=false
3926 # Loop through the user's path and test for each of PROGNAME-LIST
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in egrep; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935 as_fn_executable_p "$ac_path_EGREP" || continue
3936 # Check for GNU ac_path_EGREP and select it if it is found.
3937 # Check for GNU $ac_path_EGREP
3938 case `"$ac_path_EGREP" --version 2>&1` in
3940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3943 $as_echo_n 0123456789 >"conftest.in"
3946 cat "conftest.in" "conftest.in" >"conftest.tmp"
3947 mv "conftest.tmp" "conftest.in"
3948 cp "conftest.in" "conftest.nl"
3949 $as_echo 'EGREP' >> "conftest.nl"
3950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952 as_fn_arith $ac_count + 1 && ac_count=$as_val
3953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_EGREP="$ac_path_EGREP"
3956 ac_path_EGREP_max=$ac_count
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 $ac_path_EGREP_found && break 3
3969 if test -z "$ac_cv_path_EGREP"; then
3970 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3973 ac_cv_path_EGREP=$EGREP
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3979 $as_echo "$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3984 $as_echo_n "checking for ANSI C header files... " >&6; }
3985 if ${ac_cv_header_stdc+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004 ac_cv_header_stdc=yes
4006 ac_cv_header_stdc=no
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 if test $ac_cv_header_stdc = yes; then
4011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018 $EGREP "memchr" >/dev/null 2>&1; then :
4021 ac_cv_header_stdc=no
4027 if test $ac_cv_header_stdc = yes; then
4028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035 $EGREP "free" >/dev/null 2>&1; then :
4038 ac_cv_header_stdc=no
4044 if test $ac_cv_header_stdc = yes; then
4045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046 if test "$cross_compiling" = yes; then :
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4057 # define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4076 if ac_fn_c_try_run "$LINENO"; then :
4079 ac_cv_header_stdc=no
4081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4082 conftest.$ac_objext conftest.beam conftest.$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4088 $as_echo "$ac_cv_header_stdc" >&6; }
4089 if test $ac_cv_header_stdc = yes; then
4091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4097 inttypes.h stdint.h unistd.h
4099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4103 cat >>confdefs.h <<_ACEOF
4104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4113 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4114 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4121 if test "$MINIX" = yes; then
4123 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4126 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4129 $as_echo "#define _MINIX 1" >>confdefs.h
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4135 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4136 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4142 # define __EXTENSIONS__ 1
4143 $ac_includes_default
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_safe_to_define___extensions__=yes
4155 ac_cv_safe_to_define___extensions__=no
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4160 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4161 test $ac_cv_safe_to_define___extensions__ = yes &&
4162 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4164 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4166 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4168 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4170 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4175 if test $ac_cv_c_compiler_gnu = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4177 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4178 if ${ac_cv_prog_gcc_traditional+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_pattern="Autoconf.*'x'"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4189 ac_cv_prog_gcc_traditional=yes
4191 ac_cv_prog_gcc_traditional=no
4196 if test $ac_cv_prog_gcc_traditional = no; then
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4204 ac_cv_prog_gcc_traditional=yes
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4211 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4212 if test $ac_cv_prog_gcc_traditional = yes; then
4213 CC="$CC -traditional"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4218 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4219 if ${ac_cv_prog_suncc+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 cat > conftest.c <<EOF
4227 if { ac_try='${CC-cc} -E conftest.c'
4228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4233 ac_cv_prog_suncc=yes
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4239 $as_echo "$ac_cv_prog_suncc" >&6; }
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_RANLIB+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$RANLIB"; then
4249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 RANLIB=$ac_cv_prog_RANLIB
4269 if test -n "$RANLIB"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4271 $as_echo "$RANLIB" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4279 if test -z "$ac_cv_prog_RANLIB"; then
4280 ac_ct_RANLIB=$RANLIB
4281 # Extract the first word of "ranlib", so it can be a program name with args.
4282 set dummy ranlib; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$ac_ct_RANLIB"; then
4289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_ac_ct_RANLIB="ranlib"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4309 if test -n "$ac_ct_RANLIB"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4311 $as_echo "$ac_ct_RANLIB" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4317 if test "x$ac_ct_RANLIB" = x; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4326 RANLIB=$ac_ct_RANLIB
4329 RANLIB="$ac_cv_prog_RANLIB"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4335 $as_echo_n "checking if compiler is clang... " >&6; }
4336 if ${ax_cv_cc_clang+:} false; then :
4337 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4356 if ac_fn_c_try_compile "$LINENO"; then :
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4365 $as_echo "$ax_cv_cc_clang" >&6; }
4367 if test "x$ax_cv_cc_clang" = "xyes"; then
4376 if test "x$GCC" = "xyes"; then
4377 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4382 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4383 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4384 $as_echo_n "(cached) " >&6
4388 CFLAGS_SAVED=$CFLAGS
4389 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 ax_cv_cc_qunused_arguments_flag="yes"
4411 ax_cv_cc_qunused_arguments_flag="no"
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 CFLAGS="$CFLAGS_SAVED"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4425 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4427 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4428 CFLAGS="$CFLAGS -Qunused-arguments"
4429 LDFLAGS="$LDFLAGS -Qunused-arguments"
4432 # Check whether --enable-largefile was given.
4433 if test "${enable_largefile+set}" = set; then :
4434 enableval=$enable_largefile;
4437 if test "$enable_largefile" != no; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4440 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4441 if ${ac_cv_sys_largefile_CC+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_cv_sys_largefile_CC=no
4445 if test "$GCC" != yes; then
4448 # IRIX 6.2 and later do not support large files by default,
4449 # so use the C compiler's -n32 option if that helps.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <sys/types.h>
4453 /* Check that off_t can represent 2**63 - 1 correctly.
4454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4455 since some C++ compilers masquerading as C compilers
4456 incorrectly reject 9223372036854775807. */
4457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4459 && LARGE_OFF_T % 2147483647 == 1)
4469 if ac_fn_c_try_compile "$LINENO"; then :
4472 rm -f core conftest.err conftest.$ac_objext
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_sys_largefile_CC=' -n32'; break
4477 rm -f core conftest.err conftest.$ac_objext
4481 rm -f conftest.$ac_ext
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4485 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4486 if test "$ac_cv_sys_largefile_CC" != no; then
4487 CC=$CC$ac_cv_sys_largefile_CC
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4491 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4492 if ${ac_cv_sys_file_offset_bits+:} false; then :
4493 $as_echo_n "(cached) " >&6
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <sys/types.h>
4499 /* Check that off_t can represent 2**63 - 1 correctly.
4500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4501 since some C++ compilers masquerading as C compilers
4502 incorrectly reject 9223372036854775807. */
4503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4505 && LARGE_OFF_T % 2147483647 == 1)
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_sys_file_offset_bits=no; break
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 #define _FILE_OFFSET_BITS 64
4522 #include <sys/types.h>
4523 /* Check that off_t can represent 2**63 - 1 correctly.
4524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4525 since some C++ compilers masquerading as C compilers
4526 incorrectly reject 9223372036854775807. */
4527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4529 && LARGE_OFF_T % 2147483647 == 1)
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ac_cv_sys_file_offset_bits=64; break
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_sys_file_offset_bits=unknown
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4548 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4549 case $ac_cv_sys_file_offset_bits in #(
4552 cat >>confdefs.h <<_ACEOF
4553 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4558 if test $ac_cv_sys_file_offset_bits = unknown; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4560 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4561 if ${ac_cv_sys_large_files+:} false; then :
4562 $as_echo_n "(cached) " >&6
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <sys/types.h>
4568 /* Check that off_t can represent 2**63 - 1 correctly.
4569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4570 since some C++ compilers masquerading as C compilers
4571 incorrectly reject 9223372036854775807. */
4572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4574 && LARGE_OFF_T % 2147483647 == 1)
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_sys_large_files=no; break
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #define _LARGE_FILES 1
4591 #include <sys/types.h>
4592 /* Check that off_t can represent 2**63 - 1 correctly.
4593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4594 since some C++ compilers masquerading as C compilers
4595 incorrectly reject 9223372036854775807. */
4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4598 && LARGE_OFF_T % 2147483647 == 1)
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_sys_large_files=1; break
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cv_sys_large_files=unknown
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4617 $as_echo "$ac_cv_sys_large_files" >&6; }
4618 case $ac_cv_sys_large_files in #(
4621 cat >>confdefs.h <<_ACEOF
4622 #define _LARGE_FILES $ac_cv_sys_large_files
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4635 if ${ac_cv_c_bigendian+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 ac_cv_c_bigendian=unknown
4639 # See if we're dealing with a universal compiler.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #ifndef __APPLE_CC__
4643 not a universal capable compiler
4648 if ac_fn_c_try_compile "$LINENO"; then :
4650 # Check for potential -arch flags. It is not universal unless
4651 # there are at least two -arch flags with different values.
4654 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4655 if test -n "$ac_prev"; then
4657 i?86 | x86_64 | ppc | ppc64)
4658 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4661 ac_cv_c_bigendian=universal
4667 elif test "x$ac_word" = "x-arch"; then
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 if test $ac_cv_c_bigendian = unknown; then
4674 # See if sys/param.h defines the BYTE_ORDER macro.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <sys/types.h>
4678 #include <sys/param.h>
4683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4693 if ac_fn_c_try_compile "$LINENO"; then :
4694 # It does; now see whether it defined to BIG_ENDIAN or not.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <sys/types.h>
4698 #include <sys/param.h>
4703 #if BYTE_ORDER != BIG_ENDIAN
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_c_bigendian=yes
4714 ac_cv_c_bigendian=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 if test $ac_cv_c_bigendian = unknown; then
4721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 # It does; now see whether it defined to _BIG_ENDIAN or not.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_c_bigendian=yes
4757 ac_cv_c_bigendian=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 if test $ac_cv_c_bigendian = unknown; then
4764 # Compile a test program.
4765 if test "$cross_compiling" = yes; then :
4766 # Try to guess by grepping values from an object file.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 short int ascii_mm[] =
4770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4771 short int ascii_ii[] =
4772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4773 int use_ascii (int i) {
4774 return ascii_mm[i] + ascii_ii[i];
4776 short int ebcdic_ii[] =
4777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4778 short int ebcdic_mm[] =
4779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4780 int use_ebcdic (int i) {
4781 return ebcdic_mm[i] + ebcdic_ii[i];
4788 return use_ascii (foo) == use_ebcdic (foo);
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4795 ac_cv_c_bigendian=yes
4797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4798 if test "$ac_cv_c_bigendian" = unknown; then
4799 ac_cv_c_bigendian=no
4801 # finding both strings is unlikely to happen, but who knows?
4802 ac_cv_c_bigendian=unknown
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 $ac_includes_default
4815 /* Are we little or big endian? From Harbison&Steele. */
4819 char c[sizeof (long int)];
4822 return u.c[sizeof (long int) - 1] == 1;
4828 if ac_fn_c_try_run "$LINENO"; then :
4829 ac_cv_c_bigendian=no
4831 ac_cv_c_bigendian=yes
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4840 $as_echo "$ac_cv_c_bigendian" >&6; }
4841 case $ac_cv_c_bigendian in #(
4843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4853 as_fn_error $? "unknown endianness
4854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4858 # Extract the first word of "gmake", so it can be a program name with args.
4859 set dummy gmake; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_GMAKE+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$GMAKE"; then
4866 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_GMAKE="yes"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4886 GMAKE=$ac_cv_prog_GMAKE
4887 if test -n "$GMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4889 $as_echo "$GMAKE" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4896 if test $GMAKE = no; then
4897 # Extract the first word of "make", so it can be a program name with args.
4898 set dummy make; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_path_MAKE+:} false; then :
4902 $as_echo_n "(cached) " >&6
4906 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4928 MAKE=$ac_cv_path_MAKE
4929 if test -n "$MAKE"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4931 $as_echo "$MAKE" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 # Extract the first word of "gmake", so it can be a program name with args.
4940 set dummy gmake; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_MAKE+:} false; then :
4944 $as_echo_n "(cached) " >&6
4948 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4970 MAKE=$ac_cv_path_MAKE
4971 if test -n "$MAKE"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4973 $as_echo "$MAKE" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4981 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4982 if test -z "$makever"; then
4983 as_fn_error $? "GNU Make is not installed. Please download and install it from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4988 $as_echo_n "checking number of system cores... " >&6; }
4989 if ${ax_cv_system_cores+:} false; then :
4990 $as_echo_n "(cached) " >&6
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999 if test "$cross_compiling" = yes; then :
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5009 # include <windows.h>
5011 # include <sys/param.h>
5012 # include <sys/sysctl.h>
5014 # include <unistd.h>
5017 int main (int argc, char *argv[])
5022 SYSTEM_INFO sysinfo;
5023 GetSystemInfo(&sysinfo);
5025 count = sysinfo.dwNumberOfProcessors;
5032 nm[1] = HW_AVAILCPU;
5033 sysctl(nm, 2, &count, &len, NULL, 0);
5037 sysctl(nm, 2, &count, &len, NULL, 0);
5044 count = sysconf(_SC_NPROCESSORS_ONLN);
5051 if ac_fn_c_try_run "$LINENO"; then :
5052 ax_cv_system_cores=$?
5054 ax_cv_system_cores=$?
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5057 conftest.$ac_objext conftest.beam conftest.$ac_ext
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5069 $as_echo "$ax_cv_system_cores" >&6; }
5074 # Extract the first word of "git", so it can be a program name with args.
5075 set dummy git; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_GIT+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$GIT"; then
5082 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_GIT="yes"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5103 if test -n "$GIT"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5105 $as_echo "$GIT" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5114 # Check whether --enable-strict-dependencies was given.
5115 if test "${enable_strict_dependencies+set}" = set; then :
5116 enableval=$enable_strict_dependencies;
5120 # Check whether --enable-werror was given.
5121 if test "${enable_werror+set}" = set; then :
5122 enableval=$enable_werror; case "$enableval" in
5133 docdir='${datadir}/doc/freeradius'
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5135 $as_echo_n "checking docdir... " >&6; }
5137 # Check whether --with-docdir was given.
5138 if test "${with_docdir+set}" = set; then :
5139 withval=$with_docdir; case "$withval" in
5145 [\\/$]* | ?:[\\/]* )
5149 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5157 $as_echo "$docdir" >&6; }
5158 if test "x$docdir" = xno; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5160 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5163 logdir='${localstatedir}/log/radius'
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5165 $as_echo_n "checking logdir... " >&6; }
5167 # Check whether --with-logdir was given.
5168 if test "${with_logdir+set}" = set; then :
5169 withval=$with_logdir; case "$withval" in
5171 as_fn_error $? "Need logdir" "$LINENO" 5
5175 [\\/$]* | ?:[\\/]* )
5179 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5187 $as_echo "$logdir" >&6; }
5189 radacctdir='${logdir}/radacct'
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5191 $as_echo_n "checking radacctdir... " >&6; }
5193 # Check whether --with-radacctdir was given.
5194 if test "${with_radacctdir+set}" = set; then :
5195 withval=$with_radacctdir; case "$withval" in
5197 as_fn_error $? "Need radacctdir" "$LINENO" 5
5201 [\\/$]* | ?:[\\/]* )
5202 radacctdir="$withval"
5205 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5213 $as_echo "$radacctdir" >&6; }
5215 raddbdir='${sysconfdir}/raddb'
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5217 $as_echo_n "checking raddbdir... " >&6; }
5219 # Check whether --with-raddbdir was given.
5220 if test "${with_raddbdir+set}" = set; then :
5221 withval=$with_raddbdir; case "$withval" in
5223 as_fn_error $? "Need raddbdir" "$LINENO" 5
5227 [\\/$]* | ?:[\\/]* )
5231 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5239 $as_echo "$raddbdir" >&6; }
5241 modconfdir='${raddbdir}/mods-config'
5244 WITH_ASCEND_BINARY=yes
5246 # Check whether --with-ascend-binary was given.
5247 if test "${with_ascend_binary+set}" = set; then :
5248 withval=$with_ascend_binary; case "$withval" in
5252 WITH_ASCEND_BINARY=no
5257 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5259 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5265 # Check whether --with-threads was given.
5266 if test "${with_threads+set}" = set; then :
5267 withval=$with_threads; case "$withval" in
5279 # Check whether --with-tcp was given.
5280 if test "${with_tcp+set}" = set; then :
5281 withval=$with_tcp; case "$withval" in
5290 if test "x$WITH_TCP" = "xyes"; then
5292 $as_echo "#define WITH_TCP 1" >>confdefs.h
5298 # Check whether --with-vmps was given.
5299 if test "${with_vmps+set}" = set; then :
5300 withval=$with_vmps; case "$withval" in
5309 if test "x$WITH_VMPS" = "xyes"; then
5311 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5317 # Check whether --with-dhcp was given.
5318 if test "${with_dhcp+set}" = set; then :
5319 withval=$with_dhcp; case "$withval" in
5328 if test "x$WITH_DHCP" = "xyes"; then
5330 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5336 # Check whether --with-static_modules was given.
5337 if test "${with_static_modules+set}" = set; then :
5338 withval=$with_static_modules;
5339 for i in $withval; do
5340 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5348 # Check whether --with-shared-libs was given.
5349 if test "${with_shared_libs+set}" = set; then :
5350 withval=$with_shared_libs; case "$withval" in
5362 # Check whether --with-modules was given.
5363 if test "${with_modules+set}" = set; then :
5364 withval=$with_modules;
5365 for i in $withval; do
5366 MODULES="$MODULES $i"
5374 # Check whether --with-experimental-modules was given.
5375 if test "${with_experimental_modules+set}" = set; then :
5376 withval=$with_experimental_modules; case "$withval" in
5391 # Check whether --with-udpfromto was given.
5392 if test "${with_udpfromto+set}" = set; then :
5393 withval=$with_udpfromto; case "$withval" in
5404 if test "x$WITH_UDPFROMTO" = "xyes"; then
5406 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5412 # Check whether --with-openssl was given.
5413 if test "${with_openssl+set}" = set; then :
5414 withval=$with_openssl; case "$withval" in
5426 OPENSSL_INCLUDE_DIR=
5428 # Check whether --with-openssl-includes was given.
5429 if test "${with_openssl_includes+set}" = set; then :
5430 withval=$with_openssl_includes; case "$withval" in
5431 *) OPENSSL_INCLUDE_DIR="$withval"
5440 # Check whether --with-openssl-libraries was given.
5441 if test "${with_openssl_libraries+set}" = set; then :
5442 withval=$with_openssl_libraries; case "$withval" in
5443 *) OPENSSL_LIB_DIR="$withval"
5452 # Check whether --with-rlm-FOO-lib-dir was given.
5453 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5454 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5463 # Check whether --with-rlm-FOO-include-dir was given.
5464 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5465 withval=$with_rlm_FOO_include_dir; case "$withval" in
5475 # Extract the first word of "perl", so it can be a program name with args.
5476 set dummy perl; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_path_PERL+:} false; then :
5480 $as_echo_n "(cached) " >&6
5484 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5506 PERL=$ac_cv_path_PERL
5507 if test -n "$PERL"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5509 $as_echo "$PERL" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 if test "x$ac_cv_path_PERL" = "x"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5518 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5520 # Extract the first word of "snmpget", so it can be a program name with args.
5521 set dummy snmpget; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_SNMPGET+:} false; then :
5525 $as_echo_n "(cached) " >&6
5529 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 SNMPGET=$ac_cv_path_SNMPGET
5551 if test -n "$SNMPGET"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5553 $as_echo "$SNMPGET" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5560 if test "x$ac_cv_path_SNMPGET" = "x"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5562 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5565 # Extract the first word of "snmpwalk", so it can be a program name with args.
5566 set dummy snmpwalk; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_SNMPWALK+:} false; then :
5570 $as_echo_n "(cached) " >&6
5574 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 SNMPWALK=$ac_cv_path_SNMPWALK
5596 if test -n "$SNMPWALK"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5598 $as_echo "$SNMPWALK" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5607 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5610 # Extract the first word of "rusers", so it can be a program name with args.
5611 set dummy rusers; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_path_RUSERS+:} false; then :
5615 $as_echo_n "(cached) " >&6
5619 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5641 RUSERS=$ac_cv_path_RUSERS
5642 if test -n "$RUSERS"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5644 $as_echo "$RUSERS" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5652 missing_dir=`cd $ac_aux_dir && pwd`
5653 # expand $ac_aux_dir to an absolute path
5654 am_aux_dir=`cd $ac_aux_dir && pwd`
5656 if test x"${MISSING+set}" != xset; then
5659 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5661 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5664 # Use eval to expand $SHELL
5665 if eval "$MISSING --run true"; then
5666 am_missing_run="$MISSING --run "
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5670 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5674 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5677 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5683 # Extract the first word of "locate", so it can be a program name with args.
5684 set dummy locate; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_LOCATE+:} false; then :
5688 $as_echo_n "(cached) " >&6
5692 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 LOCATE=$ac_cv_path_LOCATE
5714 if test -n "$LOCATE"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5716 $as_echo "$LOCATE" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 # Extract the first word of "dirname", so it can be a program name with args.
5724 set dummy dirname; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_DIRNAME+:} false; then :
5728 $as_echo_n "(cached) " >&6
5732 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 DIRNAME=$ac_cv_path_DIRNAME
5754 if test -n "$DIRNAME"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5756 $as_echo "$DIRNAME" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 # Extract the first word of "grep", so it can be a program name with args.
5764 set dummy grep; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_GREP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5772 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 GREP=$ac_cv_path_GREP
5794 if test -n "$GREP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5796 $as_echo "$GREP" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5806 if test "x$WITH_THREADS" = "xyes"; then
5807 if test $ac_cv_prog_suncc = "yes"; then
5808 CFLAGS="$CFLAGS -mt"
5811 for ac_header in pthread.h
5813 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5814 if test "x$ac_cv_header_pthread_h" = xyes; then :
5815 cat >>confdefs.h <<_ACEOF
5816 #define HAVE_PTHREAD_H 1
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5827 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5828 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5829 $as_echo_n "(cached) " >&6
5831 ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-lpthread $LIBS"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5842 char pthread_create ();
5846 return pthread_create ();
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 ac_cv_lib_pthread_pthread_create=yes
5854 ac_cv_lib_pthread_pthread_create=no
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5861 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5862 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5864 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5865 LIBS="-lpthread $LIBS"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5870 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5871 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 ac_check_lib_save_LIBS=$LIBS
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5879 /* Override any GCC internal prototype to avoid an error.
5880 Use char because int might match the return type of a GCC
5881 builtin and then its argument prototype would still apply. */
5885 char pthread_create ();
5889 return pthread_create ();
5894 if ac_fn_c_try_link "$LINENO"; then :
5895 ac_cv_lib_c_r_pthread_create=yes
5897 ac_cv_lib_c_r_pthread_create=no
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5901 LIBS=$ac_check_lib_save_LIBS
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5904 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5905 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5906 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5918 if test "x$WITH_THREADS" != "xyes"; then
5920 ac_cv_header_pthread_h="no"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5925 $as_echo_n "checking for library containing sem_init... " >&6; }
5926 if ${ac_cv_search_sem_init+:} false; then :
5927 $as_echo_n "(cached) " >&6
5929 ac_func_search_save_LIBS=$LIBS
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5933 /* Override any GCC internal prototype to avoid an error.
5934 Use char because int might match the return type of a GCC
5935 builtin and then its argument prototype would still apply. */
5948 for ac_lib in '' pthread sem posix4 rt semaphore; do
5949 if test -z "$ac_lib"; then
5950 ac_res="none required"
5953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5955 if ac_fn_c_try_link "$LINENO"; then :
5956 ac_cv_search_sem_init=$ac_res
5958 rm -f core conftest.err conftest.$ac_objext \
5960 if ${ac_cv_search_sem_init+:} false; then :
5964 if ${ac_cv_search_sem_init+:} false; then :
5967 ac_cv_search_sem_init=no
5970 LIBS=$ac_func_search_save_LIBS
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5973 $as_echo "$ac_cv_search_sem_init" >&6; }
5974 ac_res=$ac_cv_search_sem_init
5975 if test "$ac_res" != no; then :
5976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5979 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
5985 if test "x$WITH_THREADS" = "xyes"; then
5987 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5993 if ${ac_cv_lib_dl_dlopen+:} false; then :
5994 $as_echo_n "(cached) " >&6
5996 ac_check_lib_save_LIBS=$LIBS
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6001 /* Override any GCC internal prototype to avoid an error.
6002 Use char because int might match the return type of a GCC
6003 builtin and then its argument prototype would still apply. */
6016 if ac_fn_c_try_link "$LINENO"; then :
6017 ac_cv_lib_dl_dlopen=yes
6019 ac_cv_lib_dl_dlopen=no
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_LIBDL 1
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6038 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6039 if ${ac_cv_lib_socket_getsockname+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_check_lib_save_LIBS=$LIBS
6043 LIBS="-lsocket $LIBS"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 /* Override any GCC internal prototype to avoid an error.
6048 Use char because int might match the return type of a GCC
6049 builtin and then its argument prototype would still apply. */
6053 char getsockname ();
6057 return getsockname ();
6062 if ac_fn_c_try_link "$LINENO"; then :
6063 ac_cv_lib_socket_getsockname=yes
6065 ac_cv_lib_socket_getsockname=no
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6072 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6073 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_LIBSOCKET 1
6078 LIBS="-lsocket $LIBS"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6084 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6085 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 ac_check_lib_save_LIBS=$LIBS
6089 LIBS="-lresolv $LIBS"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6093 /* Override any GCC internal prototype to avoid an error.
6094 Use char because int might match the return type of a GCC
6095 builtin and then its argument prototype would still apply. */
6103 return inet_aton ();
6108 if ac_fn_c_try_link "$LINENO"; then :
6109 ac_cv_lib_resolv_inet_aton=yes
6111 ac_cv_lib_resolv_inet_aton=no
6113 rm -f core conftest.err conftest.$ac_objext \
6114 conftest$ac_exeext conftest.$ac_ext
6115 LIBS=$ac_check_lib_save_LIBS
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6118 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6119 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6120 cat >>confdefs.h <<_ACEOF
6121 #define HAVE_LIBRESOLV 1
6124 LIBS="-lresolv $LIBS"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6130 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6131 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 ac_check_lib_save_LIBS=$LIBS
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 /* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
6149 return inet_ntoa ();
6154 if ac_fn_c_try_link "$LINENO"; then :
6155 ac_cv_lib_nsl_inet_ntoa=yes
6157 ac_cv_lib_nsl_inet_ntoa=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_check_lib_save_LIBS
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6164 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6165 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6166 cat >>confdefs.h <<_ACEOF
6167 #define HAVE_LIBNSL 1
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6175 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6176 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6177 $as_echo_n "(cached) " >&6
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lws2_32 $LIBS"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6184 /* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6199 if ac_fn_c_try_link "$LINENO"; then :
6200 ac_cv_lib_ws2_32_htonl=yes
6202 ac_cv_lib_ws2_32_htonl=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6209 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6210 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_LIBWS2_32 1
6215 LIBS="-lws2_32 $LIBS"
6220 smart_try_dir="$pcap_lib_dir"
6223 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6224 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6230 if test "x$smart_try_dir" != "x"; then
6231 for try in $smart_try_dir; do
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6233 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6234 LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 extern char pcap_open_live();
6246 if ac_fn_c_try_link "$LINENO"; then :
6248 smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250 $as_echo "yes" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6263 if test "x$smart_lib" = "x"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6265 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6266 LIBS="-lpcap $old_LIBS"
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 extern char pcap_open_live();
6278 if ac_fn_c_try_link "$LINENO"; then :
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6282 $as_echo "yes" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6293 if test "x$smart_lib" = "x"; then
6296 if test "x$LOCATE" != "x"; then
6298 file=libpcap${libltdl_cv_shlibext}
6300 for x in `${LOCATE} $file 2>/dev/null`; do
6301 base=`echo $x | sed "s%/${file}%%"`
6302 if test "x$x" = "x$base"; then
6306 dir=`${DIRNAME} $x 2>/dev/null`
6307 exclude=`echo ${dir} | ${GREP} /home`
6308 if test "x$exclude" != "x"; then
6312 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6313 if test "x$already" = "x"; then
6319 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6323 if test "x$LOCATE" != "x"; then
6327 for x in `${LOCATE} $file 2>/dev/null`; do
6328 base=`echo $x | sed "s%/${file}%%"`
6329 if test "x$x" = "x$base"; then
6333 dir=`${DIRNAME} $x 2>/dev/null`
6334 exclude=`echo ${dir} | ${GREP} /home`
6335 if test "x$exclude" != "x"; then
6339 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6340 if test "x$already" = "x"; then
6346 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6349 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6351 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6352 LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 extern char pcap_open_live();
6364 if ac_fn_c_try_link "$LINENO"; then :
6366 smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6368 $as_echo "yes" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6381 if test "x$smart_lib" != "x"; then
6382 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6383 LIBS="$smart_lib $old_LIBS"
6384 SMART_LIBS="$smart_lib $SMART_LIBS"
6387 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&5
6389 $as_echo "$as_me: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&2;}
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&5
6391 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&2;}
6393 PCAP_LIBS="${smart_lib}"
6396 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6402 $as_echo_n "checking for a readline compatible library... " >&6; }
6403 if ${vl_cv_lib_readline+:} false; then :
6404 $as_echo_n "(cached) " >&6
6408 for readline_lib in readline edit editline; do
6409 for termcap_lib in "" termcap curses ncurses; do
6410 if test -z "$termcap_lib"; then
6411 TRY_LIB="-l$readline_lib"
6413 TRY_LIB="-l$readline_lib -l$termcap_lib"
6415 LIBS="$ORIG_LIBS $TRY_LIB"
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6419 /* Override any GCC internal prototype to avoid an error.
6420 Use char because int might match the return type of a GCC
6421 builtin and then its argument prototype would still apply. */
6434 if ac_fn_c_try_link "$LINENO"; then :
6435 vl_cv_lib_readline="$TRY_LIB"
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 if test -n "$vl_cv_lib_readline"; then
6443 if test -n "$vl_cv_lib_readline"; then
6447 if test -z "$vl_cv_lib_readline"; then
6448 vl_cv_lib_readline="no"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6454 $as_echo "$vl_cv_lib_readline" >&6; }
6456 if test "$vl_cv_lib_readline" != "no"; then
6457 LIBREADLINE="$vl_cv_lib_readline"
6459 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6461 for ac_header in readline.h readline/readline.h
6463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6464 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6466 cat >>confdefs.h <<_ACEOF
6467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6475 $as_echo_n "checking whether readline supports history... " >&6; }
6476 if ${vl_cv_lib_readline_history+:} false; then :
6477 $as_echo_n "(cached) " >&6
6480 vl_cv_lib_readline_history="no"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6484 /* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
6490 char add_history ();
6494 return add_history ();
6499 if ac_fn_c_try_link "$LINENO"; then :
6500 vl_cv_lib_readline_history="yes"
6502 rm -f core conftest.err conftest.$ac_objext \
6503 conftest$ac_exeext conftest.$ac_ext
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6507 $as_echo "$vl_cv_lib_readline_history" >&6; }
6508 if test "$vl_cv_lib_readline_history" = "yes"; then
6510 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6512 for ac_header in history.h readline/history.h
6514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6517 cat >>confdefs.h <<_ACEOF
6518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6533 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6536 CFLAGS="$CFLAGS -DDARWIN"
6537 LIBS="-framework DirectoryService $LIBS"
6542 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6543 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6545 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6546 if eval \${$as_ac_Header+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_ac_Header=yes"
6566 eval "$as_ac_Header=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 eval ac_res=\$$as_ac_Header
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6574 cat >>confdefs.h <<_ACEOF
6575 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6578 ac_header_dirent=$ac_hdr; break
6582 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6583 if test $ac_header_dirent = dirent.h; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6585 $as_echo_n "checking for library containing opendir... " >&6; }
6586 if ${ac_cv_search_opendir+:} false; then :
6587 $as_echo_n "(cached) " >&6
6589 ac_func_search_save_LIBS=$LIBS
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6593 /* Override any GCC internal prototype to avoid an error.
6594 Use char because int might match the return type of a GCC
6595 builtin and then its argument prototype would still apply. */
6608 for ac_lib in '' dir; do
6609 if test -z "$ac_lib"; then
6610 ac_res="none required"
6613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6615 if ac_fn_c_try_link "$LINENO"; then :
6616 ac_cv_search_opendir=$ac_res
6618 rm -f core conftest.err conftest.$ac_objext \
6620 if ${ac_cv_search_opendir+:} false; then :
6624 if ${ac_cv_search_opendir+:} false; then :
6627 ac_cv_search_opendir=no
6630 LIBS=$ac_func_search_save_LIBS
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6633 $as_echo "$ac_cv_search_opendir" >&6; }
6634 ac_res=$ac_cv_search_opendir
6635 if test "$ac_res" != no; then :
6636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6642 $as_echo_n "checking for library containing opendir... " >&6; }
6643 if ${ac_cv_search_opendir+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 ac_func_search_save_LIBS=$LIBS
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6650 /* Override any GCC internal prototype to avoid an error.
6651 Use char because int might match the return type of a GCC
6652 builtin and then its argument prototype would still apply. */
6665 for ac_lib in '' x; do
6666 if test -z "$ac_lib"; then
6667 ac_res="none required"
6670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 ac_cv_search_opendir=$ac_res
6675 rm -f core conftest.err conftest.$ac_objext \
6677 if ${ac_cv_search_opendir+:} false; then :
6681 if ${ac_cv_search_opendir+:} false; then :
6684 ac_cv_search_opendir=no
6687 LIBS=$ac_func_search_save_LIBS
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6690 $as_echo "$ac_cv_search_opendir" >&6; }
6691 ac_res=$ac_cv_search_opendir
6692 if test "$ac_res" != no; then :
6693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6700 $as_echo_n "checking for ANSI C header files... " >&6; }
6701 if ${ac_cv_header_stdc+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 ac_cv_header_stdc=yes
6722 ac_cv_header_stdc=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 if test $ac_cv_header_stdc = yes; then
6727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6734 $EGREP "memchr" >/dev/null 2>&1; then :
6737 ac_cv_header_stdc=no
6743 if test $ac_cv_header_stdc = yes; then
6744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "free" >/dev/null 2>&1; then :
6754 ac_cv_header_stdc=no
6760 if test $ac_cv_header_stdc = yes; then
6761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6762 if test "$cross_compiling" = yes; then :
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6769 #if ((' ' & 0x0FF) == 0x020)
6770 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6771 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6773 # define ISLOWER(c) \
6774 (('a' <= (c) && (c) <= 'i') \
6775 || ('j' <= (c) && (c) <= 'r') \
6776 || ('s' <= (c) && (c) <= 'z'))
6777 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6780 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6785 for (i = 0; i < 256; i++)
6786 if (XOR (islower (i), ISLOWER (i))
6787 || toupper (i) != TOUPPER (i))
6792 if ac_fn_c_try_run "$LINENO"; then :
6795 ac_cv_header_stdc=no
6797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6798 conftest.$ac_objext conftest.beam conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6804 $as_echo "$ac_cv_header_stdc" >&6; }
6805 if test $ac_cv_header_stdc = yes; then
6807 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6812 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6813 if ${ac_cv_header_time+:} false; then :
6814 $as_echo_n "(cached) " >&6
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6825 if ((struct tm *) 0)
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_header_time=yes
6834 ac_cv_header_time=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6839 $as_echo "$ac_cv_header_time" >&6; }
6840 if test $ac_cv_header_time = yes; then
6842 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6847 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6848 if ${ac_cv_header_sys_wait_h+:} false; then :
6849 $as_echo_n "(cached) " >&6
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #include <sys/types.h>
6854 #include <sys/wait.h>
6856 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6872 if ac_fn_c_try_compile "$LINENO"; then :
6873 ac_cv_header_sys_wait_h=yes
6875 ac_cv_header_sys_wait_h=no
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6880 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6881 if test $ac_cv_header_sys_wait_h = yes; then
6883 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6942 for ac_header in net/if.h
6944 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
6945 #ifdef HAVE_SYS_SOCKET_H
6946 # include <sys/socket.h>
6950 if test "x$ac_cv_header_net_if_h" = xyes; then :
6951 cat >>confdefs.h <<_ACEOF
6952 #define HAVE_NET_IF_H 1
6960 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6963 $as_echo "#define OSFC2 /**/" >>confdefs.h
6967 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6970 $as_echo "#define OSFSIA /**/" >>confdefs.h
6974 if test "x$WITH_OPENSSL" = xyes; then
6976 old_LDFLAGS="$LDFLAGS"
6978 OPENSSL_INCLUDE="-DNO_OPENSSL"
6980 if test "x$OPENSSL_LIB_DIR" != "x"; then
6981 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6985 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6986 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 ac_check_lib_save_LIBS=$LIBS
6990 LIBS="-lcrypto $LIBS"
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6994 /* Override any GCC internal prototype to avoid an error.
6995 Use char because int might match the return type of a GCC
6996 builtin and then its argument prototype would still apply. */
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 ac_cv_lib_crypto_DH_new=yes
7012 ac_cv_lib_crypto_DH_new=no
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 LIBS=$ac_check_lib_save_LIBS
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
7019 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
7020 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
7022 LIBS="-lcrypto $LIBS"
7024 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7027 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7028 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 ac_check_lib_save_LIBS=$LIBS
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7036 /* Override any GCC internal prototype to avoid an error.
7037 Use char because int might match the return type of a GCC
7038 builtin and then its argument prototype would still apply. */
7051 if ac_fn_c_try_link "$LINENO"; then :
7052 ac_cv_lib_ssl_SSL_new=yes
7054 ac_cv_lib_ssl_SSL_new=no
7056 rm -f core conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
7061 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
7062 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
7065 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
7067 if test "x$OPENSSL_LIB_DIR" != "x"; then
7068 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
7070 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
7074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7076 as_fn_error $? "failed linking to libssl
7077 See \`config.log' for more details" "$LINENO" 5; }
7086 old_CPPFLAGS=$CPPFLAGS
7088 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7089 CPPFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CPPFLAGS"
7090 CFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CFLAGS"
7093 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
7105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7108 cat >>confdefs.h <<_ACEOF
7109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7116 as_fn_error $? "failed locating OpenSSL headers
7117 See \`config.log' for more details" "$LINENO" 5; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
7126 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 #include <openssl/crypto.h>
7130 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136 $EGREP "yes" >/dev/null 2>&1; then :
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7139 $as_echo "yes" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7147 as_fn_error $? "OpenSSL version too old
7148 See \`config.log' for more details" "$LINENO" 5; }
7155 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7156 OPENSSL_INCLUDE="-isystem $OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
7158 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
7162 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
7163 if test "$cross_compiling" = yes; then :
7164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7166 as_fn_error $? "cannot run test program while cross compiling
7167 See \`config.log' for more details" "$LINENO" 5; }
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7173 #include <openssl/opensslv.h>
7174 #include <openssl/crypto.h>
7180 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
7183 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
7192 if ac_fn_c_try_run "$LINENO"; then :
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7195 $as_echo "yes" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7203 as_fn_error $? "OpenSSL library version does not match header version
7204 See \`config.log' for more details" "$LINENO" 5; }
7208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7209 conftest.$ac_objext conftest.beam conftest.$ac_ext
7213 if test "x$OPENSSL_LIBS" = x; then
7215 LDFLAGS="$old_LDFLAGS"
7217 if test "x$OPENSSL_INCLUDE" = x; then
7218 CPPFLAGS=$old_CPPFLAGS
7227 if test "x$PCAP_LIBS" = x; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7229 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7231 smart_try_dir="$pcap_include_dir"
7234 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
7235 old_CFLAGS="$CFLAGS"
7239 if test "x$smart_try_dir" != "x"; then
7240 for try in $smart_try_dir; do
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7242 $as_echo_n "checking for pcap.h in $try... " >&6; }
7243 CFLAGS="$old_CFLAGS -isystem $try"
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7256 if ac_fn_c_try_compile "$LINENO"; then :
7258 smart_include="-isystem $try"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7260 $as_echo "yes" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 CFLAGS="$old_CFLAGS"
7275 if test "x$smart_include" = "x"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
7277 $as_echo_n "checking for pcap.h... " >&6; }
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7290 if ac_fn_c_try_compile "$LINENO"; then :
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 if test "x$smart_include" = "x"; then
7310 if test "x$LOCATE" != "x"; then
7314 for x in `${LOCATE} $file 2>/dev/null`; do
7315 base=`echo $x | sed "s%/${file}%%"`
7316 if test "x$x" = "x$base"; then
7320 dir=`${DIRNAME} $x 2>/dev/null`
7321 exclude=`echo ${dir} | ${GREP} /home`
7322 if test "x$exclude" != "x"; then
7326 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7327 if test "x$already" = "x"; then
7333 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7335 for try in $smart_include_dir /usr/local/include /opt/include; do
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7337 $as_echo_n "checking for pcap.h in $try... " >&6; }
7338 CFLAGS="$old_CFLAGS -isystem $try"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7351 if ac_fn_c_try_compile "$LINENO"; then :
7353 smart_include="-isystem $try"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7355 $as_echo "yes" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 CFLAGS="$old_CFLAGS"
7370 if test "x$smart_include" != "x"; then
7371 eval "ac_cv_header_$ac_safe=yes"
7372 CFLAGS="$old_CFLAGS $smart_include"
7373 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7376 if test "x$ac_cv_header_pcap_h" != "xyes"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&5
7378 $as_echo "$as_me: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&2;}
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&5
7380 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&2;}
7383 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7387 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7388 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 ac_check_lib_save_LIBS=$LIBS
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7396 /* Override any GCC internal prototype to avoid an error.
7397 Use char because int might match the return type of a GCC
7398 builtin and then its argument prototype would still apply. */
7402 char pcap_fopen_offline ();
7406 return pcap_fopen_offline ();
7411 if ac_fn_c_try_link "$LINENO"; then :
7412 ac_cv_lib_pcap_pcap_fopen_offline=yes
7414 ac_cv_lib_pcap_pcap_fopen_offline=no
7416 rm -f core conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7418 LIBS=$ac_check_lib_save_LIBS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7421 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7422 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7425 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7433 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7434 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7435 $as_echo_n "(cached) " >&6
7437 ac_check_lib_save_LIBS=$LIBS
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7442 /* Override any GCC internal prototype to avoid an error.
7443 Use char because int might match the return type of a GCC
7444 builtin and then its argument prototype would still apply. */
7448 char pcap_dump_fopen ();
7452 return pcap_dump_fopen ();
7457 if ac_fn_c_try_link "$LINENO"; then :
7458 ac_cv_lib_pcap_pcap_dump_fopen=yes
7460 ac_cv_lib_pcap_pcap_dump_fopen=no
7462 rm -f core conftest.err conftest.$ac_objext \
7463 conftest$ac_exeext conftest.$ac_ext
7464 LIBS=$ac_check_lib_save_LIBS
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7467 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7468 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7471 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7482 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7483 if test "x$ac_cv_type_off_t" = xyes; then :
7487 cat >>confdefs.h <<_ACEOF
7488 #define off_t long int
7493 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7494 if test "x$ac_cv_type_pid_t" = xyes; then :
7498 cat >>confdefs.h <<_ACEOF
7504 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7505 if test "x$ac_cv_type_size_t" = xyes; then :
7509 cat >>confdefs.h <<_ACEOF
7510 #define size_t unsigned int
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7516 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7517 if ${ac_cv_type_uid_t+:} false; then :
7518 $as_echo_n "(cached) " >&6
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <sys/types.h>
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "uid_t" >/dev/null 2>&1; then :
7527 ac_cv_type_uid_t=yes
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7535 $as_echo "$ac_cv_type_uid_t" >&6; }
7536 if test $ac_cv_type_uid_t = no; then
7538 $as_echo "#define uid_t int" >>confdefs.h
7541 $as_echo "#define gid_t int" >>confdefs.h
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7548 $as_echo_n "checking for socklen_t... " >&6; }
7549 if ${ac_cv_type_socklen_t+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 ac_cv_type_socklen_t=no
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #ifdef HAVE_SYS_TYPES_H
7556 # include <sys/types.h>
7559 #ifdef HAVE_SYS_SOCKET_H
7560 # include <sys/socket.h>
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 ac_cv_type_socklen_t=yes
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7579 $as_echo "$ac_cv_type_socklen_t" >&6; }
7581 if test "$ac_cv_type_socklen_t" != "yes"; then
7583 $as_echo "#define socklen_t int" >>confdefs.h
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7590 $as_echo_n "checking for uint8_t... " >&6; }
7591 if ${ac_cv_type_uint8_t+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 ac_cv_type_uint8_t=no
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #ifdef HAVE_INTTYPES_H
7598 # include <inttypes.h>
7601 #ifdef HAVE_STDINT_H
7602 # include <stdint.h>
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_type_uint8_t=yes
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7621 $as_echo "$ac_cv_type_uint8_t" >&6; }
7623 if test "$ac_cv_type_uint8_t" != "yes"; then
7625 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7632 $as_echo_n "checking for uint16_t... " >&6; }
7633 if ${ac_cv_type_uint16_t+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 ac_cv_type_uint16_t=no
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #ifdef HAVE_INTTYPES_H
7640 # include <inttypes.h>
7643 #ifdef HAVE_STDINT_H
7644 # include <stdint.h>
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656 ac_cv_type_uint16_t=yes
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7663 $as_echo "$ac_cv_type_uint16_t" >&6; }
7665 if test "$ac_cv_type_uint16_t" != "yes"; then
7667 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7674 $as_echo_n "checking for uint32_t... " >&6; }
7675 if ${ac_cv_type_uint32_t+:} false; then :
7676 $as_echo_n "(cached) " >&6
7678 ac_cv_type_uint32_t=no
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #ifdef HAVE_INTTYPES_H
7682 # include <inttypes.h>
7685 #ifdef HAVE_STDINT_H
7686 # include <stdint.h>
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 ac_cv_type_uint32_t=yes
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7705 $as_echo "$ac_cv_type_uint32_t" >&6; }
7707 if test "$ac_cv_type_uint32_t" != "yes"; then
7709 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7714 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7715 #ifdef HAVE_NETINET_IN_H
7716 # include <netinet/in.h>
7721 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7723 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7728 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7729 #ifdef HAVE_NETINET_IN_H
7730 # include <netinet/in.h>
7733 #ifdef HAVE_SYS_SOCKET_H
7734 # include <sys/socket.h>
7738 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7740 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7745 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7746 #ifdef HAVE_NETINET_IN_H
7747 # include <netinet/in.h>
7751 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7753 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7758 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7759 #ifdef HAVE_SYS_TYPES_H
7760 # include <sys/types.h>
7763 #ifdef HAVE_SYS_SOCKET_H
7764 # include <sys/socket.h>
7773 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7775 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7818 cat >>confdefs.h <<_ACEOF
7819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7827 $as_echo_n "checking return type of signal handlers... " >&6; }
7828 if ${ac_cv_type_signal+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <sys/types.h>
7839 return *(signal (0, 0)) (0) == 1;
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845 ac_cv_type_signal=int
7847 ac_cv_type_signal=void
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7852 $as_echo "$ac_cv_type_signal" >&6; }
7854 cat >>confdefs.h <<_ACEOF
7855 #define RETSIGTYPE $ac_cv_type_signal
7860 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7863 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7870 #ifdef HAVE_STDDEF_H
7874 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7880 int foo = offsetof(struct utmpx, ut_xtime)
7885 if ac_fn_c_try_compile "$LINENO"; then :
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7893 if test "x$has_element" != "x"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7903 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7905 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7912 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7918 #include <netinet/in.h>
7919 #ifdef HAVE_STDDEF_H
7923 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7929 int foo = offsetof(struct in_pktinfo, ipi_addr)
7934 if ac_fn_c_try_compile "$LINENO"; then :
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7942 if test "x$has_element" != "x"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944 $as_echo "yes" >&6; }
7945 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7952 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7954 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7960 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 #include <netinet/in.h>
7967 #ifdef HAVE_STDDEF_H
7971 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7977 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7982 if ac_fn_c_try_compile "$LINENO"; then :
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7990 if test "x$has_element" != "x"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7993 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
8000 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
8002 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8008 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8009 if ${ac_cv_c_const+:} false; then :
8010 $as_echo_n "(cached) " >&6
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8020 /* Ultrix mips cc rejects this sort of thing. */
8021 typedef int charset[2];
8022 const charset cs = { 0, 0 };
8023 /* SunOS 4.1.1 cc rejects this. */
8024 char const *const *pcpcc;
8026 /* NEC SVR4.0.2 mips cc rejects this. */
8027 struct point {int x, y;};
8028 static struct point const zero = {0,0};
8029 /* AIX XL C 1.02.0.0 rejects this.
8030 It does not let you subtract one const X* pointer from another in
8031 an arm of an if-expression whose if-part is not a constant
8033 const char *g = "string";
8034 pcpcc = &g + (g ? g-g : 0);
8035 /* HPUX 7.0 cc rejects these. */
8037 ppc = (char**) pcpcc;
8038 pcpcc = (char const *const *) ppc;
8039 { /* SCO 3.2v4 cc rejects this sort of thing. */
8042 char const *s = 0 ? (char *) 0 : (char const *) 0;
8047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8049 const int *foo = &x[0];
8052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8053 typedef const int *iptr;
8057 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8059 struct s { int j; const int *ap[3]; } bx;
8060 struct s *b = &bx; b->j = 5;
8062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8066 return !cs[0] && !zero.x;
8073 if ac_fn_c_try_compile "$LINENO"; then :
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8081 $as_echo "$ac_cv_c_const" >&6; }
8082 if test $ac_cv_c_const = no; then
8084 $as_echo "#define const /**/" >>confdefs.h
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
8090 $as_echo_n "checking type of OS... " >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
8093 $as_echo "$OS" >&6; }
8094 if test "$OS" = "OS/2"; then
8101 if test "x$developer" = "xyes"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
8103 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
8107 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
8108 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
8109 $as_echo_n "(cached) " >&6
8113 CFLAGS_SAVED=$CFLAGS
8114 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 ax_cv_cc_wdocumentation_flag="yes"
8136 ax_cv_cc_wdocumentation_flag="no"
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 ac_cpp='$CPP $CPPFLAGS'
8141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146 CFLAGS="$CFLAGS_SAVED"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
8150 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
8152 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
8153 devflags="-Wdocumentation"
8156 if test "x$GCC" = "xyes"; then
8157 devflags="$devflags -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wno-cast-align -Wformat-nonliteral -Wformat-security -Wformat=2 -DWITH_VERIFY_PTR=1"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
8162 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
8164 CFLAGS="$CFLAGS $devflags"
8165 if test "x$EXPERIMENTAL" != "xno"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
8167 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
8172 CFLAGS="$CFLAGS -DNDEBUG"
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
8177 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
8178 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8182 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
8192 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
8194 cat >>confdefs.h <<_ACEOF
8195 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
8202 $as_echo_n "checking for __thread support in compiler... " >&6; }
8203 if test "$cross_compiling" = yes; then :
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8209 static __thread int val;
8210 int main(int argc, char **argv) {
8217 if ac_fn_c_try_run "$LINENO"; then :
8222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8223 conftest.$ac_objext conftest.beam conftest.$ac_ext
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
8227 $as_echo "$have_tls" >&6; }
8228 if test "x$have_tls" = "xyes"; then
8230 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
8238 # Check whether --with-talloc-include-dir was given.
8239 if test "${with_talloc_include_dir+set}" = set; then :
8240 withval=$with_talloc_include_dir; case "$withval" in
8242 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
8247 talloc_include_dir="$withval"
8255 # Check whether --with-talloc-lib-dir was given.
8256 if test "${with_talloc_lib_dir+set}" = set; then :
8257 withval=$with_talloc_lib_dir; case "$withval" in
8259 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
8264 talloc_lib_dir="$withval"
8272 # Check whether --with-pcap-include-dir was given.
8273 if test "${with_pcap_include_dir+set}" = set; then :
8274 withval=$with_pcap_include_dir; case "$withval" in
8276 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
8281 pcap_include_dir="$withval"
8289 # Check whether --with-pcap-lib-dir was given.
8290 if test "${with_pcap_lib_dir+set}" = set; then :
8291 withval=$with_pcap_lib_dir; case "$withval" in
8293 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
8298 pcap_lib_dir="$withval"
8304 smart_try_dir="$talloc_include_dir"
8307 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
8308 old_CFLAGS="$CFLAGS"
8312 if test "x$smart_try_dir" != "x"; then
8313 for try in $smart_try_dir; do
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8315 $as_echo_n "checking for talloc.h in $try... " >&6; }
8316 CFLAGS="$old_CFLAGS -isystem $try"
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8329 if ac_fn_c_try_compile "$LINENO"; then :
8331 smart_include="-isystem $try"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 $as_echo "yes" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 CFLAGS="$old_CFLAGS"
8348 if test "x$smart_include" = "x"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
8350 $as_echo_n "checking for talloc.h... " >&6; }
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8363 if ac_fn_c_try_compile "$LINENO"; then :
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8367 $as_echo "yes" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 if test "x$smart_include" = "x"; then
8383 if test "x$LOCATE" != "x"; then
8387 for x in `${LOCATE} $file 2>/dev/null`; do
8388 base=`echo $x | sed "s%/${file}%%"`
8389 if test "x$x" = "x$base"; then
8393 dir=`${DIRNAME} $x 2>/dev/null`
8394 exclude=`echo ${dir} | ${GREP} /home`
8395 if test "x$exclude" != "x"; then
8399 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8400 if test "x$already" = "x"; then
8406 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8408 for try in $smart_include_dir /usr/local/include /opt/include; do
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8410 $as_echo_n "checking for talloc.h in $try... " >&6; }
8411 CFLAGS="$old_CFLAGS -isystem $try"
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8424 if ac_fn_c_try_compile "$LINENO"; then :
8426 smart_include="-isystem $try"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8428 $as_echo "yes" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 CFLAGS="$old_CFLAGS"
8443 if test "x$smart_include" != "x"; then
8444 eval "ac_cv_header_$ac_safe=yes"
8445 CFLAGS="$old_CFLAGS $smart_include"
8446 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8449 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8451 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8452 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8455 smart_try_dir="$talloc_lib_dir"
8458 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8459 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8465 if test "x$smart_try_dir" != "x"; then
8466 for try in $smart_try_dir; do
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8468 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8469 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 extern char _talloc();
8481 if ac_fn_c_try_link "$LINENO"; then :
8483 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 $as_echo "yes" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8498 if test "x$smart_lib" = "x"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8500 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8501 LIBS="-ltalloc $old_LIBS"
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 extern char _talloc();
8513 if ac_fn_c_try_link "$LINENO"; then :
8515 smart_lib="-ltalloc"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8517 $as_echo "yes" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8528 if test "x$smart_lib" = "x"; then
8531 if test "x$LOCATE" != "x"; then
8533 file=libtalloc${libltdl_cv_shlibext}
8535 for x in `${LOCATE} $file 2>/dev/null`; do
8536 base=`echo $x | sed "s%/${file}%%"`
8537 if test "x$x" = "x$base"; then
8541 dir=`${DIRNAME} $x 2>/dev/null`
8542 exclude=`echo ${dir} | ${GREP} /home`
8543 if test "x$exclude" != "x"; then
8547 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8548 if test "x$already" = "x"; then
8554 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8558 if test "x$LOCATE" != "x"; then
8562 for x in `${LOCATE} $file 2>/dev/null`; do
8563 base=`echo $x | sed "s%/${file}%%"`
8564 if test "x$x" = "x$base"; then
8568 dir=`${DIRNAME} $x 2>/dev/null`
8569 exclude=`echo ${dir} | ${GREP} /home`
8570 if test "x$exclude" != "x"; then
8574 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8575 if test "x$already" = "x"; then
8581 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8584 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8586 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8587 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 extern char _talloc();
8599 if ac_fn_c_try_link "$LINENO"; then :
8601 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8603 $as_echo "yes" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8616 if test "x$smart_lib" != "x"; then
8617 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8618 LIBS="$smart_lib $old_LIBS"
8619 SMART_LIBS="$smart_lib $SMART_LIBS"
8622 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8624 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8625 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8629 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8630 if ${ac_cv_lib_crypt_crypt+:} false; then :
8631 $as_echo_n "(cached) " >&6
8633 ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-lcrypt $LIBS"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 ac_cv_lib_crypt_crypt=yes
8656 ac_cv_lib_crypt_crypt=no
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 LIBS=$ac_check_lib_save_LIBS
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8663 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8664 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8670 if test "$CRYPTLIB" != ""; then
8672 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8675 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8676 if test "x$ac_cv_func_crypt" = xyes; then :
8678 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8685 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8686 if ${ac_cv_lib_cipher_setkey+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lcipher $LIBS"
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8709 if ac_fn_c_try_link "$LINENO"; then :
8710 ac_cv_lib_cipher_setkey=yes
8712 ac_cv_lib_cipher_setkey=no
8714 rm -f core conftest.err conftest.$ac_objext \
8715 conftest$ac_exeext conftest.$ac_ext
8716 LIBS=$ac_check_lib_save_LIBS
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8719 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8720 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8721 CRYPTLIB="${CRYPTLIB} -lcipher"
8730 # Check whether --with-rlm-pcre-lib-dir was given.
8731 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8732 withval=$with_rlm_pcre_lib_dir; case "$withval" in
8734 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8739 pcre_lib_dir="$withval"
8748 # Check whether --with-rlm-pcre-include-dir was given.
8749 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8750 withval=$with_rlm_pcre_include_dir; case "$withval" in
8752 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8757 pcre_include_dir="$withval"
8768 smart_try_dir=$pcre_include_dir
8771 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8772 old_CFLAGS="$CFLAGS"
8776 if test "x$smart_try_dir" != "x"; then
8777 for try in $smart_try_dir; do
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8779 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8780 CFLAGS="$old_CFLAGS -isystem $try"
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8784 #include <pcreposix.h>
8793 if ac_fn_c_try_compile "$LINENO"; then :
8795 smart_include="-isystem $try"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8797 $as_echo "yes" >&6; }
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 CFLAGS="$old_CFLAGS"
8812 if test "x$smart_include" = "x"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8814 $as_echo_n "checking for pcreposix.h... " >&6; }
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8818 #include <pcreposix.h>
8827 if ac_fn_c_try_compile "$LINENO"; then :
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8831 $as_echo "yes" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 if test "x$smart_include" = "x"; then
8847 if test "x$LOCATE" != "x"; then
8851 for x in `${LOCATE} $file 2>/dev/null`; do
8852 base=`echo $x | sed "s%/${file}%%"`
8853 if test "x$x" = "x$base"; then
8857 dir=`${DIRNAME} $x 2>/dev/null`
8858 exclude=`echo ${dir} | ${GREP} /home`
8859 if test "x$exclude" != "x"; then
8863 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8864 if test "x$already" = "x"; then
8870 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8872 for try in $smart_include_dir /usr/local/include /opt/include; do
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8874 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8875 CFLAGS="$old_CFLAGS -isystem $try"
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8879 #include <pcreposix.h>
8888 if ac_fn_c_try_compile "$LINENO"; then :
8890 smart_include="-isystem $try"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8892 $as_echo "yes" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 CFLAGS="$old_CFLAGS"
8907 if test "x$smart_include" != "x"; then
8908 eval "ac_cv_header_$ac_safe=yes"
8909 CFLAGS="$old_CFLAGS $smart_include"
8910 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8913 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8915 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8918 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8923 LIBS="-lpcre -lpcreposix $LIBS"
8929 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8930 old_CFLAGS="$CFLAGS"
8934 if test "x$smart_try_dir" != "x"; then
8935 for try in $smart_try_dir; do
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8937 $as_echo_n "checking for regex.h in $try... " >&6; }
8938 CFLAGS="$old_CFLAGS -isystem $try"
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8951 if ac_fn_c_try_compile "$LINENO"; then :
8953 smart_include="-isystem $try"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8955 $as_echo "yes" >&6; }
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 CFLAGS="$old_CFLAGS"
8970 if test "x$smart_include" = "x"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8972 $as_echo_n "checking for regex.h... " >&6; }
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8985 if ac_fn_c_try_compile "$LINENO"; then :
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989 $as_echo "yes" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002 if test "x$smart_include" = "x"; then
9005 if test "x$LOCATE" != "x"; then
9009 for x in `${LOCATE} $file 2>/dev/null`; do
9010 base=`echo $x | sed "s%/${file}%%"`
9011 if test "x$x" = "x$base"; then
9015 dir=`${DIRNAME} $x 2>/dev/null`
9016 exclude=`echo ${dir} | ${GREP} /home`
9017 if test "x$exclude" != "x"; then
9021 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
9022 if test "x$already" = "x"; then
9028 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
9030 for try in $smart_include_dir /usr/local/include /opt/include; do
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
9032 $as_echo_n "checking for regex.h in $try... " >&6; }
9033 CFLAGS="$old_CFLAGS -isystem $try"
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9046 if ac_fn_c_try_compile "$LINENO"; then :
9048 smart_include="-isystem $try"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9050 $as_echo "yes" >&6; }
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 CFLAGS="$old_CFLAGS"
9065 if test "x$smart_include" != "x"; then
9066 eval "ac_cv_header_$ac_safe=yes"
9067 CFLAGS="$old_CFLAGS $smart_include"
9068 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
9071 if test "x$ac_cv_header_regex_h" = "xyes"; then
9073 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9086 $EGREP "yes" >/dev/null 2>&1; then :
9088 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
9102 $as_echo "#define GNUSTYLE 1" >>confdefs.h
9106 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
9110 $as_echo "#define BSDSTYLE 3" >>confdefs.h
9113 gethostbyaddrrstyle=""
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
9115 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
9118 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
9124 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
9133 if test $ac_have_decl = 1; then :
9138 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9140 gethostbyaddrrstyle=BSD
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
9142 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
9149 if test "x$gethostbyaddrrstyle" = "x"; then
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9159 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
9164 if ac_fn_c_try_link "$LINENO"; then :
9167 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
9169 gethostbyaddrrstyle=GNU
9173 rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9177 if test "x$gethostbyaddrrstyle" = "x"; then
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9187 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
9192 if ac_fn_c_try_link "$LINENO"; then :
9195 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
9197 gethostbyaddrrstyle=SYSV
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9206 if test "x$gethostbyaddrrstyle" = "x"; then
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9216 gethostbyaddr(NULL, 0, 0)
9221 if ac_fn_c_try_link "$LINENO"; then :
9224 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9226 gethostbyaddrrstyle=BSD
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9234 if test "x$gethostbyaddrrstyle" = "x"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9236 $as_echo "none! It must not exist, here." >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
9239 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
9242 if test "x$gethostbyaddrrstyle" = "xBSD"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
9244 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
9247 gethostbynamerstyle=""
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
9249 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9259 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
9264 if ac_fn_c_try_link "$LINENO"; then :
9267 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
9269 gethostbynamerstyle=GNU
9273 rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9276 if test "x$gethostbynamerstyle" = "x"; then
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9286 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
9291 if ac_fn_c_try_link "$LINENO"; then :
9294 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
9296 gethostbynamerstyle=SYSV
9300 rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9304 if test "x$gethostbynamerstyle" = "x"; then
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9319 if ac_fn_c_try_link "$LINENO"; then :
9322 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
9324 gethostbynamerstyle=BSD
9328 rm -f core conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9332 if test "x$gethostbynamerstyle" = "x"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9334 $as_echo "none! It must not exist, here." >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
9337 $as_echo "${gethostbynamerstyle}-style" >&6; }
9340 if test "x$gethostbynamerstyle" = "xBSD"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
9342 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
9346 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
9349 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
9353 $as_echo_n "checking ctime_r() syntax... " >&6; }
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9362 ctime_r(NULL, NULL, 0)
9367 if ac_fn_c_try_link "$LINENO"; then :
9370 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
9372 ctimerstyle="SOLARIS"
9376 rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9379 if test "x$ctimerstyle" = "x"; then
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9393 if ac_fn_c_try_link "$LINENO"; then :
9396 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9406 if test "x$ctimerstyle" = "x"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9408 $as_echo "none! It must not exist, here." >&6; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
9411 $as_echo "${ctimerstyle}-style" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
9421 $as_echo "top_builddir=$top_builddir" >&6; }
9426 if test "x$EXPERIMENTAL" = "xyes"; then
9427 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
9428 MODULES="$MODULES $foo"
9431 for foo in `cat "${srcdir}"/src/modules/stable`; do
9432 MODULES="$MODULES $foo"
9437 for bar in $MODULES; do
9438 if test -f "${srcdir}"/src/modules/$bar/configure; then
9439 mysubdirs="$mysubdirs src/modules/$bar"
9445 subdirs="$subdirs $mysubdirs"
9449 if test "x$werror" == "xyes"; then
9450 CFLAGS="-Werror $CFLAGS"
9453 ac_config_commands="$ac_config_commands stamp-h"
9455 ac_config_commands="$ac_config_commands build-radpaths-h"
9457 ac_config_commands="$ac_config_commands main-chmod"
9459 ac_config_commands="$ac_config_commands scripts-chmod"
9466 USE_STATIC_LIBS="yes"
9471 unset ac_cv_env_LIBS_set
9472 unset ac_cv_env_LIBS_value
9474 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/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
9476 cat >confcache <<\_ACEOF
9477 # This file is a shell script that caches the results of configure
9478 # tests run on this system so they can be shared between configure
9479 # scripts and configure runs, see configure's option --config-cache.
9480 # It is not useful on other systems. If it contains results you don't
9481 # want to keep, you may remove or edit it.
9483 # config.status only pays attention to the cache file if you give it
9484 # the --recheck option to rerun configure.
9486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9492 # The following way of writing the cache mishandles newlines in values,
9493 # but we know of no workaround that is simple, portable, and efficient.
9494 # So, we kill variables containing newlines.
9495 # Ultrix sh set writes to stderr and can't be redirected directly,
9496 # and sets the high bit in the cache file unless we assign to the vars.
9498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9499 eval ac_val=\$$ac_var
9503 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9507 _ | IFS | as_nl) ;; #(
9508 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9509 *) { eval $ac_var=; unset $ac_var;} ;;
9515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9516 *${as_nl}ac_space=\ *)
9517 # `set' does not quote correctly, so add quotes: double-quote
9518 # substitution turns \\\\ into \\, and sed turns \\ into \.
9521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9524 # `set' quotes correctly as required by POSIX, so do not add quotes.
9525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9539 if test -w "$cache_file"; then
9540 if test "x$cache_file" != "x/dev/null"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9542 $as_echo "$as_me: updating cache $cache_file" >&6;}
9543 if test ! -f "$cache_file" || test -h "$cache_file"; then
9544 cat confcache >"$cache_file"
9546 case $cache_file in #(
9548 mv -f confcache "$cache_file"$$ &&
9549 mv -f "$cache_file"$$ "$cache_file" ;; #(
9551 mv -f confcache "$cache_file" ;;
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9557 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9563 # Let make expand exec_prefix.
9564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9566 DEFS=-DHAVE_CONFIG_H
9571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9572 # 1. Remove the extension, and $U if already installed.
9573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9574 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9576 # will be set to the directory where LIBOBJS objects are built.
9577 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9578 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9582 LTLIBOBJS=$ac_ltlibobjs
9587 : "${CONFIG_STATUS=./config.status}"
9589 ac_clean_files_save=$ac_clean_files
9590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9596 # Generated by $as_me.
9597 # Run this file to recreate the current configuration.
9598 # Compiler output produced by configure, useful for debugging
9599 # configure, is in config.log if it exists.
9605 SHELL=\${CONFIG_SHELL-$SHELL}
9608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9609 ## -------------------- ##
9610 ## M4sh Initialization. ##
9611 ## -------------------- ##
9613 # Be more Bourne compatible
9614 DUALCASE=1; export DUALCASE # for MKS sh
9615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9619 # is contrary to our usage. Disable this feature.
9620 alias -g '${1+"$@"}'='"$@"'
9621 setopt NO_GLOB_SUBST
9623 case `(set -o) 2>/dev/null` in #(
9635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9639 # Prefer a ksh shell builtin over an external printf program on Solaris,
9640 # but without wasting forks for bash or zsh.
9641 if test -z "$BASH_VERSION$ZSH_VERSION" \
9642 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9643 as_echo='print -r --'
9644 as_echo_n='print -rn --'
9645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9646 as_echo='printf %s\n'
9647 as_echo_n='printf %s'
9649 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9650 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9651 as_echo_n='/usr/ucb/echo -n'
9653 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9654 as_echo_n_body='eval
9658 expr "X$arg" : "X\\(.*\\)$as_nl";
9659 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9661 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9663 export as_echo_n_body
9664 as_echo_n='sh -c $as_echo_n_body as_echo'
9667 as_echo='sh -c $as_echo_body as_echo'
9670 # The user is always right.
9671 if test "${PATH_SEPARATOR+set}" != set; then
9673 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9674 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9681 # We need space, tab and new line, in precisely that order. Quoting is
9682 # there to prevent editors from complaining about space-tab.
9683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9684 # splitting by setting IFS to empty value.)
9687 # Find who we are. Look in the path if we contain no directory separator.
9690 *[\\/]* ) as_myself=$0 ;;
9691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9702 # We did not find ourselves, most probably we were run as `sh COMMAND'
9703 # in which case we are not to be found in the path.
9704 if test "x$as_myself" = x; then
9707 if test ! -f "$as_myself"; then
9708 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9712 # Unset variables that we do not need and which cause bugs (e.g. in
9713 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9714 # suppresses any "Segmentation fault" message there. '((' could
9715 # trigger a bug in pdksh 5.2.14.
9716 for as_var in BASH_ENV ENV MAIL MAILPATH
9717 do eval test x\${$as_var+set} = xset \
9718 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9734 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9735 # ----------------------------------------
9736 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9737 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9738 # script with STATUS, using 1 if that was 0.
9741 as_status=$1; test $as_status -eq 0 && as_status=1
9743 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9744 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9746 $as_echo "$as_me: error: $2" >&2
9747 as_fn_exit $as_status
9751 # as_fn_set_status STATUS
9752 # -----------------------
9753 # Set $? to STATUS, without forking.
9757 } # as_fn_set_status
9761 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9771 # Portably unset VAR.
9774 { eval $1=; unset $1;}
9776 as_unset=as_fn_unset
9777 # as_fn_append VAR VALUE
9778 # ----------------------
9779 # Append the text in VALUE to the end of the definition contained in VAR. Take
9780 # advantage of any shell optimizations that allow amortized linear growth over
9781 # repeated appends, instead of the typical quadratic growth present in naive
9783 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9784 eval 'as_fn_append ()
9795 # as_fn_arith ARG...
9796 # ------------------
9797 # Perform arithmetic evaluation on the ARGs, and store the result in the
9798 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9799 # must be portable across $(()) and expr.
9800 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9801 eval 'as_fn_arith ()
9808 as_val=`expr "$@" || test $? -eq 1`
9813 if expr a : '\(a\)' >/dev/null 2>&1 &&
9814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9821 as_basename=basename
9826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9832 as_me=`$as_basename -- "$0" ||
9833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9834 X"$0" : 'X\(//\)$' \| \
9835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9837 sed '/^.*\/\([^/][^/]*\)\/*$/{
9851 # Avoid depending upon Character Ranges.
9852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9855 as_cr_digits='0123456789'
9856 as_cr_alnum=$as_cr_Letters$as_cr_digits
9858 ECHO_C= ECHO_N= ECHO_T=
9859 case `echo -n x` in #(((((
9861 case `echo 'xy\c'` in
9862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9871 rm -f conf$$ conf$$.exe conf$$.file
9872 if test -d conf$$.dir; then
9873 rm -f conf$$.dir/conf$$.file
9876 mkdir conf$$.dir 2>/dev/null
9878 if (echo >conf$$.file) 2>/dev/null; then
9879 if ln -s conf$$.file conf$$ 2>/dev/null; then
9881 # ... but there are two gotchas:
9882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9884 # In both cases, we have to default to `cp -pR'.
9885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9887 elif ln conf$$.file conf$$ 2>/dev/null; then
9895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9896 rmdir conf$$.dir 2>/dev/null
9901 # Create "$as_dir" as a directory, including parents if necessary.
9906 -*) as_dir=./$as_dir;;
9908 test -d "$as_dir" || eval $as_mkdir_p || {
9912 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9913 *) as_qdir=$as_dir;;
9915 as_dirs="'$as_qdir' $as_dirs"
9916 as_dir=`$as_dirname -- "$as_dir" ||
9917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9918 X"$as_dir" : 'X\(//\)[^/]' \| \
9919 X"$as_dir" : 'X\(//\)$' \| \
9920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9921 $as_echo X"$as_dir" |
9922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9939 test -d "$as_dir" && break
9941 test -z "$as_dirs" || eval "mkdir $as_dirs"
9942 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9946 if mkdir -p . 2>/dev/null; then
9947 as_mkdir_p='mkdir -p "$as_dir"'
9949 test -d ./-p && rmdir ./-p
9954 # as_fn_executable_p FILE
9955 # -----------------------
9956 # Test if FILE is an executable regular file.
9957 as_fn_executable_p ()
9959 test -f "$1" && test -x "$1"
9960 } # as_fn_executable_p
9962 as_executable_p=as_fn_executable_p
9964 # Sed expression to map a string onto a valid CPP name.
9965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9967 # Sed expression to map a string onto a valid variable name.
9968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9972 ## ----------------------------------- ##
9973 ## Main body of $CONFIG_STATUS script. ##
9974 ## ----------------------------------- ##
9976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9979 # Save the log message, to keep $0 and so on meaningful, and to
9980 # report actual input values of CONFIG_FILES etc. instead of their
9981 # values after options handling.
9983 This file was extended by freeradius $as_me $Id$, which was
9984 generated by GNU Autoconf 2.69. Invocation command line was
9986 CONFIG_FILES = $CONFIG_FILES
9987 CONFIG_HEADERS = $CONFIG_HEADERS
9988 CONFIG_LINKS = $CONFIG_LINKS
9989 CONFIG_COMMANDS = $CONFIG_COMMANDS
9992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9997 case $ac_config_files in *"
9998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10001 case $ac_config_headers in *"
10002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10007 # Files that config.status was made for.
10008 config_files="$ac_config_files"
10009 config_headers="$ac_config_headers"
10010 config_commands="$ac_config_commands"
10014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10016 \`$as_me' instantiates files and other configuration actions
10017 from templates according to the current configuration. Unless the files
10018 and actions are specified as TAGs, all are instantiated by default.
10020 Usage: $0 [OPTION]... [TAG]...
10022 -h, --help print this help, then exit
10023 -V, --version print version number and configuration settings, then exit
10024 --config print configuration, then exit
10025 -q, --quiet, --silent
10026 do not print progress messages
10027 -d, --debug don't remove temporary files
10028 --recheck update $as_me by reconfiguring in the same conditions
10029 --file=FILE[:TEMPLATE]
10030 instantiate the configuration file FILE
10031 --header=FILE[:TEMPLATE]
10032 instantiate the configuration header FILE
10034 Configuration files:
10037 Configuration headers:
10040 Configuration commands:
10043 Report bugs to <http://bugs.freeradius.org>.
10044 freeradius home page: <http://www.freeradius.org>."
10047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10048 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10050 freeradius config.status $Id$
10051 configured by $0, generated by GNU Autoconf 2.69,
10052 with options \\"\$ac_cs_config\\"
10054 Copyright (C) 2012 Free Software Foundation, Inc.
10055 This config.status script is free software; the Free Software Foundation
10056 gives unlimited permission to copy, distribute and modify it."
10060 test -n "\$AWK" || AWK=awk
10063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10064 # The default lists apply if the user does not specify any file.
10070 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10071 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10075 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10087 # Handling of the options.
10088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10090 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10091 $as_echo "$ac_cs_version"; exit ;;
10092 --config | --confi | --conf | --con | --co | --c )
10093 $as_echo "$ac_cs_config"; exit ;;
10094 --debug | --debu | --deb | --de | --d | -d )
10096 --file | --fil | --fi | --f )
10099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10100 '') as_fn_error $? "missing file argument" ;;
10102 as_fn_append CONFIG_FILES " '$ac_optarg'"
10103 ac_need_defaults=false;;
10104 --header | --heade | --head | --hea )
10107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10109 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10110 ac_need_defaults=false;;
10112 # Conflict between --help and --header
10113 as_fn_error $? "ambiguous option: \`$1'
10114 Try \`$0 --help' for more information.";;
10115 --help | --hel | -h )
10116 $as_echo "$ac_cs_usage"; exit ;;
10117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10118 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10121 # This is an error.
10122 -*) as_fn_error $? "unrecognized option: \`$1'
10123 Try \`$0 --help' for more information." ;;
10125 *) as_fn_append ac_config_targets " $1"
10126 ac_need_defaults=false ;;
10132 ac_configure_extra_args=
10134 if $ac_cs_silent; then
10136 ac_configure_extra_args="$ac_configure_extra_args --silent"
10140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10141 if \$ac_cs_recheck; then
10142 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10144 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10145 CONFIG_SHELL='$SHELL'
10146 export CONFIG_SHELL
10151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10156 ## Running $as_me. ##
10162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10167 # Handling of arguments.
10168 for ac_config_target in $ac_config_targets
10170 case $ac_config_target in
10171 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
10172 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
10173 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
10174 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
10175 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
10176 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
10177 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
10178 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
10179 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
10180 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
10181 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
10182 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
10183 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
10184 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
10185 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
10186 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
10187 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
10188 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
10190 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10195 # If the user did not use the arguments to specify the items to instantiate,
10196 # then the envvar interface is used. Set only those that are not.
10197 # We use the long form for the default assignment because of an extremely
10198 # bizarre bug on SunOS 4.1.3.
10199 if $ac_need_defaults; then
10200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10202 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10205 # Have a temporary directory for convenience. Make it in the build tree
10206 # simply because there is no reason against having it here, and in addition,
10207 # creating and moving files from /tmp can sometimes cause problems.
10208 # Hook for its removal unless debugging.
10209 # Note that there is a small window in which the directory will not be cleaned:
10210 # after its creation but before its name has been assigned to `$tmp'.
10214 trap 'exit_status=$?
10215 : "${ac_tmp:=$tmp}"
10216 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10218 trap 'as_fn_exit 1' 1 2 13 15
10220 # Create a (secure) tmp directory for tmp files.
10223 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10227 tmp=./conf$$-$RANDOM
10228 (umask 077 && mkdir "$tmp")
10229 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10232 # Set up the scripts for CONFIG_FILES section.
10233 # No need to generate them if there are no CONFIG_FILES.
10234 # This happens for instance with `./config.status config.h'.
10235 if test -n "$CONFIG_FILES"; then
10238 ac_cr=`echo X | tr X '\015'`
10239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10240 # But we know of no other shell where ac_cr would be empty at this
10241 # point, so we can use a bashism as a fallback.
10242 if test "x$ac_cr" = x; then
10243 eval ac_cr=\$\'\\r\'
10245 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10249 ac_cs_awk_cr=$ac_cr
10252 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10257 echo "cat >conf$$subs.awk <<_ACEOF" &&
10258 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10260 } >conf$$subs.sh ||
10261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10264 for ac_last_try in false false false false false :; do
10265 . ./conf$$subs.sh ||
10266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10268 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10269 if test $ac_delim_n = $ac_delim_num; then
10271 elif $ac_last_try; then
10272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10277 rm -f conf$$subs.sh
10279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10280 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10284 s/^/S["/; s/!.*/"]=/
10294 s/\(.\{148\}\)..*/\1/
10296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10308 s/\(.\{148\}\)..*/\1/
10310 s/["\\]/\\&/g; s/^/"/; s/$/"/
10314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10319 ' <conf$$subs.awk | sed '
10324 ' >>$CONFIG_STATUS || ac_write_fail=1
10325 rm -f conf$$subs.awk
10326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10328 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10329 for (key in S) S_is_set[key] = 1
10335 nfields = split(line, field, "@")
10337 len = length(field[1])
10338 for (i = 2; i < nfields; i++) {
10340 keylen = length(key)
10341 if (S_is_set[key]) {
10343 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10344 len += length(value) + length(field[++i])
10355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10356 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10357 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10360 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10361 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10364 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10365 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10366 # trailing colons and then remove the whole line if VPATH becomes empty
10367 # (actually we leave an empty line to preserve line numbers).
10368 if test "x$srcdir" = x.; then
10369 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10388 fi # test -n "$CONFIG_FILES"
10390 # Set up the scripts for CONFIG_HEADERS section.
10391 # No need to generate them if there are no CONFIG_HEADERS.
10392 # This happens for instance with `./config.status Makefile'.
10393 if test -n "$CONFIG_HEADERS"; then
10394 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10398 # Transform confdefs.h into an awk script `defines.awk', embedded as
10399 # here-document in config.status, that substitutes the proper values into
10400 # config.h.in to produce config.h.
10402 # Create a delimiter string that does not exist in confdefs.h, to ease
10403 # handling of long lines.
10405 for ac_last_try in false false :; do
10406 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10407 if test -z "$ac_tt"; then
10409 elif $ac_last_try; then
10410 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10416 # For the awk script, D is an array of macro values keyed by name,
10417 # likewise P contains macro parameters if any. Preserve backslash
10418 # newline sequences.
10420 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10422 s/.\{148\}/&'"$ac_delim"'/g
10425 s/^[ ]*#[ ]*define[ ][ ]*/ /
10432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10439 D["\1"]=" \3\\\\\\n"\\/p
10441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10446 s/.\{148\}/&'"$ac_delim"'/g
10451 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10454 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10456 ' <confdefs.h | sed '
10457 s/'"$ac_delim"'/"\\\
10458 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10461 for (key in D) D_is_set[key] = 1
10464 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10466 split(line, arg, " ")
10467 if (arg[1] == "#") {
10471 defundef = substr(arg[1], 2)
10474 split(mac1, mac2, "(") #)
10476 prefix = substr(line, 1, index(line, defundef) - 1)
10477 if (D_is_set[macro]) {
10478 # Preserve the white space surrounding the "#".
10479 print prefix "define", macro P[macro] D[macro]
10482 # Replace #undef with comments. This is necessary, for example,
10483 # in the case of _POSIX_SOURCE, which is predefined and required
10484 # on some systems where configure will not decide to define it.
10485 if (defundef == "undef") {
10486 print "/*", prefix defundef, macro, "*/"
10494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10495 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10496 fi # test -n "$CONFIG_HEADERS"
10499 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10504 :[FHLC]) ac_mode=$ac_tag; continue;;
10506 case $ac_mode$ac_tag in
10508 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10509 :[FH]-) ac_tag=-:-;;
10510 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10527 -) ac_f="$ac_tmp/stdin";;
10528 *) # Look for the file first in the build tree, then in the source tree
10529 # (if the path is not absolute). The absolute path cannot be DOS-style,
10530 # because $ac_f cannot contain `:'.
10534 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10536 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10538 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10539 as_fn_append ac_file_inputs " '$ac_f'"
10542 # Let's still pretend it is `configure' which instantiates (i.e., don't
10543 # use $as_me), people would be surprised to read:
10544 # /* config.h. Generated by config.status. */
10545 configure_input='Generated from '`
10546 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10548 if test x"$ac_file" != x-; then
10549 configure_input="$ac_file. $configure_input"
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10551 $as_echo "$as_me: creating $ac_file" >&6;}
10553 # Neutralize special characters interpreted by sed in replacement strings.
10554 case $configure_input in #(
10555 *\&* | *\|* | *\\* )
10556 ac_sed_conf_input=`$as_echo "$configure_input" |
10557 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10558 *) ac_sed_conf_input=$configure_input;;
10562 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10568 ac_dir=`$as_dirname -- "$ac_file" ||
10569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570 X"$ac_file" : 'X\(//\)[^/]' \| \
10571 X"$ac_file" : 'X\(//\)$' \| \
10572 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10573 $as_echo X"$ac_file" |
10574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10578 /^X\(\/\/\)[^/].*/{
10591 as_dir="$ac_dir"; as_fn_mkdir_p
10595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10598 # A ".." for each directory in $ac_dir_suffix.
10599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10600 case $ac_top_builddir_sub in
10601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10605 ac_abs_top_builddir=$ac_pwd
10606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10607 # for backward compatibility:
10608 ac_top_builddir=$ac_top_build_prefix
10611 .) # We are building in place.
10613 ac_top_srcdir=$ac_top_builddir_sub
10614 ac_abs_top_srcdir=$ac_pwd ;;
10615 [\\/]* | ?:[\\/]* ) # Absolute name.
10616 ac_srcdir=$srcdir$ac_dir_suffix;
10617 ac_top_srcdir=$srcdir
10618 ac_abs_top_srcdir=$srcdir ;;
10619 *) # Relative name.
10620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10621 ac_top_srcdir=$ac_top_build_prefix$srcdir
10622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10636 # If the template does not know about datarootdir, expand it.
10637 # FIXME: This hack should be removed a few years after 2.60.
10638 ac_datarootdir_hack=; ac_datarootdir_seen=
10649 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10650 *datarootdir*) ac_datarootdir_seen=yes;;
10651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10653 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10656 ac_datarootdir_hack='
10657 s&@datadir@&$datadir&g
10658 s&@docdir@&$docdir&g
10659 s&@infodir@&$infodir&g
10660 s&@localedir@&$localedir&g
10661 s&@mandir@&$mandir&g
10662 s&\\\${datarootdir}&$datarootdir&g' ;;
10666 # Neutralize VPATH when `$srcdir' = `.'.
10667 # Shell code in configure.ac might set extrasub.
10668 # FIXME: do we really want to maintain this feature?
10669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10670 ac_sed_extra="$ac_vpsub
10673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10676 s|@configure_input@|$ac_sed_conf_input|;t t
10677 s&@top_builddir@&$ac_top_builddir_sub&;t t
10678 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10679 s&@srcdir@&$ac_srcdir&;t t
10680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10681 s&@top_srcdir@&$ac_top_srcdir&;t t
10682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10683 s&@builddir@&$ac_builddir&;t t
10684 s&@abs_builddir@&$ac_abs_builddir&;t t
10685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10686 $ac_datarootdir_hack
10688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10689 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10691 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10692 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10693 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10694 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10696 which seems to be undefined. Please make sure it is defined" >&5
10697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10698 which seems to be undefined. Please make sure it is defined" >&2;}
10700 rm -f "$ac_tmp/stdin"
10702 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10703 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10711 if test x"$ac_file" != x-; then
10713 $as_echo "/* $configure_input */" \
10714 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10715 } >"$ac_tmp/config.h" \
10716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10717 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10722 mv "$ac_tmp/config.h" "$ac_file" \
10723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10726 $as_echo "/* $configure_input */" \
10727 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10728 || as_fn_error $? "could not create -" "$LINENO" 5
10732 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10733 $as_echo "$as_me: executing $ac_file commands" >&6;}
10738 case $ac_file$ac_mode in
10739 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10740 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10741 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10742 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
10750 ac_clean_files=$ac_clean_files_save
10752 test $ac_write_fail = 0 ||
10753 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10756 # configure is writing to config.log, and then calls config.status.
10757 # config.status does its own redirection, appending to config.log.
10758 # Unfortunately, on DOS this fails, as config.log is still kept open
10759 # by configure, so config.status won't be able to write to it; its
10760 # output is simply discarded. So we exec the FD to /dev/null,
10761 # effectively closing config.log, so it can be properly (re)opened and
10762 # appended to by config.status. When coming back to configure, we
10763 # need to make the FD available again.
10764 if test "$no_create" != yes; then
10766 ac_config_status_args=
10767 test "$silent" = yes &&
10768 ac_config_status_args="$ac_config_status_args --quiet"
10770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10773 # would make configure fail if this is the last instruction.
10774 $ac_cs_success || as_fn_exit 1
10778 # CONFIG_SUBDIRS section.
10780 if test "$no_recursion" != yes; then
10782 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10783 # so they do not pile up.
10784 ac_sub_configure_args=
10786 eval "set x $ac_configure_args"
10790 if test -n "$ac_prev"; then
10795 -cache-file | --cache-file | --cache-fil | --cache-fi \
10796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10797 ac_prev=cache_file ;;
10798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10802 --config-cache | -C)
10804 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10806 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10808 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10810 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10812 --disable-option-checking)
10816 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10818 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10822 # Always prepend --prefix to ensure using the same prefix
10823 # in subdir configurations.
10824 ac_arg="--prefix=$prefix"
10826 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10828 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10831 if test "$silent" = yes; then
10832 ac_sub_configure_args="--silent $ac_sub_configure_args"
10835 # Always prepend --disable-option-checking to silence warnings, since
10836 # different subdirs can have different --enable and --with options.
10837 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10840 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10842 # Do not complain, so a configure script can configure whichever
10843 # parts of a large source tree are present.
10844 test -d "$srcdir/$ac_dir" || continue
10846 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10848 $as_echo "$ac_msg" >&6
10849 as_dir="$ac_dir"; as_fn_mkdir_p
10853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10856 # A ".." for each directory in $ac_dir_suffix.
10857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10858 case $ac_top_builddir_sub in
10859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10863 ac_abs_top_builddir=$ac_pwd
10864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10865 # for backward compatibility:
10866 ac_top_builddir=$ac_top_build_prefix
10869 .) # We are building in place.
10871 ac_top_srcdir=$ac_top_builddir_sub
10872 ac_abs_top_srcdir=$ac_pwd ;;
10873 [\\/]* | ?:[\\/]* ) # Absolute name.
10874 ac_srcdir=$srcdir$ac_dir_suffix;
10875 ac_top_srcdir=$srcdir
10876 ac_abs_top_srcdir=$srcdir ;;
10877 *) # Relative name.
10878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10879 ac_top_srcdir=$ac_top_build_prefix$srcdir
10880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10887 # Check for guested configure; otherwise get Cygnus style configure.
10888 if test -f "$ac_srcdir/configure.gnu"; then
10889 ac_sub_configure=$ac_srcdir/configure.gnu
10890 elif test -f "$ac_srcdir/configure"; then
10891 ac_sub_configure=$ac_srcdir/configure
10892 elif test -f "$ac_srcdir/configure.in"; then
10893 # This should be Cygnus configure.
10894 ac_sub_configure=$ac_aux_dir/configure
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10897 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10901 # The recursion is here.
10902 if test -n "$ac_sub_configure"; then
10903 # Make the cache file name correct relative to the subdirectory.
10904 case $cache_file in
10905 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10906 *) # Relative name.
10907 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10910 { $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
10911 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10912 # The eval makes quoting arguments work.
10913 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10914 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10915 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10921 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10923 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}