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
692 RADIUSD_VERSION_STRING
720 program_transform_name
733 enable_option_checking
736 enable_strict_dependencies
751 with_experimental_modules
754 with_openssl_includes
755 with_openssl_libraries
757 with_rlm_FOO_include_dir
758 with_talloc_include_dir
760 with_pcap_include_dir
762 with_rlm_pcre_lib_dir
763 with_rlm_pcre_include_dir
765 ac_precious_vars='build_alias
777 ac_subdirs_all='$mysubdirs'
779 # Initialize some variables set by options.
781 ac_init_version=false
782 ac_unrecognized_opts=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name=s,x,x,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
868 cache_file=config.cache ;;
870 -datadir | --datadir | --datadi | --datad)
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=\$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
937 -help | --help | --hel | --he | -h)
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 htmldir=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 # Obsolete; use --without-fp.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 sbindir=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1077 ac_prev=sharedstatedir ;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 sharedstatedir=$ac_optarg ;;
1084 -site | --site | --sit)
1086 -site=* | --site=* | --sit=*)
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev=sysconfdir ;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev=target_alias ;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version=: ;;
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error $? "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1126 eval with_$ac_useropt=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=no ;;
1145 # Obsolete; use --with-x.
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $? "missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of freeradius $Id$:";;
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-developer enables features of interest to developers.
1392 --disable-largefile omit support for large files
1393 --enable-strict-dependencies fail configure on lack of module dependancy.
1394 --enable-werror causes the build to fail if any warnings are generated.
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1400 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1401 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1402 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1403 --with-dictdir=DIR directory for dictionary files DATAROOTDIR/freeradius
1404 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1405 --with-threads use threads, if available. (default=yes)
1406 --with-tcp compile in TCP support. (default=yes)
1407 --with-vmps compile in VMPS support. (default=yes)
1408 --with-dhcp compile in DHCP support. (default=yes)
1409 --with-static-modules=QUOTED-MODULE-LIST
1410 --with-shared-libs build dynamic libraries and link against them. (default=yes)
1411 --with-modules=QUOTED-MODULE-LIST
1412 --with-experimental-modules use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1413 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1414 --with-openssl use OpenSSL. (default=yes)
1415 --with-openssl-includes=DIR directory to look for OpenSSL include files in
1416 --with-openssl-libraries=DIR directory to look for OpenSSL library files in
1417 --with-rlm-FOO-lib-dir=DIR directory to look for library files used by module FOO in
1418 --with-rlm-FOO-include-dir=DIR directory to look for include files used by module FOO in
1419 --with-talloc-include-dir=DIR directory to look for talloc include files in
1420 --with-talloc-lib-dir=DIR directory to look for talloc library files in
1421 --with-pcap-include-dir=DIR directory to look for pcap include files in
1422 --with-pcap-lib-dir=DIR directory to look for pcap library files in
1423 --with-pcre-lib-dir=DIR directory to look for PCRE library files in
1424 --with-pcre-include-dir=DIR directory to look for PCRE include files in
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CXX C++ compiler command
1435 CXXFLAGS C++ compiler flags
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <http://bugs.freeradius.org>.
1442 freeradius home page: <http://www.freeradius.org>.
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1472 .) # We are building in place.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1505 freeradius configure $Id$
1506 generated by GNU Autoconf 2.69
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_cxx_try_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1637 ac_fn_c_check_header_mongrel ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1661 ac_header_compiler=no
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1677 ac_header_preproc=no
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ( $as_echo "## ----------------------------------------- ##
1703 ## Report this to http://bugs.freeradius.org ##
1704 ## ----------------------------------------- ##"
1705 ) | sed "s/^/$as_me: WARNING: /" >&2
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1713 eval "$3=\$ac_header_compiler"
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 } # ac_fn_c_check_header_mongrel
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=$ac_status
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"; then :
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_header_compile
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 test -x conftest$ac_exeext
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_link
1842 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1843 # -------------------------------------------
1844 # Tests whether TYPE exists after having included INCLUDES, setting cache
1845 # variable VAR accordingly.
1846 ac_fn_c_check_type ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 } # ac_fn_c_check_type
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1919 # include <limits.h>
1921 # include <assert.h>
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1948 if ac_fn_c_try_link "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 } # ac_fn_c_check_func
1963 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1964 # ---------------------------------------------
1965 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1967 ac_fn_c_check_decl ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 as_decl_name=`echo $2|sed 's/ *(.*//'`
1971 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1973 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1983 #ifndef $as_decl_name
1985 (void) $as_decl_use;
1987 (void) $as_decl_name;
1995 if ac_fn_c_try_compile "$LINENO"; then :
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_decl
2008 cat >config.log <<_ACEOF
2009 This file contains any messages produced by compilers while
2010 running configure, to aid debugging if configure makes a mistake.
2012 It was created by freeradius $as_me $Id$, which was
2013 generated by GNU Autoconf 2.69. Invocation command line was
2025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2037 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 $as_echo "PATH: $as_dir"
2065 # Keep a trace of the command line.
2066 # Strip out --no-create and --no-recursion so they do not pile up.
2067 # Strip out --silent because we don't want to record it for future runs.
2068 # Also quote any args containing shell meta-characters.
2069 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_must_keep_next=false
2079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081 | -silent | --silent | --silen | --sile | --sil)
2084 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2089 as_fn_append ac_configure_args1 " '$ac_arg'"
2090 if test $ac_must_keep_next = true; then
2091 ac_must_keep_next=false # Got value, back to normal.
2094 *=* | --config-cache | -C | -disable-* | --disable-* \
2095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097 | -with-* | --with-* | -without-* | --without-* | --x)
2098 case "$ac_configure_args0 " in
2099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 -* ) ac_must_keep_next=true ;;
2105 as_fn_append ac_configure_args " '$ac_arg'"
2110 { ac_configure_args0=; unset ac_configure_args0;}
2111 { ac_configure_args1=; unset ac_configure_args1;}
2113 # When interrupted or exit'd, cleanup temporary files, and complete
2114 # config.log. We remove comments because anyway the quotes in there
2115 # would cause problems or look ugly.
2116 # WARNING: Use '\'' to represent an apostrophe within the trap.
2117 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118 trap 'exit_status=$?
2119 # Save into config.log some information that might help in debugging.
2123 $as_echo "## ---------------- ##
2124 ## Cache variables. ##
2125 ## ---------------- ##"
2127 # The following way of writing the cache mishandles newlines in values,
2129 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130 eval ac_val=\$$ac_var
2134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138 _ | IFS | as_nl) ;; #(
2139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140 *) { eval $ac_var=; unset $ac_var;} ;;
2145 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146 *${as_nl}ac_space=\ *)
2148 "s/'\''/'\''\\\\'\'''\''/g;
2149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159 $as_echo "## ----------------- ##
2160 ## Output variables. ##
2161 ## ----------------- ##"
2163 for ac_var in $ac_subst_vars
2165 eval ac_val=\$$ac_var
2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 $as_echo "$ac_var='\''$ac_val'\''"
2173 if test -n "$ac_subst_files"; then
2174 $as_echo "## ------------------- ##
2175 ## File substitutions. ##
2176 ## ------------------- ##"
2178 for ac_var in $ac_subst_files
2180 eval ac_val=\$$ac_var
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184 $as_echo "$ac_var='\''$ac_val'\''"
2189 if test -s confdefs.h; then
2190 $as_echo "## ----------- ##
2197 test "$ac_signal" != 0 &&
2198 $as_echo "$as_me: caught signal $ac_signal"
2199 $as_echo "$as_me: exit $exit_status"
2201 rm -f core *.core core.conftest.* &&
2202 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205 for ac_signal in 1 2 13 15; do
2206 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2211 rm -f -r conftest* confdefs.h
2213 $as_echo "/* confdefs.h */" > confdefs.h
2215 # Predefined preprocessor variables.
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_NAME "$PACKAGE_NAME"
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_STRING "$PACKAGE_STRING"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_URL "$PACKAGE_URL"
2242 # Let the site file select an alternate cache file if it wants to.
2243 # Prefer an explicitly selected file to automatically selected ones.
2246 if test -n "$CONFIG_SITE"; then
2247 # We do not want a PATH search for config.site.
2248 case $CONFIG_SITE in #((
2249 -*) ac_site_file1=./$CONFIG_SITE;;
2250 */*) ac_site_file1=$CONFIG_SITE;;
2251 *) ac_site_file1=./$CONFIG_SITE;;
2253 elif test "x$prefix" != xNONE; then
2254 ac_site_file1=$prefix/share/config.site
2255 ac_site_file2=$prefix/etc/config.site
2257 ac_site_file1=$ac_default_prefix/share/config.site
2258 ac_site_file2=$ac_default_prefix/etc/config.site
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262 test "x$ac_site_file" = xNONE && continue
2263 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266 sed 's/^/| /' "$ac_site_file" >&5
2268 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 as_fn_error $? "failed to load site script $ac_site_file
2271 See \`config.log' for more details" "$LINENO" 5; }
2275 if test -r "$cache_file"; then
2276 # Some versions of bash will fail to source /dev/null (special files
2277 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2278 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2280 $as_echo "$as_me: loading cache $cache_file" >&6;}
2282 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2283 *) . "./$cache_file";;
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2288 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 # Check that the precious variables saved in the cache have kept the same
2294 ac_cache_corrupted=false
2295 for ac_var in $ac_precious_vars; do
2296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2297 eval ac_new_set=\$ac_env_${ac_var}_set
2298 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2299 eval ac_new_val=\$ac_env_${ac_var}_value
2300 case $ac_old_set,$ac_new_set in
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2307 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2311 if test "x$ac_old_val" != "x$ac_new_val"; then
2312 # differences in whitespace do not lead to failure.
2313 ac_old_val_w=`echo x $ac_old_val`
2314 ac_new_val_w=`echo x $ac_new_val`
2315 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2317 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2318 ac_cache_corrupted=:
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2321 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2322 eval $ac_var=\$ac_old_val
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2325 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2327 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2330 # Pass precious variables to config.status.
2331 if test "$ac_new_set" = set; then
2333 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 *) ac_arg=$ac_var=$ac_new_val ;;
2336 case " $ac_configure_args " in
2337 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2338 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 if $ac_cache_corrupted; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2346 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2347 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2349 ## -------------------- ##
2350 ## Main body of script. ##
2351 ## -------------------- ##
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2374 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2375 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2376 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2378 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2379 -v minor="$RADIUSD_MINOR_VERSION" \
2380 -v incrm="$RADIUSD_INCRM_VERSION" \
2381 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2383 RADIUSD_VERSION_STRING=`cat VERSION`
2388 cat >>confdefs.h <<_ACEOF
2389 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2393 cat >>confdefs.h <<_ACEOF
2394 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2399 # Check whether --enable-developer was given.
2400 if test "${enable_developer+set}" = set; then :
2401 enableval=$enable_developer; case "$enableval" in
2412 if test -d $srcdir/.git; then
2413 if test "x$developer" != "xno"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2415 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2420 if test "x$developer" = "xyes"; then
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2431 elif test -f "$ac_dir/install.sh"; then
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2435 elif test -f "$ac_dir/shtool"; then
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2479 ac_save_IFS=$IFS; IFS='-'
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2526 $as_echo_n "checking target system type... " >&6; }
2527 if ${ac_cv_target+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 if test "x$target_alias" = x; then
2531 ac_cv_target=$ac_cv_host
2533 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2539 $as_echo "$ac_cv_target" >&6; }
2540 case $ac_cv_target in
2542 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2544 target=$ac_cv_target
2545 ac_save_IFS=$IFS; IFS='-'
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2555 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2558 # The aliases save the names the user supplied, while $host etc.
2559 # will get canonicalized.
2560 test -n "$target_alias" &&
2561 test "$program_prefix$program_suffix$program_transform_name" = \
2563 program_prefix=${target_alias}-
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2569 $as_echo_n "checking if cc is apple llvm... " >&6; }
2570 if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2573 # Extract the first word of "sw_vers", so it can be a program name with args.
2574 set dummy sw_vers; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_SW_VERS+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$SW_VERS"; then
2581 ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_SW_VERS="yes"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2601 SW_VERS=$ac_cv_prog_SW_VERS
2602 if test -n "$SW_VERS"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2604 $as_echo "$SW_VERS" >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2611 # Extract the first word of "xcodebuild", so it can be a program name with args.
2612 set dummy xcodebuild; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$XCODEBUILD"; then
2619 ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_XCODEBUILD="yes"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2639 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2640 if test -n "$XCODEBUILD"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2642 $as_echo "$XCODEBUILD" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2650 if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2652 $as_echo "$as_me: determining OSX SDK path" >&6;}
2653 osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2655 $as_echo "$osx_sdk_path" >&6; }
2657 export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path"
2658 export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path"
2659 export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/"
2660 DARWIN_CFLAGS="--sysroot=$osx_sdk_path"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706 $as_echo "$CC" >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2714 if test -z "$ac_cv_prog_CC"; then
2716 # Extract the first word of "gcc", so it can be a program name with args.
2717 set dummy gcc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="gcc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744 if test -n "$ac_ct_CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746 $as_echo "$ac_ct_CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2752 if test "x$ac_ct_CC" = x; then
2755 case $cross_compiling:$ac_tool_warned in
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2767 if test -z "$CC"; then
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}cc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}cc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2808 if test -z "$CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2828 ac_prog_rejected=yes
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test $ac_prog_rejected = yes; then
2840 # We found a bogon in the path, so make sure we never use it.
2841 set dummy $ac_cv_prog_CC
2843 if test $# != 0; then
2844 # We chose a different compiler from the bogus one.
2845 # However, it has the same basename, so the bogon will be chosen
2846 # first if we set CC to just the basename; use the full file name.
2848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2854 if test -n "$CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2856 $as_echo "$CC" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2864 if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 for ac_prog in cl.exe
2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$CC" && break
2908 if test -z "$CC"; then
2910 for ac_prog in cl.exe
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CC="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2942 $as_echo "$ac_ct_CC" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$ac_ct_CC" && break
2952 if test "x$ac_ct_CC" = x; then
2955 case $cross_compiling:$ac_tool_warned in
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959 ac_tool_warned=yes ;;
2968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "no acceptable C compiler found in \$PATH
2971 See \`config.log' for more details" "$LINENO" 5; }
2973 # Provide some information about the compiler.
2974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2977 for ac_option in --version -v -V -qversion; do
2978 { { ac_try="$ac_compiler $ac_option >&5"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 if test -s conftest.err; then
2989 ... rest of stderr output deleted ...
2990 10q' conftest.err >conftest.er1
2991 cat conftest.er1 >&5
2993 rm -f conftest.er1 conftest.err
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3009 ac_clean_files_save=$ac_clean_files
3010 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3011 # Try to create an executable without -o first, disregard a.out.
3012 # It will help us diagnose broken compilers, and finding out an intuition
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3015 $as_echo_n "checking whether the C compiler works... " >&6; }
3016 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018 # The possible output files:
3019 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3022 for ac_file in $ac_files
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031 if { { ac_try="$ac_link_default"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_link_default") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3043 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3044 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3045 # so that the user can short-circuit this test for compilers unknown to
3047 for ac_file in $ac_files ''
3049 test -f "$ac_file" || continue
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3054 # We found the default executable, but exeext='' is most
3058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062 # We set ac_cv_exeext here because the later test for it is not
3063 # safe: cross compilers may not add the suffix if given an `-o'
3064 # argument, so we may need to know it at that point already.
3065 # Even if this section looks crufty: it has the advantage of
3072 test "$ac_cv_exeext" = no && ac_cv_exeext=
3077 if test -z "$ac_file"; then :
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 $as_echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error 77 "C compiler cannot create executables
3086 See \`config.log' for more details" "$LINENO" 5; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089 $as_echo "yes" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092 $as_echo_n "checking for C compiler default output file name... " >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094 $as_echo "$ac_file" >&6; }
3095 ac_exeext=$ac_cv_exeext
3097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100 $as_echo_n "checking for suffix of executables... " >&6; }
3101 if { { ac_try="$ac_link"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3114 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 for ac_file in conftest.exe conftest conftest.*; do
3117 test -f "$ac_file" || continue
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details" "$LINENO" 5; }
3131 rm -f conftest conftest$ac_cv_exeext
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133 $as_echo "$ac_cv_exeext" >&6; }
3135 rm -f conftest.$ac_ext
3136 EXEEXT=$ac_cv_exeext
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3144 FILE *f = fopen ("conftest.out", "w");
3145 return ferror (f) || fclose (f) != 0;
3151 ac_clean_files="$ac_clean_files conftest.out"
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155 $as_echo_n "checking whether we are cross compiling... " >&6; }
3156 if test "$cross_compiling" != yes; then
3157 { { ac_try="$ac_link"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168 if { ac_try='./conftest$ac_cv_exeext'
3169 { { case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_try") 2>&5
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }; }; then
3181 if test "$cross_compiling" = maybe; then
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "cannot run C compiled programs.
3187 If you meant to cross compile, use \`--host'.
3188 See \`config.log' for more details" "$LINENO" 5; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193 $as_echo "$cross_compiling" >&6; }
3195 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196 ac_clean_files=$ac_clean_files_save
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198 $as_echo_n "checking for suffix of object files... " >&6; }
3199 if ${ac_cv_objext+:} false; then :
3200 $as_echo_n "(cached) " >&6
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3213 rm -f conftest.o conftest.obj
3214 if { { ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_compile") 2>&5
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 for ac_file in conftest.o conftest.obj conftest.*; do
3226 test -f "$ac_file" || continue;
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245 $as_echo "$ac_cv_objext" >&6; }
3246 OBJEXT=$ac_cv_objext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250 if ${ac_cv_c_compiler_gnu+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3267 if ac_fn_c_try_compile "$LINENO"; then :
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278 if test $ac_compiler_gnu = yes; then
3283 ac_test_CFLAGS=${CFLAGS+set}
3284 ac_save_CFLAGS=$CFLAGS
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3287 if ${ac_cv_prog_cc_g+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 ac_save_c_werror_flag=$ac_c_werror_flag
3291 ac_c_werror_flag=yes
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 if ac_fn_c_try_compile "$LINENO"; then :
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_c_werror_flag=$ac_save_c_werror_flag
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 if ac_fn_c_try_compile "$LINENO"; then :
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347 $as_echo "$ac_cv_prog_cc_g" >&6; }
3348 if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350 elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3357 if test "$GCC" = yes; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365 if ${ac_cv_prog_cc_c89+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 ac_cv_prog_cc_c89=no
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3389 s = g (p, va_arg (v,int));
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425 CC="$ac_save_CC $ac_arg"
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_c89=$ac_arg
3429 rm -f core conftest.err conftest.$ac_objext
3430 test "x$ac_cv_prog_cc_c89" != "xno" && break
3432 rm -f conftest.$ac_ext
3437 case "x$ac_cv_prog_cc_c89" in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3440 $as_echo "none needed" >&6; } ;;
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3443 $as_echo "unsupported" >&6; } ;;
3445 CC="$CC $ac_cv_prog_cc_c89"
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449 if test "x$ac_cv_prog_cc_c89" != xno; then :
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 ac_cpp='$CXXCPP $CPPFLAGS'
3461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3464 if test -z "$CXX"; then
3465 if test -n "$CCC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_CXX+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$CXX"; then
3479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test -n "$CXX"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3501 $as_echo "$CXX" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3508 test -n "$CXX" && break
3511 if test -z "$CXX"; then
3513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$ac_ct_CXX"; then
3523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_ac_ct_CXX="$ac_prog"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3543 if test -n "$ac_ct_CXX"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3545 $as_echo "$ac_ct_CXX" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3552 test -n "$ac_ct_CXX" && break
3555 if test "x$ac_ct_CXX" = x; then
3558 case $cross_compiling:$ac_tool_warned in
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3570 # Provide some information about the compiler.
3571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3574 for ac_option in --version -v -V -qversion; do
3575 { { ac_try="$ac_compiler $ac_option >&5"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3584 if test -s conftest.err; then
3586 ... rest of stderr output deleted ...
3587 10q' conftest.err >conftest.er1
3588 cat conftest.er1 >&5
3590 rm -f conftest.er1 conftest.err
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3597 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3614 if ac_fn_cxx_try_compile "$LINENO"; then :
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3625 if test $ac_compiler_gnu = yes; then
3630 ac_test_CXXFLAGS=${CXXFLAGS+set}
3631 ac_save_CXXFLAGS=$CXXFLAGS
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3633 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3634 if ${ac_cv_prog_cxx_g+:} false; then :
3635 $as_echo_n "(cached) " >&6
3637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3638 ac_cxx_werror_flag=yes
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3652 if ac_fn_cxx_try_compile "$LINENO"; then :
3653 ac_cv_prog_cxx_g=yes
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3667 if ac_fn_cxx_try_compile "$LINENO"; then :
3670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3683 if ac_fn_cxx_try_compile "$LINENO"; then :
3684 ac_cv_prog_cxx_g=yes
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3694 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3695 if test "$ac_test_CXXFLAGS" = set; then
3696 CXXFLAGS=$ac_save_CXXFLAGS
3697 elif test $ac_cv_prog_cxx_g = yes; then
3698 if test "$GXX" = yes; then
3704 if test "$GXX" = yes; then
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3724 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3725 # On Suns, sometimes $CPP names a directory.
3726 if test -n "$CPP" && test -d "$CPP"; then
3729 if test -z "$CPP"; then
3730 if ${ac_cv_prog_CPP+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 # Double quotes because CPP needs to be expanded
3734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3737 for ac_c_preproc_warn_flag in '' yes
3739 # Use a header file that comes with gcc, so configuring glibc
3740 # with a fresh cross-compiler works.
3741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3742 # <limits.h> exists even on freestanding compilers.
3743 # On the NeXT, cc -E runs the code through the compiler's parser,
3744 # not just through cpp. "Syntax error" is here to catch this case.
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3748 # include <limits.h>
3750 # include <assert.h>
3754 if ac_fn_c_try_cpp "$LINENO"; then :
3757 # Broken: fails on valid input.
3760 rm -f conftest.err conftest.i conftest.$ac_ext
3762 # OK, works on sane cases. Now check whether nonexistent headers
3763 # can be detected and how.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <ac_nonexistent.h>
3768 if ac_fn_c_try_cpp "$LINENO"; then :
3769 # Broken: success on invalid input.
3772 # Passes both tests.
3776 rm -f conftest.err conftest.i conftest.$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.i conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then :
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3794 $as_echo "$CPP" >&6; }
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3807 # include <limits.h>
3809 # include <assert.h>
3813 if ac_fn_c_try_cpp "$LINENO"; then :
3816 # Broken: fails on valid input.
3819 rm -f conftest.err conftest.i conftest.$ac_ext
3821 # OK, works on sane cases. Now check whether nonexistent headers
3822 # can be detected and how.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3828 # Broken: success on invalid input.
3831 # Passes both tests.
3835 rm -f conftest.err conftest.i conftest.$ac_ext
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.i conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then :
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details" "$LINENO" 5; }
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3858 if ${ac_cv_path_GREP+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -z "$GREP"; then
3862 ac_path_GREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in grep ggrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3872 as_fn_executable_p "$ac_path_GREP" || continue
3873 # Check for GNU ac_path_GREP and select it if it is found.
3874 # Check for GNU $ac_path_GREP
3875 case `"$ac_path_GREP" --version 2>&1` in
3877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880 $as_echo_n 0123456789 >"conftest.in"
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 $as_echo 'GREP' >> "conftest.nl"
3887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 as_fn_arith $ac_count + 1 && ac_count=$as_val
3890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_GREP="$ac_path_GREP"
3893 ac_path_GREP_max=$ac_count
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 $ac_path_GREP_found && break 3
3906 if test -z "$ac_cv_path_GREP"; then
3907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910 ac_cv_path_GREP=$GREP
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3915 $as_echo "$ac_cv_path_GREP" >&6; }
3916 GREP="$ac_cv_path_GREP"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3920 $as_echo_n "checking for egrep... " >&6; }
3921 if ${ac_cv_path_EGREP+:} false; then :
3922 $as_echo_n "(cached) " >&6
3924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3925 then ac_cv_path_EGREP="$GREP -E"
3927 if test -z "$EGREP"; then
3928 ac_path_EGREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in egrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3938 as_fn_executable_p "$ac_path_EGREP" || continue
3939 # Check for GNU ac_path_EGREP and select it if it is found.
3940 # Check for GNU $ac_path_EGREP
3941 case `"$ac_path_EGREP" --version 2>&1` in
3943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946 $as_echo_n 0123456789 >"conftest.in"
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo 'EGREP' >> "conftest.nl"
3953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 as_fn_arith $ac_count + 1 && ac_count=$as_val
3956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_EGREP="$ac_path_EGREP"
3959 ac_path_EGREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 $ac_path_EGREP_found && break 3
3972 if test -z "$ac_cv_path_EGREP"; then
3973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976 ac_cv_path_EGREP=$EGREP
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3982 $as_echo "$ac_cv_path_EGREP" >&6; }
3983 EGREP="$ac_cv_path_EGREP"
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3987 $as_echo_n "checking for ANSI C header files... " >&6; }
3988 if ${ac_cv_header_stdc+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_header_stdc=yes
4009 ac_cv_header_stdc=no
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 if test $ac_cv_header_stdc = yes; then
4014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021 $EGREP "memchr" >/dev/null 2>&1; then :
4024 ac_cv_header_stdc=no
4030 if test $ac_cv_header_stdc = yes; then
4031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "free" >/dev/null 2>&1; then :
4041 ac_cv_header_stdc=no
4047 if test $ac_cv_header_stdc = yes; then
4048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4049 if test "$cross_compiling" = yes; then :
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 #if ((' ' & 0x0FF) == 0x020)
4057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4060 # define ISLOWER(c) \
4061 (('a' <= (c) && (c) <= 'i') \
4062 || ('j' <= (c) && (c) <= 'r') \
4063 || ('s' <= (c) && (c) <= 'z'))
4064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4072 for (i = 0; i < 256; i++)
4073 if (XOR (islower (i), ISLOWER (i))
4074 || toupper (i) != TOUPPER (i))
4079 if ac_fn_c_try_run "$LINENO"; then :
4082 ac_cv_header_stdc=no
4084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4085 conftest.$ac_objext conftest.beam conftest.$ac_ext
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4091 $as_echo "$ac_cv_header_stdc" >&6; }
4092 if test $ac_cv_header_stdc = yes; then
4094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4099 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4100 inttypes.h stdint.h unistd.h
4102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4106 cat >>confdefs.h <<_ACEOF
4107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4117 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4124 if test "$MINIX" = yes; then
4126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4132 $as_echo "#define _MINIX 1" >>confdefs.h
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4138 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4139 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4145 # define __EXTENSIONS__ 1
4146 $ac_includes_default
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_safe_to_define___extensions__=yes
4158 ac_cv_safe_to_define___extensions__=no
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4163 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4164 test $ac_cv_safe_to_define___extensions__ = yes &&
4165 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4167 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4169 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4171 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4173 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4178 if test $ac_cv_c_compiler_gnu = yes; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4180 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4181 if ${ac_cv_prog_gcc_traditional+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 ac_pattern="Autoconf.*'x'"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4192 ac_cv_prog_gcc_traditional=yes
4194 ac_cv_prog_gcc_traditional=no
4199 if test $ac_cv_prog_gcc_traditional = no; then
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4207 ac_cv_prog_gcc_traditional=yes
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4214 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4215 if test $ac_cv_prog_gcc_traditional = yes; then
4216 CC="$CC -traditional"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4221 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4222 if ${ac_cv_prog_suncc+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 cat > conftest.c <<EOF
4230 if { ac_try='${CC-cc} -E conftest.c'
4231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4236 ac_cv_prog_suncc=yes
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4242 $as_echo "$ac_cv_prog_suncc" >&6; }
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_RANLIB+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 if test -n "$RANLIB"; then
4252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 RANLIB=$ac_cv_prog_RANLIB
4272 if test -n "$RANLIB"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4274 $as_echo "$RANLIB" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$ac_cv_prog_RANLIB"; then
4283 ac_ct_RANLIB=$RANLIB
4284 # Extract the first word of "ranlib", so it can be a program name with args.
4285 set dummy ranlib; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 if test -n "$ac_ct_RANLIB"; then
4292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_ac_ct_RANLIB="ranlib"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4312 if test -n "$ac_ct_RANLIB"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4314 $as_echo "$ac_ct_RANLIB" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4320 if test "x$ac_ct_RANLIB" = x; then
4323 case $cross_compiling:$ac_tool_warned in
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4329 RANLIB=$ac_ct_RANLIB
4332 RANLIB="$ac_cv_prog_RANLIB"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4338 $as_echo_n "checking if compiler is clang... " >&6; }
4339 if ${ax_cv_cc_clang+:} false; then :
4340 $as_echo_n "(cached) " >&6
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4359 if ac_fn_c_try_compile "$LINENO"; then :
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4368 $as_echo "$ax_cv_cc_clang" >&6; }
4370 if test "x$ax_cv_cc_clang" = "xyes"; then
4379 if test "x$GCC" = "xyes"; then
4380 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4385 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4386 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4387 $as_echo_n "(cached) " >&6
4391 CFLAGS_SAVED=$CFLAGS
4392 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ax_cv_cc_qunused_arguments_flag="yes"
4414 ax_cv_cc_qunused_arguments_flag="no"
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424 CFLAGS="$CFLAGS_SAVED"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4428 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4430 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4431 CFLAGS="$CFLAGS -Qunused-arguments"
4432 LDFLAGS="$LDFLAGS -Qunused-arguments"
4435 # Check whether --enable-largefile was given.
4436 if test "${enable_largefile+set}" = set; then :
4437 enableval=$enable_largefile;
4440 if test "$enable_largefile" != no; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4443 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4444 if ${ac_cv_sys_largefile_CC+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_cv_sys_largefile_CC=no
4448 if test "$GCC" != yes; then
4451 # IRIX 6.2 and later do not support large files by default,
4452 # so use the C compiler's -n32 option if that helps.
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <sys/types.h>
4456 /* Check that off_t can represent 2**63 - 1 correctly.
4457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4458 since some C++ compilers masquerading as C compilers
4459 incorrectly reject 9223372036854775807. */
4460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4462 && LARGE_OFF_T % 2147483647 == 1)
4472 if ac_fn_c_try_compile "$LINENO"; then :
4475 rm -f core conftest.err conftest.$ac_objext
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_sys_largefile_CC=' -n32'; break
4480 rm -f core conftest.err conftest.$ac_objext
4484 rm -f conftest.$ac_ext
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4488 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4489 if test "$ac_cv_sys_largefile_CC" != no; then
4490 CC=$CC$ac_cv_sys_largefile_CC
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4494 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4495 if ${ac_cv_sys_file_offset_bits+:} false; then :
4496 $as_echo_n "(cached) " >&6
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4502 /* Check that off_t can represent 2**63 - 1 correctly.
4503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4504 since some C++ compilers masquerading as C compilers
4505 incorrectly reject 9223372036854775807. */
4506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4508 && LARGE_OFF_T % 2147483647 == 1)
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_sys_file_offset_bits=no; break
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #define _FILE_OFFSET_BITS 64
4525 #include <sys/types.h>
4526 /* Check that off_t can represent 2**63 - 1 correctly.
4527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4528 since some C++ compilers masquerading as C compilers
4529 incorrectly reject 9223372036854775807. */
4530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4532 && LARGE_OFF_T % 2147483647 == 1)
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_sys_file_offset_bits=64; break
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_cv_sys_file_offset_bits=unknown
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4551 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4552 case $ac_cv_sys_file_offset_bits in #(
4555 cat >>confdefs.h <<_ACEOF
4556 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4561 if test $ac_cv_sys_file_offset_bits = unknown; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4563 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4564 if ${ac_cv_sys_large_files+:} false; then :
4565 $as_echo_n "(cached) " >&6
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 /* Check that off_t can represent 2**63 - 1 correctly.
4572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4573 since some C++ compilers masquerading as C compilers
4574 incorrectly reject 9223372036854775807. */
4575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4577 && LARGE_OFF_T % 2147483647 == 1)
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 ac_cv_sys_large_files=no; break
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #define _LARGE_FILES 1
4594 #include <sys/types.h>
4595 /* Check that off_t can represent 2**63 - 1 correctly.
4596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4597 since some C++ compilers masquerading as C compilers
4598 incorrectly reject 9223372036854775807. */
4599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4601 && LARGE_OFF_T % 2147483647 == 1)
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_sys_large_files=1; break
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cv_sys_large_files=unknown
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4620 $as_echo "$ac_cv_sys_large_files" >&6; }
4621 case $ac_cv_sys_large_files in #(
4624 cat >>confdefs.h <<_ACEOF
4625 #define _LARGE_FILES $ac_cv_sys_large_files
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4637 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4638 if ${ac_cv_c_bigendian+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 ac_cv_c_bigendian=unknown
4642 # See if we're dealing with a universal compiler.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #ifndef __APPLE_CC__
4646 not a universal capable compiler
4651 if ac_fn_c_try_compile "$LINENO"; then :
4653 # Check for potential -arch flags. It is not universal unless
4654 # there are at least two -arch flags with different values.
4657 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4658 if test -n "$ac_prev"; then
4660 i?86 | x86_64 | ppc | ppc64)
4661 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4664 ac_cv_c_bigendian=universal
4670 elif test "x$ac_word" = "x-arch"; then
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 if test $ac_cv_c_bigendian = unknown; then
4677 # See if sys/param.h defines the BYTE_ORDER macro.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <sys/types.h>
4681 #include <sys/param.h>
4686 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4687 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 # It does; now see whether it defined to BIG_ENDIAN or not.
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <sys/types.h>
4701 #include <sys/param.h>
4706 #if BYTE_ORDER != BIG_ENDIAN
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_c_bigendian=yes
4717 ac_cv_c_bigendian=no
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 if test $ac_cv_c_bigendian = unknown; then
4724 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4732 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 # It does; now see whether it defined to _BIG_ENDIAN or not.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_c_bigendian=yes
4760 ac_cv_c_bigendian=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 if test $ac_cv_c_bigendian = unknown; then
4767 # Compile a test program.
4768 if test "$cross_compiling" = yes; then :
4769 # Try to guess by grepping values from an object file.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 short int ascii_mm[] =
4773 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4774 short int ascii_ii[] =
4775 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4776 int use_ascii (int i) {
4777 return ascii_mm[i] + ascii_ii[i];
4779 short int ebcdic_ii[] =
4780 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4781 short int ebcdic_mm[] =
4782 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4783 int use_ebcdic (int i) {
4784 return ebcdic_mm[i] + ebcdic_ii[i];
4791 return use_ascii (foo) == use_ebcdic (foo);
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4798 ac_cv_c_bigendian=yes
4800 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4801 if test "$ac_cv_c_bigendian" = unknown; then
4802 ac_cv_c_bigendian=no
4804 # finding both strings is unlikely to happen, but who knows?
4805 ac_cv_c_bigendian=unknown
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 $ac_includes_default
4818 /* Are we little or big endian? From Harbison&Steele. */
4822 char c[sizeof (long int)];
4825 return u.c[sizeof (long int) - 1] == 1;
4831 if ac_fn_c_try_run "$LINENO"; then :
4832 ac_cv_c_bigendian=no
4834 ac_cv_c_bigendian=yes
4836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4837 conftest.$ac_objext conftest.beam conftest.$ac_ext
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4843 $as_echo "$ac_cv_c_bigendian" >&6; }
4844 case $ac_cv_c_bigendian in #(
4847 $as_echo "#define BIG_ENDIAN 1" >>confdefs.h
4851 $as_echo "#define LITTLE_ENDIAN 1" >>confdefs.h
4856 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4860 as_fn_error $? "unknown endianness
4861 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4865 # Extract the first word of "gmake", so it can be a program name with args.
4866 set dummy gmake; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_GMAKE+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 if test -n "$GMAKE"; then
4873 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_GMAKE="yes"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4893 GMAKE=$ac_cv_prog_GMAKE
4894 if test -n "$GMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4896 $as_echo "$GMAKE" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 if test $GMAKE = no; then
4904 # Extract the first word of "make", so it can be a program name with args.
4905 set dummy make; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MAKE+:} false; then :
4909 $as_echo_n "(cached) " >&6
4913 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4935 MAKE=$ac_cv_path_MAKE
4936 if test -n "$MAKE"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4938 $as_echo "$MAKE" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 # Extract the first word of "gmake", so it can be a program name with args.
4947 set dummy gmake; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_MAKE+:} false; then :
4951 $as_echo_n "(cached) " >&6
4955 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4977 MAKE=$ac_cv_path_MAKE
4978 if test -n "$MAKE"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4980 $as_echo "$MAKE" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4988 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4989 if test -z "$makever"; then
4990 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
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4995 $as_echo_n "checking number of system cores... " >&6; }
4996 if ${ax_cv_system_cores+:} false; then :
4997 $as_echo_n "(cached) " >&6
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006 if test "$cross_compiling" = yes; then :
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5016 # include <windows.h>
5018 # include <sys/param.h>
5019 # include <sys/sysctl.h>
5021 # include <unistd.h>
5024 int main (int argc, char *argv[])
5029 SYSTEM_INFO sysinfo;
5030 GetSystemInfo(&sysinfo);
5032 count = sysinfo.dwNumberOfProcessors;
5039 nm[1] = HW_AVAILCPU;
5040 sysctl(nm, 2, &count, &len, NULL, 0);
5044 sysctl(nm, 2, &count, &len, NULL, 0);
5051 count = sysconf(_SC_NPROCESSORS_ONLN);
5058 if ac_fn_c_try_run "$LINENO"; then :
5059 ax_cv_system_cores=$?
5061 ax_cv_system_cores=$?
5063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5064 conftest.$ac_objext conftest.beam conftest.$ac_ext
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5076 $as_echo "$ax_cv_system_cores" >&6; }
5081 # Extract the first word of "git", so it can be a program name with args.
5082 set dummy git; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_GIT+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$GIT"; then
5089 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_GIT="yes"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5110 if test -n "$GIT"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5112 $as_echo "$GIT" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5121 # Check whether --enable-strict-dependencies was given.
5122 if test "${enable_strict_dependencies+set}" = set; then :
5123 enableval=$enable_strict_dependencies;
5127 # Check whether --enable-werror was given.
5128 if test "${enable_werror+set}" = set; then :
5129 enableval=$enable_werror; case "$enableval" in
5140 docdir='${datadir}/doc/freeradius'
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5142 $as_echo_n "checking docdir... " >&6; }
5144 # Check whether --with-docdir was given.
5145 if test "${with_docdir+set}" = set; then :
5146 withval=$with_docdir; case "$withval" in
5152 [\\/$]* | ?:[\\/]* )
5156 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5164 $as_echo "$docdir" >&6; }
5165 if test "x$docdir" = xno; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5167 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5170 logdir='${localstatedir}/log/radius'
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5172 $as_echo_n "checking logdir... " >&6; }
5174 # Check whether --with-logdir was given.
5175 if test "${with_logdir+set}" = set; then :
5176 withval=$with_logdir; case "$withval" in
5178 as_fn_error $? "Need logdir" "$LINENO" 5
5182 [\\/$]* | ?:[\\/]* )
5186 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5194 $as_echo "$logdir" >&6; }
5196 radacctdir='${logdir}/radacct'
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5198 $as_echo_n "checking radacctdir... " >&6; }
5200 # Check whether --with-radacctdir was given.
5201 if test "${with_radacctdir+set}" = set; then :
5202 withval=$with_radacctdir; case "$withval" in
5204 as_fn_error $? "Need radacctdir" "$LINENO" 5
5208 [\\/$]* | ?:[\\/]* )
5209 radacctdir="$withval"
5212 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5220 $as_echo "$radacctdir" >&6; }
5222 raddbdir='${sysconfdir}/raddb'
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5224 $as_echo_n "checking raddbdir... " >&6; }
5226 # Check whether --with-raddbdir was given.
5227 if test "${with_raddbdir+set}" = set; then :
5228 withval=$with_raddbdir; case "$withval" in
5230 as_fn_error $? "Need raddbdir" "$LINENO" 5
5234 [\\/$]* | ?:[\\/]* )
5238 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5246 $as_echo "$raddbdir" >&6; }
5248 dictdir='${datarootdir}/freeradius'
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5250 $as_echo_n "checking dictdir... " >&6; }
5252 # Check whether --with-dictdir was given.
5253 if test "${with_dictdir+set}" = set; then :
5254 withval=$with_dictdir; case "$withval" in
5256 as_fn_error $? "Need dictdir" "$LINENO" 5
5260 [\\/$]* | ?:[\\/]* )
5264 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5272 $as_echo "$dictdir" >&6; }
5274 modconfdir='${raddbdir}/mods-config'
5277 WITH_ASCEND_BINARY=yes
5279 # Check whether --with-ascend-binary was given.
5280 if test "${with_ascend_binary+set}" = set; then :
5281 withval=$with_ascend_binary; case "$withval" in
5285 WITH_ASCEND_BINARY=no
5290 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5292 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5298 # Check whether --with-threads was given.
5299 if test "${with_threads+set}" = set; then :
5300 withval=$with_threads; case "$withval" in
5312 # Check whether --with-tcp was given.
5313 if test "${with_tcp+set}" = set; then :
5314 withval=$with_tcp; case "$withval" in
5323 if test "x$WITH_TCP" = "xyes"; then
5325 $as_echo "#define WITH_TCP 1" >>confdefs.h
5331 # Check whether --with-vmps was given.
5332 if test "${with_vmps+set}" = set; then :
5333 withval=$with_vmps; case "$withval" in
5342 if test "x$WITH_VMPS" = "xyes"; then
5344 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5350 # Check whether --with-dhcp was given.
5351 if test "${with_dhcp+set}" = set; then :
5352 withval=$with_dhcp; case "$withval" in
5361 if test "x$WITH_DHCP" = "xyes"; then
5363 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5369 # Check whether --with-static_modules was given.
5370 if test "${with_static_modules+set}" = set; then :
5371 withval=$with_static_modules;
5372 for i in $withval; do
5373 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5381 # Check whether --with-shared-libs was given.
5382 if test "${with_shared_libs+set}" = set; then :
5383 withval=$with_shared_libs; case "$withval" in
5395 # Check whether --with-modules was given.
5396 if test "${with_modules+set}" = set; then :
5397 withval=$with_modules;
5398 for i in $withval; do
5399 MODULES="$MODULES $i"
5407 # Check whether --with-experimental-modules was given.
5408 if test "${with_experimental_modules+set}" = set; then :
5409 withval=$with_experimental_modules; case "$withval" in
5424 # Check whether --with-udpfromto was given.
5425 if test "${with_udpfromto+set}" = set; then :
5426 withval=$with_udpfromto; case "$withval" in
5437 if test "x$WITH_UDPFROMTO" = "xyes"; then
5439 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5445 # Check whether --with-openssl was given.
5446 if test "${with_openssl+set}" = set; then :
5447 withval=$with_openssl; case "$withval" in
5459 OPENSSL_INCLUDE_DIR=
5461 # Check whether --with-openssl-includes was given.
5462 if test "${with_openssl_includes+set}" = set; then :
5463 withval=$with_openssl_includes; case "$withval" in
5464 *) OPENSSL_INCLUDE_DIR="$withval"
5473 # Check whether --with-openssl-libraries was given.
5474 if test "${with_openssl_libraries+set}" = set; then :
5475 withval=$with_openssl_libraries; case "$withval" in
5476 *) OPENSSL_LIB_DIR="$withval"
5485 # Check whether --with-rlm-FOO-lib-dir was given.
5486 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5487 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5496 # Check whether --with-rlm-FOO-include-dir was given.
5497 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5498 withval=$with_rlm_FOO_include_dir; case "$withval" in
5508 # Extract the first word of "perl", so it can be a program name with args.
5509 set dummy perl; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_path_PERL+:} false; then :
5513 $as_echo_n "(cached) " >&6
5517 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5539 PERL=$ac_cv_path_PERL
5540 if test -n "$PERL"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5542 $as_echo "$PERL" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5549 if test "x$ac_cv_path_PERL" = "x"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5551 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5553 # Extract the first word of "snmpget", so it can be a program name with args.
5554 set dummy snmpget; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_path_SNMPGET+:} false; then :
5558 $as_echo_n "(cached) " >&6
5562 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 SNMPGET=$ac_cv_path_SNMPGET
5584 if test -n "$SNMPGET"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5586 $as_echo "$SNMPGET" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5593 if test "x$ac_cv_path_SNMPGET" = "x"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5595 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5598 # Extract the first word of "snmpwalk", so it can be a program name with args.
5599 set dummy snmpwalk; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_path_SNMPWALK+:} false; then :
5603 $as_echo_n "(cached) " >&6
5607 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 SNMPWALK=$ac_cv_path_SNMPWALK
5629 if test -n "$SNMPWALK"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5631 $as_echo "$SNMPWALK" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5640 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5643 # Extract the first word of "rusers", so it can be a program name with args.
5644 set dummy rusers; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_path_RUSERS+:} false; then :
5648 $as_echo_n "(cached) " >&6
5652 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5674 RUSERS=$ac_cv_path_RUSERS
5675 if test -n "$RUSERS"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5677 $as_echo "$RUSERS" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5685 missing_dir=`cd $ac_aux_dir && pwd`
5686 # expand $ac_aux_dir to an absolute path
5687 am_aux_dir=`cd $ac_aux_dir && pwd`
5689 if test x"${MISSING+set}" != xset; then
5692 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5694 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5697 # Use eval to expand $SHELL
5698 if eval "$MISSING --run true"; then
5699 am_missing_run="$MISSING --run "
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5703 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5707 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5710 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5713 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5716 # Extract the first word of "locate", so it can be a program name with args.
5717 set dummy locate; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_path_LOCATE+:} false; then :
5721 $as_echo_n "(cached) " >&6
5725 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 LOCATE=$ac_cv_path_LOCATE
5747 if test -n "$LOCATE"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5749 $as_echo "$LOCATE" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5756 # Extract the first word of "dirname", so it can be a program name with args.
5757 set dummy dirname; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_path_DIRNAME+:} false; then :
5761 $as_echo_n "(cached) " >&6
5765 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 DIRNAME=$ac_cv_path_DIRNAME
5787 if test -n "$DIRNAME"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5789 $as_echo "$DIRNAME" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5796 # Extract the first word of "grep", so it can be a program name with args.
5797 set dummy grep; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_path_GREP+:} false; then :
5801 $as_echo_n "(cached) " >&6
5805 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 GREP=$ac_cv_path_GREP
5827 if test -n "$GREP"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5829 $as_echo "$GREP" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5839 if test "x$WITH_THREADS" = "xyes"; then
5840 if test $ac_cv_prog_suncc = "yes"; then
5841 CFLAGS="$CFLAGS -mt"
5844 for ac_header in pthread.h
5846 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5847 if test "x$ac_cv_header_pthread_h" = xyes; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_PTHREAD_H 1
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5860 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5861 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 ac_check_lib_save_LIBS=$LIBS
5865 LIBS="-lpthread $LIBS"
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5875 char pthread_create ();
5879 return pthread_create ();
5884 if ac_fn_c_try_link "$LINENO"; then :
5885 ac_cv_lib_pthread_pthread_create=yes
5887 ac_cv_lib_pthread_pthread_create=no
5889 rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5894 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5895 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5897 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5898 LIBS="-lpthread $LIBS"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5903 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5904 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 ac_check_lib_save_LIBS=$LIBS
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply. */
5918 char pthread_create ();
5922 return pthread_create ();
5927 if ac_fn_c_try_link "$LINENO"; then :
5928 ac_cv_lib_c_r_pthread_create=yes
5930 ac_cv_lib_c_r_pthread_create=no
5932 rm -f core conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934 LIBS=$ac_check_lib_save_LIBS
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5937 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5938 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5939 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5951 if test "x$WITH_THREADS" != "xyes"; then
5953 ac_cv_header_pthread_h="no"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5958 $as_echo_n "checking for library containing sem_init... " >&6; }
5959 if ${ac_cv_search_sem_init+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 ac_func_search_save_LIBS=$LIBS
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5981 for ac_lib in '' pthread sem posix4 rt semaphore; do
5982 if test -z "$ac_lib"; then
5983 ac_res="none required"
5986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5988 if ac_fn_c_try_link "$LINENO"; then :
5989 ac_cv_search_sem_init=$ac_res
5991 rm -f core conftest.err conftest.$ac_objext \
5993 if ${ac_cv_search_sem_init+:} false; then :
5997 if ${ac_cv_search_sem_init+:} false; then :
6000 ac_cv_search_sem_init=no
6003 LIBS=$ac_func_search_save_LIBS
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6006 $as_echo "$ac_cv_search_sem_init" >&6; }
6007 ac_res=$ac_cv_search_sem_init
6008 if test "$ac_res" != no; then :
6009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6012 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
6018 if test "x$WITH_THREADS" = "xyes"; then
6020 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6025 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6026 if ${ac_cv_lib_dl_dlopen+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 ac_check_lib_save_LIBS=$LIBS
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6034 /* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_lib_dl_dlopen=yes
6052 ac_cv_lib_dl_dlopen=no
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6059 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6060 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_LIBDL 1
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6071 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6072 if ${ac_cv_lib_socket_getsockname+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 ac_check_lib_save_LIBS=$LIBS
6076 LIBS="-lsocket $LIBS"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6080 /* Override any GCC internal prototype to avoid an error.
6081 Use char because int might match the return type of a GCC
6082 builtin and then its argument prototype would still apply. */
6086 char getsockname ();
6090 return getsockname ();
6095 if ac_fn_c_try_link "$LINENO"; then :
6096 ac_cv_lib_socket_getsockname=yes
6098 ac_cv_lib_socket_getsockname=no
6100 rm -f core conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6105 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6106 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define HAVE_LIBSOCKET 1
6111 LIBS="-lsocket $LIBS"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6117 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6118 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6119 $as_echo_n "(cached) " >&6
6121 ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lresolv $LIBS"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 /* Override any GCC internal prototype to avoid an error.
6127 Use char because int might match the return type of a GCC
6128 builtin and then its argument prototype would still apply. */
6136 return inet_aton ();
6141 if ac_fn_c_try_link "$LINENO"; then :
6142 ac_cv_lib_resolv_inet_aton=yes
6144 ac_cv_lib_resolv_inet_aton=no
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148 LIBS=$ac_check_lib_save_LIBS
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6151 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6152 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6153 cat >>confdefs.h <<_ACEOF
6154 #define HAVE_LIBRESOLV 1
6157 LIBS="-lresolv $LIBS"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6163 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6164 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 ac_check_lib_save_LIBS=$LIBS
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6182 return inet_ntoa ();
6187 if ac_fn_c_try_link "$LINENO"; then :
6188 ac_cv_lib_nsl_inet_ntoa=yes
6190 ac_cv_lib_nsl_inet_ntoa=no
6192 rm -f core conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6194 LIBS=$ac_check_lib_save_LIBS
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6197 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6198 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_LIBNSL 1
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6208 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6209 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 ac_check_lib_save_LIBS=$LIBS
6213 LIBS="-lws2_32 $LIBS"
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6217 /* Override any GCC internal prototype to avoid an error.
6218 Use char because int might match the return type of a GCC
6219 builtin and then its argument prototype would still apply. */
6232 if ac_fn_c_try_link "$LINENO"; then :
6233 ac_cv_lib_ws2_32_htonl=yes
6235 ac_cv_lib_ws2_32_htonl=no
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 LIBS=$ac_check_lib_save_LIBS
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6242 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6243 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_LIBWS2_32 1
6248 LIBS="-lws2_32 $LIBS"
6253 smart_try_dir="$pcap_lib_dir"
6256 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6257 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6263 if test "x$smart_try_dir" != "x"; then
6264 for try in $smart_try_dir; do
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6266 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6267 LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 extern char pcap_open_live();
6279 if ac_fn_c_try_link "$LINENO"; then :
6281 smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283 $as_echo "yes" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6290 rm -f core conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6296 if test "x$smart_lib" = "x"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6298 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6299 LIBS="-lpcap $old_LIBS"
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 extern char pcap_open_live();
6311 if ac_fn_c_try_link "$LINENO"; then :
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 $as_echo "yes" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6321 rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6326 if test "x$smart_lib" = "x"; then
6329 if test "x$LOCATE" != "x"; then
6331 file=libpcap${libltdl_cv_shlibext}
6333 for x in `${LOCATE} $file 2>/dev/null`; do
6334 base=`echo $x | sed "s%/${file}%%"`
6335 if test "x$x" = "x$base"; then
6339 dir=`${DIRNAME} $x 2>/dev/null`
6340 exclude=`echo ${dir} | ${GREP} /home`
6341 if test "x$exclude" != "x"; then
6345 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6346 if test "x$already" = "x"; then
6352 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6356 if test "x$LOCATE" != "x"; then
6360 for x in `${LOCATE} $file 2>/dev/null`; do
6361 base=`echo $x | sed "s%/${file}%%"`
6362 if test "x$x" = "x$base"; then
6366 dir=`${DIRNAME} $x 2>/dev/null`
6367 exclude=`echo ${dir} | ${GREP} /home`
6368 if test "x$exclude" != "x"; then
6372 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6373 if test "x$already" = "x"; then
6379 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6382 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6384 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6385 LIBS="-L$try -lpcap $old_LIBS -Wl,-rpath,$try"
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 extern char pcap_open_live();
6397 if ac_fn_c_try_link "$LINENO"; then :
6399 smart_lib="-L$try -lpcap -Wl,-rpath,$try"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6401 $as_echo "yes" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6408 rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6414 if test "x$smart_lib" != "x"; then
6415 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6416 LIBS="$smart_lib $old_LIBS"
6417 SMART_LIBS="$smart_lib $SMART_LIBS"
6420 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&5
6422 $as_echo "$as_me: WARNING: pcap library not found. Use --with-pcap-lib-dir=<path>." >&2;}
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&5
6424 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer and ARP listener." >&2;}
6426 PCAP_LIBS="${smart_lib}"
6429 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6435 $as_echo_n "checking for a readline compatible library... " >&6; }
6436 if ${vl_cv_lib_readline+:} false; then :
6437 $as_echo_n "(cached) " >&6
6441 for readline_lib in readline edit editline; do
6442 for termcap_lib in "" termcap curses ncurses; do
6443 if test -z "$termcap_lib"; then
6444 TRY_LIB="-l$readline_lib"
6446 TRY_LIB="-l$readline_lib -l$termcap_lib"
6448 LIBS="$ORIG_LIBS $TRY_LIB"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6452 /* Override any GCC internal prototype to avoid an error.
6453 Use char because int might match the return type of a GCC
6454 builtin and then its argument prototype would still apply. */
6467 if ac_fn_c_try_link "$LINENO"; then :
6468 vl_cv_lib_readline="$TRY_LIB"
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 if test -n "$vl_cv_lib_readline"; then
6476 if test -n "$vl_cv_lib_readline"; then
6480 if test -z "$vl_cv_lib_readline"; then
6481 vl_cv_lib_readline="no"
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6487 $as_echo "$vl_cv_lib_readline" >&6; }
6489 if test "$vl_cv_lib_readline" != "no"; then
6490 LIBREADLINE="$vl_cv_lib_readline"
6492 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6494 for ac_header in readline.h readline/readline.h
6496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6499 cat >>confdefs.h <<_ACEOF
6500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6508 $as_echo_n "checking whether readline supports history... " >&6; }
6509 if ${vl_cv_lib_readline_history+:} false; then :
6510 $as_echo_n "(cached) " >&6
6513 vl_cv_lib_readline_history="no"
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 /* Override any GCC internal prototype to avoid an error.
6518 Use char because int might match the return type of a GCC
6519 builtin and then its argument prototype would still apply. */
6523 char add_history ();
6527 return add_history ();
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 vl_cv_lib_readline_history="yes"
6535 rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6540 $as_echo "$vl_cv_lib_readline_history" >&6; }
6541 if test "$vl_cv_lib_readline_history" = "yes"; then
6543 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6545 for ac_header in history.h readline/history.h
6547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6548 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6566 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6569 CFLAGS="$CFLAGS -DDARWIN"
6570 LIBS="-framework DirectoryService $LIBS"
6575 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6576 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6578 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6579 if eval \${$as_ac_Header+:} false; then :
6580 $as_echo_n "(cached) " >&6
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #include <sys/types.h>
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 eval "$as_ac_Header=yes"
6599 eval "$as_ac_Header=no"
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 eval ac_res=\$$as_ac_Header
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6605 $as_echo "$ac_res" >&6; }
6606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6607 cat >>confdefs.h <<_ACEOF
6608 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6611 ac_header_dirent=$ac_hdr; break
6615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6616 if test $ac_header_dirent = dirent.h; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6618 $as_echo_n "checking for library containing opendir... " >&6; }
6619 if ${ac_cv_search_opendir+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 ac_func_search_save_LIBS=$LIBS
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6626 /* Override any GCC internal prototype to avoid an error.
6627 Use char because int might match the return type of a GCC
6628 builtin and then its argument prototype would still apply. */
6641 for ac_lib in '' dir; do
6642 if test -z "$ac_lib"; then
6643 ac_res="none required"
6646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 ac_cv_search_opendir=$ac_res
6651 rm -f core conftest.err conftest.$ac_objext \
6653 if ${ac_cv_search_opendir+:} false; then :
6657 if ${ac_cv_search_opendir+:} false; then :
6660 ac_cv_search_opendir=no
6663 LIBS=$ac_func_search_save_LIBS
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6666 $as_echo "$ac_cv_search_opendir" >&6; }
6667 ac_res=$ac_cv_search_opendir
6668 if test "$ac_res" != no; then :
6669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6675 $as_echo_n "checking for library containing opendir... " >&6; }
6676 if ${ac_cv_search_opendir+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 ac_func_search_save_LIBS=$LIBS
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6683 /* Override any GCC internal prototype to avoid an error.
6684 Use char because int might match the return type of a GCC
6685 builtin and then its argument prototype would still apply. */
6698 for ac_lib in '' x; do
6699 if test -z "$ac_lib"; then
6700 ac_res="none required"
6703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6705 if ac_fn_c_try_link "$LINENO"; then :
6706 ac_cv_search_opendir=$ac_res
6708 rm -f core conftest.err conftest.$ac_objext \
6710 if ${ac_cv_search_opendir+:} false; then :
6714 if ${ac_cv_search_opendir+:} false; then :
6717 ac_cv_search_opendir=no
6720 LIBS=$ac_func_search_save_LIBS
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6723 $as_echo "$ac_cv_search_opendir" >&6; }
6724 ac_res=$ac_cv_search_opendir
6725 if test "$ac_res" != no; then :
6726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6733 $as_echo_n "checking for ANSI C header files... " >&6; }
6734 if ${ac_cv_header_stdc+:} false; then :
6735 $as_echo_n "(cached) " >&6
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 ac_cv_header_stdc=yes
6755 ac_cv_header_stdc=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 if test $ac_cv_header_stdc = yes; then
6760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "memchr" >/dev/null 2>&1; then :
6770 ac_cv_header_stdc=no
6776 if test $ac_cv_header_stdc = yes; then
6777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 $EGREP "free" >/dev/null 2>&1; then :
6787 ac_cv_header_stdc=no
6793 if test $ac_cv_header_stdc = yes; then
6794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6795 if test "$cross_compiling" = yes; then :
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 #if ((' ' & 0x0FF) == 0x020)
6803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6806 # define ISLOWER(c) \
6807 (('a' <= (c) && (c) <= 'i') \
6808 || ('j' <= (c) && (c) <= 'r') \
6809 || ('s' <= (c) && (c) <= 'z'))
6810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6818 for (i = 0; i < 256; i++)
6819 if (XOR (islower (i), ISLOWER (i))
6820 || toupper (i) != TOUPPER (i))
6825 if ac_fn_c_try_run "$LINENO"; then :
6828 ac_cv_header_stdc=no
6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6831 conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6837 $as_echo "$ac_cv_header_stdc" >&6; }
6838 if test $ac_cv_header_stdc = yes; then
6840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6845 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6846 if ${ac_cv_header_time+:} false; then :
6847 $as_echo_n "(cached) " >&6
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <sys/types.h>
6852 #include <sys/time.h>
6858 if ((struct tm *) 0)
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 ac_cv_header_time=yes
6867 ac_cv_header_time=no
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6872 $as_echo "$ac_cv_header_time" >&6; }
6873 if test $ac_cv_header_time = yes; then
6875 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6880 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6881 if ${ac_cv_header_sys_wait_h+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <sys/types.h>
6887 #include <sys/wait.h>
6889 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6892 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6900 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 ac_cv_header_sys_wait_h=yes
6908 ac_cv_header_sys_wait_h=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6913 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6914 if test $ac_cv_header_sys_wait_h = yes; then
6916 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6968 cat >>confdefs.h <<_ACEOF
6969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6977 for ac_header in net/if.h
6979 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
6980 #ifdef HAVE_SYS_SOCKET_H
6981 # include <sys/socket.h>
6985 if test "x$ac_cv_header_net_if_h" = xyes; then :
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_NET_IF_H 1
6995 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6998 $as_echo "#define OSFC2 /**/" >>confdefs.h
7002 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7005 $as_echo "#define OSFSIA /**/" >>confdefs.h
7009 if test "x$WITH_OPENSSL" = xyes; then
7011 old_LDFLAGS="$LDFLAGS"
7013 OPENSSL_INCLUDE="-DNO_OPENSSL"
7015 if test "x$OPENSSL_LIB_DIR" != "x"; then
7016 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7020 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7021 if ${ac_cv_lib_crypto_DH_new+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 ac_check_lib_save_LIBS=$LIBS
7025 LIBS="-lcrypto $LIBS"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7029 /* Override any GCC internal prototype to avoid an error.
7030 Use char because int might match the return type of a GCC
7031 builtin and then its argument prototype would still apply. */
7044 if ac_fn_c_try_link "$LINENO"; then :
7045 ac_cv_lib_crypto_DH_new=yes
7047 ac_cv_lib_crypto_DH_new=no
7049 rm -f core conftest.err conftest.$ac_objext \
7050 conftest$ac_exeext conftest.$ac_ext
7051 LIBS=$ac_check_lib_save_LIBS
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
7054 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
7055 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
7057 LIBS="-lcrypto $LIBS"
7059 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
7062 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
7063 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
7064 $as_echo_n "(cached) " >&6
7066 ac_check_lib_save_LIBS=$LIBS
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7071 /* Override any GCC internal prototype to avoid an error.
7072 Use char because int might match the return type of a GCC
7073 builtin and then its argument prototype would still apply. */
7086 if ac_fn_c_try_link "$LINENO"; then :
7087 ac_cv_lib_ssl_SSL_new=yes
7089 ac_cv_lib_ssl_SSL_new=no
7091 rm -f core conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7093 LIBS=$ac_check_lib_save_LIBS
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
7096 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
7097 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
7100 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
7102 if test "x$OPENSSL_LIB_DIR" != "x"; then
7103 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
7105 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
7109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7111 as_fn_error $? "failed linking to libssl
7112 See \`config.log' for more details" "$LINENO" 5; }
7121 old_CPPFLAGS=$CPPFLAGS
7123 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7124 CPPFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CPPFLAGS"
7125 CFLAGS="-isystem $OPENSSL_INCLUDE_DIR $CFLAGS"
7128 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
7140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7143 cat >>confdefs.h <<_ACEOF
7144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7151 as_fn_error $? "failed locating OpenSSL headers
7152 See \`config.log' for more details" "$LINENO" 5; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
7161 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 #include <openssl/crypto.h>
7165 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "yes" >/dev/null 2>&1; then :
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 $as_echo "yes" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7182 as_fn_error $? "OpenSSL version too old
7183 See \`config.log' for more details" "$LINENO" 5; }
7190 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
7191 OPENSSL_INCLUDE="-isystem $OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
7193 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
7197 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
7198 if test "$cross_compiling" = yes; then :
7199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7201 as_fn_error $? "cannot run test program while cross compiling
7202 See \`config.log' for more details" "$LINENO" 5; }
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7208 #include <openssl/opensslv.h>
7209 #include <openssl/crypto.h>
7215 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
7218 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
7227 if ac_fn_c_try_run "$LINENO"; then :
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230 $as_echo "yes" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7238 as_fn_error $? "OpenSSL library version does not match header version
7239 See \`config.log' for more details" "$LINENO" 5; }
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7248 if test "x$OPENSSL_LIBS" = x; then
7250 LDFLAGS="$old_LDFLAGS"
7252 if test "x$OPENSSL_INCLUDE" = x; then
7253 CPPFLAGS=$old_CPPFLAGS
7262 if test "x$PCAP_LIBS" = x; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
7264 $as_echo "$as_me: skipping test for pcap.h." >&6;}
7266 smart_try_dir="$pcap_include_dir"
7269 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
7270 old_CFLAGS="$CFLAGS"
7274 if test "x$smart_try_dir" != "x"; then
7275 for try in $smart_try_dir; do
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7277 $as_echo_n "checking for pcap.h in $try... " >&6; }
7278 CFLAGS="$old_CFLAGS -isystem $try"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7291 if ac_fn_c_try_compile "$LINENO"; then :
7293 smart_include="-isystem $try"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7295 $as_echo "yes" >&6; }
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 CFLAGS="$old_CFLAGS"
7310 if test "x$smart_include" = "x"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
7312 $as_echo_n "checking for pcap.h... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7325 if ac_fn_c_try_compile "$LINENO"; then :
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7329 $as_echo "yes" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 if test "x$smart_include" = "x"; then
7345 if test "x$LOCATE" != "x"; then
7349 for x in `${LOCATE} $file 2>/dev/null`; do
7350 base=`echo $x | sed "s%/${file}%%"`
7351 if test "x$x" = "x$base"; then
7355 dir=`${DIRNAME} $x 2>/dev/null`
7356 exclude=`echo ${dir} | ${GREP} /home`
7357 if test "x$exclude" != "x"; then
7361 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7362 if test "x$already" = "x"; then
7368 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7370 for try in $smart_include_dir /usr/local/include /opt/include; do
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
7372 $as_echo_n "checking for pcap.h in $try... " >&6; }
7373 CFLAGS="$old_CFLAGS -isystem $try"
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7386 if ac_fn_c_try_compile "$LINENO"; then :
7388 smart_include="-isystem $try"
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7390 $as_echo "yes" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 CFLAGS="$old_CFLAGS"
7405 if test "x$smart_include" != "x"; then
7406 eval "ac_cv_header_$ac_safe=yes"
7407 CFLAGS="$old_CFLAGS $smart_include"
7408 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
7411 if test "x$ac_cv_header_pcap_h" != "xyes"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&5
7413 $as_echo "$as_me: WARNING: pcap headers not found. Use --with-pcap-include-dir=<path>." >&2;}
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&5
7415 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer, and ARP listener." >&2;}
7418 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
7422 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
7423 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
7424 $as_echo_n "(cached) " >&6
7426 ac_check_lib_save_LIBS=$LIBS
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7431 /* Override any GCC internal prototype to avoid an error.
7432 Use char because int might match the return type of a GCC
7433 builtin and then its argument prototype would still apply. */
7437 char pcap_fopen_offline ();
7441 return pcap_fopen_offline ();
7446 if ac_fn_c_try_link "$LINENO"; then :
7447 ac_cv_lib_pcap_pcap_fopen_offline=yes
7449 ac_cv_lib_pcap_pcap_fopen_offline=no
7451 rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 LIBS=$ac_check_lib_save_LIBS
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7456 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7457 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7460 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7468 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7469 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 ac_check_lib_save_LIBS=$LIBS
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7477 /* Override any GCC internal prototype to avoid an error.
7478 Use char because int might match the return type of a GCC
7479 builtin and then its argument prototype would still apply. */
7483 char pcap_dump_fopen ();
7487 return pcap_dump_fopen ();
7492 if ac_fn_c_try_link "$LINENO"; then :
7493 ac_cv_lib_pcap_pcap_dump_fopen=yes
7495 ac_cv_lib_pcap_pcap_dump_fopen=no
7497 rm -f core conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 LIBS=$ac_check_lib_save_LIBS
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7502 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7503 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7506 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7517 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7518 if test "x$ac_cv_type_off_t" = xyes; then :
7522 cat >>confdefs.h <<_ACEOF
7523 #define off_t long int
7528 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7529 if test "x$ac_cv_type_pid_t" = xyes; then :
7533 cat >>confdefs.h <<_ACEOF
7539 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7540 if test "x$ac_cv_type_size_t" = xyes; then :
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned int
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7551 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7552 if ${ac_cv_type_uid_t+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 #include <sys/types.h>
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561 $EGREP "uid_t" >/dev/null 2>&1; then :
7562 ac_cv_type_uid_t=yes
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7570 $as_echo "$ac_cv_type_uid_t" >&6; }
7571 if test $ac_cv_type_uid_t = no; then
7573 $as_echo "#define uid_t int" >>confdefs.h
7576 $as_echo "#define gid_t int" >>confdefs.h
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7583 $as_echo_n "checking for socklen_t... " >&6; }
7584 if ${ac_cv_type_socklen_t+:} false; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_cv_type_socklen_t=no
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 #ifdef HAVE_SYS_TYPES_H
7591 # include <sys/types.h>
7594 #ifdef HAVE_SYS_SOCKET_H
7595 # include <sys/socket.h>
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 ac_cv_type_socklen_t=yes
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7614 $as_echo "$ac_cv_type_socklen_t" >&6; }
7616 if test "$ac_cv_type_socklen_t" != "yes"; then
7618 $as_echo "#define socklen_t int" >>confdefs.h
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7625 $as_echo_n "checking for uint8_t... " >&6; }
7626 if ${ac_cv_type_uint8_t+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 ac_cv_type_uint8_t=no
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #ifdef HAVE_INTTYPES_H
7633 # include <inttypes.h>
7636 #ifdef HAVE_STDINT_H
7637 # include <stdint.h>
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 ac_cv_type_uint8_t=yes
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7656 $as_echo "$ac_cv_type_uint8_t" >&6; }
7658 if test "$ac_cv_type_uint8_t" != "yes"; then
7660 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7667 $as_echo_n "checking for uint16_t... " >&6; }
7668 if ${ac_cv_type_uint16_t+:} false; then :
7669 $as_echo_n "(cached) " >&6
7671 ac_cv_type_uint16_t=no
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #ifdef HAVE_INTTYPES_H
7675 # include <inttypes.h>
7678 #ifdef HAVE_STDINT_H
7679 # include <stdint.h>
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691 ac_cv_type_uint16_t=yes
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7698 $as_echo "$ac_cv_type_uint16_t" >&6; }
7700 if test "$ac_cv_type_uint16_t" != "yes"; then
7702 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7709 $as_echo_n "checking for uint32_t... " >&6; }
7710 if ${ac_cv_type_uint32_t+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 ac_cv_type_uint32_t=no
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #ifdef HAVE_INTTYPES_H
7717 # include <inttypes.h>
7720 #ifdef HAVE_STDINT_H
7721 # include <stdint.h>
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 ac_cv_type_uint32_t=yes
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7740 $as_echo "$ac_cv_type_uint32_t" >&6; }
7742 if test "$ac_cv_type_uint32_t" != "yes"; then
7744 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
7751 $as_echo_n "checking for uint64_t... " >&6; }
7752 if ${ac_cv_type_uint64_t+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 ac_cv_type_uint64_t=no
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 #ifdef HAVE_INTTYPES_H
7759 # include <inttypes.h>
7762 #ifdef HAVE_STDINT_H
7763 # include <stdint.h>
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_type_uint64_t=yes
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
7782 $as_echo "$ac_cv_type_uint64_t" >&6; }
7784 if test "$ac_cv_type_uint64_t" != "yes"; then
7786 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
7791 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
7792 if test "x$ac_cv_type___uint128_t" = xyes; then :
7794 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
7799 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
7800 #ifdef HAVE_INTTYPES_H
7801 # include <inttypes.h>
7804 #ifdef HAVE_STDINT_H
7805 # include <stdint.h>
7810 if test "x$ac_cv_type_uint128_t" = xyes; then :
7812 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
7817 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7818 #ifdef HAVE_NETINET_IN_H
7819 # include <netinet/in.h>
7824 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7826 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7831 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7832 #ifdef HAVE_NETINET_IN_H
7833 # include <netinet/in.h>
7836 #ifdef HAVE_SYS_SOCKET_H
7837 # include <sys/socket.h>
7841 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7843 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7848 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7849 #ifdef HAVE_NETINET_IN_H
7850 # include <netinet/in.h>
7854 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7856 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7861 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7862 #ifdef HAVE_SYS_TYPES_H
7863 # include <sys/types.h>
7866 #ifdef HAVE_SYS_SOCKET_H
7867 # include <sys/socket.h>
7876 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7878 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7921 cat >>confdefs.h <<_ACEOF
7922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7930 $as_echo_n "checking return type of signal handlers... " >&6; }
7931 if ${ac_cv_type_signal+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #include <sys/types.h>
7942 return *(signal (0, 0)) (0) == 1;
7947 if ac_fn_c_try_compile "$LINENO"; then :
7948 ac_cv_type_signal=int
7950 ac_cv_type_signal=void
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7955 $as_echo "$ac_cv_type_signal" >&6; }
7957 cat >>confdefs.h <<_ACEOF
7958 #define RETSIGTYPE $ac_cv_type_signal
7963 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7966 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7973 #ifdef HAVE_STDDEF_H
7977 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7983 int foo = offsetof(struct utmpx, ut_xtime)
7988 if ac_fn_c_try_compile "$LINENO"; then :
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7996 if test "x$has_element" != "x"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
7999 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
8006 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
8008 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
8015 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8021 #include <netinet/in.h>
8022 #ifdef HAVE_STDDEF_H
8026 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
8032 int foo = offsetof(struct in_pktinfo, ipi_addr)
8037 if ac_fn_c_try_compile "$LINENO"; then :
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
8045 if test "x$has_element" != "x"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047 $as_echo "yes" >&6; }
8048 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
8055 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
8057 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
8063 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8069 #include <netinet/in.h>
8070 #ifdef HAVE_STDDEF_H
8074 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
8080 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
8085 if ac_fn_c_try_compile "$LINENO"; then :
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
8093 if test "x$has_element" != "x"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8095 $as_echo "yes" >&6; }
8096 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
8103 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
8105 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8111 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8112 if ${ac_cv_c_const+:} false; then :
8113 $as_echo_n "(cached) " >&6
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8123 /* Ultrix mips cc rejects this sort of thing. */
8124 typedef int charset[2];
8125 const charset cs = { 0, 0 };
8126 /* SunOS 4.1.1 cc rejects this. */
8127 char const *const *pcpcc;
8129 /* NEC SVR4.0.2 mips cc rejects this. */
8130 struct point {int x, y;};
8131 static struct point const zero = {0,0};
8132 /* AIX XL C 1.02.0.0 rejects this.
8133 It does not let you subtract one const X* pointer from another in
8134 an arm of an if-expression whose if-part is not a constant
8136 const char *g = "string";
8137 pcpcc = &g + (g ? g-g : 0);
8138 /* HPUX 7.0 cc rejects these. */
8140 ppc = (char**) pcpcc;
8141 pcpcc = (char const *const *) ppc;
8142 { /* SCO 3.2v4 cc rejects this sort of thing. */
8145 char const *s = 0 ? (char *) 0 : (char const *) 0;
8150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8152 const int *foo = &x[0];
8155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8156 typedef const int *iptr;
8160 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8162 struct s { int j; const int *ap[3]; } bx;
8163 struct s *b = &bx; b->j = 5;
8165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8169 return !cs[0] && !zero.x;
8176 if ac_fn_c_try_compile "$LINENO"; then :
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8184 $as_echo "$ac_cv_c_const" >&6; }
8185 if test $ac_cv_c_const = no; then
8187 $as_echo "#define const /**/" >>confdefs.h
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
8193 $as_echo_n "checking type of OS... " >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
8196 $as_echo "$OS" >&6; }
8197 if test "$OS" = "OS/2"; then
8204 if test "x$developer" = "xyes"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
8206 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
8210 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
8211 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
8212 $as_echo_n "(cached) " >&6
8216 CFLAGS_SAVED=$CFLAGS
8217 CFLAGS="$CFLAGS -Werror -Wdocumentation"
8220 ac_cpp='$CPP $CPPFLAGS'
8221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 ax_cv_cc_wdocumentation_flag="yes"
8239 ax_cv_cc_wdocumentation_flag="no"
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 ac_cpp='$CPP $CPPFLAGS'
8244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8249 CFLAGS="$CFLAGS_SAVED"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
8253 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
8255 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
8256 devflags="-Wdocumentation"
8259 if test "x$GCC" = "xyes"; then
8260 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"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
8265 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
8267 CFLAGS="$CFLAGS $devflags"
8268 if test "x$EXPERIMENTAL" != "xno"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
8270 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
8275 CFLAGS="$CFLAGS -DNDEBUG"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
8280 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
8281 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8285 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
8295 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
8297 cat >>confdefs.h <<_ACEOF
8298 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
8305 $as_echo_n "checking for __thread support in compiler... " >&6; }
8306 if test "$cross_compiling" = yes; then :
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8312 static __thread int val;
8313 int main(int argc, char **argv) {
8320 if ac_fn_c_try_run "$LINENO"; then :
8325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8326 conftest.$ac_objext conftest.beam conftest.$ac_ext
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
8330 $as_echo "$have_tls" >&6; }
8331 if test "x$have_tls" = "xyes"; then
8333 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
8341 # Check whether --with-talloc-include-dir was given.
8342 if test "${with_talloc_include_dir+set}" = set; then :
8343 withval=$with_talloc_include_dir; case "$withval" in
8345 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
8350 talloc_include_dir="$withval"
8358 # Check whether --with-talloc-lib-dir was given.
8359 if test "${with_talloc_lib_dir+set}" = set; then :
8360 withval=$with_talloc_lib_dir; case "$withval" in
8362 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
8367 talloc_lib_dir="$withval"
8375 # Check whether --with-pcap-include-dir was given.
8376 if test "${with_pcap_include_dir+set}" = set; then :
8377 withval=$with_pcap_include_dir; case "$withval" in
8379 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
8384 pcap_include_dir="$withval"
8392 # Check whether --with-pcap-lib-dir was given.
8393 if test "${with_pcap_lib_dir+set}" = set; then :
8394 withval=$with_pcap_lib_dir; case "$withval" in
8396 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
8401 pcap_lib_dir="$withval"
8407 smart_try_dir="$talloc_include_dir"
8410 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
8411 old_CFLAGS="$CFLAGS"
8415 if test "x$smart_try_dir" != "x"; then
8416 for try in $smart_try_dir; do
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8418 $as_echo_n "checking for talloc.h in $try... " >&6; }
8419 CFLAGS="$old_CFLAGS -isystem $try"
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8432 if ac_fn_c_try_compile "$LINENO"; then :
8434 smart_include="-isystem $try"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8436 $as_echo "yes" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 CFLAGS="$old_CFLAGS"
8451 if test "x$smart_include" = "x"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
8453 $as_echo_n "checking for talloc.h... " >&6; }
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8466 if ac_fn_c_try_compile "$LINENO"; then :
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8470 $as_echo "yes" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 if test "x$smart_include" = "x"; then
8486 if test "x$LOCATE" != "x"; then
8490 for x in `${LOCATE} $file 2>/dev/null`; do
8491 base=`echo $x | sed "s%/${file}%%"`
8492 if test "x$x" = "x$base"; then
8496 dir=`${DIRNAME} $x 2>/dev/null`
8497 exclude=`echo ${dir} | ${GREP} /home`
8498 if test "x$exclude" != "x"; then
8502 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8503 if test "x$already" = "x"; then
8509 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8511 for try in $smart_include_dir /usr/local/include /opt/include; do
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
8513 $as_echo_n "checking for talloc.h in $try... " >&6; }
8514 CFLAGS="$old_CFLAGS -isystem $try"
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8527 if ac_fn_c_try_compile "$LINENO"; then :
8529 smart_include="-isystem $try"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 CFLAGS="$old_CFLAGS"
8546 if test "x$smart_include" != "x"; then
8547 eval "ac_cv_header_$ac_safe=yes"
8548 CFLAGS="$old_CFLAGS $smart_include"
8549 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8552 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8554 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8555 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8558 smart_try_dir="$talloc_lib_dir"
8561 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8562 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8568 if test "x$smart_try_dir" != "x"; then
8569 for try in $smart_try_dir; do
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8571 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8572 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 extern char _talloc();
8584 if ac_fn_c_try_link "$LINENO"; then :
8586 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588 $as_echo "yes" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8601 if test "x$smart_lib" = "x"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8603 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8604 LIBS="-ltalloc $old_LIBS"
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 extern char _talloc();
8616 if ac_fn_c_try_link "$LINENO"; then :
8618 smart_lib="-ltalloc"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8620 $as_echo "yes" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8626 rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8631 if test "x$smart_lib" = "x"; then
8634 if test "x$LOCATE" != "x"; then
8636 file=libtalloc${libltdl_cv_shlibext}
8638 for x in `${LOCATE} $file 2>/dev/null`; do
8639 base=`echo $x | sed "s%/${file}%%"`
8640 if test "x$x" = "x$base"; then
8644 dir=`${DIRNAME} $x 2>/dev/null`
8645 exclude=`echo ${dir} | ${GREP} /home`
8646 if test "x$exclude" != "x"; then
8650 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8651 if test "x$already" = "x"; then
8657 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8661 if test "x$LOCATE" != "x"; then
8665 for x in `${LOCATE} $file 2>/dev/null`; do
8666 base=`echo $x | sed "s%/${file}%%"`
8667 if test "x$x" = "x$base"; then
8671 dir=`${DIRNAME} $x 2>/dev/null`
8672 exclude=`echo ${dir} | ${GREP} /home`
8673 if test "x$exclude" != "x"; then
8677 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8678 if test "x$already" = "x"; then
8684 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8687 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8689 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8690 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 extern char _talloc();
8702 if ac_fn_c_try_link "$LINENO"; then :
8704 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8706 $as_echo "yes" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8719 if test "x$smart_lib" != "x"; then
8720 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8721 LIBS="$smart_lib $old_LIBS"
8722 SMART_LIBS="$smart_lib $SMART_LIBS"
8725 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8727 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8728 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8732 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8733 if ${ac_cv_lib_crypt_crypt+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lcrypt $LIBS"
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8741 /* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 ac_cv_lib_crypt_crypt=yes
8759 ac_cv_lib_crypt_crypt=no
8761 rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8766 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8767 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8773 if test "$CRYPTLIB" != ""; then
8775 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8778 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8779 if test "x$ac_cv_func_crypt" = xyes; then :
8781 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8788 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8789 if ${ac_cv_lib_cipher_setkey+:} false; then :
8790 $as_echo_n "(cached) " >&6
8792 ac_check_lib_save_LIBS=$LIBS
8793 LIBS="-lcipher $LIBS"
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8797 /* Override any GCC internal prototype to avoid an error.
8798 Use char because int might match the return type of a GCC
8799 builtin and then its argument prototype would still apply. */
8812 if ac_fn_c_try_link "$LINENO"; then :
8813 ac_cv_lib_cipher_setkey=yes
8815 ac_cv_lib_cipher_setkey=no
8817 rm -f core conftest.err conftest.$ac_objext \
8818 conftest$ac_exeext conftest.$ac_ext
8819 LIBS=$ac_check_lib_save_LIBS
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8822 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8823 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8824 CRYPTLIB="${CRYPTLIB} -lcipher"
8833 # Check whether --with-rlm-pcre-lib-dir was given.
8834 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8835 withval=$with_rlm_pcre_lib_dir; case "$withval" in
8837 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8842 pcre_lib_dir="$withval"
8851 # Check whether --with-rlm-pcre-include-dir was given.
8852 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8853 withval=$with_rlm_pcre_include_dir; case "$withval" in
8855 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8860 pcre_include_dir="$withval"
8871 smart_try_dir=$pcre_include_dir
8874 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8875 old_CFLAGS="$CFLAGS"
8879 if test "x$smart_try_dir" != "x"; then
8880 for try in $smart_try_dir; do
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8882 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8883 CFLAGS="$old_CFLAGS -isystem $try"
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8887 #include <pcreposix.h>
8896 if ac_fn_c_try_compile "$LINENO"; then :
8898 smart_include="-isystem $try"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8900 $as_echo "yes" >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 CFLAGS="$old_CFLAGS"
8915 if test "x$smart_include" = "x"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8917 $as_echo_n "checking for pcreposix.h... " >&6; }
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8921 #include <pcreposix.h>
8930 if ac_fn_c_try_compile "$LINENO"; then :
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8934 $as_echo "yes" >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 if test "x$smart_include" = "x"; then
8950 if test "x$LOCATE" != "x"; then
8954 for x in `${LOCATE} $file 2>/dev/null`; do
8955 base=`echo $x | sed "s%/${file}%%"`
8956 if test "x$x" = "x$base"; then
8960 dir=`${DIRNAME} $x 2>/dev/null`
8961 exclude=`echo ${dir} | ${GREP} /home`
8962 if test "x$exclude" != "x"; then
8966 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8967 if test "x$already" = "x"; then
8973 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8975 for try in $smart_include_dir /usr/local/include /opt/include; do
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8977 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8978 CFLAGS="$old_CFLAGS -isystem $try"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8982 #include <pcreposix.h>
8991 if ac_fn_c_try_compile "$LINENO"; then :
8993 smart_include="-isystem $try"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 $as_echo "yes" >&6; }
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 CFLAGS="$old_CFLAGS"
9010 if test "x$smart_include" != "x"; then
9011 eval "ac_cv_header_$ac_safe=yes"
9012 CFLAGS="$old_CFLAGS $smart_include"
9013 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
9016 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
9018 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
9021 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
9026 LIBS="-lpcre -lpcreposix $LIBS"
9032 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
9033 old_CFLAGS="$CFLAGS"
9037 if test "x$smart_try_dir" != "x"; then
9038 for try in $smart_try_dir; do
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
9040 $as_echo_n "checking for regex.h in $try... " >&6; }
9041 CFLAGS="$old_CFLAGS -isystem $try"
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9054 if ac_fn_c_try_compile "$LINENO"; then :
9056 smart_include="-isystem $try"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 $as_echo "yes" >&6; }
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 CFLAGS="$old_CFLAGS"
9073 if test "x$smart_include" = "x"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
9075 $as_echo_n "checking for regex.h... " >&6; }
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9088 if ac_fn_c_try_compile "$LINENO"; then :
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9092 $as_echo "yes" >&6; }
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 if test "x$smart_include" = "x"; then
9108 if test "x$LOCATE" != "x"; then
9112 for x in `${LOCATE} $file 2>/dev/null`; do
9113 base=`echo $x | sed "s%/${file}%%"`
9114 if test "x$x" = "x$base"; then
9118 dir=`${DIRNAME} $x 2>/dev/null`
9119 exclude=`echo ${dir} | ${GREP} /home`
9120 if test "x$exclude" != "x"; then
9124 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
9125 if test "x$already" = "x"; then
9131 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
9133 for try in $smart_include_dir /usr/local/include /opt/include; do
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
9135 $as_echo_n "checking for regex.h in $try... " >&6; }
9136 CFLAGS="$old_CFLAGS -isystem $try"
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9149 if ac_fn_c_try_compile "$LINENO"; then :
9151 smart_include="-isystem $try"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9153 $as_echo "yes" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 CFLAGS="$old_CFLAGS"
9168 if test "x$smart_include" != "x"; then
9169 eval "ac_cv_header_$ac_safe=yes"
9170 CFLAGS="$old_CFLAGS $smart_include"
9171 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
9174 if test "x$ac_cv_header_regex_h" = "xyes"; then
9176 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189 $EGREP "yes" >/dev/null 2>&1; then :
9191 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
9205 $as_echo "#define GNUSTYLE 1" >>confdefs.h
9209 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
9213 $as_echo "#define BSDSTYLE 3" >>confdefs.h
9216 gethostbyaddrrstyle=""
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
9218 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
9221 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
9227 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
9233 cat >>confdefs.h <<_ACEOF
9234 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
9236 if test $ac_have_decl = 1; then :
9241 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9243 gethostbyaddrrstyle=BSD
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
9245 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
9252 if test "x$gethostbyaddrrstyle" = "x"; then
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9262 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
9267 if ac_fn_c_try_link "$LINENO"; then :
9270 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
9272 gethostbyaddrrstyle=GNU
9276 rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9280 if test "x$gethostbyaddrrstyle" = "x"; then
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9290 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
9295 if ac_fn_c_try_link "$LINENO"; then :
9298 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
9300 gethostbyaddrrstyle=SYSV
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9309 if test "x$gethostbyaddrrstyle" = "x"; then
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9319 gethostbyaddr(NULL, 0, 0)
9324 if ac_fn_c_try_link "$LINENO"; then :
9327 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
9329 gethostbyaddrrstyle=BSD
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9337 if test "x$gethostbyaddrrstyle" = "x"; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9339 $as_echo "none! It must not exist, here." >&6; }
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
9342 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
9345 if test "x$gethostbyaddrrstyle" = "xBSD"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
9347 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
9350 gethostbynamerstyle=""
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
9352 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9362 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
9367 if ac_fn_c_try_link "$LINENO"; then :
9370 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
9372 gethostbynamerstyle=GNU
9376 rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9379 if test "x$gethostbynamerstyle" = "x"; then
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9389 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
9394 if ac_fn_c_try_link "$LINENO"; then :
9397 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
9399 gethostbynamerstyle=SYSV
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9407 if test "x$gethostbynamerstyle" = "x"; then
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9422 if ac_fn_c_try_link "$LINENO"; then :
9425 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
9427 gethostbynamerstyle=BSD
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9435 if test "x$gethostbynamerstyle" = "x"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9437 $as_echo "none! It must not exist, here." >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
9440 $as_echo "${gethostbynamerstyle}-style" >&6; }
9443 if test "x$gethostbynamerstyle" = "xBSD"; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
9445 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
9449 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
9452 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
9456 $as_echo_n "checking ctime_r() syntax... " >&6; }
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9465 ctime_r(NULL, NULL, 0)
9470 if ac_fn_c_try_link "$LINENO"; then :
9473 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
9475 ctimerstyle="SOLARIS"
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9482 if test "x$ctimerstyle" = "x"; then
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9496 if ac_fn_c_try_link "$LINENO"; then :
9499 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9509 if test "x$ctimerstyle" = "x"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
9511 $as_echo "none! It must not exist, here." >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
9514 $as_echo "${ctimerstyle}-style" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
9524 $as_echo "top_builddir=$top_builddir" >&6; }
9529 if test "x$EXPERIMENTAL" = "xyes"; then
9530 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
9531 MODULES="$MODULES $foo"
9534 for foo in `cat "${srcdir}"/src/modules/stable`; do
9535 MODULES="$MODULES $foo"
9540 for bar in $MODULES; do
9541 if test -f "${srcdir}"/src/modules/$bar/configure; then
9542 mysubdirs="$mysubdirs src/modules/$bar"
9548 subdirs="$subdirs $mysubdirs"
9552 if test "x$werror" == "xyes"; then
9553 CFLAGS="-Werror $CFLAGS"
9556 ac_config_commands="$ac_config_commands stamp-h"
9558 ac_config_commands="$ac_config_commands build-radpaths-h"
9560 ac_config_commands="$ac_config_commands main-chmod"
9562 ac_config_commands="$ac_config_commands scripts-chmod"
9569 USE_STATIC_LIBS="yes"
9574 unset ac_cv_env_LIBS_set
9575 unset ac_cv_env_LIBS_value
9577 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/radrelay.conf ./raddb/radiusd.conf"
9579 cat >confcache <<\_ACEOF
9580 # This file is a shell script that caches the results of configure
9581 # tests run on this system so they can be shared between configure
9582 # scripts and configure runs, see configure's option --config-cache.
9583 # It is not useful on other systems. If it contains results you don't
9584 # want to keep, you may remove or edit it.
9586 # config.status only pays attention to the cache file if you give it
9587 # the --recheck option to rerun configure.
9589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9595 # The following way of writing the cache mishandles newlines in values,
9596 # but we know of no workaround that is simple, portable, and efficient.
9597 # So, we kill variables containing newlines.
9598 # Ultrix sh set writes to stderr and can't be redirected directly,
9599 # and sets the high bit in the cache file unless we assign to the vars.
9601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9602 eval ac_val=\$$ac_var
9606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9610 _ | IFS | as_nl) ;; #(
9611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9612 *) { eval $ac_var=; unset $ac_var;} ;;
9618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9619 *${as_nl}ac_space=\ *)
9620 # `set' does not quote correctly, so add quotes: double-quote
9621 # substitution turns \\\\ into \\, and sed turns \\ into \.
9624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9627 # `set' quotes correctly as required by POSIX, so do not add quotes.
9628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9642 if test -w "$cache_file"; then
9643 if test "x$cache_file" != "x/dev/null"; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9645 $as_echo "$as_me: updating cache $cache_file" >&6;}
9646 if test ! -f "$cache_file" || test -h "$cache_file"; then
9647 cat confcache >"$cache_file"
9649 case $cache_file in #(
9651 mv -f confcache "$cache_file"$$ &&
9652 mv -f "$cache_file"$$ "$cache_file" ;; #(
9654 mv -f confcache "$cache_file" ;;
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9666 # Let make expand exec_prefix.
9667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9669 DEFS=-DHAVE_CONFIG_H
9674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9675 # 1. Remove the extension, and $U if already installed.
9676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9679 # will be set to the directory where LIBOBJS objects are built.
9680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9685 LTLIBOBJS=$ac_ltlibobjs
9690 : "${CONFIG_STATUS=./config.status}"
9692 ac_clean_files_save=$ac_clean_files
9693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9695 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9699 # Generated by $as_me.
9700 # Run this file to recreate the current configuration.
9701 # Compiler output produced by configure, useful for debugging
9702 # configure, is in config.log if it exists.
9708 SHELL=\${CONFIG_SHELL-$SHELL}
9711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9712 ## -------------------- ##
9713 ## M4sh Initialization. ##
9714 ## -------------------- ##
9716 # Be more Bourne compatible
9717 DUALCASE=1; export DUALCASE # for MKS sh
9718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9721 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9722 # is contrary to our usage. Disable this feature.
9723 alias -g '${1+"$@"}'='"$@"'
9724 setopt NO_GLOB_SUBST
9726 case `(set -o) 2>/dev/null` in #(
9738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9742 # Prefer a ksh shell builtin over an external printf program on Solaris,
9743 # but without wasting forks for bash or zsh.
9744 if test -z "$BASH_VERSION$ZSH_VERSION" \
9745 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9746 as_echo='print -r --'
9747 as_echo_n='print -rn --'
9748 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9749 as_echo='printf %s\n'
9750 as_echo_n='printf %s'
9752 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9753 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9754 as_echo_n='/usr/ucb/echo -n'
9756 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9757 as_echo_n_body='eval
9761 expr "X$arg" : "X\\(.*\\)$as_nl";
9762 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9764 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9766 export as_echo_n_body
9767 as_echo_n='sh -c $as_echo_n_body as_echo'
9770 as_echo='sh -c $as_echo_body as_echo'
9773 # The user is always right.
9774 if test "${PATH_SEPARATOR+set}" != set; then
9776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9784 # We need space, tab and new line, in precisely that order. Quoting is
9785 # there to prevent editors from complaining about space-tab.
9786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9787 # splitting by setting IFS to empty value.)
9790 # Find who we are. Look in the path if we contain no directory separator.
9793 *[\\/]* ) as_myself=$0 ;;
9794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 test -z "$as_dir" && as_dir=.
9799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9805 # We did not find ourselves, most probably we were run as `sh COMMAND'
9806 # in which case we are not to be found in the path.
9807 if test "x$as_myself" = x; then
9810 if test ! -f "$as_myself"; then
9811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9815 # Unset variables that we do not need and which cause bugs (e.g. in
9816 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9817 # suppresses any "Segmentation fault" message there. '((' could
9818 # trigger a bug in pdksh 5.2.14.
9819 for as_var in BASH_ENV ENV MAIL MAILPATH
9820 do eval test x\${$as_var+set} = xset \
9821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9838 # ----------------------------------------
9839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9841 # script with STATUS, using 1 if that was 0.
9844 as_status=$1; test $as_status -eq 0 && as_status=1
9846 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9849 $as_echo "$as_me: error: $2" >&2
9850 as_fn_exit $as_status
9854 # as_fn_set_status STATUS
9855 # -----------------------
9856 # Set $? to STATUS, without forking.
9860 } # as_fn_set_status
9864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9874 # Portably unset VAR.
9877 { eval $1=; unset $1;}
9879 as_unset=as_fn_unset
9880 # as_fn_append VAR VALUE
9881 # ----------------------
9882 # Append the text in VALUE to the end of the definition contained in VAR. Take
9883 # advantage of any shell optimizations that allow amortized linear growth over
9884 # repeated appends, instead of the typical quadratic growth present in naive
9886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9887 eval 'as_fn_append ()
9898 # as_fn_arith ARG...
9899 # ------------------
9900 # Perform arithmetic evaluation on the ARGs, and store the result in the
9901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9902 # must be portable across $(()) and expr.
9903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9904 eval 'as_fn_arith ()
9911 as_val=`expr "$@" || test $? -eq 1`
9916 if expr a : '\(a\)' >/dev/null 2>&1 &&
9917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9924 as_basename=basename
9929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9935 as_me=`$as_basename -- "$0" ||
9936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9937 X"$0" : 'X\(//\)$' \| \
9938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9940 sed '/^.*\/\([^/][^/]*\)\/*$/{
9954 # Avoid depending upon Character Ranges.
9955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9958 as_cr_digits='0123456789'
9959 as_cr_alnum=$as_cr_Letters$as_cr_digits
9961 ECHO_C= ECHO_N= ECHO_T=
9962 case `echo -n x` in #(((((
9964 case `echo 'xy\c'` in
9965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9974 rm -f conf$$ conf$$.exe conf$$.file
9975 if test -d conf$$.dir; then
9976 rm -f conf$$.dir/conf$$.file
9979 mkdir conf$$.dir 2>/dev/null
9981 if (echo >conf$$.file) 2>/dev/null; then
9982 if ln -s conf$$.file conf$$ 2>/dev/null; then
9984 # ... but there are two gotchas:
9985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9987 # In both cases, we have to default to `cp -pR'.
9988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9990 elif ln conf$$.file conf$$ 2>/dev/null; then
9998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9999 rmdir conf$$.dir 2>/dev/null
10004 # Create "$as_dir" as a directory, including parents if necessary.
10009 -*) as_dir=./$as_dir;;
10011 test -d "$as_dir" || eval $as_mkdir_p || {
10015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10016 *) as_qdir=$as_dir;;
10018 as_dirs="'$as_qdir' $as_dirs"
10019 as_dir=`$as_dirname -- "$as_dir" ||
10020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10021 X"$as_dir" : 'X\(//\)[^/]' \| \
10022 X"$as_dir" : 'X\(//\)$' \| \
10023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10024 $as_echo X"$as_dir" |
10025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10029 /^X\(\/\/\)[^/].*/{
10042 test -d "$as_dir" && break
10044 test -z "$as_dirs" || eval "mkdir $as_dirs"
10045 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10049 if mkdir -p . 2>/dev/null; then
10050 as_mkdir_p='mkdir -p "$as_dir"'
10052 test -d ./-p && rmdir ./-p
10057 # as_fn_executable_p FILE
10058 # -----------------------
10059 # Test if FILE is an executable regular file.
10060 as_fn_executable_p ()
10062 test -f "$1" && test -x "$1"
10063 } # as_fn_executable_p
10064 as_test_x='test -x'
10065 as_executable_p=as_fn_executable_p
10067 # Sed expression to map a string onto a valid CPP name.
10068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10070 # Sed expression to map a string onto a valid variable name.
10071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10075 ## ----------------------------------- ##
10076 ## Main body of $CONFIG_STATUS script. ##
10077 ## ----------------------------------- ##
10079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10082 # Save the log message, to keep $0 and so on meaningful, and to
10083 # report actual input values of CONFIG_FILES etc. instead of their
10084 # values after options handling.
10086 This file was extended by freeradius $as_me $Id$, which was
10087 generated by GNU Autoconf 2.69. Invocation command line was
10089 CONFIG_FILES = $CONFIG_FILES
10090 CONFIG_HEADERS = $CONFIG_HEADERS
10091 CONFIG_LINKS = $CONFIG_LINKS
10092 CONFIG_COMMANDS = $CONFIG_COMMANDS
10095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10100 case $ac_config_files in *"
10101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10104 case $ac_config_headers in *"
10105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10110 # Files that config.status was made for.
10111 config_files="$ac_config_files"
10112 config_headers="$ac_config_headers"
10113 config_commands="$ac_config_commands"
10117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10119 \`$as_me' instantiates files and other configuration actions
10120 from templates according to the current configuration. Unless the files
10121 and actions are specified as TAGs, all are instantiated by default.
10123 Usage: $0 [OPTION]... [TAG]...
10125 -h, --help print this help, then exit
10126 -V, --version print version number and configuration settings, then exit
10127 --config print configuration, then exit
10128 -q, --quiet, --silent
10129 do not print progress messages
10130 -d, --debug don't remove temporary files
10131 --recheck update $as_me by reconfiguring in the same conditions
10132 --file=FILE[:TEMPLATE]
10133 instantiate the configuration file FILE
10134 --header=FILE[:TEMPLATE]
10135 instantiate the configuration header FILE
10137 Configuration files:
10140 Configuration headers:
10143 Configuration commands:
10146 Report bugs to <http://bugs.freeradius.org>.
10147 freeradius home page: <http://www.freeradius.org>."
10150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10153 freeradius config.status $Id$
10154 configured by $0, generated by GNU Autoconf 2.69,
10155 with options \\"\$ac_cs_config\\"
10157 Copyright (C) 2012 Free Software Foundation, Inc.
10158 This config.status script is free software; the Free Software Foundation
10159 gives unlimited permission to copy, distribute and modify it."
10163 test -n "\$AWK" || AWK=awk
10166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10167 # The default lists apply if the user does not specify any file.
10173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10190 # Handling of the options.
10191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10194 $as_echo "$ac_cs_version"; exit ;;
10195 --config | --confi | --conf | --con | --co | --c )
10196 $as_echo "$ac_cs_config"; exit ;;
10197 --debug | --debu | --deb | --de | --d | -d )
10199 --file | --fil | --fi | --f )
10202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10203 '') as_fn_error $? "missing file argument" ;;
10205 as_fn_append CONFIG_FILES " '$ac_optarg'"
10206 ac_need_defaults=false;;
10207 --header | --heade | --head | --hea )
10210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10213 ac_need_defaults=false;;
10215 # Conflict between --help and --header
10216 as_fn_error $? "ambiguous option: \`$1'
10217 Try \`$0 --help' for more information.";;
10218 --help | --hel | -h )
10219 $as_echo "$ac_cs_usage"; exit ;;
10220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10224 # This is an error.
10225 -*) as_fn_error $? "unrecognized option: \`$1'
10226 Try \`$0 --help' for more information." ;;
10228 *) as_fn_append ac_config_targets " $1"
10229 ac_need_defaults=false ;;
10235 ac_configure_extra_args=
10237 if $ac_cs_silent; then
10239 ac_configure_extra_args="$ac_configure_extra_args --silent"
10243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10244 if \$ac_cs_recheck; then
10245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10248 CONFIG_SHELL='$SHELL'
10249 export CONFIG_SHELL
10254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10259 ## Running $as_me. ##
10265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10270 # Handling of arguments.
10271 for ac_config_target in $ac_config_targets
10273 case $ac_config_target in
10274 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
10275 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
10276 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
10277 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
10278 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
10279 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
10280 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
10281 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
10282 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
10283 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
10284 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
10285 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
10286 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
10287 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
10288 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
10289 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
10290 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
10292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10297 # If the user did not use the arguments to specify the items to instantiate,
10298 # then the envvar interface is used. Set only those that are not.
10299 # We use the long form for the default assignment because of an extremely
10300 # bizarre bug on SunOS 4.1.3.
10301 if $ac_need_defaults; then
10302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10307 # Have a temporary directory for convenience. Make it in the build tree
10308 # simply because there is no reason against having it here, and in addition,
10309 # creating and moving files from /tmp can sometimes cause problems.
10310 # Hook for its removal unless debugging.
10311 # Note that there is a small window in which the directory will not be cleaned:
10312 # after its creation but before its name has been assigned to `$tmp'.
10316 trap 'exit_status=$?
10317 : "${ac_tmp:=$tmp}"
10318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10320 trap 'as_fn_exit 1' 1 2 13 15
10322 # Create a (secure) tmp directory for tmp files.
10325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10329 tmp=./conf$$-$RANDOM
10330 (umask 077 && mkdir "$tmp")
10331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10334 # Set up the scripts for CONFIG_FILES section.
10335 # No need to generate them if there are no CONFIG_FILES.
10336 # This happens for instance with `./config.status config.h'.
10337 if test -n "$CONFIG_FILES"; then
10340 ac_cr=`echo X | tr X '\015'`
10341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10342 # But we know of no other shell where ac_cr would be empty at this
10343 # point, so we can use a bashism as a fallback.
10344 if test "x$ac_cr" = x; then
10345 eval ac_cr=\$\'\\r\'
10347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10351 ac_cs_awk_cr=$ac_cr
10354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10359 echo "cat >conf$$subs.awk <<_ACEOF" &&
10360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10362 } >conf$$subs.sh ||
10363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10366 for ac_last_try in false false false false false :; do
10367 . ./conf$$subs.sh ||
10368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10371 if test $ac_delim_n = $ac_delim_num; then
10373 elif $ac_last_try; then
10374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10379 rm -f conf$$subs.sh
10381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10386 s/^/S["/; s/!.*/"]=/
10396 s/\(.\{148\}\)..*/\1/
10398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10410 s/\(.\{148\}\)..*/\1/
10412 s/["\\]/\\&/g; s/^/"/; s/$/"/
10416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10421 ' <conf$$subs.awk | sed '
10426 ' >>$CONFIG_STATUS || ac_write_fail=1
10427 rm -f conf$$subs.awk
10428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10431 for (key in S) S_is_set[key] = 1
10437 nfields = split(line, field, "@")
10439 len = length(field[1])
10440 for (i = 2; i < nfields; i++) {
10442 keylen = length(key)
10443 if (S_is_set[key]) {
10445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10446 len += length(value) + length(field[++i])
10457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10468 # trailing colons and then remove the whole line if VPATH becomes empty
10469 # (actually we leave an empty line to preserve line numbers).
10470 if test "x$srcdir" = x.; then
10471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10490 fi # test -n "$CONFIG_FILES"
10492 # Set up the scripts for CONFIG_HEADERS section.
10493 # No need to generate them if there are no CONFIG_HEADERS.
10494 # This happens for instance with `./config.status Makefile'.
10495 if test -n "$CONFIG_HEADERS"; then
10496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10500 # Transform confdefs.h into an awk script `defines.awk', embedded as
10501 # here-document in config.status, that substitutes the proper values into
10502 # config.h.in to produce config.h.
10504 # Create a delimiter string that does not exist in confdefs.h, to ease
10505 # handling of long lines.
10507 for ac_last_try in false false :; do
10508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10509 if test -z "$ac_tt"; then
10511 elif $ac_last_try; then
10512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10518 # For the awk script, D is an array of macro values keyed by name,
10519 # likewise P contains macro parameters if any. Preserve backslash
10520 # newline sequences.
10522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10524 s/.\{148\}/&'"$ac_delim"'/g
10527 s/^[ ]*#[ ]*define[ ][ ]*/ /
10534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10541 D["\1"]=" \3\\\\\\n"\\/p
10543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10548 s/.\{148\}/&'"$ac_delim"'/g
10553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10558 ' <confdefs.h | sed '
10559 s/'"$ac_delim"'/"\\\
10560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10563 for (key in D) D_is_set[key] = 1
10566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10568 split(line, arg, " ")
10569 if (arg[1] == "#") {
10573 defundef = substr(arg[1], 2)
10576 split(mac1, mac2, "(") #)
10578 prefix = substr(line, 1, index(line, defundef) - 1)
10579 if (D_is_set[macro]) {
10580 # Preserve the white space surrounding the "#".
10581 print prefix "define", macro P[macro] D[macro]
10584 # Replace #undef with comments. This is necessary, for example,
10585 # in the case of _POSIX_SOURCE, which is predefined and required
10586 # on some systems where configure will not decide to define it.
10587 if (defundef == "undef") {
10588 print "/*", prefix defundef, macro, "*/"
10596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10598 fi # test -n "$CONFIG_HEADERS"
10601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10606 :[FHLC]) ac_mode=$ac_tag; continue;;
10608 case $ac_mode$ac_tag in
10610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10611 :[FH]-) ac_tag=-:-;;
10612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10629 -) ac_f="$ac_tmp/stdin";;
10630 *) # Look for the file first in the build tree, then in the source tree
10631 # (if the path is not absolute). The absolute path cannot be DOS-style,
10632 # because $ac_f cannot contain `:'.
10636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10641 as_fn_append ac_file_inputs " '$ac_f'"
10644 # Let's still pretend it is `configure' which instantiates (i.e., don't
10645 # use $as_me), people would be surprised to read:
10646 # /* config.h. Generated by config.status. */
10647 configure_input='Generated from '`
10648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10650 if test x"$ac_file" != x-; then
10651 configure_input="$ac_file. $configure_input"
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10653 $as_echo "$as_me: creating $ac_file" >&6;}
10655 # Neutralize special characters interpreted by sed in replacement strings.
10656 case $configure_input in #(
10657 *\&* | *\|* | *\\* )
10658 ac_sed_conf_input=`$as_echo "$configure_input" |
10659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10660 *) ac_sed_conf_input=$configure_input;;
10664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10670 ac_dir=`$as_dirname -- "$ac_file" ||
10671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10672 X"$ac_file" : 'X\(//\)[^/]' \| \
10673 X"$ac_file" : 'X\(//\)$' \| \
10674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10675 $as_echo X"$ac_file" |
10676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10680 /^X\(\/\/\)[^/].*/{
10693 as_dir="$ac_dir"; as_fn_mkdir_p
10697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10700 # A ".." for each directory in $ac_dir_suffix.
10701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10702 case $ac_top_builddir_sub in
10703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10707 ac_abs_top_builddir=$ac_pwd
10708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10709 # for backward compatibility:
10710 ac_top_builddir=$ac_top_build_prefix
10713 .) # We are building in place.
10715 ac_top_srcdir=$ac_top_builddir_sub
10716 ac_abs_top_srcdir=$ac_pwd ;;
10717 [\\/]* | ?:[\\/]* ) # Absolute name.
10718 ac_srcdir=$srcdir$ac_dir_suffix;
10719 ac_top_srcdir=$srcdir
10720 ac_abs_top_srcdir=$srcdir ;;
10721 *) # Relative name.
10722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10723 ac_top_srcdir=$ac_top_build_prefix$srcdir
10724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10738 # If the template does not know about datarootdir, expand it.
10739 # FIXME: This hack should be removed a few years after 2.60.
10740 ac_datarootdir_hack=; ac_datarootdir_seen=
10751 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10752 *datarootdir*) ac_datarootdir_seen=yes;;
10753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10755 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10758 ac_datarootdir_hack='
10759 s&@datadir@&$datadir&g
10760 s&@docdir@&$docdir&g
10761 s&@infodir@&$infodir&g
10762 s&@localedir@&$localedir&g
10763 s&@mandir@&$mandir&g
10764 s&\\\${datarootdir}&$datarootdir&g' ;;
10768 # Neutralize VPATH when `$srcdir' = `.'.
10769 # Shell code in configure.ac might set extrasub.
10770 # FIXME: do we really want to maintain this feature?
10771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10772 ac_sed_extra="$ac_vpsub
10775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10778 s|@configure_input@|$ac_sed_conf_input|;t t
10779 s&@top_builddir@&$ac_top_builddir_sub&;t t
10780 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10781 s&@srcdir@&$ac_srcdir&;t t
10782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10783 s&@top_srcdir@&$ac_top_srcdir&;t t
10784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10785 s&@builddir@&$ac_builddir&;t t
10786 s&@abs_builddir@&$ac_abs_builddir&;t t
10787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10788 $ac_datarootdir_hack
10790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10791 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10796 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10798 which seems to be undefined. Please make sure it is defined" >&5
10799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10800 which seems to be undefined. Please make sure it is defined" >&2;}
10802 rm -f "$ac_tmp/stdin"
10804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10813 if test x"$ac_file" != x-; then
10815 $as_echo "/* $configure_input */" \
10816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10817 } >"$ac_tmp/config.h" \
10818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10819 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10824 mv "$ac_tmp/config.h" "$ac_file" \
10825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10828 $as_echo "/* $configure_input */" \
10829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10830 || as_fn_error $? "could not create -" "$LINENO" 5
10834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10835 $as_echo "$as_me: executing $ac_file commands" >&6;}
10840 case $ac_file$ac_mode in
10841 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10842 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10843 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10844 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
10852 ac_clean_files=$ac_clean_files_save
10854 test $ac_write_fail = 0 ||
10855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10858 # configure is writing to config.log, and then calls config.status.
10859 # config.status does its own redirection, appending to config.log.
10860 # Unfortunately, on DOS this fails, as config.log is still kept open
10861 # by configure, so config.status won't be able to write to it; its
10862 # output is simply discarded. So we exec the FD to /dev/null,
10863 # effectively closing config.log, so it can be properly (re)opened and
10864 # appended to by config.status. When coming back to configure, we
10865 # need to make the FD available again.
10866 if test "$no_create" != yes; then
10868 ac_config_status_args=
10869 test "$silent" = yes &&
10870 ac_config_status_args="$ac_config_status_args --quiet"
10872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10875 # would make configure fail if this is the last instruction.
10876 $ac_cs_success || as_fn_exit 1
10880 # CONFIG_SUBDIRS section.
10882 if test "$no_recursion" != yes; then
10884 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10885 # so they do not pile up.
10886 ac_sub_configure_args=
10888 eval "set x $ac_configure_args"
10892 if test -n "$ac_prev"; then
10897 -cache-file | --cache-file | --cache-fil | --cache-fi \
10898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10899 ac_prev=cache_file ;;
10900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10904 --config-cache | -C)
10906 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10908 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10910 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10912 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10914 --disable-option-checking)
10918 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10920 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10924 # Always prepend --prefix to ensure using the same prefix
10925 # in subdir configurations.
10926 ac_arg="--prefix=$prefix"
10928 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10930 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10933 if test "$silent" = yes; then
10934 ac_sub_configure_args="--silent $ac_sub_configure_args"
10937 # Always prepend --disable-option-checking to silence warnings, since
10938 # different subdirs can have different --enable and --with options.
10939 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10942 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10944 # Do not complain, so a configure script can configure whichever
10945 # parts of a large source tree are present.
10946 test -d "$srcdir/$ac_dir" || continue
10948 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10950 $as_echo "$ac_msg" >&6
10951 as_dir="$ac_dir"; as_fn_mkdir_p
10955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10958 # A ".." for each directory in $ac_dir_suffix.
10959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10960 case $ac_top_builddir_sub in
10961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10965 ac_abs_top_builddir=$ac_pwd
10966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10967 # for backward compatibility:
10968 ac_top_builddir=$ac_top_build_prefix
10971 .) # We are building in place.
10973 ac_top_srcdir=$ac_top_builddir_sub
10974 ac_abs_top_srcdir=$ac_pwd ;;
10975 [\\/]* | ?:[\\/]* ) # Absolute name.
10976 ac_srcdir=$srcdir$ac_dir_suffix;
10977 ac_top_srcdir=$srcdir
10978 ac_abs_top_srcdir=$srcdir ;;
10979 *) # Relative name.
10980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10981 ac_top_srcdir=$ac_top_build_prefix$srcdir
10982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10989 # Check for guested configure; otherwise get Cygnus style configure.
10990 if test -f "$ac_srcdir/configure.gnu"; then
10991 ac_sub_configure=$ac_srcdir/configure.gnu
10992 elif test -f "$ac_srcdir/configure"; then
10993 ac_sub_configure=$ac_srcdir/configure
10994 elif test -f "$ac_srcdir/configure.in"; then
10995 # This should be Cygnus configure.
10996 ac_sub_configure=$ac_aux_dir/configure
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10999 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11003 # The recursion is here.
11004 if test -n "$ac_sub_configure"; then
11005 # Make the cache file name correct relative to the subdirectory.
11006 case $cache_file in
11007 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11008 *) # Relative name.
11009 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11012 { $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
11013 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11014 # The eval makes quoting arguments work.
11015 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11016 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11017 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11023 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11025 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}