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=`printf "%02i%02i%02i" $RADIUSD_MAJOR_VERSION $RADIUSD_MINOR_VERSION $RADIUSD_INCRM_VERSION`
2427 RADIUSD_VERSION_STRING=`cat VERSION`
2432 cat >>confdefs.h <<_ACEOF
2433 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2437 cat >>confdefs.h <<_ACEOF
2438 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2443 # Check whether --enable-developer was given.
2444 if test "${enable_developer+set}" = set; then :
2445 enableval=$enable_developer; case "$enableval" in
2456 if test -d $srcdir/.git; then
2457 if test "x$developer" != "xno"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2459 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2464 if test "x$developer" = "xyes"; then
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 if test -f "$ac_dir/install-sh"; then
2473 ac_install_sh="$ac_aux_dir/install-sh -c"
2475 elif test -f "$ac_dir/install.sh"; then
2477 ac_install_sh="$ac_aux_dir/install.sh -c"
2479 elif test -f "$ac_dir/shtool"; then
2481 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 if test -z "$ac_aux_dir"; then
2486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2489 # These three variables are undocumented and unsupported,
2490 # and are intended to be withdrawn in a future Autoconf release.
2491 # They can cause serious problems if a builder's source tree is in a directory
2492 # whose full name contains unusual characters.
2493 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2494 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2495 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498 # Make sure we can run config.sub.
2499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503 $as_echo_n "checking build system type... " >&6; }
2504 if ${ac_cv_build+:} false; then :
2505 $as_echo_n "(cached) " >&6
2507 ac_build_alias=$build_alias
2508 test "x$ac_build_alias" = x &&
2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510 test "x$ac_build_alias" = x &&
2511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517 $as_echo "$ac_cv_build" >&6; }
2518 case $ac_cv_build in
2520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2523 ac_save_IFS=$IFS; IFS='-'
2529 # Remember, the first character of IFS is used to create $*,
2530 # except with old shells:
2533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537 $as_echo_n "checking host system type... " >&6; }
2538 if ${ac_cv_host+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 if test "x$host_alias" = x; then
2542 ac_cv_host=$ac_cv_build
2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550 $as_echo "$ac_cv_host" >&6; }
2553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2556 ac_save_IFS=$IFS; IFS='-'
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2570 $as_echo_n "checking target system type... " >&6; }
2571 if ${ac_cv_target+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 if test "x$target_alias" = x; then
2575 ac_cv_target=$ac_cv_host
2577 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2583 $as_echo "$ac_cv_target" >&6; }
2584 case $ac_cv_target in
2586 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2588 target=$ac_cv_target
2589 ac_save_IFS=$IFS; IFS='-'
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2599 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2602 # The aliases save the names the user supplied, while $host etc.
2603 # will get canonicalized.
2604 test -n "$target_alias" &&
2605 test "$program_prefix$program_suffix$program_transform_name" = \
2607 program_prefix=${target_alias}-
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_CC+:} false; then :
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2654 if test -z "$ac_cv_prog_CC"; then
2656 # Extract the first word of "gcc", so it can be a program name with args.
2657 set dummy gcc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_ac_ct_CC="gcc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2692 if test "x$ac_ct_CC" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2748 if test -z "$CC"; then
2749 # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_CC+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768 ac_prog_rejected=yes
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test $ac_prog_rejected = yes; then
2780 # We found a bogon in the path, so make sure we never use it.
2781 set dummy $ac_cv_prog_CC
2783 if test $# != 0; then
2784 # We chose a different compiler from the bogus one.
2785 # However, it has the same basename, so the bogon will be chosen
2786 # first if we set CC to just the basename; use the full file name.
2788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 for ac_prog in cl.exe
2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2845 test -n "$CC" && break
2848 if test -z "$CC"; then
2850 for ac_prog in cl.exe
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_CC="$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2882 $as_echo "$ac_ct_CC" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2889 test -n "$ac_ct_CC" && break
2892 if test "x$ac_ct_CC" = x; then
2895 case $cross_compiling:$ac_tool_warned in
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error $? "no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details" "$LINENO" 5; }
2913 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2917 for ac_option in --version -v -V -qversion; do
2918 { { ac_try="$ac_compiler $ac_option >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2927 if test -s conftest.err; then
2929 ... rest of stderr output deleted ...
2930 10q' conftest.err >conftest.er1
2931 cat conftest.er1 >&5
2933 rm -f conftest.er1 conftest.err
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2949 ac_clean_files_save=$ac_clean_files
2950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951 # Try to create an executable without -o first, disregard a.out.
2952 # It will help us diagnose broken compilers, and finding out an intuition
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2955 $as_echo_n "checking whether the C compiler works... " >&6; }
2956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958 # The possible output files:
2959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2962 for ac_file in $ac_files
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 if { { ac_try="$ac_link_default"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link_default") 2>&5
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2985 # so that the user can short-circuit this test for compilers unknown to
2987 for ac_file in $ac_files ''
2989 test -f "$ac_file" || continue
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2994 # We found the default executable, but exeext='' is most
2998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 # We set ac_cv_exeext here because the later test for it is not
3003 # safe: cross compilers may not add the suffix if given an `-o'
3004 # argument, so we may need to know it at that point already.
3005 # Even if this section looks crufty: it has the advantage of
3012 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017 if test -z "$ac_file"; then :
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error 77 "C compiler cannot create executables
3026 See \`config.log' for more details" "$LINENO" 5; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3032 $as_echo_n "checking for C compiler default output file name... " >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3034 $as_echo "$ac_file" >&6; }
3035 ac_exeext=$ac_cv_exeext
3037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3038 ac_clean_files=$ac_clean_files_save
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3040 $as_echo_n "checking for suffix of executables... " >&6; }
3041 if { { ac_try="$ac_link"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details" "$LINENO" 5; }
3071 rm -f conftest conftest$ac_cv_exeext
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3073 $as_echo "$ac_cv_exeext" >&6; }
3075 rm -f conftest.$ac_ext
3076 EXEEXT=$ac_cv_exeext
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3084 FILE *f = fopen ("conftest.out", "w");
3085 return ferror (f) || fclose (f) != 0;
3091 ac_clean_files="$ac_clean_files conftest.out"
3092 # Check that the compiler produces executables we can run. If not, either
3093 # the compiler is broken, or we cross compile.
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3095 $as_echo_n "checking whether we are cross compiling... " >&6; }
3096 if test "$cross_compiling" != yes; then
3097 { { ac_try="$ac_link"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 if { ac_try='./conftest$ac_cv_exeext'
3109 { { case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_try") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; }; then
3121 if test "$cross_compiling" = maybe; then
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot run C compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details" "$LINENO" 5; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3133 $as_echo "$cross_compiling" >&6; }
3135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3138 $as_echo_n "checking for suffix of object files... " >&6; }
3139 if ${ac_cv_objext+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 rm -f conftest.o conftest.obj
3154 if { { ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compile") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 for ac_file in conftest.o conftest.obj conftest.*; do
3166 test -f "$ac_file" || continue;
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 $as_echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details" "$LINENO" 5; }
3182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3185 $as_echo "$ac_cv_objext" >&6; }
3186 OBJEXT=$ac_cv_objext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3190 if ${ac_cv_c_compiler_gnu+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3207 if ac_fn_c_try_compile "$LINENO"; then :
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3218 if test $ac_compiler_gnu = yes; then
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3227 if ${ac_cv_prog_cc_g+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 ac_save_c_werror_flag=$ac_c_werror_flag
3231 ac_c_werror_flag=yes
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3245 if ac_fn_c_try_compile "$LINENO"; then :
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3260 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_c_werror_flag=$ac_save_c_werror_flag
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3287 $as_echo "$ac_cv_prog_cc_g" >&6; }
3288 if test "$ac_test_CFLAGS" = set; then
3289 CFLAGS=$ac_save_CFLAGS
3290 elif test $ac_cv_prog_cc_g = yes; then
3291 if test "$GCC" = yes; then
3297 if test "$GCC" = yes; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3305 if ${ac_cv_prog_cc_c89+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_cv_prog_cc_c89=no
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_c89=$ac_arg
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 ac_cpp='$CXXCPP $CPPFLAGS'
3401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3404 if test -z "$CXX"; then
3405 if test -n "$CCC"; then
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CXX+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CXX"; then
3419 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$CXX"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3441 $as_echo "$CXX" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$CXX" && break
3451 if test -z "$CXX"; then
3453 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$ac_ct_CXX"; then
3463 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CXX="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3483 if test -n "$ac_ct_CXX"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3485 $as_echo "$ac_ct_CXX" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$ac_ct_CXX" && break
3495 if test "x$ac_ct_CXX" = x; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3510 # Provide some information about the compiler.
3511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3514 for ac_option in --version -v -V -qversion; do
3515 { { ac_try="$ac_compiler $ac_option >&5"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 if test -s conftest.err; then
3526 ... rest of stderr output deleted ...
3527 10q' conftest.err >conftest.er1
3528 cat conftest.er1 >&5
3530 rm -f conftest.er1 conftest.err
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3537 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3554 if ac_fn_cxx_try_compile "$LINENO"; then :
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3564 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3570 ac_test_CXXFLAGS=${CXXFLAGS+set}
3571 ac_save_CXXFLAGS=$CXXFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3573 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3574 if ${ac_cv_prog_cxx_g+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3578 ac_cxx_werror_flag=yes
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 if ac_fn_cxx_try_compile "$LINENO"; then :
3593 ac_cv_prog_cxx_g=yes
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_cxx_try_compile "$LINENO"; then :
3610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_cxx_try_compile "$LINENO"; then :
3624 ac_cv_prog_cxx_g=yes
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3635 if test "$ac_test_CXXFLAGS" = set; then
3636 CXXFLAGS=$ac_save_CXXFLAGS
3637 elif test $ac_cv_prog_cxx_g = yes; then
3638 if test "$GXX" = yes; then
3644 if test "$GXX" = yes; then
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3669 if test -z "$CPP"; then
3670 if ${ac_cv_prog_CPP+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3688 # include <limits.h>
3690 # include <assert.h>
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3697 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.i conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether nonexistent headers
3703 # can be detected and how.
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <ac_nonexistent.h>
3708 if ac_fn_c_try_cpp "$LINENO"; then :
3709 # Broken: success on invalid input.
3712 # Passes both tests.
3716 rm -f conftest.err conftest.i conftest.$ac_ext
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.i conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3734 $as_echo "$CPP" >&6; }
3736 for ac_c_preproc_warn_flag in '' yes
3738 # Use a header file that comes with gcc, so configuring glibc
3739 # with a fresh cross-compiler works.
3740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741 # <limits.h> exists even on freestanding compilers.
3742 # On the NeXT, cc -E runs the code through the compiler's parser,
3743 # not just through cpp. "Syntax error" is here to catch this case.
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3747 # include <limits.h>
3749 # include <assert.h>
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3756 # Broken: fails on valid input.
3759 rm -f conftest.err conftest.i conftest.$ac_ext
3761 # OK, works on sane cases. Now check whether nonexistent headers
3762 # can be detected and how.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3767 if ac_fn_c_try_cpp "$LINENO"; then :
3768 # Broken: success on invalid input.
3771 # Passes both tests.
3775 rm -f conftest.err conftest.i conftest.$ac_ext
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.i conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then :
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3786 See \`config.log' for more details" "$LINENO" 5; }
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3798 if ${ac_cv_path_GREP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -z "$GREP"; then
3802 ac_path_GREP_found=false
3803 # Loop through the user's path and test for each of PROGNAME-LIST
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 test -z "$as_dir" && as_dir=.
3809 for ac_prog in grep ggrep; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3812 as_fn_executable_p "$ac_path_GREP" || continue
3813 # Check for GNU ac_path_GREP and select it if it is found.
3814 # Check for GNU $ac_path_GREP
3815 case `"$ac_path_GREP" --version 2>&1` in
3817 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3820 $as_echo_n 0123456789 >"conftest.in"
3823 cat "conftest.in" "conftest.in" >"conftest.tmp"
3824 mv "conftest.tmp" "conftest.in"
3825 cp "conftest.in" "conftest.nl"
3826 $as_echo 'GREP' >> "conftest.nl"
3827 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829 as_fn_arith $ac_count + 1 && ac_count=$as_val
3830 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3831 # Best one so far, save it but keep looking for a better one
3832 ac_cv_path_GREP="$ac_path_GREP"
3833 ac_path_GREP_max=$ac_count
3835 # 10*(2^10) chars as input seems more than enough
3836 test $ac_count -gt 10 && break
3838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 $ac_path_GREP_found && break 3
3846 if test -z "$ac_cv_path_GREP"; then
3847 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3850 ac_cv_path_GREP=$GREP
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3855 $as_echo "$ac_cv_path_GREP" >&6; }
3856 GREP="$ac_cv_path_GREP"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3860 $as_echo_n "checking for egrep... " >&6; }
3861 if ${ac_cv_path_EGREP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3865 then ac_cv_path_EGREP="$GREP -E"
3867 if test -z "$EGREP"; then
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 as_fn_executable_p "$ac_path_EGREP" || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886 $as_echo_n 0123456789 >"conftest.in"
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 $as_echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 as_fn_arith $ac_count + 1 && ac_count=$as_val
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 $ac_path_EGREP_found && break 3
3912 if test -z "$ac_cv_path_EGREP"; then
3913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3916 ac_cv_path_EGREP=$EGREP
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3922 $as_echo "$ac_cv_path_EGREP" >&6; }
3923 EGREP="$ac_cv_path_EGREP"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3927 $as_echo_n "checking for ANSI C header files... " >&6; }
3928 if ${ac_cv_header_stdc+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_header_stdc=yes
3949 ac_cv_header_stdc=no
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 if test $ac_cv_header_stdc = yes; then
3954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "memchr" >/dev/null 2>&1; then :
3964 ac_cv_header_stdc=no
3970 if test $ac_cv_header_stdc = yes; then
3971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev/null 2>&1; then :
3981 ac_cv_header_stdc=no
3987 if test $ac_cv_header_stdc = yes; then
3988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989 if test "$cross_compiling" = yes; then :
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 #if ((' ' & 0x0FF) == 0x020)
3997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4000 # define ISLOWER(c) \
4001 (('a' <= (c) && (c) <= 'i') \
4002 || ('j' <= (c) && (c) <= 'r') \
4003 || ('s' <= (c) && (c) <= 'z'))
4004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4012 for (i = 0; i < 256; i++)
4013 if (XOR (islower (i), ISLOWER (i))
4014 || toupper (i) != TOUPPER (i))
4019 if ac_fn_c_try_run "$LINENO"; then :
4022 ac_cv_header_stdc=no
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025 conftest.$ac_objext conftest.beam conftest.$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4031 $as_echo "$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4046 cat >>confdefs.h <<_ACEOF
4047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4056 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4057 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4064 if test "$MINIX" = yes; then
4066 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4069 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4072 $as_echo "#define _MINIX 1" >>confdefs.h
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4078 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4079 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4085 # define __EXTENSIONS__ 1
4086 $ac_includes_default
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_safe_to_define___extensions__=yes
4098 ac_cv_safe_to_define___extensions__=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4103 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4104 test $ac_cv_safe_to_define___extensions__ = yes &&
4105 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4107 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4109 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4111 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4113 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4118 if test $ac_cv_c_compiler_gnu = yes; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4120 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4121 if ${ac_cv_prog_gcc_traditional+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_pattern="Autoconf.*'x'"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4132 ac_cv_prog_gcc_traditional=yes
4134 ac_cv_prog_gcc_traditional=no
4139 if test $ac_cv_prog_gcc_traditional = no; then
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4147 ac_cv_prog_gcc_traditional=yes
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4154 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4155 if test $ac_cv_prog_gcc_traditional = yes; then
4156 CC="$CC -traditional"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4161 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4162 if ${ac_cv_prog_suncc+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 cat > conftest.c <<EOF
4170 if { ac_try='${CC-cc} -E conftest.c'
4171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4176 ac_cv_prog_suncc=yes
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4182 $as_echo "$ac_cv_prog_suncc" >&6; }
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_RANLIB+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$RANLIB"; then
4192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 RANLIB=$ac_cv_prog_RANLIB
4212 if test -n "$RANLIB"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4214 $as_echo "$RANLIB" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$ac_cv_prog_RANLIB"; then
4223 ac_ct_RANLIB=$RANLIB
4224 # Extract the first word of "ranlib", so it can be a program name with args.
4225 set dummy ranlib; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$ac_ct_RANLIB"; then
4232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_RANLIB="ranlib"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4252 if test -n "$ac_ct_RANLIB"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4254 $as_echo "$ac_ct_RANLIB" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4260 if test "x$ac_ct_RANLIB" = x; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4269 RANLIB=$ac_ct_RANLIB
4272 RANLIB="$ac_cv_prog_RANLIB"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4278 $as_echo_n "checking if compiler is clang... " >&6; }
4279 if ${ax_cv_cc_clang+:} false; then :
4280 $as_echo_n "(cached) " >&6
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4299 if ac_fn_c_try_compile "$LINENO"; then :
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4308 $as_echo "$ax_cv_cc_clang" >&6; }
4310 if test "x$ax_cv_cc_clang" = "xyes"; then
4319 if test "x$GCC" = "xyes"; then
4320 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4325 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4326 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4327 $as_echo_n "(cached) " >&6
4331 CFLAGS_SAVED=$CFLAGS
4332 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ax_cv_cc_qunused_arguments_flag="yes"
4354 ax_cv_cc_qunused_arguments_flag="no"
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364 CFLAGS="$CFLAGS_SAVED"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4368 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4370 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4371 CFLAGS="$CFLAGS -Qunused-arguments"
4372 LDFLAGS="$LDFLAGS -Qunused-arguments"
4375 # Check whether --enable-largefile was given.
4376 if test "${enable_largefile+set}" = set; then :
4377 enableval=$enable_largefile;
4380 if test "$enable_largefile" != no; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4383 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4384 if ${ac_cv_sys_largefile_CC+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 ac_cv_sys_largefile_CC=no
4388 if test "$GCC" != yes; then
4391 # IRIX 6.2 and later do not support large files by default,
4392 # so use the C compiler's -n32 option if that helps.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 #include <sys/types.h>
4396 /* Check that off_t can represent 2**63 - 1 correctly.
4397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4398 since some C++ compilers masquerading as C compilers
4399 incorrectly reject 9223372036854775807. */
4400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4402 && LARGE_OFF_T % 2147483647 == 1)
4412 if ac_fn_c_try_compile "$LINENO"; then :
4415 rm -f core conftest.err conftest.$ac_objext
4417 if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_sys_largefile_CC=' -n32'; break
4420 rm -f core conftest.err conftest.$ac_objext
4424 rm -f conftest.$ac_ext
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4428 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4429 if test "$ac_cv_sys_largefile_CC" != no; then
4430 CC=$CC$ac_cv_sys_largefile_CC
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4434 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4435 if ${ac_cv_sys_file_offset_bits+:} false; then :
4436 $as_echo_n "(cached) " >&6
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <sys/types.h>
4442 /* Check that off_t can represent 2**63 - 1 correctly.
4443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4444 since some C++ compilers masquerading as C compilers
4445 incorrectly reject 9223372036854775807. */
4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4448 && LARGE_OFF_T % 2147483647 == 1)
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_cv_sys_file_offset_bits=no; break
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #define _FILE_OFFSET_BITS 64
4465 #include <sys/types.h>
4466 /* Check that off_t can represent 2**63 - 1 correctly.
4467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4468 since some C++ compilers masquerading as C compilers
4469 incorrectly reject 9223372036854775807. */
4470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4472 && LARGE_OFF_T % 2147483647 == 1)
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_cv_sys_file_offset_bits=64; break
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_cv_sys_file_offset_bits=unknown
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4491 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4492 case $ac_cv_sys_file_offset_bits in #(
4495 cat >>confdefs.h <<_ACEOF
4496 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4501 if test $ac_cv_sys_file_offset_bits = unknown; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4503 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4504 if ${ac_cv_sys_large_files+:} false; then :
4505 $as_echo_n "(cached) " >&6
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #include <sys/types.h>
4511 /* Check that off_t can represent 2**63 - 1 correctly.
4512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4513 since some C++ compilers masquerading as C compilers
4514 incorrectly reject 9223372036854775807. */
4515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4517 && LARGE_OFF_T % 2147483647 == 1)
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528 ac_cv_sys_large_files=no; break
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #define _LARGE_FILES 1
4534 #include <sys/types.h>
4535 /* Check that off_t can represent 2**63 - 1 correctly.
4536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4537 since some C++ compilers masquerading as C compilers
4538 incorrectly reject 9223372036854775807. */
4539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4541 && LARGE_OFF_T % 2147483647 == 1)
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552 ac_cv_sys_large_files=1; break
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_sys_large_files=unknown
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4560 $as_echo "$ac_cv_sys_large_files" >&6; }
4561 case $ac_cv_sys_large_files in #(
4564 cat >>confdefs.h <<_ACEOF
4565 #define _LARGE_FILES $ac_cv_sys_large_files
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4577 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4578 if ${ac_cv_c_bigendian+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 ac_cv_c_bigendian=unknown
4582 # See if we're dealing with a universal compiler.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #ifndef __APPLE_CC__
4586 not a universal capable compiler
4591 if ac_fn_c_try_compile "$LINENO"; then :
4593 # Check for potential -arch flags. It is not universal unless
4594 # there are at least two -arch flags with different values.
4597 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4598 if test -n "$ac_prev"; then
4600 i?86 | x86_64 | ppc | ppc64)
4601 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4604 ac_cv_c_bigendian=universal
4610 elif test "x$ac_word" = "x-arch"; then
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 if test $ac_cv_c_bigendian = unknown; then
4617 # See if sys/param.h defines the BYTE_ORDER macro.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <sys/types.h>
4621 #include <sys/param.h>
4626 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4627 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 # It does; now see whether it defined to BIG_ENDIAN or not.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 #include <sys/param.h>
4646 #if BYTE_ORDER != BIG_ENDIAN
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655 ac_cv_c_bigendian=yes
4657 ac_cv_c_bigendian=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 if test $ac_cv_c_bigendian = unknown; then
4664 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4672 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 # It does; now see whether it defined to _BIG_ENDIAN or not.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698 ac_cv_c_bigendian=yes
4700 ac_cv_c_bigendian=no
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 if test $ac_cv_c_bigendian = unknown; then
4707 # Compile a test program.
4708 if test "$cross_compiling" = yes; then :
4709 # Try to guess by grepping values from an object file.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 short int ascii_mm[] =
4713 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4714 short int ascii_ii[] =
4715 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4716 int use_ascii (int i) {
4717 return ascii_mm[i] + ascii_ii[i];
4719 short int ebcdic_ii[] =
4720 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4721 short int ebcdic_mm[] =
4722 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4723 int use_ebcdic (int i) {
4724 return ebcdic_mm[i] + ebcdic_ii[i];
4731 return use_ascii (foo) == use_ebcdic (foo);
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4738 ac_cv_c_bigendian=yes
4740 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4741 if test "$ac_cv_c_bigendian" = unknown; then
4742 ac_cv_c_bigendian=no
4744 # finding both strings is unlikely to happen, but who knows?
4745 ac_cv_c_bigendian=unknown
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 $ac_includes_default
4758 /* Are we little or big endian? From Harbison&Steele. */
4762 char c[sizeof (long int)];
4765 return u.c[sizeof (long int) - 1] == 1;
4771 if ac_fn_c_try_run "$LINENO"; then :
4772 ac_cv_c_bigendian=no
4774 ac_cv_c_bigendian=yes
4776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4777 conftest.$ac_objext conftest.beam conftest.$ac_ext
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4783 $as_echo "$ac_cv_c_bigendian" >&6; }
4784 case $ac_cv_c_bigendian in #(
4787 $as_echo "#define FR_BIG_ENDIAN 1" >>confdefs.h
4791 $as_echo "#define FR_LITTLE_ENDIAN 1" >>confdefs.h
4796 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4800 as_fn_error $? "unknown endianness
4801 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4805 # Extract the first word of "gmake", so it can be a program name with args.
4806 set dummy gmake; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if ${ac_cv_prog_GMAKE+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$GMAKE"; then
4813 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_GMAKE="yes"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4833 GMAKE=$ac_cv_prog_GMAKE
4834 if test -n "$GMAKE"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4836 $as_echo "$GMAKE" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 if test $GMAKE = no; then
4844 # Extract the first word of "make", so it can be a program name with args.
4845 set dummy make; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_path_MAKE+:} false; then :
4849 $as_echo_n "(cached) " >&6
4853 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4875 MAKE=$ac_cv_path_MAKE
4876 if test -n "$MAKE"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4878 $as_echo "$MAKE" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4886 # Extract the first word of "gmake", so it can be a program name with args.
4887 set dummy gmake; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_path_MAKE+:} false; then :
4891 $as_echo_n "(cached) " >&6
4895 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4917 MAKE=$ac_cv_path_MAKE
4918 if test -n "$MAKE"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4920 $as_echo "$MAKE" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4928 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4929 if test -z "$makever"; then
4930 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
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4935 $as_echo_n "checking number of system cores... " >&6; }
4936 if ${ax_cv_system_cores+:} false; then :
4937 $as_echo_n "(cached) " >&6
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 if test "$cross_compiling" = yes; then :
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4956 # include <windows.h>
4958 # include <sys/param.h>
4959 # include <sys/sysctl.h>
4961 # include <unistd.h>
4964 int main (int argc, char *argv[])
4969 SYSTEM_INFO sysinfo;
4970 GetSystemInfo(&sysinfo);
4972 count = sysinfo.dwNumberOfProcessors;
4979 nm[1] = HW_AVAILCPU;
4980 sysctl(nm, 2, &count, &len, NULL, 0);
4984 sysctl(nm, 2, &count, &len, NULL, 0);
4991 count = sysconf(_SC_NPROCESSORS_ONLN);
4998 if ac_fn_c_try_run "$LINENO"; then :
4999 ax_cv_system_cores=$?
5001 ax_cv_system_cores=$?
5003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5004 conftest.$ac_objext conftest.beam conftest.$ac_ext
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5016 $as_echo "$ax_cv_system_cores" >&6; }
5021 # Extract the first word of "git", so it can be a program name with args.
5022 set dummy git; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_GIT+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$GIT"; then
5029 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_GIT="yes"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5050 if test -n "$GIT"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5052 $as_echo "$GIT" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5061 # Check whether --enable-strict-dependencies was given.
5062 if test "${enable_strict_dependencies+set}" = set; then :
5063 enableval=$enable_strict_dependencies;
5067 # Check whether --enable-werror was given.
5068 if test "${enable_werror+set}" = set; then :
5069 enableval=$enable_werror; case "$enableval" in
5080 docdir='${datadir}/doc/freeradius'
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5082 $as_echo_n "checking docdir... " >&6; }
5084 # Check whether --with-docdir was given.
5085 if test "${with_docdir+set}" = set; then :
5086 withval=$with_docdir; case "$withval" in
5092 [\\/$]* | ?:[\\/]* )
5096 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5104 $as_echo "$docdir" >&6; }
5105 if test "x$docdir" = xno; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5107 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5110 logdir='${localstatedir}/log/radius'
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5112 $as_echo_n "checking logdir... " >&6; }
5114 # Check whether --with-logdir was given.
5115 if test "${with_logdir+set}" = set; then :
5116 withval=$with_logdir; case "$withval" in
5118 as_fn_error $? "Need logdir" "$LINENO" 5
5122 [\\/$]* | ?:[\\/]* )
5126 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5134 $as_echo "$logdir" >&6; }
5136 radacctdir='${logdir}/radacct'
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5138 $as_echo_n "checking radacctdir... " >&6; }
5140 # Check whether --with-radacctdir was given.
5141 if test "${with_radacctdir+set}" = set; then :
5142 withval=$with_radacctdir; case "$withval" in
5144 as_fn_error $? "Need radacctdir" "$LINENO" 5
5148 [\\/$]* | ?:[\\/]* )
5149 radacctdir="$withval"
5152 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5160 $as_echo "$radacctdir" >&6; }
5162 raddbdir='${sysconfdir}/raddb'
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5164 $as_echo_n "checking raddbdir... " >&6; }
5166 # Check whether --with-raddbdir was given.
5167 if test "${with_raddbdir+set}" = set; then :
5168 withval=$with_raddbdir; case "$withval" in
5170 as_fn_error $? "Need raddbdir" "$LINENO" 5
5174 [\\/$]* | ?:[\\/]* )
5178 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5186 $as_echo "$raddbdir" >&6; }
5188 dictdir='${datarootdir}/freeradius'
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5190 $as_echo_n "checking dictdir... " >&6; }
5192 # Check whether --with-dictdir was given.
5193 if test "${with_dictdir+set}" = set; then :
5194 withval=$with_dictdir; case "$withval" in
5196 as_fn_error $? "Need dictdir" "$LINENO" 5
5200 [\\/$]* | ?:[\\/]* )
5204 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5212 $as_echo "$dictdir" >&6; }
5214 modconfdir='${raddbdir}/mods-config'
5217 WITH_ASCEND_BINARY=yes
5219 # Check whether --with-ascend-binary was given.
5220 if test "${with_ascend_binary+set}" = set; then :
5221 withval=$with_ascend_binary; case "$withval" in
5225 WITH_ASCEND_BINARY=no
5230 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5232 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5238 # Check whether --with-threads was given.
5239 if test "${with_threads+set}" = set; then :
5240 withval=$with_threads; case "$withval" in
5252 # Check whether --with-tcp was given.
5253 if test "${with_tcp+set}" = set; then :
5254 withval=$with_tcp; case "$withval" in
5263 if test "x$WITH_TCP" = "xyes"; then
5265 $as_echo "#define WITH_TCP 1" >>confdefs.h
5271 # Check whether --with-vmps was given.
5272 if test "${with_vmps+set}" = set; then :
5273 withval=$with_vmps; case "$withval" in
5282 if test "x$WITH_VMPS" = "xyes"; then
5284 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5290 # Check whether --with-dhcp was given.
5291 if test "${with_dhcp+set}" = set; then :
5292 withval=$with_dhcp; case "$withval" in
5301 if test "x$WITH_DHCP" = "xyes"; then
5303 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5309 # Check whether --with-static_modules was given.
5310 if test "${with_static_modules+set}" = set; then :
5311 withval=$with_static_modules;
5312 for i in $withval; do
5313 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5321 # Check whether --with-shared-libs was given.
5322 if test "${with_shared_libs+set}" = set; then :
5323 withval=$with_shared_libs; case "$withval" in
5335 # Check whether --with-modules was given.
5336 if test "${with_modules+set}" = set; then :
5337 withval=$with_modules;
5338 for i in $withval; do
5339 MODULES="$MODULES $i"
5347 # Check whether --with-experimental-modules was given.
5348 if test "${with_experimental_modules+set}" = set; then :
5349 withval=$with_experimental_modules; case "$withval" in
5364 # Check whether --with-udpfromto was given.
5365 if test "${with_udpfromto+set}" = set; then :
5366 withval=$with_udpfromto; case "$withval" in
5377 if test "x$WITH_UDPFROMTO" = "xyes"; then
5379 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5385 # Check whether --with-rlm-FOO-lib-dir was given.
5386 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5387 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5396 # Check whether --with-rlm-FOO-include-dir was given.
5397 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5398 withval=$with_rlm_FOO_include_dir; case "$withval" in
5408 # Check whether --with-openssl was given.
5409 if test "${with_openssl+set}" = set; then :
5410 withval=$with_openssl; case "$withval" in
5424 # Check whether --with-openssl-lib-dir was given.
5425 if test "${with_openssl_lib_dir+set}" = set; then :
5426 withval=$with_openssl_lib_dir; case "$withval" in
5427 *) openssl_lib_dir="$withval"
5434 openssl_include_dir=
5436 # Check whether --with-openssl-include-dir was given.
5437 if test "${with_openssl_include_dir+set}" = set; then :
5438 withval=$with_openssl_include_dir; case "$withval" in
5439 *) openssl_include_dir="$withval"
5446 # Check whether --enable-openssl-version-check was given.
5447 if test "${enable_openssl_version_check+set}" = set; then :
5448 enableval=$enable_openssl_version_check;
5451 if test "x$enable_openssl_version_check" != "xno"; then
5453 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5455 openssl_version_check_config="\
5457 # allow_vulnerable_openssl: Allow the server to start with
5458 # versions of OpenSSL known to have critical vulnerabilities.
5460 # This check is based on the version number reported by libssl
5461 # and may not reflect patches applied to libssl by
5462 # distribution maintainers.
5464 allow_vulnerable_openssl = no"
5466 openssl_version_check_config=
5473 # Extract the first word of "perl", so it can be a program name with args.
5474 set dummy perl; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_path_PERL+:} false; then :
5478 $as_echo_n "(cached) " >&6
5482 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5504 PERL=$ac_cv_path_PERL
5505 if test -n "$PERL"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5507 $as_echo "$PERL" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5514 if test "x$ac_cv_path_PERL" = "x"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5516 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5518 # Extract the first word of "snmpget", so it can be a program name with args.
5519 set dummy snmpget; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_path_SNMPGET+:} false; then :
5523 $as_echo_n "(cached) " >&6
5527 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 SNMPGET=$ac_cv_path_SNMPGET
5549 if test -n "$SNMPGET"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5551 $as_echo "$SNMPGET" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 if test "x$ac_cv_path_SNMPGET" = "x"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5560 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5563 # Extract the first word of "snmpwalk", so it can be a program name with args.
5564 set dummy snmpwalk; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_path_SNMPWALK+:} false; then :
5568 $as_echo_n "(cached) " >&6
5572 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 SNMPWALK=$ac_cv_path_SNMPWALK
5594 if test -n "$SNMPWALK"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5596 $as_echo "$SNMPWALK" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5605 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5608 # Extract the first word of "rusers", so it can be a program name with args.
5609 set dummy rusers; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_path_RUSERS+:} false; then :
5613 $as_echo_n "(cached) " >&6
5617 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5639 RUSERS=$ac_cv_path_RUSERS
5640 if test -n "$RUSERS"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5642 $as_echo "$RUSERS" >&6; }
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5650 missing_dir=`cd $ac_aux_dir && pwd`
5651 # Expand $ac_aux_dir to an absolute path.
5652 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5654 if test x"${MISSING+set}" != xset; then
5657 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5659 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5662 # Use eval to expand $SHELL
5663 if eval "$MISSING --is-lightweight"; then
5664 am_missing_run="$MISSING "
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5668 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5681 # Extract the first word of "locate", so it can be a program name with args.
5682 set dummy locate; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_LOCATE+:} false; then :
5686 $as_echo_n "(cached) " >&6
5690 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 LOCATE=$ac_cv_path_LOCATE
5712 if test -n "$LOCATE"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5714 $as_echo "$LOCATE" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 # Extract the first word of "dirname", so it can be a program name with args.
5722 set dummy dirname; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_path_DIRNAME+:} false; then :
5726 $as_echo_n "(cached) " >&6
5730 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 DIRNAME=$ac_cv_path_DIRNAME
5752 if test -n "$DIRNAME"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5754 $as_echo "$DIRNAME" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 # Extract the first word of "grep", so it can be a program name with args.
5762 set dummy grep; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_path_GREP+:} false; then :
5766 $as_echo_n "(cached) " >&6
5770 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 GREP=$ac_cv_path_GREP
5792 if test -n "$GREP"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5794 $as_echo "$GREP" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5805 # Check whether --with-talloc-lib-dir was given.
5806 if test "${with_talloc_lib_dir+set}" = set; then :
5807 withval=$with_talloc_lib_dir; case "$withval" in
5809 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5814 talloc_lib_dir="$withval"
5822 # Check whether --with-talloc-include-dir was given.
5823 if test "${with_talloc_include_dir+set}" = set; then :
5824 withval=$with_talloc_include_dir; case "$withval" in
5826 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5831 talloc_include_dir="$withval"
5837 smart_try_dir="$talloc_lib_dir"
5840 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5841 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5844 old_CPPFLAGS="$CPPFLAGS"
5849 if test "x$smart_try_dir" != "x"; then
5850 for try in $smart_try_dir; do
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5852 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5853 LIBS="-ltalloc $old_LIBS"
5854 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 extern char _talloc();
5866 if ac_fn_c_try_link "$LINENO"; then :
5868 smart_lib="-ltalloc"
5869 smart_ldflags="-L$try -Wl,-rpath,$try"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871 $as_echo "yes" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5878 rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5882 CPPFLAGS="$old_CPPFLAGS"
5885 if test "x$smart_lib" = "x"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5887 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5888 LIBS="-ltalloc $old_LIBS"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 extern char _talloc();
5900 if ac_fn_c_try_link "$LINENO"; then :
5902 smart_lib="-ltalloc"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 $as_echo "yes" >&6; }
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5915 if test "x$smart_lib" = "x"; then
5918 if test "x$LOCATE" != "x"; then
5920 file=libtalloc${libltdl_cv_shlibext}
5922 for x in `${LOCATE} $file 2>/dev/null`; do
5923 base=`echo $x | sed "s%/${file}%%"`
5924 if test "x$x" = "x$base"; then
5928 dir=`${DIRNAME} $x 2>/dev/null`
5929 exclude=`echo ${dir} | ${GREP} /home`
5930 if test "x$exclude" != "x"; then
5934 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5935 if test "x$already" = "x"; then
5941 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5945 if test "x$LOCATE" != "x"; then
5949 for x in `${LOCATE} $file 2>/dev/null`; do
5950 base=`echo $x | sed "s%/${file}%%"`
5951 if test "x$x" = "x$base"; then
5955 dir=`${DIRNAME} $x 2>/dev/null`
5956 exclude=`echo ${dir} | ${GREP} /home`
5957 if test "x$exclude" != "x"; then
5961 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5962 if test "x$already" = "x"; then
5968 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5971 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5973 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5974 LIBS="-ltalloc $old_LIBS"
5975 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 extern char _talloc();
5987 if ac_fn_c_try_link "$LINENO"; then :
5989 smart_lib="-ltalloc"
5990 smart_ldflags="-L$try -Wl,-rpath,$try"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5992 $as_echo "yes" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6003 CPPFLAGS="$old_CPPFLAGS"
6006 if test "x$smart_lib" != "x"; then
6007 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6008 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6009 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6012 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6014 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6015 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6018 TALLOC_LIBS="${smart_lib}"
6019 TALLOC_LDFLAGS="${smart_ldflags}"
6025 if test "x$WITH_THREADS" = "xyes"; then
6026 if test $ac_cv_prog_suncc = "yes"; then
6027 CFLAGS="$CFLAGS -mt"
6030 for ac_header in pthread.h
6032 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6033 if test "x$ac_cv_header_pthread_h" = xyes; then :
6034 cat >>confdefs.h <<_ACEOF
6035 #define HAVE_PTHREAD_H 1
6048 if test "x$WITH_THREADS" != "xno"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6050 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6051 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lpthread $LIBS"
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6065 char pthread_create ();
6069 return pthread_create ();
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 ac_cv_lib_pthread_pthread_create=yes
6077 ac_cv_lib_pthread_pthread_create=no
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6084 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6085 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6088 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6089 LIBS="-lpthread $LIBS"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6093 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6094 if ${ax_cv_cc_pthread_flag+:} false; then :
6095 $as_echo_n "(cached) " >&6
6099 CFLAGS_SAVED=$CFLAGS
6100 CFLAGS="$CFLAGS -Werror -pthread"
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120 ax_cv_cc_pthread_flag="yes"
6122 ax_cv_cc_pthread_flag="no"
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 ac_cpp='$CPP $CPPFLAGS'
6127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132 CFLAGS="$CFLAGS_SAVED"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6136 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6138 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6139 CFLAGS="$CFLAGS -pthread"
6146 if test "x$HAVE_LPTHREAD" != "xyes"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6148 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6149 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6150 $as_echo_n "(cached) " >&6
6152 ac_check_lib_save_LIBS=$LIBS
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* Override any GCC internal prototype to avoid an error.
6158 Use char because int might match the return type of a GCC
6159 builtin and then its argument prototype would still apply. */
6163 char pthread_create ();
6167 return pthread_create ();
6172 if ac_fn_c_try_link "$LINENO"; then :
6173 ac_cv_lib_c_r_pthread_create=yes
6175 ac_cv_lib_c_r_pthread_create=no
6177 rm -f core conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 LIBS=$ac_check_lib_save_LIBS
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6182 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6183 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6185 CFLAGS="$CFLAGS -D_THREAD_SAFE"
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-pthread\"" >&5
6189 $as_echo_n "checking for the compiler flag \"-pthread\"... " >&6; }
6190 if ${ax_cv_cc_pthread_flag+:} false; then :
6191 $as_echo_n "(cached) " >&6
6195 CFLAGS_SAVED=$CFLAGS
6196 CFLAGS="$CFLAGS -Werror -pthread"
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 ax_cv_cc_pthread_flag="yes"
6218 ax_cv_cc_pthread_flag="no"
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228 CFLAGS="$CFLAGS_SAVED"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_pthread_flag" >&5
6232 $as_echo "$ax_cv_cc_pthread_flag" >&6; }
6234 if test "x$ax_cv_cc_pthread_flag" != 'xyes'; then
6237 CFLAGS="$CFLAGS -pthread"
6241 fail=-lc_r or -lpthread
6248 if test "x$WITH_THREADS" != "xyes"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6250 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6252 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6255 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6260 if test "x$WITH_THREADS" != "xyes"; then
6262 ac_cv_header_pthread_h="no"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6267 $as_echo_n "checking for library containing sem_init... " >&6; }
6268 if ${ac_cv_search_sem_init+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 ac_func_search_save_LIBS=$LIBS
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* Override any GCC internal prototype to avoid an error.
6276 Use char because int might match the return type of a GCC
6277 builtin and then its argument prototype would still apply. */
6290 for ac_lib in '' pthread sem posix4 rt semaphore; do
6291 if test -z "$ac_lib"; then
6292 ac_res="none required"
6295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6297 if ac_fn_c_try_link "$LINENO"; then :
6298 ac_cv_search_sem_init=$ac_res
6300 rm -f core conftest.err conftest.$ac_objext \
6302 if ${ac_cv_search_sem_init+:} false; then :
6306 if ${ac_cv_search_sem_init+:} false; then :
6309 ac_cv_search_sem_init=no
6312 LIBS=$ac_func_search_save_LIBS
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6315 $as_echo "$ac_cv_search_sem_init" >&6; }
6316 ac_res=$ac_cv_search_sem_init
6317 if test "$ac_res" != no; then :
6318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6321 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
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6329 if ${ac_cv_lib_dl_dlopen+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 ac_check_lib_save_LIBS=$LIBS
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6337 /* Override any GCC internal prototype to avoid an error.
6338 Use char because int might match the return type of a GCC
6339 builtin and then its argument prototype would still apply. */
6352 if ac_fn_c_try_link "$LINENO"; then :
6353 ac_cv_lib_dl_dlopen=yes
6355 ac_cv_lib_dl_dlopen=no
6357 rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359 LIBS=$ac_check_lib_save_LIBS
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6363 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_LIBDL 1
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6374 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6375 if ${ac_cv_lib_socket_getsockname+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 ac_check_lib_save_LIBS=$LIBS
6379 LIBS="-lsocket $LIBS"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6383 /* Override any GCC internal prototype to avoid an error.
6384 Use char because int might match the return type of a GCC
6385 builtin and then its argument prototype would still apply. */
6389 char getsockname ();
6393 return getsockname ();
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 ac_cv_lib_socket_getsockname=yes
6401 ac_cv_lib_socket_getsockname=no
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 LIBS=$ac_check_lib_save_LIBS
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6408 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6409 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6410 cat >>confdefs.h <<_ACEOF
6411 #define HAVE_LIBSOCKET 1
6414 LIBS="-lsocket $LIBS"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6420 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6421 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6422 $as_echo_n "(cached) " >&6
6424 ac_check_lib_save_LIBS=$LIBS
6425 LIBS="-lresolv $LIBS"
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6429 /* Override any GCC internal prototype to avoid an error.
6430 Use char because int might match the return type of a GCC
6431 builtin and then its argument prototype would still apply. */
6439 return inet_aton ();
6444 if ac_fn_c_try_link "$LINENO"; then :
6445 ac_cv_lib_resolv_inet_aton=yes
6447 ac_cv_lib_resolv_inet_aton=no
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6454 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6455 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6456 cat >>confdefs.h <<_ACEOF
6457 #define HAVE_LIBRESOLV 1
6460 LIBS="-lresolv $LIBS"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6466 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6467 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 ac_check_lib_save_LIBS=$LIBS
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6475 /* Override any GCC internal prototype to avoid an error.
6476 Use char because int might match the return type of a GCC
6477 builtin and then its argument prototype would still apply. */
6485 return inet_ntoa ();
6490 if ac_fn_c_try_link "$LINENO"; then :
6491 ac_cv_lib_nsl_inet_ntoa=yes
6493 ac_cv_lib_nsl_inet_ntoa=no
6495 rm -f core conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6500 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6501 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6502 cat >>confdefs.h <<_ACEOF
6503 #define HAVE_LIBNSL 1
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6511 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6512 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 ac_check_lib_save_LIBS=$LIBS
6516 LIBS="-lws2_32 $LIBS"
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 /* Override any GCC internal prototype to avoid an error.
6521 Use char because int might match the return type of a GCC
6522 builtin and then its argument prototype would still apply. */
6535 if ac_fn_c_try_link "$LINENO"; then :
6536 ac_cv_lib_ws2_32_htonl=yes
6538 ac_cv_lib_ws2_32_htonl=no
6540 rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6545 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6546 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LIBWS2_32 1
6551 LIBS="-lws2_32 $LIBS"
6558 # Check whether --with-pcap-lib-dir was given.
6559 if test "${with_pcap_lib_dir+set}" = set; then :
6560 withval=$with_pcap_lib_dir; case "$withval" in
6562 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6567 pcap_lib_dir="$withval"
6575 # Check whether --with-pcap-include-dir was given.
6576 if test "${with_pcap_include_dir+set}" = set; then :
6577 withval=$with_pcap_include_dir; case "$withval" in
6579 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6584 pcap_include_dir="$withval"
6590 smart_try_dir="$pcap_lib_dir"
6593 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6594 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6597 old_CPPFLAGS="$CPPFLAGS"
6602 if test "x$smart_try_dir" != "x"; then
6603 for try in $smart_try_dir; do
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6605 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6606 LIBS="-lpcap $old_LIBS"
6607 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 extern char pcap_open_live();
6619 if ac_fn_c_try_link "$LINENO"; then :
6622 smart_ldflags="-L$try -Wl,-rpath,$try"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6635 CPPFLAGS="$old_CPPFLAGS"
6638 if test "x$smart_lib" = "x"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6640 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6641 LIBS="-lpcap $old_LIBS"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 extern char pcap_open_live();
6653 if ac_fn_c_try_link "$LINENO"; then :
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657 $as_echo "yes" >&6; }
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6668 if test "x$smart_lib" = "x"; then
6671 if test "x$LOCATE" != "x"; then
6673 file=libpcap${libltdl_cv_shlibext}
6675 for x in `${LOCATE} $file 2>/dev/null`; do
6676 base=`echo $x | sed "s%/${file}%%"`
6677 if test "x$x" = "x$base"; then
6681 dir=`${DIRNAME} $x 2>/dev/null`
6682 exclude=`echo ${dir} | ${GREP} /home`
6683 if test "x$exclude" != "x"; then
6687 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6688 if test "x$already" = "x"; then
6694 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6698 if test "x$LOCATE" != "x"; then
6702 for x in `${LOCATE} $file 2>/dev/null`; do
6703 base=`echo $x | sed "s%/${file}%%"`
6704 if test "x$x" = "x$base"; then
6708 dir=`${DIRNAME} $x 2>/dev/null`
6709 exclude=`echo ${dir} | ${GREP} /home`
6710 if test "x$exclude" != "x"; then
6714 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6715 if test "x$already" = "x"; then
6721 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6724 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6726 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6727 LIBS="-lpcap $old_LIBS"
6728 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 extern char pcap_open_live();
6740 if ac_fn_c_try_link "$LINENO"; then :
6743 smart_ldflags="-L$try -Wl,-rpath,$try"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6745 $as_echo "yes" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6752 rm -f core conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6756 CPPFLAGS="$old_CPPFLAGS"
6759 if test "x$smart_lib" != "x"; then
6760 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6761 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6762 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6765 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6766 { $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
6767 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
6770 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6774 pcap_fopen_offline \
6780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6781 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6782 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6783 cat >>confdefs.h <<_ACEOF
6784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6791 PCAP_LIBS="${smart_lib}"
6792 PCAP_LDFLAGS="${smart_ldflags}"
6796 collectdclient_lib_dir=
6798 # Check whether --with-collectdclient-lib-dir was given.
6799 if test "${with_collectdclient_lib_dir+set}" = set; then :
6800 withval=$with_collectdclient_lib_dir; case "$withval" in
6802 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6807 collectdclient_lib_dir="$withval"
6813 collectdclient_include_dir=
6815 # Check whether --with-collectdclient-include-dir was given.
6816 if test "${with_collectdclient_include_dir+set}" = set; then :
6817 withval=$with_collectdclient_include_dir; case "$withval" in
6819 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6824 collectdclient_include_dir="$withval"
6830 smart_try_dir="$collectdclient_lib_dir"
6833 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6834 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6837 old_CPPFLAGS="$CPPFLAGS"
6842 if test "x$smart_try_dir" != "x"; then
6843 for try in $smart_try_dir; do
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6845 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6846 LIBS="-lcollectdclient $old_LIBS"
6847 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 extern char lcc_connect();
6859 if ac_fn_c_try_link "$LINENO"; then :
6861 smart_lib="-lcollectdclient"
6862 smart_ldflags="-L$try -Wl,-rpath,$try"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6864 $as_echo "yes" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6871 rm -f core conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6875 CPPFLAGS="$old_CPPFLAGS"
6878 if test "x$smart_lib" = "x"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6880 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6881 LIBS="-lcollectdclient $old_LIBS"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 extern char lcc_connect();
6893 if ac_fn_c_try_link "$LINENO"; then :
6895 smart_lib="-lcollectdclient"
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6897 $as_echo "yes" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6908 if test "x$smart_lib" = "x"; then
6911 if test "x$LOCATE" != "x"; then
6913 file=libcollectdclient${libltdl_cv_shlibext}
6915 for x in `${LOCATE} $file 2>/dev/null`; do
6916 base=`echo $x | sed "s%/${file}%%"`
6917 if test "x$x" = "x$base"; then
6921 dir=`${DIRNAME} $x 2>/dev/null`
6922 exclude=`echo ${dir} | ${GREP} /home`
6923 if test "x$exclude" != "x"; then
6927 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6928 if test "x$already" = "x"; then
6934 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6938 if test "x$LOCATE" != "x"; then
6940 file=libcollectdclient.a
6942 for x in `${LOCATE} $file 2>/dev/null`; do
6943 base=`echo $x | sed "s%/${file}%%"`
6944 if test "x$x" = "x$base"; then
6948 dir=`${DIRNAME} $x 2>/dev/null`
6949 exclude=`echo ${dir} | ${GREP} /home`
6950 if test "x$exclude" != "x"; then
6954 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6955 if test "x$already" = "x"; then
6961 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6964 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6966 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6967 LIBS="-lcollectdclient $old_LIBS"
6968 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 extern char lcc_connect();
6980 if ac_fn_c_try_link "$LINENO"; then :
6982 smart_lib="-lcollectdclient"
6983 smart_ldflags="-L$try -Wl,-rpath,$try"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6985 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6992 rm -f core conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6996 CPPFLAGS="$old_CPPFLAGS"
6999 if test "x$smart_lib" != "x"; then
7000 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7001 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7002 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7005 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
7007 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
7009 COLLECTDC_LIBS="${smart_lib}"
7010 COLLECTDC_LDFLAGS="${smart_ldflags}"
7016 # Check whether --with-cap-lib-dir was given.
7017 if test "${with_cap_lib_dir+set}" = set; then :
7018 withval=$with_cap_lib_dir; case "$withval" in
7020 as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
7025 cap_lib_dir="$withval"
7033 # Check whether --with-cap-include-dir was given.
7034 if test "${with_cap_include_dir+set}" = set; then :
7035 withval=$with_cap_include_dir; case "$withval" in
7037 as_fn_error $? "Need cap-include-dir" "$LINENO" 5
7042 cap_include_dir="$withval"
7048 smart_try_dir="$cap_lib_dir"
7051 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
7052 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
7055 old_CPPFLAGS="$CPPFLAGS"
7060 if test "x$smart_try_dir" != "x"; then
7061 for try in $smart_try_dir; do
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7063 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7064 LIBS="-lcap $old_LIBS"
7065 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 extern char cap_get_proc();
7077 if ac_fn_c_try_link "$LINENO"; then :
7080 smart_ldflags="-L$try -Wl,-rpath,$try"
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082 $as_echo "yes" >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7089 rm -f core conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7093 CPPFLAGS="$old_CPPFLAGS"
7096 if test "x$smart_lib" = "x"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
7098 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
7099 LIBS="-lcap $old_LIBS"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 extern char cap_get_proc();
7111 if ac_fn_c_try_link "$LINENO"; then :
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7115 $as_echo "yes" >&6; }
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7121 rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7126 if test "x$smart_lib" = "x"; then
7129 if test "x$LOCATE" != "x"; then
7131 file=libcap${libltdl_cv_shlibext}
7133 for x in `${LOCATE} $file 2>/dev/null`; do
7134 base=`echo $x | sed "s%/${file}%%"`
7135 if test "x$x" = "x$base"; then
7139 dir=`${DIRNAME} $x 2>/dev/null`
7140 exclude=`echo ${dir} | ${GREP} /home`
7141 if test "x$exclude" != "x"; then
7145 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7146 if test "x$already" = "x"; then
7152 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7156 if test "x$LOCATE" != "x"; then
7160 for x in `${LOCATE} $file 2>/dev/null`; do
7161 base=`echo $x | sed "s%/${file}%%"`
7162 if test "x$x" = "x$base"; then
7166 dir=`${DIRNAME} $x 2>/dev/null`
7167 exclude=`echo ${dir} | ${GREP} /home`
7168 if test "x$exclude" != "x"; then
7172 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7173 if test "x$already" = "x"; then
7179 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7182 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7184 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7185 LIBS="-lcap $old_LIBS"
7186 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 extern char cap_get_proc();
7198 if ac_fn_c_try_link "$LINENO"; then :
7201 smart_ldflags="-L$try -Wl,-rpath,$try"
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7210 rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7214 CPPFLAGS="$old_CPPFLAGS"
7217 if test "x$smart_lib" != "x"; then
7218 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7219 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7220 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7223 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7224 { $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
7225 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7228 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7235 $as_echo_n "checking for a readline compatible library... " >&6; }
7236 if ${vl_cv_lib_readline+:} false; then :
7237 $as_echo_n "(cached) " >&6
7241 for readline_lib in readline edit editline; do
7242 for termcap_lib in "" termcap curses ncurses; do
7243 if test -z "$termcap_lib"; then
7244 TRY_LIB="-l$readline_lib"
7246 TRY_LIB="-l$readline_lib -l$termcap_lib"
7248 LIBS="$ORIG_LIBS $TRY_LIB"
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7252 /* Override any GCC internal prototype to avoid an error.
7253 Use char because int might match the return type of a GCC
7254 builtin and then its argument prototype would still apply. */
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 vl_cv_lib_readline="$TRY_LIB"
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 if test -n "$vl_cv_lib_readline"; then
7276 if test -n "$vl_cv_lib_readline"; then
7280 if test -z "$vl_cv_lib_readline"; then
7281 vl_cv_lib_readline="no"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7287 $as_echo "$vl_cv_lib_readline" >&6; }
7289 if test "$vl_cv_lib_readline" != "no"; then
7290 LIBREADLINE="$vl_cv_lib_readline"
7292 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7294 for ac_header in readline.h readline/readline.h
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7299 cat >>confdefs.h <<_ACEOF
7300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7308 $as_echo_n "checking whether readline supports history... " >&6; }
7309 if ${vl_cv_lib_readline_history+:} false; then :
7310 $as_echo_n "(cached) " >&6
7313 vl_cv_lib_readline_history="no"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7317 /* Override any GCC internal prototype to avoid an error.
7318 Use char because int might match the return type of a GCC
7319 builtin and then its argument prototype would still apply. */
7323 char add_history ();
7327 return add_history ();
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 vl_cv_lib_readline_history="yes"
7335 rm -f core conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7340 $as_echo "$vl_cv_lib_readline_history" >&6; }
7341 if test "$vl_cv_lib_readline_history" = "yes"; then
7343 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7345 for ac_header in history.h readline/history.h
7347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7350 cat >>confdefs.h <<_ACEOF
7351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7364 smart_try_dir="$talloc_include_dir"
7367 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7368 old_CPPFLAGS="$CPPFLAGS"
7370 smart_include_dir="/usr/local/include /opt/include"
7375 for _prefix in $smart_prefix ""; do
7376 for _dir in $smart_try_dir; do
7377 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7380 for _dir in $smart_include_dir; do
7381 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7385 if test "x$_smart_try_dir" != "x"; then
7386 for try in $_smart_try_dir; do
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7388 $as_echo_n "checking for talloc.h in $try... " >&6; }
7389 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7402 if ac_fn_c_try_compile "$LINENO"; then :
7404 smart_include="-isystem $try"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 CPPFLAGS="$old_CPPFLAGS"
7421 if test "x$smart_include" = "x"; then
7422 for _prefix in $smart_prefix; do
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7424 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7438 if ac_fn_c_try_compile "$LINENO"; then :
7440 smart_include="-isystem ${_prefix}/"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7442 $as_echo "yes" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 if test "x$smart_include" = "x"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7458 $as_echo_n "checking for talloc.h... " >&6; }
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7472 if ac_fn_c_try_compile "$LINENO"; then :
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476 $as_echo "yes" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 if test "x$smart_include" = "x"; then
7491 for prefix in $smart_prefix; do
7494 if test "x$LOCATE" != "x"; then
7496 file="${_prefix}/${1}"
7498 for x in `${LOCATE} $file 2>/dev/null`; do
7499 base=`echo $x | sed "s%/${file}%%"`
7500 if test "x$x" = "x$base"; then
7504 dir=`${DIRNAME} $x 2>/dev/null`
7505 exclude=`echo ${dir} | ${GREP} /home`
7506 if test "x$exclude" != "x"; then
7510 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7511 if test "x$already" = "x"; then
7517 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7522 if test "x$LOCATE" != "x"; then
7526 for x in `${LOCATE} $file 2>/dev/null`; do
7527 base=`echo $x | sed "s%/${file}%%"`
7528 if test "x$x" = "x$base"; then
7532 dir=`${DIRNAME} $x 2>/dev/null`
7533 exclude=`echo ${dir} | ${GREP} /home`
7534 if test "x$exclude" != "x"; then
7538 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7539 if test "x$already" = "x"; then
7545 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7548 for try in $_smart_include_dir; do
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7550 $as_echo_n "checking for talloc.h in $try... " >&6; }
7551 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7564 if ac_fn_c_try_compile "$LINENO"; then :
7566 smart_include="-isystem $try"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568 $as_echo "yes" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 CPPFLAGS="$old_CPPFLAGS"
7583 if test "x$smart_include" != "x"; then
7584 eval "ac_cv_header_$ac_safe=yes"
7585 CPPFLAGS="$smart_include $old_CPPFLAGS"
7586 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7591 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7593 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7594 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7599 CFLAGS="$CFLAGS -D_ALL_SOURCE"
7602 CFLAGS="$CFLAGS -DDARWIN"
7603 LIBS="-framework DirectoryService $LIBS"
7605 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7612 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7614 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7615 if eval \${$as_ac_Header+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <sys/types.h>
7632 if ac_fn_c_try_compile "$LINENO"; then :
7633 eval "$as_ac_Header=yes"
7635 eval "$as_ac_Header=no"
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 eval ac_res=\$$as_ac_Header
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7643 cat >>confdefs.h <<_ACEOF
7644 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7647 ac_header_dirent=$ac_hdr; break
7651 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7652 if test $ac_header_dirent = dirent.h; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7654 $as_echo_n "checking for library containing opendir... " >&6; }
7655 if ${ac_cv_search_opendir+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 ac_func_search_save_LIBS=$LIBS
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7662 /* Override any GCC internal prototype to avoid an error.
7663 Use char because int might match the return type of a GCC
7664 builtin and then its argument prototype would still apply. */
7677 for ac_lib in '' dir; do
7678 if test -z "$ac_lib"; then
7679 ac_res="none required"
7682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7684 if ac_fn_c_try_link "$LINENO"; then :
7685 ac_cv_search_opendir=$ac_res
7687 rm -f core conftest.err conftest.$ac_objext \
7689 if ${ac_cv_search_opendir+:} false; then :
7693 if ${ac_cv_search_opendir+:} false; then :
7696 ac_cv_search_opendir=no
7699 LIBS=$ac_func_search_save_LIBS
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7702 $as_echo "$ac_cv_search_opendir" >&6; }
7703 ac_res=$ac_cv_search_opendir
7704 if test "$ac_res" != no; then :
7705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7711 $as_echo_n "checking for library containing opendir... " >&6; }
7712 if ${ac_cv_search_opendir+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 ac_func_search_save_LIBS=$LIBS
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7734 for ac_lib in '' x; do
7735 if test -z "$ac_lib"; then
7736 ac_res="none required"
7739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7741 if ac_fn_c_try_link "$LINENO"; then :
7742 ac_cv_search_opendir=$ac_res
7744 rm -f core conftest.err conftest.$ac_objext \
7746 if ${ac_cv_search_opendir+:} false; then :
7750 if ${ac_cv_search_opendir+:} false; then :
7753 ac_cv_search_opendir=no
7756 LIBS=$ac_func_search_save_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7759 $as_echo "$ac_cv_search_opendir" >&6; }
7760 ac_res=$ac_cv_search_opendir
7761 if test "$ac_res" != no; then :
7762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7769 $as_echo_n "checking for ANSI C header files... " >&6; }
7770 if ${ac_cv_header_stdc+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 ac_cv_header_stdc=yes
7791 ac_cv_header_stdc=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 if test $ac_cv_header_stdc = yes; then
7796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7803 $EGREP "memchr" >/dev/null 2>&1; then :
7806 ac_cv_header_stdc=no
7812 if test $ac_cv_header_stdc = yes; then
7813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 $EGREP "free" >/dev/null 2>&1; then :
7823 ac_cv_header_stdc=no
7829 if test $ac_cv_header_stdc = yes; then
7830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7831 if test "$cross_compiling" = yes; then :
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7838 #if ((' ' & 0x0FF) == 0x020)
7839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7842 # define ISLOWER(c) \
7843 (('a' <= (c) && (c) <= 'i') \
7844 || ('j' <= (c) && (c) <= 'r') \
7845 || ('s' <= (c) && (c) <= 'z'))
7846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7854 for (i = 0; i < 256; i++)
7855 if (XOR (islower (i), ISLOWER (i))
7856 || toupper (i) != TOUPPER (i))
7861 if ac_fn_c_try_run "$LINENO"; then :
7864 ac_cv_header_stdc=no
7866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7867 conftest.$ac_objext conftest.beam conftest.$ac_ext
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7873 $as_echo "$ac_cv_header_stdc" >&6; }
7874 if test $ac_cv_header_stdc = yes; then
7876 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7881 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7882 if ${ac_cv_header_time+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <sys/types.h>
7888 #include <sys/time.h>
7894 if ((struct tm *) 0)
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 ac_cv_header_time=yes
7903 ac_cv_header_time=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7908 $as_echo "$ac_cv_header_time" >&6; }
7909 if test $ac_cv_header_time = yes; then
7911 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7916 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7917 if ${ac_cv_header_sys_wait_h+:} false; then :
7918 $as_echo_n "(cached) " >&6
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7923 #include <sys/wait.h>
7925 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7928 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7936 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 ac_cv_header_sys_wait_h=yes
7944 ac_cv_header_sys_wait_h=no
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7949 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7950 if test $ac_cv_header_sys_wait_h = yes; then
7952 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8007 cat >>confdefs.h <<_ACEOF
8008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016 for ac_header in net/if.h
8018 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8019 #ifdef HAVE_SYS_SOCKET_H
8020 # include <sys/socket.h>
8025 if test "x$ac_cv_header_net_if_h" = xyes; then :
8026 cat >>confdefs.h <<_ACEOF
8027 #define HAVE_NET_IF_H 1
8035 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
8038 $as_echo "#define OSFC2 /**/" >>confdefs.h
8042 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
8045 $as_echo "#define OSFSIA /**/" >>confdefs.h
8049 if test "x$WITH_OPENSSL" = xyes; then
8052 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
8054 smart_try_dir="$openssl_lib_dir"
8057 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
8058 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
8061 old_CPPFLAGS="$CPPFLAGS"
8066 if test "x$smart_try_dir" != "x"; then
8067 for try in $smart_try_dir; do
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8069 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8070 LIBS="-lcrypto $old_LIBS"
8071 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 extern char DH_new();
8083 if ac_fn_c_try_link "$LINENO"; then :
8085 smart_lib="-lcrypto"
8086 smart_ldflags="-L$try -Wl,-rpath,$try"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8099 CPPFLAGS="$old_CPPFLAGS"
8102 if test "x$smart_lib" = "x"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
8104 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
8105 LIBS="-lcrypto $old_LIBS"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 extern char DH_new();
8117 if ac_fn_c_try_link "$LINENO"; then :
8119 smart_lib="-lcrypto"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8132 if test "x$smart_lib" = "x"; then
8135 if test "x$LOCATE" != "x"; then
8137 file=libcrypto${libltdl_cv_shlibext}
8139 for x in `${LOCATE} $file 2>/dev/null`; do
8140 base=`echo $x | sed "s%/${file}%%"`
8141 if test "x$x" = "x$base"; then
8145 dir=`${DIRNAME} $x 2>/dev/null`
8146 exclude=`echo ${dir} | ${GREP} /home`
8147 if test "x$exclude" != "x"; then
8151 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8152 if test "x$already" = "x"; then
8158 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8162 if test "x$LOCATE" != "x"; then
8166 for x in `${LOCATE} $file 2>/dev/null`; do
8167 base=`echo $x | sed "s%/${file}%%"`
8168 if test "x$x" = "x$base"; then
8172 dir=`${DIRNAME} $x 2>/dev/null`
8173 exclude=`echo ${dir} | ${GREP} /home`
8174 if test "x$exclude" != "x"; then
8178 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8179 if test "x$already" = "x"; then
8185 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8188 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8190 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8191 LIBS="-lcrypto $old_LIBS"
8192 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 extern char DH_new();
8204 if ac_fn_c_try_link "$LINENO"; then :
8206 smart_lib="-lcrypto"
8207 smart_ldflags="-L$try -Wl,-rpath,$try"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8209 $as_echo "yes" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8216 rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8220 CPPFLAGS="$old_CPPFLAGS"
8223 if test "x$smart_lib" != "x"; then
8224 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8225 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8226 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8229 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8231 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8233 OPENSSL_LIBS="$smart_lib"
8234 OPENSSL_LDFLAGS="$smart_ldflags"
8238 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8239 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8242 old_CPPFLAGS="$CPPFLAGS"
8247 if test "x$smart_try_dir" != "x"; then
8248 for try in $smart_try_dir; do
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8250 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8251 LIBS="-lssl $old_LIBS"
8252 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 extern char SSL_new();
8264 if ac_fn_c_try_link "$LINENO"; then :
8267 smart_ldflags="-L$try -Wl,-rpath,$try"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8276 rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8280 CPPFLAGS="$old_CPPFLAGS"
8283 if test "x$smart_lib" = "x"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8285 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8286 LIBS="-lssl $old_LIBS"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 extern char SSL_new();
8298 if ac_fn_c_try_link "$LINENO"; then :
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8302 $as_echo "yes" >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8313 if test "x$smart_lib" = "x"; then
8316 if test "x$LOCATE" != "x"; then
8318 file=libssl${libltdl_cv_shlibext}
8320 for x in `${LOCATE} $file 2>/dev/null`; do
8321 base=`echo $x | sed "s%/${file}%%"`
8322 if test "x$x" = "x$base"; then
8326 dir=`${DIRNAME} $x 2>/dev/null`
8327 exclude=`echo ${dir} | ${GREP} /home`
8328 if test "x$exclude" != "x"; then
8332 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8333 if test "x$already" = "x"; then
8339 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8343 if test "x$LOCATE" != "x"; then
8347 for x in `${LOCATE} $file 2>/dev/null`; do
8348 base=`echo $x | sed "s%/${file}%%"`
8349 if test "x$x" = "x$base"; then
8353 dir=`${DIRNAME} $x 2>/dev/null`
8354 exclude=`echo ${dir} | ${GREP} /home`
8355 if test "x$exclude" != "x"; then
8359 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8360 if test "x$already" = "x"; then
8366 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8369 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8371 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8372 LIBS="-lssl $old_LIBS"
8373 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 extern char SSL_new();
8385 if ac_fn_c_try_link "$LINENO"; then :
8388 smart_ldflags="-L$try -Wl,-rpath,$try"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8390 $as_echo "yes" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8397 rm -f core conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8401 CPPFLAGS="$old_CPPFLAGS"
8404 if test "x$smart_lib" != "x"; then
8405 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8406 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8407 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8410 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8413 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8414 See \`config.log' for more details" "$LINENO" 5; }
8417 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8419 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8421 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8424 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8425 See \`config.log' for more details" "$LINENO" 5; }
8429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8431 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8432 See \`config.log' for more details" "$LINENO" 5; }
8435 smart_try_dir="$openssl_include_dir"
8438 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8439 old_CPPFLAGS="$CPPFLAGS"
8441 smart_include_dir="/usr/local/include /opt/include"
8446 for _prefix in $smart_prefix ""; do
8447 for _dir in $smart_try_dir; do
8448 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8451 for _dir in $smart_include_dir; do
8452 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8456 if test "x$_smart_try_dir" != "x"; then
8457 for try in $_smart_try_dir; do
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8459 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8460 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8464 #include <openssl/ssl.h>
8473 if ac_fn_c_try_compile "$LINENO"; then :
8475 smart_include="-isystem $try"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8477 $as_echo "yes" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 CPPFLAGS="$old_CPPFLAGS"
8492 if test "x$smart_include" = "x"; then
8493 for _prefix in $smart_prefix; do
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8495 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8500 #include <openssl/ssl.h>
8509 if ac_fn_c_try_compile "$LINENO"; then :
8511 smart_include="-isystem ${_prefix}/"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 if test "x$smart_include" = "x"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8529 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8534 #include <openssl/ssl.h>
8543 if ac_fn_c_try_compile "$LINENO"; then :
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8547 $as_echo "yes" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 if test "x$smart_include" = "x"; then
8562 for prefix in $smart_prefix; do
8565 if test "x$LOCATE" != "x"; then
8567 file="${_prefix}/${1}"
8569 for x in `${LOCATE} $file 2>/dev/null`; do
8570 base=`echo $x | sed "s%/${file}%%"`
8571 if test "x$x" = "x$base"; then
8575 dir=`${DIRNAME} $x 2>/dev/null`
8576 exclude=`echo ${dir} | ${GREP} /home`
8577 if test "x$exclude" != "x"; then
8581 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8582 if test "x$already" = "x"; then
8588 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8593 if test "x$LOCATE" != "x"; then
8597 for x in `${LOCATE} $file 2>/dev/null`; do
8598 base=`echo $x | sed "s%/${file}%%"`
8599 if test "x$x" = "x$base"; then
8603 dir=`${DIRNAME} $x 2>/dev/null`
8604 exclude=`echo ${dir} | ${GREP} /home`
8605 if test "x$exclude" != "x"; then
8609 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8610 if test "x$already" = "x"; then
8616 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8619 for try in $_smart_include_dir; do
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8621 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8622 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8626 #include <openssl/ssl.h>
8635 if ac_fn_c_try_compile "$LINENO"; then :
8637 smart_include="-isystem $try"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8639 $as_echo "yes" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 CPPFLAGS="$old_CPPFLAGS"
8654 if test "x$smart_include" != "x"; then
8655 eval "ac_cv_header_$ac_safe=yes"
8656 CPPFLAGS="$smart_include $old_CPPFLAGS"
8657 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8662 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8664 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8683 cat >>confdefs.h <<_ACEOF
8684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8686 OPENSSL_CPPFLAGS="$smart_include"
8689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8691 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8692 See \`config.log' for more details" "$LINENO" 5; }
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8701 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #include <openssl/crypto.h>
8705 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 $EGREP "yes" >/dev/null 2>&1; then :
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8714 $as_echo "yes" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8722 as_fn_error $? "OpenSSL version too old
8723 See \`config.log' for more details" "$LINENO" 5; }
8730 old_CPPFLAGS="$CPPFLAGS"
8731 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8734 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8735 if test "$cross_compiling" = yes; then :
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling (assuming yes)" >&5
8738 $as_echo "cross-compiling (assuming yes)" >&6; }
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; }
8780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8781 conftest.$ac_objext conftest.beam conftest.$ac_ext
8785 SSL_get_client_random \
8786 SSL_get_server_random \
8789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8799 CPPFLAGS="$old_CPPFLAGS"
8806 export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8809 if test "x$PCAP_LIBS" = x; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8811 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8813 smart_try_dir="$pcap_include_dir"
8816 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8817 old_CPPFLAGS="$CPPFLAGS"
8819 smart_include_dir="/usr/local/include /opt/include"
8824 for _prefix in $smart_prefix ""; do
8825 for _dir in $smart_try_dir; do
8826 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8829 for _dir in $smart_include_dir; do
8830 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8834 if test "x$_smart_try_dir" != "x"; then
8835 for try in $_smart_try_dir; do
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8837 $as_echo_n "checking for pcap.h in $try... " >&6; }
8838 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8851 if ac_fn_c_try_compile "$LINENO"; then :
8853 smart_include="-isystem $try"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8855 $as_echo "yes" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 CPPFLAGS="$old_CPPFLAGS"
8870 if test "x$smart_include" = "x"; then
8871 for _prefix in $smart_prefix; do
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8873 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8887 if ac_fn_c_try_compile "$LINENO"; then :
8889 smart_include="-isystem ${_prefix}/"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891 $as_echo "yes" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 if test "x$smart_include" = "x"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8907 $as_echo_n "checking for pcap.h... " >&6; }
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8921 if ac_fn_c_try_compile "$LINENO"; then :
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925 $as_echo "yes" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 if test "x$smart_include" = "x"; then
8940 for prefix in $smart_prefix; do
8943 if test "x$LOCATE" != "x"; then
8945 file="${_prefix}/${1}"
8947 for x in `${LOCATE} $file 2>/dev/null`; do
8948 base=`echo $x | sed "s%/${file}%%"`
8949 if test "x$x" = "x$base"; then
8953 dir=`${DIRNAME} $x 2>/dev/null`
8954 exclude=`echo ${dir} | ${GREP} /home`
8955 if test "x$exclude" != "x"; then
8959 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8960 if test "x$already" = "x"; then
8966 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8971 if test "x$LOCATE" != "x"; then
8975 for x in `${LOCATE} $file 2>/dev/null`; do
8976 base=`echo $x | sed "s%/${file}%%"`
8977 if test "x$x" = "x$base"; then
8981 dir=`${DIRNAME} $x 2>/dev/null`
8982 exclude=`echo ${dir} | ${GREP} /home`
8983 if test "x$exclude" != "x"; then
8987 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8988 if test "x$already" = "x"; then
8994 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8997 for try in $_smart_include_dir; do
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8999 $as_echo_n "checking for pcap.h in $try... " >&6; }
9000 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9013 if ac_fn_c_try_compile "$LINENO"; then :
9015 smart_include="-isystem $try"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9017 $as_echo "yes" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 CPPFLAGS="$old_CPPFLAGS"
9032 if test "x$smart_include" != "x"; then
9033 eval "ac_cv_header_$ac_safe=yes"
9034 CPPFLAGS="$smart_include $old_CPPFLAGS"
9035 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9040 if test "x$ac_cv_header_pcap_h" == "xyes"; then
9042 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
9047 { $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
9048 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
9052 if test "x$COLLECTDC_LIBS" = x; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
9054 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
9056 smart_try_dir="$collectdclient_include_dir"
9059 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
9060 old_CPPFLAGS="$CPPFLAGS"
9062 smart_include_dir="/usr/local/include /opt/include"
9067 for _prefix in $smart_prefix ""; do
9068 for _dir in $smart_try_dir; do
9069 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9072 for _dir in $smart_include_dir; do
9073 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9077 if test "x$_smart_try_dir" != "x"; then
9078 for try in $_smart_try_dir; do
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9080 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9081 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9085 #include <collectd/client.h>
9094 if ac_fn_c_try_compile "$LINENO"; then :
9096 smart_include="-isystem $try"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098 $as_echo "yes" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 CPPFLAGS="$old_CPPFLAGS"
9113 if test "x$smart_include" = "x"; then
9114 for _prefix in $smart_prefix; do
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
9116 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9121 #include <collectd/client.h>
9130 if ac_fn_c_try_compile "$LINENO"; then :
9132 smart_include="-isystem ${_prefix}/"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9134 $as_echo "yes" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148 if test "x$smart_include" = "x"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9150 $as_echo_n "checking for collectd/client.h... " >&6; }
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9155 #include <collectd/client.h>
9164 if ac_fn_c_try_compile "$LINENO"; then :
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9168 $as_echo "yes" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 if test "x$smart_include" = "x"; then
9183 for prefix in $smart_prefix; do
9186 if test "x$LOCATE" != "x"; then
9188 file="${_prefix}/${1}"
9190 for x in `${LOCATE} $file 2>/dev/null`; do
9191 base=`echo $x | sed "s%/${file}%%"`
9192 if test "x$x" = "x$base"; then
9196 dir=`${DIRNAME} $x 2>/dev/null`
9197 exclude=`echo ${dir} | ${GREP} /home`
9198 if test "x$exclude" != "x"; then
9202 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9203 if test "x$already" = "x"; then
9209 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9214 if test "x$LOCATE" != "x"; then
9216 file=collectd/client.h
9218 for x in `${LOCATE} $file 2>/dev/null`; do
9219 base=`echo $x | sed "s%/${file}%%"`
9220 if test "x$x" = "x$base"; then
9224 dir=`${DIRNAME} $x 2>/dev/null`
9225 exclude=`echo ${dir} | ${GREP} /home`
9226 if test "x$exclude" != "x"; then
9230 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9231 if test "x$already" = "x"; then
9237 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9240 for try in $_smart_include_dir; do
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9242 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9243 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9247 #include <collectd/client.h>
9256 if ac_fn_c_try_compile "$LINENO"; then :
9258 smart_include="-isystem $try"
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9260 $as_echo "yes" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 CPPFLAGS="$old_CPPFLAGS"
9275 if test "x$smart_include" != "x"; then
9276 eval "ac_cv_header_$ac_safe=yes"
9277 CPPFLAGS="$smart_include $old_CPPFLAGS"
9278 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9283 if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9285 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9291 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9295 if test "x$HAVE_LIBCAP" = x; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9297 $as_echo "$as_me: skipping test for cap.h." >&6;}
9299 smart_try_dir="$cap_include_dir"
9302 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9303 old_CPPFLAGS="$CPPFLAGS"
9305 smart_include_dir="/usr/local/include /opt/include"
9310 for _prefix in $smart_prefix ""; do
9311 for _dir in $smart_try_dir; do
9312 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9315 for _dir in $smart_include_dir; do
9316 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9320 if test "x$_smart_try_dir" != "x"; then
9321 for try in $_smart_try_dir; do
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9323 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9324 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9328 #include <sys/capability.h>
9337 if ac_fn_c_try_compile "$LINENO"; then :
9339 smart_include="-isystem $try"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9341 $as_echo "yes" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 CPPFLAGS="$old_CPPFLAGS"
9356 if test "x$smart_include" = "x"; then
9357 for _prefix in $smart_prefix; do
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9359 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 #include <sys/capability.h>
9373 if ac_fn_c_try_compile "$LINENO"; then :
9375 smart_include="-isystem ${_prefix}/"
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9377 $as_echo "yes" >&6; }
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9384 $as_echo "no" >&6; }
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 if test "x$smart_include" = "x"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9393 $as_echo_n "checking for sys/capability.h... " >&6; }
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9398 #include <sys/capability.h>
9407 if ac_fn_c_try_compile "$LINENO"; then :
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9411 $as_echo "yes" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 if test "x$smart_include" = "x"; then
9426 for prefix in $smart_prefix; do
9429 if test "x$LOCATE" != "x"; then
9431 file="${_prefix}/${1}"
9433 for x in `${LOCATE} $file 2>/dev/null`; do
9434 base=`echo $x | sed "s%/${file}%%"`
9435 if test "x$x" = "x$base"; then
9439 dir=`${DIRNAME} $x 2>/dev/null`
9440 exclude=`echo ${dir} | ${GREP} /home`
9441 if test "x$exclude" != "x"; then
9445 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9446 if test "x$already" = "x"; then
9452 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9457 if test "x$LOCATE" != "x"; then
9459 file=sys/capability.h
9461 for x in `${LOCATE} $file 2>/dev/null`; do
9462 base=`echo $x | sed "s%/${file}%%"`
9463 if test "x$x" = "x$base"; then
9467 dir=`${DIRNAME} $x 2>/dev/null`
9468 exclude=`echo ${dir} | ${GREP} /home`
9469 if test "x$exclude" != "x"; then
9473 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9474 if test "x$already" = "x"; then
9480 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9483 for try in $_smart_include_dir; do
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9485 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9486 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9490 #include <sys/capability.h>
9499 if ac_fn_c_try_compile "$LINENO"; then :
9501 smart_include="-isystem $try"
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9503 $as_echo "yes" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 CPPFLAGS="$old_CPPFLAGS"
9518 if test "x$smart_include" != "x"; then
9519 eval "ac_cv_header_$ac_safe=yes"
9520 CPPFLAGS="$smart_include $old_CPPFLAGS"
9521 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9526 if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9528 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9532 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9537 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9538 if test "x$ac_cv_type_off_t" = xyes; then :
9542 cat >>confdefs.h <<_ACEOF
9543 #define off_t long int
9548 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9549 if test "x$ac_cv_type_pid_t" = xyes; then :
9553 cat >>confdefs.h <<_ACEOF
9559 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9560 if test "x$ac_cv_type_size_t" = xyes; then :
9564 cat >>confdefs.h <<_ACEOF
9565 #define size_t unsigned int
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9571 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9572 if ${ac_cv_type_uid_t+:} false; then :
9573 $as_echo_n "(cached) " >&6
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 #include <sys/types.h>
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581 $EGREP "uid_t" >/dev/null 2>&1; then :
9582 ac_cv_type_uid_t=yes
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9590 $as_echo "$ac_cv_type_uid_t" >&6; }
9591 if test $ac_cv_type_uid_t = no; then
9593 $as_echo "#define uid_t int" >>confdefs.h
9596 $as_echo "#define gid_t int" >>confdefs.h
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9603 $as_echo_n "checking for socklen_t... " >&6; }
9604 if ${ac_cv_type_socklen_t+:} false; then :
9605 $as_echo_n "(cached) " >&6
9607 ac_cv_type_socklen_t=no
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 #ifdef HAVE_SYS_TYPES_H
9611 # include <sys/types.h>
9614 #ifdef HAVE_SYS_SOCKET_H
9615 # include <sys/socket.h>
9626 if ac_fn_c_try_compile "$LINENO"; then :
9627 ac_cv_type_socklen_t=yes
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9634 $as_echo "$ac_cv_type_socklen_t" >&6; }
9636 if test "$ac_cv_type_socklen_t" != "yes"; then
9638 $as_echo "#define socklen_t int" >>confdefs.h
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9645 $as_echo_n "checking for uint8_t... " >&6; }
9646 if ${ac_cv_type_uint8_t+:} false; then :
9647 $as_echo_n "(cached) " >&6
9649 ac_cv_type_uint8_t=no
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 #ifdef HAVE_INTTYPES_H
9653 # include <inttypes.h>
9656 #ifdef HAVE_STDINT_H
9657 # include <stdint.h>
9668 if ac_fn_c_try_compile "$LINENO"; then :
9669 ac_cv_type_uint8_t=yes
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9676 $as_echo "$ac_cv_type_uint8_t" >&6; }
9678 if test "$ac_cv_type_uint8_t" != "yes"; then
9680 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9687 $as_echo_n "checking for uint16_t... " >&6; }
9688 if ${ac_cv_type_uint16_t+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 ac_cv_type_uint16_t=no
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 #ifdef HAVE_INTTYPES_H
9695 # include <inttypes.h>
9698 #ifdef HAVE_STDINT_H
9699 # include <stdint.h>
9710 if ac_fn_c_try_compile "$LINENO"; then :
9711 ac_cv_type_uint16_t=yes
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9718 $as_echo "$ac_cv_type_uint16_t" >&6; }
9720 if test "$ac_cv_type_uint16_t" != "yes"; then
9722 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9729 $as_echo_n "checking for uint32_t... " >&6; }
9730 if ${ac_cv_type_uint32_t+:} false; then :
9731 $as_echo_n "(cached) " >&6
9733 ac_cv_type_uint32_t=no
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 #ifdef HAVE_INTTYPES_H
9737 # include <inttypes.h>
9740 #ifdef HAVE_STDINT_H
9741 # include <stdint.h>
9752 if ac_fn_c_try_compile "$LINENO"; then :
9753 ac_cv_type_uint32_t=yes
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9760 $as_echo "$ac_cv_type_uint32_t" >&6; }
9762 if test "$ac_cv_type_uint32_t" != "yes"; then
9764 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9771 $as_echo_n "checking for uint64_t... " >&6; }
9772 if ${ac_cv_type_uint64_t+:} false; then :
9773 $as_echo_n "(cached) " >&6
9775 ac_cv_type_uint64_t=no
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #ifdef HAVE_INTTYPES_H
9779 # include <inttypes.h>
9782 #ifdef HAVE_STDINT_H
9783 # include <stdint.h>
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 ac_cv_type_uint64_t=yes
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9802 $as_echo "$ac_cv_type_uint64_t" >&6; }
9804 if test "$ac_cv_type_uint64_t" != "yes"; then
9806 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9811 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9812 if test "x$ac_cv_type___uint128_t" = xyes; then :
9814 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9819 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9820 #ifdef HAVE_INTTYPES_H
9821 # include <inttypes.h>
9824 #ifdef HAVE_STDINT_H
9825 # include <stdint.h>
9830 if test "x$ac_cv_type_uint128_t" = xyes; then :
9832 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9837 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9838 #ifdef HAVE_NETINET_IN_H
9839 # include <netinet/in.h>
9844 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9846 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9851 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9852 #ifdef HAVE_NETINET_IN_H
9853 # include <netinet/in.h>
9856 #ifdef HAVE_SYS_SOCKET_H
9857 # include <sys/socket.h>
9861 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9863 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9868 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9869 #ifdef HAVE_NETINET_IN_H
9870 # include <netinet/in.h>
9874 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9876 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9881 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9882 #ifdef HAVE_SYS_TYPES_H
9883 # include <sys/types.h>
9886 #ifdef HAVE_SYS_SOCKET_H
9887 # include <sys/socket.h>
9896 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9898 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9904 $as_echo_n "checking if sig_t is defined... " >&6; }
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9908 #ifdef HAVE_SIGNAL_H
9909 # include <signal.h>
9924 if ac_fn_c_try_link "$LINENO"; then :
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9927 $as_echo "yes" >&6; }
9929 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10001 $as_echo_n "checking return type of signal handlers... " >&6; }
10002 if ${ac_cv_type_signal+:} false; then :
10003 $as_echo_n "(cached) " >&6
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 #include <sys/types.h>
10008 #include <signal.h>
10013 return *(signal (0, 0)) (0) == 1;
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 ac_cv_type_signal=int
10021 ac_cv_type_signal=void
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10026 $as_echo "$ac_cv_type_signal" >&6; }
10028 cat >>confdefs.h <<_ACEOF
10029 #define RETSIGTYPE $ac_cv_type_signal
10034 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
10037 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10044 #ifdef HAVE_STDDEF_H
10045 #include <stddef.h>
10048 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10054 int foo = offsetof(struct utmpx, ut_xtime)
10059 if ac_fn_c_try_compile "$LINENO"; then :
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
10067 if test "x$has_element" != "x"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069 $as_echo "yes" >&6; }
10070 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
10077 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
10079 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
10086 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10092 #include <netinet/in.h>
10093 #ifdef HAVE_STDDEF_H
10094 #include <stddef.h>
10097 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10103 int foo = offsetof(struct in_pktinfo, ipi_addr)
10108 if ac_fn_c_try_compile "$LINENO"; then :
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
10116 if test "x$has_element" != "x"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118 $as_echo "yes" >&6; }
10119 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10123 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
10126 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
10128 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
10134 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 #include <netinet/in.h>
10141 #ifdef HAVE_STDDEF_H
10142 #include <stddef.h>
10145 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10151 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10156 if ac_fn_c_try_compile "$LINENO"; then :
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10164 if test "x$has_element" != "x"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10166 $as_echo "yes" >&6; }
10167 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10174 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10176 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10181 $as_echo_n "checking if htonll is defined... " >&6; }
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 #include <sys/types.h>
10186 #include <netinet/in.h>
10199 if ac_fn_c_try_link "$LINENO"; then :
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10202 $as_echo "yes" >&6; }
10204 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10218 $as_echo_n "checking if htonlll is defined... " >&6; }
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10222 #include <sys/types.h>
10223 #include <netinet/in.h>
10236 if ac_fn_c_try_link "$LINENO"; then :
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10239 $as_echo "yes" >&6; }
10241 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10256 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10257 if ${ac_cv_c_const+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10267 #ifndef __cplusplus
10268 /* Ultrix mips cc rejects this sort of thing. */
10269 typedef int charset[2];
10270 const charset cs = { 0, 0 };
10271 /* SunOS 4.1.1 cc rejects this. */
10272 char const *const *pcpcc;
10274 /* NEC SVR4.0.2 mips cc rejects this. */
10275 struct point {int x, y;};
10276 static struct point const zero = {0,0};
10277 /* AIX XL C 1.02.0.0 rejects this.
10278 It does not let you subtract one const X* pointer from another in
10279 an arm of an if-expression whose if-part is not a constant
10281 const char *g = "string";
10282 pcpcc = &g + (g ? g-g : 0);
10283 /* HPUX 7.0 cc rejects these. */
10285 ppc = (char**) pcpcc;
10286 pcpcc = (char const *const *) ppc;
10287 { /* SCO 3.2v4 cc rejects this sort of thing. */
10290 char const *s = 0 ? (char *) 0 : (char const *) 0;
10295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10296 int x[] = {25, 17};
10297 const int *foo = &x[0];
10300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10301 typedef const int *iptr;
10305 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10307 struct s { int j; const int *ap[3]; } bx;
10308 struct s *b = &bx; b->j = 5;
10310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10311 const int foo = 10;
10312 if (!foo) return 0;
10314 return !cs[0] && !zero.x;
10321 if ac_fn_c_try_compile "$LINENO"; then :
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10329 $as_echo "$ac_cv_c_const" >&6; }
10330 if test $ac_cv_c_const = no; then
10332 $as_echo "#define const /**/" >>confdefs.h
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10338 $as_echo_n "checking type of OS... " >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10341 $as_echo "$OS" >&6; }
10342 if test "$OS" = "OS/2"; then
10349 if test "x$developer" = "xyes"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10351 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10355 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10356 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10357 $as_echo_n "(cached) " >&6
10361 CFLAGS_SAVED=$CFLAGS
10362 CFLAGS="$CFLAGS -Werror -Wdocumentation"
10365 ac_cpp='$CPP $CPPFLAGS'
10366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10381 if ac_fn_c_try_compile "$LINENO"; then :
10382 ax_cv_cc_wdocumentation_flag="yes"
10384 ax_cv_cc_wdocumentation_flag="no"
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10388 ac_cpp='$CPP $CPPFLAGS'
10389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10394 CFLAGS="$CFLAGS_SAVED"
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10398 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10400 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10401 devflags="-Wdocumentation"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Weverything\"" >&5
10406 $as_echo_n "checking for the compiler flag \"-Weverything\"... " >&6; }
10407 if ${ax_cv_cc_weverything_flag+:} false; then :
10408 $as_echo_n "(cached) " >&6
10412 CFLAGS_SAVED=$CFLAGS
10413 CFLAGS="$CFLAGS -Werror -Weverything -Wno-unused-macros -Wno-unreachable-code-return"
10416 ac_cpp='$CPP $CPPFLAGS'
10417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10432 if ac_fn_c_try_compile "$LINENO"; then :
10433 ax_cv_cc_weverything_flag="yes"
10435 ax_cv_cc_weverything_flag="no"
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439 ac_cpp='$CPP $CPPFLAGS'
10440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445 CFLAGS="$CFLAGS_SAVED"
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_weverything_flag" >&5
10449 $as_echo "$ax_cv_cc_weverything_flag" >&6; }
10451 if test "x$ax_cv_cc_weverything_flag" = "xyes"; then
10452 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 -DWITH_VERIFY_PTR=1"
10454 if test "x$GCC" = "xyes"; then
10455 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"
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10461 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10463 CFLAGS="$CFLAGS $devflags"
10464 if test "x$EXPERIMENTAL" != "xno"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10466 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10471 CFLAGS="$CFLAGS -DNDEBUG"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10476 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10477 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479 $as_echo "yes" >&6; }
10481 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10488 export EXPERIMENTAL
10490 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10491 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10493 cat >>confdefs.h <<_ACEOF
10494 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10501 $as_echo_n "checking for __thread support in compiler... " >&6; }
10502 if test "$cross_compiling" = yes; then :
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 static __thread int val;
10509 int main(int argc, char **argv) {
10516 if ac_fn_c_try_run "$LINENO"; then :
10521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10522 conftest.$ac_objext conftest.beam conftest.$ac_ext
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10526 $as_echo "$have_tls" >&6; }
10527 if test "x$have_tls" = "xyes"; then
10529 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10533 if test "x$have_tls" = "xno"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10535 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10536 if test "$cross_compiling" = yes; then :
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10542 static _Thread_local int val;
10543 int main(int argc, char **argv) {
10550 if ac_fn_c_try_run "$LINENO"; then :
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10556 conftest.$ac_objext conftest.beam conftest.$ac_ext
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10560 $as_echo "$have_tls" >&6; }
10561 if test "x$have_tls" = "xyes"; then
10563 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10567 if test "x$have_tls" = "xno"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10569 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10570 if test "$cross_compiling" = yes; then :
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 static _Thread_local int val;
10577 int main(int argc, char **argv) {
10584 if ac_fn_c_try_run "$LINENO"; then :
10589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10590 conftest.$ac_objext conftest.beam conftest.$ac_ext
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10594 $as_echo "$have_tls" >&6; }
10595 if test "x$have_tls" = "xyes"; then
10597 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10604 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10605 if ${ax_cv_cc_builtin_choose_expr+:} false; then :
10606 $as_echo_n "(cached) " >&6
10609 if test "$cross_compiling" = yes; then :
10610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10612 as_fn_error $? "cannot run test program while cross compiling
10613 See \`config.log' for more details" "$LINENO" 5; }
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10619 int main(int argc, char **argv) {
10620 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10621 return __builtin_choose_expr(0, 1, 0);
10626 if ac_fn_c_try_run "$LINENO"; then :
10627 ax_cv_cc_builtin_choose_expr=yes
10629 ax_cv_cc_builtin_choose_expr=no
10632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10633 conftest.$ac_objext conftest.beam conftest.$ac_ext
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_choose_expr" >&5
10639 $as_echo "$ax_cv_cc_builtin_choose_expr" >&6; }
10640 if test "x$ax_cv_cc_builtin_choose_expr" = "xyes"; then
10642 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10648 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10649 if ${ax_cv_cc_builtin_types_compatible_p+:} false; then :
10650 $as_echo_n "(cached) " >&6
10653 if test "$cross_compiling" = yes; then :
10654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10656 as_fn_error $? "cannot run test program while cross compiling
10657 See \`config.log' for more details" "$LINENO" 5; }
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10663 int main(int argc, char **argv) {
10664 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10665 return !(__builtin_types_compatible_p(char *, char *));
10670 if ac_fn_c_try_run "$LINENO"; then :
10671 ax_cv_cc_builtin_types_compatible_p=yes
10673 ax_cv_cc_builtin_types_compatible_p=no
10676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10677 conftest.$ac_objext conftest.beam conftest.$ac_ext
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_types_compatible_p" >&5
10683 $as_echo "$ax_cv_cc_builtin_types_compatible_p" >&6; }
10684 if test "x$ax_cv_cc_builtin_types_compatible_p" = "xyes"; then
10686 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10692 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10693 if ${ax_cv_cc_builtin_bswap64+:} false; then :
10694 $as_echo_n "(cached) " >&6
10697 if test "$cross_compiling" = yes; then :
10698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10700 as_fn_error $? "cannot run test program while cross compiling
10701 See \`config.log' for more details" "$LINENO" 5; }
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10707 int main(int argc, char **argv) {
10708 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10709 return (__builtin_bswap64(0));
10714 if ac_fn_c_try_run "$LINENO"; then :
10715 ax_cv_cc_builtin_bswap64=yes
10717 ax_cv_cc_builtin_bswap64=no
10720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10721 conftest.$ac_objext conftest.beam conftest.$ac_ext
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_builtin_bswap64" >&5
10727 $as_echo "$ax_cv_cc_builtin_bswap64" >&6; }
10728 if test "x$ax_cv_cc_builtin_bswap64" = "xyes"; then
10730 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__bounded__)) support in compiler" >&5
10736 $as_echo_n "checking for __attribute__((__bounded__)) support in compiler... " >&6; }
10737 if ${ax_cv_cc_bounded_attribute+:} false; then :
10738 $as_echo_n "(cached) " >&6
10741 CFLAGS_SAVED=$CFLAGS
10742 CFLAGS="$CFLAGS -Werror"
10743 if test "$cross_compiling" = yes; then :
10744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10746 as_fn_error $? "cannot run test program while cross compiling
10747 See \`config.log' for more details" "$LINENO" 5; }
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10753 void test(char *buff) __attribute__ ((__bounded__ (__string__, 1, 1)));
10754 int main(int argc, char **argv) {
10755 if ((argc < 0) || !argv) return 1; /* -Werror=unused-parameter */
10761 if ac_fn_c_try_run "$LINENO"; then :
10762 ax_cv_cc_bounded_attribute=yes
10764 ax_cv_cc_bounded_attribute=no
10767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10768 conftest.$ac_objext conftest.beam conftest.$ac_ext
10771 CFLAGS="$CFLAGS_SAVED"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_bounded_attribute" >&5
10775 $as_echo "$ax_cv_cc_bounded_attribute" >&6; }
10776 if test "x$ax_cv_cc_bounded_attribute" = "xyes"; then
10778 $as_echo "#define HAVE_ATTRIBUTE_BOUNDED 1" >>confdefs.h
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10785 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10786 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-ltalloc $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10800 char talloc_set_memlimit ();
10804 return talloc_set_memlimit ();
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_talloc_talloc_set_memlimit=yes
10812 ac_cv_lib_talloc_talloc_set_memlimit=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10819 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10820 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10823 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10831 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10832 if ${ac_cv_lib_crypt_crypt+:} false; then :
10833 $as_echo_n "(cached) " >&6
10835 ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-lcrypt $LIBS"
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10840 /* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
10855 if ac_fn_c_try_link "$LINENO"; then :
10856 ac_cv_lib_crypt_crypt=yes
10858 ac_cv_lib_crypt_crypt=no
10860 rm -f core conftest.err conftest.$ac_objext \
10861 conftest$ac_exeext conftest.$ac_ext
10862 LIBS=$ac_check_lib_save_LIBS
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10865 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10866 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10872 if test "$CRYPTLIB" != ""; then
10874 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10877 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10878 if test "x$ac_cv_func_crypt" = xyes; then :
10880 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10887 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10888 if ${ac_cv_lib_cipher_setkey+:} false; then :
10889 $as_echo_n "(cached) " >&6
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-lcipher $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_cipher_setkey=yes
10914 ac_cv_lib_cipher_setkey=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10921 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10922 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10923 CRYPTLIB="${CRYPTLIB} -lcipher"
10931 # Check whether --with-execinfo-lib-dir was given.
10932 if test "${with_execinfo_lib_dir+set}" = set; then :
10933 withval=$with_execinfo_lib_dir; case "$withval" in
10935 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10940 execinfo_lib_dir="$withval"
10947 execinfo_include_dir=
10949 # Check whether --with-execinfo-include-dir was given.
10950 if test "${with_execinfo_include_dir+set}" = set; then :
10951 withval=$with_execinfo_include_dir; case "$withval" in
10953 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10958 execinfo_include_dir="$withval"
10965 smart_try_dir=$execinfo_include_dir
10968 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10969 old_CPPFLAGS="$CPPFLAGS"
10971 smart_include_dir="/usr/local/include /opt/include"
10974 _smart_include_dir=
10976 for _prefix in $smart_prefix ""; do
10977 for _dir in $smart_try_dir; do
10978 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10981 for _dir in $smart_include_dir; do
10982 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10986 if test "x$_smart_try_dir" != "x"; then
10987 for try in $_smart_try_dir; do
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10989 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10990 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 #include <execinfo.h>
11003 if ac_fn_c_try_compile "$LINENO"; then :
11005 smart_include="-isystem $try"
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007 $as_echo "yes" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 CPPFLAGS="$old_CPPFLAGS"
11022 if test "x$smart_include" = "x"; then
11023 for _prefix in $smart_prefix; do
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
11025 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11030 #include <execinfo.h>
11039 if ac_fn_c_try_compile "$LINENO"; then :
11041 smart_include="-isystem ${_prefix}/"
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11043 $as_echo "yes" >&6; }
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 if test "x$smart_include" = "x"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
11059 $as_echo_n "checking for execinfo.h... " >&6; }
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 #include <execinfo.h>
11073 if ac_fn_c_try_compile "$LINENO"; then :
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 if test "x$smart_include" = "x"; then
11092 for prefix in $smart_prefix; do
11095 if test "x$LOCATE" != "x"; then
11097 file="${_prefix}/${1}"
11099 for x in `${LOCATE} $file 2>/dev/null`; do
11100 base=`echo $x | sed "s%/${file}%%"`
11101 if test "x$x" = "x$base"; then
11105 dir=`${DIRNAME} $x 2>/dev/null`
11106 exclude=`echo ${dir} | ${GREP} /home`
11107 if test "x$exclude" != "x"; then
11111 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11112 if test "x$already" = "x"; then
11118 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11123 if test "x$LOCATE" != "x"; then
11127 for x in `${LOCATE} $file 2>/dev/null`; do
11128 base=`echo $x | sed "s%/${file}%%"`
11129 if test "x$x" = "x$base"; then
11133 dir=`${DIRNAME} $x 2>/dev/null`
11134 exclude=`echo ${dir} | ${GREP} /home`
11135 if test "x$exclude" != "x"; then
11139 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11140 if test "x$already" = "x"; then
11146 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11149 for try in $_smart_include_dir; do
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
11151 $as_echo_n "checking for execinfo.h in $try... " >&6; }
11152 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 #include <execinfo.h>
11165 if ac_fn_c_try_compile "$LINENO"; then :
11167 smart_include="-isystem $try"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 CPPFLAGS="$old_CPPFLAGS"
11184 if test "x$smart_include" != "x"; then
11185 eval "ac_cv_header_$ac_safe=yes"
11186 CPPFLAGS="$smart_include $old_CPPFLAGS"
11187 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11192 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
11193 smart_try_dir=$execinfo_lib_dir
11196 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
11197 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
11200 old_CPPFLAGS="$CPPFLAGS"
11205 if test "x$smart_try_dir" != "x"; then
11206 for try in $smart_try_dir; do
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11208 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11209 LIBS="-lexecinfo $old_LIBS"
11210 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11213 extern char backtrace_symbols();
11217 backtrace_symbols()
11222 if ac_fn_c_try_link "$LINENO"; then :
11224 smart_lib="-lexecinfo"
11225 smart_ldflags="-L$try -Wl,-rpath,$try"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11227 $as_echo "yes" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11234 rm -f core conftest.err conftest.$ac_objext \
11235 conftest$ac_exeext conftest.$ac_ext
11238 CPPFLAGS="$old_CPPFLAGS"
11241 if test "x$smart_lib" = "x"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
11243 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
11244 LIBS="-lexecinfo $old_LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 extern char backtrace_symbols();
11251 backtrace_symbols()
11256 if ac_fn_c_try_link "$LINENO"; then :
11258 smart_lib="-lexecinfo"
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11266 rm -f core conftest.err conftest.$ac_objext \
11267 conftest$ac_exeext conftest.$ac_ext
11271 if test "x$smart_lib" = "x"; then
11274 if test "x$LOCATE" != "x"; then
11276 file=libexecinfo${libltdl_cv_shlibext}
11278 for x in `${LOCATE} $file 2>/dev/null`; do
11279 base=`echo $x | sed "s%/${file}%%"`
11280 if test "x$x" = "x$base"; then
11284 dir=`${DIRNAME} $x 2>/dev/null`
11285 exclude=`echo ${dir} | ${GREP} /home`
11286 if test "x$exclude" != "x"; then
11290 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11291 if test "x$already" = "x"; then
11297 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11301 if test "x$LOCATE" != "x"; then
11305 for x in `${LOCATE} $file 2>/dev/null`; do
11306 base=`echo $x | sed "s%/${file}%%"`
11307 if test "x$x" = "x$base"; then
11311 dir=`${DIRNAME} $x 2>/dev/null`
11312 exclude=`echo ${dir} | ${GREP} /home`
11313 if test "x$exclude" != "x"; then
11317 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11318 if test "x$already" = "x"; then
11324 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11327 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11329 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11330 LIBS="-lexecinfo $old_LIBS"
11331 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334 extern char backtrace_symbols();
11338 backtrace_symbols()
11343 if ac_fn_c_try_link "$LINENO"; then :
11345 smart_lib="-lexecinfo"
11346 smart_ldflags="-L$try -Wl,-rpath,$try"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11359 CPPFLAGS="$old_CPPFLAGS"
11362 if test "x$smart_lib" != "x"; then
11363 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11364 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11365 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11368 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11370 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11374 #include <execinfo.h>
11381 backtrace_symbols(&sym, sizeof(sym))
11386 if ac_fn_c_try_link "$LINENO"; then :
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 ac_cv_lib_execinfo_backtrace_symbols="yes"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11403 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11405 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11412 # Check whether --with-pcre was given.
11413 if test "${with_pcre+set}" = set; then :
11414 withval=$with_pcre; case "$withval" in
11428 # Check whether --with-pcre-lib-dir was given.
11429 if test "${with_pcre_lib_dir+set}" = set; then :
11430 withval=$with_pcre_lib_dir; case "$withval" in
11432 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11437 pcre_lib_dir="$withval"
11446 # Check whether --with-pcre-include-dir was given.
11447 if test "${with_pcre_include_dir+set}" = set; then :
11448 withval=$with_pcre_include_dir; case "$withval" in
11450 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11455 pcre_include_dir="$withval"
11464 # Check whether --with-regex was given.
11465 if test "${with_regex+set}" = set; then :
11466 withval=$with_regex; case "$withval" in
11477 if test "x$REGEX" != "xno" && test "x$PCRE" != "xno"; then
11478 smart_try_dir=$pcre_include_dir
11481 ac_safe=`echo "pcre.h" | sed 'y%./+-%__pm%'`
11482 old_CPPFLAGS="$CPPFLAGS"
11484 smart_include_dir="/usr/local/include /opt/include"
11487 _smart_include_dir=
11489 for _prefix in $smart_prefix ""; do
11490 for _dir in $smart_try_dir; do
11491 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11494 for _dir in $smart_include_dir; do
11495 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11499 if test "x$_smart_try_dir" != "x"; then
11500 for try in $_smart_try_dir; do
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11502 $as_echo_n "checking for pcre.h in $try... " >&6; }
11503 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11516 if ac_fn_c_try_compile "$LINENO"; then :
11518 smart_include="-isystem $try"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11520 $as_echo "yes" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 CPPFLAGS="$old_CPPFLAGS"
11535 if test "x$smart_include" = "x"; then
11536 for _prefix in $smart_prefix; do
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcre.h" >&5
11538 $as_echo_n "checking for ${_prefix}/pcre.h... " >&6; }
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11552 if ac_fn_c_try_compile "$LINENO"; then :
11554 smart_include="-isystem ${_prefix}/"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 if test "x$smart_include" = "x"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
11572 $as_echo_n "checking for pcre.h... " >&6; }
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11586 if ac_fn_c_try_compile "$LINENO"; then :
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 $as_echo "yes" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 if test "x$smart_include" = "x"; then
11605 for prefix in $smart_prefix; do
11608 if test "x$LOCATE" != "x"; then
11610 file="${_prefix}/${1}"
11612 for x in `${LOCATE} $file 2>/dev/null`; do
11613 base=`echo $x | sed "s%/${file}%%"`
11614 if test "x$x" = "x$base"; then
11618 dir=`${DIRNAME} $x 2>/dev/null`
11619 exclude=`echo ${dir} | ${GREP} /home`
11620 if test "x$exclude" != "x"; then
11624 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11625 if test "x$already" = "x"; then
11631 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11636 if test "x$LOCATE" != "x"; then
11640 for x in `${LOCATE} $file 2>/dev/null`; do
11641 base=`echo $x | sed "s%/${file}%%"`
11642 if test "x$x" = "x$base"; then
11646 dir=`${DIRNAME} $x 2>/dev/null`
11647 exclude=`echo ${dir} | ${GREP} /home`
11648 if test "x$exclude" != "x"; then
11652 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11653 if test "x$already" = "x"; then
11659 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11662 for try in $_smart_include_dir; do
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h in $try" >&5
11664 $as_echo_n "checking for pcre.h in $try... " >&6; }
11665 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11678 if ac_fn_c_try_compile "$LINENO"; then :
11680 smart_include="-isystem $try"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 CPPFLAGS="$old_CPPFLAGS"
11697 if test "x$smart_include" != "x"; then
11698 eval "ac_cv_header_$ac_safe=yes"
11699 CPPFLAGS="$smart_include $old_CPPFLAGS"
11700 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11705 if test "x$ac_cv_header_pcre_h" = "xyes"; then
11706 smart_try_dir=$pcre_lib_dir
11709 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11710 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11713 old_CPPFLAGS="$CPPFLAGS"
11718 if test "x$smart_try_dir" != "x"; then
11719 for try in $smart_try_dir; do
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11721 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11722 LIBS="-lpcre $old_LIBS"
11723 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726 extern char pcre_compile();
11735 if ac_fn_c_try_link "$LINENO"; then :
11738 smart_ldflags="-L$try -Wl,-rpath,$try"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11740 $as_echo "yes" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11751 CPPFLAGS="$old_CPPFLAGS"
11754 if test "x$smart_lib" = "x"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11756 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11757 LIBS="-lpcre $old_LIBS"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 extern char pcre_compile();
11769 if ac_fn_c_try_link "$LINENO"; then :
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11773 $as_echo "yes" >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11779 rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11784 if test "x$smart_lib" = "x"; then
11787 if test "x$LOCATE" != "x"; then
11789 file=libpcre${libltdl_cv_shlibext}
11791 for x in `${LOCATE} $file 2>/dev/null`; do
11792 base=`echo $x | sed "s%/${file}%%"`
11793 if test "x$x" = "x$base"; then
11797 dir=`${DIRNAME} $x 2>/dev/null`
11798 exclude=`echo ${dir} | ${GREP} /home`
11799 if test "x$exclude" != "x"; then
11803 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11804 if test "x$already" = "x"; then
11810 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11814 if test "x$LOCATE" != "x"; then
11818 for x in `${LOCATE} $file 2>/dev/null`; do
11819 base=`echo $x | sed "s%/${file}%%"`
11820 if test "x$x" = "x$base"; then
11824 dir=`${DIRNAME} $x 2>/dev/null`
11825 exclude=`echo ${dir} | ${GREP} /home`
11826 if test "x$exclude" != "x"; then
11830 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11831 if test "x$already" = "x"; then
11837 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11840 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11842 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11843 LIBS="-lpcre $old_LIBS"
11844 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 extern char pcre_compile();
11856 if ac_fn_c_try_link "$LINENO"; then :
11859 smart_ldflags="-L$try -Wl,-rpath,$try"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; }
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11872 CPPFLAGS="$old_CPPFLAGS"
11875 if test "x$smart_lib" != "x"; then
11876 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11877 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11878 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11881 if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11884 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11887 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
11893 if test "x$REGEX" = "x"; then
11897 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11898 old_CPPFLAGS="$CPPFLAGS"
11900 smart_include_dir="/usr/local/include /opt/include"
11903 _smart_include_dir=
11905 for _prefix in $smart_prefix ""; do
11906 for _dir in $smart_try_dir; do
11907 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11910 for _dir in $smart_include_dir; do
11911 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11915 if test "x$_smart_try_dir" != "x"; then
11916 for try in $_smart_try_dir; do
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11918 $as_echo_n "checking for regex.h in $try... " >&6; }
11919 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11932 if ac_fn_c_try_compile "$LINENO"; then :
11934 smart_include="-isystem $try"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 CPPFLAGS="$old_CPPFLAGS"
11951 if test "x$smart_include" = "x"; then
11952 for _prefix in $smart_prefix; do
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11954 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11968 if ac_fn_c_try_compile "$LINENO"; then :
11970 smart_include="-isystem ${_prefix}/"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11972 $as_echo "yes" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 if test "x$smart_include" = "x"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11988 $as_echo_n "checking for regex.h... " >&6; }
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
12002 if ac_fn_c_try_compile "$LINENO"; then :
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12006 $as_echo "yes" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 if test "x$smart_include" = "x"; then
12021 for prefix in $smart_prefix; do
12024 if test "x$LOCATE" != "x"; then
12026 file="${_prefix}/${1}"
12028 for x in `${LOCATE} $file 2>/dev/null`; do
12029 base=`echo $x | sed "s%/${file}%%"`
12030 if test "x$x" = "x$base"; then
12034 dir=`${DIRNAME} $x 2>/dev/null`
12035 exclude=`echo ${dir} | ${GREP} /home`
12036 if test "x$exclude" != "x"; then
12040 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12041 if test "x$already" = "x"; then
12047 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12052 if test "x$LOCATE" != "x"; then
12056 for x in `${LOCATE} $file 2>/dev/null`; do
12057 base=`echo $x | sed "s%/${file}%%"`
12058 if test "x$x" = "x$base"; then
12062 dir=`${DIRNAME} $x 2>/dev/null`
12063 exclude=`echo ${dir} | ${GREP} /home`
12064 if test "x$exclude" != "x"; then
12068 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
12069 if test "x$already" = "x"; then
12075 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
12078 for try in $_smart_include_dir; do
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
12080 $as_echo_n "checking for regex.h in $try... " >&6; }
12081 CPPFLAGS="-isystem $try $old_CPPFLAGS"
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12094 if ac_fn_c_try_compile "$LINENO"; then :
12096 smart_include="-isystem $try"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 CPPFLAGS="$old_CPPFLAGS"
12113 if test "x$smart_include" != "x"; then
12114 eval "ac_cv_header_$ac_safe=yes"
12115 CPPFLAGS="$smart_include $old_CPPFLAGS"
12116 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
12121 if test "x$ac_cv_header_regex_h" = "xyes"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
12124 $as_echo_n "checking for extended regular expressions... " >&6; }
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12129 #ifdef REG_EXTENDED
12134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12135 $EGREP "yes" >/dev/null 2>&1; then :
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12140 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
12154 $as_echo_n "checking for regcomp in -lregex... " >&6; }
12155 if ${ac_cv_lib_regex_regcomp+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lregex $LIBS"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_regex_regcomp=yes
12181 ac_cv_lib_regex_regcomp=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
12188 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
12189 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
12191 LIBS="-lregex $LIBS"
12202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12203 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12204 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12212 if test x"$ac_cv_func_regncomp" = x"yes" && test x"$ac_cv_func_regnexec" = x"yes"; then
12214 $as_echo "#define HAVE_BINSAFE_REGEX 1" >>confdefs.h
12220 if test "x$REGEX" = "xyes"; then
12222 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
12227 $as_echo "#define GNUSTYLE 1" >>confdefs.h
12231 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
12235 $as_echo "#define BSDSTYLE 3" >>confdefs.h
12238 gethostbyaddrrstyle=""
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
12240 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
12243 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
12244 #ifdef HAVE_NETDB_H
12249 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
12258 if test $ac_have_decl = 1; then :
12263 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12265 gethostbyaddrrstyle=BSD
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
12267 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
12274 if test "x$gethostbyaddrrstyle" = "x"; then
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12284 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
12289 if ac_fn_c_try_link "$LINENO"; then :
12292 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
12294 gethostbyaddrrstyle=GNU
12298 rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
12302 if test "x$gethostbyaddrrstyle" = "x"; then
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12312 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12317 if ac_fn_c_try_link "$LINENO"; then :
12320 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12322 gethostbyaddrrstyle=SYSV
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12331 if test "x$gethostbyaddrrstyle" = "x"; then
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12341 gethostbyaddr(NULL, 0, 0)
12346 if ac_fn_c_try_link "$LINENO"; then :
12349 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12351 gethostbyaddrrstyle=BSD
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12359 if test "x$gethostbyaddrrstyle" = "x"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12361 $as_echo "none! It must not exist, here." >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12364 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12367 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12369 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12372 gethostbynamerstyle=""
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12374 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12384 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12389 if ac_fn_c_try_link "$LINENO"; then :
12392 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12394 gethostbynamerstyle=GNU
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12401 if test "x$gethostbynamerstyle" = "x"; then
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12411 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12416 if ac_fn_c_try_link "$LINENO"; then :
12419 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12421 gethostbynamerstyle=SYSV
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12429 if test "x$gethostbynamerstyle" = "x"; then
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12439 gethostbyname(NULL)
12444 if ac_fn_c_try_link "$LINENO"; then :
12447 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12449 gethostbynamerstyle=BSD
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12457 if test "x$gethostbynamerstyle" = "x"; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12459 $as_echo "none! It must not exist, here." >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12462 $as_echo "${gethostbynamerstyle}-style" >&6; }
12465 if test "x$gethostbynamerstyle" = "xBSD"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12467 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12470 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12472 $as_echo_n "checking getpwnam_r... " >&6; }
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12476 #include <stdlib.h>
12477 #include <sys/types.h>
12483 getpwnam_r(NULL, NULL, NULL, 0, NULL)
12488 if ac_fn_c_try_link "$LINENO"; then :
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491 $as_echo "yes" >&6; }
12493 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12507 if test "x$ac_cv_header_grp_h" = "xyes"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12509 $as_echo_n "checking getgrnam_r... " >&6; }
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12513 #include <stdlib.h>
12514 #include <sys/types.h>
12520 getgrnam_r(NULL, NULL, NULL, 0, NULL)
12525 if ac_fn_c_try_link "$LINENO"; then :
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12528 $as_echo "yes" >&6; }
12530 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12540 rm -f core conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
12546 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12549 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12553 $as_echo_n "checking ctime_r() syntax... " >&6; }
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12562 ctime_r(NULL, NULL, 0)
12567 if ac_fn_c_try_link "$LINENO"; then :
12570 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12572 ctimerstyle="SOLARIS"
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12579 if test "x$ctimerstyle" = "x"; then
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12588 ctime_r(NULL, NULL)
12593 if ac_fn_c_try_link "$LINENO"; then :
12596 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12598 ctimerstyle="POSIX"
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12606 if test "x$ctimerstyle" = "x"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12608 $as_echo "none! It must not exist, here." >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12611 $as_echo "${ctimerstyle}-style" >&6; }
12619 export top_builddir
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12621 $as_echo "top_builddir=$top_builddir" >&6; }
12626 if test "x$EXPERIMENTAL" = "xyes"; then
12627 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12628 MODULES="$MODULES $foo"
12631 for foo in `cat "${srcdir}"/src/modules/stable`; do
12632 MODULES="$MODULES $foo"
12637 for bar in $MODULES; do
12638 if test -f "${srcdir}"/src/modules/$bar/configure; then
12639 mysubdirs="$mysubdirs src/modules/$bar"
12645 subdirs="$subdirs $mysubdirs"
12649 if test "x$werror" == "xyes"; then
12650 CFLAGS="-Werror $CFLAGS"
12653 ac_config_commands="$ac_config_commands stamp-h"
12655 ac_config_commands="$ac_config_commands build-radpaths-h"
12657 ac_config_commands="$ac_config_commands main-chmod"
12659 ac_config_commands="$ac_config_commands scripts-chmod"
12666 USE_STATIC_LIBS="yes"
12671 unset ac_cv_env_LIBS_set
12672 unset ac_cv_env_LIBS_value
12674 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"
12676 cat >confcache <<\_ACEOF
12677 # This file is a shell script that caches the results of configure
12678 # tests run on this system so they can be shared between configure
12679 # scripts and configure runs, see configure's option --config-cache.
12680 # It is not useful on other systems. If it contains results you don't
12681 # want to keep, you may remove or edit it.
12683 # config.status only pays attention to the cache file if you give it
12684 # the --recheck option to rerun configure.
12686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12688 # following values.
12692 # The following way of writing the cache mishandles newlines in values,
12693 # but we know of no workaround that is simple, portable, and efficient.
12694 # So, we kill variables containing newlines.
12695 # Ultrix sh set writes to stderr and can't be redirected directly,
12696 # and sets the high bit in the cache file unless we assign to the vars.
12698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12699 eval ac_val=\$$ac_var
12703 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12707 _ | IFS | as_nl) ;; #(
12708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12709 *) { eval $ac_var=; unset $ac_var;} ;;
12715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12716 *${as_nl}ac_space=\ *)
12717 # `set' does not quote correctly, so add quotes: double-quote
12718 # substitution turns \\\\ into \\, and sed turns \\ into \.
12721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12724 # `set' quotes correctly as required by POSIX, so do not add quotes.
12725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12739 if test -w "$cache_file"; then
12740 if test "x$cache_file" != "x/dev/null"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12742 $as_echo "$as_me: updating cache $cache_file" >&6;}
12743 if test ! -f "$cache_file" || test -h "$cache_file"; then
12744 cat confcache >"$cache_file"
12746 case $cache_file in #(
12748 mv -f confcache "$cache_file"$$ &&
12749 mv -f "$cache_file"$$ "$cache_file" ;; #(
12751 mv -f confcache "$cache_file" ;;
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12763 # Let make expand exec_prefix.
12764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12766 DEFS=-DHAVE_CONFIG_H
12771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12772 # 1. Remove the extension, and $U if already installed.
12773 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12774 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12775 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12776 # will be set to the directory where LIBOBJS objects are built.
12777 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12778 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12780 LIBOBJS=$ac_libobjs
12782 LTLIBOBJS=$ac_ltlibobjs
12787 : "${CONFIG_STATUS=./config.status}"
12789 ac_clean_files_save=$ac_clean_files
12790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12796 # Generated by $as_me.
12797 # Run this file to recreate the current configuration.
12798 # Compiler output produced by configure, useful for debugging
12799 # configure, is in config.log if it exists.
12802 ac_cs_recheck=false
12805 SHELL=\${CONFIG_SHELL-$SHELL}
12808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12809 ## -------------------- ##
12810 ## M4sh Initialization. ##
12811 ## -------------------- ##
12813 # Be more Bourne compatible
12814 DUALCASE=1; export DUALCASE # for MKS sh
12815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12819 # is contrary to our usage. Disable this feature.
12820 alias -g '${1+"$@"}'='"$@"'
12821 setopt NO_GLOB_SUBST
12823 case `(set -o) 2>/dev/null` in #(
12835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12839 # Prefer a ksh shell builtin over an external printf program on Solaris,
12840 # but without wasting forks for bash or zsh.
12841 if test -z "$BASH_VERSION$ZSH_VERSION" \
12842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12843 as_echo='print -r --'
12844 as_echo_n='print -rn --'
12845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12846 as_echo='printf %s\n'
12847 as_echo_n='printf %s'
12849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12851 as_echo_n='/usr/ucb/echo -n'
12853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12854 as_echo_n_body='eval
12858 expr "X$arg" : "X\\(.*\\)$as_nl";
12859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12863 export as_echo_n_body
12864 as_echo_n='sh -c $as_echo_n_body as_echo'
12866 export as_echo_body
12867 as_echo='sh -c $as_echo_body as_echo'
12870 # The user is always right.
12871 if test "${PATH_SEPARATOR+set}" != set; then
12873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12881 # We need space, tab and new line, in precisely that order. Quoting is
12882 # there to prevent editors from complaining about space-tab.
12883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12884 # splitting by setting IFS to empty value.)
12887 # Find who we are. Look in the path if we contain no directory separator.
12890 *[\\/]* ) as_myself=$0 ;;
12891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12895 test -z "$as_dir" && as_dir=.
12896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12902 # We did not find ourselves, most probably we were run as `sh COMMAND'
12903 # in which case we are not to be found in the path.
12904 if test "x$as_myself" = x; then
12907 if test ! -f "$as_myself"; then
12908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12912 # Unset variables that we do not need and which cause bugs (e.g. in
12913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12914 # suppresses any "Segmentation fault" message there. '((' could
12915 # trigger a bug in pdksh 5.2.14.
12916 for as_var in BASH_ENV ENV MAIL MAILPATH
12917 do eval test x\${$as_var+set} = xset \
12918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12935 # ----------------------------------------
12936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12938 # script with STATUS, using 1 if that was 0.
12941 as_status=$1; test $as_status -eq 0 && as_status=1
12943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12946 $as_echo "$as_me: error: $2" >&2
12947 as_fn_exit $as_status
12951 # as_fn_set_status STATUS
12952 # -----------------------
12953 # Set $? to STATUS, without forking.
12954 as_fn_set_status ()
12957 } # as_fn_set_status
12959 # as_fn_exit STATUS
12960 # -----------------
12961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12965 as_fn_set_status $1
12971 # Portably unset VAR.
12974 { eval $1=; unset $1;}
12976 as_unset=as_fn_unset
12977 # as_fn_append VAR VALUE
12978 # ----------------------
12979 # Append the text in VALUE to the end of the definition contained in VAR. Take
12980 # advantage of any shell optimizations that allow amortized linear growth over
12981 # repeated appends, instead of the typical quadratic growth present in naive
12983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12984 eval 'as_fn_append ()
12995 # as_fn_arith ARG...
12996 # ------------------
12997 # Perform arithmetic evaluation on the ARGs, and store the result in the
12998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12999 # must be portable across $(()) and expr.
13000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13001 eval 'as_fn_arith ()
13008 as_val=`expr "$@" || test $? -eq 1`
13013 if expr a : '\(a\)' >/dev/null 2>&1 &&
13014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13021 as_basename=basename
13026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13032 as_me=`$as_basename -- "$0" ||
13033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13034 X"$0" : 'X\(//\)$' \| \
13035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13037 sed '/^.*\/\([^/][^/]*\)\/*$/{
13051 # Avoid depending upon Character Ranges.
13052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13055 as_cr_digits='0123456789'
13056 as_cr_alnum=$as_cr_Letters$as_cr_digits
13058 ECHO_C= ECHO_N= ECHO_T=
13059 case `echo -n x` in #(((((
13061 case `echo 'xy\c'` in
13062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13071 rm -f conf$$ conf$$.exe conf$$.file
13072 if test -d conf$$.dir; then
13073 rm -f conf$$.dir/conf$$.file
13076 mkdir conf$$.dir 2>/dev/null
13078 if (echo >conf$$.file) 2>/dev/null; then
13079 if ln -s conf$$.file conf$$ 2>/dev/null; then
13081 # ... but there are two gotchas:
13082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13084 # In both cases, we have to default to `cp -pR'.
13085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13087 elif ln conf$$.file conf$$ 2>/dev/null; then
13095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13096 rmdir conf$$.dir 2>/dev/null
13101 # Create "$as_dir" as a directory, including parents if necessary.
13106 -*) as_dir=./$as_dir;;
13108 test -d "$as_dir" || eval $as_mkdir_p || {
13112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13113 *) as_qdir=$as_dir;;
13115 as_dirs="'$as_qdir' $as_dirs"
13116 as_dir=`$as_dirname -- "$as_dir" ||
13117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13118 X"$as_dir" : 'X\(//\)[^/]' \| \
13119 X"$as_dir" : 'X\(//\)$' \| \
13120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13121 $as_echo X"$as_dir" |
13122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13126 /^X\(\/\/\)[^/].*/{
13139 test -d "$as_dir" && break
13141 test -z "$as_dirs" || eval "mkdir $as_dirs"
13142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13146 if mkdir -p . 2>/dev/null; then
13147 as_mkdir_p='mkdir -p "$as_dir"'
13149 test -d ./-p && rmdir ./-p
13154 # as_fn_executable_p FILE
13155 # -----------------------
13156 # Test if FILE is an executable regular file.
13157 as_fn_executable_p ()
13159 test -f "$1" && test -x "$1"
13160 } # as_fn_executable_p
13161 as_test_x='test -x'
13162 as_executable_p=as_fn_executable_p
13164 # Sed expression to map a string onto a valid CPP name.
13165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13167 # Sed expression to map a string onto a valid variable name.
13168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13172 ## ----------------------------------- ##
13173 ## Main body of $CONFIG_STATUS script. ##
13174 ## ----------------------------------- ##
13176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13179 # Save the log message, to keep $0 and so on meaningful, and to
13180 # report actual input values of CONFIG_FILES etc. instead of their
13181 # values after options handling.
13183 This file was extended by freeradius $as_me $Id$, which was
13184 generated by GNU Autoconf 2.69. Invocation command line was
13186 CONFIG_FILES = $CONFIG_FILES
13187 CONFIG_HEADERS = $CONFIG_HEADERS
13188 CONFIG_LINKS = $CONFIG_LINKS
13189 CONFIG_COMMANDS = $CONFIG_COMMANDS
13192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13197 case $ac_config_files in *"
13198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13201 case $ac_config_headers in *"
13202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 # Files that config.status was made for.
13208 config_files="$ac_config_files"
13209 config_headers="$ac_config_headers"
13210 config_commands="$ac_config_commands"
13214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216 \`$as_me' instantiates files and other configuration actions
13217 from templates according to the current configuration. Unless the files
13218 and actions are specified as TAGs, all are instantiated by default.
13220 Usage: $0 [OPTION]... [TAG]...
13222 -h, --help print this help, then exit
13223 -V, --version print version number and configuration settings, then exit
13224 --config print configuration, then exit
13225 -q, --quiet, --silent
13226 do not print progress messages
13227 -d, --debug don't remove temporary files
13228 --recheck update $as_me by reconfiguring in the same conditions
13229 --file=FILE[:TEMPLATE]
13230 instantiate the configuration file FILE
13231 --header=FILE[:TEMPLATE]
13232 instantiate the configuration header FILE
13234 Configuration files:
13237 Configuration headers:
13240 Configuration commands:
13243 Report bugs to <http://bugs.freeradius.org>.
13244 freeradius home page: <http://www.freeradius.org>."
13247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13248 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13250 freeradius config.status $Id$
13251 configured by $0, generated by GNU Autoconf 2.69,
13252 with options \\"\$ac_cs_config\\"
13254 Copyright (C) 2012 Free Software Foundation, Inc.
13255 This config.status script is free software; the Free Software Foundation
13256 gives unlimited permission to copy, distribute and modify it."
13260 test -n "\$AWK" || AWK=awk
13263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13264 # The default lists apply if the user does not specify any file.
13270 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13271 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13287 # Handling of the options.
13288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13291 $as_echo "$ac_cs_version"; exit ;;
13292 --config | --confi | --conf | --con | --co | --c )
13293 $as_echo "$ac_cs_config"; exit ;;
13294 --debug | --debu | --deb | --de | --d | -d )
13296 --file | --fil | --fi | --f )
13299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13300 '') as_fn_error $? "missing file argument" ;;
13302 as_fn_append CONFIG_FILES " '$ac_optarg'"
13303 ac_need_defaults=false;;
13304 --header | --heade | --head | --hea )
13307 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13309 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13310 ac_need_defaults=false;;
13312 # Conflict between --help and --header
13313 as_fn_error $? "ambiguous option: \`$1'
13314 Try \`$0 --help' for more information.";;
13315 --help | --hel | -h )
13316 $as_echo "$ac_cs_usage"; exit ;;
13317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13321 # This is an error.
13322 -*) as_fn_error $? "unrecognized option: \`$1'
13323 Try \`$0 --help' for more information." ;;
13325 *) as_fn_append ac_config_targets " $1"
13326 ac_need_defaults=false ;;
13332 ac_configure_extra_args=
13334 if $ac_cs_silent; then
13336 ac_configure_extra_args="$ac_configure_extra_args --silent"
13340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341 if \$ac_cs_recheck; then
13342 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13344 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13345 CONFIG_SHELL='$SHELL'
13346 export CONFIG_SHELL
13351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13355 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13356 ## Running $as_me. ##
13362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13367 # Handling of arguments.
13368 for ac_config_target in $ac_config_targets
13370 case $ac_config_target in
13371 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13372 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13373 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13374 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13375 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13376 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13377 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13378 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13379 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13380 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13381 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13382 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13383 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13384 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13385 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13386 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13387 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13394 # If the user did not use the arguments to specify the items to instantiate,
13395 # then the envvar interface is used. Set only those that are not.
13396 # We use the long form for the default assignment because of an extremely
13397 # bizarre bug on SunOS 4.1.3.
13398 if $ac_need_defaults; then
13399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13404 # Have a temporary directory for convenience. Make it in the build tree
13405 # simply because there is no reason against having it here, and in addition,
13406 # creating and moving files from /tmp can sometimes cause problems.
13407 # Hook for its removal unless debugging.
13408 # Note that there is a small window in which the directory will not be cleaned:
13409 # after its creation but before its name has been assigned to `$tmp'.
13413 trap 'exit_status=$?
13414 : "${ac_tmp:=$tmp}"
13415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13417 trap 'as_fn_exit 1' 1 2 13 15
13419 # Create a (secure) tmp directory for tmp files.
13422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13426 tmp=./conf$$-$RANDOM
13427 (umask 077 && mkdir "$tmp")
13428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13431 # Set up the scripts for CONFIG_FILES section.
13432 # No need to generate them if there are no CONFIG_FILES.
13433 # This happens for instance with `./config.status config.h'.
13434 if test -n "$CONFIG_FILES"; then
13437 ac_cr=`echo X | tr X '\015'`
13438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13439 # But we know of no other shell where ac_cr would be empty at this
13440 # point, so we can use a bashism as a fallback.
13441 if test "x$ac_cr" = x; then
13442 eval ac_cr=\$\'\\r\'
13444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13448 ac_cs_awk_cr=$ac_cr
13451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13456 echo "cat >conf$$subs.awk <<_ACEOF" &&
13457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13459 } >conf$$subs.sh ||
13460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13463 for ac_last_try in false false false false false :; do
13464 . ./conf$$subs.sh ||
13465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13468 if test $ac_delim_n = $ac_delim_num; then
13470 elif $ac_last_try; then
13471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13476 rm -f conf$$subs.sh
13478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13483 s/^/S["/; s/!.*/"]=/
13493 s/\(.\{148\}\)..*/\1/
13495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13507 s/\(.\{148\}\)..*/\1/
13509 s/["\\]/\\&/g; s/^/"/; s/$/"/
13513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13518 ' <conf$$subs.awk | sed '
13523 ' >>$CONFIG_STATUS || ac_write_fail=1
13524 rm -f conf$$subs.awk
13525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13528 for (key in S) S_is_set[key] = 1
13534 nfields = split(line, field, "@")
13536 len = length(field[1])
13537 for (i = 2; i < nfields; i++) {
13539 keylen = length(key)
13540 if (S_is_set[key]) {
13542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13543 len += length(value) + length(field[++i])
13554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13565 # trailing colons and then remove the whole line if VPATH becomes empty
13566 # (actually we leave an empty line to preserve line numbers).
13567 if test "x$srcdir" = x.; then
13568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587 fi # test -n "$CONFIG_FILES"
13589 # Set up the scripts for CONFIG_HEADERS section.
13590 # No need to generate them if there are no CONFIG_HEADERS.
13591 # This happens for instance with `./config.status Makefile'.
13592 if test -n "$CONFIG_HEADERS"; then
13593 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13597 # Transform confdefs.h into an awk script `defines.awk', embedded as
13598 # here-document in config.status, that substitutes the proper values into
13599 # config.h.in to produce config.h.
13601 # Create a delimiter string that does not exist in confdefs.h, to ease
13602 # handling of long lines.
13604 for ac_last_try in false false :; do
13605 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13606 if test -z "$ac_tt"; then
13608 elif $ac_last_try; then
13609 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615 # For the awk script, D is an array of macro values keyed by name,
13616 # likewise P contains macro parameters if any. Preserve backslash
13617 # newline sequences.
13619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13621 s/.\{148\}/&'"$ac_delim"'/g
13624 s/^[ ]*#[ ]*define[ ][ ]*/ /
13631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13638 D["\1"]=" \3\\\\\\n"\\/p
13640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13645 s/.\{148\}/&'"$ac_delim"'/g
13650 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13653 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13655 ' <confdefs.h | sed '
13656 s/'"$ac_delim"'/"\\\
13657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660 for (key in D) D_is_set[key] = 1
13663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13665 split(line, arg, " ")
13666 if (arg[1] == "#") {
13670 defundef = substr(arg[1], 2)
13673 split(mac1, mac2, "(") #)
13675 prefix = substr(line, 1, index(line, defundef) - 1)
13676 if (D_is_set[macro]) {
13677 # Preserve the white space surrounding the "#".
13678 print prefix "define", macro P[macro] D[macro]
13681 # Replace #undef with comments. This is necessary, for example,
13682 # in the case of _POSIX_SOURCE, which is predefined and required
13683 # on some systems where configure will not decide to define it.
13684 if (defundef == "undef") {
13685 print "/*", prefix defundef, macro, "*/"
13693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13694 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13695 fi # test -n "$CONFIG_HEADERS"
13698 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13703 :[FHLC]) ac_mode=$ac_tag; continue;;
13705 case $ac_mode$ac_tag in
13707 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13708 :[FH]-) ac_tag=-:-;;
13709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13726 -) ac_f="$ac_tmp/stdin";;
13727 *) # Look for the file first in the build tree, then in the source tree
13728 # (if the path is not absolute). The absolute path cannot be DOS-style,
13729 # because $ac_f cannot contain `:'.
13733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13735 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13738 as_fn_append ac_file_inputs " '$ac_f'"
13741 # Let's still pretend it is `configure' which instantiates (i.e., don't
13742 # use $as_me), people would be surprised to read:
13743 # /* config.h. Generated by config.status. */
13744 configure_input='Generated from '`
13745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13747 if test x"$ac_file" != x-; then
13748 configure_input="$ac_file. $configure_input"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13750 $as_echo "$as_me: creating $ac_file" >&6;}
13752 # Neutralize special characters interpreted by sed in replacement strings.
13753 case $configure_input in #(
13754 *\&* | *\|* | *\\* )
13755 ac_sed_conf_input=`$as_echo "$configure_input" |
13756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13757 *) ac_sed_conf_input=$configure_input;;
13761 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13767 ac_dir=`$as_dirname -- "$ac_file" ||
13768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X"$ac_file" : 'X\(//\)[^/]' \| \
13770 X"$ac_file" : 'X\(//\)$' \| \
13771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13772 $as_echo X"$ac_file" |
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777 /^X\(\/\/\)[^/].*/{
13790 as_dir="$ac_dir"; as_fn_mkdir_p
13794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13797 # A ".." for each directory in $ac_dir_suffix.
13798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13799 case $ac_top_builddir_sub in
13800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13804 ac_abs_top_builddir=$ac_pwd
13805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13806 # for backward compatibility:
13807 ac_top_builddir=$ac_top_build_prefix
13810 .) # We are building in place.
13812 ac_top_srcdir=$ac_top_builddir_sub
13813 ac_abs_top_srcdir=$ac_pwd ;;
13814 [\\/]* | ?:[\\/]* ) # Absolute name.
13815 ac_srcdir=$srcdir$ac_dir_suffix;
13816 ac_top_srcdir=$srcdir
13817 ac_abs_top_srcdir=$srcdir ;;
13818 *) # Relative name.
13819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13820 ac_top_srcdir=$ac_top_build_prefix$srcdir
13821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 # If the template does not know about datarootdir, expand it.
13836 # FIXME: This hack should be removed a few years after 2.60.
13837 ac_datarootdir_hack=; ac_datarootdir_seen=
13848 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13849 *datarootdir*) ac_datarootdir_seen=yes;;
13850 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13852 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13855 ac_datarootdir_hack='
13856 s&@datadir@&$datadir&g
13857 s&@docdir@&$docdir&g
13858 s&@infodir@&$infodir&g
13859 s&@localedir@&$localedir&g
13860 s&@mandir@&$mandir&g
13861 s&\\\${datarootdir}&$datarootdir&g' ;;
13865 # Neutralize VPATH when `$srcdir' = `.'.
13866 # Shell code in configure.ac might set extrasub.
13867 # FIXME: do we really want to maintain this feature?
13868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13869 ac_sed_extra="$ac_vpsub
13872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13875 s|@configure_input@|$ac_sed_conf_input|;t t
13876 s&@top_builddir@&$ac_top_builddir_sub&;t t
13877 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13878 s&@srcdir@&$ac_srcdir&;t t
13879 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13880 s&@top_srcdir@&$ac_top_srcdir&;t t
13881 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13882 s&@builddir@&$ac_builddir&;t t
13883 s&@abs_builddir@&$ac_abs_builddir&;t t
13884 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13885 $ac_datarootdir_hack
13887 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13888 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13891 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13892 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13893 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13895 which seems to be undefined. Please make sure it is defined" >&5
13896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13897 which seems to be undefined. Please make sure it is defined" >&2;}
13899 rm -f "$ac_tmp/stdin"
13901 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13902 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13910 if test x"$ac_file" != x-; then
13912 $as_echo "/* $configure_input */" \
13913 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13914 } >"$ac_tmp/config.h" \
13915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13916 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13921 mv "$ac_tmp/config.h" "$ac_file" \
13922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13925 $as_echo "/* $configure_input */" \
13926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13927 || as_fn_error $? "could not create -" "$LINENO" 5
13931 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13932 $as_echo "$as_me: executing $ac_file commands" >&6;}
13937 case $ac_file$ac_mode in
13938 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13939 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13940 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13941 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13949 ac_clean_files=$ac_clean_files_save
13951 test $ac_write_fail = 0 ||
13952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13955 # configure is writing to config.log, and then calls config.status.
13956 # config.status does its own redirection, appending to config.log.
13957 # Unfortunately, on DOS this fails, as config.log is still kept open
13958 # by configure, so config.status won't be able to write to it; its
13959 # output is simply discarded. So we exec the FD to /dev/null,
13960 # effectively closing config.log, so it can be properly (re)opened and
13961 # appended to by config.status. When coming back to configure, we
13962 # need to make the FD available again.
13963 if test "$no_create" != yes; then
13965 ac_config_status_args=
13966 test "$silent" = yes &&
13967 ac_config_status_args="$ac_config_status_args --quiet"
13969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13972 # would make configure fail if this is the last instruction.
13973 $ac_cs_success || as_fn_exit 1
13977 # CONFIG_SUBDIRS section.
13979 if test "$no_recursion" != yes; then
13981 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13982 # so they do not pile up.
13983 ac_sub_configure_args=
13985 eval "set x $ac_configure_args"
13989 if test -n "$ac_prev"; then
13994 -cache-file | --cache-file | --cache-fil | --cache-fi \
13995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13996 ac_prev=cache_file ;;
13997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14001 --config-cache | -C)
14003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14011 --disable-option-checking)
14015 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14017 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14021 # Always prepend --prefix to ensure using the same prefix
14022 # in subdir configurations.
14023 ac_arg="--prefix=$prefix"
14025 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14027 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14030 if test "$silent" = yes; then
14031 ac_sub_configure_args="--silent $ac_sub_configure_args"
14034 # Always prepend --disable-option-checking to silence warnings, since
14035 # different subdirs can have different --enable and --with options.
14036 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14039 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14041 # Do not complain, so a configure script can configure whichever
14042 # parts of a large source tree are present.
14043 test -d "$srcdir/$ac_dir" || continue
14045 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14047 $as_echo "$ac_msg" >&6
14048 as_dir="$ac_dir"; as_fn_mkdir_p
14052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14055 # A ".." for each directory in $ac_dir_suffix.
14056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14057 case $ac_top_builddir_sub in
14058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14062 ac_abs_top_builddir=$ac_pwd
14063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14064 # for backward compatibility:
14065 ac_top_builddir=$ac_top_build_prefix
14068 .) # We are building in place.
14070 ac_top_srcdir=$ac_top_builddir_sub
14071 ac_abs_top_srcdir=$ac_pwd ;;
14072 [\\/]* | ?:[\\/]* ) # Absolute name.
14073 ac_srcdir=$srcdir$ac_dir_suffix;
14074 ac_top_srcdir=$srcdir
14075 ac_abs_top_srcdir=$srcdir ;;
14076 *) # Relative name.
14077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14078 ac_top_srcdir=$ac_top_build_prefix$srcdir
14079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14086 # Check for guested configure; otherwise get Cygnus style configure.
14087 if test -f "$ac_srcdir/configure.gnu"; then
14088 ac_sub_configure=$ac_srcdir/configure.gnu
14089 elif test -f "$ac_srcdir/configure"; then
14090 ac_sub_configure=$ac_srcdir/configure
14091 elif test -f "$ac_srcdir/configure.in"; then
14092 # This should be Cygnus configure.
14093 ac_sub_configure=$ac_aux_dir/configure
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14096 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14100 # The recursion is here.
14101 if test -n "$ac_sub_configure"; then
14102 # Make the cache file name correct relative to the subdirectory.
14103 case $cache_file in
14104 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14105 *) # Relative name.
14106 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14109 { $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
14110 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14111 # The eval makes quoting arguments work.
14112 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14113 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14114 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}