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"
2421 RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.`
2422 RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.`
2423 RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[\.-].*$//'`
2425 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2426 -v minor="$RADIUSD_MINOR_VERSION" \
2427 -v incrm="$RADIUSD_INCRM_VERSION" \
2428 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2430 RADIUSD_VERSION_STRING=`cat VERSION`
2435 cat >>confdefs.h <<_ACEOF
2436 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2440 cat >>confdefs.h <<_ACEOF
2441 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2446 # Check whether --enable-developer was given.
2447 if test "${enable_developer+set}" = set; then :
2448 enableval=$enable_developer; case "$enableval" in
2459 if test -d $srcdir/.git; then
2460 if test "x$developer" != "xno"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2462 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2467 if test "x$developer" = "xyes"; then
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2478 elif test -f "$ac_dir/install.sh"; then
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2482 elif test -f "$ac_dir/shtool"; then
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2506 $as_echo_n "checking build system type... " >&6; }
2507 if ${ac_cv_build+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2520 $as_echo "$ac_cv_build" >&6; }
2521 case $ac_cv_build in
2523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2526 ac_save_IFS=$IFS; IFS='-'
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2540 $as_echo_n "checking host system type... " >&6; }
2541 if ${ac_cv_host+:} false; then :
2542 $as_echo_n "(cached) " >&6
2544 if test "x$host_alias" = x; then
2545 ac_cv_host=$ac_cv_build
2547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2553 $as_echo "$ac_cv_host" >&6; }
2556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2559 ac_save_IFS=$IFS; IFS='-'
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2573 $as_echo_n "checking target system type... " >&6; }
2574 if ${ac_cv_target+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 if test "x$target_alias" = x; then
2578 ac_cv_target=$ac_cv_host
2580 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2581 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2586 $as_echo "$ac_cv_target" >&6; }
2587 case $ac_cv_target in
2589 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2591 target=$ac_cv_target
2592 ac_save_IFS=$IFS; IFS='-'
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2602 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2605 # The aliases save the names the user supplied, while $host etc.
2606 # will get canonicalized.
2607 test -n "$target_alias" &&
2608 test "$program_prefix$program_suffix$program_transform_name" = \
2610 program_prefix=${target_alias}-
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2657 if test -z "$ac_cv_prog_CC"; then
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2695 if test "x$ac_ct_CC" = x; then
2698 case $cross_compiling:$ac_tool_warned in
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2751 if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$CC" && break
2851 if test -z "$CC"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$ac_ct_CC" && break
2895 if test "x$ac_ct_CC" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2920 for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930 if test -s conftest.err; then
2932 ... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
2936 rm -f conftest.er1 conftest.err
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2965 for ac_file in $ac_files
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 if { { ac_try="$ac_link_default"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2990 for ac_file in $ac_files ''
2992 test -f "$ac_file" || continue
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2997 # We found the default executable, but exeext='' is most
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020 if test -z "$ac_file"; then :
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3087 FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3124 if test "$cross_compiling" = maybe; then
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3210 if ac_fn_c_try_compile "$LINENO"; then :
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3300 if test "$GCC" = yes; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 ac_cv_prog_cc_c89=no
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3332 s = g (p, va_arg (v,int));
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 rm -f conftest.$ac_ext
3380 case "x$ac_cv_prog_cc_c89" in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 ac_cpp='$CXXCPP $CPPFLAGS'
3404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3407 if test -z "$CXX"; then
3408 if test -n "$CCC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_CXX+:} false; then :
3419 $as_echo_n "(cached) " >&6
3421 if test -n "$CXX"; then
3422 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 if test -n "$CXX"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3444 $as_echo "$CXX" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3451 test -n "$CXX" && break
3454 if test -z "$CXX"; then
3456 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3458 # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$ac_ct_CXX"; then
3466 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_ac_ct_CXX="$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3486 if test -n "$ac_ct_CXX"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3488 $as_echo "$ac_ct_CXX" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3495 test -n "$ac_ct_CXX" && break
3498 if test "x$ac_ct_CXX" = x; then
3501 case $cross_compiling:$ac_tool_warned in
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3517 for ac_option in --version -v -V -qversion; do
3518 { { ac_try="$ac_compiler $ac_option >&5"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3527 if test -s conftest.err; then
3529 ... rest of stderr output deleted ...
3530 10q' conftest.err >conftest.er1
3531 cat conftest.er1 >&5
3533 rm -f conftest.er1 conftest.err
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3540 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3557 if ac_fn_cxx_try_compile "$LINENO"; then :
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3573 ac_test_CXXFLAGS=${CXXFLAGS+set}
3574 ac_save_CXXFLAGS=$CXXFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3577 if ${ac_cv_prog_cxx_g+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3581 ac_cxx_werror_flag=yes
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 if ac_fn_cxx_try_compile "$LINENO"; then :
3596 ac_cv_prog_cxx_g=yes
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 if ac_fn_cxx_try_compile "$LINENO"; then :
3613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_cxx_try_compile "$LINENO"; then :
3627 ac_cv_prog_cxx_g=yes
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3638 if test "$ac_test_CXXFLAGS" = set; then
3639 CXXFLAGS=$ac_save_CXXFLAGS
3640 elif test $ac_cv_prog_cxx_g = yes; then
3641 if test "$GXX" = yes; then
3647 if test "$GXX" = yes; then
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3667 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3672 if test -z "$CPP"; then
3673 if ${ac_cv_prog_CPP+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 for ac_c_preproc_warn_flag in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3691 # include <limits.h>
3693 # include <assert.h>
3697 if ac_fn_c_try_cpp "$LINENO"; then :
3700 # Broken: fails on valid input.
3703 rm -f conftest.err conftest.i conftest.$ac_ext
3705 # OK, works on sane cases. Now check whether nonexistent headers
3706 # can be detected and how.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <ac_nonexistent.h>
3711 if ac_fn_c_try_cpp "$LINENO"; then :
3712 # Broken: success on invalid input.
3715 # Passes both tests.
3719 rm -f conftest.err conftest.i conftest.$ac_ext
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.i conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then :
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3737 $as_echo "$CPP" >&6; }
3739 for ac_c_preproc_warn_flag in '' yes
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: fails on valid input.
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3774 # Passes both tests.
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details" "$LINENO" 5; }
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3801 if ${ac_cv_path_GREP+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -z "$GREP"; then
3805 ac_path_GREP_found=false
3806 # Loop through the user's path and test for each of PROGNAME-LIST
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811 test -z "$as_dir" && as_dir=.
3812 for ac_prog in grep ggrep; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3815 as_fn_executable_p "$ac_path_GREP" || continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817 # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3823 $as_echo_n 0123456789 >"conftest.in"
3826 cat "conftest.in" "conftest.in" >"conftest.tmp"
3827 mv "conftest.tmp" "conftest.in"
3828 cp "conftest.in" "conftest.nl"
3829 $as_echo 'GREP' >> "conftest.nl"
3830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832 as_fn_arith $ac_count + 1 && ac_count=$as_val
3833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834 # Best one so far, save it but keep looking for a better one
3835 ac_cv_path_GREP="$ac_path_GREP"
3836 ac_path_GREP_max=$ac_count
3838 # 10*(2^10) chars as input seems more than enough
3839 test $ac_count -gt 10 && break
3841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844 $ac_path_GREP_found && break 3
3849 if test -z "$ac_cv_path_GREP"; then
3850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3853 ac_cv_path_GREP=$GREP
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3858 $as_echo "$ac_cv_path_GREP" >&6; }
3859 GREP="$ac_cv_path_GREP"
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3863 $as_echo_n "checking for egrep... " >&6; }
3864 if ${ac_cv_path_EGREP+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868 then ac_cv_path_EGREP="$GREP -E"
3870 if test -z "$EGREP"; then
3871 ac_path_EGREP_found=false
3872 # Loop through the user's path and test for each of PROGNAME-LIST
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3877 test -z "$as_dir" && as_dir=.
3878 for ac_prog in egrep; do
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3881 as_fn_executable_p "$ac_path_EGREP" || continue
3882 # Check for GNU ac_path_EGREP and select it if it is found.
3883 # Check for GNU $ac_path_EGREP
3884 case `"$ac_path_EGREP" --version 2>&1` in
3886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3889 $as_echo_n 0123456789 >"conftest.in"
3892 cat "conftest.in" "conftest.in" >"conftest.tmp"
3893 mv "conftest.tmp" "conftest.in"
3894 cp "conftest.in" "conftest.nl"
3895 $as_echo 'EGREP' >> "conftest.nl"
3896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3898 as_fn_arith $ac_count + 1 && ac_count=$as_val
3899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3900 # Best one so far, save it but keep looking for a better one
3901 ac_cv_path_EGREP="$ac_path_EGREP"
3902 ac_path_EGREP_max=$ac_count
3904 # 10*(2^10) chars as input seems more than enough
3905 test $ac_count -gt 10 && break
3907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3910 $ac_path_EGREP_found && break 3
3915 if test -z "$ac_cv_path_EGREP"; then
3916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3919 ac_cv_path_EGREP=$EGREP
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3925 $as_echo "$ac_cv_path_EGREP" >&6; }
3926 EGREP="$ac_cv_path_EGREP"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3930 $as_echo_n "checking for ANSI C header files... " >&6; }
3931 if ${ac_cv_header_stdc+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_cv_header_stdc=yes
3952 ac_cv_header_stdc=no
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 if test $ac_cv_header_stdc = yes; then
3957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "memchr" >/dev/null 2>&1; then :
3967 ac_cv_header_stdc=no
3973 if test $ac_cv_header_stdc = yes; then
3974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3981 $EGREP "free" >/dev/null 2>&1; then :
3984 ac_cv_header_stdc=no
3990 if test $ac_cv_header_stdc = yes; then
3991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3992 if test "$cross_compiling" = yes; then :
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 #if ((' ' & 0x0FF) == 0x020)
4000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4003 # define ISLOWER(c) \
4004 (('a' <= (c) && (c) <= 'i') \
4005 || ('j' <= (c) && (c) <= 'r') \
4006 || ('s' <= (c) && (c) <= 'z'))
4007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4015 for (i = 0; i < 256; i++)
4016 if (XOR (islower (i), ISLOWER (i))
4017 || toupper (i) != TOUPPER (i))
4022 if ac_fn_c_try_run "$LINENO"; then :
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4028 conftest.$ac_objext conftest.beam conftest.$ac_ext
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4034 $as_echo "$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4043 inttypes.h stdint.h unistd.h
4045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4049 cat >>confdefs.h <<_ACEOF
4050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4060 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4067 if test "$MINIX" = yes; then
4069 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4072 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4075 $as_echo "#define _MINIX 1" >>confdefs.h
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4081 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4082 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4088 # define __EXTENSIONS__ 1
4089 $ac_includes_default
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_safe_to_define___extensions__=yes
4101 ac_cv_safe_to_define___extensions__=no
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4106 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4107 test $ac_cv_safe_to_define___extensions__ = yes &&
4108 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4110 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4112 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4114 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4116 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4121 if test $ac_cv_c_compiler_gnu = yes; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4123 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4124 if ${ac_cv_prog_gcc_traditional+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 ac_pattern="Autoconf.*'x'"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4135 ac_cv_prog_gcc_traditional=yes
4137 ac_cv_prog_gcc_traditional=no
4142 if test $ac_cv_prog_gcc_traditional = no; then
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4150 ac_cv_prog_gcc_traditional=yes
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4157 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4158 if test $ac_cv_prog_gcc_traditional = yes; then
4159 CC="$CC -traditional"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4164 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4165 if ${ac_cv_prog_suncc+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 cat > conftest.c <<EOF
4173 if { ac_try='${CC-cc} -E conftest.c'
4174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4179 ac_cv_prog_suncc=yes
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4185 $as_echo "$ac_cv_prog_suncc" >&6; }
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_RANLIB+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$RANLIB"; then
4195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 RANLIB=$ac_cv_prog_RANLIB
4215 if test -n "$RANLIB"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4217 $as_echo "$RANLIB" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4225 if test -z "$ac_cv_prog_RANLIB"; then
4226 ac_ct_RANLIB=$RANLIB
4227 # Extract the first word of "ranlib", so it can be a program name with args.
4228 set dummy ranlib; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$ac_ct_RANLIB"; then
4235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_ac_ct_RANLIB="ranlib"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4255 if test -n "$ac_ct_RANLIB"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4257 $as_echo "$ac_ct_RANLIB" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4263 if test "x$ac_ct_RANLIB" = x; then
4266 case $cross_compiling:$ac_tool_warned in
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4272 RANLIB=$ac_ct_RANLIB
4275 RANLIB="$ac_cv_prog_RANLIB"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4281 $as_echo_n "checking if compiler is clang... " >&6; }
4282 if ${ax_cv_cc_clang+:} false; then :
4283 $as_echo_n "(cached) " >&6
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4302 if ac_fn_c_try_compile "$LINENO"; then :
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4311 $as_echo "$ax_cv_cc_clang" >&6; }
4313 if test "x$ax_cv_cc_clang" = "xyes"; then
4322 if test "x$GCC" = "xyes"; then
4323 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4328 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4329 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4330 $as_echo_n "(cached) " >&6
4334 CFLAGS_SAVED=$CFLAGS
4335 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ax_cv_cc_qunused_arguments_flag="yes"
4357 ax_cv_cc_qunused_arguments_flag="no"
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367 CFLAGS="$CFLAGS_SAVED"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4371 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4373 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4374 CFLAGS="$CFLAGS -Qunused-arguments"
4375 LDFLAGS="$LDFLAGS -Qunused-arguments"
4378 # Check whether --enable-largefile was given.
4379 if test "${enable_largefile+set}" = set; then :
4380 enableval=$enable_largefile;
4383 if test "$enable_largefile" != no; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4386 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4387 if ${ac_cv_sys_largefile_CC+:} false; then :
4388 $as_echo_n "(cached) " >&6
4390 ac_cv_sys_largefile_CC=no
4391 if test "$GCC" != yes; then
4394 # IRIX 6.2 and later do not support large files by default,
4395 # so use the C compiler's -n32 option if that helps.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <sys/types.h>
4399 /* Check that off_t can represent 2**63 - 1 correctly.
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401 since some C++ compilers masquerading as C compilers
4402 incorrectly reject 9223372036854775807. */
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405 && LARGE_OFF_T % 2147483647 == 1)
4415 if ac_fn_c_try_compile "$LINENO"; then :
4418 rm -f core conftest.err conftest.$ac_objext
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421 ac_cv_sys_largefile_CC=' -n32'; break
4423 rm -f core conftest.err conftest.$ac_objext
4427 rm -f conftest.$ac_ext
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4431 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4432 if test "$ac_cv_sys_largefile_CC" != no; then
4433 CC=$CC$ac_cv_sys_largefile_CC
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4437 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4438 if ${ac_cv_sys_file_offset_bits+:} false; then :
4439 $as_echo_n "(cached) " >&6
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_cv_sys_file_offset_bits=no; break
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #define _FILE_OFFSET_BITS 64
4468 #include <sys/types.h>
4469 /* Check that off_t can represent 2**63 - 1 correctly.
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471 since some C++ compilers masquerading as C compilers
4472 incorrectly reject 9223372036854775807. */
4473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475 && LARGE_OFF_T % 2147483647 == 1)
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 ac_cv_sys_file_offset_bits=64; break
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_sys_file_offset_bits=unknown
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4494 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4495 case $ac_cv_sys_file_offset_bits in #(
4498 cat >>confdefs.h <<_ACEOF
4499 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4504 if test $ac_cv_sys_file_offset_bits = unknown; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4506 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4507 if ${ac_cv_sys_large_files+:} false; then :
4508 $as_echo_n "(cached) " >&6
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513 #include <sys/types.h>
4514 /* Check that off_t can represent 2**63 - 1 correctly.
4515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4516 since some C++ compilers masquerading as C compilers
4517 incorrectly reject 9223372036854775807. */
4518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4520 && LARGE_OFF_T % 2147483647 == 1)
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_sys_large_files=no; break
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536 #define _LARGE_FILES 1
4537 #include <sys/types.h>
4538 /* Check that off_t can represent 2**63 - 1 correctly.
4539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540 since some C++ compilers masquerading as C compilers
4541 incorrectly reject 9223372036854775807. */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544 && LARGE_OFF_T % 2147483647 == 1)
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_cv_sys_large_files=1; break
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 ac_cv_sys_large_files=unknown
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4563 $as_echo "$ac_cv_sys_large_files" >&6; }
4564 case $ac_cv_sys_large_files in #(
4567 cat >>confdefs.h <<_ACEOF
4568 #define _LARGE_FILES $ac_cv_sys_large_files
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4580 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4581 if ${ac_cv_c_bigendian+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 ac_cv_c_bigendian=unknown
4585 # See if we're dealing with a universal compiler.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #ifndef __APPLE_CC__
4589 not a universal capable compiler
4594 if ac_fn_c_try_compile "$LINENO"; then :
4596 # Check for potential -arch flags. It is not universal unless
4597 # there are at least two -arch flags with different values.
4600 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4601 if test -n "$ac_prev"; then
4603 i?86 | x86_64 | ppc | ppc64)
4604 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4607 ac_cv_c_bigendian=universal
4613 elif test "x$ac_word" = "x-arch"; then
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 if test $ac_cv_c_bigendian = unknown; then
4620 # See if sys/param.h defines the BYTE_ORDER macro.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <sys/types.h>
4624 #include <sys/param.h>
4629 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4630 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 # It does; now see whether it defined to BIG_ENDIAN or not.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 #include <sys/param.h>
4649 #if BYTE_ORDER != BIG_ENDIAN
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_c_bigendian=yes
4660 ac_cv_c_bigendian=no
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $ac_cv_c_bigendian = unknown; then
4667 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4675 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 # It does; now see whether it defined to _BIG_ENDIAN or not.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 ac_cv_c_bigendian=yes
4703 ac_cv_c_bigendian=no
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 if test $ac_cv_c_bigendian = unknown; then
4710 # Compile a test program.
4711 if test "$cross_compiling" = yes; then :
4712 # Try to guess by grepping values from an object file.
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 short int ascii_mm[] =
4716 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4717 short int ascii_ii[] =
4718 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4719 int use_ascii (int i) {
4720 return ascii_mm[i] + ascii_ii[i];
4722 short int ebcdic_ii[] =
4723 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4724 short int ebcdic_mm[] =
4725 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4726 int use_ebcdic (int i) {
4727 return ebcdic_mm[i] + ebcdic_ii[i];
4734 return use_ascii (foo) == use_ebcdic (foo);
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4741 ac_cv_c_bigendian=yes
4743 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4744 if test "$ac_cv_c_bigendian" = unknown; then
4745 ac_cv_c_bigendian=no
4747 # finding both strings is unlikely to happen, but who knows?
4748 ac_cv_c_bigendian=unknown
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 $ac_includes_default
4761 /* Are we little or big endian? From Harbison&Steele. */
4765 char c[sizeof (long int)];
4768 return u.c[sizeof (long int) - 1] == 1;
4774 if ac_fn_c_try_run "$LINENO"; then :
4775 ac_cv_c_bigendian=no
4777 ac_cv_c_bigendian=yes
4779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4780 conftest.$ac_objext conftest.beam conftest.$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4786 $as_echo "$ac_cv_c_bigendian" >&6; }
4787 case $ac_cv_c_bigendian in #(
4790 $as_echo "#define FR_BIG_ENDIAN 1" >>confdefs.h
4794 $as_echo "#define FR_LITTLE_ENDIAN 1" >>confdefs.h
4799 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4803 as_fn_error $? "unknown endianness
4804 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4808 # Extract the first word of "gmake", so it can be a program name with args.
4809 set dummy gmake; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_GMAKE+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -n "$GMAKE"; then
4816 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_GMAKE="yes"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4836 GMAKE=$ac_cv_prog_GMAKE
4837 if test -n "$GMAKE"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4839 $as_echo "$GMAKE" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 if test $GMAKE = no; then
4847 # Extract the first word of "make", so it can be a program name with args.
4848 set dummy make; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_path_MAKE+:} false; then :
4852 $as_echo_n "(cached) " >&6
4856 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4878 MAKE=$ac_cv_path_MAKE
4879 if test -n "$MAKE"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4881 $as_echo "$MAKE" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4889 # Extract the first word of "gmake", so it can be a program name with args.
4890 set dummy gmake; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_path_MAKE+:} false; then :
4894 $as_echo_n "(cached) " >&6
4898 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4920 MAKE=$ac_cv_path_MAKE
4921 if test -n "$MAKE"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4923 $as_echo "$MAKE" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4931 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4932 if test -z "$makever"; then
4933 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
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4938 $as_echo_n "checking number of system cores... " >&6; }
4939 if ${ax_cv_system_cores+:} false; then :
4940 $as_echo_n "(cached) " >&6
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949 if test "$cross_compiling" = yes; then :
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4959 # include <windows.h>
4961 # include <sys/param.h>
4962 # include <sys/sysctl.h>
4964 # include <unistd.h>
4967 int main (int argc, char *argv[])
4972 SYSTEM_INFO sysinfo;
4973 GetSystemInfo(&sysinfo);
4975 count = sysinfo.dwNumberOfProcessors;
4982 nm[1] = HW_AVAILCPU;
4983 sysctl(nm, 2, &count, &len, NULL, 0);
4987 sysctl(nm, 2, &count, &len, NULL, 0);
4994 count = sysconf(_SC_NPROCESSORS_ONLN);
5001 if ac_fn_c_try_run "$LINENO"; then :
5002 ax_cv_system_cores=$?
5004 ax_cv_system_cores=$?
5006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5007 conftest.$ac_objext conftest.beam conftest.$ac_ext
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5019 $as_echo "$ax_cv_system_cores" >&6; }
5024 # Extract the first word of "git", so it can be a program name with args.
5025 set dummy git; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_GIT+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 if test -n "$GIT"; then
5032 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_GIT="yes"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5053 if test -n "$GIT"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5055 $as_echo "$GIT" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5064 # Check whether --enable-strict-dependencies was given.
5065 if test "${enable_strict_dependencies+set}" = set; then :
5066 enableval=$enable_strict_dependencies;
5070 # Check whether --enable-werror was given.
5071 if test "${enable_werror+set}" = set; then :
5072 enableval=$enable_werror; case "$enableval" in
5083 docdir='${datadir}/doc/freeradius'
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5085 $as_echo_n "checking docdir... " >&6; }
5087 # Check whether --with-docdir was given.
5088 if test "${with_docdir+set}" = set; then :
5089 withval=$with_docdir; case "$withval" in
5095 [\\/$]* | ?:[\\/]* )
5099 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5107 $as_echo "$docdir" >&6; }
5108 if test "x$docdir" = xno; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5110 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5113 logdir='${localstatedir}/log/radius'
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5115 $as_echo_n "checking logdir... " >&6; }
5117 # Check whether --with-logdir was given.
5118 if test "${with_logdir+set}" = set; then :
5119 withval=$with_logdir; case "$withval" in
5121 as_fn_error $? "Need logdir" "$LINENO" 5
5125 [\\/$]* | ?:[\\/]* )
5129 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5137 $as_echo "$logdir" >&6; }
5139 radacctdir='${logdir}/radacct'
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5141 $as_echo_n "checking radacctdir... " >&6; }
5143 # Check whether --with-radacctdir was given.
5144 if test "${with_radacctdir+set}" = set; then :
5145 withval=$with_radacctdir; case "$withval" in
5147 as_fn_error $? "Need radacctdir" "$LINENO" 5
5151 [\\/$]* | ?:[\\/]* )
5152 radacctdir="$withval"
5155 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5163 $as_echo "$radacctdir" >&6; }
5165 raddbdir='${sysconfdir}/raddb'
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5167 $as_echo_n "checking raddbdir... " >&6; }
5169 # Check whether --with-raddbdir was given.
5170 if test "${with_raddbdir+set}" = set; then :
5171 withval=$with_raddbdir; case "$withval" in
5173 as_fn_error $? "Need raddbdir" "$LINENO" 5
5177 [\\/$]* | ?:[\\/]* )
5181 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5189 $as_echo "$raddbdir" >&6; }
5191 dictdir='${datarootdir}/freeradius'
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5193 $as_echo_n "checking dictdir... " >&6; }
5195 # Check whether --with-dictdir was given.
5196 if test "${with_dictdir+set}" = set; then :
5197 withval=$with_dictdir; case "$withval" in
5199 as_fn_error $? "Need dictdir" "$LINENO" 5
5203 [\\/$]* | ?:[\\/]* )
5207 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5215 $as_echo "$dictdir" >&6; }
5217 modconfdir='${raddbdir}/mods-config'
5220 WITH_ASCEND_BINARY=yes
5222 # Check whether --with-ascend-binary was given.
5223 if test "${with_ascend_binary+set}" = set; then :
5224 withval=$with_ascend_binary; case "$withval" in
5228 WITH_ASCEND_BINARY=no
5233 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5235 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5241 # Check whether --with-threads was given.
5242 if test "${with_threads+set}" = set; then :
5243 withval=$with_threads; case "$withval" in
5255 # Check whether --with-tcp was given.
5256 if test "${with_tcp+set}" = set; then :
5257 withval=$with_tcp; case "$withval" in
5266 if test "x$WITH_TCP" = "xyes"; then
5268 $as_echo "#define WITH_TCP 1" >>confdefs.h
5274 # Check whether --with-vmps was given.
5275 if test "${with_vmps+set}" = set; then :
5276 withval=$with_vmps; case "$withval" in
5285 if test "x$WITH_VMPS" = "xyes"; then
5287 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5293 # Check whether --with-dhcp was given.
5294 if test "${with_dhcp+set}" = set; then :
5295 withval=$with_dhcp; case "$withval" in
5304 if test "x$WITH_DHCP" = "xyes"; then
5306 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5312 # Check whether --with-static_modules was given.
5313 if test "${with_static_modules+set}" = set; then :
5314 withval=$with_static_modules;
5315 for i in $withval; do
5316 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5324 # Check whether --with-shared-libs was given.
5325 if test "${with_shared_libs+set}" = set; then :
5326 withval=$with_shared_libs; case "$withval" in
5338 # Check whether --with-modules was given.
5339 if test "${with_modules+set}" = set; then :
5340 withval=$with_modules;
5341 for i in $withval; do
5342 MODULES="$MODULES $i"
5350 # Check whether --with-experimental-modules was given.
5351 if test "${with_experimental_modules+set}" = set; then :
5352 withval=$with_experimental_modules; case "$withval" in
5367 # Check whether --with-udpfromto was given.
5368 if test "${with_udpfromto+set}" = set; then :
5369 withval=$with_udpfromto; case "$withval" in
5380 if test "x$WITH_UDPFROMTO" = "xyes"; then
5382 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5388 # Check whether --with-rlm-FOO-lib-dir was given.
5389 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5390 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5399 # Check whether --with-rlm-FOO-include-dir was given.
5400 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5401 withval=$with_rlm_FOO_include_dir; case "$withval" in
5411 # Check whether --with-openssl was given.
5412 if test "${with_openssl+set}" = set; then :
5413 withval=$with_openssl; case "$withval" in
5427 # Check whether --with-openssl-lib-dir was given.
5428 if test "${with_openssl_lib_dir+set}" = set; then :
5429 withval=$with_openssl_lib_dir; case "$withval" in
5430 *) openssl_lib_dir="$withval"
5437 openssl_include_dir=
5439 # Check whether --with-openssl-include-dir was given.
5440 if test "${with_openssl_include_dir+set}" = set; then :
5441 withval=$with_openssl_include_dir; case "$withval" in
5442 *) openssl_include_dir="$withval"
5449 # Check whether --enable-openssl-version-check was given.
5450 if test "${enable_openssl_version_check+set}" = set; then :
5451 enableval=$enable_openssl_version_check;
5454 if test "x$enable_openssl_version_check" != "xno"; then
5456 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5458 openssl_version_check_config="\
5460 # allow_vulnerable_openssl: Allow the server to start with
5461 # versions of OpenSSL known to have critical vulnerabilities.
5463 # This check is based on the version number reported by libssl
5464 # and may not reflect patches applied to libssl by
5465 # distribution maintainers.
5467 allow_vulnerable_openssl = no"
5469 openssl_version_check_config=
5476 # Extract the first word of "perl", so it can be a program name with args.
5477 set dummy perl; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_PERL+:} false; then :
5481 $as_echo_n "(cached) " >&6
5485 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5507 PERL=$ac_cv_path_PERL
5508 if test -n "$PERL"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5510 $as_echo "$PERL" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 if test "x$ac_cv_path_PERL" = "x"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5519 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5521 # Extract the first word of "snmpget", so it can be a program name with args.
5522 set dummy snmpget; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_SNMPGET+:} false; then :
5526 $as_echo_n "(cached) " >&6
5530 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 SNMPGET=$ac_cv_path_SNMPGET
5552 if test -n "$SNMPGET"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5554 $as_echo "$SNMPGET" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 if test "x$ac_cv_path_SNMPGET" = "x"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5563 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5566 # Extract the first word of "snmpwalk", so it can be a program name with args.
5567 set dummy snmpwalk; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_path_SNMPWALK+:} false; then :
5571 $as_echo_n "(cached) " >&6
5575 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 SNMPWALK=$ac_cv_path_SNMPWALK
5597 if test -n "$SNMPWALK"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5599 $as_echo "$SNMPWALK" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5608 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5611 # Extract the first word of "rusers", so it can be a program name with args.
5612 set dummy rusers; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_path_RUSERS+:} false; then :
5616 $as_echo_n "(cached) " >&6
5620 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5642 RUSERS=$ac_cv_path_RUSERS
5643 if test -n "$RUSERS"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5645 $as_echo "$RUSERS" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5653 missing_dir=`cd $ac_aux_dir && pwd`
5654 # expand $ac_aux_dir to an absolute path
5655 am_aux_dir=`cd $ac_aux_dir && pwd`
5657 if test x"${MISSING+set}" != xset; then
5660 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5662 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5665 # Use eval to expand $SHELL
5666 if eval "$MISSING --run true"; then
5667 am_missing_run="$MISSING --run "
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5671 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5675 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5678 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5684 # Extract the first word of "locate", so it can be a program name with args.
5685 set dummy locate; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_LOCATE+:} false; then :
5689 $as_echo_n "(cached) " >&6
5693 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 LOCATE=$ac_cv_path_LOCATE
5715 if test -n "$LOCATE"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5717 $as_echo "$LOCATE" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5724 # Extract the first word of "dirname", so it can be a program name with args.
5725 set dummy dirname; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_path_DIRNAME+:} false; then :
5729 $as_echo_n "(cached) " >&6
5733 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 DIRNAME=$ac_cv_path_DIRNAME
5755 if test -n "$DIRNAME"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5757 $as_echo "$DIRNAME" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5764 # Extract the first word of "grep", so it can be a program name with args.
5765 set dummy grep; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_path_GREP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 GREP=$ac_cv_path_GREP
5795 if test -n "$GREP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5797 $as_echo "$GREP" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5808 # Check whether --with-talloc-lib-dir was given.
5809 if test "${with_talloc_lib_dir+set}" = set; then :
5810 withval=$with_talloc_lib_dir; case "$withval" in
5812 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5817 talloc_lib_dir="$withval"
5825 # Check whether --with-talloc-include-dir was given.
5826 if test "${with_talloc_include_dir+set}" = set; then :
5827 withval=$with_talloc_include_dir; case "$withval" in
5829 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5834 talloc_include_dir="$withval"
5840 smart_try_dir="$talloc_lib_dir"
5843 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5844 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5847 old_CPPFLAGS="$CPPFLAGS"
5852 if test "x$smart_try_dir" != "x"; then
5853 for try in $smart_try_dir; do
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5855 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5856 LIBS="-ltalloc $old_LIBS"
5857 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 extern char _talloc();
5869 if ac_fn_c_try_link "$LINENO"; then :
5871 smart_lib="-ltalloc"
5872 smart_ldflags="-L$try -Wl,-rpath,$try"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 $as_echo "yes" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5881 rm -f core conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5885 CPPFLAGS="$old_CPPFLAGS"
5888 if test "x$smart_lib" = "x"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5890 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5891 LIBS="-ltalloc $old_LIBS"
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 extern char _talloc();
5903 if ac_fn_c_try_link "$LINENO"; then :
5905 smart_lib="-ltalloc"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5907 $as_echo "yes" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5913 rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5918 if test "x$smart_lib" = "x"; then
5921 if test "x$LOCATE" != "x"; then
5923 file=libtalloc${libltdl_cv_shlibext}
5925 for x in `${LOCATE} $file 2>/dev/null`; do
5926 base=`echo $x | sed "s%/${file}%%"`
5927 if test "x$x" = "x$base"; then
5931 dir=`${DIRNAME} $x 2>/dev/null`
5932 exclude=`echo ${dir} | ${GREP} /home`
5933 if test "x$exclude" != "x"; then
5937 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5938 if test "x$already" = "x"; then
5944 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5948 if test "x$LOCATE" != "x"; then
5952 for x in `${LOCATE} $file 2>/dev/null`; do
5953 base=`echo $x | sed "s%/${file}%%"`
5954 if test "x$x" = "x$base"; then
5958 dir=`${DIRNAME} $x 2>/dev/null`
5959 exclude=`echo ${dir} | ${GREP} /home`
5960 if test "x$exclude" != "x"; then
5964 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5965 if test "x$already" = "x"; then
5971 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5974 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5976 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5977 LIBS="-ltalloc $old_LIBS"
5978 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 extern char _talloc();
5990 if ac_fn_c_try_link "$LINENO"; then :
5992 smart_lib="-ltalloc"
5993 smart_ldflags="-L$try -Wl,-rpath,$try"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995 $as_echo "yes" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6006 CPPFLAGS="$old_CPPFLAGS"
6009 if test "x$smart_lib" != "x"; then
6010 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6011 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6012 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6015 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6017 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6018 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6021 TALLOC_LIBS="${smart_lib}"
6022 TALLOC_LDFLAGS="${smart_ldflags}"
6028 if test "x$WITH_THREADS" = "xyes"; then
6029 if test $ac_cv_prog_suncc = "yes"; then
6030 CFLAGS="$CFLAGS -mt"
6033 for ac_header in pthread.h
6035 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_pthread_h" = xyes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_PTHREAD_H 1
6051 if test "x$WITH_THREADS" != "xno"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6053 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6054 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lpthread $LIBS"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6062 /* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
6068 char pthread_create ();
6072 return pthread_create ();
6077 if ac_fn_c_try_link "$LINENO"; then :
6078 ac_cv_lib_pthread_pthread_create=yes
6080 ac_cv_lib_pthread_pthread_create=no
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6087 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6088 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6091 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6092 LIBS="-lpthread $LIBS"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6096 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6097 if ${ax_cv_cc_pthread_flag+:} false; then :
6098 $as_echo_n "(cached) " >&6
6102 CFLAGS_SAVED=$CFLAGS
6103 CFLAGS="$CFLAGS -Werror -pthread"
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 ax_cv_cc_pthread_flag="yes"
6125 ax_cv_cc_pthread_flag="no"
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ac_cpp='$CPP $CPPFLAGS'
6130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135 CFLAGS="$CFLAGS_SAVED"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6139 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6141 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6142 CFLAGS="$CFLAGS -pthread"
6149 if test "x$HAVE_LPTHREAD" != "xyes"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6151 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6152 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 ac_check_lib_save_LIBS=$LIBS
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6166 char pthread_create ();
6170 return pthread_create ();
6175 if ac_fn_c_try_link "$LINENO"; then :
6176 ac_cv_lib_c_r_pthread_create=yes
6178 ac_cv_lib_c_r_pthread_create=no
6180 rm -f core conftest.err conftest.$ac_objext \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6185 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6186 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6188 CFLAGS="$CFLAGS -D_THREAD_SAFE"
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6192 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6193 if ${ax_cv_cc_pthread_flag+:} false; then :
6194 $as_echo_n "(cached) " >&6
6198 CFLAGS_SAVED=$CFLAGS
6199 CFLAGS="$CFLAGS -Werror -pthread"
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 ax_cv_cc_pthread_flag="yes"
6221 ax_cv_cc_pthread_flag="no"
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ac_cpp='$CPP $CPPFLAGS'
6226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231 CFLAGS="$CFLAGS_SAVED"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6235 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6237 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6240 CFLAGS="$CFLAGS -pthread"
6244 fail=-lc_r or -lpthread
6251 if test "x$WITH_THREADS" != "xyes"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6253 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6255 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6258 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6263 if test "x$WITH_THREADS" != "xyes"; then
6265 ac_cv_header_pthread_h="no"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6270 $as_echo_n "checking for library containing sem_init... " >&6; }
6271 if ${ac_cv_search_sem_init+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 ac_func_search_save_LIBS=$LIBS
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 /* Override any GCC internal prototype to avoid an error.
6279 Use char because int might match the return type of a GCC
6280 builtin and then its argument prototype would still apply. */
6293 for ac_lib in '' pthread sem posix4 rt semaphore; do
6294 if test -z "$ac_lib"; then
6295 ac_res="none required"
6298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6300 if ac_fn_c_try_link "$LINENO"; then :
6301 ac_cv_search_sem_init=$ac_res
6303 rm -f core conftest.err conftest.$ac_objext \
6305 if ${ac_cv_search_sem_init+:} false; then :
6309 if ${ac_cv_search_sem_init+:} false; then :
6312 ac_cv_search_sem_init=no
6315 LIBS=$ac_func_search_save_LIBS
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6318 $as_echo "$ac_cv_search_sem_init" >&6; }
6319 ac_res=$ac_cv_search_sem_init
6320 if test "$ac_res" != no; then :
6321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6324 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
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6332 if ${ac_cv_lib_dl_dlopen+:} false; then :
6333 $as_echo_n "(cached) " >&6
6335 ac_check_lib_save_LIBS=$LIBS
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6340 /* Override any GCC internal prototype to avoid an error.
6341 Use char because int might match the return type of a GCC
6342 builtin and then its argument prototype would still apply. */
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 ac_cv_lib_dl_dlopen=yes
6358 ac_cv_lib_dl_dlopen=no
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_check_lib_save_LIBS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6366 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6367 cat >>confdefs.h <<_ACEOF
6368 #define HAVE_LIBDL 1
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6377 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6378 if ${ac_cv_lib_socket_getsockname+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 ac_check_lib_save_LIBS=$LIBS
6382 LIBS="-lsocket $LIBS"
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6386 /* Override any GCC internal prototype to avoid an error.
6387 Use char because int might match the return type of a GCC
6388 builtin and then its argument prototype would still apply. */
6392 char getsockname ();
6396 return getsockname ();
6401 if ac_fn_c_try_link "$LINENO"; then :
6402 ac_cv_lib_socket_getsockname=yes
6404 ac_cv_lib_socket_getsockname=no
6406 rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6411 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6412 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6413 cat >>confdefs.h <<_ACEOF
6414 #define HAVE_LIBSOCKET 1
6417 LIBS="-lsocket $LIBS"
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6423 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6424 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 ac_check_lib_save_LIBS=$LIBS
6428 LIBS="-lresolv $LIBS"
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6432 /* Override any GCC internal prototype to avoid an error.
6433 Use char because int might match the return type of a GCC
6434 builtin and then its argument prototype would still apply. */
6442 return inet_aton ();
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 ac_cv_lib_resolv_inet_aton=yes
6450 ac_cv_lib_resolv_inet_aton=no
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6457 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6458 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBRESOLV 1
6463 LIBS="-lresolv $LIBS"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6469 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6470 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_check_lib_save_LIBS=$LIBS
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 /* Override any GCC internal prototype to avoid an error.
6479 Use char because int might match the return type of a GCC
6480 builtin and then its argument prototype would still apply. */
6488 return inet_ntoa ();
6493 if ac_fn_c_try_link "$LINENO"; then :
6494 ac_cv_lib_nsl_inet_ntoa=yes
6496 ac_cv_lib_nsl_inet_ntoa=no
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 LIBS=$ac_check_lib_save_LIBS
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6503 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6504 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6505 cat >>confdefs.h <<_ACEOF
6506 #define HAVE_LIBNSL 1
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6514 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6515 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 ac_check_lib_save_LIBS=$LIBS
6519 LIBS="-lws2_32 $LIBS"
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6523 /* Override any GCC internal prototype to avoid an error.
6524 Use char because int might match the return type of a GCC
6525 builtin and then its argument prototype would still apply. */
6538 if ac_fn_c_try_link "$LINENO"; then :
6539 ac_cv_lib_ws2_32_htonl=yes
6541 ac_cv_lib_ws2_32_htonl=no
6543 rm -f core conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6548 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6549 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_LIBWS2_32 1
6554 LIBS="-lws2_32 $LIBS"
6561 # Check whether --with-pcap-lib-dir was given.
6562 if test "${with_pcap_lib_dir+set}" = set; then :
6563 withval=$with_pcap_lib_dir; case "$withval" in
6565 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6570 pcap_lib_dir="$withval"
6578 # Check whether --with-pcap-include-dir was given.
6579 if test "${with_pcap_include_dir+set}" = set; then :
6580 withval=$with_pcap_include_dir; case "$withval" in
6582 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6587 pcap_include_dir="$withval"
6593 smart_try_dir="$pcap_lib_dir"
6596 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6597 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6600 old_CPPFLAGS="$CPPFLAGS"
6605 if test "x$smart_try_dir" != "x"; then
6606 for try in $smart_try_dir; do
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6608 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6609 LIBS="-lpcap $old_LIBS"
6610 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 extern char pcap_open_live();
6622 if ac_fn_c_try_link "$LINENO"; then :
6625 smart_ldflags="-L$try -Wl,-rpath,$try"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6627 $as_echo "yes" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6638 CPPFLAGS="$old_CPPFLAGS"
6641 if test "x$smart_lib" = "x"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6643 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6644 LIBS="-lpcap $old_LIBS"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 extern char pcap_open_live();
6656 if ac_fn_c_try_link "$LINENO"; then :
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6666 rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6671 if test "x$smart_lib" = "x"; then
6674 if test "x$LOCATE" != "x"; then
6676 file=libpcap${libltdl_cv_shlibext}
6678 for x in `${LOCATE} $file 2>/dev/null`; do
6679 base=`echo $x | sed "s%/${file}%%"`
6680 if test "x$x" = "x$base"; then
6684 dir=`${DIRNAME} $x 2>/dev/null`
6685 exclude=`echo ${dir} | ${GREP} /home`
6686 if test "x$exclude" != "x"; then
6690 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6691 if test "x$already" = "x"; then
6697 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6701 if test "x$LOCATE" != "x"; then
6705 for x in `${LOCATE} $file 2>/dev/null`; do
6706 base=`echo $x | sed "s%/${file}%%"`
6707 if test "x$x" = "x$base"; then
6711 dir=`${DIRNAME} $x 2>/dev/null`
6712 exclude=`echo ${dir} | ${GREP} /home`
6713 if test "x$exclude" != "x"; then
6717 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6718 if test "x$already" = "x"; then
6724 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6727 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6729 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6730 LIBS="-lpcap $old_LIBS"
6731 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 extern char pcap_open_live();
6743 if ac_fn_c_try_link "$LINENO"; then :
6746 smart_ldflags="-L$try -Wl,-rpath,$try"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6748 $as_echo "yes" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6755 rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6759 CPPFLAGS="$old_CPPFLAGS"
6762 if test "x$smart_lib" != "x"; then
6763 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6764 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6765 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6768 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6769 { $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
6770 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
6773 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6777 pcap_fopen_offline \
6783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6785 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6786 cat >>confdefs.h <<_ACEOF
6787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6794 PCAP_LIBS="${smart_lib}"
6795 PCAP_LDFLAGS="${smart_ldflags}"
6799 collectdclient_lib_dir=
6801 # Check whether --with-collectdclient-lib-dir was given.
6802 if test "${with_collectdclient_lib_dir+set}" = set; then :
6803 withval=$with_collectdclient_lib_dir; case "$withval" in
6805 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6810 collectdclient_lib_dir="$withval"
6816 collectdclient_include_dir=
6818 # Check whether --with-collectdclient-include-dir was given.
6819 if test "${with_collectdclient_include_dir+set}" = set; then :
6820 withval=$with_collectdclient_include_dir; case "$withval" in
6822 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6827 collectdclient_include_dir="$withval"
6833 smart_try_dir="$collectdclient_lib_dir"
6836 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6837 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6840 old_CPPFLAGS="$CPPFLAGS"
6845 if test "x$smart_try_dir" != "x"; then
6846 for try in $smart_try_dir; do
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6848 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6849 LIBS="-lcollectdclient $old_LIBS"
6850 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 extern char lcc_connect();
6862 if ac_fn_c_try_link "$LINENO"; then :
6864 smart_lib="-lcollectdclient"
6865 smart_ldflags="-L$try -Wl,-rpath,$try"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6878 CPPFLAGS="$old_CPPFLAGS"
6881 if test "x$smart_lib" = "x"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6883 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6884 LIBS="-lcollectdclient $old_LIBS"
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 extern char lcc_connect();
6896 if ac_fn_c_try_link "$LINENO"; then :
6898 smart_lib="-lcollectdclient"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6906 rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6911 if test "x$smart_lib" = "x"; then
6914 if test "x$LOCATE" != "x"; then
6916 file=libcollectdclient${libltdl_cv_shlibext}
6918 for x in `${LOCATE} $file 2>/dev/null`; do
6919 base=`echo $x | sed "s%/${file}%%"`
6920 if test "x$x" = "x$base"; then
6924 dir=`${DIRNAME} $x 2>/dev/null`
6925 exclude=`echo ${dir} | ${GREP} /home`
6926 if test "x$exclude" != "x"; then
6930 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6931 if test "x$already" = "x"; then
6937 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6941 if test "x$LOCATE" != "x"; then
6943 file=libcollectdclient.a
6945 for x in `${LOCATE} $file 2>/dev/null`; do
6946 base=`echo $x | sed "s%/${file}%%"`
6947 if test "x$x" = "x$base"; then
6951 dir=`${DIRNAME} $x 2>/dev/null`
6952 exclude=`echo ${dir} | ${GREP} /home`
6953 if test "x$exclude" != "x"; then
6957 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6958 if test "x$already" = "x"; then
6964 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6967 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6969 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6970 LIBS="-lcollectdclient $old_LIBS"
6971 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 extern char lcc_connect();
6983 if ac_fn_c_try_link "$LINENO"; then :
6985 smart_lib="-lcollectdclient"
6986 smart_ldflags="-L$try -Wl,-rpath,$try"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 $as_echo "yes" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6995 rm -f core conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6999 CPPFLAGS="$old_CPPFLAGS"
7002 if test "x$smart_lib" != "x"; then
7003 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7004 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7005 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7008 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
7010 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
7012 COLLECTDC_LIBS="${smart_lib}"
7013 COLLECTDC_LDFLAGS="${smart_ldflags}"
7019 # Check whether --with-cap-lib-dir was given.
7020 if test "${with_cap_lib_dir+set}" = set; then :
7021 withval=$with_cap_lib_dir; case "$withval" in
7023 as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
7028 cap_lib_dir="$withval"
7036 # Check whether --with-cap-include-dir was given.
7037 if test "${with_cap_include_dir+set}" = set; then :
7038 withval=$with_cap_include_dir; case "$withval" in
7040 as_fn_error $? "Need cap-include-dir" "$LINENO" 5
7045 cap_include_dir="$withval"
7051 smart_try_dir="$cap_lib_dir"
7054 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
7055 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
7058 old_CPPFLAGS="$CPPFLAGS"
7063 if test "x$smart_try_dir" != "x"; then
7064 for try in $smart_try_dir; do
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7066 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7067 LIBS="-lcap $old_LIBS"
7068 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 extern char cap_get_proc();
7080 if ac_fn_c_try_link "$LINENO"; then :
7083 smart_ldflags="-L$try -Wl,-rpath,$try"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7092 rm -f core conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7096 CPPFLAGS="$old_CPPFLAGS"
7099 if test "x$smart_lib" = "x"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
7101 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
7102 LIBS="-lcap $old_LIBS"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105 extern char cap_get_proc();
7114 if ac_fn_c_try_link "$LINENO"; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7129 if test "x$smart_lib" = "x"; then
7132 if test "x$LOCATE" != "x"; then
7134 file=libcap${libltdl_cv_shlibext}
7136 for x in `${LOCATE} $file 2>/dev/null`; do
7137 base=`echo $x | sed "s%/${file}%%"`
7138 if test "x$x" = "x$base"; then
7142 dir=`${DIRNAME} $x 2>/dev/null`
7143 exclude=`echo ${dir} | ${GREP} /home`
7144 if test "x$exclude" != "x"; then
7148 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7149 if test "x$already" = "x"; then
7155 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7159 if test "x$LOCATE" != "x"; then
7163 for x in `${LOCATE} $file 2>/dev/null`; do
7164 base=`echo $x | sed "s%/${file}%%"`
7165 if test "x$x" = "x$base"; then
7169 dir=`${DIRNAME} $x 2>/dev/null`
7170 exclude=`echo ${dir} | ${GREP} /home`
7171 if test "x$exclude" != "x"; then
7175 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7176 if test "x$already" = "x"; then
7182 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7185 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7187 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7188 LIBS="-lcap $old_LIBS"
7189 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 extern char cap_get_proc();
7201 if ac_fn_c_try_link "$LINENO"; then :
7204 smart_ldflags="-L$try -Wl,-rpath,$try"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206 $as_echo "yes" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7217 CPPFLAGS="$old_CPPFLAGS"
7220 if test "x$smart_lib" != "x"; then
7221 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7222 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7223 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7226 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7227 { $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
7228 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7231 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7238 $as_echo_n "checking for a readline compatible library... " >&6; }
7239 if ${vl_cv_lib_readline+:} false; then :
7240 $as_echo_n "(cached) " >&6
7244 for readline_lib in readline edit editline; do
7245 for termcap_lib in "" termcap curses ncurses; do
7246 if test -z "$termcap_lib"; then
7247 TRY_LIB="-l$readline_lib"
7249 TRY_LIB="-l$readline_lib -l$termcap_lib"
7251 LIBS="$ORIG_LIBS $TRY_LIB"
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 vl_cv_lib_readline="$TRY_LIB"
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 if test -n "$vl_cv_lib_readline"; then
7279 if test -n "$vl_cv_lib_readline"; then
7283 if test -z "$vl_cv_lib_readline"; then
7284 vl_cv_lib_readline="no"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7290 $as_echo "$vl_cv_lib_readline" >&6; }
7292 if test "$vl_cv_lib_readline" != "no"; then
7293 LIBREADLINE="$vl_cv_lib_readline"
7295 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7297 for ac_header in readline.h readline/readline.h
7299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7302 cat >>confdefs.h <<_ACEOF
7303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7311 $as_echo_n "checking whether readline supports history... " >&6; }
7312 if ${vl_cv_lib_readline_history+:} false; then :
7313 $as_echo_n "(cached) " >&6
7316 vl_cv_lib_readline_history="no"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7320 /* Override any GCC internal prototype to avoid an error.
7321 Use char because int might match the return type of a GCC
7322 builtin and then its argument prototype would still apply. */
7326 char add_history ();
7330 return add_history ();
7335 if ac_fn_c_try_link "$LINENO"; then :
7336 vl_cv_lib_readline_history="yes"
7338 rm -f core conftest.err conftest.$ac_objext \
7339 conftest$ac_exeext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7343 $as_echo "$vl_cv_lib_readline_history" >&6; }
7344 if test "$vl_cv_lib_readline_history" = "yes"; then
7346 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7348 for ac_header in history.h readline/history.h
7350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7353 cat >>confdefs.h <<_ACEOF
7354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 smart_try_dir="$talloc_include_dir"
7370 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7371 old_CPPFLAGS="$CPPFLAGS"
7373 smart_include_dir="/usr/local/include /opt/include"
7378 for _prefix in $smart_prefix ""; do
7379 for _dir in $smart_try_dir; do
7380 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7383 for _dir in $smart_include_dir; do
7384 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7388 if test "x$_smart_try_dir" != "x"; then
7389 for try in $_smart_try_dir; do
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7391 $as_echo_n "checking for talloc.h in $try... " >&6; }
7392 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7405 if ac_fn_c_try_compile "$LINENO"; then :
7407 smart_include="-isystem $try"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 CPPFLAGS="$old_CPPFLAGS"
7424 if test "x$smart_include" = "x"; then
7425 for _prefix in $smart_prefix; do
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7427 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7441 if ac_fn_c_try_compile "$LINENO"; then :
7443 smart_include="-isystem ${_prefix}/"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 if test "x$smart_include" = "x"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7461 $as_echo_n "checking for talloc.h... " >&6; }
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7475 if ac_fn_c_try_compile "$LINENO"; then :
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7479 $as_echo "yes" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 if test "x$smart_include" = "x"; then
7494 for prefix in $smart_prefix; do
7497 if test "x$LOCATE" != "x"; then
7499 file="${_prefix}/${1}"
7501 for x in `${LOCATE} $file 2>/dev/null`; do
7502 base=`echo $x | sed "s%/${file}%%"`
7503 if test "x$x" = "x$base"; then
7507 dir=`${DIRNAME} $x 2>/dev/null`
7508 exclude=`echo ${dir} | ${GREP} /home`
7509 if test "x$exclude" != "x"; then
7513 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7514 if test "x$already" = "x"; then
7520 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7525 if test "x$LOCATE" != "x"; then
7529 for x in `${LOCATE} $file 2>/dev/null`; do
7530 base=`echo $x | sed "s%/${file}%%"`
7531 if test "x$x" = "x$base"; then
7535 dir=`${DIRNAME} $x 2>/dev/null`
7536 exclude=`echo ${dir} | ${GREP} /home`
7537 if test "x$exclude" != "x"; then
7541 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7542 if test "x$already" = "x"; then
7548 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7551 for try in $_smart_include_dir; do
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7553 $as_echo_n "checking for talloc.h in $try... " >&6; }
7554 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7567 if ac_fn_c_try_compile "$LINENO"; then :
7569 smart_include="-isystem $try"
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7571 $as_echo "yes" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 CPPFLAGS="$old_CPPFLAGS"
7586 if test "x$smart_include" != "x"; then
7587 eval "ac_cv_header_$ac_safe=yes"
7588 CPPFLAGS="$smart_include $old_CPPFLAGS"
7589 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7594 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7596 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7597 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7602 CFLAGS="$CFLAGS -D_ALL_SOURCE"
7605 CFLAGS="$CFLAGS -DDARWIN"
7606 LIBS="-framework DirectoryService $LIBS"
7608 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7614 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7615 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7617 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7618 if eval \${$as_ac_Header+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 eval "$as_ac_Header=yes"
7638 eval "$as_ac_Header=no"
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 eval ac_res=\$$as_ac_Header
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7644 $as_echo "$ac_res" >&6; }
7645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7646 cat >>confdefs.h <<_ACEOF
7647 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7650 ac_header_dirent=$ac_hdr; break
7654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7655 if test $ac_header_dirent = dirent.h; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7657 $as_echo_n "checking for library containing opendir... " >&6; }
7658 if ${ac_cv_search_opendir+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 ac_func_search_save_LIBS=$LIBS
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7665 /* Override any GCC internal prototype to avoid an error.
7666 Use char because int might match the return type of a GCC
7667 builtin and then its argument prototype would still apply. */
7680 for ac_lib in '' dir; do
7681 if test -z "$ac_lib"; then
7682 ac_res="none required"
7685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 ac_cv_search_opendir=$ac_res
7690 rm -f core conftest.err conftest.$ac_objext \
7692 if ${ac_cv_search_opendir+:} false; then :
7696 if ${ac_cv_search_opendir+:} false; then :
7699 ac_cv_search_opendir=no
7702 LIBS=$ac_func_search_save_LIBS
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7705 $as_echo "$ac_cv_search_opendir" >&6; }
7706 ac_res=$ac_cv_search_opendir
7707 if test "$ac_res" != no; then :
7708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7714 $as_echo_n "checking for library containing opendir... " >&6; }
7715 if ${ac_cv_search_opendir+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 ac_func_search_save_LIBS=$LIBS
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7737 for ac_lib in '' x; do
7738 if test -z "$ac_lib"; then
7739 ac_res="none required"
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7744 if ac_fn_c_try_link "$LINENO"; then :
7745 ac_cv_search_opendir=$ac_res
7747 rm -f core conftest.err conftest.$ac_objext \
7749 if ${ac_cv_search_opendir+:} false; then :
7753 if ${ac_cv_search_opendir+:} false; then :
7756 ac_cv_search_opendir=no
7759 LIBS=$ac_func_search_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7762 $as_echo "$ac_cv_search_opendir" >&6; }
7763 ac_res=$ac_cv_search_opendir
7764 if test "$ac_res" != no; then :
7765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7772 $as_echo_n "checking for ANSI C header files... " >&6; }
7773 if ${ac_cv_header_stdc+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792 ac_cv_header_stdc=yes
7794 ac_cv_header_stdc=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 if test $ac_cv_header_stdc = yes; then
7799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806 $EGREP "memchr" >/dev/null 2>&1; then :
7809 ac_cv_header_stdc=no
7815 if test $ac_cv_header_stdc = yes; then
7816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "free" >/dev/null 2>&1; then :
7826 ac_cv_header_stdc=no
7832 if test $ac_cv_header_stdc = yes; then
7833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7834 if test "$cross_compiling" = yes; then :
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7841 #if ((' ' & 0x0FF) == 0x020)
7842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7845 # define ISLOWER(c) \
7846 (('a' <= (c) && (c) <= 'i') \
7847 || ('j' <= (c) && (c) <= 'r') \
7848 || ('s' <= (c) && (c) <= 'z'))
7849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7857 for (i = 0; i < 256; i++)
7858 if (XOR (islower (i), ISLOWER (i))
7859 || toupper (i) != TOUPPER (i))
7864 if ac_fn_c_try_run "$LINENO"; then :
7867 ac_cv_header_stdc=no
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7870 conftest.$ac_objext conftest.beam conftest.$ac_ext
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7876 $as_echo "$ac_cv_header_stdc" >&6; }
7877 if test $ac_cv_header_stdc = yes; then
7879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7884 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7885 if ${ac_cv_header_time+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #include <sys/types.h>
7891 #include <sys/time.h>
7897 if ((struct tm *) 0)
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904 ac_cv_header_time=yes
7906 ac_cv_header_time=no
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7911 $as_echo "$ac_cv_header_time" >&6; }
7912 if test $ac_cv_header_time = yes; then
7914 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7919 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7920 if ${ac_cv_header_sys_wait_h+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <sys/types.h>
7926 #include <sys/wait.h>
7928 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7931 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7939 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_cv_header_sys_wait_h=yes
7947 ac_cv_header_sys_wait_h=no
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7952 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7953 if test $ac_cv_header_sys_wait_h = yes; then
7955 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8008 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8010 cat >>confdefs.h <<_ACEOF
8011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8019 for ac_header in net/if.h
8021 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8022 #ifdef HAVE_SYS_SOCKET_H
8023 # include <sys/socket.h>
8028 if test "x$ac_cv_header_net_if_h" = xyes; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define HAVE_NET_IF_H 1
8038 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8041 $as_echo "#define OSFC2 /**/" >>confdefs.h
8045 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8048 $as_echo "#define OSFSIA /**/" >>confdefs.h
8052 if test "x$WITH_OPENSSL" = xyes; then
8055 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
8057 smart_try_dir="$openssl_lib_dir"
8060 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
8061 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
8064 old_CPPFLAGS="$CPPFLAGS"
8069 if test "x$smart_try_dir" != "x"; then
8070 for try in $smart_try_dir; do
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8072 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8073 LIBS="-lcrypto $old_LIBS"
8074 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 extern char DH_new();
8086 if ac_fn_c_try_link "$LINENO"; then :
8088 smart_lib="-lcrypto"
8089 smart_ldflags="-L$try -Wl,-rpath,$try"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091 $as_echo "yes" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8098 rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8102 CPPFLAGS="$old_CPPFLAGS"
8105 if test "x$smart_lib" = "x"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
8107 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
8108 LIBS="-lcrypto $old_LIBS"
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 extern char DH_new();
8120 if ac_fn_c_try_link "$LINENO"; then :
8122 smart_lib="-lcrypto"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8124 $as_echo "yes" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8130 rm -f core conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
8135 if test "x$smart_lib" = "x"; then
8138 if test "x$LOCATE" != "x"; then
8140 file=libcrypto${libltdl_cv_shlibext}
8142 for x in `${LOCATE} $file 2>/dev/null`; do
8143 base=`echo $x | sed "s%/${file}%%"`
8144 if test "x$x" = "x$base"; then
8148 dir=`${DIRNAME} $x 2>/dev/null`
8149 exclude=`echo ${dir} | ${GREP} /home`
8150 if test "x$exclude" != "x"; then
8154 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8155 if test "x$already" = "x"; then
8161 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8165 if test "x$LOCATE" != "x"; then
8169 for x in `${LOCATE} $file 2>/dev/null`; do
8170 base=`echo $x | sed "s%/${file}%%"`
8171 if test "x$x" = "x$base"; then
8175 dir=`${DIRNAME} $x 2>/dev/null`
8176 exclude=`echo ${dir} | ${GREP} /home`
8177 if test "x$exclude" != "x"; then
8181 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8182 if test "x$already" = "x"; then
8188 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8191 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8193 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8194 LIBS="-lcrypto $old_LIBS"
8195 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 extern char DH_new();
8207 if ac_fn_c_try_link "$LINENO"; then :
8209 smart_lib="-lcrypto"
8210 smart_ldflags="-L$try -Wl,-rpath,$try"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8212 $as_echo "yes" >&6; }
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8223 CPPFLAGS="$old_CPPFLAGS"
8226 if test "x$smart_lib" != "x"; then
8227 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8228 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8229 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8232 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8234 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8236 OPENSSL_LIBS="$smart_lib"
8237 OPENSSL_LDFLAGS="$smart_ldflags"
8241 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8242 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8245 old_CPPFLAGS="$CPPFLAGS"
8250 if test "x$smart_try_dir" != "x"; then
8251 for try in $smart_try_dir; do
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8253 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8254 LIBS="-lssl $old_LIBS"
8255 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 extern char SSL_new();
8267 if ac_fn_c_try_link "$LINENO"; then :
8270 smart_ldflags="-L$try -Wl,-rpath,$try"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8283 CPPFLAGS="$old_CPPFLAGS"
8286 if test "x$smart_lib" = "x"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8288 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8289 LIBS="-lssl $old_LIBS"
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 extern char SSL_new();
8301 if ac_fn_c_try_link "$LINENO"; then :
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8305 $as_echo "yes" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8316 if test "x$smart_lib" = "x"; then
8319 if test "x$LOCATE" != "x"; then
8321 file=libssl${libltdl_cv_shlibext}
8323 for x in `${LOCATE} $file 2>/dev/null`; do
8324 base=`echo $x | sed "s%/${file}%%"`
8325 if test "x$x" = "x$base"; then
8329 dir=`${DIRNAME} $x 2>/dev/null`
8330 exclude=`echo ${dir} | ${GREP} /home`
8331 if test "x$exclude" != "x"; then
8335 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8336 if test "x$already" = "x"; then
8342 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8346 if test "x$LOCATE" != "x"; then
8350 for x in `${LOCATE} $file 2>/dev/null`; do
8351 base=`echo $x | sed "s%/${file}%%"`
8352 if test "x$x" = "x$base"; then
8356 dir=`${DIRNAME} $x 2>/dev/null`
8357 exclude=`echo ${dir} | ${GREP} /home`
8358 if test "x$exclude" != "x"; then
8362 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8363 if test "x$already" = "x"; then
8369 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8372 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8374 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8375 LIBS="-lssl $old_LIBS"
8376 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 extern char SSL_new();
8388 if ac_fn_c_try_link "$LINENO"; then :
8391 smart_ldflags="-L$try -Wl,-rpath,$try"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393 $as_echo "yes" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8404 CPPFLAGS="$old_CPPFLAGS"
8407 if test "x$smart_lib" != "x"; then
8408 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8409 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8410 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8413 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8416 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8417 See \`config.log' for more details" "$LINENO" 5; }
8420 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8422 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8424 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8427 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8428 See \`config.log' for more details" "$LINENO" 5; }
8432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8434 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8435 See \`config.log' for more details" "$LINENO" 5; }
8438 smart_try_dir="$openssl_include_dir"
8441 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8442 old_CPPFLAGS="$CPPFLAGS"
8444 smart_include_dir="/usr/local/include /opt/include"
8449 for _prefix in $smart_prefix ""; do
8450 for _dir in $smart_try_dir; do
8451 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8454 for _dir in $smart_include_dir; do
8455 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8459 if test "x$_smart_try_dir" != "x"; then
8460 for try in $_smart_try_dir; do
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8462 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8463 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8467 #include <openssl/ssl.h>
8476 if ac_fn_c_try_compile "$LINENO"; then :
8478 smart_include="-isystem $try"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 CPPFLAGS="$old_CPPFLAGS"
8495 if test "x$smart_include" = "x"; then
8496 for _prefix in $smart_prefix; do
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8498 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 #include <openssl/ssl.h>
8512 if ac_fn_c_try_compile "$LINENO"; then :
8514 smart_include="-isystem ${_prefix}/"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8516 $as_echo "yes" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 if test "x$smart_include" = "x"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8532 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8537 #include <openssl/ssl.h>
8546 if ac_fn_c_try_compile "$LINENO"; then :
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8550 $as_echo "yes" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 if test "x$smart_include" = "x"; then
8565 for prefix in $smart_prefix; do
8568 if test "x$LOCATE" != "x"; then
8570 file="${_prefix}/${1}"
8572 for x in `${LOCATE} $file 2>/dev/null`; do
8573 base=`echo $x | sed "s%/${file}%%"`
8574 if test "x$x" = "x$base"; then
8578 dir=`${DIRNAME} $x 2>/dev/null`
8579 exclude=`echo ${dir} | ${GREP} /home`
8580 if test "x$exclude" != "x"; then
8584 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8585 if test "x$already" = "x"; then
8591 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8596 if test "x$LOCATE" != "x"; then
8600 for x in `${LOCATE} $file 2>/dev/null`; do
8601 base=`echo $x | sed "s%/${file}%%"`
8602 if test "x$x" = "x$base"; then
8606 dir=`${DIRNAME} $x 2>/dev/null`
8607 exclude=`echo ${dir} | ${GREP} /home`
8608 if test "x$exclude" != "x"; then
8612 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8613 if test "x$already" = "x"; then
8619 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8622 for try in $_smart_include_dir; do
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8624 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8625 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8629 #include <openssl/ssl.h>
8638 if ac_fn_c_try_compile "$LINENO"; then :
8640 smart_include="-isystem $try"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8642 $as_echo "yes" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 CPPFLAGS="$old_CPPFLAGS"
8657 if test "x$smart_include" != "x"; then
8658 eval "ac_cv_header_$ac_safe=yes"
8659 CPPFLAGS="$smart_include $old_CPPFLAGS"
8660 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8665 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8667 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8684 cat >>confdefs.h <<_ACEOF
8685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8687 OPENSSL_CPPFLAGS="$smart_include"
8690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8692 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8693 See \`config.log' for more details" "$LINENO" 5; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8702 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <openssl/crypto.h>
8706 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712 $EGREP "yes" >/dev/null 2>&1; then :
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8723 as_fn_error $? "OpenSSL version too old
8724 See \`config.log' for more details" "$LINENO" 5; }
8731 old_CPPFLAGS="$CPPFLAGS"
8732 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8735 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8736 if test "$cross_compiling" = yes; then :
8737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8739 as_fn_error $? "cannot run test program while cross compiling
8740 See \`config.log' for more details" "$LINENO" 5; }
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8746 #include <openssl/opensslv.h>
8747 #include <openssl/crypto.h>
8753 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8754 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8765 if ac_fn_c_try_run "$LINENO"; then :
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8768 $as_echo "yes" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8776 as_fn_error $? "OpenSSL library version does not match header version
8777 See \`config.log' for more details" "$LINENO" 5; }
8781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8782 conftest.$ac_objext conftest.beam conftest.$ac_ext
8785 CPPFLAGS="$old_CPPFLAGS"
8792 export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8795 if test "x$PCAP_LIBS" = x; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8797 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8799 smart_try_dir="$pcap_include_dir"
8802 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8803 old_CPPFLAGS="$CPPFLAGS"
8805 smart_include_dir="/usr/local/include /opt/include"
8810 for _prefix in $smart_prefix ""; do
8811 for _dir in $smart_try_dir; do
8812 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8815 for _dir in $smart_include_dir; do
8816 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8820 if test "x$_smart_try_dir" != "x"; then
8821 for try in $_smart_try_dir; do
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8823 $as_echo_n "checking for pcap.h in $try... " >&6; }
8824 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8837 if ac_fn_c_try_compile "$LINENO"; then :
8839 smart_include="-isystem $try"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8841 $as_echo "yes" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 CPPFLAGS="$old_CPPFLAGS"
8856 if test "x$smart_include" = "x"; then
8857 for _prefix in $smart_prefix; do
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8859 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8873 if ac_fn_c_try_compile "$LINENO"; then :
8875 smart_include="-isystem ${_prefix}/"
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8877 $as_echo "yes" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 if test "x$smart_include" = "x"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8893 $as_echo_n "checking for pcap.h... " >&6; }
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8907 if ac_fn_c_try_compile "$LINENO"; then :
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8911 $as_echo "yes" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 if test "x$smart_include" = "x"; then
8926 for prefix in $smart_prefix; do
8929 if test "x$LOCATE" != "x"; then
8931 file="${_prefix}/${1}"
8933 for x in `${LOCATE} $file 2>/dev/null`; do
8934 base=`echo $x | sed "s%/${file}%%"`
8935 if test "x$x" = "x$base"; then
8939 dir=`${DIRNAME} $x 2>/dev/null`
8940 exclude=`echo ${dir} | ${GREP} /home`
8941 if test "x$exclude" != "x"; then
8945 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8946 if test "x$already" = "x"; then
8952 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8957 if test "x$LOCATE" != "x"; then
8961 for x in `${LOCATE} $file 2>/dev/null`; do
8962 base=`echo $x | sed "s%/${file}%%"`
8963 if test "x$x" = "x$base"; then
8967 dir=`${DIRNAME} $x 2>/dev/null`
8968 exclude=`echo ${dir} | ${GREP} /home`
8969 if test "x$exclude" != "x"; then
8973 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8974 if test "x$already" = "x"; then
8980 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8983 for try in $_smart_include_dir; do
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8985 $as_echo_n "checking for pcap.h in $try... " >&6; }
8986 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8999 if ac_fn_c_try_compile "$LINENO"; then :
9001 smart_include="-isystem $try"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9003 $as_echo "yes" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 CPPFLAGS="$old_CPPFLAGS"
9018 if test "x$smart_include" != "x"; then
9019 eval "ac_cv_header_$ac_safe=yes"
9020 CPPFLAGS="$smart_include $old_CPPFLAGS"
9021 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9026 if test "x$ac_cv_header_pcap_h" == "xyes"; then
9028 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
9033 { $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
9034 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
9038 if test "x$COLLECTDC_LIBS" = x; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
9040 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
9042 smart_try_dir="$collectdclient_include_dir"
9045 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
9046 old_CPPFLAGS="$CPPFLAGS"
9048 smart_include_dir="/usr/local/include /opt/include"
9053 for _prefix in $smart_prefix ""; do
9054 for _dir in $smart_try_dir; do
9055 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9058 for _dir in $smart_include_dir; do
9059 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9063 if test "x$_smart_try_dir" != "x"; then
9064 for try in $_smart_try_dir; do
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9066 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9067 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 #include <collectd/client.h>
9080 if ac_fn_c_try_compile "$LINENO"; then :
9082 smart_include="-isystem $try"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9084 $as_echo "yes" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 CPPFLAGS="$old_CPPFLAGS"
9099 if test "x$smart_include" = "x"; then
9100 for _prefix in $smart_prefix; do
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
9102 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9107 #include <collectd/client.h>
9116 if ac_fn_c_try_compile "$LINENO"; then :
9118 smart_include="-isystem ${_prefix}/"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9120 $as_echo "yes" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 if test "x$smart_include" = "x"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9136 $as_echo_n "checking for collectd/client.h... " >&6; }
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9141 #include <collectd/client.h>
9150 if ac_fn_c_try_compile "$LINENO"; then :
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9154 $as_echo "yes" >&6; }
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 if test "x$smart_include" = "x"; then
9169 for prefix in $smart_prefix; do
9172 if test "x$LOCATE" != "x"; then
9174 file="${_prefix}/${1}"
9176 for x in `${LOCATE} $file 2>/dev/null`; do
9177 base=`echo $x | sed "s%/${file}%%"`
9178 if test "x$x" = "x$base"; then
9182 dir=`${DIRNAME} $x 2>/dev/null`
9183 exclude=`echo ${dir} | ${GREP} /home`
9184 if test "x$exclude" != "x"; then
9188 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9189 if test "x$already" = "x"; then
9195 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9200 if test "x$LOCATE" != "x"; then
9202 file=collectd/client.h
9204 for x in `${LOCATE} $file 2>/dev/null`; do
9205 base=`echo $x | sed "s%/${file}%%"`
9206 if test "x$x" = "x$base"; then
9210 dir=`${DIRNAME} $x 2>/dev/null`
9211 exclude=`echo ${dir} | ${GREP} /home`
9212 if test "x$exclude" != "x"; then
9216 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9217 if test "x$already" = "x"; then
9223 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9226 for try in $_smart_include_dir; do
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9228 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9229 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 #include <collectd/client.h>
9242 if ac_fn_c_try_compile "$LINENO"; then :
9244 smart_include="-isystem $try"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9246 $as_echo "yes" >&6; }
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 CPPFLAGS="$old_CPPFLAGS"
9261 if test "x$smart_include" != "x"; then
9262 eval "ac_cv_header_$ac_safe=yes"
9263 CPPFLAGS="$smart_include $old_CPPFLAGS"
9264 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9269 if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9271 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9277 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9281 if test "x$HAVE_LIBCAP" = x; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9283 $as_echo "$as_me: skipping test for cap.h." >&6;}
9285 smart_try_dir="$cap_include_dir"
9288 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9289 old_CPPFLAGS="$CPPFLAGS"
9291 smart_include_dir="/usr/local/include /opt/include"
9296 for _prefix in $smart_prefix ""; do
9297 for _dir in $smart_try_dir; do
9298 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9301 for _dir in $smart_include_dir; do
9302 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9306 if test "x$_smart_try_dir" != "x"; then
9307 for try in $_smart_try_dir; do
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9309 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9310 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9314 #include <sys/capability.h>
9323 if ac_fn_c_try_compile "$LINENO"; then :
9325 smart_include="-isystem $try"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9327 $as_echo "yes" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 CPPFLAGS="$old_CPPFLAGS"
9342 if test "x$smart_include" = "x"; then
9343 for _prefix in $smart_prefix; do
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9345 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9350 #include <sys/capability.h>
9359 if ac_fn_c_try_compile "$LINENO"; then :
9361 smart_include="-isystem ${_prefix}/"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9363 $as_echo "yes" >&6; }
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 if test "x$smart_include" = "x"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9379 $as_echo_n "checking for sys/capability.h... " >&6; }
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9384 #include <sys/capability.h>
9393 if ac_fn_c_try_compile "$LINENO"; then :
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9397 $as_echo "yes" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 if test "x$smart_include" = "x"; then
9412 for prefix in $smart_prefix; do
9415 if test "x$LOCATE" != "x"; then
9417 file="${_prefix}/${1}"
9419 for x in `${LOCATE} $file 2>/dev/null`; do
9420 base=`echo $x | sed "s%/${file}%%"`
9421 if test "x$x" = "x$base"; then
9425 dir=`${DIRNAME} $x 2>/dev/null`
9426 exclude=`echo ${dir} | ${GREP} /home`
9427 if test "x$exclude" != "x"; then
9431 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9432 if test "x$already" = "x"; then
9438 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9443 if test "x$LOCATE" != "x"; then
9445 file=sys/capability.h
9447 for x in `${LOCATE} $file 2>/dev/null`; do
9448 base=`echo $x | sed "s%/${file}%%"`
9449 if test "x$x" = "x$base"; then
9453 dir=`${DIRNAME} $x 2>/dev/null`
9454 exclude=`echo ${dir} | ${GREP} /home`
9455 if test "x$exclude" != "x"; then
9459 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9460 if test "x$already" = "x"; then
9466 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9469 for try in $_smart_include_dir; do
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9471 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9472 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9476 #include <sys/capability.h>
9485 if ac_fn_c_try_compile "$LINENO"; then :
9487 smart_include="-isystem $try"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9489 $as_echo "yes" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501 CPPFLAGS="$old_CPPFLAGS"
9504 if test "x$smart_include" != "x"; then
9505 eval "ac_cv_header_$ac_safe=yes"
9506 CPPFLAGS="$smart_include $old_CPPFLAGS"
9507 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9512 if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9514 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9518 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9523 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9524 if test "x$ac_cv_type_off_t" = xyes; then :
9528 cat >>confdefs.h <<_ACEOF
9529 #define off_t long int
9534 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9535 if test "x$ac_cv_type_pid_t" = xyes; then :
9539 cat >>confdefs.h <<_ACEOF
9545 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9546 if test "x$ac_cv_type_size_t" = xyes; then :
9550 cat >>confdefs.h <<_ACEOF
9551 #define size_t unsigned int
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9557 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9558 if ${ac_cv_type_uid_t+:} false; then :
9559 $as_echo_n "(cached) " >&6
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 #include <sys/types.h>
9566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9567 $EGREP "uid_t" >/dev/null 2>&1; then :
9568 ac_cv_type_uid_t=yes
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9576 $as_echo "$ac_cv_type_uid_t" >&6; }
9577 if test $ac_cv_type_uid_t = no; then
9579 $as_echo "#define uid_t int" >>confdefs.h
9582 $as_echo "#define gid_t int" >>confdefs.h
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9589 $as_echo_n "checking for socklen_t... " >&6; }
9590 if ${ac_cv_type_socklen_t+:} false; then :
9591 $as_echo_n "(cached) " >&6
9593 ac_cv_type_socklen_t=no
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 #ifdef HAVE_SYS_TYPES_H
9597 # include <sys/types.h>
9600 #ifdef HAVE_SYS_SOCKET_H
9601 # include <sys/socket.h>
9612 if ac_fn_c_try_compile "$LINENO"; then :
9613 ac_cv_type_socklen_t=yes
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9620 $as_echo "$ac_cv_type_socklen_t" >&6; }
9622 if test "$ac_cv_type_socklen_t" != "yes"; then
9624 $as_echo "#define socklen_t int" >>confdefs.h
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9631 $as_echo_n "checking for uint8_t... " >&6; }
9632 if ${ac_cv_type_uint8_t+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 ac_cv_type_uint8_t=no
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 #ifdef HAVE_INTTYPES_H
9639 # include <inttypes.h>
9642 #ifdef HAVE_STDINT_H
9643 # include <stdint.h>
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 ac_cv_type_uint8_t=yes
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9662 $as_echo "$ac_cv_type_uint8_t" >&6; }
9664 if test "$ac_cv_type_uint8_t" != "yes"; then
9666 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9673 $as_echo_n "checking for uint16_t... " >&6; }
9674 if ${ac_cv_type_uint16_t+:} false; then :
9675 $as_echo_n "(cached) " >&6
9677 ac_cv_type_uint16_t=no
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #ifdef HAVE_INTTYPES_H
9681 # include <inttypes.h>
9684 #ifdef HAVE_STDINT_H
9685 # include <stdint.h>
9696 if ac_fn_c_try_compile "$LINENO"; then :
9697 ac_cv_type_uint16_t=yes
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9704 $as_echo "$ac_cv_type_uint16_t" >&6; }
9706 if test "$ac_cv_type_uint16_t" != "yes"; then
9708 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9715 $as_echo_n "checking for uint32_t... " >&6; }
9716 if ${ac_cv_type_uint32_t+:} false; then :
9717 $as_echo_n "(cached) " >&6
9719 ac_cv_type_uint32_t=no
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 #ifdef HAVE_INTTYPES_H
9723 # include <inttypes.h>
9726 #ifdef HAVE_STDINT_H
9727 # include <stdint.h>
9738 if ac_fn_c_try_compile "$LINENO"; then :
9739 ac_cv_type_uint32_t=yes
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9746 $as_echo "$ac_cv_type_uint32_t" >&6; }
9748 if test "$ac_cv_type_uint32_t" != "yes"; then
9750 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9757 $as_echo_n "checking for uint64_t... " >&6; }
9758 if ${ac_cv_type_uint64_t+:} false; then :
9759 $as_echo_n "(cached) " >&6
9761 ac_cv_type_uint64_t=no
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #ifdef HAVE_INTTYPES_H
9765 # include <inttypes.h>
9768 #ifdef HAVE_STDINT_H
9769 # include <stdint.h>
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 ac_cv_type_uint64_t=yes
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9788 $as_echo "$ac_cv_type_uint64_t" >&6; }
9790 if test "$ac_cv_type_uint64_t" != "yes"; then
9792 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9797 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9798 if test "x$ac_cv_type___uint128_t" = xyes; then :
9800 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9805 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9806 #ifdef HAVE_INTTYPES_H
9807 # include <inttypes.h>
9810 #ifdef HAVE_STDINT_H
9811 # include <stdint.h>
9816 if test "x$ac_cv_type_uint128_t" = xyes; then :
9818 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9823 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9824 #ifdef HAVE_NETINET_IN_H
9825 # include <netinet/in.h>
9830 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9832 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9837 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9838 #ifdef HAVE_NETINET_IN_H
9839 # include <netinet/in.h>
9842 #ifdef HAVE_SYS_SOCKET_H
9843 # include <sys/socket.h>
9847 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9849 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9854 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9855 #ifdef HAVE_NETINET_IN_H
9856 # include <netinet/in.h>
9860 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9862 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9867 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9868 #ifdef HAVE_SYS_TYPES_H
9869 # include <sys/types.h>
9872 #ifdef HAVE_SYS_SOCKET_H
9873 # include <sys/socket.h>
9882 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9884 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9890 $as_echo_n "checking if sig_t is defined... " >&6; }
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9894 #ifdef HAVE_SIGNAL_H
9895 # include <signal.h>
9910 if ac_fn_c_try_link "$LINENO"; then :
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9913 $as_echo "yes" >&6; }
9915 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9972 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9982 $as_echo_n "checking return type of signal handlers... " >&6; }
9983 if ${ac_cv_type_signal+:} false; then :
9984 $as_echo_n "(cached) " >&6
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #include <sys/types.h>
9994 return *(signal (0, 0)) (0) == 1;
9999 if ac_fn_c_try_compile "$LINENO"; then :
10000 ac_cv_type_signal=int
10002 ac_cv_type_signal=void
10004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10007 $as_echo "$ac_cv_type_signal" >&6; }
10009 cat >>confdefs.h <<_ACEOF
10010 #define RETSIGTYPE $ac_cv_type_signal
10015 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
10018 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10025 #ifdef HAVE_STDDEF_H
10026 #include <stddef.h>
10029 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10035 int foo = offsetof(struct utmpx, ut_xtime)
10040 if ac_fn_c_try_compile "$LINENO"; then :
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
10048 if test "x$has_element" != "x"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10051 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10055 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
10058 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
10060 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
10067 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 #include <netinet/in.h>
10074 #ifdef HAVE_STDDEF_H
10075 #include <stddef.h>
10078 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10084 int foo = offsetof(struct in_pktinfo, ipi_addr)
10089 if ac_fn_c_try_compile "$LINENO"; then :
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
10097 if test "x$has_element" != "x"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10099 $as_echo "yes" >&6; }
10100 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10104 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
10107 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
10109 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
10115 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10121 #include <netinet/in.h>
10122 #ifdef HAVE_STDDEF_H
10123 #include <stddef.h>
10126 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10132 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10137 if ac_fn_c_try_compile "$LINENO"; then :
10142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10145 if test "x$has_element" != "x"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10147 $as_echo "yes" >&6; }
10148 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10155 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10157 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10162 $as_echo_n "checking if htonll is defined... " >&6; }
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10166 #include <sys/types.h>
10167 #include <netinet/in.h>
10180 if ac_fn_c_try_link "$LINENO"; then :
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183 $as_echo "yes" >&6; }
10185 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10199 $as_echo_n "checking if htonlll is defined... " >&6; }
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10203 #include <sys/types.h>
10204 #include <netinet/in.h>
10217 if ac_fn_c_try_link "$LINENO"; then :
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10220 $as_echo "yes" >&6; }
10222 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10237 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10238 if ${ac_cv_c_const+:} false; then :
10239 $as_echo_n "(cached) " >&6
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10248 #ifndef __cplusplus
10249 /* Ultrix mips cc rejects this sort of thing. */
10250 typedef int charset[2];
10251 const charset cs = { 0, 0 };
10252 /* SunOS 4.1.1 cc rejects this. */
10253 char const *const *pcpcc;
10255 /* NEC SVR4.0.2 mips cc rejects this. */
10256 struct point {int x, y;};
10257 static struct point const zero = {0,0};
10258 /* AIX XL C 1.02.0.0 rejects this.
10259 It does not let you subtract one const X* pointer from another in
10260 an arm of an if-expression whose if-part is not a constant
10262 const char *g = "string";
10263 pcpcc = &g + (g ? g-g : 0);
10264 /* HPUX 7.0 cc rejects these. */
10266 ppc = (char**) pcpcc;
10267 pcpcc = (char const *const *) ppc;
10268 { /* SCO 3.2v4 cc rejects this sort of thing. */
10271 char const *s = 0 ? (char *) 0 : (char const *) 0;
10276 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10277 int x[] = {25, 17};
10278 const int *foo = &x[0];
10281 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10282 typedef const int *iptr;
10286 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10287 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10288 struct s { int j; const int *ap[3]; } bx;
10289 struct s *b = &bx; b->j = 5;
10291 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10292 const int foo = 10;
10293 if (!foo) return 0;
10295 return !cs[0] && !zero.x;
10302 if ac_fn_c_try_compile "$LINENO"; then :
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10310 $as_echo "$ac_cv_c_const" >&6; }
10311 if test $ac_cv_c_const = no; then
10313 $as_echo "#define const /**/" >>confdefs.h
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10319 $as_echo_n "checking type of OS... " >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10322 $as_echo "$OS" >&6; }
10323 if test "$OS" = "OS/2"; then
10330 if test "x$developer" = "xyes"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10332 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10336 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10337 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10338 $as_echo_n "(cached) " >&6
10342 CFLAGS_SAVED=$CFLAGS
10343 CFLAGS="$CFLAGS -Werror -Wdocumentation"
10346 ac_cpp='$CPP $CPPFLAGS'
10347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10362 if ac_fn_c_try_compile "$LINENO"; then :
10363 ax_cv_cc_wdocumentation_flag="yes"
10365 ax_cv_cc_wdocumentation_flag="no"
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 ac_cpp='$CPP $CPPFLAGS'
10370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10375 CFLAGS="$CFLAGS_SAVED"
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10379 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10381 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10382 devflags="-Wdocumentation"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
10387 $as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; }
10388 if ${ax_cv_cc_weverything_flag+:} false; then :
10389 $as_echo_n "(cached) " >&6
10393 CFLAGS_SAVED=$CFLAGS
10394 CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return"
10397 ac_cpp='$CPP $CPPFLAGS'
10398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10413 if ac_fn_c_try_compile "$LINENO"; then :
10414 ax_cv_cc_weverything_flag="yes"
10416 ax_cv_cc_weverything_flag="no"
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 ac_cpp='$CPP $CPPFLAGS'
10421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10426 CFLAGS="$CFLAGS_SAVED"
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
10430 $as_echo "$ax_cv_cc_weverything_flag" >&6; }
10432 if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
10433 devflags="$devflags -W -Weverything -Wformat=2 -Wno-missing-field-initializers -Wno-date-time -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 -Wno-reserved-id-macro -DWITH_VERIFY_PTR=1"
10435 if test "x$GCC" = "xyes"; then
10436 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"
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10442 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10444 CFLAGS="$CFLAGS $devflags"
10445 if test "x$EXPERIMENTAL" != "xno"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10447 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10452 CFLAGS="$CFLAGS -DNDEBUG"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10457 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10458 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10460 $as_echo "yes" >&6; }
10462 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10469 export EXPERIMENTAL
10471 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10472 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10474 cat >>confdefs.h <<_ACEOF
10475 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10482 $as_echo_n "checking for __thread support in compiler... " >&6; }
10483 if test "$cross_compiling" = yes; then :
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 static __thread int val;
10490 int main(int argc, char **argv) {
10497 if ac_fn_c_try_run "$LINENO"; then :
10502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10503 conftest.$ac_objext conftest.beam conftest.$ac_ext
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10507 $as_echo "$have_tls" >&6; }
10508 if test "x$have_tls" = "xyes"; then
10510 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10514 if test "x$have_tls" = "xno"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10516 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10517 if test "$cross_compiling" = yes; then :
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10523 static _Thread_local int val;
10524 int main(int argc, char **argv) {
10531 if ac_fn_c_try_run "$LINENO"; then :
10536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10537 conftest.$ac_objext conftest.beam conftest.$ac_ext
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10541 $as_echo "$have_tls" >&6; }
10542 if test "x$have_tls" = "xyes"; then
10544 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10548 if test "x$have_tls" = "xno"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10550 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10551 if test "$cross_compiling" = yes; then :
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10557 static _Thread_local int val;
10558 int main(int argc, char **argv) {
10565 if ac_fn_c_try_run "$LINENO"; then :
10570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10571 conftest.$ac_objext conftest.beam conftest.$ac_ext
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10575 $as_echo "$have_tls" >&6; }
10576 if test "x$have_tls" = "xyes"; then
10578 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10585 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10586 if ${ax_cv_cc_builtin_choose_expr+:} false; then :
10587 $as_echo_n "(cached) " >&6
10590 if test "$cross_compiling" = yes; then :
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 as_fn_error $? "cannot run test program while cross compiling
10594 See \`config.log' for more details" "$LINENO" 5; }
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10600 int main(int argc, char **argv) {
10601 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10602 return __builtin_choose_expr(0, 1, 0);
10607 if ac_fn_c_try_run "$LINENO"; then :
10608 ax_cv_cc_builtin_choose_expr=yes
10610 ax_cv_cc_builtin_choose_expr=no
10613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10614 conftest.$ac_objext conftest.beam conftest.$ac_ext
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_choose_expr" >&5
10620 $as_echo "$ax_cv_cc_builtin_choose_expr" >&6; }
10621 if test "x$ax_cv_cc_builtin_choose_expr" = "xyes"; then
10623 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10629 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10630 if ${ax_cv_cc_builtin_types_compatible_p+:} false; then :
10631 $as_echo_n "(cached) " >&6
10634 if test "$cross_compiling" = yes; then :
10635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10637 as_fn_error $? "cannot run test program while cross compiling
10638 See \`config.log' for more details" "$LINENO" 5; }
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10644 int main(int argc, char **argv) {
10645 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10646 return !(__builtin_types_compatible_p(char *, char *));
10651 if ac_fn_c_try_run "$LINENO"; then :
10652 ax_cv_cc_builtin_types_compatible_p=yes
10654 ax_cv_cc_builtin_types_compatible_p=no
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10658 conftest.$ac_objext conftest.beam conftest.$ac_ext
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_types_compatible_p" >&5
10664 $as_echo "$ax_cv_cc_builtin_types_compatible_p" >&6; }
10665 if test "x$ax_cv_cc_builtin_types_compatible_p" = "xyes"; then
10667 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10673 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10674 if ${ax_cv_cc_builtin_bswap64+:} false; then :
10675 $as_echo_n "(cached) " >&6
10678 if test "$cross_compiling" = yes; then :
10679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10681 as_fn_error $? "cannot run test program while cross compiling
10682 See \`config.log' for more details" "$LINENO" 5; }
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10688 int main(int argc, char **argv) {
10689 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10690 return (__builtin_bswap64(0));
10695 if ac_fn_c_try_run "$LINENO"; then :
10696 ax_cv_cc_builtin_bswap64=yes
10698 ax_cv_cc_builtin_bswap64=no
10701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10702 conftest.$ac_objext conftest.beam conftest.$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_bswap64" >&5
10708 $as_echo "$ax_cv_cc_builtin_bswap64" >&6; }
10709 if test "x$ax_cv_cc_builtin_bswap64" = "xyes"; then
10711 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__bounded__)) support in compiler" >&5
10717 $as_echo_n "checking for __attribute__((__bounded__)) support in compiler... " >&6; }
10718 if ${ax_cv_cc_bounded_attribute+:} false; then :
10719 $as_echo_n "(cached) " >&6
10722 CFLAGS_SAVED=$CFLAGS
10723 CFLAGS="$CFLAGS -Werror"
10724 if test "$cross_compiling" = yes; then :
10725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10727 as_fn_error $? "cannot run test program while cross compiling
10728 See \`config.log' for more details" "$LINENO" 5; }
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10734 void test(char *buff) __attribute__ ((__bounded__ (__string__, 1, 1)));
10735 int main(int argc, char **argv) {
10736 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10742 if ac_fn_c_try_run "$LINENO"; then :
10743 ax_cv_cc_bounded_attribute=yes
10745 ax_cv_cc_bounded_attribute=no
10748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10749 conftest.$ac_objext conftest.beam conftest.$ac_ext
10752 CFLAGS="$CFLAGS_SAVED"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_bounded_attribute" >&5
10756 $as_echo "$ax_cv_cc_bounded_attribute" >&6; }
10757 if test "x$ax_cv_cc_bounded_attribute" = "xyes"; then
10759 $as_echo "#define HAVE_ATTRIBUTE_BOUNDED 1" >>confdefs.h
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10766 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10767 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10768 $as_echo_n "(cached) " >&6
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-ltalloc $LIBS"
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10781 char talloc_set_memlimit ();
10785 return talloc_set_memlimit ();
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_talloc_talloc_set_memlimit=yes
10793 ac_cv_lib_talloc_talloc_set_memlimit=no
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10800 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10801 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10804 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10812 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10813 if ${ac_cv_lib_crypt_crypt+:} false; then :
10814 $as_echo_n "(cached) " >&6
10816 ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-lcrypt $LIBS"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10821 /* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10836 if ac_fn_c_try_link "$LINENO"; then :
10837 ac_cv_lib_crypt_crypt=yes
10839 ac_cv_lib_crypt_crypt=no
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10846 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10847 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10853 if test "$CRYPTLIB" != ""; then
10855 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10858 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10859 if test "x$ac_cv_func_crypt" = xyes; then :
10861 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10868 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10869 if ${ac_cv_lib_cipher_setkey+:} false; then :
10870 $as_echo_n "(cached) " >&6
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lcipher $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 ac_cv_lib_cipher_setkey=yes
10895 ac_cv_lib_cipher_setkey=no
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10902 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10903 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10904 CRYPTLIB="${CRYPTLIB} -lcipher"
10912 # Check whether --with-execinfo-lib-dir was given.
10913 if test "${with_execinfo_lib_dir+set}" = set; then :
10914 withval=$with_execinfo_lib_dir; case "$withval" in
10916 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10921 execinfo_lib_dir="$withval"
10928 execinfo_include_dir=
10930 # Check whether --with-execinfo-include-dir was given.
10931 if test "${with_execinfo_include_dir+set}" = set; then :
10932 withval=$with_execinfo_include_dir; case "$withval" in
10934 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10939 execinfo_include_dir="$withval"
10946 smart_try_dir=$execinfo_include_dir
10949 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10950 old_CPPFLAGS="$CPPFLAGS"
10952 smart_include_dir="/usr/local/include /opt/include"
10955 _smart_include_dir=
10957 for _prefix in $smart_prefix ""; do
10958 for _dir in $smart_try_dir; do
10959 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10962 for _dir in $smart_include_dir; do
10963 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10967 if test "x$_smart_try_dir" != "x"; then
10968 for try in $_smart_try_dir; do
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10970 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10971 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 #include <execinfo.h>
10984 if ac_fn_c_try_compile "$LINENO"; then :
10986 smart_include="-isystem $try"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10988 $as_echo "yes" >&6; }
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 CPPFLAGS="$old_CPPFLAGS"
11003 if test "x$smart_include" = "x"; then
11004 for _prefix in $smart_prefix; do
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
11006 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11011 #include <execinfo.h>
11020 if ac_fn_c_try_compile "$LINENO"; then :
11022 smart_include="-isystem ${_prefix}/"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11024 $as_echo "yes" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 if test "x$smart_include" = "x"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
11040 $as_echo_n "checking for execinfo.h... " >&6; }
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 #include <execinfo.h>
11054 if ac_fn_c_try_compile "$LINENO"; then :
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11058 $as_echo "yes" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 if test "x$smart_include" = "x"; then
11073 for prefix in $smart_prefix; do
11076 if test "x$LOCATE" != "x"; then
11078 file="${_prefix}/${1}"
11080 for x in `${LOCATE} $file 2>/dev/null`; do
11081 base=`echo $x | sed "s%/${file}%%"`
11082 if test "x$x" = "x$base"; then
11086 dir=`${DIRNAME} $x 2>/dev/null`
11087 exclude=`echo ${dir} | ${GREP} /home`
11088 if test "x$exclude" != "x"; then
11092 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11093 if test "x$already" = "x"; then
11099 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11104 if test "x$LOCATE" != "x"; then
11108 for x in `${LOCATE} $file 2>/dev/null`; do
11109 base=`echo $x | sed "s%/${file}%%"`
11110 if test "x$x" = "x$base"; then
11114 dir=`${DIRNAME} $x 2>/dev/null`
11115 exclude=`echo ${dir} | ${GREP} /home`
11116 if test "x$exclude" != "x"; then
11120 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11121 if test "x$already" = "x"; then
11127 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11130 for try in $_smart_include_dir; do
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
11132 $as_echo_n "checking for execinfo.h in $try... " >&6; }
11133 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 #include <execinfo.h>
11146 if ac_fn_c_try_compile "$LINENO"; then :
11148 smart_include="-isystem $try"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 CPPFLAGS="$old_CPPFLAGS"
11165 if test "x$smart_include" != "x"; then
11166 eval "ac_cv_header_$ac_safe=yes"
11167 CPPFLAGS="$smart_include $old_CPPFLAGS"
11168 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11173 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
11174 smart_try_dir=$execinfo_lib_dir
11177 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
11178 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
11181 old_CPPFLAGS="$CPPFLAGS"
11186 if test "x$smart_try_dir" != "x"; then
11187 for try in $smart_try_dir; do
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11189 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11190 LIBS="-lexecinfo $old_LIBS"
11191 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 extern char backtrace_symbols();
11198 backtrace_symbols()
11203 if ac_fn_c_try_link "$LINENO"; then :
11205 smart_lib="-lexecinfo"
11206 smart_ldflags="-L$try -Wl,-rpath,$try"
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208 $as_echo "yes" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11219 CPPFLAGS="$old_CPPFLAGS"
11222 if test "x$smart_lib" = "x"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
11224 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
11225 LIBS="-lexecinfo $old_LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 extern char backtrace_symbols();
11232 backtrace_symbols()
11237 if ac_fn_c_try_link "$LINENO"; then :
11239 smart_lib="-lexecinfo"
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11252 if test "x$smart_lib" = "x"; then
11255 if test "x$LOCATE" != "x"; then
11257 file=libexecinfo${libltdl_cv_shlibext}
11259 for x in `${LOCATE} $file 2>/dev/null`; do
11260 base=`echo $x | sed "s%/${file}%%"`
11261 if test "x$x" = "x$base"; then
11265 dir=`${DIRNAME} $x 2>/dev/null`
11266 exclude=`echo ${dir} | ${GREP} /home`
11267 if test "x$exclude" != "x"; then
11271 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11272 if test "x$already" = "x"; then
11278 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11282 if test "x$LOCATE" != "x"; then
11286 for x in `${LOCATE} $file 2>/dev/null`; do
11287 base=`echo $x | sed "s%/${file}%%"`
11288 if test "x$x" = "x$base"; then
11292 dir=`${DIRNAME} $x 2>/dev/null`
11293 exclude=`echo ${dir} | ${GREP} /home`
11294 if test "x$exclude" != "x"; then
11298 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11299 if test "x$already" = "x"; then
11305 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11308 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11310 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11311 LIBS="-lexecinfo $old_LIBS"
11312 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 extern char backtrace_symbols();
11319 backtrace_symbols()
11324 if ac_fn_c_try_link "$LINENO"; then :
11326 smart_lib="-lexecinfo"
11327 smart_ldflags="-L$try -Wl,-rpath,$try"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11340 CPPFLAGS="$old_CPPFLAGS"
11343 if test "x$smart_lib" != "x"; then
11344 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11345 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11346 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11349 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11351 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11355 #include <execinfo.h>
11362 backtrace_symbols(&sym, sizeof(sym))
11367 if ac_fn_c_try_link "$LINENO"; then :
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11371 ac_cv_lib_execinfo_backtrace_symbols="yes"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11384 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11386 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11393 # Check whether --with-pcre was given.
11394 if test "${with_pcre+set}" = set; then :
11395 withval=$with_pcre; case "$withval" in
11409 # Check whether --with-pcre-lib-dir was given.
11410 if test "${with_pcre_lib_dir+set}" = set; then :
11411 withval=$with_pcre_lib_dir; case "$withval" in
11413 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11418 pcre_lib_dir="$withval"
11427 # Check whether --with-pcre-include-dir was given.
11428 if test "${with_pcre_include_dir+set}" = set; then :
11429 withval=$with_pcre_include_dir; case "$withval" in
11431 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11436 pcre_include_dir="$withval"
11445 # Check whether --with-regex was given.
11446 if test "${with_regex+set}" = set; then :
11447 withval=$with_regex; case "$withval" in
11458 if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
11459 smart_try_dir=$pcre_include_dir
11462 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11463 old_CPPFLAGS="$CPPFLAGS"
11465 smart_include_dir="/usr/local/include /opt/include"
11468 _smart_include_dir=
11470 for _prefix in $smart_prefix ""; do
11471 for _dir in $smart_try_dir; do
11472 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11475 for _dir in $smart_include_dir; do
11476 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11480 if test "x$_smart_try_dir" != "x"; then
11481 for try in $_smart_try_dir; do
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11483 $as_echo_n "checking for pcre.h in $try... " >&6; }
11484 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11497 if ac_fn_c_try_compile "$LINENO"; then :
11499 smart_include="-isystem $try"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 CPPFLAGS="$old_CPPFLAGS"
11516 if test "x$smart_include" = "x"; then
11517 for _prefix in $smart_prefix; do
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11519 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11533 if ac_fn_c_try_compile "$LINENO"; then :
11535 smart_include="-isystem ${_prefix}/"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 $as_echo "yes" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 if test "x$smart_include" = "x"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11553 $as_echo_n "checking for pcre.h... " >&6; }
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11567 if ac_fn_c_try_compile "$LINENO"; then :
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11571 $as_echo "yes" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584 if test "x$smart_include" = "x"; then
11586 for prefix in $smart_prefix; do
11589 if test "x$LOCATE" != "x"; then
11591 file="${_prefix}/${1}"
11593 for x in `${LOCATE} $file 2>/dev/null`; do
11594 base=`echo $x | sed "s%/${file}%%"`
11595 if test "x$x" = "x$base"; then
11599 dir=`${DIRNAME} $x 2>/dev/null`
11600 exclude=`echo ${dir} | ${GREP} /home`
11601 if test "x$exclude" != "x"; then
11605 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11606 if test "x$already" = "x"; then
11612 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11617 if test "x$LOCATE" != "x"; then
11621 for x in `${LOCATE} $file 2>/dev/null`; do
11622 base=`echo $x | sed "s%/${file}%%"`
11623 if test "x$x" = "x$base"; then
11627 dir=`${DIRNAME} $x 2>/dev/null`
11628 exclude=`echo ${dir} | ${GREP} /home`
11629 if test "x$exclude" != "x"; then
11633 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11634 if test "x$already" = "x"; then
11640 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11643 for try in $_smart_include_dir; do
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11645 $as_echo_n "checking for pcre.h in $try... " >&6; }
11646 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11659 if ac_fn_c_try_compile "$LINENO"; then :
11661 smart_include="-isystem $try"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663 $as_echo "yes" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 CPPFLAGS="$old_CPPFLAGS"
11678 if test "x$smart_include" != "x"; then
11679 eval "ac_cv_header_$ac_safe=yes"
11680 CPPFLAGS="$smart_include $old_CPPFLAGS"
11681 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11686 if test "x$ac_cv_header_pcre_h" = "xyes"; then
11687 smart_try_dir=$pcre_lib_dir
11690 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11691 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11694 old_CPPFLAGS="$CPPFLAGS"
11699 if test "x$smart_try_dir" != "x"; then
11700 for try in $smart_try_dir; do
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11702 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11703 LIBS="-lpcre $old_LIBS"
11704 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11707 extern char pcre_compile();
11716 if ac_fn_c_try_link "$LINENO"; then :
11719 smart_ldflags="-L$try -Wl,-rpath,$try"
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11721 $as_echo "yes" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11732 CPPFLAGS="$old_CPPFLAGS"
11735 if test "x$smart_lib" = "x"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11737 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11738 LIBS="-lpcre $old_LIBS"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 extern char pcre_compile();
11750 if ac_fn_c_try_link "$LINENO"; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11765 if test "x$smart_lib" = "x"; then
11768 if test "x$LOCATE" != "x"; then
11770 file=libpcre${libltdl_cv_shlibext}
11772 for x in `${LOCATE} $file 2>/dev/null`; do
11773 base=`echo $x | sed "s%/${file}%%"`
11774 if test "x$x" = "x$base"; then
11778 dir=`${DIRNAME} $x 2>/dev/null`
11779 exclude=`echo ${dir} | ${GREP} /home`
11780 if test "x$exclude" != "x"; then
11784 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11785 if test "x$already" = "x"; then
11791 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11795 if test "x$LOCATE" != "x"; then
11799 for x in `${LOCATE} $file 2>/dev/null`; do
11800 base=`echo $x | sed "s%/${file}%%"`
11801 if test "x$x" = "x$base"; then
11805 dir=`${DIRNAME} $x 2>/dev/null`
11806 exclude=`echo ${dir} | ${GREP} /home`
11807 if test "x$exclude" != "x"; then
11811 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11812 if test "x$already" = "x"; then
11818 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11821 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11823 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11824 LIBS="-lpcre $old_LIBS"
11825 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11828 extern char pcre_compile();
11837 if ac_fn_c_try_link "$LINENO"; then :
11840 smart_ldflags="-L$try -Wl,-rpath,$try"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11853 CPPFLAGS="$old_CPPFLAGS"
11856 if test "x$smart_lib" != "x"; then
11857 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11858 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11859 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11862 if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11865 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11868 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11874 if test "x$REGEX" = "x"; then
11878 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11879 old_CPPFLAGS="$CPPFLAGS"
11881 smart_include_dir="/usr/local/include /opt/include"
11884 _smart_include_dir=
11886 for _prefix in $smart_prefix ""; do
11887 for _dir in $smart_try_dir; do
11888 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11891 for _dir in $smart_include_dir; do
11892 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11896 if test "x$_smart_try_dir" != "x"; then
11897 for try in $_smart_try_dir; do
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11899 $as_echo_n "checking for regex.h in $try... " >&6; }
11900 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11913 if ac_fn_c_try_compile "$LINENO"; then :
11915 smart_include="-isystem $try"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 CPPFLAGS="$old_CPPFLAGS"
11932 if test "x$smart_include" = "x"; then
11933 for _prefix in $smart_prefix; do
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11935 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11949 if ac_fn_c_try_compile "$LINENO"; then :
11951 smart_include="-isystem ${_prefix}/"
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11953 $as_echo "yes" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 if test "x$smart_include" = "x"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11969 $as_echo_n "checking for regex.h... " >&6; }
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11983 if ac_fn_c_try_compile "$LINENO"; then :
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 if test "x$smart_include" = "x"; then
12002 for prefix in $smart_prefix; do
12005 if test "x$LOCATE" != "x"; then
12007 file="${_prefix}/${1}"
12009 for x in `${LOCATE} $file 2>/dev/null`; do
12010 base=`echo $x | sed "s%/${file}%%"`
12011 if test "x$x" = "x$base"; then
12015 dir=`${DIRNAME} $x 2>/dev/null`
12016 exclude=`echo ${dir} | ${GREP} /home`
12017 if test "x$exclude" != "x"; then
12021 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12022 if test "x$already" = "x"; then
12028 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12033 if test "x$LOCATE" != "x"; then
12037 for x in `${LOCATE} $file 2>/dev/null`; do
12038 base=`echo $x | sed "s%/${file}%%"`
12039 if test "x$x" = "x$base"; then
12043 dir=`${DIRNAME} $x 2>/dev/null`
12044 exclude=`echo ${dir} | ${GREP} /home`
12045 if test "x$exclude" != "x"; then
12049 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12050 if test "x$already" = "x"; then
12056 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12059 for try in $_smart_include_dir; do
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
12061 $as_echo_n "checking for regex.h in $try... " >&6; }
12062 CPPFLAGS="-isystem $try $old_CPPFLAGS"
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12075 if ac_fn_c_try_compile "$LINENO"; then :
12077 smart_include="-isystem $try"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 CPPFLAGS="$old_CPPFLAGS"
12094 if test "x$smart_include" != "x"; then
12095 eval "ac_cv_header_$ac_safe=yes"
12096 CPPFLAGS="$smart_include $old_CPPFLAGS"
12097 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
12102 if test "x$ac_cv_header_regex_h" = "xyes"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
12105 $as_echo_n "checking for extended regular expressions... " >&6; }
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12110 #ifdef REG_EXTENDED
12115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12116 $EGREP "yes" >/dev/null 2>&1; then :
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12119 $as_echo "yes" >&6; }
12121 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
12135 $as_echo_n "checking for regcomp in -lregex... " >&6; }
12136 if ${ac_cv_lib_regex_regcomp+:} false; then :
12137 $as_echo_n "(cached) " >&6
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-lregex $LIBS"
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_lib_regex_regcomp=yes
12162 ac_cv_lib_regex_regcomp=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
12169 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
12170 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
12172 LIBS="-lregex $LIBS"
12183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12185 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12186 cat >>confdefs.h <<_ACEOF
12187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 if test x"$ac_cv_func_regncomp" = x"yes" && test x"$ac_cv_func_regnexec" = x"yes"; then
12195 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
12201 if test "x$REGEX" = "xyes"; then
12203 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
12208 $as_echo "#define GNUSTYLE 1" >>confdefs.h
12212 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
12216 $as_echo "#define BSDSTYLE 3" >>confdefs.h
12219 gethostbyaddrrstyle=""
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
12221 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
12224 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
12225 #ifdef HAVE_NETDB_H
12230 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
12239 if test $ac_have_decl = 1; then :
12244 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12246 gethostbyaddrrstyle=BSD
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
12248 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
12255 if test "x$gethostbyaddrrstyle" = "x"; then
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12265 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
12270 if ac_fn_c_try_link "$LINENO"; then :
12273 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12275 gethostbyaddrrstyle=GNU
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12283 if test "x$gethostbyaddrrstyle" = "x"; then
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12293 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12298 if ac_fn_c_try_link "$LINENO"; then :
12301 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12303 gethostbyaddrrstyle=SYSV
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12312 if test "x$gethostbyaddrrstyle" = "x"; then
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12322 gethostbyaddr(NULL, 0, 0)
12327 if ac_fn_c_try_link "$LINENO"; then :
12330 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12332 gethostbyaddrrstyle=BSD
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12340 if test "x$gethostbyaddrrstyle" = "x"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12342 $as_echo "none! It must not exist, here." >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12345 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12348 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12350 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12353 gethostbynamerstyle=""
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12355 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12365 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12370 if ac_fn_c_try_link "$LINENO"; then :
12373 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12375 gethostbynamerstyle=GNU
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12382 if test "x$gethostbynamerstyle" = "x"; then
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12392 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12397 if ac_fn_c_try_link "$LINENO"; then :
12400 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12402 gethostbynamerstyle=SYSV
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12410 if test "x$gethostbynamerstyle" = "x"; then
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12420 gethostbyname(NULL)
12425 if ac_fn_c_try_link "$LINENO"; then :
12428 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12430 gethostbynamerstyle=BSD
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12438 if test "x$gethostbynamerstyle" = "x"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12440 $as_echo "none! It must not exist, here." >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12443 $as_echo "${gethostbynamerstyle}-style" >&6; }
12446 if test "x$gethostbynamerstyle" = "xBSD"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12448 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12451 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12453 $as_echo_n "checking getpwnam_r... " >&6; }
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 #include <stdlib.h>
12458 #include <sys/types.h>
12464 getpwnam_r(NULL, NULL, NULL, 0, NULL)
12469 if ac_fn_c_try_link "$LINENO"; then :
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12472 $as_echo "yes" >&6; }
12474 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12488 if test "x$ac_cv_header_grp_h" = "xyes"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12490 $as_echo_n "checking getgrnam_r... " >&6; }
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12494 #include <stdlib.h>
12495 #include <sys/types.h>
12501 getgrnam_r(NULL, NULL, NULL, 0, NULL)
12506 if ac_fn_c_try_link "$LINENO"; then :
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12511 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12527 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12530 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12534 $as_echo_n "checking ctime_r() syntax... " >&6; }
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12543 ctime_r(NULL, NULL, 0)
12548 if ac_fn_c_try_link "$LINENO"; then :
12551 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12553 ctimerstyle="SOLARIS"
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12560 if test "x$ctimerstyle" = "x"; then
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12569 ctime_r(NULL, NULL)
12574 if ac_fn_c_try_link "$LINENO"; then :
12577 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12579 ctimerstyle="POSIX"
12583 rm -f core conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12587 if test "x$ctimerstyle" = "x"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12589 $as_echo "none! It must not exist, here." >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12592 $as_echo "${ctimerstyle}-style" >&6; }
12600 export top_builddir
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12602 $as_echo "top_builddir=$top_builddir" >&6; }
12607 if test "x$EXPERIMENTAL" = "xyes"; then
12608 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12609 MODULES="$MODULES $foo"
12612 for foo in `cat "${srcdir}"/src/modules/stable`; do
12613 MODULES="$MODULES $foo"
12618 for bar in $MODULES; do
12619 if test -f "${srcdir}"/src/modules/$bar/configure; then
12620 mysubdirs="$mysubdirs src/modules/$bar"
12626 subdirs="$subdirs $mysubdirs"
12630 if test "x$werror" == "xyes"; then
12631 CFLAGS="-Werror $CFLAGS"
12634 ac_config_commands="$ac_config_commands stamp-h"
12636 ac_config_commands="$ac_config_commands build-radpaths-h"
12638 ac_config_commands="$ac_config_commands main-chmod"
12640 ac_config_commands="$ac_config_commands scripts-chmod"
12647 USE_STATIC_LIBS="yes"
12652 unset ac_cv_env_LIBS_set
12653 unset ac_cv_env_LIBS_value
12655 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"
12657 cat >confcache <<\_ACEOF
12658 # This file is a shell script that caches the results of configure
12659 # tests run on this system so they can be shared between configure
12660 # scripts and configure runs, see configure's option --config-cache.
12661 # It is not useful on other systems. If it contains results you don't
12662 # want to keep, you may remove or edit it.
12664 # config.status only pays attention to the cache file if you give it
12665 # the --recheck option to rerun configure.
12667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12669 # following values.
12673 # The following way of writing the cache mishandles newlines in values,
12674 # but we know of no workaround that is simple, portable, and efficient.
12675 # So, we kill variables containing newlines.
12676 # Ultrix sh set writes to stderr and can't be redirected directly,
12677 # and sets the high bit in the cache file unless we assign to the vars.
12679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12680 eval ac_val=\$$ac_var
12684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12688 _ | IFS | as_nl) ;; #(
12689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12690 *) { eval $ac_var=; unset $ac_var;} ;;
12696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12697 *${as_nl}ac_space=\ *)
12698 # `set' does not quote correctly, so add quotes: double-quote
12699 # substitution turns \\\\ into \\, and sed turns \\ into \.
12702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12705 # `set' quotes correctly as required by POSIX, so do not add quotes.
12706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12720 if test -w "$cache_file"; then
12721 if test "x$cache_file" != "x/dev/null"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12723 $as_echo "$as_me: updating cache $cache_file" >&6;}
12724 if test ! -f "$cache_file" || test -h "$cache_file"; then
12725 cat confcache >"$cache_file"
12727 case $cache_file in #(
12729 mv -f confcache "$cache_file"$$ &&
12730 mv -f "$cache_file"$$ "$cache_file" ;; #(
12732 mv -f confcache "$cache_file" ;;
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12744 # Let make expand exec_prefix.
12745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12747 DEFS=-DHAVE_CONFIG_H
12752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12753 # 1. Remove the extension, and $U if already installed.
12754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12757 # will be set to the directory where LIBOBJS objects are built.
12758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12761 LIBOBJS=$ac_libobjs
12763 LTLIBOBJS=$ac_ltlibobjs
12768 : "${CONFIG_STATUS=./config.status}"
12770 ac_clean_files_save=$ac_clean_files
12771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12777 # Generated by $as_me.
12778 # Run this file to recreate the current configuration.
12779 # Compiler output produced by configure, useful for debugging
12780 # configure, is in config.log if it exists.
12783 ac_cs_recheck=false
12786 SHELL=\${CONFIG_SHELL-$SHELL}
12789 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12790 ## -------------------- ##
12791 ## M4sh Initialization. ##
12792 ## -------------------- ##
12794 # Be more Bourne compatible
12795 DUALCASE=1; export DUALCASE # for MKS sh
12796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12800 # is contrary to our usage. Disable this feature.
12801 alias -g '${1+"$@"}'='"$@"'
12802 setopt NO_GLOB_SUBST
12804 case `(set -o) 2>/dev/null` in #(
12816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12817 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12820 # Prefer a ksh shell builtin over an external printf program on Solaris,
12821 # but without wasting forks for bash or zsh.
12822 if test -z "$BASH_VERSION$ZSH_VERSION" \
12823 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12824 as_echo='print -r --'
12825 as_echo_n='print -rn --'
12826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12827 as_echo='printf %s\n'
12828 as_echo_n='printf %s'
12830 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12831 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12832 as_echo_n='/usr/ucb/echo -n'
12834 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12835 as_echo_n_body='eval
12839 expr "X$arg" : "X\\(.*\\)$as_nl";
12840 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12842 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12844 export as_echo_n_body
12845 as_echo_n='sh -c $as_echo_n_body as_echo'
12847 export as_echo_body
12848 as_echo='sh -c $as_echo_body as_echo'
12851 # The user is always right.
12852 if test "${PATH_SEPARATOR+set}" != set; then
12854 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12855 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12862 # We need space, tab and new line, in precisely that order. Quoting is
12863 # there to prevent editors from complaining about space-tab.
12864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12865 # splitting by setting IFS to empty value.)
12868 # Find who we are. Look in the path if we contain no directory separator.
12871 *[\\/]* ) as_myself=$0 ;;
12872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12876 test -z "$as_dir" && as_dir=.
12877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12883 # We did not find ourselves, most probably we were run as `sh COMMAND'
12884 # in which case we are not to be found in the path.
12885 if test "x$as_myself" = x; then
12888 if test ! -f "$as_myself"; then
12889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12893 # Unset variables that we do not need and which cause bugs (e.g. in
12894 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12895 # suppresses any "Segmentation fault" message there. '((' could
12896 # trigger a bug in pdksh 5.2.14.
12897 for as_var in BASH_ENV ENV MAIL MAILPATH
12898 do eval test x\${$as_var+set} = xset \
12899 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12912 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12916 # ----------------------------------------
12917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12919 # script with STATUS, using 1 if that was 0.
12922 as_status=$1; test $as_status -eq 0 && as_status=1
12924 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12925 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12927 $as_echo "$as_me: error: $2" >&2
12928 as_fn_exit $as_status
12932 # as_fn_set_status STATUS
12933 # -----------------------
12934 # Set $? to STATUS, without forking.
12935 as_fn_set_status ()
12938 } # as_fn_set_status
12940 # as_fn_exit STATUS
12941 # -----------------
12942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12946 as_fn_set_status $1
12952 # Portably unset VAR.
12955 { eval $1=; unset $1;}
12957 as_unset=as_fn_unset
12958 # as_fn_append VAR VALUE
12959 # ----------------------
12960 # Append the text in VALUE to the end of the definition contained in VAR. Take
12961 # advantage of any shell optimizations that allow amortized linear growth over
12962 # repeated appends, instead of the typical quadratic growth present in naive
12964 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12965 eval 'as_fn_append ()
12976 # as_fn_arith ARG...
12977 # ------------------
12978 # Perform arithmetic evaluation on the ARGs, and store the result in the
12979 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12980 # must be portable across $(()) and expr.
12981 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12982 eval 'as_fn_arith ()
12989 as_val=`expr "$@" || test $? -eq 1`
12994 if expr a : '\(a\)' >/dev/null 2>&1 &&
12995 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13001 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13002 as_basename=basename
13007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13013 as_me=`$as_basename -- "$0" ||
13014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13015 X"$0" : 'X\(//\)$' \| \
13016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13018 sed '/^.*\/\([^/][^/]*\)\/*$/{
13032 # Avoid depending upon Character Ranges.
13033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13036 as_cr_digits='0123456789'
13037 as_cr_alnum=$as_cr_Letters$as_cr_digits
13039 ECHO_C= ECHO_N= ECHO_T=
13040 case `echo -n x` in #(((((
13042 case `echo 'xy\c'` in
13043 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13045 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13052 rm -f conf$$ conf$$.exe conf$$.file
13053 if test -d conf$$.dir; then
13054 rm -f conf$$.dir/conf$$.file
13057 mkdir conf$$.dir 2>/dev/null
13059 if (echo >conf$$.file) 2>/dev/null; then
13060 if ln -s conf$$.file conf$$ 2>/dev/null; then
13062 # ... but there are two gotchas:
13063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13065 # In both cases, we have to default to `cp -pR'.
13066 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13068 elif ln conf$$.file conf$$ 2>/dev/null; then
13076 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13077 rmdir conf$$.dir 2>/dev/null
13082 # Create "$as_dir" as a directory, including parents if necessary.
13087 -*) as_dir=./$as_dir;;
13089 test -d "$as_dir" || eval $as_mkdir_p || {
13093 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13094 *) as_qdir=$as_dir;;
13096 as_dirs="'$as_qdir' $as_dirs"
13097 as_dir=`$as_dirname -- "$as_dir" ||
13098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13099 X"$as_dir" : 'X\(//\)[^/]' \| \
13100 X"$as_dir" : 'X\(//\)$' \| \
13101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13102 $as_echo X"$as_dir" |
13103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13107 /^X\(\/\/\)[^/].*/{
13120 test -d "$as_dir" && break
13122 test -z "$as_dirs" || eval "mkdir $as_dirs"
13123 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13127 if mkdir -p . 2>/dev/null; then
13128 as_mkdir_p='mkdir -p "$as_dir"'
13130 test -d ./-p && rmdir ./-p
13135 # as_fn_executable_p FILE
13136 # -----------------------
13137 # Test if FILE is an executable regular file.
13138 as_fn_executable_p ()
13140 test -f "$1" && test -x "$1"
13141 } # as_fn_executable_p
13142 as_test_x='test -x'
13143 as_executable_p=as_fn_executable_p
13145 # Sed expression to map a string onto a valid CPP name.
13146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13148 # Sed expression to map a string onto a valid variable name.
13149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13153 ## ----------------------------------- ##
13154 ## Main body of $CONFIG_STATUS script. ##
13155 ## ----------------------------------- ##
13157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13160 # Save the log message, to keep $0 and so on meaningful, and to
13161 # report actual input values of CONFIG_FILES etc. instead of their
13162 # values after options handling.
13164 This file was extended by freeradius $as_me $Id$, which was
13165 generated by GNU Autoconf 2.69. Invocation command line was
13167 CONFIG_FILES = $CONFIG_FILES
13168 CONFIG_HEADERS = $CONFIG_HEADERS
13169 CONFIG_LINKS = $CONFIG_LINKS
13170 CONFIG_COMMANDS = $CONFIG_COMMANDS
13173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13178 case $ac_config_files in *"
13179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13182 case $ac_config_headers in *"
13183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13188 # Files that config.status was made for.
13189 config_files="$ac_config_files"
13190 config_headers="$ac_config_headers"
13191 config_commands="$ac_config_commands"
13195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13197 \`$as_me' instantiates files and other configuration actions
13198 from templates according to the current configuration. Unless the files
13199 and actions are specified as TAGs, all are instantiated by default.
13201 Usage: $0 [OPTION]... [TAG]...
13203 -h, --help print this help, then exit
13204 -V, --version print version number and configuration settings, then exit
13205 --config print configuration, then exit
13206 -q, --quiet, --silent
13207 do not print progress messages
13208 -d, --debug don't remove temporary files
13209 --recheck update $as_me by reconfiguring in the same conditions
13210 --file=FILE[:TEMPLATE]
13211 instantiate the configuration file FILE
13212 --header=FILE[:TEMPLATE]
13213 instantiate the configuration header FILE
13215 Configuration files:
13218 Configuration headers:
13221 Configuration commands:
13224 Report bugs to <http://bugs.freeradius.org>.
13225 freeradius home page: <http://www.freeradius.org>."
13228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13231 freeradius config.status $Id$
13232 configured by $0, generated by GNU Autoconf 2.69,
13233 with options \\"\$ac_cs_config\\"
13235 Copyright (C) 2012 Free Software Foundation, Inc.
13236 This config.status script is free software; the Free Software Foundation
13237 gives unlimited permission to copy, distribute and modify it."
13241 test -n "\$AWK" || AWK=awk
13244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13245 # The default lists apply if the user does not specify any file.
13251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13268 # Handling of the options.
13269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13272 $as_echo "$ac_cs_version"; exit ;;
13273 --config | --confi | --conf | --con | --co | --c )
13274 $as_echo "$ac_cs_config"; exit ;;
13275 --debug | --debu | --deb | --de | --d | -d )
13277 --file | --fil | --fi | --f )
13280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13281 '') as_fn_error $? "missing file argument" ;;
13283 as_fn_append CONFIG_FILES " '$ac_optarg'"
13284 ac_need_defaults=false;;
13285 --header | --heade | --head | --hea )
13288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13290 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13291 ac_need_defaults=false;;
13293 # Conflict between --help and --header
13294 as_fn_error $? "ambiguous option: \`$1'
13295 Try \`$0 --help' for more information.";;
13296 --help | --hel | -h )
13297 $as_echo "$ac_cs_usage"; exit ;;
13298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13302 # This is an error.
13303 -*) as_fn_error $? "unrecognized option: \`$1'
13304 Try \`$0 --help' for more information." ;;
13306 *) as_fn_append ac_config_targets " $1"
13307 ac_need_defaults=false ;;
13313 ac_configure_extra_args=
13315 if $ac_cs_silent; then
13317 ac_configure_extra_args="$ac_configure_extra_args --silent"
13321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322 if \$ac_cs_recheck; then
13323 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13326 CONFIG_SHELL='$SHELL'
13327 export CONFIG_SHELL
13332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13337 ## Running $as_me. ##
13343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13348 # Handling of arguments.
13349 for ac_config_target in $ac_config_targets
13351 case $ac_config_target in
13352 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13353 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13354 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13355 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13356 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13357 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13358 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13359 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13360 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13361 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13362 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13363 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13364 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13365 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13366 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13367 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13368 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13370 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13375 # If the user did not use the arguments to specify the items to instantiate,
13376 # then the envvar interface is used. Set only those that are not.
13377 # We use the long form for the default assignment because of an extremely
13378 # bizarre bug on SunOS 4.1.3.
13379 if $ac_need_defaults; then
13380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13385 # Have a temporary directory for convenience. Make it in the build tree
13386 # simply because there is no reason against having it here, and in addition,
13387 # creating and moving files from /tmp can sometimes cause problems.
13388 # Hook for its removal unless debugging.
13389 # Note that there is a small window in which the directory will not be cleaned:
13390 # after its creation but before its name has been assigned to `$tmp'.
13394 trap 'exit_status=$?
13395 : "${ac_tmp:=$tmp}"
13396 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13398 trap 'as_fn_exit 1' 1 2 13 15
13400 # Create a (secure) tmp directory for tmp files.
13403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13407 tmp=./conf$$-$RANDOM
13408 (umask 077 && mkdir "$tmp")
13409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13412 # Set up the scripts for CONFIG_FILES section.
13413 # No need to generate them if there are no CONFIG_FILES.
13414 # This happens for instance with `./config.status config.h'.
13415 if test -n "$CONFIG_FILES"; then
13418 ac_cr=`echo X | tr X '\015'`
13419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13420 # But we know of no other shell where ac_cr would be empty at this
13421 # point, so we can use a bashism as a fallback.
13422 if test "x$ac_cr" = x; then
13423 eval ac_cr=\$\'\\r\'
13425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13429 ac_cs_awk_cr=$ac_cr
13432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13437 echo "cat >conf$$subs.awk <<_ACEOF" &&
13438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13440 } >conf$$subs.sh ||
13441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13444 for ac_last_try in false false false false false :; do
13445 . ./conf$$subs.sh ||
13446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13448 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13449 if test $ac_delim_n = $ac_delim_num; then
13451 elif $ac_last_try; then
13452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13457 rm -f conf$$subs.sh
13459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13464 s/^/S["/; s/!.*/"]=/
13474 s/\(.\{148\}\)..*/\1/
13476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13488 s/\(.\{148\}\)..*/\1/
13490 s/["\\]/\\&/g; s/^/"/; s/$/"/
13494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13499 ' <conf$$subs.awk | sed '
13504 ' >>$CONFIG_STATUS || ac_write_fail=1
13505 rm -f conf$$subs.awk
13506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13509 for (key in S) S_is_set[key] = 1
13515 nfields = split(line, field, "@")
13517 len = length(field[1])
13518 for (i = 2; i < nfields; i++) {
13520 keylen = length(key)
13521 if (S_is_set[key]) {
13523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13524 len += length(value) + length(field[++i])
13535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13541 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13546 # trailing colons and then remove the whole line if VPATH becomes empty
13547 # (actually we leave an empty line to preserve line numbers).
13548 if test "x$srcdir" = x.; then
13549 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13568 fi # test -n "$CONFIG_FILES"
13570 # Set up the scripts for CONFIG_HEADERS section.
13571 # No need to generate them if there are no CONFIG_HEADERS.
13572 # This happens for instance with `./config.status Makefile'.
13573 if test -n "$CONFIG_HEADERS"; then
13574 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13578 # Transform confdefs.h into an awk script `defines.awk', embedded as
13579 # here-document in config.status, that substitutes the proper values into
13580 # config.h.in to produce config.h.
13582 # Create a delimiter string that does not exist in confdefs.h, to ease
13583 # handling of long lines.
13585 for ac_last_try in false false :; do
13586 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13587 if test -z "$ac_tt"; then
13589 elif $ac_last_try; then
13590 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13596 # For the awk script, D is an array of macro values keyed by name,
13597 # likewise P contains macro parameters if any. Preserve backslash
13598 # newline sequences.
13600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13602 s/.\{148\}/&'"$ac_delim"'/g
13605 s/^[ ]*#[ ]*define[ ][ ]*/ /
13612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13619 D["\1"]=" \3\\\\\\n"\\/p
13621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13626 s/.\{148\}/&'"$ac_delim"'/g
13631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13636 ' <confdefs.h | sed '
13637 s/'"$ac_delim"'/"\\\
13638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13641 for (key in D) D_is_set[key] = 1
13644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13646 split(line, arg, " ")
13647 if (arg[1] == "#") {
13651 defundef = substr(arg[1], 2)
13654 split(mac1, mac2, "(") #)
13656 prefix = substr(line, 1, index(line, defundef) - 1)
13657 if (D_is_set[macro]) {
13658 # Preserve the white space surrounding the "#".
13659 print prefix "define", macro P[macro] D[macro]
13662 # Replace #undef with comments. This is necessary, for example,
13663 # in the case of _POSIX_SOURCE, which is predefined and required
13664 # on some systems where configure will not decide to define it.
13665 if (defundef == "undef") {
13666 print "/*", prefix defundef, macro, "*/"
13674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13675 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13676 fi # test -n "$CONFIG_HEADERS"
13679 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13684 :[FHLC]) ac_mode=$ac_tag; continue;;
13686 case $ac_mode$ac_tag in
13688 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13689 :[FH]-) ac_tag=-:-;;
13690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13707 -) ac_f="$ac_tmp/stdin";;
13708 *) # Look for the file first in the build tree, then in the source tree
13709 # (if the path is not absolute). The absolute path cannot be DOS-style,
13710 # because $ac_f cannot contain `:'.
13714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13716 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13718 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13719 as_fn_append ac_file_inputs " '$ac_f'"
13722 # Let's still pretend it is `configure' which instantiates (i.e., don't
13723 # use $as_me), people would be surprised to read:
13724 # /* config.h. Generated by config.status. */
13725 configure_input='Generated from '`
13726 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13728 if test x"$ac_file" != x-; then
13729 configure_input="$ac_file. $configure_input"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13731 $as_echo "$as_me: creating $ac_file" >&6;}
13733 # Neutralize special characters interpreted by sed in replacement strings.
13734 case $configure_input in #(
13735 *\&* | *\|* | *\\* )
13736 ac_sed_conf_input=`$as_echo "$configure_input" |
13737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13738 *) ac_sed_conf_input=$configure_input;;
13742 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13748 ac_dir=`$as_dirname -- "$ac_file" ||
13749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13750 X"$ac_file" : 'X\(//\)[^/]' \| \
13751 X"$ac_file" : 'X\(//\)$' \| \
13752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13753 $as_echo X"$ac_file" |
13754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13758 /^X\(\/\/\)[^/].*/{
13771 as_dir="$ac_dir"; as_fn_mkdir_p
13775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13778 # A ".." for each directory in $ac_dir_suffix.
13779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13780 case $ac_top_builddir_sub in
13781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13785 ac_abs_top_builddir=$ac_pwd
13786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13787 # for backward compatibility:
13788 ac_top_builddir=$ac_top_build_prefix
13791 .) # We are building in place.
13793 ac_top_srcdir=$ac_top_builddir_sub
13794 ac_abs_top_srcdir=$ac_pwd ;;
13795 [\\/]* | ?:[\\/]* ) # Absolute name.
13796 ac_srcdir=$srcdir$ac_dir_suffix;
13797 ac_top_srcdir=$srcdir
13798 ac_abs_top_srcdir=$srcdir ;;
13799 *) # Relative name.
13800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13801 ac_top_srcdir=$ac_top_build_prefix$srcdir
13802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13816 # If the template does not know about datarootdir, expand it.
13817 # FIXME: This hack should be removed a few years after 2.60.
13818 ac_datarootdir_hack=; ac_datarootdir_seen=
13829 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13830 *datarootdir*) ac_datarootdir_seen=yes;;
13831 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13833 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13836 ac_datarootdir_hack='
13837 s&@datadir@&$datadir&g
13838 s&@docdir@&$docdir&g
13839 s&@infodir@&$infodir&g
13840 s&@localedir@&$localedir&g
13841 s&@mandir@&$mandir&g
13842 s&\\\${datarootdir}&$datarootdir&g' ;;
13846 # Neutralize VPATH when `$srcdir' = `.'.
13847 # Shell code in configure.ac might set extrasub.
13848 # FIXME: do we really want to maintain this feature?
13849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13850 ac_sed_extra="$ac_vpsub
13853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13856 s|@configure_input@|$ac_sed_conf_input|;t t
13857 s&@top_builddir@&$ac_top_builddir_sub&;t t
13858 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13859 s&@srcdir@&$ac_srcdir&;t t
13860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13861 s&@top_srcdir@&$ac_top_srcdir&;t t
13862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13863 s&@builddir@&$ac_builddir&;t t
13864 s&@abs_builddir@&$ac_abs_builddir&;t t
13865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13866 $ac_datarootdir_hack
13868 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13869 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13872 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13874 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13876 which seems to be undefined. Please make sure it is defined" >&5
13877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13878 which seems to be undefined. Please make sure it is defined" >&2;}
13880 rm -f "$ac_tmp/stdin"
13882 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13883 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13891 if test x"$ac_file" != x-; then
13893 $as_echo "/* $configure_input */" \
13894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13895 } >"$ac_tmp/config.h" \
13896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13897 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13902 mv "$ac_tmp/config.h" "$ac_file" \
13903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13906 $as_echo "/* $configure_input */" \
13907 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13908 || as_fn_error $? "could not create -" "$LINENO" 5
13912 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13913 $as_echo "$as_me: executing $ac_file commands" >&6;}
13918 case $ac_file$ac_mode in
13919 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13920 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13921 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13922 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13930 ac_clean_files=$ac_clean_files_save
13932 test $ac_write_fail = 0 ||
13933 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13936 # configure is writing to config.log, and then calls config.status.
13937 # config.status does its own redirection, appending to config.log.
13938 # Unfortunately, on DOS this fails, as config.log is still kept open
13939 # by configure, so config.status won't be able to write to it; its
13940 # output is simply discarded. So we exec the FD to /dev/null,
13941 # effectively closing config.log, so it can be properly (re)opened and
13942 # appended to by config.status. When coming back to configure, we
13943 # need to make the FD available again.
13944 if test "$no_create" != yes; then
13946 ac_config_status_args=
13947 test "$silent" = yes &&
13948 ac_config_status_args="$ac_config_status_args --quiet"
13950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13953 # would make configure fail if this is the last instruction.
13954 $ac_cs_success || as_fn_exit 1
13958 # CONFIG_SUBDIRS section.
13960 if test "$no_recursion" != yes; then
13962 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13963 # so they do not pile up.
13964 ac_sub_configure_args=
13966 eval "set x $ac_configure_args"
13970 if test -n "$ac_prev"; then
13975 -cache-file | --cache-file | --cache-fil | --cache-fi \
13976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13977 ac_prev=cache_file ;;
13978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13982 --config-cache | -C)
13984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13992 --disable-option-checking)
13996 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13998 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14002 # Always prepend --prefix to ensure using the same prefix
14003 # in subdir configurations.
14004 ac_arg="--prefix=$prefix"
14006 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14008 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14011 if test "$silent" = yes; then
14012 ac_sub_configure_args="--silent $ac_sub_configure_args"
14015 # Always prepend --disable-option-checking to silence warnings, since
14016 # different subdirs can have different --enable and --with options.
14017 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14020 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14022 # Do not complain, so a configure script can configure whichever
14023 # parts of a large source tree are present.
14024 test -d "$srcdir/$ac_dir" || continue
14026 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14028 $as_echo "$ac_msg" >&6
14029 as_dir="$ac_dir"; as_fn_mkdir_p
14033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14036 # A ".." for each directory in $ac_dir_suffix.
14037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14038 case $ac_top_builddir_sub in
14039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14043 ac_abs_top_builddir=$ac_pwd
14044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14045 # for backward compatibility:
14046 ac_top_builddir=$ac_top_build_prefix
14049 .) # We are building in place.
14051 ac_top_srcdir=$ac_top_builddir_sub
14052 ac_abs_top_srcdir=$ac_pwd ;;
14053 [\\/]* | ?:[\\/]* ) # Absolute name.
14054 ac_srcdir=$srcdir$ac_dir_suffix;
14055 ac_top_srcdir=$srcdir
14056 ac_abs_top_srcdir=$srcdir ;;
14057 *) # Relative name.
14058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14059 ac_top_srcdir=$ac_top_build_prefix$srcdir
14060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14067 # Check for guested configure; otherwise get Cygnus style configure.
14068 if test -f "$ac_srcdir/configure.gnu"; then
14069 ac_sub_configure=$ac_srcdir/configure.gnu
14070 elif test -f "$ac_srcdir/configure"; then
14071 ac_sub_configure=$ac_srcdir/configure
14072 elif test -f "$ac_srcdir/configure.in"; then
14073 # This should be Cygnus configure.
14074 ac_sub_configure=$ac_aux_dir/configure
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14077 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14081 # The recursion is here.
14082 if test -n "$ac_sub_configure"; then
14083 # Make the cache file name correct relative to the subdirectory.
14084 case $cache_file in
14085 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14086 *) # Relative name.
14087 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14090 { $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
14091 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14092 # The eval makes quoting arguments work.
14093 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14094 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14095 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14101 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14103 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}