2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
5 # Report bugs to <http://bugs.freeradius.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://bugs.freeradius.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='freeradius'
582 PACKAGE_TARNAME='freeradius'
583 PACKAGE_VERSION='$Id$'
584 PACKAGE_STRING='freeradius $Id$'
585 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
586 PACKAGE_URL='http://www.freeradius.org'
588 ac_unique_file="src/main/radiusd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 enable_option_checking=no
626 ac_subst_vars='LTLIBOBJS
687 RADIUSD_VERSION_STRING
715 program_transform_name
728 enable_option_checking
731 enable_strict_dependencies
745 with_experimental_modules
747 with_openssl_includes
748 with_openssl_libraries
750 with_rlm_FOO_include_dir
752 with_talloc_include_dir
754 with_rlm_pcre_lib_dir
755 with_rlm_pcre_include_dir
757 ac_precious_vars='build_alias
769 ac_subdirs_all='$mysubdirs'
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1309 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of freeradius $Id$:";;
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-developer enables features of interest to developers.
1384 --disable-largefile omit support for large files
1385 --enable-strict-dependencies fail configure on lack of module dependancy.
1386 --enable-werror causes the build to fail if any warnings are generated.
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1392 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1393 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1394 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1395 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1396 --with-threads Use threads, if available. (default=yes)
1397 --with-tcp Compile in TCP support. (default=yes)
1398 --with-vmps Compile in VMPS support. (default=yes)
1399 --with-dhcp Compile in DHCP support. (default=yes)
1400 --with-static-modules=QUOTED-MODULE-LIST
1401 --with-shared-libs Build dynamic libraries and link against them. (default=yes)
1402 --with-modules=QUOTED-MODULE-LIST
1403 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1404 --with-openssl Use OpenSSL. (default=yes)
1405 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1406 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1407 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1408 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1409 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1410 --with-talloc-include-dir=DIR
1411 Directory where the talloc includes may be found
1412 --with-talloc-lib-dir=DIR
1413 Directory where the talloc libs may be found
1414 --with-pcre-lib-dir=DIR directory for PCRE library files
1415 --with-pcre-include-dir=DIR directory for PCRE include files
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CXX C++ compiler command
1426 CXXFLAGS C++ compiler flags
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to <http://bugs.freeradius.org>.
1433 freeradius home page: <http://www.freeradius.org>.
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1463 .) # We are building in place.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1496 freeradius configure $Id$
1497 generated by GNU Autoconf 2.69
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_cxx_try_compile LINENO
1549 # ----------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_cxx_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_cxx_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_cxx_try_compile
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1628 ac_fn_c_check_header_mongrel ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1652 ac_header_compiler=no
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1668 ac_header_preproc=no
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ( $as_echo "## ----------------------------------------- ##
1694 ## Report this to http://bugs.freeradius.org ##
1695 ## ----------------------------------------- ##"
1696 ) | sed "s/^/$as_me: WARNING: /" >&2
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1704 eval "$3=\$ac_header_compiler"
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } # ac_fn_c_check_header_mongrel
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_compile
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 test -x conftest$ac_exeext
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1834 # -------------------------------------------
1835 # Tests whether TYPE exists after having included INCLUDES, setting cache
1836 # variable VAR accordingly.
1837 ac_fn_c_check_type ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1871 if ac_fn_c_try_compile "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 } # ac_fn_c_check_type
1887 # ac_fn_c_check_func LINENO FUNC VAR
1888 # ----------------------------------
1889 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1890 ac_fn_c_check_func ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902 #define $2 innocuous_$2
1904 /* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1910 # include <limits.h>
1912 # include <assert.h>
1917 /* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1924 /* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927 #if defined __stub_$2 || defined __stub___$2
1939 if ac_fn_c_try_link "$LINENO"; then :
1944 rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_func
1954 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1955 # ---------------------------------------------
1956 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1958 ac_fn_c_check_decl ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 as_decl_name=`echo $2|sed 's/ *(.*//'`
1962 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1964 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1974 #ifndef $as_decl_name
1976 (void) $as_decl_use;
1978 (void) $as_decl_name;
1986 if ac_fn_c_try_compile "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_decl
1999 cat >config.log <<_ACEOF
2000 This file contains any messages produced by compilers while
2001 running configure, to aid debugging if configure makes a mistake.
2003 It was created by freeradius $as_me $Id$, which was
2004 generated by GNU Autoconf 2.69. Invocation command line was
2016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2028 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 $as_echo "PATH: $as_dir"
2056 # Keep a trace of the command line.
2057 # Strip out --no-create and --no-recursion so they do not pile up.
2058 # Strip out --silent because we don't want to record it for future runs.
2059 # Also quote any args containing shell meta-characters.
2060 # Make two passes to allow for proper duplicate-argument suppression.
2064 ac_must_keep_next=false
2070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2072 | -silent | --silent | --silen | --sile | --sil)
2075 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2080 as_fn_append ac_configure_args1 " '$ac_arg'"
2081 if test $ac_must_keep_next = true; then
2082 ac_must_keep_next=false # Got value, back to normal.
2085 *=* | --config-cache | -C | -disable-* | --disable-* \
2086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2088 | -with-* | --with-* | -without-* | --without-* | --x)
2089 case "$ac_configure_args0 " in
2090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2093 -* ) ac_must_keep_next=true ;;
2096 as_fn_append ac_configure_args " '$ac_arg'"
2101 { ac_configure_args0=; unset ac_configure_args0;}
2102 { ac_configure_args1=; unset ac_configure_args1;}
2104 # When interrupted or exit'd, cleanup temporary files, and complete
2105 # config.log. We remove comments because anyway the quotes in there
2106 # would cause problems or look ugly.
2107 # WARNING: Use '\'' to represent an apostrophe within the trap.
2108 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2109 trap 'exit_status=$?
2110 # Save into config.log some information that might help in debugging.
2114 $as_echo "## ---------------- ##
2115 ## Cache variables. ##
2116 ## ---------------- ##"
2118 # The following way of writing the cache mishandles newlines in values,
2120 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121 eval ac_val=\$$ac_var
2125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129 _ | IFS | as_nl) ;; #(
2130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131 *) { eval $ac_var=; unset $ac_var;} ;;
2136 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137 *${as_nl}ac_space=\ *)
2139 "s/'\''/'\''\\\\'\'''\''/g;
2140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150 $as_echo "## ----------------- ##
2151 ## Output variables. ##
2152 ## ----------------- ##"
2154 for ac_var in $ac_subst_vars
2156 eval ac_val=\$$ac_var
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 $as_echo "$ac_var='\''$ac_val'\''"
2164 if test -n "$ac_subst_files"; then
2165 $as_echo "## ------------------- ##
2166 ## File substitutions. ##
2167 ## ------------------- ##"
2169 for ac_var in $ac_subst_files
2171 eval ac_val=\$$ac_var
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175 $as_echo "$ac_var='\''$ac_val'\''"
2180 if test -s confdefs.h; then
2181 $as_echo "## ----------- ##
2188 test "$ac_signal" != 0 &&
2189 $as_echo "$as_me: caught signal $ac_signal"
2190 $as_echo "$as_me: exit $exit_status"
2192 rm -f core *.core core.conftest.* &&
2193 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2196 for ac_signal in 1 2 13 15; do
2197 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2202 rm -f -r conftest* confdefs.h
2204 $as_echo "/* confdefs.h */" > confdefs.h
2206 # Predefined preprocessor variables.
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_NAME "$PACKAGE_NAME"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_STRING "$PACKAGE_STRING"
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_URL "$PACKAGE_URL"
2233 # Let the site file select an alternate cache file if it wants to.
2234 # Prefer an explicitly selected file to automatically selected ones.
2237 if test -n "$CONFIG_SITE"; then
2238 # We do not want a PATH search for config.site.
2239 case $CONFIG_SITE in #((
2240 -*) ac_site_file1=./$CONFIG_SITE;;
2241 */*) ac_site_file1=$CONFIG_SITE;;
2242 *) ac_site_file1=./$CONFIG_SITE;;
2244 elif test "x$prefix" != xNONE; then
2245 ac_site_file1=$prefix/share/config.site
2246 ac_site_file2=$prefix/etc/config.site
2248 ac_site_file1=$ac_default_prefix/share/config.site
2249 ac_site_file2=$ac_default_prefix/etc/config.site
2251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2253 test "x$ac_site_file" = xNONE && continue
2254 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2257 sed 's/^/| /' "$ac_site_file" >&5
2259 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 as_fn_error $? "failed to load site script $ac_site_file
2262 See \`config.log' for more details" "$LINENO" 5; }
2266 if test -r "$cache_file"; then
2267 # Some versions of bash will fail to source /dev/null (special files
2268 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2269 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271 $as_echo "$as_me: loading cache $cache_file" >&6;}
2273 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274 *) . "./$cache_file";;
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279 $as_echo "$as_me: creating cache $cache_file" >&6;}
2283 # Check that the precious variables saved in the cache have kept the same
2285 ac_cache_corrupted=false
2286 for ac_var in $ac_precious_vars; do
2287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288 eval ac_new_set=\$ac_env_${ac_var}_set
2289 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290 eval ac_new_val=\$ac_env_${ac_var}_value
2291 case $ac_old_set,$ac_new_set in
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299 ac_cache_corrupted=: ;;
2302 if test "x$ac_old_val" != "x$ac_new_val"; then
2303 # differences in whitespace do not lead to failure.
2304 ac_old_val_w=`echo x $ac_old_val`
2305 ac_new_val_w=`echo x $ac_new_val`
2306 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309 ac_cache_corrupted=:
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313 eval $ac_var=\$ac_old_val
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2316 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2318 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2321 # Pass precious variables to config.status.
2322 if test "$ac_new_set" = set; then
2324 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 *) ac_arg=$ac_var=$ac_new_val ;;
2327 case " $ac_configure_args " in
2328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2329 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2333 if $ac_cache_corrupted; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2340 ## -------------------- ##
2341 ## Main body of script. ##
2342 ## -------------------- ##
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2365 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2366 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2367 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2369 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2370 -v minor="$RADIUSD_MINOR_VERSION" \
2371 -v incrm="$RADIUSD_INCRM_VERSION" \
2372 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2374 RADIUSD_VERSION_STRING=`cat VERSION`
2379 cat >>confdefs.h <<_ACEOF
2380 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2384 cat >>confdefs.h <<_ACEOF
2385 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2390 # Check whether --enable-developer was given.
2391 if test "${enable_developer+set}" = set; then :
2392 enableval=$enable_developer; case "$enableval" in
2403 if test -d $srcdir/.git; then
2404 if test "x$developer" != "xno"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2406 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2411 if test "x$developer" = "xyes"; then
2417 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418 if test -f "$ac_dir/install-sh"; then
2420 ac_install_sh="$ac_aux_dir/install-sh -c"
2422 elif test -f "$ac_dir/install.sh"; then
2424 ac_install_sh="$ac_aux_dir/install.sh -c"
2426 elif test -f "$ac_dir/shtool"; then
2428 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 if test -z "$ac_aux_dir"; then
2433 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2436 # These three variables are undocumented and unsupported,
2437 # and are intended to be withdrawn in a future Autoconf release.
2438 # They can cause serious problems if a builder's source tree is in a directory
2439 # whose full name contains unusual characters.
2440 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2441 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2442 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2445 # Make sure we can run config.sub.
2446 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2447 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2450 $as_echo_n "checking build system type... " >&6; }
2451 if ${ac_cv_build+:} false; then :
2452 $as_echo_n "(cached) " >&6
2454 ac_build_alias=$build_alias
2455 test "x$ac_build_alias" = x &&
2456 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2457 test "x$ac_build_alias" = x &&
2458 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2459 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2464 $as_echo "$ac_cv_build" >&6; }
2465 case $ac_cv_build in
2467 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2470 ac_save_IFS=$IFS; IFS='-'
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2480 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2484 $as_echo_n "checking host system type... " >&6; }
2485 if ${ac_cv_host+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 if test "x$host_alias" = x; then
2489 ac_cv_host=$ac_cv_build
2491 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2492 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2497 $as_echo "$ac_cv_host" >&6; }
2500 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2503 ac_save_IFS=$IFS; IFS='-'
2509 # Remember, the first character of IFS is used to create $*,
2510 # except with old shells:
2513 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2517 $as_echo_n "checking target system type... " >&6; }
2518 if ${ac_cv_target+:} false; then :
2519 $as_echo_n "(cached) " >&6
2521 if test "x$target_alias" = x; then
2522 ac_cv_target=$ac_cv_host
2524 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2530 $as_echo "$ac_cv_target" >&6; }
2531 case $ac_cv_target in
2533 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2535 target=$ac_cv_target
2536 ac_save_IFS=$IFS; IFS='-'
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2546 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2549 # The aliases save the names the user supplied, while $host etc.
2550 # will get canonicalized.
2551 test -n "$target_alias" &&
2552 test "$program_prefix$program_suffix$program_transform_name" = \
2554 program_prefix=${target_alias}-
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_CC+:} false; then :
2568 $as_echo_n "(cached) " >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2601 if test -z "$ac_cv_prog_CC"; then
2603 # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_ac_ct_CC="gcc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633 $as_echo "$ac_ct_CC" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646 ac_tool_warned=yes ;;
2654 if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}cc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_CC+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_CC="${ac_tool_prefix}cc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686 $as_echo "$CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2695 if test -z "$CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 if test $ac_prog_rejected = yes; then
2727 # We found a bogon in the path, so make sure we never use it.
2728 set dummy $ac_cv_prog_CC
2730 if test $# != 0; then
2731 # We chose a different compiler from the bogus one.
2732 # However, it has the same basename, so the bogon will be chosen
2733 # first if we set CC to just the basename; use the full file name.
2735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 if test -n "$ac_tool_prefix"; then
2753 for ac_prog in cl.exe
2755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 if test -n "$CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 $as_echo "$CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$CC" && break
2795 if test -z "$CC"; then
2797 for ac_prog in cl.exe
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_CC="$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2836 test -n "$ac_ct_CC" && break
2839 if test "x$ac_ct_CC" = x; then
2842 case $cross_compiling:$ac_tool_warned in
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2855 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details" "$LINENO" 5; }
2860 # Provide some information about the compiler.
2861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2864 for ac_option in --version -v -V -qversion; do
2865 { { ac_try="$ac_compiler $ac_option >&5"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2874 if test -s conftest.err; then
2876 ... rest of stderr output deleted ...
2877 10q' conftest.err >conftest.er1
2878 cat conftest.er1 >&5
2880 rm -f conftest.er1 conftest.err
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 ac_clean_files_save=$ac_clean_files
2897 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2902 $as_echo_n "checking whether the C compiler works... " >&6; }
2903 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905 # The possible output files:
2906 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2909 for ac_file in $ac_files
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2913 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 if { { ac_try="$ac_link_default"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link_default") 2>&5
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2930 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2931 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2932 # so that the user can short-circuit this test for compilers unknown to
2934 for ac_file in $ac_files ''
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2941 # We found the default executable, but exeext='' is most
2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 # We set ac_cv_exeext here because the later test for it is not
2950 # safe: cross compilers may not add the suffix if given an `-o'
2951 # argument, so we may need to know it at that point already.
2952 # Even if this section looks crufty: it has the advantage of
2959 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964 if test -z "$ac_file"; then :
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error 77 "C compiler cannot create executables
2973 See \`config.log' for more details" "$LINENO" 5; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2979 $as_echo_n "checking for C compiler default output file name... " >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2981 $as_echo "$ac_file" >&6; }
2982 ac_exeext=$ac_cv_exeext
2984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2985 ac_clean_files=$ac_clean_files_save
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2987 $as_echo_n "checking for suffix of executables... " >&6; }
2988 if { { ac_try="$ac_link"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_link") 2>&5
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }; then :
2999 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3000 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3001 # work properly (i.e., refer to `conftest.exe'), while it won't with
3003 for ac_file in conftest.exe conftest conftest.*; do
3004 test -f "$ac_file" || continue
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3016 See \`config.log' for more details" "$LINENO" 5; }
3018 rm -f conftest conftest$ac_cv_exeext
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3020 $as_echo "$ac_cv_exeext" >&6; }
3022 rm -f conftest.$ac_ext
3023 EXEEXT=$ac_cv_exeext
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3031 FILE *f = fopen ("conftest.out", "w");
3032 return ferror (f) || fclose (f) != 0;
3038 ac_clean_files="$ac_clean_files conftest.out"
3039 # Check that the compiler produces executables we can run. If not, either
3040 # the compiler is broken, or we cross compile.
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3042 $as_echo_n "checking whether we are cross compiling... " >&6; }
3043 if test "$cross_compiling" != yes; then
3044 { { ac_try="$ac_link"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }
3055 if { ac_try='./conftest$ac_cv_exeext'
3056 { { case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_try") 2>&5
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; }; then
3068 if test "$cross_compiling" = maybe; then
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "cannot run C compiled programs.
3074 If you meant to cross compile, use \`--host'.
3075 See \`config.log' for more details" "$LINENO" 5; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3080 $as_echo "$cross_compiling" >&6; }
3082 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3083 ac_clean_files=$ac_clean_files_save
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if ${ac_cv_objext+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try="$ac_compile"
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_compile") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details" "$LINENO" 5; }
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if ${ac_cv_c_compiler_gnu+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3154 if ac_fn_c_try_compile "$LINENO"; then :
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if ${ac_cv_prog_cc_g+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3192 if ac_fn_c_try_compile "$LINENO"; then :
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3207 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3244 if test "$GCC" = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if ${ac_cv_prog_cc_c89+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 ac_cv_prog_cc_c89=no
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3263 struct buf { int x; };
3264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3265 static char *e (p, i)
3271 static char *f (char * (*g) (char **, int), char **p, ...)
3276 s = g (p, va_arg (v,int));
3281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3282 function prototypes and stuff, but not '\xHH' hex character constants.
3283 These don't provoke an error unfortunately, instead are silently treated
3284 as 'x'. The following induces an error, until -std is added to get
3285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3286 array size at least. It's necessary to write '\x00'==0 to get something
3287 that's true only with -std. */
3288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3291 inside strings and character constants. */
3293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295 int test (int i, double x);
3296 struct s1 {int (*f) (int a);};
3297 struct s2 {int (*f) (double a);};
3298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312 CC="$ac_save_CC $ac_arg"
3313 if ac_fn_c_try_compile "$LINENO"; then :
3314 ac_cv_prog_cc_c89=$ac_arg
3316 rm -f core conftest.err conftest.$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 rm -f conftest.$ac_ext
3324 case "x$ac_cv_prog_cc_c89" in
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3327 $as_echo "none needed" >&6; } ;;
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3330 $as_echo "unsupported" >&6; } ;;
3332 CC="$CC $ac_cv_prog_cc_c89"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3336 if test "x$ac_cv_prog_cc_c89" != xno; then :
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 ac_cpp='$CXXCPP $CPPFLAGS'
3348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3351 if test -z "$CXX"; then
3352 if test -n "$CCC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_CXX+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CXX"; then
3366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CXX"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3388 $as_echo "$CXX" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3395 test -n "$CXX" && break
3398 if test -z "$CXX"; then
3400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$ac_ct_CXX"; then
3410 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CXX="$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3430 if test -n "$ac_ct_CXX"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3432 $as_echo "$ac_ct_CXX" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439 test -n "$ac_ct_CXX" && break
3442 if test "x$ac_ct_CXX" = x; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3461 for ac_option in --version -v -V -qversion; do
3462 { { ac_try="$ac_compiler $ac_option >&5"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471 if test -s conftest.err; then
3473 ... rest of stderr output deleted ...
3474 10q' conftest.err >conftest.er1
3475 cat conftest.er1 >&5
3477 rm -f conftest.er1 conftest.err
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3484 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3501 if ac_fn_cxx_try_compile "$LINENO"; then :
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3511 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3517 ac_test_CXXFLAGS=${CXXFLAGS+set}
3518 ac_save_CXXFLAGS=$CXXFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3520 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3521 if ${ac_cv_prog_cxx_g+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3525 ac_cxx_werror_flag=yes
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_cxx_try_compile "$LINENO"; then :
3540 ac_cv_prog_cxx_g=yes
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3554 if ac_fn_cxx_try_compile "$LINENO"; then :
3557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 if ac_fn_cxx_try_compile "$LINENO"; then :
3571 ac_cv_prog_cxx_g=yes
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3581 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3582 if test "$ac_test_CXXFLAGS" = set; then
3583 CXXFLAGS=$ac_save_CXXFLAGS
3584 elif test $ac_cv_prog_cxx_g = yes; then
3585 if test "$GXX" = yes; then
3591 if test "$GXX" = yes; then
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3611 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3612 # On Suns, sometimes $CPP names a directory.
3613 if test -n "$CPP" && test -d "$CPP"; then
3616 if test -z "$CPP"; then
3617 if ${ac_cv_prog_CPP+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 # Double quotes because CPP needs to be expanded
3621 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3624 for ac_c_preproc_warn_flag in '' yes
3626 # Use a header file that comes with gcc, so configuring glibc
3627 # with a fresh cross-compiler works.
3628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 # <limits.h> exists even on freestanding compilers.
3630 # On the NeXT, cc -E runs the code through the compiler's parser,
3631 # not just through cpp. "Syntax error" is here to catch this case.
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3635 # include <limits.h>
3637 # include <assert.h>
3641 if ac_fn_c_try_cpp "$LINENO"; then :
3644 # Broken: fails on valid input.
3647 rm -f conftest.err conftest.i conftest.$ac_ext
3649 # OK, works on sane cases. Now check whether nonexistent headers
3650 # can be detected and how.
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653 #include <ac_nonexistent.h>
3655 if ac_fn_c_try_cpp "$LINENO"; then :
3656 # Broken: success on invalid input.
3659 # Passes both tests.
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.i conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then :
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3681 $as_echo "$CPP" >&6; }
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3694 # include <limits.h>
3696 # include <assert.h>
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: fails on valid input.
3706 rm -f conftest.err conftest.i conftest.$ac_ext
3708 # OK, works on sane cases. Now check whether nonexistent headers
3709 # can be detected and how.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <ac_nonexistent.h>
3714 if ac_fn_c_try_cpp "$LINENO"; then :
3715 # Broken: success on invalid input.
3718 # Passes both tests.
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.i conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then :
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details" "$LINENO" 5; }
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3744 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3745 if ${ac_cv_path_GREP+:} false; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -z "$GREP"; then
3749 ac_path_GREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in grep ggrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759 as_fn_executable_p "$ac_path_GREP" || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761 # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3764 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3767 $as_echo_n 0123456789 >"conftest.in"
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 $as_echo 'GREP' >> "conftest.nl"
3774 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 as_fn_arith $ac_count + 1 && ac_count=$as_val
3777 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_GREP="$ac_path_GREP"
3780 ac_path_GREP_max=$ac_count
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788 $ac_path_GREP_found && break 3
3793 if test -z "$ac_cv_path_GREP"; then
3794 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3797 ac_cv_path_GREP=$GREP
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3802 $as_echo "$ac_cv_path_GREP" >&6; }
3803 GREP="$ac_cv_path_GREP"
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3807 $as_echo_n "checking for egrep... " >&6; }
3808 if ${ac_cv_path_EGREP+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812 then ac_cv_path_EGREP="$GREP -E"
3814 if test -z "$EGREP"; then
3815 ac_path_EGREP_found=false
3816 # Loop through the user's path and test for each of PROGNAME-LIST
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821 test -z "$as_dir" && as_dir=.
3822 for ac_prog in egrep; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3825 as_fn_executable_p "$ac_path_EGREP" || continue
3826 # Check for GNU ac_path_EGREP and select it if it is found.
3827 # Check for GNU $ac_path_EGREP
3828 case `"$ac_path_EGREP" --version 2>&1` in
3830 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3833 $as_echo_n 0123456789 >"conftest.in"
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 $as_echo 'EGREP' >> "conftest.nl"
3840 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 as_fn_arith $ac_count + 1 && ac_count=$as_val
3843 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_EGREP="$ac_path_EGREP"
3846 ac_path_EGREP_max=$ac_count
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 $ac_path_EGREP_found && break 3
3859 if test -z "$ac_cv_path_EGREP"; then
3860 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3863 ac_cv_path_EGREP=$EGREP
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3869 $as_echo "$ac_cv_path_EGREP" >&6; }
3870 EGREP="$ac_cv_path_EGREP"
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3874 $as_echo_n "checking for ANSI C header files... " >&6; }
3875 if ${ac_cv_header_stdc+:} false; then :
3876 $as_echo_n "(cached) " >&6
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_header_stdc=yes
3896 ac_cv_header_stdc=no
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 if test $ac_cv_header_stdc = yes; then
3901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "memchr" >/dev/null 2>&1; then :
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 $EGREP "free" >/dev/null 2>&1; then :
3928 ac_cv_header_stdc=no
3934 if test $ac_cv_header_stdc = yes; then
3935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936 if test "$cross_compiling" = yes; then :
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 # define ISLOWER(c) \
3948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3966 if ac_fn_c_try_run "$LINENO"; then :
3969 ac_cv_header_stdc=no
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3972 conftest.$ac_objext conftest.beam conftest.$ac_ext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3978 $as_echo "$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987 inttypes.h stdint.h unistd.h
3989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3993 cat >>confdefs.h <<_ACEOF
3994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4003 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4004 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4011 if test "$MINIX" = yes; then
4013 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4016 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4019 $as_echo "#define _MINIX 1" >>confdefs.h
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4025 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4026 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4032 # define __EXTENSIONS__ 1
4033 $ac_includes_default
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_cv_safe_to_define___extensions__=yes
4045 ac_cv_safe_to_define___extensions__=no
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4050 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4051 test $ac_cv_safe_to_define___extensions__ = yes &&
4052 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4054 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4056 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4058 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4060 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4065 if test $ac_cv_c_compiler_gnu = yes; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4067 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4068 if ${ac_cv_prog_gcc_traditional+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 ac_pattern="Autoconf.*'x'"
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4079 ac_cv_prog_gcc_traditional=yes
4081 ac_cv_prog_gcc_traditional=no
4086 if test $ac_cv_prog_gcc_traditional = no; then
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4094 ac_cv_prog_gcc_traditional=yes
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4101 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4102 if test $ac_cv_prog_gcc_traditional = yes; then
4103 CC="$CC -traditional"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4108 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4109 if ${ac_cv_prog_suncc+:} false; then :
4110 $as_echo_n "(cached) " >&6
4112 cat > conftest.c <<EOF
4117 if { ac_try='${CC-cc} -E conftest.c'
4118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4123 ac_cv_prog_suncc=yes
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4129 $as_echo "$ac_cv_prog_suncc" >&6; }
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_RANLIB+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$RANLIB"; then
4139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 RANLIB=$ac_cv_prog_RANLIB
4159 if test -n "$RANLIB"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4161 $as_echo "$RANLIB" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4169 if test -z "$ac_cv_prog_RANLIB"; then
4170 ac_ct_RANLIB=$RANLIB
4171 # Extract the first word of "ranlib", so it can be a program name with args.
4172 set dummy ranlib; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4176 $as_echo_n "(cached) " >&6
4178 if test -n "$ac_ct_RANLIB"; then
4179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_RANLIB="ranlib"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4199 if test -n "$ac_ct_RANLIB"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4201 $as_echo "$ac_ct_RANLIB" >&6; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4207 if test "x$ac_ct_RANLIB" = x; then
4210 case $cross_compiling:$ac_tool_warned in
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214 ac_tool_warned=yes ;;
4216 RANLIB=$ac_ct_RANLIB
4219 RANLIB="$ac_cv_prog_RANLIB"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4225 $as_echo_n "checking if compiler is clang... " >&6; }
4226 if ${ax_cv_cc_clang+:} false; then :
4227 $as_echo_n "(cached) " >&6
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"; then :
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4255 $as_echo "$ax_cv_cc_clang" >&6; }
4258 if test "x$GCC" = "xyes"; then
4259 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4264 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4265 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4266 $as_echo_n "(cached) " >&6
4270 CFLAGS_SAVED=$CFLAGS
4271 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ax_cv_cc_qunused_arguments_flag="yes"
4293 ax_cv_cc_qunused_arguments_flag="no"
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 CFLAGS="$CFLAGS_SAVED"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4307 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4309 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4310 CFLAGS="$CFLAGS -Qunused-arguments"
4311 LDFLAGS="$LDFLAGS -Qunused-arguments"
4314 # Check whether --enable-largefile was given.
4315 if test "${enable_largefile+set}" = set; then :
4316 enableval=$enable_largefile;
4319 if test "$enable_largefile" != no; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4322 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4323 if ${ac_cv_sys_largefile_CC+:} false; then :
4324 $as_echo_n "(cached) " >&6
4326 ac_cv_sys_largefile_CC=no
4327 if test "$GCC" != yes; then
4330 # IRIX 6.2 and later do not support large files by default,
4331 # so use the C compiler's -n32 option if that helps.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 /* Check that off_t can represent 2**63 - 1 correctly.
4336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337 since some C++ compilers masquerading as C compilers
4338 incorrectly reject 9223372036854775807. */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341 && LARGE_OFF_T % 2147483647 == 1)
4351 if ac_fn_c_try_compile "$LINENO"; then :
4354 rm -f core conftest.err conftest.$ac_objext
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_cv_sys_largefile_CC=' -n32'; break
4359 rm -f core conftest.err conftest.$ac_objext
4363 rm -f conftest.$ac_ext
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4367 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4368 if test "$ac_cv_sys_largefile_CC" != no; then
4369 CC=$CC$ac_cv_sys_largefile_CC
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4373 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4374 if ${ac_cv_sys_file_offset_bits+:} false; then :
4375 $as_echo_n "(cached) " >&6
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <sys/types.h>
4381 /* Check that off_t can represent 2**63 - 1 correctly.
4382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4383 since some C++ compilers masquerading as C compilers
4384 incorrectly reject 9223372036854775807. */
4385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4387 && LARGE_OFF_T % 2147483647 == 1)
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_sys_file_offset_bits=no; break
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #define _FILE_OFFSET_BITS 64
4404 #include <sys/types.h>
4405 /* Check that off_t can represent 2**63 - 1 correctly.
4406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4407 since some C++ compilers masquerading as C compilers
4408 incorrectly reject 9223372036854775807. */
4409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4411 && LARGE_OFF_T % 2147483647 == 1)
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422 ac_cv_sys_file_offset_bits=64; break
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_cv_sys_file_offset_bits=unknown
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4430 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4431 case $ac_cv_sys_file_offset_bits in #(
4434 cat >>confdefs.h <<_ACEOF
4435 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4440 if test $ac_cv_sys_file_offset_bits = unknown; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4442 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4443 if ${ac_cv_sys_large_files+:} false; then :
4444 $as_echo_n "(cached) " >&6
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <sys/types.h>
4450 /* Check that off_t can represent 2**63 - 1 correctly.
4451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4452 since some C++ compilers masquerading as C compilers
4453 incorrectly reject 9223372036854775807. */
4454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4456 && LARGE_OFF_T % 2147483647 == 1)
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_sys_large_files=no; break
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #define _LARGE_FILES 1
4473 #include <sys/types.h>
4474 /* Check that off_t can represent 2**63 - 1 correctly.
4475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4476 since some C++ compilers masquerading as C compilers
4477 incorrectly reject 9223372036854775807. */
4478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4480 && LARGE_OFF_T % 2147483647 == 1)
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_sys_large_files=1; break
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_sys_large_files=unknown
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4499 $as_echo "$ac_cv_sys_large_files" >&6; }
4500 case $ac_cv_sys_large_files in #(
4503 cat >>confdefs.h <<_ACEOF
4504 #define _LARGE_FILES $ac_cv_sys_large_files
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4516 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4517 if ${ac_cv_c_bigendian+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 ac_cv_c_bigendian=unknown
4521 # See if we're dealing with a universal compiler.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #ifndef __APPLE_CC__
4525 not a universal capable compiler
4530 if ac_fn_c_try_compile "$LINENO"; then :
4532 # Check for potential -arch flags. It is not universal unless
4533 # there are at least two -arch flags with different values.
4536 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4537 if test -n "$ac_prev"; then
4539 i?86 | x86_64 | ppc | ppc64)
4540 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4543 ac_cv_c_bigendian=universal
4549 elif test "x$ac_word" = "x-arch"; then
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 if test $ac_cv_c_bigendian = unknown; then
4556 # See if sys/param.h defines the BYTE_ORDER macro.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <sys/types.h>
4560 #include <sys/param.h>
4565 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4566 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579 #include <sys/types.h>
4580 #include <sys/param.h>
4585 #if BYTE_ORDER != BIG_ENDIAN
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_c_bigendian=yes
4596 ac_cv_c_bigendian=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 if test $ac_cv_c_bigendian = unknown; then
4603 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4611 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 # It does; now see whether it defined to _BIG_ENDIAN or not.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_c_bigendian=yes
4639 ac_cv_c_bigendian=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test $ac_cv_c_bigendian = unknown; then
4646 # Compile a test program.
4647 if test "$cross_compiling" = yes; then :
4648 # Try to guess by grepping values from an object file.
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 short int ascii_mm[] =
4652 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4653 short int ascii_ii[] =
4654 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4655 int use_ascii (int i) {
4656 return ascii_mm[i] + ascii_ii[i];
4658 short int ebcdic_ii[] =
4659 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660 short int ebcdic_mm[] =
4661 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4662 int use_ebcdic (int i) {
4663 return ebcdic_mm[i] + ebcdic_ii[i];
4670 return use_ascii (foo) == use_ebcdic (foo);
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4677 ac_cv_c_bigendian=yes
4679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4680 if test "$ac_cv_c_bigendian" = unknown; then
4681 ac_cv_c_bigendian=no
4683 # finding both strings is unlikely to happen, but who knows?
4684 ac_cv_c_bigendian=unknown
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692 $ac_includes_default
4697 /* Are we little or big endian? From Harbison&Steele. */
4701 char c[sizeof (long int)];
4704 return u.c[sizeof (long int) - 1] == 1;
4710 if ac_fn_c_try_run "$LINENO"; then :
4711 ac_cv_c_bigendian=no
4713 ac_cv_c_bigendian=yes
4715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4716 conftest.$ac_objext conftest.beam conftest.$ac_ext
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4722 $as_echo "$ac_cv_c_bigendian" >&6; }
4723 case $ac_cv_c_bigendian in #(
4725 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4731 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4735 as_fn_error $? "unknown endianness
4736 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4740 # Extract the first word of "gmake", so it can be a program name with args.
4741 set dummy gmake; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_GMAKE+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$GMAKE"; then
4748 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_GMAKE="yes"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4768 GMAKE=$ac_cv_prog_GMAKE
4769 if test -n "$GMAKE"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4771 $as_echo "$GMAKE" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4778 if test $GMAKE = no; then
4779 # Extract the first word of "make", so it can be a program name with args.
4780 set dummy make; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_MAKE+:} false; then :
4784 $as_echo_n "(cached) " >&6
4788 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4810 MAKE=$ac_cv_path_MAKE
4811 if test -n "$MAKE"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4813 $as_echo "$MAKE" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4821 # Extract the first word of "gmake", so it can be a program name with args.
4822 set dummy gmake; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_path_MAKE+:} false; then :
4826 $as_echo_n "(cached) " >&6
4830 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4852 MAKE=$ac_cv_path_MAKE
4853 if test -n "$MAKE"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4855 $as_echo "$MAKE" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4863 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4864 if test -z "$makever"; then
4865 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
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4870 $as_echo_n "checking number of system cores... " >&6; }
4871 if ${ax_cv_system_cores+:} false; then :
4872 $as_echo_n "(cached) " >&6
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 if test "$cross_compiling" = yes; then :
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4891 # include <windows.h>
4893 # include <sys/param.h>
4894 # include <sys/sysctl.h>
4896 # include <unistd.h>
4899 int main (int argc, char *argv[])
4904 SYSTEM_INFO sysinfo;
4905 GetSystemInfo(&sysinfo);
4907 count = sysinfo.dwNumberOfProcessors;
4914 nm[1] = HW_AVAILCPU;
4915 sysctl(nm, 2, &count, &len, NULL, 0);
4919 sysctl(nm, 2, &count, &len, NULL, 0);
4926 count = sysconf(_SC_NPROCESSORS_ONLN);
4933 if ac_fn_c_try_run "$LINENO"; then :
4934 ax_cv_system_cores=$?
4936 ax_cv_system_cores=$?
4938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4939 conftest.$ac_objext conftest.beam conftest.$ac_ext
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
4951 $as_echo "$ax_cv_system_cores" >&6; }
4956 # Extract the first word of "git", so it can be a program name with args.
4957 set dummy git; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_GIT+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$GIT"; then
4964 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_GIT="yes"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4985 if test -n "$GIT"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4987 $as_echo "$GIT" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4996 # Check whether --enable-strict-dependencies was given.
4997 if test "${enable_strict_dependencies+set}" = set; then :
4998 enableval=$enable_strict_dependencies;
5002 # Check whether --enable-werror was given.
5003 if test "${enable_werror+set}" = set; then :
5004 enableval=$enable_werror; case "$enableval" in
5015 docdir='${datadir}/doc/freeradius'
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5017 $as_echo_n "checking docdir... " >&6; }
5019 # Check whether --with-docdir was given.
5020 if test "${with_docdir+set}" = set; then :
5021 withval=$with_docdir; case "$withval" in
5027 [\\/$]* | ?:[\\/]* )
5031 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5039 $as_echo "$docdir" >&6; }
5040 if test "x$docdir" = xno; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5042 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5045 logdir='${localstatedir}/log/radius'
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5047 $as_echo_n "checking logdir... " >&6; }
5049 # Check whether --with-logdir was given.
5050 if test "${with_logdir+set}" = set; then :
5051 withval=$with_logdir; case "$withval" in
5053 as_fn_error $? "Need logdir" "$LINENO" 5
5057 [\\/$]* | ?:[\\/]* )
5061 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5069 $as_echo "$logdir" >&6; }
5071 radacctdir='${logdir}/radacct'
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5073 $as_echo_n "checking radacctdir... " >&6; }
5075 # Check whether --with-radacctdir was given.
5076 if test "${with_radacctdir+set}" = set; then :
5077 withval=$with_radacctdir; case "$withval" in
5079 as_fn_error $? "Need radacctdir" "$LINENO" 5
5083 [\\/$]* | ?:[\\/]* )
5084 radacctdir="$withval"
5087 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5095 $as_echo "$radacctdir" >&6; }
5097 raddbdir='${sysconfdir}/raddb'
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5099 $as_echo_n "checking raddbdir... " >&6; }
5101 # Check whether --with-raddbdir was given.
5102 if test "${with_raddbdir+set}" = set; then :
5103 withval=$with_raddbdir; case "$withval" in
5105 as_fn_error $? "Need raddbdir" "$LINENO" 5
5109 [\\/$]* | ?:[\\/]* )
5113 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5121 $as_echo "$raddbdir" >&6; }
5123 modconfdir="$raddbdir/mods-config"
5126 WITH_ASCEND_BINARY=yes
5128 # Check whether --with-ascend-binary was given.
5129 if test "${with_ascend_binary+set}" = set; then :
5130 withval=$with_ascend_binary; case "$withval" in
5134 WITH_ASCEND_BINARY=no
5139 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5141 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5147 # Check whether --with-threads was given.
5148 if test "${with_threads+set}" = set; then :
5149 withval=$with_threads; case "$withval" in
5161 # Check whether --with-tcp was given.
5162 if test "${with_tcp+set}" = set; then :
5163 withval=$with_tcp; case "$withval" in
5172 if test "x$WITH_TCP" = "xyes"; then
5174 $as_echo "#define WITH_TCP 1" >>confdefs.h
5180 # Check whether --with-vmps was given.
5181 if test "${with_vmps+set}" = set; then :
5182 withval=$with_vmps; case "$withval" in
5191 if test "x$WITH_VMPS" = "xyes"; then
5193 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5199 # Check whether --with-dhcp was given.
5200 if test "${with_dhcp+set}" = set; then :
5201 withval=$with_dhcp; case "$withval" in
5210 if test "x$WITH_DHCP" = "xyes"; then
5212 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5218 # Check whether --with-static_modules was given.
5219 if test "${with_static_modules+set}" = set; then :
5220 withval=$with_static_modules;
5221 for i in $withval; do
5222 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5230 # Check whether --with-static was given.
5231 if test "${with_static+set}" = set; then :
5232 withval=$with_static; case "$withval" in
5244 # Check whether --with-modules was given.
5245 if test "${with_modules+set}" = set; then :
5246 withval=$with_modules;
5247 for i in $withval; do
5248 MODULES="$MODULES $i"
5256 # Check whether --with-experimental-modules was given.
5257 if test "${with_experimental_modules+set}" = set; then :
5258 withval=$with_experimental_modules; case "$withval" in
5273 # Check whether --with-openssl was given.
5274 if test "${with_openssl+set}" = set; then :
5275 withval=$with_openssl; case "$withval" in
5287 OPENSSL_INCLUDE_DIR=
5289 # Check whether --with-openssl-includes was given.
5290 if test "${with_openssl_includes+set}" = set; then :
5291 withval=$with_openssl_includes; case "$withval" in
5292 *) OPENSSL_INCLUDE_DIR="$withval"
5301 # Check whether --with-openssl-libraries was given.
5302 if test "${with_openssl_libraries+set}" = set; then :
5303 withval=$with_openssl_libraries; case "$withval" in
5304 *) OPENSSL_LIB_DIR="$withval"
5313 # Check whether --with-rlm-FOO-lib-dir was given.
5314 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5315 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5324 # Check whether --with-rlm-FOO-include-dir was given.
5325 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5326 withval=$with_rlm_FOO_include_dir; case "$withval" in
5336 # Check whether --with-udpfromto was given.
5337 if test "${with_udpfromto+set}" = set; then :
5338 withval=$with_udpfromto; case "$withval" in
5349 if test "x$WITH_UDPFROMTO" = "xyes"; then
5351 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5357 # Extract the first word of "perl", so it can be a program name with args.
5358 set dummy perl; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_PERL+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5388 PERL=$ac_cv_path_PERL
5389 if test -n "$PERL"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5391 $as_echo "$PERL" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 if test "x$ac_cv_path_PERL" = "x"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5400 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5402 # Extract the first word of "snmpget", so it can be a program name with args.
5403 set dummy snmpget; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_path_SNMPGET+:} false; then :
5407 $as_echo_n "(cached) " >&6
5411 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 SNMPGET=$ac_cv_path_SNMPGET
5433 if test -n "$SNMPGET"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5435 $as_echo "$SNMPGET" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 if test "x$ac_cv_path_SNMPGET" = "x"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5444 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5447 # Extract the first word of "snmpwalk", so it can be a program name with args.
5448 set dummy snmpwalk; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_path_SNMPWALK+:} false; then :
5452 $as_echo_n "(cached) " >&6
5456 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 SNMPWALK=$ac_cv_path_SNMPWALK
5478 if test -n "$SNMPWALK"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5480 $as_echo "$SNMPWALK" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5489 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5492 # Extract the first word of "rusers", so it can be a program name with args.
5493 set dummy rusers; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_path_RUSERS+:} false; then :
5497 $as_echo_n "(cached) " >&6
5501 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5523 RUSERS=$ac_cv_path_RUSERS
5524 if test -n "$RUSERS"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5526 $as_echo "$RUSERS" >&6; }
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5534 missing_dir=`cd $ac_aux_dir && pwd`
5535 # expand $ac_aux_dir to an absolute path
5536 am_aux_dir=`cd $ac_aux_dir && pwd`
5538 if test x"${MISSING+set}" != xset; then
5541 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5543 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5546 # Use eval to expand $SHELL
5547 if eval "$MISSING --run true"; then
5548 am_missing_run="$MISSING --run "
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5552 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5562 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5565 # Extract the first word of "locate", so it can be a program name with args.
5566 set dummy locate; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_LOCATE+:} false; then :
5570 $as_echo_n "(cached) " >&6
5574 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 LOCATE=$ac_cv_path_LOCATE
5596 if test -n "$LOCATE"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5598 $as_echo "$LOCATE" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 # Extract the first word of "dirname", so it can be a program name with args.
5606 set dummy dirname; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_DIRNAME+:} false; then :
5610 $as_echo_n "(cached) " >&6
5614 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 DIRNAME=$ac_cv_path_DIRNAME
5636 if test -n "$DIRNAME"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5638 $as_echo "$DIRNAME" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5645 # Extract the first word of "grep", so it can be a program name with args.
5646 set dummy grep; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_path_GREP+:} false; then :
5650 $as_echo_n "(cached) " >&6
5654 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 GREP=$ac_cv_path_GREP
5676 if test -n "$GREP"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5678 $as_echo "$GREP" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5688 if test "x$WITH_THREADS" = "xyes"; then
5689 if test $ac_cv_prog_suncc = "yes"; then
5690 CFLAGS="$CFLAGS -mt"
5693 for ac_header in pthread.h
5695 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5696 if test "x$ac_cv_header_pthread_h" = xyes; then :
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_PTHREAD_H 1
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5709 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5710 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5711 $as_echo_n "(cached) " >&6
5713 ac_check_lib_save_LIBS=$LIBS
5714 LIBS="-lpthread $LIBS"
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5718 /* Override any GCC internal prototype to avoid an error.
5719 Use char because int might match the return type of a GCC
5720 builtin and then its argument prototype would still apply. */
5724 char pthread_create ();
5728 return pthread_create ();
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 ac_cv_lib_pthread_pthread_create=yes
5736 ac_cv_lib_pthread_pthread_create=no
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5743 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5744 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5746 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
5747 LIBS="-lpthread $LIBS"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
5752 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
5753 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 ac_check_lib_save_LIBS=$LIBS
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 /* Override any GCC internal prototype to avoid an error.
5762 Use char because int might match the return type of a GCC
5763 builtin and then its argument prototype would still apply. */
5767 char pthread_create ();
5771 return pthread_create ();
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 ac_cv_lib_c_r_pthread_create=yes
5779 ac_cv_lib_c_r_pthread_create=no
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
5786 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
5787 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
5788 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
5800 if test "x$WITH_THREADS" != "xyes"; then
5802 ac_cv_header_pthread_h="no"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5807 $as_echo_n "checking for library containing sem_init... " >&6; }
5808 if ${ac_cv_search_sem_init+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 ac_func_search_save_LIBS=$LIBS
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5815 /* Override any GCC internal prototype to avoid an error.
5816 Use char because int might match the return type of a GCC
5817 builtin and then its argument prototype would still apply. */
5830 for ac_lib in '' pthread sem posix4 rt semaphore; do
5831 if test -z "$ac_lib"; then
5832 ac_res="none required"
5835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 ac_cv_search_sem_init=$ac_res
5840 rm -f core conftest.err conftest.$ac_objext \
5842 if ${ac_cv_search_sem_init+:} false; then :
5846 if ${ac_cv_search_sem_init+:} false; then :
5849 ac_cv_search_sem_init=no
5852 LIBS=$ac_func_search_save_LIBS
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5855 $as_echo "$ac_cv_search_sem_init" >&6; }
5856 ac_res=$ac_cv_search_sem_init
5857 if test "$ac_res" != no; then :
5858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5861 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
5867 if test "x$WITH_THREADS" = "xyes"; then
5869 $as_echo "#define WITH_THREADS 1" >>confdefs.h
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5875 if ${ac_cv_lib_dl_dlopen+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 ac_check_lib_save_LIBS=$LIBS
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 /* Override any GCC internal prototype to avoid an error.
5884 Use char because int might match the return type of a GCC
5885 builtin and then its argument prototype would still apply. */
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_lib_dl_dlopen=yes
5901 ac_cv_lib_dl_dlopen=no
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5909 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5910 cat >>confdefs.h <<_ACEOF
5911 #define HAVE_LIBDL 1
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
5920 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
5921 if ${ac_cv_lib_socket_getsockname+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 ac_check_lib_save_LIBS=$LIBS
5925 LIBS="-lsocket $LIBS"
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5929 /* Override any GCC internal prototype to avoid an error.
5930 Use char because int might match the return type of a GCC
5931 builtin and then its argument prototype would still apply. */
5935 char getsockname ();
5939 return getsockname ();
5944 if ac_fn_c_try_link "$LINENO"; then :
5945 ac_cv_lib_socket_getsockname=yes
5947 ac_cv_lib_socket_getsockname=no
5949 rm -f core conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
5954 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
5955 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_LIBSOCKET 1
5960 LIBS="-lsocket $LIBS"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
5966 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
5967 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
5968 $as_echo_n "(cached) " >&6
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lresolv $LIBS"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5985 return inet_aton ();
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 ac_cv_lib_resolv_inet_aton=yes
5993 ac_cv_lib_resolv_inet_aton=no
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6000 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6001 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6002 cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBRESOLV 1
6006 LIBS="-lresolv $LIBS"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6012 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6013 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 ac_check_lib_save_LIBS=$LIBS
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6021 /* Override any GCC internal prototype to avoid an error.
6022 Use char because int might match the return type of a GCC
6023 builtin and then its argument prototype would still apply. */
6031 return inet_ntoa ();
6036 if ac_fn_c_try_link "$LINENO"; then :
6037 ac_cv_lib_nsl_inet_ntoa=yes
6039 ac_cv_lib_nsl_inet_ntoa=no
6041 rm -f core conftest.err conftest.$ac_objext \
6042 conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6046 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6047 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_LIBNSL 1
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6057 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6058 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6059 $as_echo_n "(cached) " >&6
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lws2_32 $LIBS"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 /* Override any GCC internal prototype to avoid an error.
6067 Use char because int might match the return type of a GCC
6068 builtin and then its argument prototype would still apply. */
6081 if ac_fn_c_try_link "$LINENO"; then :
6082 ac_cv_lib_ws2_32_htonl=yes
6084 ac_cv_lib_ws2_32_htonl=no
6086 rm -f core conftest.err conftest.$ac_objext \
6087 conftest$ac_exeext conftest.$ac_ext
6088 LIBS=$ac_check_lib_save_LIBS
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6091 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6092 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LIBWS2_32 1
6097 LIBS="-lws2_32 $LIBS"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6104 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6105 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
6106 $as_echo_n "(cached) " >&6
6108 ac_check_lib_save_LIBS=$LIBS
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6119 char pcap_open_live ();
6123 return pcap_open_live ();
6128 if ac_fn_c_try_link "$LINENO"; then :
6129 ac_cv_lib_pcap_pcap_open_live=yes
6131 ac_cv_lib_pcap_pcap_open_live=no
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
6138 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
6139 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
6143 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
6149 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
6157 $as_echo_n "checking for a readline compatible library... " >&6; }
6158 if ${vl_cv_lib_readline+:} false; then :
6159 $as_echo_n "(cached) " >&6
6163 for readline_lib in readline edit editline; do
6164 for termcap_lib in "" termcap curses ncurses; do
6165 if test -z "$termcap_lib"; then
6166 TRY_LIB="-l$readline_lib"
6168 TRY_LIB="-l$readline_lib -l$termcap_lib"
6170 LIBS="$ORIG_LIBS $TRY_LIB"
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 /* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6189 if ac_fn_c_try_link "$LINENO"; then :
6190 vl_cv_lib_readline="$TRY_LIB"
6192 rm -f core conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6194 if test -n "$vl_cv_lib_readline"; then
6198 if test -n "$vl_cv_lib_readline"; then
6202 if test -z "$vl_cv_lib_readline"; then
6203 vl_cv_lib_readline="no"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
6209 $as_echo "$vl_cv_lib_readline" >&6; }
6211 if test "$vl_cv_lib_readline" != "no"; then
6212 LIBREADLINE="$vl_cv_lib_readline"
6214 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
6216 for ac_header in readline.h readline/readline.h
6218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6219 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
6230 $as_echo_n "checking whether readline supports history... " >&6; }
6231 if ${vl_cv_lib_readline_history+:} false; then :
6232 $as_echo_n "(cached) " >&6
6235 vl_cv_lib_readline_history="no"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6245 char add_history ();
6249 return add_history ();
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 vl_cv_lib_readline_history="yes"
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
6262 $as_echo "$vl_cv_lib_readline_history" >&6; }
6263 if test "$vl_cv_lib_readline_history" = "yes"; then
6265 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
6267 for ac_header in history.h readline/history.h
6269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6272 cat >>confdefs.h <<_ACEOF
6273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 CFLAGS="$CFLAGS -D_ALL_SOURCE"
6291 CFLAGS="$CFLAGS -DDARWIN"
6292 LIBS="-framework DirectoryService $LIBS"
6297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6298 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6300 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6301 if eval \${$as_ac_Header+:} false; then :
6302 $as_echo_n "(cached) " >&6
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 eval "$as_ac_Header=yes"
6321 eval "$as_ac_Header=no"
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 eval ac_res=\$$as_ac_Header
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6329 cat >>confdefs.h <<_ACEOF
6330 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6333 ac_header_dirent=$ac_hdr; break
6337 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6338 if test $ac_header_dirent = dirent.h; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6340 $as_echo_n "checking for library containing opendir... " >&6; }
6341 if ${ac_cv_search_opendir+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 ac_func_search_save_LIBS=$LIBS
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6348 /* Override any GCC internal prototype to avoid an error.
6349 Use char because int might match the return type of a GCC
6350 builtin and then its argument prototype would still apply. */
6363 for ac_lib in '' dir; do
6364 if test -z "$ac_lib"; then
6365 ac_res="none required"
6368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 ac_cv_search_opendir=$ac_res
6373 rm -f core conftest.err conftest.$ac_objext \
6375 if ${ac_cv_search_opendir+:} false; then :
6379 if ${ac_cv_search_opendir+:} false; then :
6382 ac_cv_search_opendir=no
6385 LIBS=$ac_func_search_save_LIBS
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6388 $as_echo "$ac_cv_search_opendir" >&6; }
6389 ac_res=$ac_cv_search_opendir
6390 if test "$ac_res" != no; then :
6391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6397 $as_echo_n "checking for library containing opendir... " >&6; }
6398 if ${ac_cv_search_opendir+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 ac_func_search_save_LIBS=$LIBS
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6405 /* Override any GCC internal prototype to avoid an error.
6406 Use char because int might match the return type of a GCC
6407 builtin and then its argument prototype would still apply. */
6420 for ac_lib in '' x; do
6421 if test -z "$ac_lib"; then
6422 ac_res="none required"
6425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6427 if ac_fn_c_try_link "$LINENO"; then :
6428 ac_cv_search_opendir=$ac_res
6430 rm -f core conftest.err conftest.$ac_objext \
6432 if ${ac_cv_search_opendir+:} false; then :
6436 if ${ac_cv_search_opendir+:} false; then :
6439 ac_cv_search_opendir=no
6442 LIBS=$ac_func_search_save_LIBS
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6445 $as_echo "$ac_cv_search_opendir" >&6; }
6446 ac_res=$ac_cv_search_opendir
6447 if test "$ac_res" != no; then :
6448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6455 $as_echo_n "checking for ANSI C header files... " >&6; }
6456 if ${ac_cv_header_stdc+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 ac_cv_header_stdc=yes
6477 ac_cv_header_stdc=no
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 if test $ac_cv_header_stdc = yes; then
6482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6489 $EGREP "memchr" >/dev/null 2>&1; then :
6492 ac_cv_header_stdc=no
6498 if test $ac_cv_header_stdc = yes; then
6499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506 $EGREP "free" >/dev/null 2>&1; then :
6509 ac_cv_header_stdc=no
6515 if test $ac_cv_header_stdc = yes; then
6516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6517 if test "$cross_compiling" = yes; then :
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6524 #if ((' ' & 0x0FF) == 0x020)
6525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6528 # define ISLOWER(c) \
6529 (('a' <= (c) && (c) <= 'i') \
6530 || ('j' <= (c) && (c) <= 'r') \
6531 || ('s' <= (c) && (c) <= 'z'))
6532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 for (i = 0; i < 256; i++)
6541 if (XOR (islower (i), ISLOWER (i))
6542 || toupper (i) != TOUPPER (i))
6547 if ac_fn_c_try_run "$LINENO"; then :
6550 ac_cv_header_stdc=no
6552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6553 conftest.$ac_objext conftest.beam conftest.$ac_ext
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6559 $as_echo "$ac_cv_header_stdc" >&6; }
6560 if test $ac_cv_header_stdc = yes; then
6562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6567 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6568 if ${ac_cv_header_time+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6574 #include <sys/time.h>
6580 if ((struct tm *) 0)
6586 if ac_fn_c_try_compile "$LINENO"; then :
6587 ac_cv_header_time=yes
6589 ac_cv_header_time=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6594 $as_echo "$ac_cv_header_time" >&6; }
6595 if test $ac_cv_header_time = yes; then
6597 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6602 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6603 if ${ac_cv_header_sys_wait_h+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 #include <sys/types.h>
6609 #include <sys/wait.h>
6611 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6614 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 ac_cv_header_sys_wait_h=yes
6630 ac_cv_header_sys_wait_h=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6635 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6636 if test $ac_cv_header_sys_wait_h = yes; then
6638 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6686 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6688 cat >>confdefs.h <<_ACEOF
6689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 for ac_header in net/if.h
6699 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
6700 # include <sys/socket.h>
6704 if test "x$ac_cv_header_net_if_h" = xyes; then :
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_NET_IF_H 1
6714 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6717 $as_echo "#define OSFC2 /**/" >>confdefs.h
6721 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6724 $as_echo "#define OSFSIA /**/" >>confdefs.h
6728 if test "x$WITH_OPENSSL" = xyes; then
6730 old_LDFLAGS="$LDFLAGS"
6732 OPENSSL_INCLUDE="-DNO_OPENSSL"
6734 if test "x$OPENSSL_LIB_DIR" != "x"; then
6735 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
6739 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
6740 if ${ac_cv_lib_crypto_DH_new+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 ac_check_lib_save_LIBS=$LIBS
6744 LIBS="-lcrypto $LIBS"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 /* Override any GCC internal prototype to avoid an error.
6749 Use char because int might match the return type of a GCC
6750 builtin and then its argument prototype would still apply. */
6763 if ac_fn_c_try_link "$LINENO"; then :
6764 ac_cv_lib_crypto_DH_new=yes
6766 ac_cv_lib_crypto_DH_new=no
6768 rm -f core conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
6773 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
6774 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
6776 LIBS="-lcrypto $LIBS"
6778 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
6781 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
6782 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 ac_check_lib_save_LIBS=$LIBS
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6790 /* Override any GCC internal prototype to avoid an error.
6791 Use char because int might match the return type of a GCC
6792 builtin and then its argument prototype would still apply. */
6805 if ac_fn_c_try_link "$LINENO"; then :
6806 ac_cv_lib_ssl_SSL_new=yes
6808 ac_cv_lib_ssl_SSL_new=no
6810 rm -f core conftest.err conftest.$ac_objext \
6811 conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
6815 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
6816 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
6819 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6821 if test "x$OPENSSL_LIB_DIR" != "x"; then
6822 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
6824 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
6828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6830 as_fn_error $? "failed linking to libssl
6831 See \`config.log' for more details" "$LINENO" 5; }
6840 old_CPPFLAGS=$CPPFLAGS
6841 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6842 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
6845 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
6857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6868 as_fn_error $? "failed locating OpenSSL headers
6869 See \`config.log' for more details" "$LINENO" 5; }
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
6878 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 #include <openssl/crypto.h>
6882 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
6887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6888 $EGREP "yes" >/dev/null 2>&1; then :
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6891 $as_echo "yes" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6899 as_fn_error $? "OpenSSL version too old
6900 See \`config.log' for more details" "$LINENO" 5; }
6907 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
6908 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
6910 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
6914 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
6915 if test "$cross_compiling" = yes; then :
6916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6918 as_fn_error $? "cannot run test program while cross compiling
6919 See \`config.log' for more details" "$LINENO" 5; }
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6925 #include <openssl/opensslv.h>
6926 #include <openssl/crypto.h>
6932 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
6935 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
6944 if ac_fn_c_try_run "$LINENO"; then :
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6947 $as_echo "yes" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6955 as_fn_error $? "OpenSSL library version does not match header version
6956 See \`config.log' for more details" "$LINENO" 5; }
6960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6961 conftest.$ac_objext conftest.beam conftest.$ac_ext
6965 CPPFLAGS=$old_CPPFLAGS
6967 LDFLAGS="$old_LDFLAGS"
6974 if test "x$PCAP_LIBS" = x; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
6976 $as_echo "$as_me: skipping test for pcap.h." >&6;}
6978 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
6979 if test "x$ac_cv_header_pcap_h" = xyes; then :
6982 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
6986 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
6987 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
6988 $as_echo_n "(cached) " >&6
6990 ac_check_lib_save_LIBS=$LIBS
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6995 /* Override any GCC internal prototype to avoid an error.
6996 Use char because int might match the return type of a GCC
6997 builtin and then its argument prototype would still apply. */
7001 char pcap_fopen_offline ();
7005 return pcap_fopen_offline ();
7010 if ac_fn_c_try_link "$LINENO"; then :
7011 ac_cv_lib_pcap_pcap_fopen_offline=yes
7013 ac_cv_lib_pcap_pcap_fopen_offline=no
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7017 LIBS=$ac_check_lib_save_LIBS
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
7020 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
7021 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
7024 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
7032 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
7033 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 ac_check_lib_save_LIBS=$LIBS
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7041 /* Override any GCC internal prototype to avoid an error.
7042 Use char because int might match the return type of a GCC
7043 builtin and then its argument prototype would still apply. */
7047 char pcap_dump_fopen ();
7051 return pcap_dump_fopen ();
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 ac_cv_lib_pcap_pcap_dump_fopen=yes
7059 ac_cv_lib_pcap_pcap_dump_fopen=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
7066 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
7067 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
7070 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
7081 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
7091 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_off_t" = xyes; then :
7096 cat >>confdefs.h <<_ACEOF
7097 #define off_t long int
7102 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7103 if test "x$ac_cv_type_pid_t" = xyes; then :
7107 cat >>confdefs.h <<_ACEOF
7113 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7114 if test "x$ac_cv_type_size_t" = xyes; then :
7118 cat >>confdefs.h <<_ACEOF
7119 #define size_t unsigned int
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7125 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7126 if ${ac_cv_type_uid_t+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <sys/types.h>
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 $EGREP "uid_t" >/dev/null 2>&1; then :
7136 ac_cv_type_uid_t=yes
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7144 $as_echo "$ac_cv_type_uid_t" >&6; }
7145 if test $ac_cv_type_uid_t = no; then
7147 $as_echo "#define uid_t int" >>confdefs.h
7150 $as_echo "#define gid_t int" >>confdefs.h
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7157 $as_echo_n "checking for socklen_t... " >&6; }
7158 if ${ac_cv_type_socklen_t+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 ac_cv_type_socklen_t=no
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 #ifdef HAVE_SYS_TYPES_H
7165 # include <sys/types.h>
7168 #ifdef HAVE_SYS_SOCKET_H
7169 # include <sys/socket.h>
7180 if ac_fn_c_try_compile "$LINENO"; then :
7181 ac_cv_type_socklen_t=yes
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7188 $as_echo "$ac_cv_type_socklen_t" >&6; }
7190 if test "$ac_cv_type_socklen_t" != "yes"; then
7192 $as_echo "#define socklen_t int" >>confdefs.h
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
7199 $as_echo_n "checking for uint8_t... " >&6; }
7200 if ${ac_cv_type_uint8_t+:} false; then :
7201 $as_echo_n "(cached) " >&6
7203 ac_cv_type_uint8_t=no
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #ifdef HAVE_INTTYPES_H
7207 # include <inttypes.h>
7210 #ifdef HAVE_STDINT_H
7211 # include <stdint.h>
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_type_uint8_t=yes
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
7230 $as_echo "$ac_cv_type_uint8_t" >&6; }
7232 if test "$ac_cv_type_uint8_t" != "yes"; then
7234 $as_echo "#define uint8_t unsigned char" >>confdefs.h
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
7241 $as_echo_n "checking for uint16_t... " >&6; }
7242 if ${ac_cv_type_uint16_t+:} false; then :
7243 $as_echo_n "(cached) " >&6
7245 ac_cv_type_uint16_t=no
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #ifdef HAVE_INTTYPES_H
7249 # include <inttypes.h>
7252 #ifdef HAVE_STDINT_H
7253 # include <stdint.h>
7264 if ac_fn_c_try_compile "$LINENO"; then :
7265 ac_cv_type_uint16_t=yes
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
7272 $as_echo "$ac_cv_type_uint16_t" >&6; }
7274 if test "$ac_cv_type_uint16_t" != "yes"; then
7276 $as_echo "#define uint16_t unsigned short" >>confdefs.h
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
7283 $as_echo_n "checking for uint32_t... " >&6; }
7284 if ${ac_cv_type_uint32_t+:} false; then :
7285 $as_echo_n "(cached) " >&6
7287 ac_cv_type_uint32_t=no
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #ifdef HAVE_INTTYPES_H
7291 # include <inttypes.h>
7294 #ifdef HAVE_STDINT_H
7295 # include <stdint.h>
7306 if ac_fn_c_try_compile "$LINENO"; then :
7307 ac_cv_type_uint32_t=yes
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
7314 $as_echo "$ac_cv_type_uint32_t" >&6; }
7316 if test "$ac_cv_type_uint32_t" != "yes"; then
7318 $as_echo "#define uint32_t unsigned int" >>confdefs.h
7323 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
7324 #ifdef HAVE_NETINET_IN_H
7325 # include <netinet/in.h>
7330 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
7332 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
7337 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7338 #ifdef HAVE_NETINET_IN_H
7339 # include <netinet/in.h>
7342 #ifdef HAVE_SYS_SOCKET_H
7343 # include <sys/socket.h>
7347 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7349 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
7354 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7355 #ifdef HAVE_NETINET_IN_H
7356 # include <netinet/in.h>
7360 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7362 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
7367 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
7368 #ifdef HAVE_SYS_TYPES_H
7369 # include <sys/types.h>
7372 #ifdef HAVE_SYS_SOCKET_H
7373 # include <sys/socket.h>
7382 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
7384 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7426 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7436 $as_echo_n "checking return type of signal handlers... " >&6; }
7437 if ${ac_cv_type_signal+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <sys/types.h>
7448 return *(signal (0, 0)) (0) == 1;
7453 if ac_fn_c_try_compile "$LINENO"; then :
7454 ac_cv_type_signal=int
7456 ac_cv_type_signal=void
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7461 $as_echo "$ac_cv_type_signal" >&6; }
7463 cat >>confdefs.h <<_ACEOF
7464 #define RETSIGTYPE $ac_cv_type_signal
7469 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
7472 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7479 #ifdef HAVE_STDDEF_H
7483 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7489 int foo = offsetof(struct utmpx, ut_xtime)
7494 if ac_fn_c_try_compile "$LINENO"; then :
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7502 if test "x$has_element" != "x"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504 $as_echo "yes" >&6; }
7505 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7512 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
7514 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
7521 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7527 #include <netinet/in.h>
7528 #ifdef HAVE_STDDEF_H
7532 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7538 int foo = offsetof(struct in_pktinfo, ipi_addr)
7543 if ac_fn_c_try_compile "$LINENO"; then :
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
7551 if test "x$has_element" != "x"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7553 $as_echo "yes" >&6; }
7554 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
7561 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
7563 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
7569 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7575 #include <netinet/in.h>
7576 #ifdef HAVE_STDDEF_H
7580 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7586 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
7591 if ac_fn_c_try_compile "$LINENO"; then :
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
7599 if test "x$has_element" != "x"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7602 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
7609 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
7611 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7617 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7618 if ${ac_cv_c_const+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7629 /* Ultrix mips cc rejects this sort of thing. */
7630 typedef int charset[2];
7631 const charset cs = { 0, 0 };
7632 /* SunOS 4.1.1 cc rejects this. */
7633 char const *const *pcpcc;
7635 /* NEC SVR4.0.2 mips cc rejects this. */
7636 struct point {int x, y;};
7637 static struct point const zero = {0,0};
7638 /* AIX XL C 1.02.0.0 rejects this.
7639 It does not let you subtract one const X* pointer from another in
7640 an arm of an if-expression whose if-part is not a constant
7642 const char *g = "string";
7643 pcpcc = &g + (g ? g-g : 0);
7644 /* HPUX 7.0 cc rejects these. */
7646 ppc = (char**) pcpcc;
7647 pcpcc = (char const *const *) ppc;
7648 { /* SCO 3.2v4 cc rejects this sort of thing. */
7651 char const *s = 0 ? (char *) 0 : (char const *) 0;
7656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7658 const int *foo = &x[0];
7661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7662 typedef const int *iptr;
7666 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7668 struct s { int j; const int *ap[3]; } bx;
7669 struct s *b = &bx; b->j = 5;
7671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7675 return !cs[0] && !zero.x;
7682 if ac_fn_c_try_compile "$LINENO"; then :
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7690 $as_echo "$ac_cv_c_const" >&6; }
7691 if test $ac_cv_c_const = no; then
7693 $as_echo "#define const /**/" >>confdefs.h
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
7699 $as_echo_n "checking type of OS... " >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
7702 $as_echo "$OS" >&6; }
7703 if test "$OS" = "OS/2"; then
7710 if test "x$developer" = "xyes"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
7712 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
7716 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
7717 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
7718 $as_echo_n "(cached) " >&6
7722 CFLAGS_SAVED=$CFLAGS
7723 CFLAGS="$CFLAGS -Werror -Wdocumentation"
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 ax_cv_cc_wdocumentation_flag="yes"
7745 ax_cv_cc_wdocumentation_flag="no"
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755 CFLAGS="$CFLAGS_SAVED"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
7759 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
7761 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
7762 devflags="-Wdocumentation"
7765 if test "x$GCC" = "xyes"; then
7766 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"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
7771 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
7773 CFLAGS="$CFLAGS $devflags"
7774 if test "x$EXPERIMENTAL" != "xno"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
7776 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
7781 CFLAGS="$CFLAGS -DNDEBUG"
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
7784 $as_echo "no." >&6; }
7789 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
7790 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
7792 cat >>confdefs.h <<_ACEOF
7793 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
7800 $as_echo_n "checking for __thread support in compiler... " >&6; }
7801 if test "$cross_compiling" = yes; then :
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7807 static __thread int val;
7808 int main(int argc, char **argv) {
7815 if ac_fn_c_try_run "$LINENO"; then :
7820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821 conftest.$ac_objext conftest.beam conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
7825 $as_echo "$have_tls" >&6; }
7826 if test "x$have_tls" = "xyes"; then
7828 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
7836 # Check whether --with-talloc-include-dir was given.
7837 if test "${with_talloc_include_dir+set}" = set; then :
7838 withval=$with_talloc_include_dir; case "$withval" in
7840 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
7845 talloc_include_dir="$withval"
7853 # Check whether --with-talloc-lib-dir was given.
7854 if test "${with_talloc_lib_dir+set}" = set; then :
7855 withval=$with_talloc_lib_dir; case "$withval" in
7857 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
7862 talloc_lib_dir="$withval"
7868 smart_try_dir="$talloc_include_dir"
7871 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7872 old_CFLAGS="$CFLAGS"
7876 if test "x$smart_try_dir" != "x"; then
7877 for try in $smart_try_dir; do
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7879 $as_echo_n "checking for talloc.h in $try... " >&6; }
7880 CFLAGS="$old_CFLAGS -isystem $try"
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7893 if ac_fn_c_try_compile "$LINENO"; then :
7895 smart_include="-isystem $try"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7897 $as_echo "yes" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 CFLAGS="$old_CFLAGS"
7912 if test "x$smart_include" = "x"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7914 $as_echo_n "checking for talloc.h... " >&6; }
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7927 if ac_fn_c_try_compile "$LINENO"; then :
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 if test "x$smart_include" = "x"; then
7947 if test "x$LOCATE" != "x"; then
7951 for x in `${LOCATE} $file 2>/dev/null`; do
7952 base=`echo $x | sed "s%/${file}%%"`
7953 if test "x$x" = "x$base"; then
7957 dir=`${DIRNAME} $x 2>/dev/null`
7958 exclude=`echo ${dir} | ${GREP} /home`
7959 if test "x$exclude" != "x"; then
7963 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
7964 if test "x$already" = "x"; then
7970 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
7972 for try in $smart_include_dir /usr/local/include /opt/include; do
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7974 $as_echo_n "checking for talloc.h in $try... " >&6; }
7975 CFLAGS="$old_CFLAGS -isystem $try"
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7988 if ac_fn_c_try_compile "$LINENO"; then :
7990 smart_include="-isystem $try"
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 CFLAGS="$old_CFLAGS"
8007 if test "x$smart_include" != "x"; then
8008 eval "ac_cv_header_$ac_safe=yes"
8009 CFLAGS="$old_CFLAGS $smart_include"
8010 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8013 if test "x$ac_cv_header_talloc_h" != "xyes"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
8015 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
8016 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8019 smart_try_dir="$talloc_lib_dir"
8022 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
8023 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
8029 if test "x$smart_try_dir" != "x"; then
8030 for try in $smart_try_dir; do
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8032 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8033 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 extern char _talloc();
8045 if ac_fn_c_try_link "$LINENO"; then :
8047 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8049 $as_echo "yes" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8062 if test "x$smart_lib" = "x"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
8064 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
8065 LIBS="-ltalloc $old_LIBS"
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 extern char _talloc();
8077 if ac_fn_c_try_link "$LINENO"; then :
8079 smart_lib="-ltalloc"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8081 $as_echo "yes" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8087 rm -f core conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8092 if test "x$smart_lib" = "x"; then
8095 if test "x$LOCATE" != "x"; then
8097 file=libtalloc${libltdl_cv_shlibext}
8099 for x in `${LOCATE} $file 2>/dev/null`; do
8100 base=`echo $x | sed "s%/${file}%%"`
8101 if test "x$x" = "x$base"; then
8105 dir=`${DIRNAME} $x 2>/dev/null`
8106 exclude=`echo ${dir} | ${GREP} /home`
8107 if test "x$exclude" != "x"; then
8111 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8112 if test "x$already" = "x"; then
8118 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8122 if test "x$LOCATE" != "x"; then
8126 for x in `${LOCATE} $file 2>/dev/null`; do
8127 base=`echo $x | sed "s%/${file}%%"`
8128 if test "x$x" = "x$base"; then
8132 dir=`${DIRNAME} $x 2>/dev/null`
8133 exclude=`echo ${dir} | ${GREP} /home`
8134 if test "x$exclude" != "x"; then
8138 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8139 if test "x$already" = "x"; then
8145 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8148 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
8150 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
8151 LIBS="-L$try -ltalloc $old_LIBS -Wl,-rpath,$try"
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 extern char _talloc();
8163 if ac_fn_c_try_link "$LINENO"; then :
8165 smart_lib="-L$try -ltalloc -Wl,-rpath,$try"
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8167 $as_echo "yes" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8180 if test "x$smart_lib" != "x"; then
8181 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8182 LIBS="$smart_lib $old_LIBS"
8183 SMART_LIBS="$smart_lib $SMART_LIBS"
8186 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
8188 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
8189 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
8193 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
8194 if ${ac_cv_lib_crypt_crypt+:} false; then :
8195 $as_echo_n "(cached) " >&6
8197 ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lcrypt $LIBS"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8202 /* Override any GCC internal prototype to avoid an error.
8203 Use char because int might match the return type of a GCC
8204 builtin and then its argument prototype would still apply. */
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 ac_cv_lib_crypt_crypt=yes
8220 ac_cv_lib_crypt_crypt=no
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_lib_save_LIBS
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
8227 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
8228 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
8234 if test "$CRYPTLIB" != ""; then
8236 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8239 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
8240 if test "x$ac_cv_func_crypt" = xyes; then :
8242 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
8249 $as_echo_n "checking for setkey in -lcipher... " >&6; }
8250 if ${ac_cv_lib_cipher_setkey+:} false; then :
8251 $as_echo_n "(cached) " >&6
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lcipher $LIBS"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_lib_cipher_setkey=yes
8276 ac_cv_lib_cipher_setkey=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
8283 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
8284 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
8285 CRYPTLIB="${CRYPTLIB} -lcipher"
8294 # Check whether --with-rlm-pcre-lib-dir was given.
8295 if test "${with_rlm_pcre_lib_dir+set}" = set; then :
8296 withval=$with_rlm_pcre_lib_dir; case "$withval" in
8298 as_fn_error $? "Need rlm-pcre-lib-dir" "$LINENO" 5
8303 pcre_lib_dir="$withval"
8312 # Check whether --with-rlm-pcre-include-dir was given.
8313 if test "${with_rlm_pcre_include_dir+set}" = set; then :
8314 withval=$with_rlm_pcre_include_dir; case "$withval" in
8316 as_fn_error $? "Need rlm-pcre-include-dir" "$LINENO" 5
8321 pcre_include_dir="$withval"
8332 smart_try_dir=$pcre_include_dir
8335 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
8336 old_CFLAGS="$CFLAGS"
8340 if test "x$smart_try_dir" != "x"; then
8341 for try in $smart_try_dir; do
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8343 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8344 CFLAGS="$old_CFLAGS -isystem $try"
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8348 #include <pcreposix.h>
8357 if ac_fn_c_try_compile "$LINENO"; then :
8359 smart_include="-isystem $try"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 CFLAGS="$old_CFLAGS"
8376 if test "x$smart_include" = "x"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
8378 $as_echo_n "checking for pcreposix.h... " >&6; }
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8382 #include <pcreposix.h>
8391 if ac_fn_c_try_compile "$LINENO"; then :
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8395 $as_echo "yes" >&6; }
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 if test "x$smart_include" = "x"; then
8411 if test "x$LOCATE" != "x"; then
8415 for x in `${LOCATE} $file 2>/dev/null`; do
8416 base=`echo $x | sed "s%/${file}%%"`
8417 if test "x$x" = "x$base"; then
8421 dir=`${DIRNAME} $x 2>/dev/null`
8422 exclude=`echo ${dir} | ${GREP} /home`
8423 if test "x$exclude" != "x"; then
8427 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8428 if test "x$already" = "x"; then
8434 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8436 for try in $smart_include_dir /usr/local/include /opt/include; do
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
8438 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
8439 CFLAGS="$old_CFLAGS -isystem $try"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8443 #include <pcreposix.h>
8452 if ac_fn_c_try_compile "$LINENO"; then :
8454 smart_include="-isystem $try"
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 CFLAGS="$old_CFLAGS"
8471 if test "x$smart_include" != "x"; then
8472 eval "ac_cv_header_$ac_safe=yes"
8473 CFLAGS="$old_CFLAGS $smart_include"
8474 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8477 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
8479 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8482 $as_echo "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
8487 LIBS="-lpcre -lpcreposix $LIBS"
8493 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
8494 old_CFLAGS="$CFLAGS"
8498 if test "x$smart_try_dir" != "x"; then
8499 for try in $smart_try_dir; do
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8501 $as_echo_n "checking for regex.h in $try... " >&6; }
8502 CFLAGS="$old_CFLAGS -isystem $try"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8515 if ac_fn_c_try_compile "$LINENO"; then :
8517 smart_include="-isystem $try"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 CFLAGS="$old_CFLAGS"
8534 if test "x$smart_include" = "x"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
8536 $as_echo_n "checking for regex.h... " >&6; }
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8549 if ac_fn_c_try_compile "$LINENO"; then :
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553 $as_echo "yes" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 if test "x$smart_include" = "x"; then
8569 if test "x$LOCATE" != "x"; then
8573 for x in `${LOCATE} $file 2>/dev/null`; do
8574 base=`echo $x | sed "s%/${file}%%"`
8575 if test "x$x" = "x$base"; then
8579 dir=`${DIRNAME} $x 2>/dev/null`
8580 exclude=`echo ${dir} | ${GREP} /home`
8581 if test "x$exclude" != "x"; then
8585 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
8586 if test "x$already" = "x"; then
8592 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
8594 for try in $smart_include_dir /usr/local/include /opt/include; do
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
8596 $as_echo_n "checking for regex.h in $try... " >&6; }
8597 CFLAGS="$old_CFLAGS -isystem $try"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8610 if ac_fn_c_try_compile "$LINENO"; then :
8612 smart_include="-isystem $try"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8614 $as_echo "yes" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 CFLAGS="$old_CFLAGS"
8629 if test "x$smart_include" != "x"; then
8630 eval "ac_cv_header_$ac_safe=yes"
8631 CFLAGS="$old_CFLAGS $smart_include"
8632 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
8635 if test "x$ac_cv_header_regex_h" = "xyes"; then
8637 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8650 $EGREP "yes" >/dev/null 2>&1; then :
8652 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
8666 $as_echo "#define GNUSTYLE 1" >>confdefs.h
8670 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
8674 $as_echo "#define BSDSTYLE 3" >>confdefs.h
8677 gethostbyaddrrstyle=""
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
8679 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
8682 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
8688 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
8697 if test $ac_have_decl = 1; then :
8702 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8704 gethostbyaddrrstyle=BSD
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
8706 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
8713 if test "x$gethostbyaddrrstyle" = "x"; then
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8723 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8728 if ac_fn_c_try_link "$LINENO"; then :
8731 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
8733 gethostbyaddrrstyle=GNU
8737 rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8741 if test "x$gethostbyaddrrstyle" = "x"; then
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8751 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
8756 if ac_fn_c_try_link "$LINENO"; then :
8759 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
8761 gethostbyaddrrstyle=SYSV
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8770 if test "x$gethostbyaddrrstyle" = "x"; then
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8780 gethostbyaddr(NULL, 0, 0)
8785 if ac_fn_c_try_link "$LINENO"; then :
8788 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
8790 gethostbyaddrrstyle=BSD
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8798 if test "x$gethostbyaddrrstyle" = "x"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8800 $as_echo "none! It must not exist, here." >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
8803 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
8806 if test "x$gethostbyaddrrstyle" = "xBSD"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
8808 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
8811 gethostbynamerstyle=""
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
8813 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8823 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
8828 if ac_fn_c_try_link "$LINENO"; then :
8831 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
8833 gethostbynamerstyle=GNU
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8840 if test "x$gethostbynamerstyle" = "x"; then
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8850 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
8855 if ac_fn_c_try_link "$LINENO"; then :
8858 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
8860 gethostbynamerstyle=SYSV
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8868 if test "x$gethostbynamerstyle" = "x"; then
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8883 if ac_fn_c_try_link "$LINENO"; then :
8886 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
8888 gethostbynamerstyle=BSD
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8896 if test "x$gethostbynamerstyle" = "x"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8898 $as_echo "none! It must not exist, here." >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
8901 $as_echo "${gethostbynamerstyle}-style" >&6; }
8904 if test "x$gethostbynamerstyle" = "xBSD"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
8906 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
8910 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
8913 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
8917 $as_echo_n "checking ctime_r() syntax... " >&6; }
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8926 ctime_r(NULL, NULL, 0)
8931 if ac_fn_c_try_link "$LINENO"; then :
8934 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
8936 ctimerstyle="SOLARIS"
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8943 if test "x$ctimerstyle" = "x"; then
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8957 if ac_fn_c_try_link "$LINENO"; then :
8960 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8970 if test "x$ctimerstyle" = "x"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
8972 $as_echo "none! It must not exist, here." >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
8975 $as_echo "${ctimerstyle}-style" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
8985 $as_echo "top_builddir=$top_builddir" >&6; }
8990 if test "x$EXPERIMENTAL" = "xyes"; then
8991 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
8992 MODULES="$MODULES $foo"
8995 for foo in `cat "${srcdir}"/src/modules/stable`; do
8996 MODULES="$MODULES $foo"
9001 for bar in $MODULES; do
9002 if test -f "${srcdir}"/src/modules/$bar/configure; then
9003 mysubdirs="$mysubdirs src/modules/$bar"
9009 subdirs="$subdirs $mysubdirs"
9013 if test "x$werror" == "xyes"; then
9014 CFLAGS="-Werror $CFLAGS"
9017 ac_config_commands="$ac_config_commands stamp-h"
9019 ac_config_commands="$ac_config_commands build-radpaths-h"
9021 ac_config_commands="$ac_config_commands main-chmod"
9023 ac_config_commands="$ac_config_commands scripts-chmod"
9030 USE_STATIC_LIBS="yes"
9035 unset ac_cv_env_LIBS_set
9036 unset ac_cv_env_LIBS_value
9038 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
9040 cat >confcache <<\_ACEOF
9041 # This file is a shell script that caches the results of configure
9042 # tests run on this system so they can be shared between configure
9043 # scripts and configure runs, see configure's option --config-cache.
9044 # It is not useful on other systems. If it contains results you don't
9045 # want to keep, you may remove or edit it.
9047 # config.status only pays attention to the cache file if you give it
9048 # the --recheck option to rerun configure.
9050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9056 # The following way of writing the cache mishandles newlines in values,
9057 # but we know of no workaround that is simple, portable, and efficient.
9058 # So, we kill variables containing newlines.
9059 # Ultrix sh set writes to stderr and can't be redirected directly,
9060 # and sets the high bit in the cache file unless we assign to the vars.
9062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9063 eval ac_val=\$$ac_var
9067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9071 _ | IFS | as_nl) ;; #(
9072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9073 *) { eval $ac_var=; unset $ac_var;} ;;
9079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9080 *${as_nl}ac_space=\ *)
9081 # `set' does not quote correctly, so add quotes: double-quote
9082 # substitution turns \\\\ into \\, and sed turns \\ into \.
9085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9088 # `set' quotes correctly as required by POSIX, so do not add quotes.
9089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9103 if test -w "$cache_file"; then
9104 if test "x$cache_file" != "x/dev/null"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9106 $as_echo "$as_me: updating cache $cache_file" >&6;}
9107 if test ! -f "$cache_file" || test -h "$cache_file"; then
9108 cat confcache >"$cache_file"
9110 case $cache_file in #(
9112 mv -f confcache "$cache_file"$$ &&
9113 mv -f "$cache_file"$$ "$cache_file" ;; #(
9115 mv -f confcache "$cache_file" ;;
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9121 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9127 # Let make expand exec_prefix.
9128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9130 DEFS=-DHAVE_CONFIG_H
9135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9136 # 1. Remove the extension, and $U if already installed.
9137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9140 # will be set to the directory where LIBOBJS objects are built.
9141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9146 LTLIBOBJS=$ac_ltlibobjs
9151 : "${CONFIG_STATUS=./config.status}"
9153 ac_clean_files_save=$ac_clean_files
9154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9156 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9158 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9160 # Generated by $as_me.
9161 # Run this file to recreate the current configuration.
9162 # Compiler output produced by configure, useful for debugging
9163 # configure, is in config.log if it exists.
9169 SHELL=\${CONFIG_SHELL-$SHELL}
9172 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9173 ## -------------------- ##
9174 ## M4sh Initialization. ##
9175 ## -------------------- ##
9177 # Be more Bourne compatible
9178 DUALCASE=1; export DUALCASE # for MKS sh
9179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9183 # is contrary to our usage. Disable this feature.
9184 alias -g '${1+"$@"}'='"$@"'
9185 setopt NO_GLOB_SUBST
9187 case `(set -o) 2>/dev/null` in #(
9199 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9200 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9202 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9203 # Prefer a ksh shell builtin over an external printf program on Solaris,
9204 # but without wasting forks for bash or zsh.
9205 if test -z "$BASH_VERSION$ZSH_VERSION" \
9206 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9207 as_echo='print -r --'
9208 as_echo_n='print -rn --'
9209 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9210 as_echo='printf %s\n'
9211 as_echo_n='printf %s'
9213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9215 as_echo_n='/usr/ucb/echo -n'
9217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9218 as_echo_n_body='eval
9222 expr "X$arg" : "X\\(.*\\)$as_nl";
9223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9227 export as_echo_n_body
9228 as_echo_n='sh -c $as_echo_n_body as_echo'
9231 as_echo='sh -c $as_echo_body as_echo'
9234 # The user is always right.
9235 if test "${PATH_SEPARATOR+set}" != set; then
9237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9245 # We need space, tab and new line, in precisely that order. Quoting is
9246 # there to prevent editors from complaining about space-tab.
9247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9248 # splitting by setting IFS to empty value.)
9251 # Find who we are. Look in the path if we contain no directory separator.
9254 *[\\/]* ) as_myself=$0 ;;
9255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 test -z "$as_dir" && as_dir=.
9260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9266 # We did not find ourselves, most probably we were run as `sh COMMAND'
9267 # in which case we are not to be found in the path.
9268 if test "x$as_myself" = x; then
9271 if test ! -f "$as_myself"; then
9272 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9276 # Unset variables that we do not need and which cause bugs (e.g. in
9277 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9278 # suppresses any "Segmentation fault" message there. '((' could
9279 # trigger a bug in pdksh 5.2.14.
9280 for as_var in BASH_ENV ENV MAIL MAILPATH
9281 do eval test x\${$as_var+set} = xset \
9282 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9298 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9299 # ----------------------------------------
9300 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9301 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9302 # script with STATUS, using 1 if that was 0.
9305 as_status=$1; test $as_status -eq 0 && as_status=1
9307 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9308 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9310 $as_echo "$as_me: error: $2" >&2
9311 as_fn_exit $as_status
9315 # as_fn_set_status STATUS
9316 # -----------------------
9317 # Set $? to STATUS, without forking.
9321 } # as_fn_set_status
9325 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9335 # Portably unset VAR.
9338 { eval $1=; unset $1;}
9340 as_unset=as_fn_unset
9341 # as_fn_append VAR VALUE
9342 # ----------------------
9343 # Append the text in VALUE to the end of the definition contained in VAR. Take
9344 # advantage of any shell optimizations that allow amortized linear growth over
9345 # repeated appends, instead of the typical quadratic growth present in naive
9347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9348 eval 'as_fn_append ()
9359 # as_fn_arith ARG...
9360 # ------------------
9361 # Perform arithmetic evaluation on the ARGs, and store the result in the
9362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9363 # must be portable across $(()) and expr.
9364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9365 eval 'as_fn_arith ()
9372 as_val=`expr "$@" || test $? -eq 1`
9377 if expr a : '\(a\)' >/dev/null 2>&1 &&
9378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9385 as_basename=basename
9390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9396 as_me=`$as_basename -- "$0" ||
9397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9398 X"$0" : 'X\(//\)$' \| \
9399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9401 sed '/^.*\/\([^/][^/]*\)\/*$/{
9415 # Avoid depending upon Character Ranges.
9416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9419 as_cr_digits='0123456789'
9420 as_cr_alnum=$as_cr_Letters$as_cr_digits
9422 ECHO_C= ECHO_N= ECHO_T=
9423 case `echo -n x` in #(((((
9425 case `echo 'xy\c'` in
9426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9428 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9435 rm -f conf$$ conf$$.exe conf$$.file
9436 if test -d conf$$.dir; then
9437 rm -f conf$$.dir/conf$$.file
9440 mkdir conf$$.dir 2>/dev/null
9442 if (echo >conf$$.file) 2>/dev/null; then
9443 if ln -s conf$$.file conf$$ 2>/dev/null; then
9445 # ... but there are two gotchas:
9446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9448 # In both cases, we have to default to `cp -pR'.
9449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9451 elif ln conf$$.file conf$$ 2>/dev/null; then
9459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9460 rmdir conf$$.dir 2>/dev/null
9465 # Create "$as_dir" as a directory, including parents if necessary.
9470 -*) as_dir=./$as_dir;;
9472 test -d "$as_dir" || eval $as_mkdir_p || {
9476 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9477 *) as_qdir=$as_dir;;
9479 as_dirs="'$as_qdir' $as_dirs"
9480 as_dir=`$as_dirname -- "$as_dir" ||
9481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9482 X"$as_dir" : 'X\(//\)[^/]' \| \
9483 X"$as_dir" : 'X\(//\)$' \| \
9484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9485 $as_echo X"$as_dir" |
9486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9503 test -d "$as_dir" && break
9505 test -z "$as_dirs" || eval "mkdir $as_dirs"
9506 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9510 if mkdir -p . 2>/dev/null; then
9511 as_mkdir_p='mkdir -p "$as_dir"'
9513 test -d ./-p && rmdir ./-p
9518 # as_fn_executable_p FILE
9519 # -----------------------
9520 # Test if FILE is an executable regular file.
9521 as_fn_executable_p ()
9523 test -f "$1" && test -x "$1"
9524 } # as_fn_executable_p
9526 as_executable_p=as_fn_executable_p
9528 # Sed expression to map a string onto a valid CPP name.
9529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9531 # Sed expression to map a string onto a valid variable name.
9532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9536 ## ----------------------------------- ##
9537 ## Main body of $CONFIG_STATUS script. ##
9538 ## ----------------------------------- ##
9540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9543 # Save the log message, to keep $0 and so on meaningful, and to
9544 # report actual input values of CONFIG_FILES etc. instead of their
9545 # values after options handling.
9547 This file was extended by freeradius $as_me $Id$, which was
9548 generated by GNU Autoconf 2.69. Invocation command line was
9550 CONFIG_FILES = $CONFIG_FILES
9551 CONFIG_HEADERS = $CONFIG_HEADERS
9552 CONFIG_LINKS = $CONFIG_LINKS
9553 CONFIG_COMMANDS = $CONFIG_COMMANDS
9556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9561 case $ac_config_files in *"
9562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9565 case $ac_config_headers in *"
9566 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9571 # Files that config.status was made for.
9572 config_files="$ac_config_files"
9573 config_headers="$ac_config_headers"
9574 config_commands="$ac_config_commands"
9578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9580 \`$as_me' instantiates files and other configuration actions
9581 from templates according to the current configuration. Unless the files
9582 and actions are specified as TAGs, all are instantiated by default.
9584 Usage: $0 [OPTION]... [TAG]...
9586 -h, --help print this help, then exit
9587 -V, --version print version number and configuration settings, then exit
9588 --config print configuration, then exit
9589 -q, --quiet, --silent
9590 do not print progress messages
9591 -d, --debug don't remove temporary files
9592 --recheck update $as_me by reconfiguring in the same conditions
9593 --file=FILE[:TEMPLATE]
9594 instantiate the configuration file FILE
9595 --header=FILE[:TEMPLATE]
9596 instantiate the configuration header FILE
9598 Configuration files:
9601 Configuration headers:
9604 Configuration commands:
9607 Report bugs to <http://bugs.freeradius.org>.
9608 freeradius home page: <http://www.freeradius.org>."
9611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9614 freeradius config.status $Id$
9615 configured by $0, generated by GNU Autoconf 2.69,
9616 with options \\"\$ac_cs_config\\"
9618 Copyright (C) 2012 Free Software Foundation, Inc.
9619 This config.status script is free software; the Free Software Foundation
9620 gives unlimited permission to copy, distribute and modify it."
9624 test -n "\$AWK" || AWK=awk
9627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9628 # The default lists apply if the user does not specify any file.
9634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9639 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9651 # Handling of the options.
9652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9655 $as_echo "$ac_cs_version"; exit ;;
9656 --config | --confi | --conf | --con | --co | --c )
9657 $as_echo "$ac_cs_config"; exit ;;
9658 --debug | --debu | --deb | --de | --d | -d )
9660 --file | --fil | --fi | --f )
9663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9664 '') as_fn_error $? "missing file argument" ;;
9666 as_fn_append CONFIG_FILES " '$ac_optarg'"
9667 ac_need_defaults=false;;
9668 --header | --heade | --head | --hea )
9671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9673 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9674 ac_need_defaults=false;;
9676 # Conflict between --help and --header
9677 as_fn_error $? "ambiguous option: \`$1'
9678 Try \`$0 --help' for more information.";;
9679 --help | --hel | -h )
9680 $as_echo "$ac_cs_usage"; exit ;;
9681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9686 -*) as_fn_error $? "unrecognized option: \`$1'
9687 Try \`$0 --help' for more information." ;;
9689 *) as_fn_append ac_config_targets " $1"
9690 ac_need_defaults=false ;;
9696 ac_configure_extra_args=
9698 if $ac_cs_silent; then
9700 ac_configure_extra_args="$ac_configure_extra_args --silent"
9704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9705 if \$ac_cs_recheck; then
9706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9709 CONFIG_SHELL='$SHELL'
9715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9720 ## Running $as_me. ##
9726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9731 # Handling of arguments.
9732 for ac_config_target in $ac_config_targets
9734 case $ac_config_target in
9735 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
9736 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9737 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
9738 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
9739 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
9740 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
9741 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
9742 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
9743 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
9744 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
9745 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
9746 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
9747 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
9748 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
9749 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
9750 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
9751 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
9752 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
9754 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9759 # If the user did not use the arguments to specify the items to instantiate,
9760 # then the envvar interface is used. Set only those that are not.
9761 # We use the long form for the default assignment because of an extremely
9762 # bizarre bug on SunOS 4.1.3.
9763 if $ac_need_defaults; then
9764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9769 # Have a temporary directory for convenience. Make it in the build tree
9770 # simply because there is no reason against having it here, and in addition,
9771 # creating and moving files from /tmp can sometimes cause problems.
9772 # Hook for its removal unless debugging.
9773 # Note that there is a small window in which the directory will not be cleaned:
9774 # after its creation but before its name has been assigned to `$tmp'.
9778 trap 'exit_status=$?
9780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9782 trap 'as_fn_exit 1' 1 2 13 15
9784 # Create a (secure) tmp directory for tmp files.
9787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9791 tmp=./conf$$-$RANDOM
9792 (umask 077 && mkdir "$tmp")
9793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9796 # Set up the scripts for CONFIG_FILES section.
9797 # No need to generate them if there are no CONFIG_FILES.
9798 # This happens for instance with `./config.status config.h'.
9799 if test -n "$CONFIG_FILES"; then
9802 ac_cr=`echo X | tr X '\015'`
9803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9804 # But we know of no other shell where ac_cr would be empty at this
9805 # point, so we can use a bashism as a fallback.
9806 if test "x$ac_cr" = x; then
9807 eval ac_cr=\$\'\\r\'
9809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9821 echo "cat >conf$$subs.awk <<_ACEOF" &&
9822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9828 for ac_last_try in false false false false false :; do
9829 . ./conf$$subs.sh ||
9830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9833 if test $ac_delim_n = $ac_delim_num; then
9835 elif $ac_last_try; then
9836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9848 s/^/S["/; s/!.*/"]=/
9858 s/\(.\{148\}\)..*/\1/
9860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9872 s/\(.\{148\}\)..*/\1/
9874 s/["\\]/\\&/g; s/^/"/; s/$/"/
9878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9883 ' <conf$$subs.awk | sed '
9888 ' >>$CONFIG_STATUS || ac_write_fail=1
9889 rm -f conf$$subs.awk
9890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9893 for (key in S) S_is_set[key] = 1
9899 nfields = split(line, field, "@")
9901 len = length(field[1])
9902 for (i = 2; i < nfields; i++) {
9904 keylen = length(key)
9905 if (S_is_set[key]) {
9907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9908 len += length(value) + length(field[++i])
9919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9930 # trailing colons and then remove the whole line if VPATH becomes empty
9931 # (actually we leave an empty line to preserve line numbers).
9932 if test "x$srcdir" = x.; then
9933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9952 fi # test -n "$CONFIG_FILES"
9954 # Set up the scripts for CONFIG_HEADERS section.
9955 # No need to generate them if there are no CONFIG_HEADERS.
9956 # This happens for instance with `./config.status Makefile'.
9957 if test -n "$CONFIG_HEADERS"; then
9958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9962 # Transform confdefs.h into an awk script `defines.awk', embedded as
9963 # here-document in config.status, that substitutes the proper values into
9964 # config.h.in to produce config.h.
9966 # Create a delimiter string that does not exist in confdefs.h, to ease
9967 # handling of long lines.
9969 for ac_last_try in false false :; do
9970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9971 if test -z "$ac_tt"; then
9973 elif $ac_last_try; then
9974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9980 # For the awk script, D is an array of macro values keyed by name,
9981 # likewise P contains macro parameters if any. Preserve backslash
9982 # newline sequences.
9984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9986 s/.\{148\}/&'"$ac_delim"'/g
9989 s/^[ ]*#[ ]*define[ ][ ]*/ /
9996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10003 D["\1"]=" \3\\\\\\n"\\/p
10005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10010 s/.\{148\}/&'"$ac_delim"'/g
10015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10020 ' <confdefs.h | sed '
10021 s/'"$ac_delim"'/"\\\
10022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10025 for (key in D) D_is_set[key] = 1
10028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10030 split(line, arg, " ")
10031 if (arg[1] == "#") {
10035 defundef = substr(arg[1], 2)
10038 split(mac1, mac2, "(") #)
10040 prefix = substr(line, 1, index(line, defundef) - 1)
10041 if (D_is_set[macro]) {
10042 # Preserve the white space surrounding the "#".
10043 print prefix "define", macro P[macro] D[macro]
10046 # Replace #undef with comments. This is necessary, for example,
10047 # in the case of _POSIX_SOURCE, which is predefined and required
10048 # on some systems where configure will not decide to define it.
10049 if (defundef == "undef") {
10050 print "/*", prefix defundef, macro, "*/"
10058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10060 fi # test -n "$CONFIG_HEADERS"
10063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10068 :[FHLC]) ac_mode=$ac_tag; continue;;
10070 case $ac_mode$ac_tag in
10072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10073 :[FH]-) ac_tag=-:-;;
10074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10091 -) ac_f="$ac_tmp/stdin";;
10092 *) # Look for the file first in the build tree, then in the source tree
10093 # (if the path is not absolute). The absolute path cannot be DOS-style,
10094 # because $ac_f cannot contain `:'.
10098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10103 as_fn_append ac_file_inputs " '$ac_f'"
10106 # Let's still pretend it is `configure' which instantiates (i.e., don't
10107 # use $as_me), people would be surprised to read:
10108 # /* config.h. Generated by config.status. */
10109 configure_input='Generated from '`
10110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10112 if test x"$ac_file" != x-; then
10113 configure_input="$ac_file. $configure_input"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10115 $as_echo "$as_me: creating $ac_file" >&6;}
10117 # Neutralize special characters interpreted by sed in replacement strings.
10118 case $configure_input in #(
10119 *\&* | *\|* | *\\* )
10120 ac_sed_conf_input=`$as_echo "$configure_input" |
10121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10122 *) ac_sed_conf_input=$configure_input;;
10126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10132 ac_dir=`$as_dirname -- "$ac_file" ||
10133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10134 X"$ac_file" : 'X\(//\)[^/]' \| \
10135 X"$ac_file" : 'X\(//\)$' \| \
10136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10137 $as_echo X"$ac_file" |
10138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10142 /^X\(\/\/\)[^/].*/{
10155 as_dir="$ac_dir"; as_fn_mkdir_p
10159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10162 # A ".." for each directory in $ac_dir_suffix.
10163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10164 case $ac_top_builddir_sub in
10165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10169 ac_abs_top_builddir=$ac_pwd
10170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10171 # for backward compatibility:
10172 ac_top_builddir=$ac_top_build_prefix
10175 .) # We are building in place.
10177 ac_top_srcdir=$ac_top_builddir_sub
10178 ac_abs_top_srcdir=$ac_pwd ;;
10179 [\\/]* | ?:[\\/]* ) # Absolute name.
10180 ac_srcdir=$srcdir$ac_dir_suffix;
10181 ac_top_srcdir=$srcdir
10182 ac_abs_top_srcdir=$srcdir ;;
10183 *) # Relative name.
10184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10185 ac_top_srcdir=$ac_top_build_prefix$srcdir
10186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10200 # If the template does not know about datarootdir, expand it.
10201 # FIXME: This hack should be removed a few years after 2.60.
10202 ac_datarootdir_hack=; ac_datarootdir_seen=
10213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10214 *datarootdir*) ac_datarootdir_seen=yes;;
10215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10220 ac_datarootdir_hack='
10221 s&@datadir@&$datadir&g
10222 s&@docdir@&$docdir&g
10223 s&@infodir@&$infodir&g
10224 s&@localedir@&$localedir&g
10225 s&@mandir@&$mandir&g
10226 s&\\\${datarootdir}&$datarootdir&g' ;;
10230 # Neutralize VPATH when `$srcdir' = `.'.
10231 # Shell code in configure.ac might set extrasub.
10232 # FIXME: do we really want to maintain this feature?
10233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10234 ac_sed_extra="$ac_vpsub
10237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10240 s|@configure_input@|$ac_sed_conf_input|;t t
10241 s&@top_builddir@&$ac_top_builddir_sub&;t t
10242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10243 s&@srcdir@&$ac_srcdir&;t t
10244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10245 s&@top_srcdir@&$ac_top_srcdir&;t t
10246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10247 s&@builddir@&$ac_builddir&;t t
10248 s&@abs_builddir@&$ac_abs_builddir&;t t
10249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10250 $ac_datarootdir_hack
10252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10253 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10255 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10256 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10257 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10258 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10260 which seems to be undefined. Please make sure it is defined" >&5
10261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10262 which seems to be undefined. Please make sure it is defined" >&2;}
10264 rm -f "$ac_tmp/stdin"
10266 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10267 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10275 if test x"$ac_file" != x-; then
10277 $as_echo "/* $configure_input */" \
10278 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10279 } >"$ac_tmp/config.h" \
10280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10281 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10286 mv "$ac_tmp/config.h" "$ac_file" \
10287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10290 $as_echo "/* $configure_input */" \
10291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10292 || as_fn_error $? "could not create -" "$LINENO" 5
10296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10297 $as_echo "$as_me: executing $ac_file commands" >&6;}
10302 case $ac_file$ac_mode in
10303 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
10304 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
10305 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
10306 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
10314 ac_clean_files=$ac_clean_files_save
10316 test $ac_write_fail = 0 ||
10317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10320 # configure is writing to config.log, and then calls config.status.
10321 # config.status does its own redirection, appending to config.log.
10322 # Unfortunately, on DOS this fails, as config.log is still kept open
10323 # by configure, so config.status won't be able to write to it; its
10324 # output is simply discarded. So we exec the FD to /dev/null,
10325 # effectively closing config.log, so it can be properly (re)opened and
10326 # appended to by config.status. When coming back to configure, we
10327 # need to make the FD available again.
10328 if test "$no_create" != yes; then
10330 ac_config_status_args=
10331 test "$silent" = yes &&
10332 ac_config_status_args="$ac_config_status_args --quiet"
10334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10337 # would make configure fail if this is the last instruction.
10338 $ac_cs_success || as_fn_exit 1
10342 # CONFIG_SUBDIRS section.
10344 if test "$no_recursion" != yes; then
10346 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10347 # so they do not pile up.
10348 ac_sub_configure_args=
10350 eval "set x $ac_configure_args"
10354 if test -n "$ac_prev"; then
10359 -cache-file | --cache-file | --cache-fil | --cache-fi \
10360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10361 ac_prev=cache_file ;;
10362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10366 --config-cache | -C)
10368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10376 --disable-option-checking)
10380 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10382 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10386 # Always prepend --prefix to ensure using the same prefix
10387 # in subdir configurations.
10388 ac_arg="--prefix=$prefix"
10390 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10392 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10395 if test "$silent" = yes; then
10396 ac_sub_configure_args="--silent $ac_sub_configure_args"
10399 # Always prepend --disable-option-checking to silence warnings, since
10400 # different subdirs can have different --enable and --with options.
10401 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10404 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10406 # Do not complain, so a configure script can configure whichever
10407 # parts of a large source tree are present.
10408 test -d "$srcdir/$ac_dir" || continue
10410 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10412 $as_echo "$ac_msg" >&6
10413 as_dir="$ac_dir"; as_fn_mkdir_p
10417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10420 # A ".." for each directory in $ac_dir_suffix.
10421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10422 case $ac_top_builddir_sub in
10423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10427 ac_abs_top_builddir=$ac_pwd
10428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10429 # for backward compatibility:
10430 ac_top_builddir=$ac_top_build_prefix
10433 .) # We are building in place.
10435 ac_top_srcdir=$ac_top_builddir_sub
10436 ac_abs_top_srcdir=$ac_pwd ;;
10437 [\\/]* | ?:[\\/]* ) # Absolute name.
10438 ac_srcdir=$srcdir$ac_dir_suffix;
10439 ac_top_srcdir=$srcdir
10440 ac_abs_top_srcdir=$srcdir ;;
10441 *) # Relative name.
10442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10443 ac_top_srcdir=$ac_top_build_prefix$srcdir
10444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10451 # Check for guested configure; otherwise get Cygnus style configure.
10452 if test -f "$ac_srcdir/configure.gnu"; then
10453 ac_sub_configure=$ac_srcdir/configure.gnu
10454 elif test -f "$ac_srcdir/configure"; then
10455 ac_sub_configure=$ac_srcdir/configure
10456 elif test -f "$ac_srcdir/configure.in"; then
10457 # This should be Cygnus configure.
10458 ac_sub_configure=$ac_aux_dir/configure
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10465 # The recursion is here.
10466 if test -n "$ac_sub_configure"; then
10467 # Make the cache file name correct relative to the subdirectory.
10468 case $cache_file in
10469 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10470 *) # Relative name.
10471 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10474 { $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
10475 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10476 # The eval makes quoting arguments work.
10477 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10478 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10479 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}