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
656 openssl_version_check_config
693 RADIUSD_VERSION_STRING
721 program_transform_name
734 enable_option_checking
737 enable_strict_dependencies
752 with_experimental_modules
755 with_rlm_FOO_include_dir
758 with_openssl_include_dir
759 enable_openssl_version_check
761 with_talloc_include_dir
763 with_pcap_include_dir
764 with_collectdclient_lib_dir
765 with_collectdclient_include_dir
768 with_execinfo_lib_dir
769 with_execinfo_include_dir
772 with_pcre_include_dir
775 ac_precious_vars='build_alias
787 ac_subdirs_all='$mysubdirs'
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
947 -help | --help | --hel | --he | -h)
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1096 -site=* | --site=* | --sit=*)
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1223 # Be sure to have absolute directory names.
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of freeradius $Id$:";;
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-developer enables features of interest to developers.
1402 --disable-largefile omit support for large files
1403 --enable-strict-dependencies fail configure on lack of module dependancy.
1404 --enable-werror causes the build to fail if any warnings are generated.
1405 --disable-openssl-version-check
1406 disable vulnerable OpenSSL version check
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1413 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1414 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1415 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1416 --with-dictdir=DIR directory for dictionary files DATAROOTDIR/freeradius
1417 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1418 --with-threads use threads, if available. (default=yes)
1419 --with-tcp compile in TCP support. (default=yes)
1420 --with-vmps compile in VMPS support. (default=yes)
1421 --with-dhcp compile in DHCP support. (default=yes)
1422 --with-static-modules=QUOTED-MODULE-LIST
1423 --with-shared-libs build dynamic libraries and link against them.
1425 --with-modules=QUOTED-MODULE-LIST
1426 --with-experimental-modules
1427 use experimental and unstable modules. (default=no,
1428 unless --enable-developer=yes)
1429 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1430 --with-rlm-FOO-lib-dir=DIR
1431 directory in which to look for library files used by
1433 --with-rlm-FOO-include-dir=DIR
1434 directory in which to look for include files used by
1436 --with-openssl use OpenSSL. (default=yes)
1437 --with-openssl-lib-dir=DIR
1438 directory to look for OpenSSL library files
1439 --with-openssl-include-dir=DIR
1440 directory to look for OpenSSL include files
1441 --with-talloc-lib-dir=DIR
1442 directory in which to look for talloc library files
1443 --with-talloc-include-dir=DIR
1444 directory in which to look for talloc include files
1445 --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1446 --with-pcap-include-dir=DIR
1447 directory in which to look for pcap include files
1448 --with-collectdclient-lib-dir=DIR
1449 directory in which to look for collectdclient
1451 --with-collectdclient-include-dir=DIR
1452 directory in which to look for collectdclient
1454 --with-cap-lib-dir=DIR directory in which to look for cap library files
1455 --with-cap-include-dir=DIR
1456 directory in which to look for cap include files
1457 --with-execinfo-lib-dir=DIR
1458 directory in which to look for execinfo library
1460 --with-execinfo-include-dir=DIR
1461 directory in which to look for execinfo include
1463 --with-pcre use libpcre (if available). (default=yes)
1464 --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1465 --with-pcre-include-dir=DIR
1466 directory in which to look for pcre include files
1467 --with-regex Whether to build with regular expressions
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to <http://bugs.freeradius.org>.
1486 freeradius home page: <http://www.freeradius.org>.
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1549 freeradius configure $Id$
1550 generated by GNU Autoconf 2.69
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1599 } # ac_fn_c_try_compile
1601 # ac_fn_cxx_try_compile LINENO
1602 # ----------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_cxx_try_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1608 if { { ac_try="$ac_compile"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_cxx_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_cxx_try_compile
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1681 ac_fn_c_check_header_mongrel ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if eval \${$3+:} false; then :
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1694 # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_header_compiler=yes
1705 ac_header_compiler=no
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719 ac_header_preproc=yes
1721 ac_header_preproc=no
1723 rm -f conftest.err conftest.i conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1727 # So? What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ( $as_echo "## ----------------------------------------- ##
1747 ## Report this to http://bugs.freeradius.org ##
1748 ## ----------------------------------------- ##"
1749 ) | sed "s/^/$as_me: WARNING: /" >&2
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 eval "$3=\$ac_header_compiler"
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_header_mongrel
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=$ac_status
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_header_compile
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 test -x conftest$ac_exeext
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_link
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901 #define $2 innocuous_$2
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1909 # include <limits.h>
1911 # include <assert.h>
1916 /* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined __stub_$2 || defined __stub___$2
1938 if ac_fn_c_try_link "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_func
1953 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954 # -------------------------------------------
1955 # Tests whether TYPE exists after having included INCLUDES, setting cache
1956 # variable VAR accordingly.
1957 ac_fn_c_check_type ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1991 if ac_fn_c_try_compile "$LINENO"; then :
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_type
2007 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2008 # ---------------------------------------------
2009 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2011 ac_fn_c_check_decl ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 as_decl_name=`echo $2|sed 's/ *(.*//'`
2015 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2017 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2027 #ifndef $as_decl_name
2029 (void) $as_decl_use;
2031 (void) $as_decl_name;
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_decl
2052 cat >config.log <<_ACEOF
2053 This file contains any messages produced by compilers while
2054 running configure, to aid debugging if configure makes a mistake.
2056 It was created by freeradius $as_me $Id$, which was
2057 generated by GNU Autoconf 2.69. Invocation command line was
2069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2078 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2079 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2082 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2083 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2084 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 $as_echo "PATH: $as_dir"
2109 # Keep a trace of the command line.
2110 # Strip out --no-create and --no-recursion so they do not pile up.
2111 # Strip out --silent because we don't want to record it for future runs.
2112 # Also quote any args containing shell meta-characters.
2113 # Make two passes to allow for proper duplicate-argument suppression.
2117 ac_must_keep_next=false
2123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125 | -silent | --silent | --silen | --sile | --sil)
2128 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133 as_fn_append ac_configure_args1 " '$ac_arg'"
2134 if test $ac_must_keep_next = true; then
2135 ac_must_keep_next=false # Got value, back to normal.
2138 *=* | --config-cache | -C | -disable-* | --disable-* \
2139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141 | -with-* | --with-* | -without-* | --without-* | --x)
2142 case "$ac_configure_args0 " in
2143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2146 -* ) ac_must_keep_next=true ;;
2149 as_fn_append ac_configure_args " '$ac_arg'"
2154 { ac_configure_args0=; unset ac_configure_args0;}
2155 { ac_configure_args1=; unset ac_configure_args1;}
2157 # When interrupted or exit'd, cleanup temporary files, and complete
2158 # config.log. We remove comments because anyway the quotes in there
2159 # would cause problems or look ugly.
2160 # WARNING: Use '\'' to represent an apostrophe within the trap.
2161 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162 trap 'exit_status=$?
2163 # Save into config.log some information that might help in debugging.
2167 $as_echo "## ---------------- ##
2168 ## Cache variables. ##
2169 ## ---------------- ##"
2171 # The following way of writing the cache mishandles newlines in values,
2173 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174 eval ac_val=\$$ac_var
2178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2182 _ | IFS | as_nl) ;; #(
2183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184 *) { eval $ac_var=; unset $ac_var;} ;;
2189 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190 *${as_nl}ac_space=\ *)
2192 "s/'\''/'\''\\\\'\'''\''/g;
2193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203 $as_echo "## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##"
2207 for ac_var in $ac_subst_vars
2209 eval ac_val=\$$ac_var
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213 $as_echo "$ac_var='\''$ac_val'\''"
2217 if test -n "$ac_subst_files"; then
2218 $as_echo "## ------------------- ##
2219 ## File substitutions. ##
2220 ## ------------------- ##"
2222 for ac_var in $ac_subst_files
2224 eval ac_val=\$$ac_var
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 $as_echo "$ac_var='\''$ac_val'\''"
2233 if test -s confdefs.h; then
2234 $as_echo "## ----------- ##
2241 test "$ac_signal" != 0 &&
2242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
2245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2249 for ac_signal in 1 2 13 15; do
2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2257 $as_echo "/* confdefs.h */" > confdefs.h
2259 # Predefined preprocessor variables.
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2290 if test -n "$CONFIG_SITE"; then
2291 # We do not want a PATH search for config.site.
2292 case $CONFIG_SITE in #((
2293 -*) ac_site_file1=./$CONFIG_SITE;;
2294 */*) ac_site_file1=$CONFIG_SITE;;
2295 *) ac_site_file1=./$CONFIG_SITE;;
2297 elif test "x$prefix" != xNONE; then
2298 ac_site_file1=$prefix/share/config.site
2299 ac_site_file2=$prefix/etc/config.site
2301 ac_site_file1=$ac_default_prefix/share/config.site
2302 ac_site_file2=$ac_default_prefix/etc/config.site
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306 test "x$ac_site_file" = xNONE && continue
2307 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310 sed 's/^/| /' "$ac_site_file" >&5
2312 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 as_fn_error $? "failed to load site script $ac_site_file
2315 See \`config.log' for more details" "$LINENO" 5; }
2319 if test -r "$cache_file"; then
2320 # Some versions of bash will fail to source /dev/null (special files
2321 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2322 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324 $as_echo "$as_me: loading cache $cache_file" >&6;}
2326 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327 *) . "./$cache_file";;
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332 $as_echo "$as_me: creating cache $cache_file" >&6;}
2336 # Check that the precious variables saved in the cache have kept the same
2338 ac_cache_corrupted=false
2339 for ac_var in $ac_precious_vars; do
2340 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341 eval ac_new_set=\$ac_env_${ac_var}_set
2342 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343 eval ac_new_val=\$ac_env_${ac_var}_value
2344 case $ac_old_set,$ac_new_set in
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2355 if test "x$ac_old_val" != "x$ac_new_val"; then
2356 # differences in whitespace do not lead to failure.
2357 ac_old_val_w=`echo x $ac_old_val`
2358 ac_new_val_w=`echo x $ac_new_val`
2359 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362 ac_cache_corrupted=:
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366 eval $ac_var=\$ac_old_val
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2369 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2371 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2374 # Pass precious variables to config.status.
2375 if test "$ac_new_set" = set; then
2377 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 *) ac_arg=$ac_var=$ac_new_val ;;
2380 case " $ac_configure_args " in
2381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2382 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386 if $ac_cache_corrupted; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2393 ## -------------------- ##
2394 ## Main body of script. ##
2395 ## -------------------- ##
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2420 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2421 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2422 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2424 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2425 -v minor="$RADIUSD_MINOR_VERSION" \
2426 -v incrm="$RADIUSD_INCRM_VERSION" \
2427 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2429 RADIUSD_VERSION_STRING=`cat VERSION`
2434 cat >>confdefs.h <<_ACEOF
2435 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2439 cat >>confdefs.h <<_ACEOF
2440 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2445 # Check whether --enable-developer was given.
2446 if test "${enable_developer+set}" = set; then :
2447 enableval=$enable_developer; case "$enableval" in
2458 if test -d $srcdir/.git; then
2459 if test "x$developer" != "xno"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2461 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2466 if test "x$developer" = "xyes"; then
2472 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2473 if test -f "$ac_dir/install-sh"; then
2475 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 elif test -f "$ac_dir/install.sh"; then
2479 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 elif test -f "$ac_dir/shtool"; then
2483 ac_install_sh="$ac_aux_dir/shtool install -c"
2487 if test -z "$ac_aux_dir"; then
2488 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2491 # These three variables are undocumented and unsupported,
2492 # and are intended to be withdrawn in a future Autoconf release.
2493 # They can cause serious problems if a builder's source tree is in a directory
2494 # whose full name contains unusual characters.
2495 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2496 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2497 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2500 # Make sure we can run config.sub.
2501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2502 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2505 $as_echo_n "checking build system type... " >&6; }
2506 if ${ac_cv_build+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 ac_build_alias=$build_alias
2510 test "x$ac_build_alias" = x &&
2511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2512 test "x$ac_build_alias" = x &&
2513 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2514 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2519 $as_echo "$ac_cv_build" >&6; }
2520 case $ac_cv_build in
2522 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2525 ac_save_IFS=$IFS; IFS='-'
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2539 $as_echo_n "checking host system type... " >&6; }
2540 if ${ac_cv_host+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test "x$host_alias" = x; then
2544 ac_cv_host=$ac_cv_build
2546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2547 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2552 $as_echo "$ac_cv_host" >&6; }
2555 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2558 ac_save_IFS=$IFS; IFS='-'
2564 # Remember, the first character of IFS is used to create $*,
2565 # except with old shells:
2568 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2572 $as_echo_n "checking target system type... " >&6; }
2573 if ${ac_cv_target+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 if test "x$target_alias" = x; then
2577 ac_cv_target=$ac_cv_host
2579 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2585 $as_echo "$ac_cv_target" >&6; }
2586 case $ac_cv_target in
2588 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2590 target=$ac_cv_target
2591 ac_save_IFS=$IFS; IFS='-'
2597 # Remember, the first character of IFS is used to create $*,
2598 # except with old shells:
2601 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2604 # The aliases save the names the user supplied, while $host etc.
2605 # will get canonicalized.
2606 test -n "$target_alias" &&
2607 test "$program_prefix$program_suffix$program_transform_name" = \
2609 program_prefix=${target_alias}-
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623 $as_echo_n "(cached) " >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2656 if test -z "$ac_cv_prog_CC"; then
2658 # Extract the first word of "gcc", so it can be a program name with args.
2659 set dummy gcc; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CC="gcc"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686 if test -n "$ac_ct_CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688 $as_echo "$ac_ct_CC" >&6; }
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2694 if test "x$ac_ct_CC" = x; then
2697 case $cross_compiling:$ac_tool_warned in
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2709 if test -z "$CC"; then
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}cc; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_CC+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_CC="${ac_tool_prefix}cc"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2750 if test -z "$CC"; then
2751 # Extract the first word of "cc", so it can be a program name with args.
2752 set dummy cc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2770 ac_prog_rejected=yes
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test $ac_prog_rejected = yes; then
2782 # We found a bogon in the path, so make sure we never use it.
2783 set dummy $ac_cv_prog_CC
2785 if test $# != 0; then
2786 # We chose a different compiler from the bogus one.
2787 # However, it has the same basename, so the bogon will be chosen
2788 # first if we set CC to just the basename; use the full file name.
2790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 for ac_prog in cl.exe
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CC"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840 $as_echo "$CC" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2847 test -n "$CC" && break
2850 if test -z "$CC"; then
2852 for ac_prog in cl.exe
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$ac_ct_CC"; then
2862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_ac_ct_CC="$ac_prog"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884 $as_echo "$ac_ct_CC" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2891 test -n "$ac_ct_CC" && break
2894 if test "x$ac_ct_CC" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901 ac_tool_warned=yes ;;
2910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error $? "no acceptable C compiler found in \$PATH
2913 See \`config.log' for more details" "$LINENO" 5; }
2915 # Provide some information about the compiler.
2916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2919 for ac_option in --version -v -V -qversion; do
2920 { { ac_try="$ac_compiler $ac_option >&5"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926 $as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929 if test -s conftest.err; then
2931 ... rest of stderr output deleted ...
2932 10q' conftest.err >conftest.er1
2933 cat conftest.er1 >&5
2935 rm -f conftest.er1 conftest.err
2936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937 test $ac_status = 0; }
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2951 ac_clean_files_save=$ac_clean_files
2952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2953 # Try to create an executable without -o first, disregard a.out.
2954 # It will help us diagnose broken compilers, and finding out an intuition
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960 # The possible output files:
2961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964 for ac_file in $ac_files
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2973 if { { ac_try="$ac_link_default"
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_link_default") 2>&5
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; then :
2984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2989 for ac_file in $ac_files ''
2991 test -f "$ac_file" || continue
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2996 # We found the default executable, but exeext='' is most
3000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 # We set ac_cv_exeext here because the later test for it is not
3005 # safe: cross compilers may not add the suffix if given an `-o'
3006 # argument, so we may need to know it at that point already.
3007 # Even if this section looks crufty: it has the advantage of
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3019 if test -z "$ac_file"; then :
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 $as_echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error 77 "C compiler cannot create executables
3028 See \`config.log' for more details" "$LINENO" 5; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3031 $as_echo "yes" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3034 $as_echo_n "checking for C compiler default output file name... " >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3036 $as_echo "$ac_file" >&6; }
3037 ac_exeext=$ac_cv_exeext
3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3040 ac_clean_files=$ac_clean_files_save
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3042 $as_echo_n "checking for suffix of executables... " >&6; }
3043 if { { ac_try="$ac_link"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link") 2>&5
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }; then :
3054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3056 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 for ac_file in conftest.exe conftest conftest.*; do
3059 test -f "$ac_file" || continue
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details" "$LINENO" 5; }
3073 rm -f conftest conftest$ac_cv_exeext
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3086 FILE *f = fopen ("conftest.out", "w");
3087 return ferror (f) || fclose (f) != 0;
3093 ac_clean_files="$ac_clean_files conftest.out"
3094 # Check that the compiler produces executables we can run. If not, either
3095 # the compiler is broken, or we cross compile.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3097 $as_echo_n "checking whether we are cross compiling... " >&6; }
3098 if test "$cross_compiling" != yes; then
3099 { { ac_try="$ac_link"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link") 2>&5
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }
3110 if { ac_try='./conftest$ac_cv_exeext'
3111 { { case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_try") 2>&5
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; }; then
3123 if test "$cross_compiling" = maybe; then
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "cannot run C compiled programs.
3129 If you meant to cross compile, use \`--host'.
3130 See \`config.log' for more details" "$LINENO" 5; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3135 $as_echo "$cross_compiling" >&6; }
3137 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3138 ac_clean_files=$ac_clean_files_save
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3140 $as_echo_n "checking for suffix of object files... " >&6; }
3141 if ${ac_cv_objext+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3155 rm -f conftest.o conftest.obj
3156 if { { ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_compile") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 for ac_file in conftest.o conftest.obj conftest.*; do
3168 test -f "$ac_file" || continue;
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details" "$LINENO" 5; }
3184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3187 $as_echo "$ac_cv_objext" >&6; }
3188 OBJEXT=$ac_cv_objext
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3191 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3192 if ${ac_cv_c_compiler_gnu+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3209 if ac_fn_c_try_compile "$LINENO"; then :
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3219 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3220 if test $ac_compiler_gnu = yes; then
3225 ac_test_CFLAGS=${CFLAGS+set}
3226 ac_save_CFLAGS=$CFLAGS
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3228 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3229 if ${ac_cv_prog_cc_g+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 ac_save_c_werror_flag=$ac_c_werror_flag
3233 ac_c_werror_flag=yes
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3247 if ac_fn_c_try_compile "$LINENO"; then :
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 if ac_fn_c_try_compile "$LINENO"; then :
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3278 if ac_fn_c_try_compile "$LINENO"; then :
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3289 $as_echo "$ac_cv_prog_cc_g" >&6; }
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3299 if test "$GCC" = yes; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3306 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3307 if ${ac_cv_prog_cc_c89+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 ac_cv_prog_cc_c89=no
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3331 s = g (p, va_arg (v,int));
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
3339 as 'x'. The following induces an error, until -std is added to get
3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
3342 that's true only with -std. */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346 inside strings and character constants. */
3348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350 int test (int i, double x);
3351 struct s1 {int (*f) (int a);};
3352 struct s2 {int (*f) (double a);};
3353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 CC="$ac_save_CC $ac_arg"
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_c89=$ac_arg
3371 rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 rm -f conftest.$ac_ext
3379 case "x$ac_cv_prog_cc_c89" in
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3382 $as_echo "none needed" >&6; } ;;
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3385 $as_echo "unsupported" >&6; } ;;
3387 CC="$CC $ac_cv_prog_cc_c89"
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 if test "x$ac_cv_prog_cc_c89" != xno; then :
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 ac_cpp='$CXXCPP $CPPFLAGS'
3403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3406 if test -z "$CXX"; then
3407 if test -n "$CCC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CXX+:} false; then :
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CXX"; then
3421 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CXX"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3443 $as_echo "$CXX" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3450 test -n "$CXX" && break
3453 if test -z "$CXX"; then
3455 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3457 # Extract the first word of "$ac_prog", so it can be a program name with args.
3458 set dummy $ac_prog; ac_word=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$ac_ct_CXX"; then
3465 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_ac_ct_CXX="$ac_prog"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3485 if test -n "$ac_ct_CXX"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3487 $as_echo "$ac_ct_CXX" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3494 test -n "$ac_ct_CXX" && break
3497 if test "x$ac_ct_CXX" = x; then
3500 case $cross_compiling:$ac_tool_warned in
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 ac_tool_warned=yes ;;
3512 # Provide some information about the compiler.
3513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3516 for ac_option in --version -v -V -qversion; do
3517 { { ac_try="$ac_compiler $ac_option >&5"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526 if test -s conftest.err; then
3528 ... rest of stderr output deleted ...
3529 10q' conftest.err >conftest.er1
3530 cat conftest.er1 >&5
3532 rm -f conftest.er1 conftest.err
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3538 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3539 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3556 if ac_fn_cxx_try_compile "$LINENO"; then :
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3566 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3567 if test $ac_compiler_gnu = yes; then
3572 ac_test_CXXFLAGS=${CXXFLAGS+set}
3573 ac_save_CXXFLAGS=$CXXFLAGS
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3575 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3576 if ${ac_cv_prog_cxx_g+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3580 ac_cxx_werror_flag=yes
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
3595 ac_cv_prog_cxx_g=yes
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_cxx_try_compile "$LINENO"; then :
3612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 if ac_fn_cxx_try_compile "$LINENO"; then :
3626 ac_cv_prog_cxx_g=yes
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3636 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3637 if test "$ac_test_CXXFLAGS" = set; then
3638 CXXFLAGS=$ac_save_CXXFLAGS
3639 elif test $ac_cv_prog_cxx_g = yes; then
3640 if test "$GXX" = yes; then
3646 if test "$GXX" = yes; then
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3666 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3671 if test -z "$CPP"; then
3672 if ${ac_cv_prog_CPP+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 # Double quotes because CPP needs to be expanded
3676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 for ac_c_preproc_warn_flag in '' yes
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 # <limits.h> exists even on freestanding compilers.
3685 # On the NeXT, cc -E runs the code through the compiler's parser,
3686 # not just through cpp. "Syntax error" is here to catch this case.
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3690 # include <limits.h>
3692 # include <assert.h>
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3699 # Broken: fails on valid input.
3702 rm -f conftest.err conftest.i conftest.$ac_ext
3704 # OK, works on sane cases. Now check whether nonexistent headers
3705 # can be detected and how.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #include <ac_nonexistent.h>
3710 if ac_fn_c_try_cpp "$LINENO"; then :
3711 # Broken: success on invalid input.
3714 # Passes both tests.
3718 rm -f conftest.err conftest.i conftest.$ac_ext
3721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3722 rm -f conftest.i conftest.err conftest.$ac_ext
3723 if $ac_preproc_ok; then :
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3736 $as_echo "$CPP" >&6; }
3738 for ac_c_preproc_warn_flag in '' yes
3740 # Use a header file that comes with gcc, so configuring glibc
3741 # with a fresh cross-compiler works.
3742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 # <limits.h> exists even on freestanding compilers.
3744 # On the NeXT, cc -E runs the code through the compiler's parser,
3745 # not just through cpp. "Syntax error" is here to catch this case.
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 # include <limits.h>
3751 # include <assert.h>
3755 if ac_fn_c_try_cpp "$LINENO"; then :
3758 # Broken: fails on valid input.
3761 rm -f conftest.err conftest.i conftest.$ac_ext
3763 # OK, works on sane cases. Now check whether nonexistent headers
3764 # can be detected and how.
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <ac_nonexistent.h>
3769 if ac_fn_c_try_cpp "$LINENO"; then :
3770 # Broken: success on invalid input.
3773 # Passes both tests.
3777 rm -f conftest.err conftest.i conftest.$ac_ext
3780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3781 rm -f conftest.i conftest.err conftest.$ac_ext
3782 if $ac_preproc_ok; then :
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3788 See \`config.log' for more details" "$LINENO" 5; }
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3800 if ${ac_cv_path_GREP+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -z "$GREP"; then
3804 ac_path_GREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in grep ggrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3814 as_fn_executable_p "$ac_path_GREP" || continue
3815 # Check for GNU ac_path_GREP and select it if it is found.
3816 # Check for GNU $ac_path_GREP
3817 case `"$ac_path_GREP" --version 2>&1` in
3819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3822 $as_echo_n 0123456789 >"conftest.in"
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 $as_echo 'GREP' >> "conftest.nl"
3829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 as_fn_arith $ac_count + 1 && ac_count=$as_val
3832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_GREP="$ac_path_GREP"
3835 ac_path_GREP_max=$ac_count
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843 $ac_path_GREP_found && break 3
3848 if test -z "$ac_cv_path_GREP"; then
3849 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3852 ac_cv_path_GREP=$GREP
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3857 $as_echo "$ac_cv_path_GREP" >&6; }
3858 GREP="$ac_cv_path_GREP"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3862 $as_echo_n "checking for egrep... " >&6; }
3863 if ${ac_cv_path_EGREP+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3867 then ac_cv_path_EGREP="$GREP -E"
3869 if test -z "$EGREP"; then
3870 ac_path_EGREP_found=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in egrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3880 as_fn_executable_p "$ac_path_EGREP" || continue
3881 # Check for GNU ac_path_EGREP and select it if it is found.
3882 # Check for GNU $ac_path_EGREP
3883 case `"$ac_path_EGREP" --version 2>&1` in
3885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3888 $as_echo_n 0123456789 >"conftest.in"
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 $as_echo 'EGREP' >> "conftest.nl"
3895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 as_fn_arith $ac_count + 1 && ac_count=$as_val
3898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_EGREP="$ac_path_EGREP"
3901 ac_path_EGREP_max=$ac_count
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3909 $ac_path_EGREP_found && break 3
3914 if test -z "$ac_cv_path_EGREP"; then
3915 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3918 ac_cv_path_EGREP=$EGREP
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3924 $as_echo "$ac_cv_path_EGREP" >&6; }
3925 EGREP="$ac_cv_path_EGREP"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3929 $as_echo_n "checking for ANSI C header files... " >&6; }
3930 if ${ac_cv_header_stdc+:} false; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949 ac_cv_header_stdc=yes
3951 ac_cv_header_stdc=no
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 $EGREP "memchr" >/dev/null 2>&1; then :
3966 ac_cv_header_stdc=no
3972 if test $ac_cv_header_stdc = yes; then
3973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3980 $EGREP "free" >/dev/null 2>&1; then :
3983 ac_cv_header_stdc=no
3989 if test $ac_cv_header_stdc = yes; then
3990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3991 if test "$cross_compiling" = yes; then :
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3998 #if ((' ' & 0x0FF) == 0x020)
3999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002 # define ISLOWER(c) \
4003 (('a' <= (c) && (c) <= 'i') \
4004 || ('j' <= (c) && (c) <= 'r') \
4005 || ('s' <= (c) && (c) <= 'z'))
4006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4014 for (i = 0; i < 256; i++)
4015 if (XOR (islower (i), ISLOWER (i))
4016 || toupper (i) != TOUPPER (i))
4021 if ac_fn_c_try_run "$LINENO"; then :
4024 ac_cv_header_stdc=no
4026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4027 conftest.$ac_objext conftest.beam conftest.$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4033 $as_echo "$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042 inttypes.h stdint.h unistd.h
4044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4048 cat >>confdefs.h <<_ACEOF
4049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4058 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4059 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4066 if test "$MINIX" = yes; then
4068 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4071 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4074 $as_echo "#define _MINIX 1" >>confdefs.h
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4080 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4081 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4087 # define __EXTENSIONS__ 1
4088 $ac_includes_default
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_safe_to_define___extensions__=yes
4100 ac_cv_safe_to_define___extensions__=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4105 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4106 test $ac_cv_safe_to_define___extensions__ = yes &&
4107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4120 if test $ac_cv_c_compiler_gnu = yes; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4122 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4123 if ${ac_cv_prog_gcc_traditional+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 ac_pattern="Autoconf.*'x'"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4134 ac_cv_prog_gcc_traditional=yes
4136 ac_cv_prog_gcc_traditional=no
4141 if test $ac_cv_prog_gcc_traditional = no; then
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4149 ac_cv_prog_gcc_traditional=yes
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4156 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4157 if test $ac_cv_prog_gcc_traditional = yes; then
4158 CC="$CC -traditional"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4163 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4164 if ${ac_cv_prog_suncc+:} false; then :
4165 $as_echo_n "(cached) " >&6
4167 cat > conftest.c <<EOF
4172 if { ac_try='${CC-cc} -E conftest.c'
4173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4178 ac_cv_prog_suncc=yes
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4184 $as_echo "$ac_cv_prog_suncc" >&6; }
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_RANLIB+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$RANLIB"; then
4194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 RANLIB=$ac_cv_prog_RANLIB
4214 if test -n "$RANLIB"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4216 $as_echo "$RANLIB" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4224 if test -z "$ac_cv_prog_RANLIB"; then
4225 ac_ct_RANLIB=$RANLIB
4226 # Extract the first word of "ranlib", so it can be a program name with args.
4227 set dummy ranlib; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$ac_ct_RANLIB"; then
4234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_ac_ct_RANLIB="ranlib"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4254 if test -n "$ac_ct_RANLIB"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4256 $as_echo "$ac_ct_RANLIB" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4262 if test "x$ac_ct_RANLIB" = x; then
4265 case $cross_compiling:$ac_tool_warned in
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269 ac_tool_warned=yes ;;
4271 RANLIB=$ac_ct_RANLIB
4274 RANLIB="$ac_cv_prog_RANLIB"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4280 $as_echo_n "checking if compiler is clang... " >&6; }
4281 if ${ax_cv_cc_clang+:} false; then :
4282 $as_echo_n "(cached) " >&6
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4301 if ac_fn_c_try_compile "$LINENO"; then :
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4310 $as_echo "$ax_cv_cc_clang" >&6; }
4312 if test "x$ax_cv_cc_clang" = "xyes"; then
4321 if test "x$GCC" = "xyes"; then
4322 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4327 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4328 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4329 $as_echo_n "(cached) " >&6
4333 CFLAGS_SAVED=$CFLAGS
4334 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ax_cv_cc_qunused_arguments_flag="yes"
4356 ax_cv_cc_qunused_arguments_flag="no"
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 CFLAGS="$CFLAGS_SAVED"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4370 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4372 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4373 CFLAGS="$CFLAGS -Qunused-arguments"
4374 LDFLAGS="$LDFLAGS -Qunused-arguments"
4377 # Check whether --enable-largefile was given.
4378 if test "${enable_largefile+set}" = set; then :
4379 enableval=$enable_largefile;
4382 if test "$enable_largefile" != no; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4385 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4386 if ${ac_cv_sys_largefile_CC+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 ac_cv_sys_largefile_CC=no
4390 if test "$GCC" != yes; then
4393 # IRIX 6.2 and later do not support large files by default,
4394 # so use the C compiler's -n32 option if that helps.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4414 if ac_fn_c_try_compile "$LINENO"; then :
4417 rm -f core conftest.err conftest.$ac_objext
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_sys_largefile_CC=' -n32'; break
4422 rm -f core conftest.err conftest.$ac_objext
4426 rm -f conftest.$ac_ext
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4430 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4431 if test "$ac_cv_sys_largefile_CC" != no; then
4432 CC=$CC$ac_cv_sys_largefile_CC
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4436 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4437 if ${ac_cv_sys_file_offset_bits+:} false; then :
4438 $as_echo_n "(cached) " >&6
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <sys/types.h>
4444 /* Check that off_t can represent 2**63 - 1 correctly.
4445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4446 since some C++ compilers masquerading as C compilers
4447 incorrectly reject 9223372036854775807. */
4448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4450 && LARGE_OFF_T % 2147483647 == 1)
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_sys_file_offset_bits=no; break
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #define _FILE_OFFSET_BITS 64
4467 #include <sys/types.h>
4468 /* Check that off_t can represent 2**63 - 1 correctly.
4469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470 since some C++ compilers masquerading as C compilers
4471 incorrectly reject 9223372036854775807. */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474 && LARGE_OFF_T % 2147483647 == 1)
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485 ac_cv_sys_file_offset_bits=64; break
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_sys_file_offset_bits=unknown
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4493 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4494 case $ac_cv_sys_file_offset_bits in #(
4497 cat >>confdefs.h <<_ACEOF
4498 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4503 if test $ac_cv_sys_file_offset_bits = unknown; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4505 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4506 if ${ac_cv_sys_large_files+:} false; then :
4507 $as_echo_n "(cached) " >&6
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <sys/types.h>
4513 /* Check that off_t can represent 2**63 - 1 correctly.
4514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4515 since some C++ compilers masquerading as C compilers
4516 incorrectly reject 9223372036854775807. */
4517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4519 && LARGE_OFF_T % 2147483647 == 1)
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_sys_large_files=no; break
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #define _LARGE_FILES 1
4536 #include <sys/types.h>
4537 /* Check that off_t can represent 2**63 - 1 correctly.
4538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4539 since some C++ compilers masquerading as C compilers
4540 incorrectly reject 9223372036854775807. */
4541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4543 && LARGE_OFF_T % 2147483647 == 1)
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_sys_large_files=1; break
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ac_cv_sys_large_files=unknown
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4562 $as_echo "$ac_cv_sys_large_files" >&6; }
4563 case $ac_cv_sys_large_files in #(
4566 cat >>confdefs.h <<_ACEOF
4567 #define _LARGE_FILES $ac_cv_sys_large_files
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4579 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4580 if ${ac_cv_c_bigendian+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 ac_cv_c_bigendian=unknown
4584 # See if we're dealing with a universal compiler.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #ifndef __APPLE_CC__
4588 not a universal capable compiler
4593 if ac_fn_c_try_compile "$LINENO"; then :
4595 # Check for potential -arch flags. It is not universal unless
4596 # there are at least two -arch flags with different values.
4599 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4600 if test -n "$ac_prev"; then
4602 i?86 | x86_64 | ppc | ppc64)
4603 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4606 ac_cv_c_bigendian=universal
4612 elif test "x$ac_word" = "x-arch"; then
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 if test $ac_cv_c_bigendian = unknown; then
4619 # See if sys/param.h defines the BYTE_ORDER macro.
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <sys/types.h>
4623 #include <sys/param.h>
4628 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4629 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 # It does; now see whether it defined to BIG_ENDIAN or not.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #include <sys/types.h>
4643 #include <sys/param.h>
4648 #if BYTE_ORDER != BIG_ENDIAN
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_c_bigendian=yes
4659 ac_cv_c_bigendian=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 if test $ac_cv_c_bigendian = unknown; then
4666 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4674 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 # It does; now see whether it defined to _BIG_ENDIAN or not.
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_cv_c_bigendian=yes
4702 ac_cv_c_bigendian=no
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 if test $ac_cv_c_bigendian = unknown; then
4709 # Compile a test program.
4710 if test "$cross_compiling" = yes; then :
4711 # Try to guess by grepping values from an object file.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 short int ascii_mm[] =
4715 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4716 short int ascii_ii[] =
4717 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4718 int use_ascii (int i) {
4719 return ascii_mm[i] + ascii_ii[i];
4721 short int ebcdic_ii[] =
4722 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4723 short int ebcdic_mm[] =
4724 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4725 int use_ebcdic (int i) {
4726 return ebcdic_mm[i] + ebcdic_ii[i];
4733 return use_ascii (foo) == use_ebcdic (foo);
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4740 ac_cv_c_bigendian=yes
4742 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4743 if test "$ac_cv_c_bigendian" = unknown; then
4744 ac_cv_c_bigendian=no
4746 # finding both strings is unlikely to happen, but who knows?
4747 ac_cv_c_bigendian=unknown
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 $ac_includes_default
4760 /* Are we little or big endian? From Harbison&Steele. */
4764 char c[sizeof (long int)];
4767 return u.c[sizeof (long int) - 1] == 1;
4773 if ac_fn_c_try_run "$LINENO"; then :
4774 ac_cv_c_bigendian=no
4776 ac_cv_c_bigendian=yes
4778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4779 conftest.$ac_objext conftest.beam conftest.$ac_ext
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4785 $as_echo "$ac_cv_c_bigendian" >&6; }
4786 case $ac_cv_c_bigendian in #(
4789 $as_echo "#define RADIUS_BIG_ENDIAN 1" >>confdefs.h
4793 $as_echo "#define RADIUS_LITTLE_ENDIAN 1" >>confdefs.h
4798 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4802 as_fn_error $? "unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4807 # Extract the first word of "gmake", so it can be a program name with args.
4808 set dummy gmake; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_GMAKE+:} false; then :
4812 $as_echo_n "(cached) " >&6
4814 if test -n "$GMAKE"; then
4815 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_GMAKE="yes"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4835 GMAKE=$ac_cv_prog_GMAKE
4836 if test -n "$GMAKE"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4838 $as_echo "$GMAKE" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 if test $GMAKE = no; then
4846 # Extract the first word of "make", so it can be a program name with args.
4847 set dummy make; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_path_MAKE+:} false; then :
4851 $as_echo_n "(cached) " >&6
4855 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4877 MAKE=$ac_cv_path_MAKE
4878 if test -n "$MAKE"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4880 $as_echo "$MAKE" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4888 # Extract the first word of "gmake", so it can be a program name with args.
4889 set dummy gmake; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_path_MAKE+:} false; then :
4893 $as_echo_n "(cached) " >&6
4897 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4919 MAKE=$ac_cv_path_MAKE
4920 if test -n "$MAKE"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4922 $as_echo "$MAKE" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4930 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4931 if test -z "$makever"; then
4932 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
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4937 $as_echo_n "checking number of system cores... " >&6; }
4938 if ${ax_cv_system_cores+:} false; then :
4939 $as_echo_n "(cached) " >&6
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
4948 if test "$cross_compiling" = yes; then :
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4958 # include <windows.h>
4960 # include <sys/param.h>
4961 # include <sys/sysctl.h>
4963 # include <unistd.h>
4966 int main (int argc, char *argv[])
4971 SYSTEM_INFO sysinfo;
4972 GetSystemInfo(&sysinfo);
4974 count = sysinfo.dwNumberOfProcessors;
4981 nm[1] = HW_AVAILCPU;
4982 sysctl(nm, 2, &count, &len, NULL, 0);
4986 sysctl(nm, 2, &count, &len, NULL, 0);
4993 count = sysconf(_SC_NPROCESSORS_ONLN);
5000 if ac_fn_c_try_run "$LINENO"; then :
5001 ax_cv_system_cores=$?
5003 ax_cv_system_cores=$?
5005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5006 conftest.$ac_objext conftest.beam conftest.$ac_ext
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5018 $as_echo "$ax_cv_system_cores" >&6; }
5023 # Extract the first word of "git", so it can be a program name with args.
5024 set dummy git; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_GIT+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 if test -n "$GIT"; then
5031 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_GIT="yes"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5052 if test -n "$GIT"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5054 $as_echo "$GIT" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5063 # Check whether --enable-strict-dependencies was given.
5064 if test "${enable_strict_dependencies+set}" = set; then :
5065 enableval=$enable_strict_dependencies;
5069 # Check whether --enable-werror was given.
5070 if test "${enable_werror+set}" = set; then :
5071 enableval=$enable_werror; case "$enableval" in
5082 docdir='${datadir}/doc/freeradius'
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5084 $as_echo_n "checking docdir... " >&6; }
5086 # Check whether --with-docdir was given.
5087 if test "${with_docdir+set}" = set; then :
5088 withval=$with_docdir; case "$withval" in
5094 [\\/$]* | ?:[\\/]* )
5098 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5106 $as_echo "$docdir" >&6; }
5107 if test "x$docdir" = xno; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5109 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5112 logdir='${localstatedir}/log/radius'
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5114 $as_echo_n "checking logdir... " >&6; }
5116 # Check whether --with-logdir was given.
5117 if test "${with_logdir+set}" = set; then :
5118 withval=$with_logdir; case "$withval" in
5120 as_fn_error $? "Need logdir" "$LINENO" 5
5124 [\\/$]* | ?:[\\/]* )
5128 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5136 $as_echo "$logdir" >&6; }
5138 radacctdir='${logdir}/radacct'
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5140 $as_echo_n "checking radacctdir... " >&6; }
5142 # Check whether --with-radacctdir was given.
5143 if test "${with_radacctdir+set}" = set; then :
5144 withval=$with_radacctdir; case "$withval" in
5146 as_fn_error $? "Need radacctdir" "$LINENO" 5
5150 [\\/$]* | ?:[\\/]* )
5151 radacctdir="$withval"
5154 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5162 $as_echo "$radacctdir" >&6; }
5164 raddbdir='${sysconfdir}/raddb'
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5166 $as_echo_n "checking raddbdir... " >&6; }
5168 # Check whether --with-raddbdir was given.
5169 if test "${with_raddbdir+set}" = set; then :
5170 withval=$with_raddbdir; case "$withval" in
5172 as_fn_error $? "Need raddbdir" "$LINENO" 5
5176 [\\/$]* | ?:[\\/]* )
5180 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5188 $as_echo "$raddbdir" >&6; }
5190 dictdir='${datarootdir}/freeradius'
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5192 $as_echo_n "checking dictdir... " >&6; }
5194 # Check whether --with-dictdir was given.
5195 if test "${with_dictdir+set}" = set; then :
5196 withval=$with_dictdir; case "$withval" in
5198 as_fn_error $? "Need dictdir" "$LINENO" 5
5202 [\\/$]* | ?:[\\/]* )
5206 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5214 $as_echo "$dictdir" >&6; }
5216 modconfdir='${raddbdir}/mods-config'
5219 WITH_ASCEND_BINARY=yes
5221 # Check whether --with-ascend-binary was given.
5222 if test "${with_ascend_binary+set}" = set; then :
5223 withval=$with_ascend_binary; case "$withval" in
5227 WITH_ASCEND_BINARY=no
5232 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5234 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5240 # Check whether --with-threads was given.
5241 if test "${with_threads+set}" = set; then :
5242 withval=$with_threads; case "$withval" in
5254 # Check whether --with-tcp was given.
5255 if test "${with_tcp+set}" = set; then :
5256 withval=$with_tcp; case "$withval" in
5265 if test "x$WITH_TCP" = "xyes"; then
5267 $as_echo "#define WITH_TCP 1" >>confdefs.h
5273 # Check whether --with-vmps was given.
5274 if test "${with_vmps+set}" = set; then :
5275 withval=$with_vmps; case "$withval" in
5284 if test "x$WITH_VMPS" = "xyes"; then
5286 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5292 # Check whether --with-dhcp was given.
5293 if test "${with_dhcp+set}" = set; then :
5294 withval=$with_dhcp; case "$withval" in
5303 if test "x$WITH_DHCP" = "xyes"; then
5305 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5311 # Check whether --with-static_modules was given.
5312 if test "${with_static_modules+set}" = set; then :
5313 withval=$with_static_modules;
5314 for i in $withval; do
5315 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5323 # Check whether --with-shared-libs was given.
5324 if test "${with_shared_libs+set}" = set; then :
5325 withval=$with_shared_libs; case "$withval" in
5337 # Check whether --with-modules was given.
5338 if test "${with_modules+set}" = set; then :
5339 withval=$with_modules;
5340 for i in $withval; do
5341 MODULES="$MODULES $i"
5349 # Check whether --with-experimental-modules was given.
5350 if test "${with_experimental_modules+set}" = set; then :
5351 withval=$with_experimental_modules; case "$withval" in
5366 # Check whether --with-udpfromto was given.
5367 if test "${with_udpfromto+set}" = set; then :
5368 withval=$with_udpfromto; case "$withval" in
5379 if test "x$WITH_UDPFROMTO" = "xyes"; then
5381 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5387 # Check whether --with-rlm-FOO-lib-dir was given.
5388 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5389 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5398 # Check whether --with-rlm-FOO-include-dir was given.
5399 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5400 withval=$with_rlm_FOO_include_dir; case "$withval" in
5410 # Check whether --with-openssl was given.
5411 if test "${with_openssl+set}" = set; then :
5412 withval=$with_openssl; case "$withval" in
5426 # Check whether --with-openssl-lib-dir was given.
5427 if test "${with_openssl_lib_dir+set}" = set; then :
5428 withval=$with_openssl_lib_dir; case "$withval" in
5429 *) openssl_lib_dir="$withval"
5436 openssl_include_dir=
5438 # Check whether --with-openssl-include-dir was given.
5439 if test "${with_openssl_include_dir+set}" = set; then :
5440 withval=$with_openssl_include_dir; case "$withval" in
5441 *) openssl_include_dir="$withval"
5448 # Check whether --enable-openssl-version-check was given.
5449 if test "${enable_openssl_version_check+set}" = set; then :
5450 enableval=$enable_openssl_version_check;
5453 if test "x$enable_openssl_version_check" != "xno"; then
5455 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5457 openssl_version_check_config="\
5459 # allow_vulnerable_openssl: Allow the server to start with
5460 # versions of OpenSSL known to have critical vulnerabilities.
5462 # This check is based on the version number reported by libssl
5463 # and may not reflect patches applied to libssl by
5464 # distribution maintainers.
5466 allow_vulnerable_openssl = no"
5468 openssl_version_check_config=
5475 # Extract the first word of "perl", so it can be a program name with args.
5476 set dummy perl; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_path_PERL+:} false; then :
5480 $as_echo_n "(cached) " >&6
5484 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5506 PERL=$ac_cv_path_PERL
5507 if test -n "$PERL"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5509 $as_echo "$PERL" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 if test "x$ac_cv_path_PERL" = "x"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5518 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5520 # Extract the first word of "snmpget", so it can be a program name with args.
5521 set dummy snmpget; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_SNMPGET+:} false; then :
5525 $as_echo_n "(cached) " >&6
5529 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 SNMPGET=$ac_cv_path_SNMPGET
5551 if test -n "$SNMPGET"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5553 $as_echo "$SNMPGET" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5560 if test "x$ac_cv_path_SNMPGET" = "x"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5562 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5565 # Extract the first word of "snmpwalk", so it can be a program name with args.
5566 set dummy snmpwalk; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_SNMPWALK+:} false; then :
5570 $as_echo_n "(cached) " >&6
5574 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 SNMPWALK=$ac_cv_path_SNMPWALK
5596 if test -n "$SNMPWALK"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5598 $as_echo "$SNMPWALK" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5607 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5610 # Extract the first word of "rusers", so it can be a program name with args.
5611 set dummy rusers; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_path_RUSERS+:} false; then :
5615 $as_echo_n "(cached) " >&6
5619 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5641 RUSERS=$ac_cv_path_RUSERS
5642 if test -n "$RUSERS"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5644 $as_echo "$RUSERS" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5652 missing_dir=`cd $ac_aux_dir && pwd`
5653 # expand $ac_aux_dir to an absolute path
5654 am_aux_dir=`cd $ac_aux_dir && pwd`
5656 if test x"${MISSING+set}" != xset; then
5659 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5661 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5664 # Use eval to expand $SHELL
5665 if eval "$MISSING --run true"; then
5666 am_missing_run="$MISSING --run "
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5670 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5674 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5677 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5683 # Extract the first word of "locate", so it can be a program name with args.
5684 set dummy locate; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_LOCATE+:} false; then :
5688 $as_echo_n "(cached) " >&6
5692 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 LOCATE=$ac_cv_path_LOCATE
5714 if test -n "$LOCATE"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5716 $as_echo "$LOCATE" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5723 # Extract the first word of "dirname", so it can be a program name with args.
5724 set dummy dirname; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_DIRNAME+:} false; then :
5728 $as_echo_n "(cached) " >&6
5732 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 DIRNAME=$ac_cv_path_DIRNAME
5754 if test -n "$DIRNAME"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5756 $as_echo "$DIRNAME" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 # Extract the first word of "grep", so it can be a program name with args.
5764 set dummy grep; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_GREP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5772 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 GREP=$ac_cv_path_GREP
5794 if test -n "$GREP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5796 $as_echo "$GREP" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5807 # Check whether --with-talloc-lib-dir was given.
5808 if test "${with_talloc_lib_dir+set}" = set; then :
5809 withval=$with_talloc_lib_dir; case "$withval" in
5811 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5816 talloc_lib_dir="$withval"
5824 # Check whether --with-talloc-include-dir was given.
5825 if test "${with_talloc_include_dir+set}" = set; then :
5826 withval=$with_talloc_include_dir; case "$withval" in
5828 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5833 talloc_include_dir="$withval"
5839 smart_try_dir="$talloc_lib_dir"
5842 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5843 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5846 old_CPPFLAGS="$CPPFLAGS"
5851 if test "x$smart_try_dir" != "x"; then
5852 for try in $smart_try_dir; do
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5854 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5855 LIBS="-ltalloc $old_LIBS"
5856 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 extern char _talloc();
5868 if ac_fn_c_try_link "$LINENO"; then :
5870 smart_lib="-ltalloc"
5871 smart_ldflags="-L$try -Wl,-rpath,$try"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 $as_echo "yes" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5884 CPPFLAGS="$old_CPPFLAGS"
5887 if test "x$smart_lib" = "x"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5889 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5890 LIBS="-ltalloc $old_LIBS"
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 extern char _talloc();
5902 if ac_fn_c_try_link "$LINENO"; then :
5904 smart_lib="-ltalloc"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5906 $as_echo "yes" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5912 rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5917 if test "x$smart_lib" = "x"; then
5920 if test "x$LOCATE" != "x"; then
5922 file=libtalloc${libltdl_cv_shlibext}
5924 for x in `${LOCATE} $file 2>/dev/null`; do
5925 base=`echo $x | sed "s%/${file}%%"`
5926 if test "x$x" = "x$base"; then
5930 dir=`${DIRNAME} $x 2>/dev/null`
5931 exclude=`echo ${dir} | ${GREP} /home`
5932 if test "x$exclude" != "x"; then
5936 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5937 if test "x$already" = "x"; then
5943 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5947 if test "x$LOCATE" != "x"; then
5951 for x in `${LOCATE} $file 2>/dev/null`; do
5952 base=`echo $x | sed "s%/${file}%%"`
5953 if test "x$x" = "x$base"; then
5957 dir=`${DIRNAME} $x 2>/dev/null`
5958 exclude=`echo ${dir} | ${GREP} /home`
5959 if test "x$exclude" != "x"; then
5963 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5964 if test "x$already" = "x"; then
5970 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5973 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5975 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5976 LIBS="-ltalloc $old_LIBS"
5977 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 extern char _talloc();
5989 if ac_fn_c_try_link "$LINENO"; then :
5991 smart_lib="-ltalloc"
5992 smart_ldflags="-L$try -Wl,-rpath,$try"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5994 $as_echo "yes" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6001 rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6005 CPPFLAGS="$old_CPPFLAGS"
6008 if test "x$smart_lib" != "x"; then
6009 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6010 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6011 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6014 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6016 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6017 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6020 TALLOC_LIBS="${smart_lib}"
6021 TALLOC_LDFLAGS="${smart_ldflags}"
6027 if test "x$WITH_THREADS" = "xyes"; then
6028 if test $ac_cv_prog_suncc = "yes"; then
6029 CFLAGS="$CFLAGS -mt"
6032 for ac_header in pthread.h
6034 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6035 if test "x$ac_cv_header_pthread_h" = xyes; then :
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_PTHREAD_H 1
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6051 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6052 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 ac_check_lib_save_LIBS=$LIBS
6056 LIBS="-lpthread $LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6060 /* Override any GCC internal prototype to avoid an error.
6061 Use char because int might match the return type of a GCC
6062 builtin and then its argument prototype would still apply. */
6066 char pthread_create ();
6070 return pthread_create ();
6075 if ac_fn_c_try_link "$LINENO"; then :
6076 ac_cv_lib_pthread_pthread_create=yes
6078 ac_cv_lib_pthread_pthread_create=no
6080 rm -f core conftest.err conftest.$ac_objext \
6081 conftest$ac_exeext conftest.$ac_ext
6082 LIBS=$ac_check_lib_save_LIBS
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6085 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6086 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6088 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6089 LIBS="-lpthread $LIBS"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6094 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6095 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 ac_check_lib_save_LIBS=$LIBS
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6109 char pthread_create ();
6113 return pthread_create ();
6118 if ac_fn_c_try_link "$LINENO"; then :
6119 ac_cv_lib_c_r_pthread_create=yes
6121 ac_cv_lib_c_r_pthread_create=no
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 LIBS=$ac_check_lib_save_LIBS
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6128 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6129 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6130 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6144 if test "x$WITH_THREADS" != "xyes"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6146 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6148 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6151 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6156 if test "x$WITH_THREADS" != "xyes"; then
6158 ac_cv_header_pthread_h="no"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6163 $as_echo_n "checking for library containing sem_init... " >&6; }
6164 if ${ac_cv_search_sem_init+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 ac_func_search_save_LIBS=$LIBS
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6171 /* Override any GCC internal prototype to avoid an error.
6172 Use char because int might match the return type of a GCC
6173 builtin and then its argument prototype would still apply. */
6186 for ac_lib in '' pthread sem posix4 rt semaphore; do
6187 if test -z "$ac_lib"; then
6188 ac_res="none required"
6191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6193 if ac_fn_c_try_link "$LINENO"; then :
6194 ac_cv_search_sem_init=$ac_res
6196 rm -f core conftest.err conftest.$ac_objext \
6198 if ${ac_cv_search_sem_init+:} false; then :
6202 if ${ac_cv_search_sem_init+:} false; then :
6205 ac_cv_search_sem_init=no
6208 LIBS=$ac_func_search_save_LIBS
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6211 $as_echo "$ac_cv_search_sem_init" >&6; }
6212 ac_res=$ac_cv_search_sem_init
6213 if test "$ac_res" != no; then :
6214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6217 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
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6225 if ${ac_cv_lib_dl_dlopen+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 ac_check_lib_save_LIBS=$LIBS
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 ac_cv_lib_dl_dlopen=yes
6251 ac_cv_lib_dl_dlopen=no
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 LIBS=$ac_check_lib_save_LIBS
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6259 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_LIBDL 1
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6270 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6271 if ${ac_cv_lib_socket_getsockname+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 ac_check_lib_save_LIBS=$LIBS
6275 LIBS="-lsocket $LIBS"
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6279 /* Override any GCC internal prototype to avoid an error.
6280 Use char because int might match the return type of a GCC
6281 builtin and then its argument prototype would still apply. */
6285 char getsockname ();
6289 return getsockname ();
6294 if ac_fn_c_try_link "$LINENO"; then :
6295 ac_cv_lib_socket_getsockname=yes
6297 ac_cv_lib_socket_getsockname=no
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 LIBS=$ac_check_lib_save_LIBS
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6304 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6305 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6306 cat >>confdefs.h <<_ACEOF
6307 #define HAVE_LIBSOCKET 1
6310 LIBS="-lsocket $LIBS"
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6316 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6317 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 ac_check_lib_save_LIBS=$LIBS
6321 LIBS="-lresolv $LIBS"
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6335 return inet_aton ();
6340 if ac_fn_c_try_link "$LINENO"; then :
6341 ac_cv_lib_resolv_inet_aton=yes
6343 ac_cv_lib_resolv_inet_aton=no
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347 LIBS=$ac_check_lib_save_LIBS
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6350 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6351 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6352 cat >>confdefs.h <<_ACEOF
6353 #define HAVE_LIBRESOLV 1
6356 LIBS="-lresolv $LIBS"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6362 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6363 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 ac_check_lib_save_LIBS=$LIBS
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6371 /* Override any GCC internal prototype to avoid an error.
6372 Use char because int might match the return type of a GCC
6373 builtin and then its argument prototype would still apply. */
6381 return inet_ntoa ();
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 ac_cv_lib_nsl_inet_ntoa=yes
6389 ac_cv_lib_nsl_inet_ntoa=no
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_check_lib_save_LIBS
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6396 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6397 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6398 cat >>confdefs.h <<_ACEOF
6399 #define HAVE_LIBNSL 1
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6407 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6408 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-lws2_32 $LIBS"
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_lib_ws2_32_htonl=yes
6434 ac_cv_lib_ws2_32_htonl=no
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6441 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6442 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_LIBWS2_32 1
6447 LIBS="-lws2_32 $LIBS"
6454 # Check whether --with-pcap-lib-dir was given.
6455 if test "${with_pcap_lib_dir+set}" = set; then :
6456 withval=$with_pcap_lib_dir; case "$withval" in
6458 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6463 pcap_lib_dir="$withval"
6471 # Check whether --with-pcap-include-dir was given.
6472 if test "${with_pcap_include_dir+set}" = set; then :
6473 withval=$with_pcap_include_dir; case "$withval" in
6475 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6480 pcap_include_dir="$withval"
6486 smart_try_dir="$pcap_lib_dir"
6489 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6490 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6493 old_CPPFLAGS="$CPPFLAGS"
6498 if test "x$smart_try_dir" != "x"; then
6499 for try in $smart_try_dir; do
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6501 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6502 LIBS="-lpcap $old_LIBS"
6503 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 extern char pcap_open_live();
6515 if ac_fn_c_try_link "$LINENO"; then :
6518 smart_ldflags="-L$try -Wl,-rpath,$try"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6520 $as_echo "yes" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6527 rm -f core conftest.err conftest.$ac_objext \
6528 conftest$ac_exeext conftest.$ac_ext
6531 CPPFLAGS="$old_CPPFLAGS"
6534 if test "x$smart_lib" = "x"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6536 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6537 LIBS="-lpcap $old_LIBS"
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 extern char pcap_open_live();
6549 if ac_fn_c_try_link "$LINENO"; then :
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6553 $as_echo "yes" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6564 if test "x$smart_lib" = "x"; then
6567 if test "x$LOCATE" != "x"; then
6569 file=libpcap${libltdl_cv_shlibext}
6571 for x in `${LOCATE} $file 2>/dev/null`; do
6572 base=`echo $x | sed "s%/${file}%%"`
6573 if test "x$x" = "x$base"; then
6577 dir=`${DIRNAME} $x 2>/dev/null`
6578 exclude=`echo ${dir} | ${GREP} /home`
6579 if test "x$exclude" != "x"; then
6583 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6584 if test "x$already" = "x"; then
6590 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6594 if test "x$LOCATE" != "x"; then
6598 for x in `${LOCATE} $file 2>/dev/null`; do
6599 base=`echo $x | sed "s%/${file}%%"`
6600 if test "x$x" = "x$base"; then
6604 dir=`${DIRNAME} $x 2>/dev/null`
6605 exclude=`echo ${dir} | ${GREP} /home`
6606 if test "x$exclude" != "x"; then
6610 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6611 if test "x$already" = "x"; then
6617 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6620 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6622 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6623 LIBS="-lpcap $old_LIBS"
6624 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 extern char pcap_open_live();
6636 if ac_fn_c_try_link "$LINENO"; then :
6639 smart_ldflags="-L$try -Wl,-rpath,$try"
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6641 $as_echo "yes" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6652 CPPFLAGS="$old_CPPFLAGS"
6655 if test "x$smart_lib" != "x"; then
6656 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6657 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6658 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6661 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&5
6663 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
6666 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6670 pcap_fopen_offline \
6676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6679 cat >>confdefs.h <<_ACEOF
6680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6687 PCAP_LIBS="${smart_lib}"
6688 PCAP_LDFLAGS="${smart_ldflags}"
6692 collectdclient_lib_dir=
6694 # Check whether --with-collectdclient-lib-dir was given.
6695 if test "${with_collectdclient_lib_dir+set}" = set; then :
6696 withval=$with_collectdclient_lib_dir; case "$withval" in
6698 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6703 collectdclient_lib_dir="$withval"
6709 collectdclient_include_dir=
6711 # Check whether --with-collectdclient-include-dir was given.
6712 if test "${with_collectdclient_include_dir+set}" = set; then :
6713 withval=$with_collectdclient_include_dir; case "$withval" in
6715 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6720 collectdclient_include_dir="$withval"
6726 smart_try_dir="$collectdclient_lib_dir"
6729 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6730 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6733 old_CPPFLAGS="$CPPFLAGS"
6738 if test "x$smart_try_dir" != "x"; then
6739 for try in $smart_try_dir; do
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6741 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6742 LIBS="-lcollectdclient $old_LIBS"
6743 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 extern char lcc_connect();
6755 if ac_fn_c_try_link "$LINENO"; then :
6757 smart_lib="-lcollectdclient"
6758 smart_ldflags="-L$try -Wl,-rpath,$try"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6760 $as_echo "yes" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6767 rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6771 CPPFLAGS="$old_CPPFLAGS"
6774 if test "x$smart_lib" = "x"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6776 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6777 LIBS="-lcollectdclient $old_LIBS"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 extern char lcc_connect();
6789 if ac_fn_c_try_link "$LINENO"; then :
6791 smart_lib="-lcollectdclient"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6793 $as_echo "yes" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6799 rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6804 if test "x$smart_lib" = "x"; then
6807 if test "x$LOCATE" != "x"; then
6809 file=libcollectdclient${libltdl_cv_shlibext}
6811 for x in `${LOCATE} $file 2>/dev/null`; do
6812 base=`echo $x | sed "s%/${file}%%"`
6813 if test "x$x" = "x$base"; then
6817 dir=`${DIRNAME} $x 2>/dev/null`
6818 exclude=`echo ${dir} | ${GREP} /home`
6819 if test "x$exclude" != "x"; then
6823 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6824 if test "x$already" = "x"; then
6830 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6834 if test "x$LOCATE" != "x"; then
6836 file=libcollectdclient.a
6838 for x in `${LOCATE} $file 2>/dev/null`; do
6839 base=`echo $x | sed "s%/${file}%%"`
6840 if test "x$x" = "x$base"; then
6844 dir=`${DIRNAME} $x 2>/dev/null`
6845 exclude=`echo ${dir} | ${GREP} /home`
6846 if test "x$exclude" != "x"; then
6850 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6851 if test "x$already" = "x"; then
6857 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6860 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6862 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6863 LIBS="-lcollectdclient $old_LIBS"
6864 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 extern char lcc_connect();
6876 if ac_fn_c_try_link "$LINENO"; then :
6878 smart_lib="-lcollectdclient"
6879 smart_ldflags="-L$try -Wl,-rpath,$try"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6881 $as_echo "yes" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6888 rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6892 CPPFLAGS="$old_CPPFLAGS"
6895 if test "x$smart_lib" != "x"; then
6896 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6897 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6898 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6901 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
6903 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
6905 COLLECTDC_LIBS="${smart_lib}"
6906 COLLECTDC_LDFLAGS="${smart_ldflags}"
6912 # Check whether --with-cap-lib-dir was given.
6913 if test "${with_cap_lib_dir+set}" = set; then :
6914 withval=$with_cap_lib_dir; case "$withval" in
6916 as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
6921 cap_lib_dir="$withval"
6929 # Check whether --with-cap-include-dir was given.
6930 if test "${with_cap_include_dir+set}" = set; then :
6931 withval=$with_cap_include_dir; case "$withval" in
6933 as_fn_error $? "Need cap-include-dir" "$LINENO" 5
6938 cap_include_dir="$withval"
6944 smart_try_dir="$cap_lib_dir"
6947 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
6948 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
6951 old_CPPFLAGS="$CPPFLAGS"
6956 if test "x$smart_try_dir" != "x"; then
6957 for try in $smart_try_dir; do
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
6959 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
6960 LIBS="-lcap $old_LIBS"
6961 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 extern char cap_get_proc();
6973 if ac_fn_c_try_link "$LINENO"; then :
6976 smart_ldflags="-L$try -Wl,-rpath,$try"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6978 $as_echo "yes" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6989 CPPFLAGS="$old_CPPFLAGS"
6992 if test "x$smart_lib" = "x"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
6994 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
6995 LIBS="-lcap $old_LIBS"
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 extern char cap_get_proc();
7007 if ac_fn_c_try_link "$LINENO"; then :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011 $as_echo "yes" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7017 rm -f core conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7022 if test "x$smart_lib" = "x"; then
7025 if test "x$LOCATE" != "x"; then
7027 file=libcap${libltdl_cv_shlibext}
7029 for x in `${LOCATE} $file 2>/dev/null`; do
7030 base=`echo $x | sed "s%/${file}%%"`
7031 if test "x$x" = "x$base"; then
7035 dir=`${DIRNAME} $x 2>/dev/null`
7036 exclude=`echo ${dir} | ${GREP} /home`
7037 if test "x$exclude" != "x"; then
7041 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7042 if test "x$already" = "x"; then
7048 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7052 if test "x$LOCATE" != "x"; then
7056 for x in `${LOCATE} $file 2>/dev/null`; do
7057 base=`echo $x | sed "s%/${file}%%"`
7058 if test "x$x" = "x$base"; then
7062 dir=`${DIRNAME} $x 2>/dev/null`
7063 exclude=`echo ${dir} | ${GREP} /home`
7064 if test "x$exclude" != "x"; then
7068 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7069 if test "x$already" = "x"; then
7075 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7078 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7080 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7081 LIBS="-lcap $old_LIBS"
7082 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 extern char cap_get_proc();
7094 if ac_fn_c_try_link "$LINENO"; then :
7097 smart_ldflags="-L$try -Wl,-rpath,$try"
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7099 $as_echo "yes" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7110 CPPFLAGS="$old_CPPFLAGS"
7113 if test "x$smart_lib" != "x"; then
7114 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7115 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7116 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7119 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&5
7121 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7124 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7131 $as_echo_n "checking for a readline compatible library... " >&6; }
7132 if ${vl_cv_lib_readline+:} false; then :
7133 $as_echo_n "(cached) " >&6
7137 for readline_lib in readline edit editline; do
7138 for termcap_lib in "" termcap curses ncurses; do
7139 if test -z "$termcap_lib"; then
7140 TRY_LIB="-l$readline_lib"
7142 TRY_LIB="-l$readline_lib -l$termcap_lib"
7144 LIBS="$ORIG_LIBS $TRY_LIB"
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7148 /* Override any GCC internal prototype to avoid an error.
7149 Use char because int might match the return type of a GCC
7150 builtin and then its argument prototype would still apply. */
7163 if ac_fn_c_try_link "$LINENO"; then :
7164 vl_cv_lib_readline="$TRY_LIB"
7166 rm -f core conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 if test -n "$vl_cv_lib_readline"; then
7172 if test -n "$vl_cv_lib_readline"; then
7176 if test -z "$vl_cv_lib_readline"; then
7177 vl_cv_lib_readline="no"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7183 $as_echo "$vl_cv_lib_readline" >&6; }
7185 if test "$vl_cv_lib_readline" != "no"; then
7186 LIBREADLINE="$vl_cv_lib_readline"
7188 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7190 for ac_header in readline.h readline/readline.h
7192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7193 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7195 cat >>confdefs.h <<_ACEOF
7196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7204 $as_echo_n "checking whether readline supports history... " >&6; }
7205 if ${vl_cv_lib_readline_history+:} false; then :
7206 $as_echo_n "(cached) " >&6
7209 vl_cv_lib_readline_history="no"
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7213 /* Override any GCC internal prototype to avoid an error.
7214 Use char because int might match the return type of a GCC
7215 builtin and then its argument prototype would still apply. */
7219 char add_history ();
7223 return add_history ();
7228 if ac_fn_c_try_link "$LINENO"; then :
7229 vl_cv_lib_readline_history="yes"
7231 rm -f core conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7236 $as_echo "$vl_cv_lib_readline_history" >&6; }
7237 if test "$vl_cv_lib_readline_history" = "yes"; then
7239 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7241 for ac_header in history.h readline/history.h
7243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7244 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7246 cat >>confdefs.h <<_ACEOF
7247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7260 smart_try_dir="$talloc_include_dir"
7263 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7264 old_CPPFLAGS="$CPPFLAGS"
7266 smart_include_dir="/usr/local/include /opt/include"
7271 for _prefix in $smart_prefix ""; do
7272 for _dir in $smart_try_dir; do
7273 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7276 for _dir in $smart_include_dir; do
7277 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7281 if test "x$_smart_try_dir" != "x"; then
7282 for try in $_smart_try_dir; do
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7284 $as_echo_n "checking for talloc.h in $try... " >&6; }
7285 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7298 if ac_fn_c_try_compile "$LINENO"; then :
7300 smart_include="-isystem $try"
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7302 $as_echo "yes" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 CPPFLAGS="$old_CPPFLAGS"
7317 if test "x$smart_include" = "x"; then
7318 for _prefix in $smart_prefix; do
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7320 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7334 if ac_fn_c_try_compile "$LINENO"; then :
7336 smart_include="-isystem ${_prefix}/"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338 $as_echo "yes" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 if test "x$smart_include" = "x"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7354 $as_echo_n "checking for talloc.h... " >&6; }
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7368 if ac_fn_c_try_compile "$LINENO"; then :
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7372 $as_echo "yes" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 if test "x$smart_include" = "x"; then
7387 for prefix in $smart_prefix; do
7390 if test "x$LOCATE" != "x"; then
7392 file="${_prefix}/${1}"
7394 for x in `${LOCATE} $file 2>/dev/null`; do
7395 base=`echo $x | sed "s%/${file}%%"`
7396 if test "x$x" = "x$base"; then
7400 dir=`${DIRNAME} $x 2>/dev/null`
7401 exclude=`echo ${dir} | ${GREP} /home`
7402 if test "x$exclude" != "x"; then
7406 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7407 if test "x$already" = "x"; then
7413 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7418 if test "x$LOCATE" != "x"; then
7422 for x in `${LOCATE} $file 2>/dev/null`; do
7423 base=`echo $x | sed "s%/${file}%%"`
7424 if test "x$x" = "x$base"; then
7428 dir=`${DIRNAME} $x 2>/dev/null`
7429 exclude=`echo ${dir} | ${GREP} /home`
7430 if test "x$exclude" != "x"; then
7434 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7435 if test "x$already" = "x"; then
7441 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7444 for try in $_smart_include_dir; do
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7446 $as_echo_n "checking for talloc.h in $try... " >&6; }
7447 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7460 if ac_fn_c_try_compile "$LINENO"; then :
7462 smart_include="-isystem $try"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 CPPFLAGS="$old_CPPFLAGS"
7479 if test "x$smart_include" != "x"; then
7480 eval "ac_cv_header_$ac_safe=yes"
7481 CPPFLAGS="$smart_include $old_CPPFLAGS"
7482 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7487 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7489 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7490 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7495 CFLAGS="$CFLAGS -D_ALL_SOURCE"
7498 CFLAGS="$CFLAGS -DDARWIN"
7499 LIBS="-framework DirectoryService $LIBS"
7501 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7507 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7508 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7510 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7511 if eval \${$as_ac_Header+:} false; then :
7512 $as_echo_n "(cached) " >&6
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 #include <sys/types.h>
7528 if ac_fn_c_try_compile "$LINENO"; then :
7529 eval "$as_ac_Header=yes"
7531 eval "$as_ac_Header=no"
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 eval ac_res=\$$as_ac_Header
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7537 $as_echo "$ac_res" >&6; }
7538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7539 cat >>confdefs.h <<_ACEOF
7540 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7543 ac_header_dirent=$ac_hdr; break
7547 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7548 if test $ac_header_dirent = dirent.h; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7550 $as_echo_n "checking for library containing opendir... " >&6; }
7551 if ${ac_cv_search_opendir+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 ac_func_search_save_LIBS=$LIBS
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */
7573 for ac_lib in '' dir; do
7574 if test -z "$ac_lib"; then
7575 ac_res="none required"
7578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7580 if ac_fn_c_try_link "$LINENO"; then :
7581 ac_cv_search_opendir=$ac_res
7583 rm -f core conftest.err conftest.$ac_objext \
7585 if ${ac_cv_search_opendir+:} false; then :
7589 if ${ac_cv_search_opendir+:} false; then :
7592 ac_cv_search_opendir=no
7595 LIBS=$ac_func_search_save_LIBS
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7598 $as_echo "$ac_cv_search_opendir" >&6; }
7599 ac_res=$ac_cv_search_opendir
7600 if test "$ac_res" != no; then :
7601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7607 $as_echo_n "checking for library containing opendir... " >&6; }
7608 if ${ac_cv_search_opendir+:} false; then :
7609 $as_echo_n "(cached) " >&6
7611 ac_func_search_save_LIBS=$LIBS
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7615 /* Override any GCC internal prototype to avoid an error.
7616 Use char because int might match the return type of a GCC
7617 builtin and then its argument prototype would still apply. */
7630 for ac_lib in '' x; do
7631 if test -z "$ac_lib"; then
7632 ac_res="none required"
7635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 ac_cv_search_opendir=$ac_res
7640 rm -f core conftest.err conftest.$ac_objext \
7642 if ${ac_cv_search_opendir+:} false; then :
7646 if ${ac_cv_search_opendir+:} false; then :
7649 ac_cv_search_opendir=no
7652 LIBS=$ac_func_search_save_LIBS
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7655 $as_echo "$ac_cv_search_opendir" >&6; }
7656 ac_res=$ac_cv_search_opendir
7657 if test "$ac_res" != no; then :
7658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7665 $as_echo_n "checking for ANSI C header files... " >&6; }
7666 if ${ac_cv_header_stdc+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7684 if ac_fn_c_try_compile "$LINENO"; then :
7685 ac_cv_header_stdc=yes
7687 ac_cv_header_stdc=no
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 if test $ac_cv_header_stdc = yes; then
7692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699 $EGREP "memchr" >/dev/null 2>&1; then :
7702 ac_cv_header_stdc=no
7708 if test $ac_cv_header_stdc = yes; then
7709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7716 $EGREP "free" >/dev/null 2>&1; then :
7719 ac_cv_header_stdc=no
7725 if test $ac_cv_header_stdc = yes; then
7726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7727 if test "$cross_compiling" = yes; then :
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7734 #if ((' ' & 0x0FF) == 0x020)
7735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7738 # define ISLOWER(c) \
7739 (('a' <= (c) && (c) <= 'i') \
7740 || ('j' <= (c) && (c) <= 'r') \
7741 || ('s' <= (c) && (c) <= 'z'))
7742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7750 for (i = 0; i < 256; i++)
7751 if (XOR (islower (i), ISLOWER (i))
7752 || toupper (i) != TOUPPER (i))
7757 if ac_fn_c_try_run "$LINENO"; then :
7760 ac_cv_header_stdc=no
7762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7763 conftest.$ac_objext conftest.beam conftest.$ac_ext
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7769 $as_echo "$ac_cv_header_stdc" >&6; }
7770 if test $ac_cv_header_stdc = yes; then
7772 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7777 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7778 if ${ac_cv_header_time+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <sys/types.h>
7784 #include <sys/time.h>
7790 if ((struct tm *) 0)
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_header_time=yes
7799 ac_cv_header_time=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7804 $as_echo "$ac_cv_header_time" >&6; }
7805 if test $ac_cv_header_time = yes; then
7807 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7812 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7813 if ${ac_cv_header_sys_wait_h+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <sys/types.h>
7819 #include <sys/wait.h>
7821 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7824 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7832 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 ac_cv_header_sys_wait_h=yes
7840 ac_cv_header_sys_wait_h=no
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7845 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7846 if test $ac_cv_header_sys_wait_h = yes; then
7848 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7901 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912 for ac_header in net/if.h
7914 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7915 #ifdef HAVE_SYS_SOCKET_H
7916 # include <sys/socket.h>
7921 if test "x$ac_cv_header_net_if_h" = xyes; then :
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_NET_IF_H 1
7931 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7934 $as_echo "#define OSFC2 /**/" >>confdefs.h
7938 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7941 $as_echo "#define OSFSIA /**/" >>confdefs.h
7945 if test "x$WITH_OPENSSL" = xyes; then
7948 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
7950 smart_try_dir="$openssl_lib_dir"
7953 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7954 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7957 old_CPPFLAGS="$CPPFLAGS"
7962 if test "x$smart_try_dir" != "x"; then
7963 for try in $smart_try_dir; do
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7965 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7966 LIBS="-lcrypto $old_LIBS"
7967 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 extern char DH_new();
7979 if ac_fn_c_try_link "$LINENO"; then :
7981 smart_lib="-lcrypto"
7982 smart_ldflags="-L$try -Wl,-rpath,$try"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7995 CPPFLAGS="$old_CPPFLAGS"
7998 if test "x$smart_lib" = "x"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
8000 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
8001 LIBS="-lcrypto $old_LIBS"
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 extern char DH_new();
8013 if ac_fn_c_try_link "$LINENO"; then :
8015 smart_lib="-lcrypto"
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8017 $as_echo "yes" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8028 if test "x$smart_lib" = "x"; then
8031 if test "x$LOCATE" != "x"; then
8033 file=libcrypto${libltdl_cv_shlibext}
8035 for x in `${LOCATE} $file 2>/dev/null`; do
8036 base=`echo $x | sed "s%/${file}%%"`
8037 if test "x$x" = "x$base"; then
8041 dir=`${DIRNAME} $x 2>/dev/null`
8042 exclude=`echo ${dir} | ${GREP} /home`
8043 if test "x$exclude" != "x"; then
8047 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8048 if test "x$already" = "x"; then
8054 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8058 if test "x$LOCATE" != "x"; then
8062 for x in `${LOCATE} $file 2>/dev/null`; do
8063 base=`echo $x | sed "s%/${file}%%"`
8064 if test "x$x" = "x$base"; then
8068 dir=`${DIRNAME} $x 2>/dev/null`
8069 exclude=`echo ${dir} | ${GREP} /home`
8070 if test "x$exclude" != "x"; then
8074 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8075 if test "x$already" = "x"; then
8081 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8084 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8086 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8087 LIBS="-lcrypto $old_LIBS"
8088 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 extern char DH_new();
8100 if ac_fn_c_try_link "$LINENO"; then :
8102 smart_lib="-lcrypto"
8103 smart_ldflags="-L$try -Wl,-rpath,$try"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8116 CPPFLAGS="$old_CPPFLAGS"
8119 if test "x$smart_lib" != "x"; then
8120 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8121 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8122 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8125 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8127 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8129 OPENSSL_LIBS="$smart_lib"
8130 OPENSSL_LDFLAGS="$smart_ldflags"
8134 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8135 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8138 old_CPPFLAGS="$CPPFLAGS"
8143 if test "x$smart_try_dir" != "x"; then
8144 for try in $smart_try_dir; do
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8146 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8147 LIBS="-lssl $old_LIBS"
8148 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 extern char SSL_new();
8160 if ac_fn_c_try_link "$LINENO"; then :
8163 smart_ldflags="-L$try -Wl,-rpath,$try"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8165 $as_echo "yes" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8172 rm -f core conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8176 CPPFLAGS="$old_CPPFLAGS"
8179 if test "x$smart_lib" = "x"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8181 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8182 LIBS="-lssl $old_LIBS"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 extern char SSL_new();
8194 if ac_fn_c_try_link "$LINENO"; then :
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8198 $as_echo "yes" >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8204 rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8209 if test "x$smart_lib" = "x"; then
8212 if test "x$LOCATE" != "x"; then
8214 file=libssl${libltdl_cv_shlibext}
8216 for x in `${LOCATE} $file 2>/dev/null`; do
8217 base=`echo $x | sed "s%/${file}%%"`
8218 if test "x$x" = "x$base"; then
8222 dir=`${DIRNAME} $x 2>/dev/null`
8223 exclude=`echo ${dir} | ${GREP} /home`
8224 if test "x$exclude" != "x"; then
8228 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8229 if test "x$already" = "x"; then
8235 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8239 if test "x$LOCATE" != "x"; then
8243 for x in `${LOCATE} $file 2>/dev/null`; do
8244 base=`echo $x | sed "s%/${file}%%"`
8245 if test "x$x" = "x$base"; then
8249 dir=`${DIRNAME} $x 2>/dev/null`
8250 exclude=`echo ${dir} | ${GREP} /home`
8251 if test "x$exclude" != "x"; then
8255 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8256 if test "x$already" = "x"; then
8262 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8265 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8267 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8268 LIBS="-lssl $old_LIBS"
8269 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 extern char SSL_new();
8281 if ac_fn_c_try_link "$LINENO"; then :
8284 smart_ldflags="-L$try -Wl,-rpath,$try"
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8286 $as_echo "yes" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8297 CPPFLAGS="$old_CPPFLAGS"
8300 if test "x$smart_lib" != "x"; then
8301 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8302 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8303 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8306 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8309 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8310 See \`config.log' for more details" "$LINENO" 5; }
8313 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8315 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8317 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8320 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8321 See \`config.log' for more details" "$LINENO" 5; }
8325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8327 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8328 See \`config.log' for more details" "$LINENO" 5; }
8331 smart_try_dir="$openssl_include_dir"
8334 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8335 old_CPPFLAGS="$CPPFLAGS"
8337 smart_include_dir="/usr/local/include /opt/include"
8342 for _prefix in $smart_prefix ""; do
8343 for _dir in $smart_try_dir; do
8344 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8347 for _dir in $smart_include_dir; do
8348 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8352 if test "x$_smart_try_dir" != "x"; then
8353 for try in $_smart_try_dir; do
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8355 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8356 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8360 #include <openssl/ssl.h>
8369 if ac_fn_c_try_compile "$LINENO"; then :
8371 smart_include="-isystem $try"
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8373 $as_echo "yes" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 CPPFLAGS="$old_CPPFLAGS"
8388 if test "x$smart_include" = "x"; then
8389 for _prefix in $smart_prefix; do
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8391 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8396 #include <openssl/ssl.h>
8405 if ac_fn_c_try_compile "$LINENO"; then :
8407 smart_include="-isystem ${_prefix}/"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8409 $as_echo "yes" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 if test "x$smart_include" = "x"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8425 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8430 #include <openssl/ssl.h>
8439 if ac_fn_c_try_compile "$LINENO"; then :
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8443 $as_echo "yes" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test "x$smart_include" = "x"; then
8458 for prefix in $smart_prefix; do
8461 if test "x$LOCATE" != "x"; then
8463 file="${_prefix}/${1}"
8465 for x in `${LOCATE} $file 2>/dev/null`; do
8466 base=`echo $x | sed "s%/${file}%%"`
8467 if test "x$x" = "x$base"; then
8471 dir=`${DIRNAME} $x 2>/dev/null`
8472 exclude=`echo ${dir} | ${GREP} /home`
8473 if test "x$exclude" != "x"; then
8477 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8478 if test "x$already" = "x"; then
8484 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8489 if test "x$LOCATE" != "x"; then
8493 for x in `${LOCATE} $file 2>/dev/null`; do
8494 base=`echo $x | sed "s%/${file}%%"`
8495 if test "x$x" = "x$base"; then
8499 dir=`${DIRNAME} $x 2>/dev/null`
8500 exclude=`echo ${dir} | ${GREP} /home`
8501 if test "x$exclude" != "x"; then
8505 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8506 if test "x$already" = "x"; then
8512 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8515 for try in $_smart_include_dir; do
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8517 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8518 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 #include <openssl/ssl.h>
8531 if ac_fn_c_try_compile "$LINENO"; then :
8533 smart_include="-isystem $try"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 CPPFLAGS="$old_CPPFLAGS"
8550 if test "x$smart_include" != "x"; then
8551 eval "ac_cv_header_$ac_safe=yes"
8552 CPPFLAGS="$smart_include $old_CPPFLAGS"
8553 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8558 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8560 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 OPENSSL_CPPFLAGS="$smart_include"
8582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8584 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8585 See \`config.log' for more details" "$LINENO" 5; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8594 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <openssl/crypto.h>
8598 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 $EGREP "yes" >/dev/null 2>&1; then :
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8607 $as_echo "yes" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8615 as_fn_error $? "OpenSSL version too old
8616 See \`config.log' for more details" "$LINENO" 5; }
8623 old_CPPFLAGS="$CPPFLAGS"
8624 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8627 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8628 if test "$cross_compiling" = yes; then :
8629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8631 as_fn_error $? "cannot run test program while cross compiling
8632 See \`config.log' for more details" "$LINENO" 5; }
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8638 #include <openssl/opensslv.h>
8639 #include <openssl/crypto.h>
8645 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8646 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8657 if ac_fn_c_try_run "$LINENO"; then :
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8660 $as_echo "yes" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8668 as_fn_error $? "OpenSSL library version does not match header version
8669 See \`config.log' for more details" "$LINENO" 5; }
8673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8674 conftest.$ac_objext conftest.beam conftest.$ac_ext
8677 CPPFLAGS="$old_CPPFLAGS"
8684 export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8687 if test "x$PCAP_LIBS" = x; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8689 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8691 smart_try_dir="$pcap_include_dir"
8694 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8695 old_CPPFLAGS="$CPPFLAGS"
8697 smart_include_dir="/usr/local/include /opt/include"
8702 for _prefix in $smart_prefix ""; do
8703 for _dir in $smart_try_dir; do
8704 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8707 for _dir in $smart_include_dir; do
8708 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8712 if test "x$_smart_try_dir" != "x"; then
8713 for try in $_smart_try_dir; do
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8715 $as_echo_n "checking for pcap.h in $try... " >&6; }
8716 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8729 if ac_fn_c_try_compile "$LINENO"; then :
8731 smart_include="-isystem $try"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8733 $as_echo "yes" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 CPPFLAGS="$old_CPPFLAGS"
8748 if test "x$smart_include" = "x"; then
8749 for _prefix in $smart_prefix; do
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8751 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8765 if ac_fn_c_try_compile "$LINENO"; then :
8767 smart_include="-isystem ${_prefix}/"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769 $as_echo "yes" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 if test "x$smart_include" = "x"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8785 $as_echo_n "checking for pcap.h... " >&6; }
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8799 if ac_fn_c_try_compile "$LINENO"; then :
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 if test "x$smart_include" = "x"; then
8818 for prefix in $smart_prefix; do
8821 if test "x$LOCATE" != "x"; then
8823 file="${_prefix}/${1}"
8825 for x in `${LOCATE} $file 2>/dev/null`; do
8826 base=`echo $x | sed "s%/${file}%%"`
8827 if test "x$x" = "x$base"; then
8831 dir=`${DIRNAME} $x 2>/dev/null`
8832 exclude=`echo ${dir} | ${GREP} /home`
8833 if test "x$exclude" != "x"; then
8837 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8838 if test "x$already" = "x"; then
8844 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8849 if test "x$LOCATE" != "x"; then
8853 for x in `${LOCATE} $file 2>/dev/null`; do
8854 base=`echo $x | sed "s%/${file}%%"`
8855 if test "x$x" = "x$base"; then
8859 dir=`${DIRNAME} $x 2>/dev/null`
8860 exclude=`echo ${dir} | ${GREP} /home`
8861 if test "x$exclude" != "x"; then
8865 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8866 if test "x$already" = "x"; then
8872 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8875 for try in $_smart_include_dir; do
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8877 $as_echo_n "checking for pcap.h in $try... " >&6; }
8878 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8891 if ac_fn_c_try_compile "$LINENO"; then :
8893 smart_include="-isystem $try"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8895 $as_echo "yes" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 CPPFLAGS="$old_CPPFLAGS"
8910 if test "x$smart_include" != "x"; then
8911 eval "ac_cv_header_$ac_safe=yes"
8912 CPPFLAGS="$smart_include $old_CPPFLAGS"
8913 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8918 if test "x$ac_cv_header_pcap_h" == "xyes"; then
8920 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&5
8926 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
8930 if test "x$COLLECTDC_LIBS" = x; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
8932 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
8934 smart_try_dir="$collectdclient_include_dir"
8937 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
8938 old_CPPFLAGS="$CPPFLAGS"
8940 smart_include_dir="/usr/local/include /opt/include"
8945 for _prefix in $smart_prefix ""; do
8946 for _dir in $smart_try_dir; do
8947 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8950 for _dir in $smart_include_dir; do
8951 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8955 if test "x$_smart_try_dir" != "x"; then
8956 for try in $_smart_try_dir; do
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8958 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8959 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 #include <collectd/client.h>
8972 if ac_fn_c_try_compile "$LINENO"; then :
8974 smart_include="-isystem $try"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 CPPFLAGS="$old_CPPFLAGS"
8991 if test "x$smart_include" = "x"; then
8992 for _prefix in $smart_prefix; do
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
8994 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 #include <collectd/client.h>
9008 if ac_fn_c_try_compile "$LINENO"; then :
9010 smart_include="-isystem ${_prefix}/"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9012 $as_echo "yes" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 if test "x$smart_include" = "x"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9028 $as_echo_n "checking for collectd/client.h... " >&6; }
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9033 #include <collectd/client.h>
9042 if ac_fn_c_try_compile "$LINENO"; then :
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9046 $as_echo "yes" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 if test "x$smart_include" = "x"; then
9061 for prefix in $smart_prefix; do
9064 if test "x$LOCATE" != "x"; then
9066 file="${_prefix}/${1}"
9068 for x in `${LOCATE} $file 2>/dev/null`; do
9069 base=`echo $x | sed "s%/${file}%%"`
9070 if test "x$x" = "x$base"; then
9074 dir=`${DIRNAME} $x 2>/dev/null`
9075 exclude=`echo ${dir} | ${GREP} /home`
9076 if test "x$exclude" != "x"; then
9080 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9081 if test "x$already" = "x"; then
9087 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9092 if test "x$LOCATE" != "x"; then
9094 file=collectd/client.h
9096 for x in `${LOCATE} $file 2>/dev/null`; do
9097 base=`echo $x | sed "s%/${file}%%"`
9098 if test "x$x" = "x$base"; then
9102 dir=`${DIRNAME} $x 2>/dev/null`
9103 exclude=`echo ${dir} | ${GREP} /home`
9104 if test "x$exclude" != "x"; then
9108 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9109 if test "x$already" = "x"; then
9115 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9118 for try in $_smart_include_dir; do
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9120 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9121 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 #include <collectd/client.h>
9134 if ac_fn_c_try_compile "$LINENO"; then :
9136 smart_include="-isystem $try"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9138 $as_echo "yes" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 CPPFLAGS="$old_CPPFLAGS"
9153 if test "x$smart_include" != "x"; then
9154 eval "ac_cv_header_$ac_safe=yes"
9155 CPPFLAGS="$smart_include $old_CPPFLAGS"
9156 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9161 if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9163 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9169 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9173 if test "x$HAVE_LIBCAP" = x; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9175 $as_echo "$as_me: skipping test for cap.h." >&6;}
9177 smart_try_dir="$cap_include_dir"
9180 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9181 old_CPPFLAGS="$CPPFLAGS"
9183 smart_include_dir="/usr/local/include /opt/include"
9188 for _prefix in $smart_prefix ""; do
9189 for _dir in $smart_try_dir; do
9190 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9193 for _dir in $smart_include_dir; do
9194 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9198 if test "x$_smart_try_dir" != "x"; then
9199 for try in $_smart_try_dir; do
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9201 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9202 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9206 #include <sys/capability.h>
9215 if ac_fn_c_try_compile "$LINENO"; then :
9217 smart_include="-isystem $try"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9219 $as_echo "yes" >&6; }
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 CPPFLAGS="$old_CPPFLAGS"
9234 if test "x$smart_include" = "x"; then
9235 for _prefix in $smart_prefix; do
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9237 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9242 #include <sys/capability.h>
9251 if ac_fn_c_try_compile "$LINENO"; then :
9253 smart_include="-isystem ${_prefix}/"
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9255 $as_echo "yes" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 if test "x$smart_include" = "x"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9271 $as_echo_n "checking for sys/capability.h... " >&6; }
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 #include <sys/capability.h>
9285 if ac_fn_c_try_compile "$LINENO"; then :
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9289 $as_echo "yes" >&6; }
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 if test "x$smart_include" = "x"; then
9304 for prefix in $smart_prefix; do
9307 if test "x$LOCATE" != "x"; then
9309 file="${_prefix}/${1}"
9311 for x in `${LOCATE} $file 2>/dev/null`; do
9312 base=`echo $x | sed "s%/${file}%%"`
9313 if test "x$x" = "x$base"; then
9317 dir=`${DIRNAME} $x 2>/dev/null`
9318 exclude=`echo ${dir} | ${GREP} /home`
9319 if test "x$exclude" != "x"; then
9323 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9324 if test "x$already" = "x"; then
9330 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9335 if test "x$LOCATE" != "x"; then
9337 file=sys/capability.h
9339 for x in `${LOCATE} $file 2>/dev/null`; do
9340 base=`echo $x | sed "s%/${file}%%"`
9341 if test "x$x" = "x$base"; then
9345 dir=`${DIRNAME} $x 2>/dev/null`
9346 exclude=`echo ${dir} | ${GREP} /home`
9347 if test "x$exclude" != "x"; then
9351 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9352 if test "x$already" = "x"; then
9358 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9361 for try in $_smart_include_dir; do
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9363 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9364 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9368 #include <sys/capability.h>
9377 if ac_fn_c_try_compile "$LINENO"; then :
9379 smart_include="-isystem $try"
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9381 $as_echo "yes" >&6; }
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 CPPFLAGS="$old_CPPFLAGS"
9396 if test "x$smart_include" != "x"; then
9397 eval "ac_cv_header_$ac_safe=yes"
9398 CPPFLAGS="$smart_include $old_CPPFLAGS"
9399 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9404 if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9406 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9410 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9415 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9416 if test "x$ac_cv_type_off_t" = xyes; then :
9420 cat >>confdefs.h <<_ACEOF
9421 #define off_t long int
9426 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9427 if test "x$ac_cv_type_pid_t" = xyes; then :
9431 cat >>confdefs.h <<_ACEOF
9437 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9438 if test "x$ac_cv_type_size_t" = xyes; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define size_t unsigned int
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9449 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9450 if ${ac_cv_type_uid_t+:} false; then :
9451 $as_echo_n "(cached) " >&6
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 #include <sys/types.h>
9458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9459 $EGREP "uid_t" >/dev/null 2>&1; then :
9460 ac_cv_type_uid_t=yes
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9468 $as_echo "$ac_cv_type_uid_t" >&6; }
9469 if test $ac_cv_type_uid_t = no; then
9471 $as_echo "#define uid_t int" >>confdefs.h
9474 $as_echo "#define gid_t int" >>confdefs.h
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9481 $as_echo_n "checking for socklen_t... " >&6; }
9482 if ${ac_cv_type_socklen_t+:} false; then :
9483 $as_echo_n "(cached) " >&6
9485 ac_cv_type_socklen_t=no
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488 #ifdef HAVE_SYS_TYPES_H
9489 # include <sys/types.h>
9492 #ifdef HAVE_SYS_SOCKET_H
9493 # include <sys/socket.h>
9504 if ac_fn_c_try_compile "$LINENO"; then :
9505 ac_cv_type_socklen_t=yes
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9512 $as_echo "$ac_cv_type_socklen_t" >&6; }
9514 if test "$ac_cv_type_socklen_t" != "yes"; then
9516 $as_echo "#define socklen_t int" >>confdefs.h
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9523 $as_echo_n "checking for uint8_t... " >&6; }
9524 if ${ac_cv_type_uint8_t+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 ac_cv_type_uint8_t=no
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 #ifdef HAVE_INTTYPES_H
9531 # include <inttypes.h>
9534 #ifdef HAVE_STDINT_H
9535 # include <stdint.h>
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 ac_cv_type_uint8_t=yes
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9554 $as_echo "$ac_cv_type_uint8_t" >&6; }
9556 if test "$ac_cv_type_uint8_t" != "yes"; then
9558 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9565 $as_echo_n "checking for uint16_t... " >&6; }
9566 if ${ac_cv_type_uint16_t+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 ac_cv_type_uint16_t=no
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #ifdef HAVE_INTTYPES_H
9573 # include <inttypes.h>
9576 #ifdef HAVE_STDINT_H
9577 # include <stdint.h>
9588 if ac_fn_c_try_compile "$LINENO"; then :
9589 ac_cv_type_uint16_t=yes
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9596 $as_echo "$ac_cv_type_uint16_t" >&6; }
9598 if test "$ac_cv_type_uint16_t" != "yes"; then
9600 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9607 $as_echo_n "checking for uint32_t... " >&6; }
9608 if ${ac_cv_type_uint32_t+:} false; then :
9609 $as_echo_n "(cached) " >&6
9611 ac_cv_type_uint32_t=no
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 #ifdef HAVE_INTTYPES_H
9615 # include <inttypes.h>
9618 #ifdef HAVE_STDINT_H
9619 # include <stdint.h>
9630 if ac_fn_c_try_compile "$LINENO"; then :
9631 ac_cv_type_uint32_t=yes
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9638 $as_echo "$ac_cv_type_uint32_t" >&6; }
9640 if test "$ac_cv_type_uint32_t" != "yes"; then
9642 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9649 $as_echo_n "checking for uint64_t... " >&6; }
9650 if ${ac_cv_type_uint64_t+:} false; then :
9651 $as_echo_n "(cached) " >&6
9653 ac_cv_type_uint64_t=no
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #ifdef HAVE_INTTYPES_H
9657 # include <inttypes.h>
9660 #ifdef HAVE_STDINT_H
9661 # include <stdint.h>
9672 if ac_fn_c_try_compile "$LINENO"; then :
9673 ac_cv_type_uint64_t=yes
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9680 $as_echo "$ac_cv_type_uint64_t" >&6; }
9682 if test "$ac_cv_type_uint64_t" != "yes"; then
9684 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9689 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9690 if test "x$ac_cv_type___uint128_t" = xyes; then :
9692 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9697 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9698 #ifdef HAVE_INTTYPES_H
9699 # include <inttypes.h>
9702 #ifdef HAVE_STDINT_H
9703 # include <stdint.h>
9708 if test "x$ac_cv_type_uint128_t" = xyes; then :
9710 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9715 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9716 #ifdef HAVE_NETINET_IN_H
9717 # include <netinet/in.h>
9722 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9724 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9729 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9730 #ifdef HAVE_NETINET_IN_H
9731 # include <netinet/in.h>
9734 #ifdef HAVE_SYS_SOCKET_H
9735 # include <sys/socket.h>
9739 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9741 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9746 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9747 #ifdef HAVE_NETINET_IN_H
9748 # include <netinet/in.h>
9752 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9754 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9759 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9760 #ifdef HAVE_SYS_TYPES_H
9761 # include <sys/types.h>
9764 #ifdef HAVE_SYS_SOCKET_H
9765 # include <sys/socket.h>
9774 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9776 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9782 $as_echo_n "checking if sig_t is defined... " >&6; }
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9786 #ifdef HAVE_SIGNAL_H
9787 # include <signal.h>
9802 if ac_fn_c_try_link "$LINENO"; then :
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9805 $as_echo "yes" >&6; }
9807 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9864 cat >>confdefs.h <<_ACEOF
9865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9873 $as_echo_n "checking return type of signal handlers... " >&6; }
9874 if ${ac_cv_type_signal+:} false; then :
9875 $as_echo_n "(cached) " >&6
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 #include <sys/types.h>
9885 return *(signal (0, 0)) (0) == 1;
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 ac_cv_type_signal=int
9893 ac_cv_type_signal=void
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9898 $as_echo "$ac_cv_type_signal" >&6; }
9900 cat >>confdefs.h <<_ACEOF
9901 #define RETSIGTYPE $ac_cv_type_signal
9906 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9909 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9916 #ifdef HAVE_STDDEF_H
9920 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9926 int foo = offsetof(struct utmpx, ut_xtime)
9931 if ac_fn_c_try_compile "$LINENO"; then :
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9939 if test "x$has_element" != "x"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; }
9942 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9949 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
9951 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
9958 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 #include <netinet/in.h>
9965 #ifdef HAVE_STDDEF_H
9969 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9975 int foo = offsetof(struct in_pktinfo, ipi_addr)
9980 if ac_fn_c_try_compile "$LINENO"; then :
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
9988 if test "x$has_element" != "x"; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9990 $as_echo "yes" >&6; }
9991 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9995 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
9998 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
10000 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
10006 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 #include <netinet/in.h>
10013 #ifdef HAVE_STDDEF_H
10014 #include <stddef.h>
10017 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10023 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10028 if ac_fn_c_try_compile "$LINENO"; then :
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10036 if test "x$has_element" != "x"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10038 $as_echo "yes" >&6; }
10039 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10046 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10048 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10053 $as_echo_n "checking if htonll is defined... " >&6; }
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 #include <sys/types.h>
10058 #include <netinet/in.h>
10071 if ac_fn_c_try_link "$LINENO"; then :
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074 $as_echo "yes" >&6; }
10076 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10090 $as_echo_n "checking if htonlll is defined... " >&6; }
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10094 #include <sys/types.h>
10095 #include <netinet/in.h>
10108 if ac_fn_c_try_link "$LINENO"; then :
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10111 $as_echo "yes" >&6; }
10113 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10128 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10129 if ${ac_cv_c_const+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10139 #ifndef __cplusplus
10140 /* Ultrix mips cc rejects this sort of thing. */
10141 typedef int charset[2];
10142 const charset cs = { 0, 0 };
10143 /* SunOS 4.1.1 cc rejects this. */
10144 char const *const *pcpcc;
10146 /* NEC SVR4.0.2 mips cc rejects this. */
10147 struct point {int x, y;};
10148 static struct point const zero = {0,0};
10149 /* AIX XL C 1.02.0.0 rejects this.
10150 It does not let you subtract one const X* pointer from another in
10151 an arm of an if-expression whose if-part is not a constant
10153 const char *g = "string";
10154 pcpcc = &g + (g ? g-g : 0);
10155 /* HPUX 7.0 cc rejects these. */
10157 ppc = (char**) pcpcc;
10158 pcpcc = (char const *const *) ppc;
10159 { /* SCO 3.2v4 cc rejects this sort of thing. */
10162 char const *s = 0 ? (char *) 0 : (char const *) 0;
10167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10168 int x[] = {25, 17};
10169 const int *foo = &x[0];
10172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10173 typedef const int *iptr;
10177 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10179 struct s { int j; const int *ap[3]; } bx;
10180 struct s *b = &bx; b->j = 5;
10182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10183 const int foo = 10;
10184 if (!foo) return 0;
10186 return !cs[0] && !zero.x;
10193 if ac_fn_c_try_compile "$LINENO"; then :
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10201 $as_echo "$ac_cv_c_const" >&6; }
10202 if test $ac_cv_c_const = no; then
10204 $as_echo "#define const /**/" >>confdefs.h
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10210 $as_echo_n "checking type of OS... " >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10213 $as_echo "$OS" >&6; }
10214 if test "$OS" = "OS/2"; then
10221 if test "x$developer" = "xyes"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10223 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10227 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10228 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10229 $as_echo_n "(cached) " >&6
10233 CFLAGS_SAVED=$CFLAGS
10234 CFLAGS="$CFLAGS -Werror -Wdocumentation"
10237 ac_cpp='$CPP $CPPFLAGS'
10238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10253 if ac_fn_c_try_compile "$LINENO"; then :
10254 ax_cv_cc_wdocumentation_flag="yes"
10256 ax_cv_cc_wdocumentation_flag="no"
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 ac_cpp='$CPP $CPPFLAGS'
10261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266 CFLAGS="$CFLAGS_SAVED"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10270 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10272 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10273 devflags="-Wdocumentation"
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
10278 $as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; }
10279 if ${ax_cv_cc_weverything_flag+:} false; then :
10280 $as_echo_n "(cached) " >&6
10284 CFLAGS_SAVED=$CFLAGS
10285 CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return"
10288 ac_cpp='$CPP $CPPFLAGS'
10289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10304 if ac_fn_c_try_compile "$LINENO"; then :
10305 ax_cv_cc_weverything_flag="yes"
10307 ax_cv_cc_weverything_flag="no"
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10317 CFLAGS="$CFLAGS_SAVED"
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
10321 $as_echo "$ax_cv_cc_weverything_flag" >&6; }
10323 if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
10324 devflags="$devflags -Weverything -Wformat=2 -Wno-padded -Wno-gnu-zero-variadic-macro-arguments -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-conversion -Wno-switch-enum -Wno-gnu-statement-expression -Wno-extended-offsetof -Wno-cast-align -Wno-documentation-unknown-command -Wno-covered-switch-default -Wno-packed -DWITH_VERIFY_PTR=1"
10326 if test "x$GCC" = "xyes"; then
10327 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"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10333 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10335 CFLAGS="$CFLAGS $devflags"
10336 if test "x$EXPERIMENTAL" != "xno"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10338 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10343 CFLAGS="$CFLAGS -DNDEBUG"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10348 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10349 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10351 $as_echo "yes" >&6; }
10353 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10360 export EXPERIMENTAL
10362 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10363 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10365 cat >>confdefs.h <<_ACEOF
10366 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10373 $as_echo_n "checking for __thread support in compiler... " >&6; }
10374 if test "$cross_compiling" = yes; then :
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10380 static __thread int val;
10381 int main(int argc, char **argv) {
10388 if ac_fn_c_try_run "$LINENO"; then :
10393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10394 conftest.$ac_objext conftest.beam conftest.$ac_ext
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10398 $as_echo "$have_tls" >&6; }
10399 if test "x$have_tls" = "xyes"; then
10401 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10405 if test "x$have_tls" = "xno"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10407 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10408 if test "$cross_compiling" = yes; then :
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 static _Thread_local int val;
10415 int main(int argc, char **argv) {
10422 if ac_fn_c_try_run "$LINENO"; then :
10427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10428 conftest.$ac_objext conftest.beam conftest.$ac_ext
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10432 $as_echo "$have_tls" >&6; }
10433 if test "x$have_tls" = "xyes"; then
10435 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10439 if test "x$have_tls" = "xno"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10441 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10442 if test "$cross_compiling" = yes; then :
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 static _Thread_local int val;
10449 int main(int argc, char **argv) {
10456 if ac_fn_c_try_run "$LINENO"; then :
10461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10462 conftest.$ac_objext conftest.beam conftest.$ac_ext
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10466 $as_echo "$have_tls" >&6; }
10467 if test "x$have_tls" = "xyes"; then
10469 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10476 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10477 if test "$cross_compiling" = yes; then :
10478 have_builtin_choose_expr=no
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10483 int main(int argc, char **argv) {
10484 return __builtin_choose_expr(0, 1, 0);
10489 if ac_fn_c_try_run "$LINENO"; then :
10490 have_builtin_choose_expr=yes
10492 have_builtin_choose_expr=no
10494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10495 conftest.$ac_objext conftest.beam conftest.$ac_ext
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_choose_expr" >&5
10499 $as_echo "$have_builtin_choose_expr" >&6; }
10500 if test "x$have_builtin_choose_expr" = "xyes"; then
10502 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10508 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10509 if test "$cross_compiling" = yes; then :
10510 have_builtin_types_compatible_p=no
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10515 int main(int argc, char **argv) {
10516 return !(__builtin_types_compatible_p(char *, char *));
10521 if ac_fn_c_try_run "$LINENO"; then :
10522 have_builtin_types_compatible_p=yes
10524 have_builtin_types_compatible_p=no
10526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10527 conftest.$ac_objext conftest.beam conftest.$ac_ext
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_types_compatible_p" >&5
10531 $as_echo "$have_builtin_types_compatible_p" >&6; }
10532 if test "x$have_builtin_types_compatible_p" = "xyes"; then
10534 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10540 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10541 if test "$cross_compiling" = yes; then :
10542 have_builtin_bswap64=no
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10547 int main(int argc, char **argv) {
10548 return (__builtin_bswap64(0));
10553 if ac_fn_c_try_run "$LINENO"; then :
10554 have_builtin_bswap64=yes
10556 have_builtin_bswap64=no
10558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10559 conftest.$ac_objext conftest.beam conftest.$ac_ext
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_bswap64" >&5
10563 $as_echo "$have_builtin_bswap64" >&6; }
10564 if test "x$have_builtin_bswap64" = "xyes"; then
10566 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10573 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10574 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10575 $as_echo_n "(cached) " >&6
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-ltalloc $LIBS"
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10588 char talloc_set_memlimit ();
10592 return talloc_set_memlimit ();
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 ac_cv_lib_talloc_talloc_set_memlimit=yes
10600 ac_cv_lib_talloc_talloc_set_memlimit=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10607 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10608 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10611 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10619 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10620 if ${ac_cv_lib_crypt_crypt+:} false; then :
10621 $as_echo_n "(cached) " >&6
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lcrypt $LIBS"
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10643 if ac_fn_c_try_link "$LINENO"; then :
10644 ac_cv_lib_crypt_crypt=yes
10646 ac_cv_lib_crypt_crypt=no
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10653 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10654 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10660 if test "$CRYPTLIB" != ""; then
10662 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10665 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10666 if test "x$ac_cv_func_crypt" = xyes; then :
10668 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10675 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10676 if ${ac_cv_lib_cipher_setkey+:} false; then :
10677 $as_echo_n "(cached) " >&6
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-lcipher $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_cipher_setkey=yes
10702 ac_cv_lib_cipher_setkey=no
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10709 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10710 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10711 CRYPTLIB="${CRYPTLIB} -lcipher"
10719 # Check whether --with-execinfo-lib-dir was given.
10720 if test "${with_execinfo_lib_dir+set}" = set; then :
10721 withval=$with_execinfo_lib_dir; case "$withval" in
10723 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10728 execinfo_lib_dir="$withval"
10735 execinfo_include_dir=
10737 # Check whether --with-execinfo-include-dir was given.
10738 if test "${with_execinfo_include_dir+set}" = set; then :
10739 withval=$with_execinfo_include_dir; case "$withval" in
10741 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10746 execinfo_include_dir="$withval"
10753 smart_try_dir=$execinfo_include_dir
10756 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10757 old_CPPFLAGS="$CPPFLAGS"
10759 smart_include_dir="/usr/local/include /opt/include"
10762 _smart_include_dir=
10764 for _prefix in $smart_prefix ""; do
10765 for _dir in $smart_try_dir; do
10766 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10769 for _dir in $smart_include_dir; do
10770 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10774 if test "x$_smart_try_dir" != "x"; then
10775 for try in $_smart_try_dir; do
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10777 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10778 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10782 #include <execinfo.h>
10791 if ac_fn_c_try_compile "$LINENO"; then :
10793 smart_include="-isystem $try"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 CPPFLAGS="$old_CPPFLAGS"
10810 if test "x$smart_include" = "x"; then
10811 for _prefix in $smart_prefix; do
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
10813 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10818 #include <execinfo.h>
10827 if ac_fn_c_try_compile "$LINENO"; then :
10829 smart_include="-isystem ${_prefix}/"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 if test "x$smart_include" = "x"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
10847 $as_echo_n "checking for execinfo.h... " >&6; }
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 #include <execinfo.h>
10861 if ac_fn_c_try_compile "$LINENO"; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865 $as_echo "yes" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 if test "x$smart_include" = "x"; then
10880 for prefix in $smart_prefix; do
10883 if test "x$LOCATE" != "x"; then
10885 file="${_prefix}/${1}"
10887 for x in `${LOCATE} $file 2>/dev/null`; do
10888 base=`echo $x | sed "s%/${file}%%"`
10889 if test "x$x" = "x$base"; then
10893 dir=`${DIRNAME} $x 2>/dev/null`
10894 exclude=`echo ${dir} | ${GREP} /home`
10895 if test "x$exclude" != "x"; then
10899 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10900 if test "x$already" = "x"; then
10906 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10911 if test "x$LOCATE" != "x"; then
10915 for x in `${LOCATE} $file 2>/dev/null`; do
10916 base=`echo $x | sed "s%/${file}%%"`
10917 if test "x$x" = "x$base"; then
10921 dir=`${DIRNAME} $x 2>/dev/null`
10922 exclude=`echo ${dir} | ${GREP} /home`
10923 if test "x$exclude" != "x"; then
10927 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10928 if test "x$already" = "x"; then
10934 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10937 for try in $_smart_include_dir; do
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10939 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10940 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 #include <execinfo.h>
10953 if ac_fn_c_try_compile "$LINENO"; then :
10955 smart_include="-isystem $try"
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10957 $as_echo "yes" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 CPPFLAGS="$old_CPPFLAGS"
10972 if test "x$smart_include" != "x"; then
10973 eval "ac_cv_header_$ac_safe=yes"
10974 CPPFLAGS="$smart_include $old_CPPFLAGS"
10975 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10980 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
10981 smart_try_dir=$execinfo_lib_dir
10984 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
10985 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
10988 old_CPPFLAGS="$CPPFLAGS"
10993 if test "x$smart_try_dir" != "x"; then
10994 for try in $smart_try_dir; do
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10996 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10997 LIBS="-lexecinfo $old_LIBS"
10998 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001 extern char backtrace_symbols();
11005 backtrace_symbols()
11010 if ac_fn_c_try_link "$LINENO"; then :
11012 smart_lib="-lexecinfo"
11013 smart_ldflags="-L$try -Wl,-rpath,$try"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; }
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11026 CPPFLAGS="$old_CPPFLAGS"
11029 if test "x$smart_lib" = "x"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
11031 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
11032 LIBS="-lexecinfo $old_LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 extern char backtrace_symbols();
11039 backtrace_symbols()
11044 if ac_fn_c_try_link "$LINENO"; then :
11046 smart_lib="-lexecinfo"
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11048 $as_echo "yes" >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11059 if test "x$smart_lib" = "x"; then
11062 if test "x$LOCATE" != "x"; then
11064 file=libexecinfo${libltdl_cv_shlibext}
11066 for x in `${LOCATE} $file 2>/dev/null`; do
11067 base=`echo $x | sed "s%/${file}%%"`
11068 if test "x$x" = "x$base"; then
11072 dir=`${DIRNAME} $x 2>/dev/null`
11073 exclude=`echo ${dir} | ${GREP} /home`
11074 if test "x$exclude" != "x"; then
11078 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11079 if test "x$already" = "x"; then
11085 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11089 if test "x$LOCATE" != "x"; then
11093 for x in `${LOCATE} $file 2>/dev/null`; do
11094 base=`echo $x | sed "s%/${file}%%"`
11095 if test "x$x" = "x$base"; then
11099 dir=`${DIRNAME} $x 2>/dev/null`
11100 exclude=`echo ${dir} | ${GREP} /home`
11101 if test "x$exclude" != "x"; then
11105 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11106 if test "x$already" = "x"; then
11112 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11115 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11117 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11118 LIBS="-lexecinfo $old_LIBS"
11119 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 extern char backtrace_symbols();
11126 backtrace_symbols()
11131 if ac_fn_c_try_link "$LINENO"; then :
11133 smart_lib="-lexecinfo"
11134 smart_ldflags="-L$try -Wl,-rpath,$try"
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11136 $as_echo "yes" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11143 rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11147 CPPFLAGS="$old_CPPFLAGS"
11150 if test "x$smart_lib" != "x"; then
11151 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11152 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11153 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11156 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11158 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 #include <execinfo.h>
11169 backtrace_symbols(&sym, sizeof(sym))
11174 if ac_fn_c_try_link "$LINENO"; then :
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; }
11178 ac_cv_lib_execinfo_backtrace_symbols="yes"
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11187 rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11191 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11193 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11200 # Check whether --with-pcre was given.
11201 if test "${with_pcre+set}" = set; then :
11202 withval=$with_pcre; case "$withval" in
11216 # Check whether --with-pcre-lib-dir was given.
11217 if test "${with_pcre_lib_dir+set}" = set; then :
11218 withval=$with_pcre_lib_dir; case "$withval" in
11220 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11225 pcre_lib_dir="$withval"
11234 # Check whether --with-pcre-include-dir was given.
11235 if test "${with_pcre_include_dir+set}" = set; then :
11236 withval=$with_pcre_include_dir; case "$withval" in
11238 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11243 pcre_include_dir="$withval"
11252 # Check whether --with-regex was given.
11253 if test "${with_regex+set}" = set; then :
11254 withval=$with_regex; case "$withval" in
11265 if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
11266 smart_try_dir=$pcre_include_dir
11269 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11270 old_CPPFLAGS="$CPPFLAGS"
11272 smart_include_dir="/usr/local/include /opt/include"
11275 _smart_include_dir=
11277 for _prefix in $smart_prefix ""; do
11278 for _dir in $smart_try_dir; do
11279 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11282 for _dir in $smart_include_dir; do
11283 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11287 if test "x$_smart_try_dir" != "x"; then
11288 for try in $_smart_try_dir; do
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11290 $as_echo_n "checking for pcre.h in $try... " >&6; }
11291 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11304 if ac_fn_c_try_compile "$LINENO"; then :
11306 smart_include="-isystem $try"
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308 $as_echo "yes" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 CPPFLAGS="$old_CPPFLAGS"
11323 if test "x$smart_include" = "x"; then
11324 for _prefix in $smart_prefix; do
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11326 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11340 if ac_fn_c_try_compile "$LINENO"; then :
11342 smart_include="-isystem ${_prefix}/"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11344 $as_echo "yes" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 if test "x$smart_include" = "x"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11360 $as_echo_n "checking for pcre.h... " >&6; }
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11374 if ac_fn_c_try_compile "$LINENO"; then :
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378 $as_echo "yes" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 if test "x$smart_include" = "x"; then
11393 for prefix in $smart_prefix; do
11396 if test "x$LOCATE" != "x"; then
11398 file="${_prefix}/${1}"
11400 for x in `${LOCATE} $file 2>/dev/null`; do
11401 base=`echo $x | sed "s%/${file}%%"`
11402 if test "x$x" = "x$base"; then
11406 dir=`${DIRNAME} $x 2>/dev/null`
11407 exclude=`echo ${dir} | ${GREP} /home`
11408 if test "x$exclude" != "x"; then
11412 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11413 if test "x$already" = "x"; then
11419 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11424 if test "x$LOCATE" != "x"; then
11428 for x in `${LOCATE} $file 2>/dev/null`; do
11429 base=`echo $x | sed "s%/${file}%%"`
11430 if test "x$x" = "x$base"; then
11434 dir=`${DIRNAME} $x 2>/dev/null`
11435 exclude=`echo ${dir} | ${GREP} /home`
11436 if test "x$exclude" != "x"; then
11440 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11441 if test "x$already" = "x"; then
11447 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11450 for try in $_smart_include_dir; do
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11452 $as_echo_n "checking for pcre.h in $try... " >&6; }
11453 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11466 if ac_fn_c_try_compile "$LINENO"; then :
11468 smart_include="-isystem $try"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 CPPFLAGS="$old_CPPFLAGS"
11485 if test "x$smart_include" != "x"; then
11486 eval "ac_cv_header_$ac_safe=yes"
11487 CPPFLAGS="$smart_include $old_CPPFLAGS"
11488 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11493 if test "x$ac_cv_header_pcre_h" = "xyes"; then
11494 smart_try_dir=$pcre_lib_dir
11497 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11498 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11501 old_CPPFLAGS="$CPPFLAGS"
11506 if test "x$smart_try_dir" != "x"; then
11507 for try in $smart_try_dir; do
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11509 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11510 LIBS="-lpcre $old_LIBS"
11511 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514 extern char pcre_compile();
11523 if ac_fn_c_try_link "$LINENO"; then :
11526 smart_ldflags="-L$try -Wl,-rpath,$try"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11539 CPPFLAGS="$old_CPPFLAGS"
11542 if test "x$smart_lib" = "x"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11544 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11545 LIBS="-lpcre $old_LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548 extern char pcre_compile();
11557 if ac_fn_c_try_link "$LINENO"; then :
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561 $as_echo "yes" >&6; }
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11572 if test "x$smart_lib" = "x"; then
11575 if test "x$LOCATE" != "x"; then
11577 file=libpcre${libltdl_cv_shlibext}
11579 for x in `${LOCATE} $file 2>/dev/null`; do
11580 base=`echo $x | sed "s%/${file}%%"`
11581 if test "x$x" = "x$base"; then
11585 dir=`${DIRNAME} $x 2>/dev/null`
11586 exclude=`echo ${dir} | ${GREP} /home`
11587 if test "x$exclude" != "x"; then
11591 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11592 if test "x$already" = "x"; then
11598 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11602 if test "x$LOCATE" != "x"; then
11606 for x in `${LOCATE} $file 2>/dev/null`; do
11607 base=`echo $x | sed "s%/${file}%%"`
11608 if test "x$x" = "x$base"; then
11612 dir=`${DIRNAME} $x 2>/dev/null`
11613 exclude=`echo ${dir} | ${GREP} /home`
11614 if test "x$exclude" != "x"; then
11618 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11619 if test "x$already" = "x"; then
11625 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11628 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11630 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11631 LIBS="-lpcre $old_LIBS"
11632 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 extern char pcre_compile();
11644 if ac_fn_c_try_link "$LINENO"; then :
11647 smart_ldflags="-L$try -Wl,-rpath,$try"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11660 CPPFLAGS="$old_CPPFLAGS"
11663 if test "x$smart_lib" != "x"; then
11664 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11665 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11666 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11669 if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11672 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11675 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11681 if test "x$REGEX" = "x"; then
11685 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11686 old_CPPFLAGS="$CPPFLAGS"
11688 smart_include_dir="/usr/local/include /opt/include"
11691 _smart_include_dir=
11693 for _prefix in $smart_prefix ""; do
11694 for _dir in $smart_try_dir; do
11695 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11698 for _dir in $smart_include_dir; do
11699 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11703 if test "x$_smart_try_dir" != "x"; then
11704 for try in $_smart_try_dir; do
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11706 $as_echo_n "checking for regex.h in $try... " >&6; }
11707 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11720 if ac_fn_c_try_compile "$LINENO"; then :
11722 smart_include="-isystem $try"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 CPPFLAGS="$old_CPPFLAGS"
11739 if test "x$smart_include" = "x"; then
11740 for _prefix in $smart_prefix; do
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11742 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11756 if ac_fn_c_try_compile "$LINENO"; then :
11758 smart_include="-isystem ${_prefix}/"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760 $as_echo "yes" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774 if test "x$smart_include" = "x"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11776 $as_echo_n "checking for regex.h... " >&6; }
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11790 if ac_fn_c_try_compile "$LINENO"; then :
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 $as_echo "yes" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 if test "x$smart_include" = "x"; then
11809 for prefix in $smart_prefix; do
11812 if test "x$LOCATE" != "x"; then
11814 file="${_prefix}/${1}"
11816 for x in `${LOCATE} $file 2>/dev/null`; do
11817 base=`echo $x | sed "s%/${file}%%"`
11818 if test "x$x" = "x$base"; then
11822 dir=`${DIRNAME} $x 2>/dev/null`
11823 exclude=`echo ${dir} | ${GREP} /home`
11824 if test "x$exclude" != "x"; then
11828 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11829 if test "x$already" = "x"; then
11835 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11840 if test "x$LOCATE" != "x"; then
11844 for x in `${LOCATE} $file 2>/dev/null`; do
11845 base=`echo $x | sed "s%/${file}%%"`
11846 if test "x$x" = "x$base"; then
11850 dir=`${DIRNAME} $x 2>/dev/null`
11851 exclude=`echo ${dir} | ${GREP} /home`
11852 if test "x$exclude" != "x"; then
11856 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11857 if test "x$already" = "x"; then
11863 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11866 for try in $_smart_include_dir; do
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11868 $as_echo_n "checking for regex.h in $try... " >&6; }
11869 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11882 if ac_fn_c_try_compile "$LINENO"; then :
11884 smart_include="-isystem $try"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886 $as_echo "yes" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 CPPFLAGS="$old_CPPFLAGS"
11901 if test "x$smart_include" != "x"; then
11902 eval "ac_cv_header_$ac_safe=yes"
11903 CPPFLAGS="$smart_include $old_CPPFLAGS"
11904 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11909 if test "x$ac_cv_header_regex_h" = "xyes"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
11912 $as_echo_n "checking for extended regular expressions... " >&6; }
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11917 #ifdef REG_EXTENDED
11922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11923 $EGREP "yes" >/dev/null 2>&1; then :
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926 $as_echo "yes" >&6; }
11928 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
11942 $as_echo_n "checking for regcomp in -lregex... " >&6; }
11943 if ${ac_cv_lib_regex_regcomp+:} false; then :
11944 $as_echo_n "(cached) " >&6
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lregex $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_regex_regcomp=yes
11969 ac_cv_lib_regex_regcomp=no
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
11976 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
11977 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
11979 LIBS="-lregex $LIBS"
11990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11993 cat >>confdefs.h <<_ACEOF
11994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 if test x"$ac_cv_func_regncomp" = x"yes" && test x"$ac_cv_func_regnexec" = x"yes"; then
12002 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
12008 if test "x$REGEX" = "xyes"; then
12010 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
12015 $as_echo "#define GNUSTYLE 1" >>confdefs.h
12019 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
12023 $as_echo "#define BSDSTYLE 3" >>confdefs.h
12026 gethostbyaddrrstyle=""
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
12028 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
12031 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
12032 #ifdef HAVE_NETDB_H
12037 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
12046 if test $ac_have_decl = 1; then :
12051 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12053 gethostbyaddrrstyle=BSD
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
12055 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
12062 if test "x$gethostbyaddrrstyle" = "x"; then
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12072 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
12077 if ac_fn_c_try_link "$LINENO"; then :
12080 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12082 gethostbyaddrrstyle=GNU
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12090 if test "x$gethostbyaddrrstyle" = "x"; then
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12100 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12105 if ac_fn_c_try_link "$LINENO"; then :
12108 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12110 gethostbyaddrrstyle=SYSV
12114 rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12119 if test "x$gethostbyaddrrstyle" = "x"; then
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12129 gethostbyaddr(NULL, 0, 0)
12134 if ac_fn_c_try_link "$LINENO"; then :
12137 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12139 gethostbyaddrrstyle=BSD
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12147 if test "x$gethostbyaddrrstyle" = "x"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12149 $as_echo "none! It must not exist, here." >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12152 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12155 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12157 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12160 gethostbynamerstyle=""
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12162 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12172 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12177 if ac_fn_c_try_link "$LINENO"; then :
12180 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12182 gethostbynamerstyle=GNU
12186 rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12189 if test "x$gethostbynamerstyle" = "x"; then
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12199 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12204 if ac_fn_c_try_link "$LINENO"; then :
12207 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12209 gethostbynamerstyle=SYSV
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12217 if test "x$gethostbynamerstyle" = "x"; then
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12227 gethostbyname(NULL)
12232 if ac_fn_c_try_link "$LINENO"; then :
12235 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12237 gethostbynamerstyle=BSD
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12245 if test "x$gethostbynamerstyle" = "x"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12247 $as_echo "none! It must not exist, here." >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12250 $as_echo "${gethostbynamerstyle}-style" >&6; }
12253 if test "x$gethostbynamerstyle" = "xBSD"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12255 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12258 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12260 $as_echo_n "checking getpwnam_r... " >&6; }
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 #include <stdlib.h>
12265 #include <sys/types.h>
12271 getpwnam_r(NULL, NULL, NULL, 0, NULL)
12276 if ac_fn_c_try_link "$LINENO"; then :
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12281 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12295 if test "x$ac_cv_header_grp_h" = "xyes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12297 $as_echo_n "checking getgrnam_r... " >&6; }
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 #include <stdlib.h>
12302 #include <sys/types.h>
12308 getgrnam_r(NULL, NULL, NULL, 0, NULL)
12313 if ac_fn_c_try_link "$LINENO"; then :
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316 $as_echo "yes" >&6; }
12318 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12334 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12337 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12341 $as_echo_n "checking ctime_r() syntax... " >&6; }
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12350 ctime_r(NULL, NULL, 0)
12355 if ac_fn_c_try_link "$LINENO"; then :
12358 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12360 ctimerstyle="SOLARIS"
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12367 if test "x$ctimerstyle" = "x"; then
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12376 ctime_r(NULL, NULL)
12381 if ac_fn_c_try_link "$LINENO"; then :
12384 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12386 ctimerstyle="POSIX"
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12394 if test "x$ctimerstyle" = "x"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12396 $as_echo "none! It must not exist, here." >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12399 $as_echo "${ctimerstyle}-style" >&6; }
12407 export top_builddir
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12409 $as_echo "top_builddir=$top_builddir" >&6; }
12414 if test "x$EXPERIMENTAL" = "xyes"; then
12415 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12416 MODULES="$MODULES $foo"
12419 for foo in `cat "${srcdir}"/src/modules/stable`; do
12420 MODULES="$MODULES $foo"
12425 for bar in $MODULES; do
12426 if test -f "${srcdir}"/src/modules/$bar/configure; then
12427 mysubdirs="$mysubdirs src/modules/$bar"
12433 subdirs="$subdirs $mysubdirs"
12437 if test "x$werror" == "xyes"; then
12438 CFLAGS="-Werror $CFLAGS"
12441 ac_config_commands="$ac_config_commands stamp-h"
12443 ac_config_commands="$ac_config_commands build-radpaths-h"
12445 ac_config_commands="$ac_config_commands main-chmod"
12447 ac_config_commands="$ac_config_commands scripts-chmod"
12454 USE_STATIC_LIBS="yes"
12459 unset ac_cv_env_LIBS_set
12460 unset ac_cv_env_LIBS_value
12462 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/cron/radiusd.cron.daily ./scripts/cron/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/radrelay.conf ./raddb/radiusd.conf"
12464 cat >confcache <<\_ACEOF
12465 # This file is a shell script that caches the results of configure
12466 # tests run on this system so they can be shared between configure
12467 # scripts and configure runs, see configure's option --config-cache.
12468 # It is not useful on other systems. If it contains results you don't
12469 # want to keep, you may remove or edit it.
12471 # config.status only pays attention to the cache file if you give it
12472 # the --recheck option to rerun configure.
12474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12476 # following values.
12480 # The following way of writing the cache mishandles newlines in values,
12481 # but we know of no workaround that is simple, portable, and efficient.
12482 # So, we kill variables containing newlines.
12483 # Ultrix sh set writes to stderr and can't be redirected directly,
12484 # and sets the high bit in the cache file unless we assign to the vars.
12486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12487 eval ac_val=\$$ac_var
12491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12495 _ | IFS | as_nl) ;; #(
12496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12497 *) { eval $ac_var=; unset $ac_var;} ;;
12503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12504 *${as_nl}ac_space=\ *)
12505 # `set' does not quote correctly, so add quotes: double-quote
12506 # substitution turns \\\\ into \\, and sed turns \\ into \.
12509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12512 # `set' quotes correctly as required by POSIX, so do not add quotes.
12513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12527 if test -w "$cache_file"; then
12528 if test "x$cache_file" != "x/dev/null"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12530 $as_echo "$as_me: updating cache $cache_file" >&6;}
12531 if test ! -f "$cache_file" || test -h "$cache_file"; then
12532 cat confcache >"$cache_file"
12534 case $cache_file in #(
12536 mv -f confcache "$cache_file"$$ &&
12537 mv -f "$cache_file"$$ "$cache_file" ;; #(
12539 mv -f confcache "$cache_file" ;;
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12551 # Let make expand exec_prefix.
12552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12554 DEFS=-DHAVE_CONFIG_H
12559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12560 # 1. Remove the extension, and $U if already installed.
12561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12562 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12564 # will be set to the directory where LIBOBJS objects are built.
12565 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12566 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12568 LIBOBJS=$ac_libobjs
12570 LTLIBOBJS=$ac_ltlibobjs
12575 : "${CONFIG_STATUS=./config.status}"
12577 ac_clean_files_save=$ac_clean_files
12578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12584 # Generated by $as_me.
12585 # Run this file to recreate the current configuration.
12586 # Compiler output produced by configure, useful for debugging
12587 # configure, is in config.log if it exists.
12590 ac_cs_recheck=false
12593 SHELL=\${CONFIG_SHELL-$SHELL}
12596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12597 ## -------------------- ##
12598 ## M4sh Initialization. ##
12599 ## -------------------- ##
12601 # Be more Bourne compatible
12602 DUALCASE=1; export DUALCASE # for MKS sh
12603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12607 # is contrary to our usage. Disable this feature.
12608 alias -g '${1+"$@"}'='"$@"'
12609 setopt NO_GLOB_SUBST
12611 case `(set -o) 2>/dev/null` in #(
12623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12624 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12627 # Prefer a ksh shell builtin over an external printf program on Solaris,
12628 # but without wasting forks for bash or zsh.
12629 if test -z "$BASH_VERSION$ZSH_VERSION" \
12630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12631 as_echo='print -r --'
12632 as_echo_n='print -rn --'
12633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12634 as_echo='printf %s\n'
12635 as_echo_n='printf %s'
12637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12639 as_echo_n='/usr/ucb/echo -n'
12641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12642 as_echo_n_body='eval
12646 expr "X$arg" : "X\\(.*\\)$as_nl";
12647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12651 export as_echo_n_body
12652 as_echo_n='sh -c $as_echo_n_body as_echo'
12654 export as_echo_body
12655 as_echo='sh -c $as_echo_body as_echo'
12658 # The user is always right.
12659 if test "${PATH_SEPARATOR+set}" != set; then
12661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12669 # We need space, tab and new line, in precisely that order. Quoting is
12670 # there to prevent editors from complaining about space-tab.
12671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12672 # splitting by setting IFS to empty value.)
12675 # Find who we are. Look in the path if we contain no directory separator.
12678 *[\\/]* ) as_myself=$0 ;;
12679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12683 test -z "$as_dir" && as_dir=.
12684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12690 # We did not find ourselves, most probably we were run as `sh COMMAND'
12691 # in which case we are not to be found in the path.
12692 if test "x$as_myself" = x; then
12695 if test ! -f "$as_myself"; then
12696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12700 # Unset variables that we do not need and which cause bugs (e.g. in
12701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12702 # suppresses any "Segmentation fault" message there. '((' could
12703 # trigger a bug in pdksh 5.2.14.
12704 for as_var in BASH_ENV ENV MAIL MAILPATH
12705 do eval test x\${$as_var+set} = xset \
12706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12723 # ----------------------------------------
12724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12726 # script with STATUS, using 1 if that was 0.
12729 as_status=$1; test $as_status -eq 0 && as_status=1
12731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12734 $as_echo "$as_me: error: $2" >&2
12735 as_fn_exit $as_status
12739 # as_fn_set_status STATUS
12740 # -----------------------
12741 # Set $? to STATUS, without forking.
12742 as_fn_set_status ()
12745 } # as_fn_set_status
12747 # as_fn_exit STATUS
12748 # -----------------
12749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12753 as_fn_set_status $1
12759 # Portably unset VAR.
12762 { eval $1=; unset $1;}
12764 as_unset=as_fn_unset
12765 # as_fn_append VAR VALUE
12766 # ----------------------
12767 # Append the text in VALUE to the end of the definition contained in VAR. Take
12768 # advantage of any shell optimizations that allow amortized linear growth over
12769 # repeated appends, instead of the typical quadratic growth present in naive
12771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12772 eval 'as_fn_append ()
12783 # as_fn_arith ARG...
12784 # ------------------
12785 # Perform arithmetic evaluation on the ARGs, and store the result in the
12786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12787 # must be portable across $(()) and expr.
12788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12789 eval 'as_fn_arith ()
12796 as_val=`expr "$@" || test $? -eq 1`
12801 if expr a : '\(a\)' >/dev/null 2>&1 &&
12802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12809 as_basename=basename
12814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12820 as_me=`$as_basename -- "$0" ||
12821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12822 X"$0" : 'X\(//\)$' \| \
12823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12825 sed '/^.*\/\([^/][^/]*\)\/*$/{
12839 # Avoid depending upon Character Ranges.
12840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12843 as_cr_digits='0123456789'
12844 as_cr_alnum=$as_cr_Letters$as_cr_digits
12846 ECHO_C= ECHO_N= ECHO_T=
12847 case `echo -n x` in #(((((
12849 case `echo 'xy\c'` in
12850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12859 rm -f conf$$ conf$$.exe conf$$.file
12860 if test -d conf$$.dir; then
12861 rm -f conf$$.dir/conf$$.file
12864 mkdir conf$$.dir 2>/dev/null
12866 if (echo >conf$$.file) 2>/dev/null; then
12867 if ln -s conf$$.file conf$$ 2>/dev/null; then
12869 # ... but there are two gotchas:
12870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12872 # In both cases, we have to default to `cp -pR'.
12873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12875 elif ln conf$$.file conf$$ 2>/dev/null; then
12883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12884 rmdir conf$$.dir 2>/dev/null
12889 # Create "$as_dir" as a directory, including parents if necessary.
12894 -*) as_dir=./$as_dir;;
12896 test -d "$as_dir" || eval $as_mkdir_p || {
12900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12901 *) as_qdir=$as_dir;;
12903 as_dirs="'$as_qdir' $as_dirs"
12904 as_dir=`$as_dirname -- "$as_dir" ||
12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$as_dir" : 'X\(//\)[^/]' \| \
12907 X"$as_dir" : 'X\(//\)$' \| \
12908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12909 $as_echo X"$as_dir" |
12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12914 /^X\(\/\/\)[^/].*/{
12927 test -d "$as_dir" && break
12929 test -z "$as_dirs" || eval "mkdir $as_dirs"
12930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12934 if mkdir -p . 2>/dev/null; then
12935 as_mkdir_p='mkdir -p "$as_dir"'
12937 test -d ./-p && rmdir ./-p
12942 # as_fn_executable_p FILE
12943 # -----------------------
12944 # Test if FILE is an executable regular file.
12945 as_fn_executable_p ()
12947 test -f "$1" && test -x "$1"
12948 } # as_fn_executable_p
12949 as_test_x='test -x'
12950 as_executable_p=as_fn_executable_p
12952 # Sed expression to map a string onto a valid CPP name.
12953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12955 # Sed expression to map a string onto a valid variable name.
12956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12960 ## ----------------------------------- ##
12961 ## Main body of $CONFIG_STATUS script. ##
12962 ## ----------------------------------- ##
12964 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12967 # Save the log message, to keep $0 and so on meaningful, and to
12968 # report actual input values of CONFIG_FILES etc. instead of their
12969 # values after options handling.
12971 This file was extended by freeradius $as_me $Id$, which was
12972 generated by GNU Autoconf 2.69. Invocation command line was
12974 CONFIG_FILES = $CONFIG_FILES
12975 CONFIG_HEADERS = $CONFIG_HEADERS
12976 CONFIG_LINKS = $CONFIG_LINKS
12977 CONFIG_COMMANDS = $CONFIG_COMMANDS
12980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12985 case $ac_config_files in *"
12986 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12989 case $ac_config_headers in *"
12990 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12995 # Files that config.status was made for.
12996 config_files="$ac_config_files"
12997 config_headers="$ac_config_headers"
12998 config_commands="$ac_config_commands"
13002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13004 \`$as_me' instantiates files and other configuration actions
13005 from templates according to the current configuration. Unless the files
13006 and actions are specified as TAGs, all are instantiated by default.
13008 Usage: $0 [OPTION]... [TAG]...
13010 -h, --help print this help, then exit
13011 -V, --version print version number and configuration settings, then exit
13012 --config print configuration, then exit
13013 -q, --quiet, --silent
13014 do not print progress messages
13015 -d, --debug don't remove temporary files
13016 --recheck update $as_me by reconfiguring in the same conditions
13017 --file=FILE[:TEMPLATE]
13018 instantiate the configuration file FILE
13019 --header=FILE[:TEMPLATE]
13020 instantiate the configuration header FILE
13022 Configuration files:
13025 Configuration headers:
13028 Configuration commands:
13031 Report bugs to <http://bugs.freeradius.org>.
13032 freeradius home page: <http://www.freeradius.org>."
13035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13038 freeradius config.status $Id$
13039 configured by $0, generated by GNU Autoconf 2.69,
13040 with options \\"\$ac_cs_config\\"
13042 Copyright (C) 2012 Free Software Foundation, Inc.
13043 This config.status script is free software; the Free Software Foundation
13044 gives unlimited permission to copy, distribute and modify it."
13048 test -n "\$AWK" || AWK=awk
13051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052 # The default lists apply if the user does not specify any file.
13058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13075 # Handling of the options.
13076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13079 $as_echo "$ac_cs_version"; exit ;;
13080 --config | --confi | --conf | --con | --co | --c )
13081 $as_echo "$ac_cs_config"; exit ;;
13082 --debug | --debu | --deb | --de | --d | -d )
13084 --file | --fil | --fi | --f )
13087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13088 '') as_fn_error $? "missing file argument" ;;
13090 as_fn_append CONFIG_FILES " '$ac_optarg'"
13091 ac_need_defaults=false;;
13092 --header | --heade | --head | --hea )
13095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13098 ac_need_defaults=false;;
13100 # Conflict between --help and --header
13101 as_fn_error $? "ambiguous option: \`$1'
13102 Try \`$0 --help' for more information.";;
13103 --help | --hel | -h )
13104 $as_echo "$ac_cs_usage"; exit ;;
13105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13109 # This is an error.
13110 -*) as_fn_error $? "unrecognized option: \`$1'
13111 Try \`$0 --help' for more information." ;;
13113 *) as_fn_append ac_config_targets " $1"
13114 ac_need_defaults=false ;;
13120 ac_configure_extra_args=
13122 if $ac_cs_silent; then
13124 ac_configure_extra_args="$ac_configure_extra_args --silent"
13128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13129 if \$ac_cs_recheck; then
13130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13133 CONFIG_SHELL='$SHELL'
13134 export CONFIG_SHELL
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13144 ## Running $as_me. ##
13150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155 # Handling of arguments.
13156 for ac_config_target in $ac_config_targets
13158 case $ac_config_target in
13159 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13160 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13161 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13162 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13163 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13164 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13165 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13166 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13167 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13168 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13169 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13170 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13171 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13172 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13173 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13174 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13175 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13177 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13182 # If the user did not use the arguments to specify the items to instantiate,
13183 # then the envvar interface is used. Set only those that are not.
13184 # We use the long form for the default assignment because of an extremely
13185 # bizarre bug on SunOS 4.1.3.
13186 if $ac_need_defaults; then
13187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13192 # Have a temporary directory for convenience. Make it in the build tree
13193 # simply because there is no reason against having it here, and in addition,
13194 # creating and moving files from /tmp can sometimes cause problems.
13195 # Hook for its removal unless debugging.
13196 # Note that there is a small window in which the directory will not be cleaned:
13197 # after its creation but before its name has been assigned to `$tmp'.
13201 trap 'exit_status=$?
13202 : "${ac_tmp:=$tmp}"
13203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13205 trap 'as_fn_exit 1' 1 2 13 15
13207 # Create a (secure) tmp directory for tmp files.
13210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13214 tmp=./conf$$-$RANDOM
13215 (umask 077 && mkdir "$tmp")
13216 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13219 # Set up the scripts for CONFIG_FILES section.
13220 # No need to generate them if there are no CONFIG_FILES.
13221 # This happens for instance with `./config.status config.h'.
13222 if test -n "$CONFIG_FILES"; then
13225 ac_cr=`echo X | tr X '\015'`
13226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13227 # But we know of no other shell where ac_cr would be empty at this
13228 # point, so we can use a bashism as a fallback.
13229 if test "x$ac_cr" = x; then
13230 eval ac_cr=\$\'\\r\'
13232 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13236 ac_cs_awk_cr=$ac_cr
13239 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13244 echo "cat >conf$$subs.awk <<_ACEOF" &&
13245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13247 } >conf$$subs.sh ||
13248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13251 for ac_last_try in false false false false false :; do
13252 . ./conf$$subs.sh ||
13253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13256 if test $ac_delim_n = $ac_delim_num; then
13258 elif $ac_last_try; then
13259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13264 rm -f conf$$subs.sh
13266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13271 s/^/S["/; s/!.*/"]=/
13281 s/\(.\{148\}\)..*/\1/
13283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13295 s/\(.\{148\}\)..*/\1/
13297 s/["\\]/\\&/g; s/^/"/; s/$/"/
13301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13306 ' <conf$$subs.awk | sed '
13311 ' >>$CONFIG_STATUS || ac_write_fail=1
13312 rm -f conf$$subs.awk
13313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13316 for (key in S) S_is_set[key] = 1
13322 nfields = split(line, field, "@")
13324 len = length(field[1])
13325 for (i = 2; i < nfields; i++) {
13327 keylen = length(key)
13328 if (S_is_set[key]) {
13330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13331 len += length(value) + length(field[++i])
13342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13344 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13347 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13348 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13351 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13352 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13353 # trailing colons and then remove the whole line if VPATH becomes empty
13354 # (actually we leave an empty line to preserve line numbers).
13355 if test "x$srcdir" = x.; then
13356 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 fi # test -n "$CONFIG_FILES"
13377 # Set up the scripts for CONFIG_HEADERS section.
13378 # No need to generate them if there are no CONFIG_HEADERS.
13379 # This happens for instance with `./config.status Makefile'.
13380 if test -n "$CONFIG_HEADERS"; then
13381 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13385 # Transform confdefs.h into an awk script `defines.awk', embedded as
13386 # here-document in config.status, that substitutes the proper values into
13387 # config.h.in to produce config.h.
13389 # Create a delimiter string that does not exist in confdefs.h, to ease
13390 # handling of long lines.
13392 for ac_last_try in false false :; do
13393 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13394 if test -z "$ac_tt"; then
13396 elif $ac_last_try; then
13397 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13403 # For the awk script, D is an array of macro values keyed by name,
13404 # likewise P contains macro parameters if any. Preserve backslash
13405 # newline sequences.
13407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13409 s/.\{148\}/&'"$ac_delim"'/g
13412 s/^[ ]*#[ ]*define[ ][ ]*/ /
13419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13426 D["\1"]=" \3\\\\\\n"\\/p
13428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13433 s/.\{148\}/&'"$ac_delim"'/g
13438 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13441 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13443 ' <confdefs.h | sed '
13444 s/'"$ac_delim"'/"\\\
13445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13448 for (key in D) D_is_set[key] = 1
13451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13453 split(line, arg, " ")
13454 if (arg[1] == "#") {
13458 defundef = substr(arg[1], 2)
13461 split(mac1, mac2, "(") #)
13463 prefix = substr(line, 1, index(line, defundef) - 1)
13464 if (D_is_set[macro]) {
13465 # Preserve the white space surrounding the "#".
13466 print prefix "define", macro P[macro] D[macro]
13469 # Replace #undef with comments. This is necessary, for example,
13470 # in the case of _POSIX_SOURCE, which is predefined and required
13471 # on some systems where configure will not decide to define it.
13472 if (defundef == "undef") {
13473 print "/*", prefix defundef, macro, "*/"
13481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13482 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13483 fi # test -n "$CONFIG_HEADERS"
13486 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13491 :[FHLC]) ac_mode=$ac_tag; continue;;
13493 case $ac_mode$ac_tag in
13495 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13496 :[FH]-) ac_tag=-:-;;
13497 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13514 -) ac_f="$ac_tmp/stdin";;
13515 *) # Look for the file first in the build tree, then in the source tree
13516 # (if the path is not absolute). The absolute path cannot be DOS-style,
13517 # because $ac_f cannot contain `:'.
13521 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13523 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13525 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13526 as_fn_append ac_file_inputs " '$ac_f'"
13529 # Let's still pretend it is `configure' which instantiates (i.e., don't
13530 # use $as_me), people would be surprised to read:
13531 # /* config.h. Generated by config.status. */
13532 configure_input='Generated from '`
13533 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13535 if test x"$ac_file" != x-; then
13536 configure_input="$ac_file. $configure_input"
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13538 $as_echo "$as_me: creating $ac_file" >&6;}
13540 # Neutralize special characters interpreted by sed in replacement strings.
13541 case $configure_input in #(
13542 *\&* | *\|* | *\\* )
13543 ac_sed_conf_input=`$as_echo "$configure_input" |
13544 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13545 *) ac_sed_conf_input=$configure_input;;
13549 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13555 ac_dir=`$as_dirname -- "$ac_file" ||
13556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13557 X"$ac_file" : 'X\(//\)[^/]' \| \
13558 X"$ac_file" : 'X\(//\)$' \| \
13559 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13560 $as_echo X"$ac_file" |
13561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13565 /^X\(\/\/\)[^/].*/{
13578 as_dir="$ac_dir"; as_fn_mkdir_p
13582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13585 # A ".." for each directory in $ac_dir_suffix.
13586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13587 case $ac_top_builddir_sub in
13588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13592 ac_abs_top_builddir=$ac_pwd
13593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13594 # for backward compatibility:
13595 ac_top_builddir=$ac_top_build_prefix
13598 .) # We are building in place.
13600 ac_top_srcdir=$ac_top_builddir_sub
13601 ac_abs_top_srcdir=$ac_pwd ;;
13602 [\\/]* | ?:[\\/]* ) # Absolute name.
13603 ac_srcdir=$srcdir$ac_dir_suffix;
13604 ac_top_srcdir=$srcdir
13605 ac_abs_top_srcdir=$srcdir ;;
13606 *) # Relative name.
13607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13608 ac_top_srcdir=$ac_top_build_prefix$srcdir
13609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623 # If the template does not know about datarootdir, expand it.
13624 # FIXME: This hack should be removed a few years after 2.60.
13625 ac_datarootdir_hack=; ac_datarootdir_seen=
13636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13637 *datarootdir*) ac_datarootdir_seen=yes;;
13638 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13643 ac_datarootdir_hack='
13644 s&@datadir@&$datadir&g
13645 s&@docdir@&$docdir&g
13646 s&@infodir@&$infodir&g
13647 s&@localedir@&$localedir&g
13648 s&@mandir@&$mandir&g
13649 s&\\\${datarootdir}&$datarootdir&g' ;;
13653 # Neutralize VPATH when `$srcdir' = `.'.
13654 # Shell code in configure.ac might set extrasub.
13655 # FIXME: do we really want to maintain this feature?
13656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13657 ac_sed_extra="$ac_vpsub
13660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13663 s|@configure_input@|$ac_sed_conf_input|;t t
13664 s&@top_builddir@&$ac_top_builddir_sub&;t t
13665 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13666 s&@srcdir@&$ac_srcdir&;t t
13667 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13668 s&@top_srcdir@&$ac_top_srcdir&;t t
13669 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13670 s&@builddir@&$ac_builddir&;t t
13671 s&@abs_builddir@&$ac_abs_builddir&;t t
13672 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13673 $ac_datarootdir_hack
13675 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13676 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13678 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13679 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13681 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13683 which seems to be undefined. Please make sure it is defined" >&5
13684 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13685 which seems to be undefined. Please make sure it is defined" >&2;}
13687 rm -f "$ac_tmp/stdin"
13689 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13690 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13698 if test x"$ac_file" != x-; then
13700 $as_echo "/* $configure_input */" \
13701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13702 } >"$ac_tmp/config.h" \
13703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13704 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13706 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13709 mv "$ac_tmp/config.h" "$ac_file" \
13710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13713 $as_echo "/* $configure_input */" \
13714 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13715 || as_fn_error $? "could not create -" "$LINENO" 5
13719 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13720 $as_echo "$as_me: executing $ac_file commands" >&6;}
13725 case $ac_file$ac_mode in
13726 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13727 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13728 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13729 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13737 ac_clean_files=$ac_clean_files_save
13739 test $ac_write_fail = 0 ||
13740 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13743 # configure is writing to config.log, and then calls config.status.
13744 # config.status does its own redirection, appending to config.log.
13745 # Unfortunately, on DOS this fails, as config.log is still kept open
13746 # by configure, so config.status won't be able to write to it; its
13747 # output is simply discarded. So we exec the FD to /dev/null,
13748 # effectively closing config.log, so it can be properly (re)opened and
13749 # appended to by config.status. When coming back to configure, we
13750 # need to make the FD available again.
13751 if test "$no_create" != yes; then
13753 ac_config_status_args=
13754 test "$silent" = yes &&
13755 ac_config_status_args="$ac_config_status_args --quiet"
13757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13760 # would make configure fail if this is the last instruction.
13761 $ac_cs_success || as_fn_exit 1
13765 # CONFIG_SUBDIRS section.
13767 if test "$no_recursion" != yes; then
13769 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13770 # so they do not pile up.
13771 ac_sub_configure_args=
13773 eval "set x $ac_configure_args"
13777 if test -n "$ac_prev"; then
13782 -cache-file | --cache-file | --cache-fil | --cache-fi \
13783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13784 ac_prev=cache_file ;;
13785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13789 --config-cache | -C)
13791 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13793 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13795 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13797 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13799 --disable-option-checking)
13803 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13805 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13809 # Always prepend --prefix to ensure using the same prefix
13810 # in subdir configurations.
13811 ac_arg="--prefix=$prefix"
13813 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13815 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13818 if test "$silent" = yes; then
13819 ac_sub_configure_args="--silent $ac_sub_configure_args"
13822 # Always prepend --disable-option-checking to silence warnings, since
13823 # different subdirs can have different --enable and --with options.
13824 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13827 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13829 # Do not complain, so a configure script can configure whichever
13830 # parts of a large source tree are present.
13831 test -d "$srcdir/$ac_dir" || continue
13833 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13834 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13835 $as_echo "$ac_msg" >&6
13836 as_dir="$ac_dir"; as_fn_mkdir_p
13840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13843 # A ".." for each directory in $ac_dir_suffix.
13844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13845 case $ac_top_builddir_sub in
13846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13850 ac_abs_top_builddir=$ac_pwd
13851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13852 # for backward compatibility:
13853 ac_top_builddir=$ac_top_build_prefix
13856 .) # We are building in place.
13858 ac_top_srcdir=$ac_top_builddir_sub
13859 ac_abs_top_srcdir=$ac_pwd ;;
13860 [\\/]* | ?:[\\/]* ) # Absolute name.
13861 ac_srcdir=$srcdir$ac_dir_suffix;
13862 ac_top_srcdir=$srcdir
13863 ac_abs_top_srcdir=$srcdir ;;
13864 *) # Relative name.
13865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13866 ac_top_srcdir=$ac_top_build_prefix$srcdir
13867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13874 # Check for guested configure; otherwise get Cygnus style configure.
13875 if test -f "$ac_srcdir/configure.gnu"; then
13876 ac_sub_configure=$ac_srcdir/configure.gnu
13877 elif test -f "$ac_srcdir/configure"; then
13878 ac_sub_configure=$ac_srcdir/configure
13879 elif test -f "$ac_srcdir/configure.in"; then
13880 # This should be Cygnus configure.
13881 ac_sub_configure=$ac_aux_dir/configure
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13884 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13888 # The recursion is here.
13889 if test -n "$ac_sub_configure"; then
13890 # Make the cache file name correct relative to the subdirectory.
13891 case $cache_file in
13892 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13893 *) # Relative name.
13894 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13897 { $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
13898 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13899 # The eval makes quoting arguments work.
13900 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13901 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13902 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}