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
771 with_pcre_include_dir
774 ac_precious_vars='build_alias
786 ac_subdirs_all='$mysubdirs'
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of freeradius $Id$:";;
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-developer enables features of interest to developers.
1401 --disable-largefile omit support for large files
1402 --enable-strict-dependencies fail configure on lack of module dependancy.
1403 --enable-werror causes the build to fail if any warnings are generated.
1404 --disable-openssl-version-check
1405 disable vulnerable OpenSSL version check
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-docdir=DIR directory for documentation DATADIR/doc/freeradius
1412 --with-logdir=DIR directory for logfiles LOCALSTATEDIR/log/radius
1413 --with-radacctdir=DIR directory for detail files LOGDIR/radacct
1414 --with-raddbdir=DIR directory for config files SYSCONFDIR/raddb
1415 --with-dictdir=DIR directory for dictionary files DATAROOTDIR/freeradius
1416 --with-ascend-binary include support for Ascend binary filter attributes (default=yes)
1417 --with-threads use threads, if available. (default=yes)
1418 --with-tcp compile in TCP support. (default=yes)
1419 --with-vmps compile in VMPS support. (default=yes)
1420 --with-dhcp compile in DHCP support. (default=yes)
1421 --with-static-modules=QUOTED-MODULE-LIST
1422 --with-shared-libs build dynamic libraries and link against them.
1424 --with-modules=QUOTED-MODULE-LIST
1425 --with-experimental-modules
1426 use experimental and unstable modules. (default=no,
1427 unless --enable-developer=yes)
1428 --with-udpfromto compile in UDPFROMTO support. (default=yes)
1429 --with-rlm-FOO-lib-dir=DIR
1430 directory in which to look for library files used by
1432 --with-rlm-FOO-include-dir=DIR
1433 directory in which to look for include files used by
1435 --with-openssl use OpenSSL. (default=yes)
1436 --with-openssl-lib-dir=DIR
1437 directory to look for OpenSSL library files
1438 --with-openssl-include-dir=DIR
1439 directory to look for OpenSSL include files
1440 --with-talloc-lib-dir=DIR
1441 directory in which to look for talloc library files
1442 --with-talloc-include-dir=DIR
1443 directory in which to look for talloc include files
1444 --with-pcap-lib-dir=DIR directory in which to look for pcap library files
1445 --with-pcap-include-dir=DIR
1446 directory in which to look for pcap include files
1447 --with-collectdclient-lib-dir=DIR
1448 directory in which to look for collectdclient
1450 --with-collectdclient-include-dir=DIR
1451 directory in which to look for collectdclient
1453 --with-cap-lib-dir=DIR directory in which to look for cap library files
1454 --with-cap-include-dir=DIR
1455 directory in which to look for cap include files
1456 --with-execinfo-lib-dir=DIR
1457 directory in which to look for execinfo library
1459 --with-execinfo-include-dir=DIR
1460 directory in which to look for execinfo include
1462 --with-pcre-lib-dir=DIR directory in which to look for pcre library files
1463 --with-pcre-include-dir=DIR
1464 directory in which to look for pcre include files
1465 --with-regex Whether to build with regular expressions
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <http://bugs.freeradius.org>.
1484 freeradius home page: <http://www.freeradius.org>.
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1514 .) # We are building in place.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1547 freeradius configure $Id$
1548 generated by GNU Autoconf 2.69
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_compile
1599 # ac_fn_cxx_try_compile LINENO
1600 # ----------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_cxx_try_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_cxx_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_cxx_try_compile
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1674 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1677 # the include files in INCLUDES and setting the cache variable VAR
1679 ac_fn_c_check_header_mongrel ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if eval \${$3+:} false; then :
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1692 # Is the header compilable?
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1694 $as_echo_n "checking $2 usability... " >&6; }
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 ac_header_compiler=yes
1703 ac_header_compiler=no
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1707 $as_echo "$ac_header_compiler" >&6; }
1709 # Is the header present?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1711 $as_echo_n "checking $2 presence... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1716 if ac_fn_c_try_cpp "$LINENO"; then :
1717 ac_header_preproc=yes
1719 ac_header_preproc=no
1721 rm -f conftest.err conftest.i conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1723 $as_echo "$ac_header_preproc" >&6; }
1725 # So? What about this header?
1726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1729 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1735 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1737 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1739 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1741 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ( $as_echo "## ----------------------------------------- ##
1745 ## Report this to http://bugs.freeradius.org ##
1746 ## ----------------------------------------- ##"
1747 ) | sed "s/^/$as_me: WARNING: /" >&2
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1755 eval "$3=\$ac_header_compiler"
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 } # ac_fn_c_check_header_mongrel
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1799 ac_retval=$ac_status
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_header_compile
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 test -x conftest$ac_exeext
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_link
1884 # ac_fn_c_check_func LINENO FUNC VAR
1885 # ----------------------------------
1886 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1887 ac_fn_c_check_func ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1899 #define $2 innocuous_$2
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $2 (); below.
1903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904 <limits.h> exists even on freestanding compilers. */
1907 # include <limits.h>
1909 # include <assert.h>
1914 /* Override any GCC internal prototype to avoid an error.
1915 Use char because int might match the return type of a GCC
1916 builtin and then its argument prototype would still apply. */
1921 /* The GNU C library defines this for functions which it implements
1922 to always fail with ENOSYS. Some functions are actually named
1923 something starting with __ and the normal name is an alias. */
1924 #if defined __stub_$2 || defined __stub___$2
1936 if ac_fn_c_try_link "$LINENO"; then :
1941 rm -f core conftest.err conftest.$ac_objext \
1942 conftest$ac_exeext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_func
1951 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952 # -------------------------------------------
1953 # Tests whether TYPE exists after having included INCLUDES, setting cache
1954 # variable VAR accordingly.
1955 ac_fn_c_check_type ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_type
2005 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2006 # ---------------------------------------------
2007 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2009 ac_fn_c_check_decl ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 as_decl_name=`echo $2|sed 's/ *(.*//'`
2013 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2015 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 #ifndef $as_decl_name
2027 (void) $as_decl_use;
2029 (void) $as_decl_name;
2037 if ac_fn_c_try_compile "$LINENO"; then :
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_decl
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2054 It was created by freeradius $as_me $Id$, which was
2055 generated by GNU Autoconf 2.69. Invocation command line was
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 $as_echo "PATH: $as_dir"
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_must_keep_next=false
2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123 | -silent | --silent | --silen | --sile | --sil)
2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131 as_fn_append ac_configure_args1 " '$ac_arg'"
2132 if test $ac_must_keep_next = true; then
2133 ac_must_keep_next=false # Got value, back to normal.
2136 *=* | --config-cache | -C | -disable-* | --disable-* \
2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139 | -with-* | --with-* | -without-* | --without-* | --x)
2140 case "$ac_configure_args0 " in
2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 -* ) ac_must_keep_next=true ;;
2147 as_fn_append ac_configure_args " '$ac_arg'"
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log. We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161 # Save into config.log some information that might help in debugging.
2165 $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2169 # The following way of writing the cache mishandles newlines in values,
2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172 eval ac_val=\$$ac_var
2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180 _ | IFS | as_nl) ;; #(
2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182 *) { eval $ac_var=; unset $ac_var;} ;;
2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188 *${as_nl}ac_space=\ *)
2190 "s/'\''/'\''\\\\'\'''\''/g;
2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2201 $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2205 for ac_var in $ac_subst_vars
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -n "$ac_subst_files"; then
2216 $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2220 for ac_var in $ac_subst_files
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2231 if test -s confdefs.h; then
2232 $as_echo "## ----------- ##
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2255 $as_echo "/* confdefs.h */" > confdefs.h
2257 # Predefined preprocessor variables.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2288 if test -n "$CONFIG_SITE"; then
2289 # We do not want a PATH search for config.site.
2290 case $CONFIG_SITE in #((
2291 -*) ac_site_file1=./$CONFIG_SITE;;
2292 */*) ac_site_file1=$CONFIG_SITE;;
2293 *) ac_site_file1=./$CONFIG_SITE;;
2295 elif test "x$prefix" != xNONE; then
2296 ac_site_file1=$prefix/share/config.site
2297 ac_site_file2=$prefix/etc/config.site
2299 ac_site_file1=$ac_default_prefix/share/config.site
2300 ac_site_file2=$ac_default_prefix/etc/config.site
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304 test "x$ac_site_file" = xNONE && continue
2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308 sed 's/^/| /' "$ac_site_file" >&5
2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special files
2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334 # Check that the precious variables saved in the cache have kept the same
2336 ac_cache_corrupted=false
2337 for ac_var in $ac_precious_vars; do
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
2342 case $ac_old_set,$ac_new_set in
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2384 if $ac_cache_corrupted; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2416 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2417 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2418 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2420 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2421 -v minor="$RADIUSD_MINOR_VERSION" \
2422 -v incrm="$RADIUSD_INCRM_VERSION" \
2423 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2425 RADIUSD_VERSION_STRING=`cat VERSION`
2430 cat >>confdefs.h <<_ACEOF
2431 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2435 cat >>confdefs.h <<_ACEOF
2436 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2441 # Check whether --enable-developer was given.
2442 if test "${enable_developer+set}" = set; then :
2443 enableval=$enable_developer; case "$enableval" in
2454 if test -d $srcdir/.git; then
2455 if test "x$developer" != "xno"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5
2457 $as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;}
2462 if test "x$developer" = "xyes"; then
2468 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2469 if test -f "$ac_dir/install-sh"; then
2471 ac_install_sh="$ac_aux_dir/install-sh -c"
2473 elif test -f "$ac_dir/install.sh"; then
2475 ac_install_sh="$ac_aux_dir/install.sh -c"
2477 elif test -f "$ac_dir/shtool"; then
2479 ac_install_sh="$ac_aux_dir/shtool install -c"
2483 if test -z "$ac_aux_dir"; then
2484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496 # Make sure we can run config.sub.
2497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2501 $as_echo_n "checking build system type... " >&6; }
2502 if ${ac_cv_build+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 ac_build_alias=$build_alias
2506 test "x$ac_build_alias" = x &&
2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508 test "x$ac_build_alias" = x &&
2509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2515 $as_echo "$ac_cv_build" >&6; }
2516 case $ac_cv_build in
2518 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2521 ac_save_IFS=$IFS; IFS='-'
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2531 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2535 $as_echo_n "checking host system type... " >&6; }
2536 if ${ac_cv_host+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 if test "x$host_alias" = x; then
2540 ac_cv_host=$ac_cv_build
2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2548 $as_echo "$ac_cv_host" >&6; }
2551 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2554 ac_save_IFS=$IFS; IFS='-'
2560 # Remember, the first character of IFS is used to create $*,
2561 # except with old shells:
2564 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2568 $as_echo_n "checking target system type... " >&6; }
2569 if ${ac_cv_target+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 if test "x$target_alias" = x; then
2573 ac_cv_target=$ac_cv_host
2575 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2581 $as_echo "$ac_cv_target" >&6; }
2582 case $ac_cv_target in
2584 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2586 target=$ac_cv_target
2587 ac_save_IFS=$IFS; IFS='-'
2593 # Remember, the first character of IFS is used to create $*,
2594 # except with old shells:
2597 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2600 # The aliases save the names the user supplied, while $host etc.
2601 # will get canonicalized.
2602 test -n "$target_alias" &&
2603 test "$program_prefix$program_suffix$program_transform_name" = \
2605 program_prefix=${target_alias}-
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_CC+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2652 if test -z "$ac_cv_prog_CC"; then
2654 # Extract the first word of "gcc", so it can be a program name with args.
2655 set dummy gcc; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_ac_ct_CC="gcc"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2690 if test "x$ac_ct_CC" = x; then
2693 case $cross_compiling:$ac_tool_warned in
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2705 if test -z "$CC"; then
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}cc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_CC+:} false; then :
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_CC="${ac_tool_prefix}cc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_CC+:} false; then :
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766 ac_prog_rejected=yes
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test $ac_prog_rejected = yes; then
2778 # We found a bogon in the path, so make sure we never use it.
2779 set dummy $ac_cv_prog_CC
2781 if test $# != 0; then
2782 # We chose a different compiler from the bogus one.
2783 # However, it has the same basename, so the bogon will be chosen
2784 # first if we set CC to just the basename; use the full file name.
2786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 for ac_prog in cl.exe
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$CC" && break
2846 if test -z "$CC"; then
2848 for ac_prog in cl.exe
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CC="$ac_prog"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2887 test -n "$ac_ct_CC" && break
2890 if test "x$ac_ct_CC" = x; then
2893 case $cross_compiling:$ac_tool_warned in
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error $? "no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details" "$LINENO" 5; }
2911 # Provide some information about the compiler.
2912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2915 for ac_option in --version -v -V -qversion; do
2916 { { ac_try="$ac_compiler $ac_option >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922 $as_echo "$ac_try_echo"; } >&5
2923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2925 if test -s conftest.err; then
2927 ... rest of stderr output deleted ...
2928 10q' conftest.err >conftest.er1
2929 cat conftest.er1 >&5
2931 rm -f conftest.er1 conftest.err
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h. */
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2953 $as_echo_n "checking whether the C compiler works... " >&6; }
2954 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956 # The possible output files:
2957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2960 for ac_file in $ac_files
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969 if { { ac_try="$ac_link_default"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link_default") 2>&5
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2981 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2982 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2983 # so that the user can short-circuit this test for compilers unknown to
2985 for ac_file in $ac_files ''
2987 test -f "$ac_file" || continue
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2992 # We found the default executable, but exeext='' is most
2996 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 # We set ac_cv_exeext here because the later test for it is not
3001 # safe: cross compilers may not add the suffix if given an `-o'
3002 # argument, so we may need to know it at that point already.
3003 # Even if this section looks crufty: it has the advantage of
3010 test "$ac_cv_exeext" = no && ac_cv_exeext=
3015 if test -z "$ac_file"; then :
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 $as_echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error 77 "C compiler cannot create executables
3024 See \`config.log' for more details" "$LINENO" 5; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3027 $as_echo "yes" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3030 $as_echo_n "checking for C compiler default output file name... " >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3032 $as_echo "$ac_file" >&6; }
3033 ac_exeext=$ac_cv_exeext
3035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3036 ac_clean_files=$ac_clean_files_save
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { { ac_try="$ac_link"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link") 2>&5
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 for ac_file in conftest.exe conftest conftest.*; do
3055 test -f "$ac_file" || continue
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details" "$LINENO" 5; }
3069 rm -f conftest conftest$ac_cv_exeext
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3071 $as_echo "$ac_cv_exeext" >&6; }
3073 rm -f conftest.$ac_ext
3074 EXEEXT=$ac_cv_exeext
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3082 FILE *f = fopen ("conftest.out", "w");
3083 return ferror (f) || fclose (f) != 0;
3089 ac_clean_files="$ac_clean_files conftest.out"
3090 # Check that the compiler produces executables we can run. If not, either
3091 # the compiler is broken, or we cross compile.
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3093 $as_echo_n "checking whether we are cross compiling... " >&6; }
3094 if test "$cross_compiling" != yes; then
3095 { { ac_try="$ac_link"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_link") 2>&5
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }
3106 if { ac_try='./conftest$ac_cv_exeext'
3107 { { case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_try") 2>&5
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; }; then
3119 if test "$cross_compiling" = maybe; then
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot run C compiled programs.
3125 If you meant to cross compile, use \`--host'.
3126 See \`config.log' for more details" "$LINENO" 5; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3131 $as_echo "$cross_compiling" >&6; }
3133 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3134 ac_clean_files=$ac_clean_files_save
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3136 $as_echo_n "checking for suffix of object files... " >&6; }
3137 if ${ac_cv_objext+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3151 rm -f conftest.o conftest.obj
3152 if { { ac_try="$ac_compile"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_compile") 2>&5
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; then :
3163 for ac_file in conftest.o conftest.obj conftest.*; do
3164 test -f "$ac_file" || continue;
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3172 $as_echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details" "$LINENO" 5; }
3180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3183 $as_echo "$ac_cv_objext" >&6; }
3184 OBJEXT=$ac_cv_objext
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3188 if ${ac_cv_c_compiler_gnu+:} false; then :
3189 $as_echo_n "(cached) " >&6
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3205 if ac_fn_c_try_compile "$LINENO"; then :
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3216 if test $ac_compiler_gnu = yes; then
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3225 if ${ac_cv_prog_cc_g+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 ac_save_c_werror_flag=$ac_c_werror_flag
3229 ac_c_werror_flag=yes
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3243 if ac_fn_c_try_compile "$LINENO"; then :
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 if ac_fn_c_try_compile "$LINENO"; then :
3261 ac_c_werror_flag=$ac_save_c_werror_flag
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3285 $as_echo "$ac_cv_prog_cc_g" >&6; }
3286 if test "$ac_test_CFLAGS" = set; then
3287 CFLAGS=$ac_save_CFLAGS
3288 elif test $ac_cv_prog_cc_g = yes; then
3289 if test "$GCC" = yes; then
3295 if test "$GCC" = yes; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3303 if ${ac_cv_prog_cc_c89+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 ac_cv_prog_cc_c89=no
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3327 s = g (p, va_arg (v,int));
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_c89=$ac_arg
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 rm -f conftest.$ac_ext
3375 case "x$ac_cv_prog_cc_c89" in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 ac_cpp='$CXXCPP $CPPFLAGS'
3399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3402 if test -z "$CXX"; then
3403 if test -n "$CCC"; then
3406 if test -n "$ac_tool_prefix"; then
3407 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_CXX+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$CXX"; then
3417 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$CXX"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3439 $as_echo "$CXX" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3446 test -n "$CXX" && break
3449 if test -z "$CXX"; then
3451 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3453 # Extract the first word of "$ac_prog", so it can be a program name with args.
3454 set dummy $ac_prog; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$ac_ct_CXX"; then
3461 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_ac_ct_CXX="$ac_prog"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3481 if test -n "$ac_ct_CXX"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3483 $as_echo "$ac_ct_CXX" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3490 test -n "$ac_ct_CXX" && break
3493 if test "x$ac_ct_CXX" = x; then
3496 case $cross_compiling:$ac_tool_warned in
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3500 ac_tool_warned=yes ;;
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3512 for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3522 if test -s conftest.err; then
3524 ... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3528 rm -f conftest.er1 conftest.err
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3534 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3535 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3552 if ac_fn_cxx_try_compile "$LINENO"; then :
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3562 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3563 if test $ac_compiler_gnu = yes; then
3568 ac_test_CXXFLAGS=${CXXFLAGS+set}
3569 ac_save_CXXFLAGS=$CXXFLAGS
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3571 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3572 if ${ac_cv_prog_cxx_g+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3576 ac_cxx_werror_flag=yes
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_cxx_try_compile "$LINENO"; then :
3591 ac_cv_prog_cxx_g=yes
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3605 if ac_fn_cxx_try_compile "$LINENO"; then :
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3621 if ac_fn_cxx_try_compile "$LINENO"; then :
3622 ac_cv_prog_cxx_g=yes
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3632 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3633 if test "$ac_test_CXXFLAGS" = set; then
3634 CXXFLAGS=$ac_save_CXXFLAGS
3635 elif test $ac_cv_prog_cxx_g = yes; then
3636 if test "$GXX" = yes; then
3642 if test "$GXX" = yes; then
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3662 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3663 # On Suns, sometimes $CPP names a directory.
3664 if test -n "$CPP" && test -d "$CPP"; then
3667 if test -z "$CPP"; then
3668 if ${ac_cv_prog_CPP+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 # Double quotes because CPP needs to be expanded
3672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3675 for ac_c_preproc_warn_flag in '' yes
3677 # Use a header file that comes with gcc, so configuring glibc
3678 # with a fresh cross-compiler works.
3679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680 # <limits.h> exists even on freestanding compilers.
3681 # On the NeXT, cc -E runs the code through the compiler's parser,
3682 # not just through cpp. "Syntax error" is here to catch this case.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3686 # include <limits.h>
3688 # include <assert.h>
3692 if ac_fn_c_try_cpp "$LINENO"; then :
3695 # Broken: fails on valid input.
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3700 # OK, works on sane cases. Now check whether nonexistent headers
3701 # can be detected and how.
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <ac_nonexistent.h>
3706 if ac_fn_c_try_cpp "$LINENO"; then :
3707 # Broken: success on invalid input.
3710 # Passes both tests.
3714 rm -f conftest.err conftest.i conftest.$ac_ext
3717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3718 rm -f conftest.i conftest.err conftest.$ac_ext
3719 if $ac_preproc_ok; then :
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3732 $as_echo "$CPP" >&6; }
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error" is here to catch this case.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3745 # include <limits.h>
3747 # include <assert.h>
3751 if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: fails on valid input.
3757 rm -f conftest.err conftest.i conftest.$ac_ext
3759 # OK, works on sane cases. Now check whether nonexistent headers
3760 # can be detected and how.
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3765 if ac_fn_c_try_cpp "$LINENO"; then :
3766 # Broken: success on invalid input.
3769 # Passes both tests.
3773 rm -f conftest.err conftest.i conftest.$ac_ext
3776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777 rm -f conftest.i conftest.err conftest.$ac_ext
3778 if $ac_preproc_ok; then :
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3784 See \`config.log' for more details" "$LINENO" 5; }
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3795 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3796 if ${ac_cv_path_GREP+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -z "$GREP"; then
3800 ac_path_GREP_found=false
3801 # Loop through the user's path and test for each of PROGNAME-LIST
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806 test -z "$as_dir" && as_dir=.
3807 for ac_prog in grep ggrep; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3810 as_fn_executable_p "$ac_path_GREP" || continue
3811 # Check for GNU ac_path_GREP and select it if it is found.
3812 # Check for GNU $ac_path_GREP
3813 case `"$ac_path_GREP" --version 2>&1` in
3815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818 $as_echo_n 0123456789 >"conftest.in"
3821 cat "conftest.in" "conftest.in" >"conftest.tmp"
3822 mv "conftest.tmp" "conftest.in"
3823 cp "conftest.in" "conftest.nl"
3824 $as_echo 'GREP' >> "conftest.nl"
3825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827 as_fn_arith $ac_count + 1 && ac_count=$as_val
3828 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3829 # Best one so far, save it but keep looking for a better one
3830 ac_cv_path_GREP="$ac_path_GREP"
3831 ac_path_GREP_max=$ac_count
3833 # 10*(2^10) chars as input seems more than enough
3834 test $ac_count -gt 10 && break
3836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 $ac_path_GREP_found && break 3
3844 if test -z "$ac_cv_path_GREP"; then
3845 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3848 ac_cv_path_GREP=$GREP
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3853 $as_echo "$ac_cv_path_GREP" >&6; }
3854 GREP="$ac_cv_path_GREP"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3858 $as_echo_n "checking for egrep... " >&6; }
3859 if ${ac_cv_path_EGREP+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3863 then ac_cv_path_EGREP="$GREP -E"
3865 if test -z "$EGREP"; then
3866 ac_path_EGREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in egrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876 as_fn_executable_p "$ac_path_EGREP" || continue
3877 # Check for GNU ac_path_EGREP and select it if it is found.
3878 # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 $as_echo_n 0123456789 >"conftest.in"
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 $as_echo 'EGREP' >> "conftest.nl"
3891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 as_fn_arith $ac_count + 1 && ac_count=$as_val
3894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_EGREP="$ac_path_EGREP"
3897 ac_path_EGREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 $ac_path_EGREP_found && break 3
3910 if test -z "$ac_cv_path_EGREP"; then
3911 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3914 ac_cv_path_EGREP=$EGREP
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3920 $as_echo "$ac_cv_path_EGREP" >&6; }
3921 EGREP="$ac_cv_path_EGREP"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3925 $as_echo_n "checking for ANSI C header files... " >&6; }
3926 if ${ac_cv_header_stdc+:} false; then :
3927 $as_echo_n "(cached) " >&6
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945 ac_cv_header_stdc=yes
3947 ac_cv_header_stdc=no
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 if test $ac_cv_header_stdc = yes; then
3952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "memchr" >/dev/null 2>&1; then :
3962 ac_cv_header_stdc=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3976 $EGREP "free" >/dev/null 2>&1; then :
3979 ac_cv_header_stdc=no
3985 if test $ac_cv_header_stdc = yes; then
3986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3987 if test "$cross_compiling" = yes; then :
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3994 #if ((' ' & 0x0FF) == 0x020)
3995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3998 # define ISLOWER(c) \
3999 (('a' <= (c) && (c) <= 'i') \
4000 || ('j' <= (c) && (c) <= 'r') \
4001 || ('s' <= (c) && (c) <= 'z'))
4002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4010 for (i = 0; i < 256; i++)
4011 if (XOR (islower (i), ISLOWER (i))
4012 || toupper (i) != TOUPPER (i))
4017 if ac_fn_c_try_run "$LINENO"; then :
4020 ac_cv_header_stdc=no
4022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4023 conftest.$ac_objext conftest.beam conftest.$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4029 $as_echo "$ac_cv_header_stdc" >&6; }
4030 if test $ac_cv_header_stdc = yes; then
4032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4038 inttypes.h stdint.h unistd.h
4040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4044 cat >>confdefs.h <<_ACEOF
4045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4054 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4055 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4062 if test "$MINIX" = yes; then
4064 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4067 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4070 $as_echo "#define _MINIX 1" >>confdefs.h
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4076 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4077 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4083 # define __EXTENSIONS__ 1
4084 $ac_includes_default
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_safe_to_define___extensions__=yes
4096 ac_cv_safe_to_define___extensions__=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4101 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4102 test $ac_cv_safe_to_define___extensions__ = yes &&
4103 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4105 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4107 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4109 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4111 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4116 if test $ac_cv_c_compiler_gnu = yes; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4118 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4119 if ${ac_cv_prog_gcc_traditional+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 ac_pattern="Autoconf.*'x'"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4130 ac_cv_prog_gcc_traditional=yes
4132 ac_cv_prog_gcc_traditional=no
4137 if test $ac_cv_prog_gcc_traditional = no; then
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4145 ac_cv_prog_gcc_traditional=yes
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4152 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4153 if test $ac_cv_prog_gcc_traditional = yes; then
4154 CC="$CC -traditional"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4159 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4160 if ${ac_cv_prog_suncc+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 cat > conftest.c <<EOF
4168 if { ac_try='${CC-cc} -E conftest.c'
4169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4174 ac_cv_prog_suncc=yes
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4180 $as_echo "$ac_cv_prog_suncc" >&6; }
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_RANLIB+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -n "$RANLIB"; then
4190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 RANLIB=$ac_cv_prog_RANLIB
4210 if test -n "$RANLIB"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4212 $as_echo "$RANLIB" >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4220 if test -z "$ac_cv_prog_RANLIB"; then
4221 ac_ct_RANLIB=$RANLIB
4222 # Extract the first word of "ranlib", so it can be a program name with args.
4223 set dummy ranlib; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$ac_ct_RANLIB"; then
4230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_ac_ct_RANLIB="ranlib"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4250 if test -n "$ac_ct_RANLIB"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4252 $as_echo "$ac_ct_RANLIB" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4258 if test "x$ac_ct_RANLIB" = x; then
4261 case $cross_compiling:$ac_tool_warned in
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4267 RANLIB=$ac_ct_RANLIB
4270 RANLIB="$ac_cv_prog_RANLIB"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
4276 $as_echo_n "checking if compiler is clang... " >&6; }
4277 if ${ax_cv_cc_clang+:} false; then :
4278 $as_echo_n "(cached) " >&6
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4297 if ac_fn_c_try_compile "$LINENO"; then :
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_clang" >&5
4306 $as_echo "$ax_cv_cc_clang" >&6; }
4308 if test "x$ax_cv_cc_clang" = "xyes"; then
4317 if test "x$GCC" = "xyes"; then
4318 CFLAGS="$CFLAGS -Wall -std=c99 -D_GNU_SOURCE"
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Qunused-arguments\"" >&5
4323 $as_echo_n "checking for the compiler flag \"-Qunused-arguments\"... " >&6; }
4324 if ${ax_cv_cc_qunused_arguments_flag+:} false; then :
4325 $as_echo_n "(cached) " >&6
4329 CFLAGS_SAVED=$CFLAGS
4330 CFLAGS="$CFLAGS -Werror -Qunused-arguments -foobar"
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ax_cv_cc_qunused_arguments_flag="yes"
4352 ax_cv_cc_qunused_arguments_flag="no"
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 CFLAGS="$CFLAGS_SAVED"
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_qunused_arguments_flag" >&5
4366 $as_echo "$ax_cv_cc_qunused_arguments_flag" >&6; }
4368 if test "x$ax_cv_cc_qunused_arguments_flag" = "xyes"; then
4369 CFLAGS="$CFLAGS -Qunused-arguments"
4370 LDFLAGS="$LDFLAGS -Qunused-arguments"
4373 # Check whether --enable-largefile was given.
4374 if test "${enable_largefile+set}" = set; then :
4375 enableval=$enable_largefile;
4378 if test "$enable_largefile" != no; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4382 if ${ac_cv_sys_largefile_CC+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 ac_cv_sys_largefile_CC=no
4386 if test "$GCC" != yes; then
4389 # IRIX 6.2 and later do not support large files by default,
4390 # so use the C compiler's -n32 option if that helps.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <sys/types.h>
4394 /* Check that off_t can represent 2**63 - 1 correctly.
4395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396 since some C++ compilers masquerading as C compilers
4397 incorrectly reject 9223372036854775807. */
4398 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400 && LARGE_OFF_T % 2147483647 == 1)
4410 if ac_fn_c_try_compile "$LINENO"; then :
4413 rm -f core conftest.err conftest.$ac_objext
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_sys_largefile_CC=' -n32'; break
4418 rm -f core conftest.err conftest.$ac_objext
4422 rm -f conftest.$ac_ext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4427 if test "$ac_cv_sys_largefile_CC" != no; then
4428 CC=$CC$ac_cv_sys_largefile_CC
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4433 if ${ac_cv_sys_file_offset_bits+:} false; then :
4434 $as_echo_n "(cached) " >&6
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 /* Check that off_t can represent 2**63 - 1 correctly.
4441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442 since some C++ compilers masquerading as C compilers
4443 incorrectly reject 9223372036854775807. */
4444 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446 && LARGE_OFF_T % 2147483647 == 1)
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_sys_file_offset_bits=no; break
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _FILE_OFFSET_BITS 64
4463 #include <sys/types.h>
4464 /* Check that off_t can represent 2**63 - 1 correctly.
4465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466 since some C++ compilers masquerading as C compilers
4467 incorrectly reject 9223372036854775807. */
4468 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470 && LARGE_OFF_T % 2147483647 == 1)
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_sys_file_offset_bits=64; break
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_sys_file_offset_bits=unknown
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4490 case $ac_cv_sys_file_offset_bits in #(
4493 cat >>confdefs.h <<_ACEOF
4494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4499 if test $ac_cv_sys_file_offset_bits = unknown; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4502 if ${ac_cv_sys_large_files+:} false; then :
4503 $as_echo_n "(cached) " >&6
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_sys_large_files=no; break
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533 /* Check that off_t can represent 2**63 - 1 correctly.
4534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535 since some C++ compilers masquerading as C compilers
4536 incorrectly reject 9223372036854775807. */
4537 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539 && LARGE_OFF_T % 2147483647 == 1)
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_sys_large_files=1; break
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_sys_large_files=unknown
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4558 $as_echo "$ac_cv_sys_large_files" >&6; }
4559 case $ac_cv_sys_large_files in #(
4562 cat >>confdefs.h <<_ACEOF
4563 #define _LARGE_FILES $ac_cv_sys_large_files
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4575 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4576 if ${ac_cv_c_bigendian+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 ac_cv_c_bigendian=unknown
4580 # See if we're dealing with a universal compiler.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #ifndef __APPLE_CC__
4584 not a universal capable compiler
4589 if ac_fn_c_try_compile "$LINENO"; then :
4591 # Check for potential -arch flags. It is not universal unless
4592 # there are at least two -arch flags with different values.
4595 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4596 if test -n "$ac_prev"; then
4598 i?86 | x86_64 | ppc | ppc64)
4599 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4602 ac_cv_c_bigendian=universal
4608 elif test "x$ac_word" = "x-arch"; then
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 if test $ac_cv_c_bigendian = unknown; then
4615 # See if sys/param.h defines the BYTE_ORDER macro.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <sys/types.h>
4619 #include <sys/param.h>
4624 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4625 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 # It does; now see whether it defined to BIG_ENDIAN or not.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/param.h>
4644 #if BYTE_ORDER != BIG_ENDIAN
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_c_bigendian=yes
4655 ac_cv_c_bigendian=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 if test $ac_cv_c_bigendian = unknown; then
4662 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4670 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 # It does; now see whether it defined to _BIG_ENDIAN or not.
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_c_bigendian=yes
4698 ac_cv_c_bigendian=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 if test $ac_cv_c_bigendian = unknown; then
4705 # Compile a test program.
4706 if test "$cross_compiling" = yes; then :
4707 # Try to guess by grepping values from an object file.
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 short int ascii_mm[] =
4711 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4712 short int ascii_ii[] =
4713 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4714 int use_ascii (int i) {
4715 return ascii_mm[i] + ascii_ii[i];
4717 short int ebcdic_ii[] =
4718 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4719 short int ebcdic_mm[] =
4720 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4721 int use_ebcdic (int i) {
4722 return ebcdic_mm[i] + ebcdic_ii[i];
4729 return use_ascii (foo) == use_ebcdic (foo);
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4736 ac_cv_c_bigendian=yes
4738 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4739 if test "$ac_cv_c_bigendian" = unknown; then
4740 ac_cv_c_bigendian=no
4742 # finding both strings is unlikely to happen, but who knows?
4743 ac_cv_c_bigendian=unknown
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 $ac_includes_default
4756 /* Are we little or big endian? From Harbison&Steele. */
4760 char c[sizeof (long int)];
4763 return u.c[sizeof (long int) - 1] == 1;
4769 if ac_fn_c_try_run "$LINENO"; then :
4770 ac_cv_c_bigendian=no
4772 ac_cv_c_bigendian=yes
4774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4775 conftest.$ac_objext conftest.beam conftest.$ac_ext
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4781 $as_echo "$ac_cv_c_bigendian" >&6; }
4782 case $ac_cv_c_bigendian in #(
4785 $as_echo "#define RADIUS_BIG_ENDIAN 1" >>confdefs.h
4789 $as_echo "#define RADIUS_LITTLE_ENDIAN 1" >>confdefs.h
4794 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4798 as_fn_error $? "unknown endianness
4799 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4803 # Extract the first word of "gmake", so it can be a program name with args.
4804 set dummy gmake; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_GMAKE+:} false; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$GMAKE"; then
4811 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_GMAKE="yes"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4831 GMAKE=$ac_cv_prog_GMAKE
4832 if test -n "$GMAKE"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4834 $as_echo "$GMAKE" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 if test $GMAKE = no; then
4842 # Extract the first word of "make", so it can be a program name with args.
4843 set dummy make; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_path_MAKE+:} false; then :
4847 $as_echo_n "(cached) " >&6
4851 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4873 MAKE=$ac_cv_path_MAKE
4874 if test -n "$MAKE"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4876 $as_echo "$MAKE" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4884 # Extract the first word of "gmake", so it can be a program name with args.
4885 set dummy gmake; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_path_MAKE+:} false; then :
4889 $as_echo_n "(cached) " >&6
4893 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4915 MAKE=$ac_cv_path_MAKE
4916 if test -n "$MAKE"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4918 $as_echo "$MAKE" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4927 if test -z "$makever"; then
4928 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
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of system cores" >&5
4933 $as_echo_n "checking number of system cores... " >&6; }
4934 if ${ax_cv_system_cores+:} false; then :
4935 $as_echo_n "(cached) " >&6
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944 if test "$cross_compiling" = yes; then :
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4954 # include <windows.h>
4956 # include <sys/param.h>
4957 # include <sys/sysctl.h>
4959 # include <unistd.h>
4962 int main (int argc, char *argv[])
4967 SYSTEM_INFO sysinfo;
4968 GetSystemInfo(&sysinfo);
4970 count = sysinfo.dwNumberOfProcessors;
4977 nm[1] = HW_AVAILCPU;
4978 sysctl(nm, 2, &count, &len, NULL, 0);
4982 sysctl(nm, 2, &count, &len, NULL, 0);
4989 count = sysconf(_SC_NPROCESSORS_ONLN);
4996 if ac_fn_c_try_run "$LINENO"; then :
4997 ax_cv_system_cores=$?
4999 ax_cv_system_cores=$?
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002 conftest.$ac_objext conftest.beam conftest.$ac_ext
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_system_cores" >&5
5014 $as_echo "$ax_cv_system_cores" >&6; }
5019 # Extract the first word of "git", so it can be a program name with args.
5020 set dummy git; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_GIT+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$GIT"; then
5027 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_GIT="yes"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5048 if test -n "$GIT"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5050 $as_echo "$GIT" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5059 # Check whether --enable-strict-dependencies was given.
5060 if test "${enable_strict_dependencies+set}" = set; then :
5061 enableval=$enable_strict_dependencies;
5065 # Check whether --enable-werror was given.
5066 if test "${enable_werror+set}" = set; then :
5067 enableval=$enable_werror; case "$enableval" in
5078 docdir='${datadir}/doc/freeradius'
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
5080 $as_echo_n "checking docdir... " >&6; }
5082 # Check whether --with-docdir was given.
5083 if test "${with_docdir+set}" = set; then :
5084 withval=$with_docdir; case "$withval" in
5090 [\\/$]* | ?:[\\/]* )
5094 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
5102 $as_echo "$docdir" >&6; }
5103 if test "x$docdir" = xno; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
5105 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
5108 logdir='${localstatedir}/log/radius'
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
5110 $as_echo_n "checking logdir... " >&6; }
5112 # Check whether --with-logdir was given.
5113 if test "${with_logdir+set}" = set; then :
5114 withval=$with_logdir; case "$withval" in
5116 as_fn_error $? "Need logdir" "$LINENO" 5
5120 [\\/$]* | ?:[\\/]* )
5124 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
5132 $as_echo "$logdir" >&6; }
5134 radacctdir='${logdir}/radacct'
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
5136 $as_echo_n "checking radacctdir... " >&6; }
5138 # Check whether --with-radacctdir was given.
5139 if test "${with_radacctdir+set}" = set; then :
5140 withval=$with_radacctdir; case "$withval" in
5142 as_fn_error $? "Need radacctdir" "$LINENO" 5
5146 [\\/$]* | ?:[\\/]* )
5147 radacctdir="$withval"
5150 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
5158 $as_echo "$radacctdir" >&6; }
5160 raddbdir='${sysconfdir}/raddb'
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
5162 $as_echo_n "checking raddbdir... " >&6; }
5164 # Check whether --with-raddbdir was given.
5165 if test "${with_raddbdir+set}" = set; then :
5166 withval=$with_raddbdir; case "$withval" in
5168 as_fn_error $? "Need raddbdir" "$LINENO" 5
5172 [\\/$]* | ?:[\\/]* )
5176 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
5184 $as_echo "$raddbdir" >&6; }
5186 dictdir='${datarootdir}/freeradius'
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
5188 $as_echo_n "checking dictdir... " >&6; }
5190 # Check whether --with-dictdir was given.
5191 if test "${with_dictdir+set}" = set; then :
5192 withval=$with_dictdir; case "$withval" in
5194 as_fn_error $? "Need dictdir" "$LINENO" 5
5198 [\\/$]* | ?:[\\/]* )
5202 as_fn_error $? "expected an absolute directory name for --with-dictdir: $withval" "$LINENO" 5
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dictdir" >&5
5210 $as_echo "$dictdir" >&6; }
5212 modconfdir='${raddbdir}/mods-config'
5215 WITH_ASCEND_BINARY=yes
5217 # Check whether --with-ascend-binary was given.
5218 if test "${with_ascend_binary+set}" = set; then :
5219 withval=$with_ascend_binary; case "$withval" in
5223 WITH_ASCEND_BINARY=no
5228 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
5230 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
5236 # Check whether --with-threads was given.
5237 if test "${with_threads+set}" = set; then :
5238 withval=$with_threads; case "$withval" in
5250 # Check whether --with-tcp was given.
5251 if test "${with_tcp+set}" = set; then :
5252 withval=$with_tcp; case "$withval" in
5261 if test "x$WITH_TCP" = "xyes"; then
5263 $as_echo "#define WITH_TCP 1" >>confdefs.h
5269 # Check whether --with-vmps was given.
5270 if test "${with_vmps+set}" = set; then :
5271 withval=$with_vmps; case "$withval" in
5280 if test "x$WITH_VMPS" = "xyes"; then
5282 $as_echo "#define WITH_VMPS 1" >>confdefs.h
5288 # Check whether --with-dhcp was given.
5289 if test "${with_dhcp+set}" = set; then :
5290 withval=$with_dhcp; case "$withval" in
5299 if test "x$WITH_DHCP" = "xyes"; then
5301 $as_echo "#define WITH_DHCP 1" >>confdefs.h
5307 # Check whether --with-static_modules was given.
5308 if test "${with_static_modules+set}" = set; then :
5309 withval=$with_static_modules;
5310 for i in $withval; do
5311 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5319 # Check whether --with-shared-libs was given.
5320 if test "${with_shared_libs+set}" = set; then :
5321 withval=$with_shared_libs; case "$withval" in
5333 # Check whether --with-modules was given.
5334 if test "${with_modules+set}" = set; then :
5335 withval=$with_modules;
5336 for i in $withval; do
5337 MODULES="$MODULES $i"
5345 # Check whether --with-experimental-modules was given.
5346 if test "${with_experimental_modules+set}" = set; then :
5347 withval=$with_experimental_modules; case "$withval" in
5362 # Check whether --with-udpfromto was given.
5363 if test "${with_udpfromto+set}" = set; then :
5364 withval=$with_udpfromto; case "$withval" in
5375 if test "x$WITH_UDPFROMTO" = "xyes"; then
5377 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
5383 # Check whether --with-rlm-FOO-lib-dir was given.
5384 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
5385 withval=$with_rlm_FOO_lib_dir; case "$withval" in
5394 # Check whether --with-rlm-FOO-include-dir was given.
5395 if test "${with_rlm_FOO_include_dir+set}" = set; then :
5396 withval=$with_rlm_FOO_include_dir; case "$withval" in
5406 # Check whether --with-openssl was given.
5407 if test "${with_openssl+set}" = set; then :
5408 withval=$with_openssl; case "$withval" in
5422 # Check whether --with-openssl-lib-dir was given.
5423 if test "${with_openssl_lib_dir+set}" = set; then :
5424 withval=$with_openssl_lib_dir; case "$withval" in
5425 *) openssl_lib_dir="$withval"
5432 openssl_include_dir=
5434 # Check whether --with-openssl-include-dir was given.
5435 if test "${with_openssl_include_dir+set}" = set; then :
5436 withval=$with_openssl_include_dir; case "$withval" in
5437 *) openssl_include_dir="$withval"
5444 # Check whether --enable-openssl-version-check was given.
5445 if test "${enable_openssl_version_check+set}" = set; then :
5446 enableval=$enable_openssl_version_check;
5449 if test "x$enable_openssl_version_check" != "xno"; then
5451 $as_echo "#define ENABLE_OPENSSL_VERSION_CHECK 1" >>confdefs.h
5453 openssl_version_check_config="\
5455 # allow_vulnerable_openssl: Allow the server to start with
5456 # versions of OpenSSL known to have critical vulnerabilities.
5458 # This check is based on the version number reported by libssl
5459 # and may not reflect patches applied to libssl by
5460 # distribution maintainers.
5462 allow_vulnerable_openssl = no"
5464 openssl_version_check_config=
5471 # Extract the first word of "perl", so it can be a program name with args.
5472 set dummy perl; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PERL+:} false; then :
5476 $as_echo_n "(cached) " >&6
5480 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5502 PERL=$ac_cv_path_PERL
5503 if test -n "$PERL"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5505 $as_echo "$PERL" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 if test "x$ac_cv_path_PERL" = "x"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
5514 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
5516 # Extract the first word of "snmpget", so it can be a program name with args.
5517 set dummy snmpget; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_path_SNMPGET+:} false; then :
5521 $as_echo_n "(cached) " >&6
5525 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 SNMPGET=$ac_cv_path_SNMPGET
5547 if test -n "$SNMPGET"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
5549 $as_echo "$SNMPGET" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 if test "x$ac_cv_path_SNMPGET" = "x"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
5558 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
5561 # Extract the first word of "snmpwalk", so it can be a program name with args.
5562 set dummy snmpwalk; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_path_SNMPWALK+:} false; then :
5566 $as_echo_n "(cached) " >&6
5570 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 SNMPWALK=$ac_cv_path_SNMPWALK
5592 if test -n "$SNMPWALK"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
5594 $as_echo "$SNMPWALK" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
5603 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
5606 # Extract the first word of "rusers", so it can be a program name with args.
5607 set dummy rusers; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_path_RUSERS+:} false; then :
5611 $as_echo_n "(cached) " >&6
5615 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5637 RUSERS=$ac_cv_path_RUSERS
5638 if test -n "$RUSERS"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
5640 $as_echo "$RUSERS" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 missing_dir=`cd $ac_aux_dir && pwd`
5649 # expand $ac_aux_dir to an absolute path
5650 am_aux_dir=`cd $ac_aux_dir && pwd`
5652 if test x"${MISSING+set}" != xset; then
5655 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5657 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5660 # Use eval to expand $SHELL
5661 if eval "$MISSING --run true"; then
5662 am_missing_run="$MISSING --run "
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5666 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5679 # Extract the first word of "locate", so it can be a program name with args.
5680 set dummy locate; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_path_LOCATE+:} false; then :
5684 $as_echo_n "(cached) " >&6
5688 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 LOCATE=$ac_cv_path_LOCATE
5710 if test -n "$LOCATE"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
5712 $as_echo "$LOCATE" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5719 # Extract the first word of "dirname", so it can be a program name with args.
5720 set dummy dirname; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_path_DIRNAME+:} false; then :
5724 $as_echo_n "(cached) " >&6
5728 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 DIRNAME=$ac_cv_path_DIRNAME
5750 if test -n "$DIRNAME"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
5752 $as_echo "$DIRNAME" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 # Extract the first word of "grep", so it can be a program name with args.
5760 set dummy grep; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_path_GREP+:} false; then :
5764 $as_echo_n "(cached) " >&6
5768 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 GREP=$ac_cv_path_GREP
5790 if test -n "$GREP"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
5792 $as_echo "$GREP" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5803 # Check whether --with-talloc-lib-dir was given.
5804 if test "${with_talloc_lib_dir+set}" = set; then :
5805 withval=$with_talloc_lib_dir; case "$withval" in
5807 as_fn_error $? "Need talloc-lib-dir" "$LINENO" 5
5812 talloc_lib_dir="$withval"
5820 # Check whether --with-talloc-include-dir was given.
5821 if test "${with_talloc_include_dir+set}" = set; then :
5822 withval=$with_talloc_include_dir; case "$withval" in
5824 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
5829 talloc_include_dir="$withval"
5835 smart_try_dir="$talloc_lib_dir"
5838 sm_lib_safe=`echo "talloc" | sed 'y%./+-%__p_%'`
5839 sm_func_safe=`echo "_talloc" | sed 'y%./+-%__p_%'`
5842 old_CPPFLAGS="$CPPFLAGS"
5847 if test "x$smart_try_dir" != "x"; then
5848 for try in $smart_try_dir; do
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5850 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5851 LIBS="-ltalloc $old_LIBS"
5852 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 extern char _talloc();
5864 if ac_fn_c_try_link "$LINENO"; then :
5866 smart_lib="-ltalloc"
5867 smart_ldflags="-L$try -Wl,-rpath,$try"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869 $as_echo "yes" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5876 rm -f core conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5880 CPPFLAGS="$old_CPPFLAGS"
5883 if test "x$smart_lib" = "x"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc" >&5
5885 $as_echo_n "checking for _talloc in -ltalloc... " >&6; }
5886 LIBS="-ltalloc $old_LIBS"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 extern char _talloc();
5898 if ac_fn_c_try_link "$LINENO"; then :
5900 smart_lib="-ltalloc"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5902 $as_echo "yes" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5908 rm -f core conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5913 if test "x$smart_lib" = "x"; then
5916 if test "x$LOCATE" != "x"; then
5918 file=libtalloc${libltdl_cv_shlibext}
5920 for x in `${LOCATE} $file 2>/dev/null`; do
5921 base=`echo $x | sed "s%/${file}%%"`
5922 if test "x$x" = "x$base"; then
5926 dir=`${DIRNAME} $x 2>/dev/null`
5927 exclude=`echo ${dir} | ${GREP} /home`
5928 if test "x$exclude" != "x"; then
5932 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5933 if test "x$already" = "x"; then
5939 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5943 if test "x$LOCATE" != "x"; then
5947 for x in `${LOCATE} $file 2>/dev/null`; do
5948 base=`echo $x | sed "s%/${file}%%"`
5949 if test "x$x" = "x$base"; then
5953 dir=`${DIRNAME} $x 2>/dev/null`
5954 exclude=`echo ${dir} | ${GREP} /home`
5955 if test "x$exclude" != "x"; then
5959 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
5960 if test "x$already" = "x"; then
5966 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
5969 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _talloc in -ltalloc in $try" >&5
5971 $as_echo_n "checking for _talloc in -ltalloc in $try... " >&6; }
5972 LIBS="-ltalloc $old_LIBS"
5973 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 extern char _talloc();
5985 if ac_fn_c_try_link "$LINENO"; then :
5987 smart_lib="-ltalloc"
5988 smart_ldflags="-L$try -Wl,-rpath,$try"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5990 $as_echo "yes" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext conftest.$ac_ext
6001 CPPFLAGS="$old_CPPFLAGS"
6004 if test "x$smart_lib" != "x"; then
6005 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6006 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6007 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6010 if test "x$ac_cv_lib_talloc__talloc" != "xyes"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&5
6012 $as_echo "$as_me: WARNING: talloc library not found. Use --with-talloc-lib-dir=<path>." >&2;}
6013 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
6016 TALLOC_LIBS="${smart_lib}"
6017 TALLOC_LDFLAGS="${smart_ldflags}"
6023 if test "x$WITH_THREADS" = "xyes"; then
6024 if test $ac_cv_prog_suncc = "yes"; then
6025 CFLAGS="$CFLAGS -mt"
6028 for ac_header in pthread.h
6030 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6031 if test "x$ac_cv_header_pthread_h" = xyes; then :
6032 cat >>confdefs.h <<_ACEOF
6033 #define HAVE_PTHREAD_H 1
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6047 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6048 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6049 $as_echo_n "(cached) " >&6
6051 ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lpthread $LIBS"
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 /* Override any GCC internal prototype to avoid an error.
6057 Use char because int might match the return type of a GCC
6058 builtin and then its argument prototype would still apply. */
6062 char pthread_create ();
6066 return pthread_create ();
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 ac_cv_lib_pthread_pthread_create=yes
6074 ac_cv_lib_pthread_pthread_create=no
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6081 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6082 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6084 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6085 LIBS="-lpthread $LIBS"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6090 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6091 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 ac_check_lib_save_LIBS=$LIBS
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6099 /* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6105 char pthread_create ();
6109 return pthread_create ();
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 ac_cv_lib_c_r_pthread_create=yes
6117 ac_cv_lib_c_r_pthread_create=no
6119 rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6124 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6125 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
6126 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6140 if test "x$WITH_THREADS" != "xyes"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building with thread support." >&5
6142 $as_echo "$as_me: WARNING: silently not building with thread support." >&2;}
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: thread support requires: $fail." >&5
6144 $as_echo "$as_me: WARNING: FAILURE: thread support requires: $fail." >&2;}
6147 $as_echo "#define WITH_THREADS 1" >>confdefs.h
6152 if test "x$WITH_THREADS" != "xyes"; then
6154 ac_cv_header_pthread_h="no"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6159 $as_echo_n "checking for library containing sem_init... " >&6; }
6160 if ${ac_cv_search_sem_init+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 ac_func_search_save_LIBS=$LIBS
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 /* Override any GCC internal prototype to avoid an error.
6168 Use char because int might match the return type of a GCC
6169 builtin and then its argument prototype would still apply. */
6182 for ac_lib in '' pthread sem posix4 rt semaphore; do
6183 if test -z "$ac_lib"; then
6184 ac_res="none required"
6187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6189 if ac_fn_c_try_link "$LINENO"; then :
6190 ac_cv_search_sem_init=$ac_res
6192 rm -f core conftest.err conftest.$ac_objext \
6194 if ${ac_cv_search_sem_init+:} false; then :
6198 if ${ac_cv_search_sem_init+:} false; then :
6201 ac_cv_search_sem_init=no
6204 LIBS=$ac_func_search_save_LIBS
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6207 $as_echo "$ac_cv_search_sem_init" >&6; }
6208 ac_res=$ac_cv_search_sem_init
6209 if test "$ac_res" != no; then :
6210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6213 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
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6221 if ${ac_cv_lib_dl_dlopen+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 ac_check_lib_save_LIBS=$LIBS
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6229 /* Override any GCC internal prototype to avoid an error.
6230 Use char because int might match the return type of a GCC
6231 builtin and then its argument prototype would still apply. */
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 ac_cv_lib_dl_dlopen=yes
6247 ac_cv_lib_dl_dlopen=no
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 LIBS=$ac_check_lib_save_LIBS
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6255 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6256 cat >>confdefs.h <<_ACEOF
6257 #define HAVE_LIBDL 1
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
6266 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
6267 if ${ac_cv_lib_socket_getsockname+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 ac_check_lib_save_LIBS=$LIBS
6271 LIBS="-lsocket $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. */
6281 char getsockname ();
6285 return getsockname ();
6290 if ac_fn_c_try_link "$LINENO"; then :
6291 ac_cv_lib_socket_getsockname=yes
6293 ac_cv_lib_socket_getsockname=no
6295 rm -f core conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297 LIBS=$ac_check_lib_save_LIBS
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
6300 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
6301 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
6302 cat >>confdefs.h <<_ACEOF
6303 #define HAVE_LIBSOCKET 1
6306 LIBS="-lsocket $LIBS"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6312 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6313 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
6314 $as_echo_n "(cached) " >&6
6316 ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-lresolv $LIBS"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6321 /* Override any GCC internal prototype to avoid an error.
6322 Use char because int might match the return type of a GCC
6323 builtin and then its argument prototype would still apply. */
6331 return inet_aton ();
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 ac_cv_lib_resolv_inet_aton=yes
6339 ac_cv_lib_resolv_inet_aton=no
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
6346 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
6347 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_LIBRESOLV 1
6352 LIBS="-lresolv $LIBS"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
6358 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
6359 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
6360 $as_echo_n "(cached) " >&6
6362 ac_check_lib_save_LIBS=$LIBS
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6367 /* Override any GCC internal prototype to avoid an error.
6368 Use char because int might match the return type of a GCC
6369 builtin and then its argument prototype would still apply. */
6377 return inet_ntoa ();
6382 if ac_fn_c_try_link "$LINENO"; then :
6383 ac_cv_lib_nsl_inet_ntoa=yes
6385 ac_cv_lib_nsl_inet_ntoa=no
6387 rm -f core conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
6389 LIBS=$ac_check_lib_save_LIBS
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6392 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
6393 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
6394 cat >>confdefs.h <<_ACEOF
6395 #define HAVE_LIBNSL 1
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
6403 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
6404 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
6405 $as_echo_n "(cached) " >&6
6407 ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-lws2_32 $LIBS"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6412 /* Override any GCC internal prototype to avoid an error.
6413 Use char because int might match the return type of a GCC
6414 builtin and then its argument prototype would still apply. */
6427 if ac_fn_c_try_link "$LINENO"; then :
6428 ac_cv_lib_ws2_32_htonl=yes
6430 ac_cv_lib_ws2_32_htonl=no
6432 rm -f core conftest.err conftest.$ac_objext \
6433 conftest$ac_exeext conftest.$ac_ext
6434 LIBS=$ac_check_lib_save_LIBS
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
6437 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
6438 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_LIBWS2_32 1
6443 LIBS="-lws2_32 $LIBS"
6450 # Check whether --with-pcap-lib-dir was given.
6451 if test "${with_pcap_lib_dir+set}" = set; then :
6452 withval=$with_pcap_lib_dir; case "$withval" in
6454 as_fn_error $? "Need pcap-lib-dir" "$LINENO" 5
6459 pcap_lib_dir="$withval"
6467 # Check whether --with-pcap-include-dir was given.
6468 if test "${with_pcap_include_dir+set}" = set; then :
6469 withval=$with_pcap_include_dir; case "$withval" in
6471 as_fn_error $? "Need pcap-include-dir" "$LINENO" 5
6476 pcap_include_dir="$withval"
6482 smart_try_dir="$pcap_lib_dir"
6485 sm_lib_safe=`echo "pcap" | sed 'y%./+-%__p_%'`
6486 sm_func_safe=`echo "pcap_open_live" | sed 'y%./+-%__p_%'`
6489 old_CPPFLAGS="$CPPFLAGS"
6494 if test "x$smart_try_dir" != "x"; then
6495 for try in $smart_try_dir; do
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6497 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6498 LIBS="-lpcap $old_LIBS"
6499 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 extern char pcap_open_live();
6511 if ac_fn_c_try_link "$LINENO"; then :
6514 smart_ldflags="-L$try -Wl,-rpath,$try"
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516 $as_echo "yes" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6527 CPPFLAGS="$old_CPPFLAGS"
6530 if test "x$smart_lib" = "x"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
6532 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
6533 LIBS="-lpcap $old_LIBS"
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 extern char pcap_open_live();
6545 if ac_fn_c_try_link "$LINENO"; then :
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549 $as_echo "yes" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6555 rm -f core conftest.err conftest.$ac_objext \
6556 conftest$ac_exeext conftest.$ac_ext
6560 if test "x$smart_lib" = "x"; then
6563 if test "x$LOCATE" != "x"; then
6565 file=libpcap${libltdl_cv_shlibext}
6567 for x in `${LOCATE} $file 2>/dev/null`; do
6568 base=`echo $x | sed "s%/${file}%%"`
6569 if test "x$x" = "x$base"; then
6573 dir=`${DIRNAME} $x 2>/dev/null`
6574 exclude=`echo ${dir} | ${GREP} /home`
6575 if test "x$exclude" != "x"; then
6579 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6580 if test "x$already" = "x"; then
6586 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6590 if test "x$LOCATE" != "x"; then
6594 for x in `${LOCATE} $file 2>/dev/null`; do
6595 base=`echo $x | sed "s%/${file}%%"`
6596 if test "x$x" = "x$base"; then
6600 dir=`${DIRNAME} $x 2>/dev/null`
6601 exclude=`echo ${dir} | ${GREP} /home`
6602 if test "x$exclude" != "x"; then
6606 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6607 if test "x$already" = "x"; then
6613 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6616 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap in $try" >&5
6618 $as_echo_n "checking for pcap_open_live in -lpcap in $try... " >&6; }
6619 LIBS="-lpcap $old_LIBS"
6620 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 extern char pcap_open_live();
6632 if ac_fn_c_try_link "$LINENO"; then :
6635 smart_ldflags="-L$try -Wl,-rpath,$try"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6637 $as_echo "yes" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6644 rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6648 CPPFLAGS="$old_CPPFLAGS"
6651 if test "x$smart_lib" != "x"; then
6652 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6653 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6654 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6657 if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
6658 { $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
6659 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
6662 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
6666 pcap_fopen_offline \
6672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6675 cat >>confdefs.h <<_ACEOF
6676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6683 PCAP_LIBS="${smart_lib}"
6684 PCAP_LDFLAGS="${smart_ldflags}"
6688 collectdclient_lib_dir=
6690 # Check whether --with-collectdclient-lib-dir was given.
6691 if test "${with_collectdclient_lib_dir+set}" = set; then :
6692 withval=$with_collectdclient_lib_dir; case "$withval" in
6694 as_fn_error $? "Need collectdclient-lib-dir" "$LINENO" 5
6699 collectdclient_lib_dir="$withval"
6705 collectdclient_include_dir=
6707 # Check whether --with-collectdclient-include-dir was given.
6708 if test "${with_collectdclient_include_dir+set}" = set; then :
6709 withval=$with_collectdclient_include_dir; case "$withval" in
6711 as_fn_error $? "Need collectdclient-include-dir" "$LINENO" 5
6716 collectdclient_include_dir="$withval"
6722 smart_try_dir="$collectdclient_lib_dir"
6725 sm_lib_safe=`echo "collectdclient" | sed 'y%./+-%__p_%'`
6726 sm_func_safe=`echo "lcc_connect" | sed 'y%./+-%__p_%'`
6729 old_CPPFLAGS="$CPPFLAGS"
6734 if test "x$smart_try_dir" != "x"; then
6735 for try in $smart_try_dir; do
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6737 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6738 LIBS="-lcollectdclient $old_LIBS"
6739 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 extern char lcc_connect();
6751 if ac_fn_c_try_link "$LINENO"; then :
6753 smart_lib="-lcollectdclient"
6754 smart_ldflags="-L$try -Wl,-rpath,$try"
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6756 $as_echo "yes" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6767 CPPFLAGS="$old_CPPFLAGS"
6770 if test "x$smart_lib" = "x"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient" >&5
6772 $as_echo_n "checking for lcc_connect in -lcollectdclient... " >&6; }
6773 LIBS="-lcollectdclient $old_LIBS"
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 extern char lcc_connect();
6785 if ac_fn_c_try_link "$LINENO"; then :
6787 smart_lib="-lcollectdclient"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6800 if test "x$smart_lib" = "x"; then
6803 if test "x$LOCATE" != "x"; then
6805 file=libcollectdclient${libltdl_cv_shlibext}
6807 for x in `${LOCATE} $file 2>/dev/null`; do
6808 base=`echo $x | sed "s%/${file}%%"`
6809 if test "x$x" = "x$base"; then
6813 dir=`${DIRNAME} $x 2>/dev/null`
6814 exclude=`echo ${dir} | ${GREP} /home`
6815 if test "x$exclude" != "x"; then
6819 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6820 if test "x$already" = "x"; then
6826 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6830 if test "x$LOCATE" != "x"; then
6832 file=libcollectdclient.a
6834 for x in `${LOCATE} $file 2>/dev/null`; do
6835 base=`echo $x | sed "s%/${file}%%"`
6836 if test "x$x" = "x$base"; then
6840 dir=`${DIRNAME} $x 2>/dev/null`
6841 exclude=`echo ${dir} | ${GREP} /home`
6842 if test "x$exclude" != "x"; then
6846 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
6847 if test "x$already" = "x"; then
6853 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
6856 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcc_connect in -lcollectdclient in $try" >&5
6858 $as_echo_n "checking for lcc_connect in -lcollectdclient in $try... " >&6; }
6859 LIBS="-lcollectdclient $old_LIBS"
6860 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 extern char lcc_connect();
6872 if ac_fn_c_try_link "$LINENO"; then :
6874 smart_lib="-lcollectdclient"
6875 smart_ldflags="-L$try -Wl,-rpath,$try"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6877 $as_echo "yes" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6884 rm -f core conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6888 CPPFLAGS="$old_CPPFLAGS"
6891 if test "x$smart_lib" != "x"; then
6892 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
6893 LIBS="$smart_ldflags $smart_lib $old_LIBS"
6894 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
6897 if test "x$ac_cv_lib_collectdclient_lcc_connect" != "xyes"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&5
6899 $as_echo "$as_me: WARNING: collectdclient library not found. Use --with-collectdclient-lib-dir=<path>." >&2;}
6901 COLLECTDC_LIBS="${smart_lib}"
6902 COLLECTDC_LDFLAGS="${smart_ldflags}"
6908 # Check whether --with-cap-lib-dir was given.
6909 if test "${with_cap_lib_dir+set}" = set; then :
6910 withval=$with_cap_lib_dir; case "$withval" in
6912 as_fn_error $? "Need cap-lib-dir" "$LINENO" 5
6917 cap_lib_dir="$withval"
6925 # Check whether --with-cap-include-dir was given.
6926 if test "${with_cap_include_dir+set}" = set; then :
6927 withval=$with_cap_include_dir; case "$withval" in
6929 as_fn_error $? "Need cap-include-dir" "$LINENO" 5
6934 cap_include_dir="$withval"
6940 smart_try_dir="$cap_lib_dir"
6943 sm_lib_safe=`echo "cap" | sed 'y%./+-%__p_%'`
6944 sm_func_safe=`echo "cap_get_proc" | sed 'y%./+-%__p_%'`
6947 old_CPPFLAGS="$CPPFLAGS"
6952 if test "x$smart_try_dir" != "x"; then
6953 for try in $smart_try_dir; do
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
6955 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
6956 LIBS="-lcap $old_LIBS"
6957 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 extern char cap_get_proc();
6969 if ac_fn_c_try_link "$LINENO"; then :
6972 smart_ldflags="-L$try -Wl,-rpath,$try"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6974 $as_echo "yes" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6985 CPPFLAGS="$old_CPPFLAGS"
6988 if test "x$smart_lib" = "x"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
6990 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
6991 LIBS="-lcap $old_LIBS"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 extern char cap_get_proc();
7003 if ac_fn_c_try_link "$LINENO"; then :
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 $as_echo "yes" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7018 if test "x$smart_lib" = "x"; then
7021 if test "x$LOCATE" != "x"; then
7023 file=libcap${libltdl_cv_shlibext}
7025 for x in `${LOCATE} $file 2>/dev/null`; do
7026 base=`echo $x | sed "s%/${file}%%"`
7027 if test "x$x" = "x$base"; then
7031 dir=`${DIRNAME} $x 2>/dev/null`
7032 exclude=`echo ${dir} | ${GREP} /home`
7033 if test "x$exclude" != "x"; then
7037 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7038 if test "x$already" = "x"; then
7044 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7048 if test "x$LOCATE" != "x"; then
7052 for x in `${LOCATE} $file 2>/dev/null`; do
7053 base=`echo $x | sed "s%/${file}%%"`
7054 if test "x$x" = "x$base"; then
7058 dir=`${DIRNAME} $x 2>/dev/null`
7059 exclude=`echo ${dir} | ${GREP} /home`
7060 if test "x$exclude" != "x"; then
7064 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
7065 if test "x$already" = "x"; then
7071 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
7074 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap in $try" >&5
7076 $as_echo_n "checking for cap_get_proc in -lcap in $try... " >&6; }
7077 LIBS="-lcap $old_LIBS"
7078 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 extern char cap_get_proc();
7090 if ac_fn_c_try_link "$LINENO"; then :
7093 smart_ldflags="-L$try -Wl,-rpath,$try"
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7095 $as_echo "yes" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7106 CPPFLAGS="$old_CPPFLAGS"
7109 if test "x$smart_lib" != "x"; then
7110 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
7111 LIBS="$smart_ldflags $smart_lib $old_LIBS"
7112 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
7115 if test "x$ac_cv_lib_cap_cap_get_proc" != "xyes"; then
7116 { $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
7117 $as_echo "$as_me: WARNING: cap library not found, debugger checks will not be enabled. Use --with-cap-lib-dir=<path>." >&2;}
7120 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
7127 $as_echo_n "checking for a readline compatible library... " >&6; }
7128 if ${vl_cv_lib_readline+:} false; then :
7129 $as_echo_n "(cached) " >&6
7133 for readline_lib in readline edit editline; do
7134 for termcap_lib in "" termcap curses ncurses; do
7135 if test -z "$termcap_lib"; then
7136 TRY_LIB="-l$readline_lib"
7138 TRY_LIB="-l$readline_lib -l$termcap_lib"
7140 LIBS="$ORIG_LIBS $TRY_LIB"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7144 /* Override any GCC internal prototype to avoid an error.
7145 Use char because int might match the return type of a GCC
7146 builtin and then its argument prototype would still apply. */
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 vl_cv_lib_readline="$TRY_LIB"
7162 rm -f core conftest.err conftest.$ac_objext \
7163 conftest$ac_exeext conftest.$ac_ext
7164 if test -n "$vl_cv_lib_readline"; then
7168 if test -n "$vl_cv_lib_readline"; then
7172 if test -z "$vl_cv_lib_readline"; then
7173 vl_cv_lib_readline="no"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
7179 $as_echo "$vl_cv_lib_readline" >&6; }
7181 if test "$vl_cv_lib_readline" != "no"; then
7182 LIBREADLINE="$vl_cv_lib_readline"
7184 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
7186 for ac_header in readline.h readline/readline.h
7188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7191 cat >>confdefs.h <<_ACEOF
7192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7200 $as_echo_n "checking whether readline supports history... " >&6; }
7201 if ${vl_cv_lib_readline_history+:} false; then :
7202 $as_echo_n "(cached) " >&6
7205 vl_cv_lib_readline_history="no"
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7209 /* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
7215 char add_history ();
7219 return add_history ();
7224 if ac_fn_c_try_link "$LINENO"; then :
7225 vl_cv_lib_readline_history="yes"
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
7232 $as_echo "$vl_cv_lib_readline_history" >&6; }
7233 if test "$vl_cv_lib_readline_history" = "yes"; then
7235 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7237 for ac_header in history.h readline/history.h
7239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256 smart_try_dir="$talloc_include_dir"
7259 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
7260 old_CPPFLAGS="$CPPFLAGS"
7262 smart_include_dir="/usr/local/include /opt/include"
7267 for _prefix in $smart_prefix ""; do
7268 for _dir in $smart_try_dir; do
7269 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
7272 for _dir in $smart_include_dir; do
7273 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
7277 if test "x$_smart_try_dir" != "x"; then
7278 for try in $_smart_try_dir; do
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7280 $as_echo_n "checking for talloc.h in $try... " >&6; }
7281 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7294 if ac_fn_c_try_compile "$LINENO"; then :
7296 smart_include="-isystem $try"
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7298 $as_echo "yes" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 CPPFLAGS="$old_CPPFLAGS"
7313 if test "x$smart_include" = "x"; then
7314 for _prefix in $smart_prefix; do
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/talloc.h" >&5
7316 $as_echo_n "checking for ${_prefix}/talloc.h... " >&6; }
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7330 if ac_fn_c_try_compile "$LINENO"; then :
7332 smart_include="-isystem ${_prefix}/"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334 $as_echo "yes" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 if test "x$smart_include" = "x"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
7350 $as_echo_n "checking for talloc.h... " >&6; }
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7364 if ac_fn_c_try_compile "$LINENO"; then :
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7368 $as_echo "yes" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 if test "x$smart_include" = "x"; then
7383 for prefix in $smart_prefix; do
7386 if test "x$LOCATE" != "x"; then
7388 file="${_prefix}/${1}"
7390 for x in `${LOCATE} $file 2>/dev/null`; do
7391 base=`echo $x | sed "s%/${file}%%"`
7392 if test "x$x" = "x$base"; then
7396 dir=`${DIRNAME} $x 2>/dev/null`
7397 exclude=`echo ${dir} | ${GREP} /home`
7398 if test "x$exclude" != "x"; then
7402 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7403 if test "x$already" = "x"; then
7409 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7414 if test "x$LOCATE" != "x"; then
7418 for x in `${LOCATE} $file 2>/dev/null`; do
7419 base=`echo $x | sed "s%/${file}%%"`
7420 if test "x$x" = "x$base"; then
7424 dir=`${DIRNAME} $x 2>/dev/null`
7425 exclude=`echo ${dir} | ${GREP} /home`
7426 if test "x$exclude" != "x"; then
7430 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
7431 if test "x$already" = "x"; then
7437 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
7440 for try in $_smart_include_dir; do
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h in $try" >&5
7442 $as_echo_n "checking for talloc.h in $try... " >&6; }
7443 CPPFLAGS="-isystem $try $old_CPPFLAGS"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7456 if ac_fn_c_try_compile "$LINENO"; then :
7458 smart_include="-isystem $try"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7460 $as_echo "yes" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 CPPFLAGS="$old_CPPFLAGS"
7475 if test "x$smart_include" != "x"; then
7476 eval "ac_cv_header_$ac_safe=yes"
7477 CPPFLAGS="$smart_include $old_CPPFLAGS"
7478 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
7483 if test "x$ac_cv_header_talloc_h" != "xyes"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
7485 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
7486 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
7491 CFLAGS="$CFLAGS -D_ALL_SOURCE"
7494 CFLAGS="$CFLAGS -DDARWIN"
7495 LIBS="-framework DirectoryService $LIBS"
7497 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
7503 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7504 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7506 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7507 if eval \${$as_ac_Header+:} false; then :
7508 $as_echo_n "(cached) " >&6
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <sys/types.h>
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 eval "$as_ac_Header=yes"
7527 eval "$as_ac_Header=no"
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 eval ac_res=\$$as_ac_Header
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7533 $as_echo "$ac_res" >&6; }
7534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7535 cat >>confdefs.h <<_ACEOF
7536 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7539 ac_header_dirent=$ac_hdr; break
7543 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7544 if test $ac_header_dirent = dirent.h; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7546 $as_echo_n "checking for library containing opendir... " >&6; }
7547 if ${ac_cv_search_opendir+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 ac_func_search_save_LIBS=$LIBS
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7554 /* Override any GCC internal prototype to avoid an error.
7555 Use char because int might match the return type of a GCC
7556 builtin and then its argument prototype would still apply. */
7569 for ac_lib in '' dir; do
7570 if test -z "$ac_lib"; then
7571 ac_res="none required"
7574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7576 if ac_fn_c_try_link "$LINENO"; then :
7577 ac_cv_search_opendir=$ac_res
7579 rm -f core conftest.err conftest.$ac_objext \
7581 if ${ac_cv_search_opendir+:} false; then :
7585 if ${ac_cv_search_opendir+:} false; then :
7588 ac_cv_search_opendir=no
7591 LIBS=$ac_func_search_save_LIBS
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7594 $as_echo "$ac_cv_search_opendir" >&6; }
7595 ac_res=$ac_cv_search_opendir
7596 if test "$ac_res" != no; then :
7597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7603 $as_echo_n "checking for library containing opendir... " >&6; }
7604 if ${ac_cv_search_opendir+:} false; then :
7605 $as_echo_n "(cached) " >&6
7607 ac_func_search_save_LIBS=$LIBS
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7626 for ac_lib in '' x; do
7627 if test -z "$ac_lib"; then
7628 ac_res="none required"
7631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7633 if ac_fn_c_try_link "$LINENO"; then :
7634 ac_cv_search_opendir=$ac_res
7636 rm -f core conftest.err conftest.$ac_objext \
7638 if ${ac_cv_search_opendir+:} false; then :
7642 if ${ac_cv_search_opendir+:} false; then :
7645 ac_cv_search_opendir=no
7648 LIBS=$ac_func_search_save_LIBS
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7651 $as_echo "$ac_cv_search_opendir" >&6; }
7652 ac_res=$ac_cv_search_opendir
7653 if test "$ac_res" != no; then :
7654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7661 $as_echo_n "checking for ANSI C header files... " >&6; }
7662 if ${ac_cv_header_stdc+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681 ac_cv_header_stdc=yes
7683 ac_cv_header_stdc=no
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 if test $ac_cv_header_stdc = yes; then
7688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695 $EGREP "memchr" >/dev/null 2>&1; then :
7698 ac_cv_header_stdc=no
7704 if test $ac_cv_header_stdc = yes; then
7705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7712 $EGREP "free" >/dev/null 2>&1; then :
7715 ac_cv_header_stdc=no
7721 if test $ac_cv_header_stdc = yes; then
7722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7723 if test "$cross_compiling" = yes; then :
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7730 #if ((' ' & 0x0FF) == 0x020)
7731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7734 # define ISLOWER(c) \
7735 (('a' <= (c) && (c) <= 'i') \
7736 || ('j' <= (c) && (c) <= 'r') \
7737 || ('s' <= (c) && (c) <= 'z'))
7738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7746 for (i = 0; i < 256; i++)
7747 if (XOR (islower (i), ISLOWER (i))
7748 || toupper (i) != TOUPPER (i))
7753 if ac_fn_c_try_run "$LINENO"; then :
7756 ac_cv_header_stdc=no
7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7759 conftest.$ac_objext conftest.beam conftest.$ac_ext
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7765 $as_echo "$ac_cv_header_stdc" >&6; }
7766 if test $ac_cv_header_stdc = yes; then
7768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7773 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7774 if ${ac_cv_header_time+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <sys/time.h>
7786 if ((struct tm *) 0)
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ac_cv_header_time=yes
7795 ac_cv_header_time=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7800 $as_echo "$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7803 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7808 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7809 if ${ac_cv_header_sys_wait_h+:} false; then :
7810 $as_echo_n "(cached) " >&6
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <sys/types.h>
7815 #include <sys/wait.h>
7817 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7820 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7828 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834 ac_cv_header_sys_wait_h=yes
7836 ac_cv_header_sys_wait_h=no
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7841 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7842 if test $ac_cv_header_sys_wait_h = yes; then
7844 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7898 cat >>confdefs.h <<_ACEOF
7899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 for ac_header in net/if.h
7909 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7910 #ifdef HAVE_SYS_SOCKET_H
7911 # include <sys/socket.h>
7916 if test "x$ac_cv_header_net_if_h" = xyes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_NET_IF_H 1
7926 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
7929 $as_echo "#define OSFC2 /**/" >>confdefs.h
7933 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
7936 $as_echo "#define OSFSIA /**/" >>confdefs.h
7940 if test "x$WITH_OPENSSL" = xyes; then
7943 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
7945 smart_try_dir="$openssl_lib_dir"
7948 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
7949 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
7952 old_CPPFLAGS="$CPPFLAGS"
7957 if test "x$smart_try_dir" != "x"; then
7958 for try in $smart_try_dir; do
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
7960 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
7961 LIBS="-lcrypto $old_LIBS"
7962 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 extern char DH_new();
7974 if ac_fn_c_try_link "$LINENO"; then :
7976 smart_lib="-lcrypto"
7977 smart_ldflags="-L$try -Wl,-rpath,$try"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979 $as_echo "yes" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7990 CPPFLAGS="$old_CPPFLAGS"
7993 if test "x$smart_lib" = "x"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
7995 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
7996 LIBS="-lcrypto $old_LIBS"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 extern char DH_new();
8008 if ac_fn_c_try_link "$LINENO"; then :
8010 smart_lib="-lcrypto"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8012 $as_echo "yes" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8023 if test "x$smart_lib" = "x"; then
8026 if test "x$LOCATE" != "x"; then
8028 file=libcrypto${libltdl_cv_shlibext}
8030 for x in `${LOCATE} $file 2>/dev/null`; do
8031 base=`echo $x | sed "s%/${file}%%"`
8032 if test "x$x" = "x$base"; then
8036 dir=`${DIRNAME} $x 2>/dev/null`
8037 exclude=`echo ${dir} | ${GREP} /home`
8038 if test "x$exclude" != "x"; then
8042 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8043 if test "x$already" = "x"; then
8049 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8053 if test "x$LOCATE" != "x"; then
8057 for x in `${LOCATE} $file 2>/dev/null`; do
8058 base=`echo $x | sed "s%/${file}%%"`
8059 if test "x$x" = "x$base"; then
8063 dir=`${DIRNAME} $x 2>/dev/null`
8064 exclude=`echo ${dir} | ${GREP} /home`
8065 if test "x$exclude" != "x"; then
8069 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8070 if test "x$already" = "x"; then
8076 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8079 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
8081 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
8082 LIBS="-lcrypto $old_LIBS"
8083 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 extern char DH_new();
8095 if ac_fn_c_try_link "$LINENO"; then :
8097 smart_lib="-lcrypto"
8098 smart_ldflags="-L$try -Wl,-rpath,$try"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100 $as_echo "yes" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8111 CPPFLAGS="$old_CPPFLAGS"
8114 if test "x$smart_lib" != "x"; then
8115 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8116 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8117 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8120 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
8122 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
8124 OPENSSL_LIBS="$smart_lib"
8125 OPENSSL_LDFLAGS="$smart_ldflags"
8129 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
8130 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
8133 old_CPPFLAGS="$CPPFLAGS"
8138 if test "x$smart_try_dir" != "x"; then
8139 for try in $smart_try_dir; do
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8141 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8142 LIBS="-lssl $old_LIBS"
8143 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 extern char SSL_new();
8155 if ac_fn_c_try_link "$LINENO"; then :
8158 smart_ldflags="-L$try -Wl,-rpath,$try"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160 $as_echo "yes" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8167 rm -f core conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8171 CPPFLAGS="$old_CPPFLAGS"
8174 if test "x$smart_lib" = "x"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8176 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8177 LIBS="-lssl $old_LIBS"
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 extern char SSL_new();
8189 if ac_fn_c_try_link "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8204 if test "x$smart_lib" = "x"; then
8207 if test "x$LOCATE" != "x"; then
8209 file=libssl${libltdl_cv_shlibext}
8211 for x in `${LOCATE} $file 2>/dev/null`; do
8212 base=`echo $x | sed "s%/${file}%%"`
8213 if test "x$x" = "x$base"; then
8217 dir=`${DIRNAME} $x 2>/dev/null`
8218 exclude=`echo ${dir} | ${GREP} /home`
8219 if test "x$exclude" != "x"; then
8223 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8224 if test "x$already" = "x"; then
8230 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8234 if test "x$LOCATE" != "x"; then
8238 for x in `${LOCATE} $file 2>/dev/null`; do
8239 base=`echo $x | sed "s%/${file}%%"`
8240 if test "x$x" = "x$base"; then
8244 dir=`${DIRNAME} $x 2>/dev/null`
8245 exclude=`echo ${dir} | ${GREP} /home`
8246 if test "x$exclude" != "x"; then
8250 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
8251 if test "x$already" = "x"; then
8257 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
8260 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl in $try" >&5
8262 $as_echo_n "checking for SSL_new in -lssl in $try... " >&6; }
8263 LIBS="-lssl $old_LIBS"
8264 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 extern char SSL_new();
8276 if ac_fn_c_try_link "$LINENO"; then :
8279 smart_ldflags="-L$try -Wl,-rpath,$try"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8281 $as_echo "yes" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8292 CPPFLAGS="$old_CPPFLAGS"
8295 if test "x$smart_lib" != "x"; then
8296 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
8297 LIBS="$smart_ldflags $smart_lib $old_LIBS"
8298 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
8301 if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
8302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8304 as_fn_error $? "failed linking to libssl. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8305 See \`config.log' for more details" "$LINENO" 5; }
8308 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8310 OPENSSL_LIBS="$OPENSSL_LIBS $smart_lib"
8312 if test "$OPENSSL_LDFLAGS" != "$smart_ldflags"; then
8313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8315 as_fn_error $? "\"inconsistent LDFLAGS between -lssl '$smart_ldflags' and -lcrypto '$OPENSSL_LDFLAGS'\"
8316 See \`config.log' for more details" "$LINENO" 5; }
8320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8322 as_fn_error $? "failed linking to libcrypto. Use --with-openssl-lib-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8323 See \`config.log' for more details" "$LINENO" 5; }
8326 smart_try_dir="$openssl_include_dir"
8329 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
8330 old_CPPFLAGS="$CPPFLAGS"
8332 smart_include_dir="/usr/local/include /opt/include"
8337 for _prefix in $smart_prefix ""; do
8338 for _dir in $smart_try_dir; do
8339 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8342 for _dir in $smart_include_dir; do
8343 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8347 if test "x$_smart_try_dir" != "x"; then
8348 for try in $_smart_try_dir; do
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8350 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8351 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8355 #include <openssl/ssl.h>
8364 if ac_fn_c_try_compile "$LINENO"; then :
8366 smart_include="-isystem $try"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8368 $as_echo "yes" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 CPPFLAGS="$old_CPPFLAGS"
8383 if test "x$smart_include" = "x"; then
8384 for _prefix in $smart_prefix; do
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/openssl/ssl.h" >&5
8386 $as_echo_n "checking for ${_prefix}/openssl/ssl.h... " >&6; }
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8391 #include <openssl/ssl.h>
8400 if ac_fn_c_try_compile "$LINENO"; then :
8402 smart_include="-isystem ${_prefix}/"
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404 $as_echo "yes" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 if test "x$smart_include" = "x"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h" >&5
8420 $as_echo_n "checking for openssl/ssl.h... " >&6; }
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8425 #include <openssl/ssl.h>
8434 if ac_fn_c_try_compile "$LINENO"; then :
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8438 $as_echo "yes" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 if test "x$smart_include" = "x"; then
8453 for prefix in $smart_prefix; do
8456 if test "x$LOCATE" != "x"; then
8458 file="${_prefix}/${1}"
8460 for x in `${LOCATE} $file 2>/dev/null`; do
8461 base=`echo $x | sed "s%/${file}%%"`
8462 if test "x$x" = "x$base"; then
8466 dir=`${DIRNAME} $x 2>/dev/null`
8467 exclude=`echo ${dir} | ${GREP} /home`
8468 if test "x$exclude" != "x"; then
8472 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8473 if test "x$already" = "x"; then
8479 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8484 if test "x$LOCATE" != "x"; then
8488 for x in `${LOCATE} $file 2>/dev/null`; do
8489 base=`echo $x | sed "s%/${file}%%"`
8490 if test "x$x" = "x$base"; then
8494 dir=`${DIRNAME} $x 2>/dev/null`
8495 exclude=`echo ${dir} | ${GREP} /home`
8496 if test "x$exclude" != "x"; then
8500 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8501 if test "x$already" = "x"; then
8507 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8510 for try in $_smart_include_dir; do
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $try" >&5
8512 $as_echo_n "checking for openssl/ssl.h in $try... " >&6; }
8513 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8517 #include <openssl/ssl.h>
8526 if ac_fn_c_try_compile "$LINENO"; then :
8528 smart_include="-isystem $try"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8530 $as_echo "yes" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 CPPFLAGS="$old_CPPFLAGS"
8545 if test "x$smart_include" != "x"; then
8546 eval "ac_cv_header_$ac_safe=yes"
8547 CPPFLAGS="$smart_include $old_CPPFLAGS"
8548 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8553 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
8555 $as_echo "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
8568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8571 cat >>confdefs.h <<_ACEOF
8572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 OPENSSL_CPPFLAGS="$smart_include"
8577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8579 as_fn_error $? "failed locating OpenSSL headers. Use --with-openssl-include-dir=<path>, or --with-openssl=no (builds without OpenSSL)
8580 See \`config.log' for more details" "$LINENO" 5; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
8589 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <openssl/crypto.h>
8593 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
8598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 $EGREP "yes" >/dev/null 2>&1; then :
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8602 $as_echo "yes" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8610 as_fn_error $? "OpenSSL version too old
8611 See \`config.log' for more details" "$LINENO" 5; }
8618 old_CPPFLAGS="$CPPFLAGS"
8619 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS"
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
8622 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
8623 if test "$cross_compiling" = yes; then :
8624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8626 as_fn_error $? "cannot run test program while cross compiling
8627 See \`config.log' for more details" "$LINENO" 5; }
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8633 #include <openssl/opensslv.h>
8634 #include <openssl/crypto.h>
8640 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
8641 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
8652 if ac_fn_c_try_run "$LINENO"; then :
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8655 $as_echo "yes" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8663 as_fn_error $? "OpenSSL library version does not match header version
8664 See \`config.log' for more details" "$LINENO" 5; }
8668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8669 conftest.$ac_objext conftest.beam conftest.$ac_ext
8672 CPPFLAGS="$old_CPPFLAGS"
8679 export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
8682 if test "x$PCAP_LIBS" = x; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
8684 $as_echo "$as_me: skipping test for pcap.h." >&6;}
8686 smart_try_dir="$pcap_include_dir"
8689 ac_safe=`echo "pcap.h" | sed 'y%./+-%__pm%'`
8690 old_CPPFLAGS="$CPPFLAGS"
8692 smart_include_dir="/usr/local/include /opt/include"
8697 for _prefix in $smart_prefix ""; do
8698 for _dir in $smart_try_dir; do
8699 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8702 for _dir in $smart_include_dir; do
8703 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8707 if test "x$_smart_try_dir" != "x"; then
8708 for try in $_smart_try_dir; do
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8710 $as_echo_n "checking for pcap.h in $try... " >&6; }
8711 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8724 if ac_fn_c_try_compile "$LINENO"; then :
8726 smart_include="-isystem $try"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8728 $as_echo "yes" >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 CPPFLAGS="$old_CPPFLAGS"
8743 if test "x$smart_include" = "x"; then
8744 for _prefix in $smart_prefix; do
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcap.h" >&5
8746 $as_echo_n "checking for ${_prefix}/pcap.h... " >&6; }
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8760 if ac_fn_c_try_compile "$LINENO"; then :
8762 smart_include="-isystem ${_prefix}/"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8764 $as_echo "yes" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 if test "x$smart_include" = "x"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h" >&5
8780 $as_echo_n "checking for pcap.h... " >&6; }
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8794 if ac_fn_c_try_compile "$LINENO"; then :
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 if test "x$smart_include" = "x"; then
8813 for prefix in $smart_prefix; do
8816 if test "x$LOCATE" != "x"; then
8818 file="${_prefix}/${1}"
8820 for x in `${LOCATE} $file 2>/dev/null`; do
8821 base=`echo $x | sed "s%/${file}%%"`
8822 if test "x$x" = "x$base"; then
8826 dir=`${DIRNAME} $x 2>/dev/null`
8827 exclude=`echo ${dir} | ${GREP} /home`
8828 if test "x$exclude" != "x"; then
8832 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8833 if test "x$already" = "x"; then
8839 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8844 if test "x$LOCATE" != "x"; then
8848 for x in `${LOCATE} $file 2>/dev/null`; do
8849 base=`echo $x | sed "s%/${file}%%"`
8850 if test "x$x" = "x$base"; then
8854 dir=`${DIRNAME} $x 2>/dev/null`
8855 exclude=`echo ${dir} | ${GREP} /home`
8856 if test "x$exclude" != "x"; then
8860 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
8861 if test "x$already" = "x"; then
8867 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
8870 for try in $_smart_include_dir; do
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $try" >&5
8872 $as_echo_n "checking for pcap.h in $try... " >&6; }
8873 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8886 if ac_fn_c_try_compile "$LINENO"; then :
8888 smart_include="-isystem $try"
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890 $as_echo "yes" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 CPPFLAGS="$old_CPPFLAGS"
8905 if test "x$smart_include" != "x"; then
8906 eval "ac_cv_header_$ac_safe=yes"
8907 CPPFLAGS="$smart_include $old_CPPFLAGS"
8908 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
8913 if test "x$ac_cv_header_pcap_h" == "xyes"; then
8915 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
8920 { $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
8921 $as_echo "$as_me: WARNING: pcap headers not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-include-dir=<path>." >&2;}
8925 if test "x$COLLECTDC_LIBS" = x; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for collectd/client.h." >&5
8927 $as_echo "$as_me: skipping test for collectd/client.h." >&6;}
8929 smart_try_dir="$collectdclient_include_dir"
8932 ac_safe=`echo "collectd/client.h" | sed 'y%./+-%__pm%'`
8933 old_CPPFLAGS="$CPPFLAGS"
8935 smart_include_dir="/usr/local/include /opt/include"
8940 for _prefix in $smart_prefix ""; do
8941 for _dir in $smart_try_dir; do
8942 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
8945 for _dir in $smart_include_dir; do
8946 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
8950 if test "x$_smart_try_dir" != "x"; then
8951 for try in $_smart_try_dir; do
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
8953 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
8954 CPPFLAGS="-isystem $try $old_CPPFLAGS"
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 #include <collectd/client.h>
8967 if ac_fn_c_try_compile "$LINENO"; then :
8969 smart_include="-isystem $try"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8971 $as_echo "yes" >&6; }
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 CPPFLAGS="$old_CPPFLAGS"
8986 if test "x$smart_include" = "x"; then
8987 for _prefix in $smart_prefix; do
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/collectd/client.h" >&5
8989 $as_echo_n "checking for ${_prefix}/collectd/client.h... " >&6; }
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8994 #include <collectd/client.h>
9003 if ac_fn_c_try_compile "$LINENO"; then :
9005 smart_include="-isystem ${_prefix}/"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9007 $as_echo "yes" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 if test "x$smart_include" = "x"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h" >&5
9023 $as_echo_n "checking for collectd/client.h... " >&6; }
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9028 #include <collectd/client.h>
9037 if ac_fn_c_try_compile "$LINENO"; then :
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9041 $as_echo "yes" >&6; }
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 if test "x$smart_include" = "x"; then
9056 for prefix in $smart_prefix; do
9059 if test "x$LOCATE" != "x"; then
9061 file="${_prefix}/${1}"
9063 for x in `${LOCATE} $file 2>/dev/null`; do
9064 base=`echo $x | sed "s%/${file}%%"`
9065 if test "x$x" = "x$base"; then
9069 dir=`${DIRNAME} $x 2>/dev/null`
9070 exclude=`echo ${dir} | ${GREP} /home`
9071 if test "x$exclude" != "x"; then
9075 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9076 if test "x$already" = "x"; then
9082 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9087 if test "x$LOCATE" != "x"; then
9089 file=collectd/client.h
9091 for x in `${LOCATE} $file 2>/dev/null`; do
9092 base=`echo $x | sed "s%/${file}%%"`
9093 if test "x$x" = "x$base"; then
9097 dir=`${DIRNAME} $x 2>/dev/null`
9098 exclude=`echo ${dir} | ${GREP} /home`
9099 if test "x$exclude" != "x"; then
9103 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9104 if test "x$already" = "x"; then
9110 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9113 for try in $_smart_include_dir; do
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collectd/client.h in $try" >&5
9115 $as_echo_n "checking for collectd/client.h in $try... " >&6; }
9116 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9120 #include <collectd/client.h>
9129 if ac_fn_c_try_compile "$LINENO"; then :
9131 smart_include="-isystem $try"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9133 $as_echo "yes" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 CPPFLAGS="$old_CPPFLAGS"
9148 if test "x$smart_include" != "x"; then
9149 eval "ac_cv_header_$ac_safe=yes"
9150 CPPFLAGS="$smart_include $old_CPPFLAGS"
9151 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9156 if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
9158 $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&5
9164 $as_echo "$as_me: WARNING: collectdclient headers not found. Use --with-collectdclient-include-dir=<path>." >&2;}
9168 if test "x$HAVE_LIBCAP" = x; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for cap.h." >&5
9170 $as_echo "$as_me: skipping test for cap.h." >&6;}
9172 smart_try_dir="$cap_include_dir"
9175 ac_safe=`echo "sys/capability.h" | sed 'y%./+-%__pm%'`
9176 old_CPPFLAGS="$CPPFLAGS"
9178 smart_include_dir="/usr/local/include /opt/include"
9183 for _prefix in $smart_prefix ""; do
9184 for _dir in $smart_try_dir; do
9185 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
9188 for _dir in $smart_include_dir; do
9189 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
9193 if test "x$_smart_try_dir" != "x"; then
9194 for try in $_smart_try_dir; do
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9196 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9197 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 #include <sys/capability.h>
9210 if ac_fn_c_try_compile "$LINENO"; then :
9212 smart_include="-isystem $try"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9214 $as_echo "yes" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 CPPFLAGS="$old_CPPFLAGS"
9229 if test "x$smart_include" = "x"; then
9230 for _prefix in $smart_prefix; do
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sys/capability.h" >&5
9232 $as_echo_n "checking for ${_prefix}/sys/capability.h... " >&6; }
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9237 #include <sys/capability.h>
9246 if ac_fn_c_try_compile "$LINENO"; then :
9248 smart_include="-isystem ${_prefix}/"
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9250 $as_echo "yes" >&6; }
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 if test "x$smart_include" = "x"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h" >&5
9266 $as_echo_n "checking for sys/capability.h... " >&6; }
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9271 #include <sys/capability.h>
9280 if ac_fn_c_try_compile "$LINENO"; then :
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9284 $as_echo "yes" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 if test "x$smart_include" = "x"; then
9299 for prefix in $smart_prefix; do
9302 if test "x$LOCATE" != "x"; then
9304 file="${_prefix}/${1}"
9306 for x in `${LOCATE} $file 2>/dev/null`; do
9307 base=`echo $x | sed "s%/${file}%%"`
9308 if test "x$x" = "x$base"; then
9312 dir=`${DIRNAME} $x 2>/dev/null`
9313 exclude=`echo ${dir} | ${GREP} /home`
9314 if test "x$exclude" != "x"; then
9318 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9319 if test "x$already" = "x"; then
9325 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9330 if test "x$LOCATE" != "x"; then
9332 file=sys/capability.h
9334 for x in `${LOCATE} $file 2>/dev/null`; do
9335 base=`echo $x | sed "s%/${file}%%"`
9336 if test "x$x" = "x$base"; then
9340 dir=`${DIRNAME} $x 2>/dev/null`
9341 exclude=`echo ${dir} | ${GREP} /home`
9342 if test "x$exclude" != "x"; then
9346 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
9347 if test "x$already" = "x"; then
9353 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
9356 for try in $_smart_include_dir; do
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/capability.h in $try" >&5
9358 $as_echo_n "checking for sys/capability.h in $try... " >&6; }
9359 CPPFLAGS="-isystem $try $old_CPPFLAGS"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 #include <sys/capability.h>
9372 if ac_fn_c_try_compile "$LINENO"; then :
9374 smart_include="-isystem $try"
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9376 $as_echo "yes" >&6; }
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 CPPFLAGS="$old_CPPFLAGS"
9391 if test "x$smart_include" != "x"; then
9392 eval "ac_cv_header_$ac_safe=yes"
9393 CPPFLAGS="$smart_include $old_CPPFLAGS"
9394 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
9399 if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
9401 $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&5
9405 $as_echo "$as_me: WARNING: cap headers not found, will not perform debugger checks. Use --with-cap-include-dir=<path>." >&2;}
9410 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9411 if test "x$ac_cv_type_off_t" = xyes; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define off_t long int
9421 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9422 if test "x$ac_cv_type_pid_t" = xyes; then :
9426 cat >>confdefs.h <<_ACEOF
9432 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9433 if test "x$ac_cv_type_size_t" = xyes; then :
9437 cat >>confdefs.h <<_ACEOF
9438 #define size_t unsigned int
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9444 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9445 if ${ac_cv_type_uid_t+:} false; then :
9446 $as_echo_n "(cached) " >&6
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <sys/types.h>
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 $EGREP "uid_t" >/dev/null 2>&1; then :
9455 ac_cv_type_uid_t=yes
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9463 $as_echo "$ac_cv_type_uid_t" >&6; }
9464 if test $ac_cv_type_uid_t = no; then
9466 $as_echo "#define uid_t int" >>confdefs.h
9469 $as_echo "#define gid_t int" >>confdefs.h
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
9476 $as_echo_n "checking for socklen_t... " >&6; }
9477 if ${ac_cv_type_socklen_t+:} false; then :
9478 $as_echo_n "(cached) " >&6
9480 ac_cv_type_socklen_t=no
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #ifdef HAVE_SYS_TYPES_H
9484 # include <sys/types.h>
9487 #ifdef HAVE_SYS_SOCKET_H
9488 # include <sys/socket.h>
9499 if ac_fn_c_try_compile "$LINENO"; then :
9500 ac_cv_type_socklen_t=yes
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
9507 $as_echo "$ac_cv_type_socklen_t" >&6; }
9509 if test "$ac_cv_type_socklen_t" != "yes"; then
9511 $as_echo "#define socklen_t int" >>confdefs.h
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
9518 $as_echo_n "checking for uint8_t... " >&6; }
9519 if ${ac_cv_type_uint8_t+:} false; then :
9520 $as_echo_n "(cached) " >&6
9522 ac_cv_type_uint8_t=no
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 #ifdef HAVE_INTTYPES_H
9526 # include <inttypes.h>
9529 #ifdef HAVE_STDINT_H
9530 # include <stdint.h>
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542 ac_cv_type_uint8_t=yes
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
9549 $as_echo "$ac_cv_type_uint8_t" >&6; }
9551 if test "$ac_cv_type_uint8_t" != "yes"; then
9553 $as_echo "#define uint8_t unsigned char" >>confdefs.h
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
9560 $as_echo_n "checking for uint16_t... " >&6; }
9561 if ${ac_cv_type_uint16_t+:} false; then :
9562 $as_echo_n "(cached) " >&6
9564 ac_cv_type_uint16_t=no
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 #ifdef HAVE_INTTYPES_H
9568 # include <inttypes.h>
9571 #ifdef HAVE_STDINT_H
9572 # include <stdint.h>
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 ac_cv_type_uint16_t=yes
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
9591 $as_echo "$ac_cv_type_uint16_t" >&6; }
9593 if test "$ac_cv_type_uint16_t" != "yes"; then
9595 $as_echo "#define uint16_t unsigned short" >>confdefs.h
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
9602 $as_echo_n "checking for uint32_t... " >&6; }
9603 if ${ac_cv_type_uint32_t+:} false; then :
9604 $as_echo_n "(cached) " >&6
9606 ac_cv_type_uint32_t=no
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #ifdef HAVE_INTTYPES_H
9610 # include <inttypes.h>
9613 #ifdef HAVE_STDINT_H
9614 # include <stdint.h>
9625 if ac_fn_c_try_compile "$LINENO"; then :
9626 ac_cv_type_uint32_t=yes
9628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
9633 $as_echo "$ac_cv_type_uint32_t" >&6; }
9635 if test "$ac_cv_type_uint32_t" != "yes"; then
9637 $as_echo "#define uint32_t unsigned int" >>confdefs.h
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
9644 $as_echo_n "checking for uint64_t... " >&6; }
9645 if ${ac_cv_type_uint64_t+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 ac_cv_type_uint64_t=no
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 #ifdef HAVE_INTTYPES_H
9652 # include <inttypes.h>
9655 #ifdef HAVE_STDINT_H
9656 # include <stdint.h>
9667 if ac_fn_c_try_compile "$LINENO"; then :
9668 ac_cv_type_uint64_t=yes
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
9675 $as_echo "$ac_cv_type_uint64_t" >&6; }
9677 if test "$ac_cv_type_uint64_t" != "yes"; then
9679 $as_echo "#define uint64_t unsigned long long" >>confdefs.h
9684 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
9685 if test "x$ac_cv_type___uint128_t" = xyes; then :
9687 $as_echo "#define HAVE___UINT128_T 1" >>confdefs.h
9692 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "
9693 #ifdef HAVE_INTTYPES_H
9694 # include <inttypes.h>
9697 #ifdef HAVE_STDINT_H
9698 # include <stdint.h>
9703 if test "x$ac_cv_type_uint128_t" = xyes; then :
9705 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
9710 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
9711 #ifdef HAVE_NETINET_IN_H
9712 # include <netinet/in.h>
9717 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
9719 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
9724 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9725 #ifdef HAVE_NETINET_IN_H
9726 # include <netinet/in.h>
9729 #ifdef HAVE_SYS_SOCKET_H
9730 # include <sys/socket.h>
9734 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9736 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
9741 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
9742 #ifdef HAVE_NETINET_IN_H
9743 # include <netinet/in.h>
9747 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
9749 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
9754 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
9755 #ifdef HAVE_SYS_TYPES_H
9756 # include <sys/types.h>
9759 #ifdef HAVE_SYS_SOCKET_H
9760 # include <sys/socket.h>
9769 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
9771 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_t is defined" >&5
9777 $as_echo_n "checking if sig_t is defined... " >&6; }
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9781 #ifdef HAVE_SIGNAL_H
9782 # include <signal.h>
9797 if ac_fn_c_try_link "$LINENO"; then :
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9800 $as_echo "yes" >&6; }
9802 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9854 cat >>confdefs.h <<_ACEOF
9855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9863 $as_echo_n "checking return type of signal handlers... " >&6; }
9864 if ${ac_cv_type_signal+:} false; then :
9865 $as_echo_n "(cached) " >&6
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 #include <sys/types.h>
9875 return *(signal (0, 0)) (0) == 1;
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881 ac_cv_type_signal=int
9883 ac_cv_type_signal=void
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9888 $as_echo "$ac_cv_type_signal" >&6; }
9890 cat >>confdefs.h <<_ACEOF
9891 #define RETSIGTYPE $ac_cv_type_signal
9896 if test "x$ac_cv_header_utmpx_h" = "xyes"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
9899 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9906 #ifdef HAVE_STDDEF_H
9910 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9916 int foo = offsetof(struct utmpx, ut_xtime)
9921 if ac_fn_c_try_compile "$LINENO"; then :
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
9929 if test "x$has_element" != "x"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9931 $as_echo "yes" >&6; }
9932 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
9939 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"; then
9941 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
9948 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9954 #include <netinet/in.h>
9955 #ifdef HAVE_STDDEF_H
9959 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
9965 int foo = offsetof(struct in_pktinfo, ipi_addr)
9970 if ac_fn_c_try_compile "$LINENO"; then :
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
9978 if test "x$has_element" != "x"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9980 $as_echo "yes" >&6; }
9981 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
9988 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"; then
9990 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
9996 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 #include <netinet/in.h>
10003 #ifdef HAVE_STDDEF_H
10004 #include <stddef.h>
10007 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
10013 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
10018 if ac_fn_c_try_compile "$LINENO"; then :
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
10026 if test "x$has_element" != "x"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10028 $as_echo "yes" >&6; }
10029 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
10036 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"; then
10038 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonll is defined" >&5
10043 $as_echo_n "checking if htonll is defined... " >&6; }
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 #include <sys/types.h>
10048 #include <netinet/in.h>
10061 if ac_fn_c_try_link "$LINENO"; then :
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10064 $as_echo "yes" >&6; }
10066 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if htonlll is defined" >&5
10080 $as_echo_n "checking if htonlll is defined... " >&6; }
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 #include <sys/types.h>
10085 #include <netinet/in.h>
10098 if ac_fn_c_try_link "$LINENO"; then :
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; }
10103 $as_echo "#define HAVE_HTONLLL 1" >>confdefs.h
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10113 rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10118 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10119 if ${ac_cv_c_const+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10129 #ifndef __cplusplus
10130 /* Ultrix mips cc rejects this sort of thing. */
10131 typedef int charset[2];
10132 const charset cs = { 0, 0 };
10133 /* SunOS 4.1.1 cc rejects this. */
10134 char const *const *pcpcc;
10136 /* NEC SVR4.0.2 mips cc rejects this. */
10137 struct point {int x, y;};
10138 static struct point const zero = {0,0};
10139 /* AIX XL C 1.02.0.0 rejects this.
10140 It does not let you subtract one const X* pointer from another in
10141 an arm of an if-expression whose if-part is not a constant
10143 const char *g = "string";
10144 pcpcc = &g + (g ? g-g : 0);
10145 /* HPUX 7.0 cc rejects these. */
10147 ppc = (char**) pcpcc;
10148 pcpcc = (char const *const *) ppc;
10149 { /* SCO 3.2v4 cc rejects this sort of thing. */
10152 char const *s = 0 ? (char *) 0 : (char const *) 0;
10157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10158 int x[] = {25, 17};
10159 const int *foo = &x[0];
10162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10163 typedef const int *iptr;
10167 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10169 struct s { int j; const int *ap[3]; } bx;
10170 struct s *b = &bx; b->j = 5;
10172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10173 const int foo = 10;
10174 if (!foo) return 0;
10176 return !cs[0] && !zero.x;
10183 if ac_fn_c_try_compile "$LINENO"; then :
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10191 $as_echo "$ac_cv_c_const" >&6; }
10192 if test $ac_cv_c_const = no; then
10194 $as_echo "#define const /**/" >>confdefs.h
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
10200 $as_echo_n "checking type of OS... " >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
10203 $as_echo "$OS" >&6; }
10204 if test "$OS" = "OS/2"; then
10211 if test "x$developer" = "xyes"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting additional developer CFLAGS" >&5
10213 $as_echo "$as_me: Setting additional developer CFLAGS" >&6;}
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the compiler flag \"-Wdocumentation\"" >&5
10217 $as_echo_n "checking for the compiler flag \"-Wdocumentation\"... " >&6; }
10218 if ${ax_cv_cc_wdocumentation_flag+:} false; then :
10219 $as_echo_n "(cached) " >&6
10223 CFLAGS_SAVED=$CFLAGS
10224 CFLAGS="$CFLAGS -Werror -Wdocumentation"
10227 ac_cpp='$CPP $CPPFLAGS'
10228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10243 if ac_fn_c_try_compile "$LINENO"; then :
10244 ax_cv_cc_wdocumentation_flag="yes"
10246 ax_cv_cc_wdocumentation_flag="no"
10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250 ac_cpp='$CPP $CPPFLAGS'
10251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10256 CFLAGS="$CFLAGS_SAVED"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cc_wdocumentation_flag" >&5
10260 $as_echo "$ax_cv_cc_wdocumentation_flag" >&6; }
10262 if test "x$ax_cv_cc_wdocumentation_flag" = "xyes"; then
10263 devflags="-Wdocumentation"
10266 if test "x$GCC" = "xyes"; then
10267 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"
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: Developer CFLAGS are \"$devflags\"" >&5
10272 $as_echo "$as_me: Developer CFLAGS are \"$devflags\"" >&6;}
10274 CFLAGS="$CFLAGS $devflags"
10275 if test "x$EXPERIMENTAL" != "xno"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&5
10277 $as_echo "$as_me: is developer build, enabling experimental modules implicitly, disable with --without-experimental-modules" >&6;}
10282 CFLAGS="$CFLAGS -DNDEBUG"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
10287 $as_echo_n "checking if building with -DNDEBUG... " >&6; }
10288 if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10292 $as_echo "#define WITH_NDEBUG 1" >>confdefs.h
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10299 export EXPERIMENTAL
10301 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
10302 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
10304 cat >>confdefs.h <<_ACEOF
10305 #define RADIUSD_VERSION_COMMIT ${RADIUSD_VERSION_COMMIT}
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support in compiler" >&5
10312 $as_echo_n "checking for __thread support in compiler... " >&6; }
10313 if test "$cross_compiling" = yes; then :
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10319 static __thread int val;
10320 int main(int argc, char **argv) {
10327 if ac_fn_c_try_run "$LINENO"; then :
10332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10333 conftest.$ac_objext conftest.beam conftest.$ac_ext
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10337 $as_echo "$have_tls" >&6; }
10338 if test "x$have_tls" = "xyes"; then
10340 $as_echo "#define TLS_STORAGE_CLASS __thread" >>confdefs.h
10344 if test "x$have_tls" = "xno"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread) support in compiler" >&5
10346 $as_echo_n "checking for __declspec(thread) support in compiler... " >&6; }
10347 if test "$cross_compiling" = yes; then :
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10353 static _Thread_local int val;
10354 int main(int argc, char **argv) {
10361 if ac_fn_c_try_run "$LINENO"; then :
10366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10367 conftest.$ac_objext conftest.beam conftest.$ac_ext
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10371 $as_echo "$have_tls" >&6; }
10372 if test "x$have_tls" = "xyes"; then
10374 $as_echo "#define TLS_STORAGE_CLASS __declspec(thread)" >>confdefs.h
10378 if test "x$have_tls" = "xno"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Thread_local support in compiler" >&5
10380 $as_echo_n "checking for _Thread_local support in compiler... " >&6; }
10381 if test "$cross_compiling" = yes; then :
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 static _Thread_local int val;
10388 int main(int argc, char **argv) {
10395 if ac_fn_c_try_run "$LINENO"; then :
10400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10401 conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
10405 $as_echo "$have_tls" >&6; }
10406 if test "x$have_tls" = "xyes"; then
10408 $as_echo "#define TLS_STORAGE_CLASS _Thread_local" >>confdefs.h
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr support in compiler" >&5
10415 $as_echo_n "checking for __builtin_choose_expr support in compiler... " >&6; }
10416 if test "$cross_compiling" = yes; then :
10417 have_builtin_choose_expr=no
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10422 int main(int argc, char **argv) {
10423 return __builtin_choose_expr(0, 1, 0);
10428 if ac_fn_c_try_run "$LINENO"; then :
10429 have_builtin_choose_expr=yes
10431 have_builtin_choose_expr=no
10433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10434 conftest.$ac_objext conftest.beam conftest.$ac_ext
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_choose_expr" >&5
10438 $as_echo "$have_builtin_choose_expr" >&6; }
10439 if test "x$have_builtin_choose_expr" = "xyes"; then
10441 $as_echo "#define HAVE_BUILTIN_CHOOSE_EXPR 1" >>confdefs.h
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p support in compiler" >&5
10447 $as_echo_n "checking for __builtin_types_compatible_p support in compiler... " >&6; }
10448 if test "$cross_compiling" = yes; then :
10449 have_builtin_types_compatible_p=no
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10454 int main(int argc, char **argv) {
10455 return !(__builtin_types_compatible_p(char *, char *));
10460 if ac_fn_c_try_run "$LINENO"; then :
10461 have_builtin_types_compatible_p=yes
10463 have_builtin_types_compatible_p=no
10465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10466 conftest.$ac_objext conftest.beam conftest.$ac_ext
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_types_compatible_p" >&5
10470 $as_echo "$have_builtin_types_compatible_p" >&6; }
10471 if test "x$have_builtin_types_compatible_p" = "xyes"; then
10473 $as_echo "#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64 support in compiler" >&5
10479 $as_echo_n "checking for __builtin_bswap64 support in compiler... " >&6; }
10480 if test "$cross_compiling" = yes; then :
10481 have_builtin_bswap64=no
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10486 int main(int argc, char **argv) {
10487 return (__builtin_bswap64(0));
10492 if ac_fn_c_try_run "$LINENO"; then :
10493 have_builtin_bswap64=yes
10495 have_builtin_bswap64=no
10497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10498 conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_bswap64" >&5
10502 $as_echo "$have_builtin_bswap64" >&6; }
10503 if test "x$have_builtin_bswap64" = "xyes"; then
10505 $as_echo "#define HAVE_BUILTIN_BSWAP_64 1" >>confdefs.h
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_set_memlimit in -ltalloc" >&5
10512 $as_echo_n "checking for talloc_set_memlimit in -ltalloc... " >&6; }
10513 if ${ac_cv_lib_talloc_talloc_set_memlimit+:} false; then :
10514 $as_echo_n "(cached) " >&6
10516 ac_check_lib_save_LIBS=$LIBS
10517 LIBS="-ltalloc $LIBS"
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10527 char talloc_set_memlimit ();
10531 return talloc_set_memlimit ();
10536 if ac_fn_c_try_link "$LINENO"; then :
10537 ac_cv_lib_talloc_talloc_set_memlimit=yes
10539 ac_cv_lib_talloc_talloc_set_memlimit=no
10541 rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_set_memlimit" >&5
10546 $as_echo "$ac_cv_lib_talloc_talloc_set_memlimit" >&6; }
10547 if test "x$ac_cv_lib_talloc_talloc_set_memlimit" = xyes; then :
10550 $as_echo "#define HAVE_TALLOC_SET_MEMLIMIT 1" >>confdefs.h
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10558 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10559 if ${ac_cv_lib_crypt_crypt+:} false; then :
10560 $as_echo_n "(cached) " >&6
10562 ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-lcrypt $LIBS"
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 ac_cv_lib_crypt_crypt=yes
10585 ac_cv_lib_crypt_crypt=no
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_lib_save_LIBS
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10592 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10593 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10599 if test "$CRYPTLIB" != ""; then
10601 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10604 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
10605 if test "x$ac_cv_func_crypt" = xyes; then :
10607 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
10614 $as_echo_n "checking for setkey in -lcipher... " >&6; }
10615 if ${ac_cv_lib_cipher_setkey+:} false; then :
10616 $as_echo_n "(cached) " >&6
10618 ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-lcipher $LIBS"
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 ac_cv_lib_cipher_setkey=yes
10641 ac_cv_lib_cipher_setkey=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
10648 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
10649 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
10650 CRYPTLIB="${CRYPTLIB} -lcipher"
10658 # Check whether --with-execinfo-lib-dir was given.
10659 if test "${with_execinfo_lib_dir+set}" = set; then :
10660 withval=$with_execinfo_lib_dir; case "$withval" in
10662 as_fn_error $? "Need execinfo-lib-dir" "$LINENO" 5
10667 execinfo_lib_dir="$withval"
10674 execinfo_include_dir=
10676 # Check whether --with-execinfo-include-dir was given.
10677 if test "${with_execinfo_include_dir+set}" = set; then :
10678 withval=$with_execinfo_include_dir; case "$withval" in
10680 as_fn_error $? "Need execinfo-include-dir" "$LINENO" 5
10685 execinfo_include_dir="$withval"
10692 smart_try_dir=$execinfo_include_dir
10695 ac_safe=`echo "execinfo.h" | sed 'y%./+-%__pm%'`
10696 old_CPPFLAGS="$CPPFLAGS"
10698 smart_include_dir="/usr/local/include /opt/include"
10701 _smart_include_dir=
10703 for _prefix in $smart_prefix ""; do
10704 for _dir in $smart_try_dir; do
10705 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
10708 for _dir in $smart_include_dir; do
10709 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
10713 if test "x$_smart_try_dir" != "x"; then
10714 for try in $_smart_try_dir; do
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10716 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10717 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 #include <execinfo.h>
10730 if ac_fn_c_try_compile "$LINENO"; then :
10732 smart_include="-isystem $try"
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; }
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 CPPFLAGS="$old_CPPFLAGS"
10749 if test "x$smart_include" = "x"; then
10750 for _prefix in $smart_prefix; do
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/execinfo.h" >&5
10752 $as_echo_n "checking for ${_prefix}/execinfo.h... " >&6; }
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 #include <execinfo.h>
10766 if ac_fn_c_try_compile "$LINENO"; then :
10768 smart_include="-isystem ${_prefix}/"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10784 if test "x$smart_include" = "x"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h" >&5
10786 $as_echo_n "checking for execinfo.h... " >&6; }
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10791 #include <execinfo.h>
10800 if ac_fn_c_try_compile "$LINENO"; then :
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 if test "x$smart_include" = "x"; then
10819 for prefix in $smart_prefix; do
10822 if test "x$LOCATE" != "x"; then
10824 file="${_prefix}/${1}"
10826 for x in `${LOCATE} $file 2>/dev/null`; do
10827 base=`echo $x | sed "s%/${file}%%"`
10828 if test "x$x" = "x$base"; then
10832 dir=`${DIRNAME} $x 2>/dev/null`
10833 exclude=`echo ${dir} | ${GREP} /home`
10834 if test "x$exclude" != "x"; then
10838 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10839 if test "x$already" = "x"; then
10845 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10850 if test "x$LOCATE" != "x"; then
10854 for x in `${LOCATE} $file 2>/dev/null`; do
10855 base=`echo $x | sed "s%/${file}%%"`
10856 if test "x$x" = "x$base"; then
10860 dir=`${DIRNAME} $x 2>/dev/null`
10861 exclude=`echo ${dir} | ${GREP} /home`
10862 if test "x$exclude" != "x"; then
10866 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
10867 if test "x$already" = "x"; then
10873 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
10876 for try in $_smart_include_dir; do
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execinfo.h in $try" >&5
10878 $as_echo_n "checking for execinfo.h in $try... " >&6; }
10879 CPPFLAGS="-isystem $try $old_CPPFLAGS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 #include <execinfo.h>
10892 if ac_fn_c_try_compile "$LINENO"; then :
10894 smart_include="-isystem $try"
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896 $as_echo "yes" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 CPPFLAGS="$old_CPPFLAGS"
10911 if test "x$smart_include" != "x"; then
10912 eval "ac_cv_header_$ac_safe=yes"
10913 CPPFLAGS="$smart_include $old_CPPFLAGS"
10914 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
10919 if test "x$ac_cv_header_execinfo_h" = "xyes"; then
10920 smart_try_dir=$execinfo_lib_dir
10923 sm_lib_safe=`echo "execinfo" | sed 'y%./+-%__p_%'`
10924 sm_func_safe=`echo "backtrace_symbols" | sed 'y%./+-%__p_%'`
10927 old_CPPFLAGS="$CPPFLAGS"
10932 if test "x$smart_try_dir" != "x"; then
10933 for try in $smart_try_dir; do
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
10935 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
10936 LIBS="-lexecinfo $old_LIBS"
10937 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 extern char backtrace_symbols();
10944 backtrace_symbols()
10949 if ac_fn_c_try_link "$LINENO"; then :
10951 smart_lib="-lexecinfo"
10952 smart_ldflags="-L$try -Wl,-rpath,$try"
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954 $as_echo "yes" >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10965 CPPFLAGS="$old_CPPFLAGS"
10968 if test "x$smart_lib" = "x"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
10970 $as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
10971 LIBS="-lexecinfo $old_LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974 extern char backtrace_symbols();
10978 backtrace_symbols()
10983 if ac_fn_c_try_link "$LINENO"; then :
10985 smart_lib="-lexecinfo"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987 $as_echo "yes" >&6; }
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10998 if test "x$smart_lib" = "x"; then
11001 if test "x$LOCATE" != "x"; then
11003 file=libexecinfo${libltdl_cv_shlibext}
11005 for x in `${LOCATE} $file 2>/dev/null`; do
11006 base=`echo $x | sed "s%/${file}%%"`
11007 if test "x$x" = "x$base"; then
11011 dir=`${DIRNAME} $x 2>/dev/null`
11012 exclude=`echo ${dir} | ${GREP} /home`
11013 if test "x$exclude" != "x"; then
11017 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11018 if test "x$already" = "x"; then
11024 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11028 if test "x$LOCATE" != "x"; then
11032 for x in `${LOCATE} $file 2>/dev/null`; do
11033 base=`echo $x | sed "s%/${file}%%"`
11034 if test "x$x" = "x$base"; then
11038 dir=`${DIRNAME} $x 2>/dev/null`
11039 exclude=`echo ${dir} | ${GREP} /home`
11040 if test "x$exclude" != "x"; then
11044 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11045 if test "x$already" = "x"; then
11051 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11054 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo in $try" >&5
11056 $as_echo_n "checking for backtrace_symbols in -lexecinfo in $try... " >&6; }
11057 LIBS="-lexecinfo $old_LIBS"
11058 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 extern char backtrace_symbols();
11065 backtrace_symbols()
11070 if ac_fn_c_try_link "$LINENO"; then :
11072 smart_lib="-lexecinfo"
11073 smart_ldflags="-L$try -Wl,-rpath,$try"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11075 $as_echo "yes" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11082 rm -f core conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11086 CPPFLAGS="$old_CPPFLAGS"
11089 if test "x$smart_lib" != "x"; then
11090 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11091 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11092 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11095 if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if execinfo provided as part of libc" >&5
11097 $as_echo_n "checking if execinfo provided as part of libc... " >&6; }
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #include <execinfo.h>
11108 backtrace_symbols(&sym, sizeof(sym))
11113 if ac_fn_c_try_link "$LINENO"; then :
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116 $as_echo "yes" >&6; }
11117 ac_cv_lib_execinfo_backtrace_symbols="yes"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11130 if test "x$ac_cv_lib_execinfo_backtrace_symbols" = "xyes"; then
11132 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
11139 # Check whether --with-pcre-lib-dir was given.
11140 if test "${with_pcre_lib_dir+set}" = set; then :
11141 withval=$with_pcre_lib_dir; case "$withval" in
11143 as_fn_error $? "Need pcre-lib-dir" "$LINENO" 5
11148 pcre_lib_dir="$withval"
11157 # Check whether --with-pcre-include-dir was given.
11158 if test "${with_pcre_include_dir+set}" = set; then :
11159 withval=$with_pcre_include_dir; case "$withval" in
11161 as_fn_error $? "Need pcre-include-dir" "$LINENO" 5
11166 pcre_include_dir="$withval"
11175 # Check whether --with-regex was given.
11176 if test "${with_regex+set}" = set; then :
11177 withval=$with_regex; case "$withval" in
11188 if test "x$REGEX" = "x"; then
11189 smart_try_dir=$pcre_include_dir
11192 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__pm%'`
11193 old_CPPFLAGS="$CPPFLAGS"
11195 smart_include_dir="/usr/local/include /opt/include"
11198 _smart_include_dir=
11200 for _prefix in $smart_prefix ""; do
11201 for _dir in $smart_try_dir; do
11202 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11205 for _dir in $smart_include_dir; do
11206 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11210 if test "x$_smart_try_dir" != "x"; then
11211 for try in $_smart_try_dir; do
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
11213 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
11214 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 #include <pcreposix.h>
11227 if ac_fn_c_try_compile "$LINENO"; then :
11229 smart_include="-isystem $try"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231 $as_echo "yes" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 CPPFLAGS="$old_CPPFLAGS"
11246 if test "x$smart_include" = "x"; then
11247 for _prefix in $smart_prefix; do
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/pcreposix.h" >&5
11249 $as_echo_n "checking for ${_prefix}/pcreposix.h... " >&6; }
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 #include <pcreposix.h>
11263 if ac_fn_c_try_compile "$LINENO"; then :
11265 smart_include="-isystem ${_prefix}/"
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 if test "x$smart_include" = "x"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h" >&5
11283 $as_echo_n "checking for pcreposix.h... " >&6; }
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11288 #include <pcreposix.h>
11297 if ac_fn_c_try_compile "$LINENO"; then :
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; }
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 if test "x$smart_include" = "x"; then
11316 for prefix in $smart_prefix; do
11319 if test "x$LOCATE" != "x"; then
11321 file="${_prefix}/${1}"
11323 for x in `${LOCATE} $file 2>/dev/null`; do
11324 base=`echo $x | sed "s%/${file}%%"`
11325 if test "x$x" = "x$base"; then
11329 dir=`${DIRNAME} $x 2>/dev/null`
11330 exclude=`echo ${dir} | ${GREP} /home`
11331 if test "x$exclude" != "x"; then
11335 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11336 if test "x$already" = "x"; then
11342 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11347 if test "x$LOCATE" != "x"; then
11351 for x in `${LOCATE} $file 2>/dev/null`; do
11352 base=`echo $x | sed "s%/${file}%%"`
11353 if test "x$x" = "x$base"; then
11357 dir=`${DIRNAME} $x 2>/dev/null`
11358 exclude=`echo ${dir} | ${GREP} /home`
11359 if test "x$exclude" != "x"; then
11363 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11364 if test "x$already" = "x"; then
11370 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11373 for try in $_smart_include_dir; do
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcreposix.h in $try" >&5
11375 $as_echo_n "checking for pcreposix.h in $try... " >&6; }
11376 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 #include <pcreposix.h>
11389 if ac_fn_c_try_compile "$LINENO"; then :
11391 smart_include="-isystem $try"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393 $as_echo "yes" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 CPPFLAGS="$old_CPPFLAGS"
11408 if test "x$smart_include" != "x"; then
11409 eval "ac_cv_header_$ac_safe=yes"
11410 CPPFLAGS="$smart_include $old_CPPFLAGS"
11411 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11416 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
11417 smart_try_dir=$pcre_lib_dir
11420 sm_lib_safe=`echo "pcre" | sed 'y%./+-%__p_%'`
11421 sm_func_safe=`echo "pcre_compile" | sed 'y%./+-%__p_%'`
11424 old_CPPFLAGS="$CPPFLAGS"
11429 if test "x$smart_try_dir" != "x"; then
11430 for try in $smart_try_dir; do
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11432 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11433 LIBS="-lpcre $old_LIBS"
11434 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437 extern char pcre_compile();
11446 if ac_fn_c_try_link "$LINENO"; then :
11449 smart_ldflags="-L$try -Wl,-rpath,$try"
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11451 $as_echo "yes" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11462 CPPFLAGS="$old_CPPFLAGS"
11465 if test "x$smart_lib" = "x"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
11467 $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
11468 LIBS="-lpcre $old_LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471 extern char pcre_compile();
11480 if ac_fn_c_try_link "$LINENO"; then :
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484 $as_echo "yes" >&6; }
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11495 if test "x$smart_lib" = "x"; then
11498 if test "x$LOCATE" != "x"; then
11500 file=libpcre${libltdl_cv_shlibext}
11502 for x in `${LOCATE} $file 2>/dev/null`; do
11503 base=`echo $x | sed "s%/${file}%%"`
11504 if test "x$x" = "x$base"; then
11508 dir=`${DIRNAME} $x 2>/dev/null`
11509 exclude=`echo ${dir} | ${GREP} /home`
11510 if test "x$exclude" != "x"; then
11514 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11515 if test "x$already" = "x"; then
11521 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11525 if test "x$LOCATE" != "x"; then
11529 for x in `${LOCATE} $file 2>/dev/null`; do
11530 base=`echo $x | sed "s%/${file}%%"`
11531 if test "x$x" = "x$base"; then
11535 dir=`${DIRNAME} $x 2>/dev/null`
11536 exclude=`echo ${dir} | ${GREP} /home`
11537 if test "x$exclude" != "x"; then
11541 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
11542 if test "x$already" = "x"; then
11548 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
11551 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre in $try" >&5
11553 $as_echo_n "checking for pcre_compile in -lpcre in $try... " >&6; }
11554 LIBS="-lpcre $old_LIBS"
11555 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 extern char pcre_compile();
11567 if ac_fn_c_try_link "$LINENO"; then :
11570 smart_ldflags="-L$try -Wl,-rpath,$try"
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11583 CPPFLAGS="$old_CPPFLAGS"
11586 if test "x$smart_lib" != "x"; then
11587 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
11588 LIBS="$smart_ldflags $smart_lib $old_LIBS"
11589 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
11592 if test "x$ac_cv_lib_pcre_pcre_compile" = "xyes"; then
11595 smart_try_dir=$pcre_lib_dir
11597 $as_echo "#define HAVE_PCRE 1" >>confdefs.h
11600 LIBS=$(echo "$LIBS" | sed -e 's/-lpcre/-lpcre -lpcreposix/')
11605 if test "x$REGEX" = "x"; then
11609 ac_safe=`echo "regex.h" | sed 'y%./+-%__pm%'`
11610 old_CPPFLAGS="$CPPFLAGS"
11612 smart_include_dir="/usr/local/include /opt/include"
11615 _smart_include_dir=
11617 for _prefix in $smart_prefix ""; do
11618 for _dir in $smart_try_dir; do
11619 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
11622 for _dir in $smart_include_dir; do
11623 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
11627 if test "x$_smart_try_dir" != "x"; then
11628 for try in $_smart_try_dir; do
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11630 $as_echo_n "checking for regex.h in $try... " >&6; }
11631 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11644 if ac_fn_c_try_compile "$LINENO"; then :
11646 smart_include="-isystem $try"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 CPPFLAGS="$old_CPPFLAGS"
11663 if test "x$smart_include" = "x"; then
11664 for _prefix in $smart_prefix; do
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/regex.h" >&5
11666 $as_echo_n "checking for ${_prefix}/regex.h... " >&6; }
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11680 if ac_fn_c_try_compile "$LINENO"; then :
11682 smart_include="-isystem ${_prefix}/"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684 $as_echo "yes" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 if test "x$smart_include" = "x"; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h" >&5
11700 $as_echo_n "checking for regex.h... " >&6; }
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11714 if ac_fn_c_try_compile "$LINENO"; then :
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718 $as_echo "yes" >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 if test "x$smart_include" = "x"; then
11733 for prefix in $smart_prefix; do
11736 if test "x$LOCATE" != "x"; then
11738 file="${_prefix}/${1}"
11740 for x in `${LOCATE} $file 2>/dev/null`; do
11741 base=`echo $x | sed "s%/${file}%%"`
11742 if test "x$x" = "x$base"; then
11746 dir=`${DIRNAME} $x 2>/dev/null`
11747 exclude=`echo ${dir} | ${GREP} /home`
11748 if test "x$exclude" != "x"; then
11752 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11753 if test "x$already" = "x"; then
11759 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11764 if test "x$LOCATE" != "x"; then
11768 for x in `${LOCATE} $file 2>/dev/null`; do
11769 base=`echo $x | sed "s%/${file}%%"`
11770 if test "x$x" = "x$base"; then
11774 dir=`${DIRNAME} $x 2>/dev/null`
11775 exclude=`echo ${dir} | ${GREP} /home`
11776 if test "x$exclude" != "x"; then
11780 already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
11781 if test "x$already" = "x"; then
11787 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
11790 for try in $_smart_include_dir; do
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regex.h in $try" >&5
11792 $as_echo_n "checking for regex.h in $try... " >&6; }
11793 CPPFLAGS="-isystem $try $old_CPPFLAGS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11806 if ac_fn_c_try_compile "$LINENO"; then :
11808 smart_include="-isystem $try"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810 $as_echo "yes" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 CPPFLAGS="$old_CPPFLAGS"
11825 if test "x$smart_include" != "x"; then
11826 eval "ac_cv_header_$ac_safe=yes"
11827 CPPFLAGS="$smart_include $old_CPPFLAGS"
11828 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
11833 if test "x$ac_cv_header_regex_h" = "xyes"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended regular expressions" >&5
11836 $as_echo_n "checking for extended regular expressions... " >&6; }
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11841 #ifdef REG_EXTENDED
11846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11847 $EGREP "yes" >/dev/null 2>&1; then :
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11850 $as_echo "yes" >&6; }
11852 $as_echo "#define HAVE_REG_EXTENDED 1" >>confdefs.h
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
11866 $as_echo_n "checking for regcomp in -lregex... " >&6; }
11867 if ${ac_cv_lib_regex_regcomp+:} false; then :
11868 $as_echo_n "(cached) " >&6
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-lregex $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_regex_regcomp=yes
11893 ac_cv_lib_regex_regcomp=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
11900 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
11901 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
11903 LIBS="-lregex $LIBS"
11911 if test "x$REGEX" = "xyes"; then
11913 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
11918 $as_echo "#define GNUSTYLE 1" >>confdefs.h
11922 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
11926 $as_echo "#define BSDSTYLE 3" >>confdefs.h
11929 gethostbyaddrrstyle=""
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
11931 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
11934 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
11935 #ifdef HAVE_NETDB_H
11940 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
11949 if test $ac_have_decl = 1; then :
11954 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
11956 gethostbyaddrrstyle=BSD
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
11958 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
11965 if test "x$gethostbyaddrrstyle" = "x"; then
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11975 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
11980 if ac_fn_c_try_link "$LINENO"; then :
11983 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
11985 gethostbyaddrrstyle=GNU
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11993 if test "x$gethostbyaddrrstyle" = "x"; then
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
12003 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
12008 if ac_fn_c_try_link "$LINENO"; then :
12011 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
12013 gethostbyaddrrstyle=SYSV
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12022 if test "x$gethostbyaddrrstyle" = "x"; then
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12032 gethostbyaddr(NULL, 0, 0)
12037 if ac_fn_c_try_link "$LINENO"; then :
12040 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
12042 gethostbyaddrrstyle=BSD
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12050 if test "x$gethostbyaddrrstyle" = "x"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12052 $as_echo "none! It must not exist, here." >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
12055 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
12058 if test "x$gethostbyaddrrstyle" = "xBSD"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
12060 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
12063 gethostbynamerstyle=""
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
12065 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12075 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
12080 if ac_fn_c_try_link "$LINENO"; then :
12083 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
12085 gethostbynamerstyle=GNU
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12092 if test "x$gethostbynamerstyle" = "x"; then
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12102 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
12107 if ac_fn_c_try_link "$LINENO"; then :
12110 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
12112 gethostbynamerstyle=SYSV
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12120 if test "x$gethostbynamerstyle" = "x"; then
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12130 gethostbyname(NULL)
12135 if ac_fn_c_try_link "$LINENO"; then :
12138 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
12140 gethostbynamerstyle=BSD
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12148 if test "x$gethostbynamerstyle" = "x"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12150 $as_echo "none! It must not exist, here." >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
12153 $as_echo "${gethostbynamerstyle}-style" >&6; }
12156 if test "x$gethostbynamerstyle" = "xBSD"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
12158 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
12161 if test "x$ac_cv_header_pwd_h" = "xyes"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getpwnam_r" >&5
12163 $as_echo_n "checking getpwnam_r... " >&6; }
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 #include <stdlib.h>
12168 #include <sys/types.h>
12174 getpwnam_r(NULL, NULL, NULL, 0, NULL)
12179 if ac_fn_c_try_link "$LINENO"; then :
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; }
12184 $as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12198 if test "x$ac_cv_header_grp_h" = "xyes"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getgrnam_r" >&5
12200 $as_echo_n "checking getgrnam_r... " >&6; }
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 #include <stdlib.h>
12205 #include <sys/types.h>
12211 getgrnam_r(NULL, NULL, NULL, 0, NULL)
12216 if ac_fn_c_try_link "$LINENO"; then :
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219 $as_echo "yes" >&6; }
12221 $as_echo "#define HAVE_GETGRNAM_R 1" >>confdefs.h
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12237 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
12240 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
12244 $as_echo_n "checking ctime_r() syntax... " >&6; }
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12253 ctime_r(NULL, NULL, 0)
12258 if ac_fn_c_try_link "$LINENO"; then :
12261 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
12263 ctimerstyle="SOLARIS"
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12270 if test "x$ctimerstyle" = "x"; then
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12279 ctime_r(NULL, NULL)
12284 if ac_fn_c_try_link "$LINENO"; then :
12287 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
12289 ctimerstyle="POSIX"
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12297 if test "x$ctimerstyle" = "x"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
12299 $as_echo "none! It must not exist, here." >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
12302 $as_echo "${ctimerstyle}-style" >&6; }
12310 export top_builddir
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
12312 $as_echo "top_builddir=$top_builddir" >&6; }
12317 if test "x$EXPERIMENTAL" = "xyes"; then
12318 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
12319 MODULES="$MODULES $foo"
12322 for foo in `cat "${srcdir}"/src/modules/stable`; do
12323 MODULES="$MODULES $foo"
12328 for bar in $MODULES; do
12329 if test -f "${srcdir}"/src/modules/$bar/configure; then
12330 mysubdirs="$mysubdirs src/modules/$bar"
12336 subdirs="$subdirs $mysubdirs"
12340 if test "x$werror" == "xyes"; then
12341 CFLAGS="-Werror $CFLAGS"
12344 ac_config_commands="$ac_config_commands stamp-h"
12346 ac_config_commands="$ac_config_commands build-radpaths-h"
12348 ac_config_commands="$ac_config_commands main-chmod"
12350 ac_config_commands="$ac_config_commands scripts-chmod"
12357 USE_STATIC_LIBS="yes"
12362 unset ac_cv_env_LIBS_set
12363 unset ac_cv_env_LIBS_value
12365 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"
12367 cat >confcache <<\_ACEOF
12368 # This file is a shell script that caches the results of configure
12369 # tests run on this system so they can be shared between configure
12370 # scripts and configure runs, see configure's option --config-cache.
12371 # It is not useful on other systems. If it contains results you don't
12372 # want to keep, you may remove or edit it.
12374 # config.status only pays attention to the cache file if you give it
12375 # the --recheck option to rerun configure.
12377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12379 # following values.
12383 # The following way of writing the cache mishandles newlines in values,
12384 # but we know of no workaround that is simple, portable, and efficient.
12385 # So, we kill variables containing newlines.
12386 # Ultrix sh set writes to stderr and can't be redirected directly,
12387 # and sets the high bit in the cache file unless we assign to the vars.
12389 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12390 eval ac_val=\$$ac_var
12394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12398 _ | IFS | as_nl) ;; #(
12399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12400 *) { eval $ac_var=; unset $ac_var;} ;;
12406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12407 *${as_nl}ac_space=\ *)
12408 # `set' does not quote correctly, so add quotes: double-quote
12409 # substitution turns \\\\ into \\, and sed turns \\ into \.
12412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12415 # `set' quotes correctly as required by POSIX, so do not add quotes.
12416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12429 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12430 if test -w "$cache_file"; then
12431 if test "x$cache_file" != "x/dev/null"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12433 $as_echo "$as_me: updating cache $cache_file" >&6;}
12434 if test ! -f "$cache_file" || test -h "$cache_file"; then
12435 cat confcache >"$cache_file"
12437 case $cache_file in #(
12439 mv -f confcache "$cache_file"$$ &&
12440 mv -f "$cache_file"$$ "$cache_file" ;; #(
12442 mv -f confcache "$cache_file" ;;
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12448 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12454 # Let make expand exec_prefix.
12455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12457 DEFS=-DHAVE_CONFIG_H
12462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12463 # 1. Remove the extension, and $U if already installed.
12464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12467 # will be set to the directory where LIBOBJS objects are built.
12468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12471 LIBOBJS=$ac_libobjs
12473 LTLIBOBJS=$ac_ltlibobjs
12478 : "${CONFIG_STATUS=./config.status}"
12480 ac_clean_files_save=$ac_clean_files
12481 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12483 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12485 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12487 # Generated by $as_me.
12488 # Run this file to recreate the current configuration.
12489 # Compiler output produced by configure, useful for debugging
12490 # configure, is in config.log if it exists.
12493 ac_cs_recheck=false
12496 SHELL=\${CONFIG_SHELL-$SHELL}
12499 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12500 ## -------------------- ##
12501 ## M4sh Initialization. ##
12502 ## -------------------- ##
12504 # Be more Bourne compatible
12505 DUALCASE=1; export DUALCASE # for MKS sh
12506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12509 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12510 # is contrary to our usage. Disable this feature.
12511 alias -g '${1+"$@"}'='"$@"'
12512 setopt NO_GLOB_SUBST
12514 case `(set -o) 2>/dev/null` in #(
12526 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12527 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12530 # Prefer a ksh shell builtin over an external printf program on Solaris,
12531 # but without wasting forks for bash or zsh.
12532 if test -z "$BASH_VERSION$ZSH_VERSION" \
12533 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12534 as_echo='print -r --'
12535 as_echo_n='print -rn --'
12536 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12537 as_echo='printf %s\n'
12538 as_echo_n='printf %s'
12540 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12541 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12542 as_echo_n='/usr/ucb/echo -n'
12544 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12545 as_echo_n_body='eval
12549 expr "X$arg" : "X\\(.*\\)$as_nl";
12550 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12552 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12554 export as_echo_n_body
12555 as_echo_n='sh -c $as_echo_n_body as_echo'
12557 export as_echo_body
12558 as_echo='sh -c $as_echo_body as_echo'
12561 # The user is always right.
12562 if test "${PATH_SEPARATOR+set}" != set; then
12564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12565 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12572 # We need space, tab and new line, in precisely that order. Quoting is
12573 # there to prevent editors from complaining about space-tab.
12574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12575 # splitting by setting IFS to empty value.)
12578 # Find who we are. Look in the path if we contain no directory separator.
12581 *[\\/]* ) as_myself=$0 ;;
12582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12593 # We did not find ourselves, most probably we were run as `sh COMMAND'
12594 # in which case we are not to be found in the path.
12595 if test "x$as_myself" = x; then
12598 if test ! -f "$as_myself"; then
12599 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12603 # Unset variables that we do not need and which cause bugs (e.g. in
12604 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12605 # suppresses any "Segmentation fault" message there. '((' could
12606 # trigger a bug in pdksh 5.2.14.
12607 for as_var in BASH_ENV ENV MAIL MAILPATH
12608 do eval test x\${$as_var+set} = xset \
12609 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12625 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12626 # ----------------------------------------
12627 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12628 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12629 # script with STATUS, using 1 if that was 0.
12632 as_status=$1; test $as_status -eq 0 && as_status=1
12634 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12635 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12637 $as_echo "$as_me: error: $2" >&2
12638 as_fn_exit $as_status
12642 # as_fn_set_status STATUS
12643 # -----------------------
12644 # Set $? to STATUS, without forking.
12645 as_fn_set_status ()
12648 } # as_fn_set_status
12650 # as_fn_exit STATUS
12651 # -----------------
12652 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12656 as_fn_set_status $1
12662 # Portably unset VAR.
12665 { eval $1=; unset $1;}
12667 as_unset=as_fn_unset
12668 # as_fn_append VAR VALUE
12669 # ----------------------
12670 # Append the text in VALUE to the end of the definition contained in VAR. Take
12671 # advantage of any shell optimizations that allow amortized linear growth over
12672 # repeated appends, instead of the typical quadratic growth present in naive
12674 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12675 eval 'as_fn_append ()
12686 # as_fn_arith ARG...
12687 # ------------------
12688 # Perform arithmetic evaluation on the ARGs, and store the result in the
12689 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12690 # must be portable across $(()) and expr.
12691 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12692 eval 'as_fn_arith ()
12699 as_val=`expr "$@" || test $? -eq 1`
12704 if expr a : '\(a\)' >/dev/null 2>&1 &&
12705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12711 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12712 as_basename=basename
12717 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12723 as_me=`$as_basename -- "$0" ||
12724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12725 X"$0" : 'X\(//\)$' \| \
12726 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12728 sed '/^.*\/\([^/][^/]*\)\/*$/{
12742 # Avoid depending upon Character Ranges.
12743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12746 as_cr_digits='0123456789'
12747 as_cr_alnum=$as_cr_Letters$as_cr_digits
12749 ECHO_C= ECHO_N= ECHO_T=
12750 case `echo -n x` in #(((((
12752 case `echo 'xy\c'` in
12753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12762 rm -f conf$$ conf$$.exe conf$$.file
12763 if test -d conf$$.dir; then
12764 rm -f conf$$.dir/conf$$.file
12767 mkdir conf$$.dir 2>/dev/null
12769 if (echo >conf$$.file) 2>/dev/null; then
12770 if ln -s conf$$.file conf$$ 2>/dev/null; then
12772 # ... but there are two gotchas:
12773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12775 # In both cases, we have to default to `cp -pR'.
12776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12778 elif ln conf$$.file conf$$ 2>/dev/null; then
12786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12787 rmdir conf$$.dir 2>/dev/null
12792 # Create "$as_dir" as a directory, including parents if necessary.
12797 -*) as_dir=./$as_dir;;
12799 test -d "$as_dir" || eval $as_mkdir_p || {
12803 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12804 *) as_qdir=$as_dir;;
12806 as_dirs="'$as_qdir' $as_dirs"
12807 as_dir=`$as_dirname -- "$as_dir" ||
12808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12809 X"$as_dir" : 'X\(//\)[^/]' \| \
12810 X"$as_dir" : 'X\(//\)$' \| \
12811 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12812 $as_echo X"$as_dir" |
12813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12817 /^X\(\/\/\)[^/].*/{
12830 test -d "$as_dir" && break
12832 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12837 if mkdir -p . 2>/dev/null; then
12838 as_mkdir_p='mkdir -p "$as_dir"'
12840 test -d ./-p && rmdir ./-p
12845 # as_fn_executable_p FILE
12846 # -----------------------
12847 # Test if FILE is an executable regular file.
12848 as_fn_executable_p ()
12850 test -f "$1" && test -x "$1"
12851 } # as_fn_executable_p
12852 as_test_x='test -x'
12853 as_executable_p=as_fn_executable_p
12855 # Sed expression to map a string onto a valid CPP name.
12856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12858 # Sed expression to map a string onto a valid variable name.
12859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12863 ## ----------------------------------- ##
12864 ## Main body of $CONFIG_STATUS script. ##
12865 ## ----------------------------------- ##
12867 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870 # Save the log message, to keep $0 and so on meaningful, and to
12871 # report actual input values of CONFIG_FILES etc. instead of their
12872 # values after options handling.
12874 This file was extended by freeradius $as_me $Id$, which was
12875 generated by GNU Autoconf 2.69. Invocation command line was
12877 CONFIG_FILES = $CONFIG_FILES
12878 CONFIG_HEADERS = $CONFIG_HEADERS
12879 CONFIG_LINKS = $CONFIG_LINKS
12880 CONFIG_COMMANDS = $CONFIG_COMMANDS
12883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12888 case $ac_config_files in *"
12889 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12892 case $ac_config_headers in *"
12893 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12898 # Files that config.status was made for.
12899 config_files="$ac_config_files"
12900 config_headers="$ac_config_headers"
12901 config_commands="$ac_config_commands"
12905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907 \`$as_me' instantiates files and other configuration actions
12908 from templates according to the current configuration. Unless the files
12909 and actions are specified as TAGs, all are instantiated by default.
12911 Usage: $0 [OPTION]... [TAG]...
12913 -h, --help print this help, then exit
12914 -V, --version print version number and configuration settings, then exit
12915 --config print configuration, then exit
12916 -q, --quiet, --silent
12917 do not print progress messages
12918 -d, --debug don't remove temporary files
12919 --recheck update $as_me by reconfiguring in the same conditions
12920 --file=FILE[:TEMPLATE]
12921 instantiate the configuration file FILE
12922 --header=FILE[:TEMPLATE]
12923 instantiate the configuration header FILE
12925 Configuration files:
12928 Configuration headers:
12931 Configuration commands:
12934 Report bugs to <http://bugs.freeradius.org>.
12935 freeradius home page: <http://www.freeradius.org>."
12938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12941 freeradius config.status $Id$
12942 configured by $0, generated by GNU Autoconf 2.69,
12943 with options \\"\$ac_cs_config\\"
12945 Copyright (C) 2012 Free Software Foundation, Inc.
12946 This config.status script is free software; the Free Software Foundation
12947 gives unlimited permission to copy, distribute and modify it."
12951 test -n "\$AWK" || AWK=awk
12954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12955 # The default lists apply if the user does not specify any file.
12961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12978 # Handling of the options.
12979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12982 $as_echo "$ac_cs_version"; exit ;;
12983 --config | --confi | --conf | --con | --co | --c )
12984 $as_echo "$ac_cs_config"; exit ;;
12985 --debug | --debu | --deb | --de | --d | -d )
12987 --file | --fil | --fi | --f )
12990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12991 '') as_fn_error $? "missing file argument" ;;
12993 as_fn_append CONFIG_FILES " '$ac_optarg'"
12994 ac_need_defaults=false;;
12995 --header | --heade | --head | --hea )
12998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13001 ac_need_defaults=false;;
13003 # Conflict between --help and --header
13004 as_fn_error $? "ambiguous option: \`$1'
13005 Try \`$0 --help' for more information.";;
13006 --help | --hel | -h )
13007 $as_echo "$ac_cs_usage"; exit ;;
13008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13012 # This is an error.
13013 -*) as_fn_error $? "unrecognized option: \`$1'
13014 Try \`$0 --help' for more information." ;;
13016 *) as_fn_append ac_config_targets " $1"
13017 ac_need_defaults=false ;;
13023 ac_configure_extra_args=
13025 if $ac_cs_silent; then
13027 ac_configure_extra_args="$ac_configure_extra_args --silent"
13031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032 if \$ac_cs_recheck; then
13033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13036 CONFIG_SHELL='$SHELL'
13037 export CONFIG_SHELL
13042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13047 ## Running $as_me. ##
13053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13058 # Handling of arguments.
13059 for ac_config_target in $ac_config_targets
13061 case $ac_config_target in
13062 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
13063 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13064 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
13065 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
13066 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
13067 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
13068 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
13069 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
13070 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
13071 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
13072 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
13073 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
13074 "./scripts/cron/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.daily" ;;
13075 "./scripts/cron/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/cron/radiusd.cron.monthly" ;;
13076 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
13077 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
13078 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
13080 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13085 # If the user did not use the arguments to specify the items to instantiate,
13086 # then the envvar interface is used. Set only those that are not.
13087 # We use the long form for the default assignment because of an extremely
13088 # bizarre bug on SunOS 4.1.3.
13089 if $ac_need_defaults; then
13090 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13091 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13092 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13095 # Have a temporary directory for convenience. Make it in the build tree
13096 # simply because there is no reason against having it here, and in addition,
13097 # creating and moving files from /tmp can sometimes cause problems.
13098 # Hook for its removal unless debugging.
13099 # Note that there is a small window in which the directory will not be cleaned:
13100 # after its creation but before its name has been assigned to `$tmp'.
13104 trap 'exit_status=$?
13105 : "${ac_tmp:=$tmp}"
13106 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13108 trap 'as_fn_exit 1' 1 2 13 15
13110 # Create a (secure) tmp directory for tmp files.
13113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13117 tmp=./conf$$-$RANDOM
13118 (umask 077 && mkdir "$tmp")
13119 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13122 # Set up the scripts for CONFIG_FILES section.
13123 # No need to generate them if there are no CONFIG_FILES.
13124 # This happens for instance with `./config.status config.h'.
13125 if test -n "$CONFIG_FILES"; then
13128 ac_cr=`echo X | tr X '\015'`
13129 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13130 # But we know of no other shell where ac_cr would be empty at this
13131 # point, so we can use a bashism as a fallback.
13132 if test "x$ac_cr" = x; then
13133 eval ac_cr=\$\'\\r\'
13135 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13136 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13139 ac_cs_awk_cr=$ac_cr
13142 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13147 echo "cat >conf$$subs.awk <<_ACEOF" &&
13148 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13150 } >conf$$subs.sh ||
13151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13152 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13154 for ac_last_try in false false false false false :; do
13155 . ./conf$$subs.sh ||
13156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13158 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13159 if test $ac_delim_n = $ac_delim_num; then
13161 elif $ac_last_try; then
13162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13167 rm -f conf$$subs.sh
13169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13170 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13174 s/^/S["/; s/!.*/"]=/
13184 s/\(.\{148\}\)..*/\1/
13186 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13198 s/\(.\{148\}\)..*/\1/
13200 s/["\\]/\\&/g; s/^/"/; s/$/"/
13204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13209 ' <conf$$subs.awk | sed '
13214 ' >>$CONFIG_STATUS || ac_write_fail=1
13215 rm -f conf$$subs.awk
13216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13218 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13219 for (key in S) S_is_set[key] = 1
13225 nfields = split(line, field, "@")
13227 len = length(field[1])
13228 for (i = 2; i < nfields; i++) {
13230 keylen = length(key)
13231 if (S_is_set[key]) {
13233 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13234 len += length(value) + length(field[++i])
13245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13246 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13247 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13250 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13251 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13254 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13255 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13256 # trailing colons and then remove the whole line if VPATH becomes empty
13257 # (actually we leave an empty line to preserve line numbers).
13258 if test "x$srcdir" = x.; then
13259 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13278 fi # test -n "$CONFIG_FILES"
13280 # Set up the scripts for CONFIG_HEADERS section.
13281 # No need to generate them if there are no CONFIG_HEADERS.
13282 # This happens for instance with `./config.status Makefile'.
13283 if test -n "$CONFIG_HEADERS"; then
13284 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13288 # Transform confdefs.h into an awk script `defines.awk', embedded as
13289 # here-document in config.status, that substitutes the proper values into
13290 # config.h.in to produce config.h.
13292 # Create a delimiter string that does not exist in confdefs.h, to ease
13293 # handling of long lines.
13295 for ac_last_try in false false :; do
13296 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13297 if test -z "$ac_tt"; then
13299 elif $ac_last_try; then
13300 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13306 # For the awk script, D is an array of macro values keyed by name,
13307 # likewise P contains macro parameters if any. Preserve backslash
13308 # newline sequences.
13310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13312 s/.\{148\}/&'"$ac_delim"'/g
13315 s/^[ ]*#[ ]*define[ ][ ]*/ /
13322 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13329 D["\1"]=" \3\\\\\\n"\\/p
13331 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13336 s/.\{148\}/&'"$ac_delim"'/g
13341 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13344 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13346 ' <confdefs.h | sed '
13347 s/'"$ac_delim"'/"\\\
13348 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351 for (key in D) D_is_set[key] = 1
13354 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13356 split(line, arg, " ")
13357 if (arg[1] == "#") {
13361 defundef = substr(arg[1], 2)
13364 split(mac1, mac2, "(") #)
13366 prefix = substr(line, 1, index(line, defundef) - 1)
13367 if (D_is_set[macro]) {
13368 # Preserve the white space surrounding the "#".
13369 print prefix "define", macro P[macro] D[macro]
13372 # Replace #undef with comments. This is necessary, for example,
13373 # in the case of _POSIX_SOURCE, which is predefined and required
13374 # on some systems where configure will not decide to define it.
13375 if (defundef == "undef") {
13376 print "/*", prefix defundef, macro, "*/"
13384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13385 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13386 fi # test -n "$CONFIG_HEADERS"
13389 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13394 :[FHLC]) ac_mode=$ac_tag; continue;;
13396 case $ac_mode$ac_tag in
13398 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13399 :[FH]-) ac_tag=-:-;;
13400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13417 -) ac_f="$ac_tmp/stdin";;
13418 *) # Look for the file first in the build tree, then in the source tree
13419 # (if the path is not absolute). The absolute path cannot be DOS-style,
13420 # because $ac_f cannot contain `:'.
13424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13426 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13428 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13429 as_fn_append ac_file_inputs " '$ac_f'"
13432 # Let's still pretend it is `configure' which instantiates (i.e., don't
13433 # use $as_me), people would be surprised to read:
13434 # /* config.h. Generated by config.status. */
13435 configure_input='Generated from '`
13436 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13438 if test x"$ac_file" != x-; then
13439 configure_input="$ac_file. $configure_input"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13441 $as_echo "$as_me: creating $ac_file" >&6;}
13443 # Neutralize special characters interpreted by sed in replacement strings.
13444 case $configure_input in #(
13445 *\&* | *\|* | *\\* )
13446 ac_sed_conf_input=`$as_echo "$configure_input" |
13447 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13448 *) ac_sed_conf_input=$configure_input;;
13452 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13458 ac_dir=`$as_dirname -- "$ac_file" ||
13459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13460 X"$ac_file" : 'X\(//\)[^/]' \| \
13461 X"$ac_file" : 'X\(//\)$' \| \
13462 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13463 $as_echo X"$ac_file" |
13464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13468 /^X\(\/\/\)[^/].*/{
13481 as_dir="$ac_dir"; as_fn_mkdir_p
13485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13488 # A ".." for each directory in $ac_dir_suffix.
13489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13490 case $ac_top_builddir_sub in
13491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13495 ac_abs_top_builddir=$ac_pwd
13496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13497 # for backward compatibility:
13498 ac_top_builddir=$ac_top_build_prefix
13501 .) # We are building in place.
13503 ac_top_srcdir=$ac_top_builddir_sub
13504 ac_abs_top_srcdir=$ac_pwd ;;
13505 [\\/]* | ?:[\\/]* ) # Absolute name.
13506 ac_srcdir=$srcdir$ac_dir_suffix;
13507 ac_top_srcdir=$srcdir
13508 ac_abs_top_srcdir=$srcdir ;;
13509 *) # Relative name.
13510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13511 ac_top_srcdir=$ac_top_build_prefix$srcdir
13512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13526 # If the template does not know about datarootdir, expand it.
13527 # FIXME: This hack should be removed a few years after 2.60.
13528 ac_datarootdir_hack=; ac_datarootdir_seen=
13539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13540 *datarootdir*) ac_datarootdir_seen=yes;;
13541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13546 ac_datarootdir_hack='
13547 s&@datadir@&$datadir&g
13548 s&@docdir@&$docdir&g
13549 s&@infodir@&$infodir&g
13550 s&@localedir@&$localedir&g
13551 s&@mandir@&$mandir&g
13552 s&\\\${datarootdir}&$datarootdir&g' ;;
13556 # Neutralize VPATH when `$srcdir' = `.'.
13557 # Shell code in configure.ac might set extrasub.
13558 # FIXME: do we really want to maintain this feature?
13559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13560 ac_sed_extra="$ac_vpsub
13563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13566 s|@configure_input@|$ac_sed_conf_input|;t t
13567 s&@top_builddir@&$ac_top_builddir_sub&;t t
13568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13569 s&@srcdir@&$ac_srcdir&;t t
13570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13571 s&@top_srcdir@&$ac_top_srcdir&;t t
13572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13573 s&@builddir@&$ac_builddir&;t t
13574 s&@abs_builddir@&$ac_abs_builddir&;t t
13575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13576 $ac_datarootdir_hack
13578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13579 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13584 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13586 which seems to be undefined. Please make sure it is defined" >&5
13587 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13588 which seems to be undefined. Please make sure it is defined" >&2;}
13590 rm -f "$ac_tmp/stdin"
13592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13601 if test x"$ac_file" != x-; then
13603 $as_echo "/* $configure_input */" \
13604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13605 } >"$ac_tmp/config.h" \
13606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13607 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13612 mv "$ac_tmp/config.h" "$ac_file" \
13613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13616 $as_echo "/* $configure_input */" \
13617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13618 || as_fn_error $? "could not create -" "$LINENO" 5
13622 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13623 $as_echo "$as_me: executing $ac_file commands" >&6;}
13628 case $ac_file$ac_mode in
13629 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
13630 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
13631 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
13632 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd cron/radiusd.cron.daily cron/radiusd.cron.monthly cryptpasswd) ;;
13640 ac_clean_files=$ac_clean_files_save
13642 test $ac_write_fail = 0 ||
13643 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13646 # configure is writing to config.log, and then calls config.status.
13647 # config.status does its own redirection, appending to config.log.
13648 # Unfortunately, on DOS this fails, as config.log is still kept open
13649 # by configure, so config.status won't be able to write to it; its
13650 # output is simply discarded. So we exec the FD to /dev/null,
13651 # effectively closing config.log, so it can be properly (re)opened and
13652 # appended to by config.status. When coming back to configure, we
13653 # need to make the FD available again.
13654 if test "$no_create" != yes; then
13656 ac_config_status_args=
13657 test "$silent" = yes &&
13658 ac_config_status_args="$ac_config_status_args --quiet"
13660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13663 # would make configure fail if this is the last instruction.
13664 $ac_cs_success || as_fn_exit 1
13668 # CONFIG_SUBDIRS section.
13670 if test "$no_recursion" != yes; then
13672 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13673 # so they do not pile up.
13674 ac_sub_configure_args=
13676 eval "set x $ac_configure_args"
13680 if test -n "$ac_prev"; then
13685 -cache-file | --cache-file | --cache-fil | --cache-fi \
13686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13687 ac_prev=cache_file ;;
13688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13692 --config-cache | -C)
13694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13702 --disable-option-checking)
13706 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13708 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13712 # Always prepend --prefix to ensure using the same prefix
13713 # in subdir configurations.
13714 ac_arg="--prefix=$prefix"
13716 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13718 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13721 if test "$silent" = yes; then
13722 ac_sub_configure_args="--silent $ac_sub_configure_args"
13725 # Always prepend --disable-option-checking to silence warnings, since
13726 # different subdirs can have different --enable and --with options.
13727 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13730 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13732 # Do not complain, so a configure script can configure whichever
13733 # parts of a large source tree are present.
13734 test -d "$srcdir/$ac_dir" || continue
13736 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13737 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13738 $as_echo "$ac_msg" >&6
13739 as_dir="$ac_dir"; as_fn_mkdir_p
13743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13746 # A ".." for each directory in $ac_dir_suffix.
13747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13748 case $ac_top_builddir_sub in
13749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13753 ac_abs_top_builddir=$ac_pwd
13754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13755 # for backward compatibility:
13756 ac_top_builddir=$ac_top_build_prefix
13759 .) # We are building in place.
13761 ac_top_srcdir=$ac_top_builddir_sub
13762 ac_abs_top_srcdir=$ac_pwd ;;
13763 [\\/]* | ?:[\\/]* ) # Absolute name.
13764 ac_srcdir=$srcdir$ac_dir_suffix;
13765 ac_top_srcdir=$srcdir
13766 ac_abs_top_srcdir=$srcdir ;;
13767 *) # Relative name.
13768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13769 ac_top_srcdir=$ac_top_build_prefix$srcdir
13770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13777 # Check for guested configure; otherwise get Cygnus style configure.
13778 if test -f "$ac_srcdir/configure.gnu"; then
13779 ac_sub_configure=$ac_srcdir/configure.gnu
13780 elif test -f "$ac_srcdir/configure"; then
13781 ac_sub_configure=$ac_srcdir/configure
13782 elif test -f "$ac_srcdir/configure.in"; then
13783 # This should be Cygnus configure.
13784 ac_sub_configure=$ac_aux_dir/configure
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13787 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13791 # The recursion is here.
13792 if test -n "$ac_sub_configure"; then
13793 # Make the cache file name correct relative to the subdirectory.
13794 case $cache_file in
13795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13796 *) # Relative name.
13797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13800 { $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
13801 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13802 # The eval makes quoting arguments work.
13803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13805 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}