3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-strict-dependencies Fail configure on lack of module dependancy."
27 --with-FOO-include-dir=DIR Dir for includes for FOO, module dependancy."
29 --with-FOO-lib-dir=DIR Dir for libraries for FOO, module dependancy."
31 --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
33 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
35 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
37 --with-dict-nocase Make dictionary case-independant (default=yes)"
39 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
41 --with-threads Use threads, if available. (default=yes) "
43 --with-snmp Compile in SNMP support. (default=yes)"
45 --disable-ltdl-install do not install libltdl"
47 --with-static-modules=QUOTED-MODULE-LIST"
49 --enable-developer Turns on flags of interest to developers."
51 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
53 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/main/radiusd.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='\c' ac_t=
565 # From configure.in Revision: 1.133
566 RADIUSD_MAJOR_VERSION=0
567 RADIUSD_MINOR_VERSION=5
568 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
571 # Extract the first word of "gcc", so it can be a program name with args.
572 set dummy gcc; ac_word=$2
573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 echo "configure:575: checking for $ac_word" >&5
575 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
578 if test -n "$CC"; then
579 ac_cv_prog_CC="$CC" # Let the user override the test.
581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
583 for ac_dir in $ac_dummy; do
584 test -z "$ac_dir" && ac_dir=.
585 if test -f $ac_dir/$ac_word; then
594 if test -n "$CC"; then
595 echo "$ac_t""$CC" 1>&6
597 echo "$ac_t""no" 1>&6
600 if test -z "$CC"; then
601 # Extract the first word of "cc", so it can be a program name with args.
602 set dummy cc; ac_word=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
608 if test -n "$CC"; then
609 ac_cv_prog_CC="$CC" # Let the user override the test.
611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
614 for ac_dir in $ac_dummy; do
615 test -z "$ac_dir" && ac_dir=.
616 if test -f $ac_dir/$ac_word; then
617 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
626 if test $ac_prog_rejected = yes; then
627 # We found a bogon in the path, so make sure we never use it.
628 set dummy $ac_cv_prog_CC
630 if test $# -gt 0; then
631 # We chose a different compiler from the bogus one.
632 # However, it has the same basename, so the bogon will be chosen
633 # first if we set CC to just the basename; use the full file name.
635 set dummy "$ac_dir/$ac_word" "$@"
643 if test -n "$CC"; then
644 echo "$ac_t""$CC" 1>&6
646 echo "$ac_t""no" 1>&6
649 if test -z "$CC"; then
652 # Extract the first word of "cl", so it can be a program name with args.
653 set dummy cl; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 if test -n "$CC"; then
660 ac_cv_prog_CC="$CC" # Let the user override the test.
662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
664 for ac_dir in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir=.
666 if test -f $ac_dir/$ac_word; then
675 if test -n "$CC"; then
676 echo "$ac_t""$CC" 1>&6
678 echo "$ac_t""no" 1>&6
683 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691 ac_cpp='$CPP $CPPFLAGS'
692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694 cross_compiling=$ac_cv_prog_cc_cross
696 cat > conftest.$ac_ext << EOF
698 #line 699 "configure"
699 #include "confdefs.h"
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
704 ac_cv_prog_cc_works=yes
705 # If we can't run a trivial program, we are probably using a cross compiler.
706 if (./conftest; exit) 2>/dev/null; then
707 ac_cv_prog_cc_cross=no
709 ac_cv_prog_cc_cross=yes
712 echo "configure: failed program was:" >&5
713 cat conftest.$ac_ext >&5
714 ac_cv_prog_cc_works=no
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
725 if test $ac_cv_prog_cc_works = no; then
726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
731 cross_compiling=$ac_cv_prog_cc_cross
733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
734 echo "configure:735: checking whether we are using GNU C" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 cat > conftest.c <<EOF
743 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
750 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
752 if test $ac_cv_prog_gcc = yes; then
758 ac_test_CFLAGS="${CFLAGS+set}"
759 ac_save_CFLAGS="$CFLAGS"
761 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${CC-cc} accepts -g" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 echo 'void f(){}' > conftest.c
767 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
776 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
777 if test "$ac_test_CFLAGS" = set; then
778 CFLAGS="$ac_save_CFLAGS"
779 elif test $ac_cv_prog_cc_g = yes; then
780 if test "$GCC" = yes; then
786 if test "$GCC" = yes; then
793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 # This must be in double quotes, not single quotes, because CPP may get
804 # substituted into the Makefile and "${CC-cc}" will confuse make.
806 # On the NeXT, cc -E runs the code through the compiler's parser,
807 # not just through cpp.
808 cat > conftest.$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
821 echo "configure: failed program was:" >&5
822 cat conftest.$ac_ext >&5
824 CPP="${CC-cc} -E -traditional-cpp"
825 cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832 { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834 if test -z "$ac_err"; then
838 echo "configure: failed program was:" >&5
839 cat conftest.$ac_ext >&5
841 CPP="${CC-cc} -nologo -E"
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
855 echo "configure: failed program was:" >&5
856 cat conftest.$ac_ext >&5
865 ac_cv_prog_CPP="$CPP"
867 CPP="$ac_cv_prog_CPP"
869 ac_cv_prog_CPP="$CPP"
871 echo "$ac_t""$CPP" 1>&6
873 if test $ac_cv_prog_gcc = yes; then
874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
875 echo "configure:876: checking whether ${CC-cc} needs -traditional" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 ac_pattern="Autoconf.*'x'"
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887 egrep "$ac_pattern" >/dev/null 2>&1; then
889 ac_cv_prog_gcc_traditional=yes
892 ac_cv_prog_gcc_traditional=no
897 if test $ac_cv_prog_gcc_traditional = no; then
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905 egrep "$ac_pattern" >/dev/null 2>&1; then
907 ac_cv_prog_gcc_traditional=yes
914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
915 if test $ac_cv_prog_gcc_traditional = yes; then
916 CC="$CC -traditional"
920 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
921 echo "configure:922: checking whether we are using SUNPro C" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 cat > conftest.c <<EOF
930 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
937 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
961 RANLIB="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
965 echo "$ac_t""no" 1>&6
971 # Extract the first word of "gmake", so it can be a program name with args.
972 set dummy gmake; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$GMAKE"; then
979 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_GMAKE="yes"
991 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
994 GMAKE="$ac_cv_prog_GMAKE"
995 if test -n "$GMAKE"; then
996 echo "$ac_t""$GMAKE" 1>&6
998 echo "$ac_t""no" 1>&6
1001 if test $GMAKE = no; then
1002 # Extract the first word of "make", so it can be a program name with args.
1003 set dummy make; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1011 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1014 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_path_MAKE="$ac_dir/$ac_word"
1027 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1031 MAKE="$ac_cv_path_MAKE"
1032 if test -n "$MAKE"; then
1033 echo "$ac_t""$MAKE" 1>&6
1035 echo "$ac_t""no" 1>&6
1039 # Extract the first word of "gmake", so it can be a program name with args.
1040 set dummy gmake; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1048 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1051 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 for ac_dir in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir=.
1058 if test -f $ac_dir/$ac_word; then
1059 ac_cv_path_MAKE="$ac_dir/$ac_word"
1064 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1068 MAKE="$ac_cv_path_MAKE"
1069 if test -n "$MAKE"; then
1070 echo "$ac_t""$MAKE" 1>&6
1072 echo "$ac_t""no" 1>&6
1076 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1077 if test -z "$makever"; then
1078 { echo "configure: error: GNU Make is not installed. Please download and install it
1079 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1082 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1083 echo "configure:1084: checking for main in -lltdl" >&5
1084 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_save_LIBS="$LIBS"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1100 eval "ac_cv_lib_$ac_lib_var=yes"
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1105 eval "ac_cv_lib_$ac_lib_var=no"
1108 LIBS="$ac_save_LIBS"
1111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1113 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1115 echo "$ac_t""no" 1>&6
1116 if test x"$enable_ltdl_install" = xno; then
1117 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1119 enable_ltdl_install=yes
1124 if test x"$enable_ltdl_install" = x"yes"; then
1125 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1126 LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1127 INCLTDL='-I${top_builddir}/libltdl'
1129 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1138 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1139 if test -f $ac_dir/install-sh; then
1141 ac_install_sh="$ac_aux_dir/install-sh -c"
1143 elif test -f $ac_dir/install.sh; then
1145 ac_install_sh="$ac_aux_dir/install.sh -c"
1149 if test -z "$ac_aux_dir"; then
1150 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1152 ac_config_guess=$ac_aux_dir/config.guess
1153 ac_config_sub=$ac_aux_dir/config.sub
1154 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1156 # Check whether --enable-shared or --disable-shared was given.
1157 if test "${enable_shared+set}" = set; then
1158 enableval="$enable_shared"
1159 p=${PACKAGE-default}
1160 case "$enableval" in
1161 yes) enable_shared=yes ;;
1162 no) enable_shared=no ;;
1165 # Look at the argument we got. We use all the common list separators.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1167 for pkg in $enableval; do
1168 if test "X$pkg" = "X$p"; then
1179 # Check whether --enable-static or --disable-static was given.
1180 if test "${enable_static+set}" = set; then
1181 enableval="$enable_static"
1182 p=${PACKAGE-default}
1183 case "$enableval" in
1184 yes) enable_static=yes ;;
1185 no) enable_static=no ;;
1188 # Look at the argument we got. We use all the common list separators.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1190 for pkg in $enableval; do
1191 if test "X$pkg" = "X$p"; then
1202 # Check whether --enable-fast-install or --disable-fast-install was given.
1203 if test "${enable_fast_install+set}" = set; then
1204 enableval="$enable_fast_install"
1205 p=${PACKAGE-default}
1206 case "$enableval" in
1207 yes) enable_fast_install=yes ;;
1208 no) enable_fast_install=no ;;
1210 enable_fast_install=no
1211 # Look at the argument we got. We use all the common list separators.
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1213 for pkg in $enableval; do
1214 if test "X$pkg" = "X$p"; then
1215 enable_fast_install=yes
1222 enable_fast_install=yes
1226 # Make sure we can run config.sub.
1227 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1228 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1231 echo $ac_n "checking host system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking host system type" >&5
1235 case "$host_alias" in
1239 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1240 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1242 *) host_alias=$nonopt ;;
1246 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1247 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1248 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1249 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1250 echo "$ac_t""$host" 1>&6
1252 echo $ac_n "checking build system type""... $ac_c" 1>&6
1253 echo "configure:1254: checking build system type" >&5
1256 case "$build_alias" in
1259 NONE) build_alias=$host_alias ;;
1260 *) build_alias=$nonopt ;;
1264 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1265 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1268 echo "$ac_t""$build" 1>&6
1270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1271 if test "${with_gnu_ld+set}" = set; then
1272 withval="$with_gnu_ld"
1273 test "$withval" = no || with_gnu_ld=yes
1279 if test "$ac_cv_prog_gcc" = yes; then
1280 # Check if gcc -print-prog-name=ld gives a path.
1281 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ld used by GCC" >&5
1283 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1285 # Accept absolute paths.
1286 [\\/]* | [A-Za-z]:[\\/]*)
1287 re_direlt='/[^/][^/]*/\.\./'
1288 # Canonicalize the path of ld
1289 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1290 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1291 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1293 test -z "$LD" && LD="$ac_prog"
1296 # If it fails, then pretend we aren't using GCC.
1300 # If it is relative, then search for the first ld in PATH.
1304 elif test "$with_gnu_ld" = yes; then
1305 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1306 echo "configure:1307: checking for GNU ld" >&5
1308 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1309 echo "configure:1310: checking for non-GNU ld" >&5
1311 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 if test -z "$LD"; then
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1316 for ac_dir in $PATH; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1319 ac_cv_path_LD="$ac_dir/$ac_prog"
1320 # Check to see if the program is GNU ld. I'd rather use --version,
1321 # but apparently some GNU ld's only accept -v.
1322 # Break only if it was the GNU/non-GNU ld that we prefer.
1323 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1324 test "$with_gnu_ld" != no && break
1326 test "$with_gnu_ld" != yes && break
1332 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1337 if test -n "$LD"; then
1338 echo "$ac_t""$LD" 1>&6
1340 echo "$ac_t""no" 1>&6
1342 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1343 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking if the linker ($LD) is GNU ld" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1350 ac_cv_prog_gnu_ld=yes
1352 ac_cv_prog_gnu_ld=no
1356 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1359 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1360 echo "configure:1361: checking for BSD-compatible nm" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$NM"; then
1365 # Let the user override the test.
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1369 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1372 # Check to see if the nm accepts a BSD-compat flag.
1373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1374 # nm: unknown option "B" ignored
1375 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376 ac_cv_path_NM="$ac_dir/nm -B"
1378 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1379 ac_cv_path_NM="$ac_dir/nm -p"
1382 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1383 continue # so that we can try to find one that supports BSD flags
1388 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1393 echo "$ac_t""$NM" 1>&6
1395 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ln -s works" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1401 if ln -s X conftestdata 2>/dev/null
1404 ac_cv_prog_LN_S="ln -s"
1409 LN_S="$ac_cv_prog_LN_S"
1410 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1411 echo "$ac_t""yes" 1>&6
1413 echo "$ac_t""no" 1>&6
1418 NONE) lt_target="$host" ;;
1419 *) lt_target="$target" ;;
1422 # Check for any special flags to pass to ltconfig.
1423 libtool_flags="--cache-file=$cache_file"
1424 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1425 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1426 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1427 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1428 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1429 libtool_flags="$libtool_flags --enable-dlopen"
1431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1432 if test "${enable_libtool_lock+set}" = set; then
1433 enableval="$enable_libtool_lock"
1437 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1438 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1440 # Some flags need to be propagated to the compiler or linker for good
1442 case "$lt_target" in
1444 # Find out which ABI we are using.
1445 echo '#line 1446 "configure"' > conftest.$ac_ext
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447 case "`/usr/bin/file conftest.o`" in
1463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1464 SAVE_CFLAGS="$CFLAGS"
1465 CFLAGS="$CFLAGS -belf"
1466 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether the C compiler needs -belf" >&5
1468 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 lt_cv_cc_needs_belf=yes
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 lt_cv_cc_needs_belf=no
1491 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1492 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1494 CFLAGS="$SAVE_CFLAGS"
1502 # Save cache, so that ltconfig can load it
1503 cat > confcache <<\EOF
1504 # This file is a shell script that caches the results of configure
1505 # tests run on this system so they can be shared between configure
1506 # scripts and configure runs. It is not useful on other systems.
1507 # If it contains results you don't want to keep, you may remove or edit it.
1509 # By default, configure uses ./config.cache as the cache file,
1510 # creating it if it does not exist already. You can give configure
1511 # the --cache-file=FILE option to use a different cache file; that is
1512 # what configure does when it calls configure scripts in
1513 # subdirectories, so they share the cache.
1514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1515 # config.status only pays attention to the cache file if you give it the
1516 # --recheck option to rerun configure.
1519 # The following way of writing the cache mishandles newlines in values,
1520 # but we know of no workaround that is simple, portable, and efficient.
1521 # So, don't put newlines in cache variables' values.
1522 # Ultrix sh set writes to stderr and can't be redirected directly,
1523 # and sets the high bit in the cache file unless we assign to the vars.
1525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1527 # `set' does not quote correctly, so add quotes (double-quote substitution
1528 # turns \\\\ into \\, and sed turns \\ into \).
1530 -e "s/'/'\\\\''/g" \
1531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1534 # `set' quotes correctly as required by POSIX, so do not add quotes.
1535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1538 if cmp -s $cache_file confcache; then
1541 if test -w $cache_file; then
1542 echo "updating cache $cache_file"
1543 cat confcache > $cache_file
1545 echo "not updating unwritable cache $cache_file"
1551 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1552 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1553 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1554 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1555 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1557 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1558 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1560 # Reload cache, that may have been modified by ltconfig
1561 if test -r "$cache_file"; then
1562 echo "loading cache $cache_file"
1565 echo "creating cache $cache_file"
1570 # This can be used to rebuild libtool when needed
1571 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1573 # Always use our own libtool.
1574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1576 # Redirect the config.log output again, so that the ltconfig log is not
1577 # clobbered by the next message.
1578 exec 5>>./config.log
1582 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1583 if test "${enable_strict_dependencies+set}" = set; then
1584 enableval="$enable_strict_dependencies"
1589 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1590 if test "${with_fooincludedir+set}" = set; then
1591 withval="$with_fooincludedir"
1596 # Check whether --with-foolibdir or --without-foolibdir was given.
1597 if test "${with_foolibdir+set}" = set; then
1598 withval="$with_foolibdir"
1603 logdir='${localstatedir}/log/radius'
1604 echo $ac_n "checking logdir""... $ac_c" 1>&6
1605 echo "configure:1606: checking logdir" >&5
1606 # Check whether --with-logdir or --without-logdir was given.
1607 if test "${with_logdir+set}" = set; then
1608 withval="$with_logdir"
1611 { echo "configure: error: Need logdir" 1>&2; exit 1; }
1623 echo "$ac_t""$logdir" 1>&6
1625 radacctdir='${logdir}/radacct'
1626 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1627 echo "configure:1628: checking radacctdir" >&5
1628 # Check whether --with-radacctdir or --without-radacctdir was given.
1629 if test "${with_radacctdir+set}" = set; then
1630 withval="$with_radacctdir"
1633 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1638 radacctdir="$withval"
1645 echo "$ac_t""$radacctdir" 1>&6
1647 raddbdir='${sysconfdir}/raddb'
1648 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1649 echo "configure:1650: checking raddbdir" >&5
1650 # Check whether --with-raddbdir or --without-raddbdir was given.
1651 if test "${with_raddbdir+set}" = set; then
1652 withval="$with_raddbdir"
1655 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1667 echo "$ac_t""$raddbdir" 1>&6
1669 WITH_DICT_NOCASE=yes
1670 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1671 if test "${with_dict_nocase+set}" = set; then
1672 withval="$with_dict_nocase"
1682 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1683 cat >> confdefs.h <<\EOF
1684 #define WITH_DICT_NOCASE 1
1690 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1691 if test "${with_ascend_binary+set}" = set; then
1692 withval="$with_ascend_binary"
1702 if test "X$ASCEND_BINARY" = "Xyes"; then
1703 cat >> confdefs.h <<\EOF
1704 #define ASCEND_BINARY 1
1710 WITH_THREAD_POOL=yes
1711 # Check whether --with-threads or --without-threads was given.
1712 if test "${with_threads+set}" = set; then
1713 withval="$with_threads"
1726 # Check whether --with-snmp or --without-snmp was given.
1727 if test "${with_snmp+set}" = set; then
1728 withval="$with_snmp"
1739 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1740 if test "${enable_ltdl_install+set}" = set; then
1741 enableval="$enable_ltdl_install"
1745 if test x"${enable_ltdl_install+set}" != xset; then
1746 enable_ltdl_install=yes
1747 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1753 # Check whether --with-static_modules or --without-static_modules was given.
1754 if test "${with_static_modules+set}" = set; then
1755 withval="$with_static_modules"
1757 for i in $withval; do
1758 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1764 # Check whether --enable-developer or --disable-developer was given.
1765 if test "${enable_developer+set}" = set; then
1766 enableval="$enable_developer"
1778 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1783 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
1784 if test "${with_rlm_FOO_lib_dir+set}" = set; then
1785 withval="$with_rlm_FOO_lib_dir"
1794 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
1795 if test "${with_rlm_FOO_include_dir+set}" = set; then
1796 withval="$with_rlm_FOO_include_dir"
1807 # Extract the first word of "perl", so it can be a program name with args.
1808 set dummy perl; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1819 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_path_PERL="$ac_dir/$ac_word"
1832 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1836 PERL="$ac_cv_path_PERL"
1837 if test -n "$PERL"; then
1838 echo "$ac_t""$PERL" 1>&6
1840 echo "$ac_t""no" 1>&6
1843 if test ! -x $ac_cv_path_PERL; then
1844 { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1846 # Extract the first word of "snmpget", so it can be a program name with args.
1847 set dummy snmpget; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1855 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1858 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 for ac_dir in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1871 test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1875 SNMPGET="$ac_cv_path_SNMPGET"
1876 if test -n "$SNMPGET"; then
1877 echo "$ac_t""$SNMPGET" 1>&6
1879 echo "$ac_t""no" 1>&6
1882 # Extract the first word of "snmpwalk", so it can be a program name with args.
1883 set dummy snmpwalk; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1891 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1894 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1899 for ac_dir in $ac_dummy; do
1900 test -z "$ac_dir" && ac_dir=.
1901 if test -f $ac_dir/$ac_word; then
1902 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1907 test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1911 SNMPWALK="$ac_cv_path_SNMPWALK"
1912 if test -n "$SNMPWALK"; then
1913 echo "$ac_t""$SNMPWALK" 1>&6
1915 echo "$ac_t""no" 1>&6
1918 # Extract the first word of "rusers", so it can be a program name with args.
1919 set dummy rusers; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1927 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1930 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1935 for ac_dir in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_path_RUSERS="$ac_dir/$ac_word"
1943 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1947 RUSERS="$ac_cv_path_RUSERS"
1948 if test -n "$RUSERS"; then
1949 echo "$ac_t""$RUSERS" 1>&6
1951 echo "$ac_t""no" 1>&6
1955 missing_dir=`cd $ac_aux_dir && pwd`
1956 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1957 echo "configure:1958: checking for working aclocal" >&5
1958 # Run test in a subshell; some versions of sh will print an error if
1959 # an executable is not found, even if stderr is redirected.
1960 # Redirect stdin to placate older versions of autoconf. Sigh.
1961 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1963 echo "$ac_t""found" 1>&6
1965 ACLOCAL="$missing_dir/missing aclocal"
1966 echo "$ac_t""missing" 1>&6
1969 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working autoconf" >&5
1971 # Run test in a subshell; some versions of sh will print an error if
1972 # an executable is not found, even if stderr is redirected.
1973 # Redirect stdin to placate older versions of autoconf. Sigh.
1974 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1976 echo "$ac_t""found" 1>&6
1978 AUTOCONF="$missing_dir/missing autoconf"
1979 echo "$ac_t""missing" 1>&6
1982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1983 echo "configure:1984: checking for working autoheader" >&5
1984 # Run test in a subshell; some versions of sh will print an error if
1985 # an executable is not found, even if stderr is redirected.
1986 # Redirect stdin to placate older versions of autoconf. Sigh.
1987 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1988 AUTOHEADER=autoheader
1989 echo "$ac_t""found" 1>&6
1991 AUTOHEADER="$missing_dir/missing autoheader"
1992 echo "$ac_t""missing" 1>&6
1996 # Extract the first word of "locate", so it can be a program name with args.
1997 set dummy locate; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2005 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
2008 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
2011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2013 for ac_dir in $ac_dummy; do
2014 test -z "$ac_dir" && ac_dir=.
2015 if test -f $ac_dir/$ac_word; then
2016 ac_cv_path_LOCATE="$ac_dir/$ac_word"
2024 LOCATE="$ac_cv_path_LOCATE"
2025 if test -n "$LOCATE"; then
2026 echo "$ac_t""$LOCATE" 1>&6
2028 echo "$ac_t""no" 1>&6
2031 # Extract the first word of "dirname", so it can be a program name with args.
2032 set dummy dirname; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2040 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2043 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2048 for ac_dir in $ac_dummy; do
2049 test -z "$ac_dir" && ac_dir=.
2050 if test -f $ac_dir/$ac_word; then
2051 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2059 DIRNAME="$ac_cv_path_DIRNAME"
2060 if test -n "$DIRNAME"; then
2061 echo "$ac_t""$DIRNAME" 1>&6
2063 echo "$ac_t""no" 1>&6
2066 # Extract the first word of "grep", so it can be a program name with args.
2067 set dummy grep; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2078 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_path_GREP="$ac_dir/$ac_word"
2094 GREP="$ac_cv_path_GREP"
2095 if test -n "$GREP"; then
2096 echo "$ac_t""$GREP" 1>&6
2098 echo "$ac_t""no" 1>&6
2102 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2103 echo "configure:2104: checking for AIX" >&5
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2113 egrep "yes" >/dev/null 2>&1; then
2115 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2116 #define _ALL_SOURCE 1
2121 echo "$ac_t""no" 1>&6
2129 if test "$WITH_THREADS" = "yes"; then
2130 if test $ac_cv_prog_suncc = "yes"; then
2131 CFLAGS="$CFLAGS -mt"
2134 for ac_hdr in pthread.h
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2152 eval "ac_cv_header_$ac_safe=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_header_$ac_safe=no"
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2170 echo "$ac_t""no" 1>&6
2175 if test "X$ac_cv_header_pthread_h" = "X"; then
2176 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2179 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2180 echo "configure:2181: checking for pthread_join in -lpthread" >&5
2181 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-lpthread $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char pthread_join();
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 PTHREADLIB="-lpthread"
2217 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2224 echo "configure:2225: checking for library containing sem_init" >&5
2225 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 ac_func_search_save_LIBS="$LIBS"
2229 ac_cv_search_sem_init="no"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 ac_cv_search_sem_init="none required"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2250 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2251 LIBS="-l$i "-lpthread"
2252 $ac_func_search_save_LIBS"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* Override any gcc2 internal prototype to avoid an error. */
2257 /* We use char because int might match the return type of a gcc2
2258 builtin and then its argument prototype would still apply. */
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 ac_cv_search_sem_init="-l$i"
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2275 LIBS="$ac_func_search_save_LIBS"
2278 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2279 if test "$ac_cv_search_sem_init" != "no"; then
2280 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2282 PTHREADLIB="$PTHREADLIB $ac_cv_search_sem_init"
2288 if test "X$PTHREADLIB" = "X"; then
2289 SAVED_CFLAGS=$CFLAGS
2290 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2291 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2292 echo "configure:2293: checking for pthread_create in -lc_r" >&5
2293 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_save_LIBS="$LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error. */
2303 /* We use char because int might match the return type of a gcc2
2304 builtin and then its argument prototype would still apply. */
2305 char pthread_create();
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 eval "ac_cv_lib_$ac_lib_var=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 eval "ac_cv_lib_$ac_lib_var=no"
2321 LIBS="$ac_save_LIBS"
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2329 echo "$ac_t""no" 1>&6
2334 if test "x$PTHREADLIB" != "x"; then
2335 LIBS="$LIBS $PTHREADLIB"
2336 CFLAGS="$CFLAGS -D_REENTRANT"
2340 if test "x$PTHREADLIB" = "x"; then
2341 CFLAGS=$SAVED_CFLAGS
2342 ac_cv_header_pthread_h="no"
2347 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2348 echo "configure:2349: checking for getsockname in -lsocket" >&5
2349 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 ac_save_LIBS="$LIBS"
2354 LIBS="-lsocket $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 /* Override any gcc2 internal prototype to avoid an error. */
2359 /* We use char because int might match the return type of a gcc2
2360 builtin and then its argument prototype would still apply. */
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 eval "ac_cv_lib_$ac_lib_var=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_lib_$ac_lib_var=no"
2377 LIBS="$ac_save_LIBS"
2380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2384 cat >> confdefs.h <<EOF
2385 #define $ac_tr_lib 1
2388 LIBS="-lsocket $LIBS"
2391 echo "$ac_t""no" 1>&6
2395 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2396 echo "configure:2397: checking for inet_aton in -lresolv" >&5
2397 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 ac_save_LIBS="$LIBS"
2402 LIBS="-lresolv $LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2417 eval "ac_cv_lib_$ac_lib_var=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2422 eval "ac_cv_lib_$ac_lib_var=no"
2425 LIBS="$ac_save_LIBS"
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2432 cat >> confdefs.h <<EOF
2433 #define $ac_tr_lib 1
2436 LIBS="-lresolv $LIBS"
2439 echo "$ac_t""no" 1>&6
2443 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2444 echo "configure:2445: checking for inet_ntoa in -lnsl" >&5
2445 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_save_LIBS="$LIBS"
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2454 /* Override any gcc2 internal prototype to avoid an error. */
2455 /* We use char because int might match the return type of a gcc2
2456 builtin and then its argument prototype would still apply. */
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 eval "ac_cv_lib_$ac_lib_var=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 eval "ac_cv_lib_$ac_lib_var=no"
2473 LIBS="$ac_save_LIBS"
2476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2480 cat >> confdefs.h <<EOF
2481 #define $ac_tr_lib 1
2487 echo "$ac_t""no" 1>&6
2493 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2496 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_hdr that defines DIR" >&5
2498 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <sys/types.h>
2510 if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 eval "ac_cv_header_dirent_$ac_safe=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2517 eval "ac_cv_header_dirent_$ac_safe=no"
2521 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2522 echo "$ac_t""yes" 1>&6
2523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2524 cat >> confdefs.h <<EOF
2525 #define $ac_tr_hdr 1
2527 ac_header_dirent=$ac_hdr; break
2529 echo "$ac_t""no" 1>&6
2532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2533 if test $ac_header_dirent = dirent.h; then
2534 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2535 echo "configure:2536: checking for opendir in -ldir" >&5
2536 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 ac_save_LIBS="$LIBS"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* Override any gcc2 internal prototype to avoid an error. */
2546 /* We use char because int might match the return type of a gcc2
2547 builtin and then its argument prototype would still apply. */
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2556 eval "ac_cv_lib_$ac_lib_var=yes"
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2561 eval "ac_cv_lib_$ac_lib_var=no"
2564 LIBS="$ac_save_LIBS"
2567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2571 echo "$ac_t""no" 1>&6
2575 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2576 echo "configure:2577: checking for opendir in -lx" >&5
2577 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 ac_save_LIBS="$LIBS"
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* Override any gcc2 internal prototype to avoid an error. */
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 eval "ac_cv_lib_$ac_lib_var=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_lib_$ac_lib_var=no"
2605 LIBS="$ac_save_LIBS"
2608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2612 echo "$ac_t""no" 1>&6
2617 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2618 echo "configure:2619: checking for ANSI C header files" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2635 ac_cv_header_stdc=yes
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2641 ac_cv_header_stdc=no
2645 if test $ac_cv_header_stdc = yes; then
2646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2653 egrep "memchr" >/dev/null 2>&1; then
2657 ac_cv_header_stdc=no
2663 if test $ac_cv_header_stdc = yes; then
2664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2671 egrep "free" >/dev/null 2>&1; then
2675 ac_cv_header_stdc=no
2681 if test $ac_cv_header_stdc = yes; then
2682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2683 if test "$cross_compiling" = yes; then
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2690 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2691 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2693 int main () { int i; for (i = 0; i < 256; i++)
2694 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 ac_cv_header_stdc=no
2713 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2714 if test $ac_cv_header_stdc = yes; then
2715 cat >> confdefs.h <<\EOF
2716 #define STDC_HEADERS 1
2721 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2722 echo "configure:2723: checking whether time.h and sys/time.h may both be included" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <sys/types.h>
2730 #include <sys/time.h>
2736 if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738 ac_cv_header_time=yes
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2743 ac_cv_header_time=no
2748 echo "$ac_t""$ac_cv_header_time" 1>&6
2749 if test $ac_cv_header_time = yes; then
2750 cat >> confdefs.h <<\EOF
2751 #define TIME_WITH_SYS_TIME 1
2756 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2757 echo "configure:2758: checking for sys/wait.h that is POSIX.1 compatible" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2765 #include <sys/wait.h>
2767 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2770 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2775 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 ac_cv_header_sys_wait_h=yes
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 ac_cv_header_sys_wait_h=no
2790 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2791 if test $ac_cv_header_sys_wait_h = yes; then
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_SYS_WAIT_H 1
2827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856 cat >> confdefs.h <<EOF
2857 #define $ac_tr_hdr 1
2861 echo "$ac_t""no" 1>&6
2867 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2869 echo "configure:2870: checking for regex.h" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2883 eval "ac_cv_header_$ac_safe=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2889 eval "ac_cv_header_$ac_safe=no"
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2895 cat >> confdefs.h <<\EOF
2896 #define HAVE_REGEX_H 1
2900 echo "$ac_t""no" 1>&6
2903 if test "x$ac_cv_header_regex_h" = "xyes"; then
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 egrep "yes" >/dev/null 2>&1; then
2918 cat >> confdefs.h <<\EOF
2919 #define HAVE_REG_EXTENDED 1
2929 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
2931 cat >> confdefs.h <<\EOF
2937 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
2939 cat >> confdefs.h <<\EOF
2947 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2948 echo "configure:2949: checking for off_t" >&5
2949 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/types.h>
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2964 ac_cv_type_off_t=yes
2972 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2973 if test $ac_cv_type_off_t = no; then
2974 cat >> confdefs.h <<\EOF
2980 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2981 echo "configure:2982: checking for pid_t" >&5
2982 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2997 ac_cv_type_pid_t=yes
3005 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3006 if test $ac_cv_type_pid_t = no; then
3007 cat >> confdefs.h <<\EOF
3013 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3014 echo "configure:3015: checking for size_t" >&5
3015 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3030 ac_cv_type_size_t=yes
3033 ac_cv_type_size_t=no
3038 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3039 if test $ac_cv_type_size_t = no; then
3040 cat >> confdefs.h <<\EOF
3041 #define size_t unsigned
3046 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3047 echo "configure:3048: checking for uid_t in sys/types.h" >&5
3048 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3057 egrep "uid_t" >/dev/null 2>&1; then
3059 ac_cv_type_uid_t=yes
3068 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3069 if test $ac_cv_type_uid_t = no; then
3070 cat >> confdefs.h <<\EOF
3074 cat >> confdefs.h <<\EOF
3082 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3083 echo "configure:3084: checking for socklen_t" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_cv_type_socklen_t=no
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #ifdef HAVE_SYS_TYPES_H
3092 #include <sys/types.h>
3094 #ifdef HAVE_SYS_SOCKET_H
3095 #include <sys/socket.h>
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 ac_cv_type_socklen_t=yes
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3114 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3116 if test "$ac_cv_type_socklen_t" != "yes"; then
3117 cat >> confdefs.h <<\EOF
3118 #define socklen_t int
3125 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3126 echo "configure:3127: checking for uint8_t" >&5
3127 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 ac_cv_type_uint8_t=no
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #ifdef HAVE_INTTYPES_H
3135 #include <inttypes.h>
3137 #ifdef HAVE_STDINT_H
3145 if { (eval echo configure:3146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3147 ac_cv_type_uint8_t=yes
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3157 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3159 if test "$ac_cv_type_uint8_t" != "yes"; then
3160 cat >> confdefs.h <<\EOF
3161 #define uint8_t unsigned char
3168 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3169 echo "configure:3170: checking for uint32_t" >&5
3170 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 ac_cv_type_uint32_t=no
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #ifdef HAVE_INTTYPES_H
3178 #include <inttypes.h>
3180 #ifdef HAVE_STDINT_H
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 ac_cv_type_uint32_t=yes
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3202 if test "$ac_cv_type_uint32_t" != "yes"; then
3203 cat >> confdefs.h <<\EOF
3204 #define uint32_t unsigned int
3231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_func" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char $ac_func(); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3249 /* The GNU C library defines this for functions which it implements
3250 to always fail with ENOSYS. Some functions are actually named
3251 something starting with __ and the normal name is an alias. */
3252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262 eval "ac_cv_func_$ac_func=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_func_$ac_func=no"
3272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3275 cat >> confdefs.h <<EOF
3276 #define $ac_tr_func 1
3280 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3296 echo "configure:3297: checking whether $ac_func must be declared" >&5
3297 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 #ifdef HAVE_UNISTD_H
3315 #ifdef HAVE_RESOURCE_H
3316 #include <resource.h>
3318 #ifdef HAVE_GETOPT_H
3321 #ifdef HAVE_MALLOC_H
3330 #ifdef HAVE_SYS_SELECT_H
3331 #include <sys/select.h>
3339 #ifdef HAVE_SYSLOG_H
3342 #ifdef HAVE_INTTYPES_H
3343 #include <inttypes.h>
3345 #ifdef HAVE_STDINT_H
3348 #ifdef HAVE_ARPA_INET_H
3349 #include <arpa/inet.h>
3353 char *(*pfn) = (char *(*)) $ac_func
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 eval "radius_cv_decl_needed_$ac_func=no"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 eval "radius_cv_decl_needed_$ac_func=yes"
3368 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3370 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3371 cat >> confdefs.h <<EOF
3372 #define $radius_tr_decl 1
3376 echo "$ac_t""no" 1>&6
3382 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3383 echo "configure:3384: checking return type of signal handlers" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <sys/types.h>
3396 extern "C" void (*signal (int, void (*)(int)))(int);
3398 void (*signal ()) ();
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 ac_cv_type_signal=void
3409 echo "configure: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3412 ac_cv_type_signal=int
3417 echo "$ac_t""$ac_cv_type_signal" 1>&6
3418 cat >> confdefs.h <<EOF
3419 #define RETSIGTYPE $ac_cv_type_signal
3424 if test "x$ac_cv_header_utmpx_h" = "xyes"
3427 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
3428 echo "configure:3429: checking for ut_xtime in struct utmpx" >&5
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3437 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
3441 int foo = offsetof(struct utmpx, ut_xtime)
3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3455 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
3456 if test "x$has_element" != "x"; then
3457 echo "$ac_t""yes" 1>&6
3458 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
3460 echo "$ac_t""no" 1>&6
3461 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
3464 if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
3466 cat >> confdefs.h <<\EOF
3467 #define ut_xtime ut_tv.tv_sec
3474 echo $ac_n "checking for working const""... $ac_c" 1>&6
3475 echo "configure:3476: checking for working const" >&5
3476 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3485 /* Ultrix mips cc rejects this. */
3486 typedef int charset[2]; const charset x;
3487 /* SunOS 4.1.1 cc rejects this. */
3488 char const *const *ccp;
3490 /* NEC SVR4.0.2 mips cc rejects this. */
3491 struct point {int x, y;};
3492 static struct point const zero = {0,0};
3493 /* AIX XL C 1.02.0.0 rejects this.
3494 It does not let you subtract one const X* pointer from another in an arm
3495 of an if-expression whose if-part is not a constant expression */
3496 const char *g = "string";
3497 ccp = &g + (g ? g-g : 0);
3498 /* HPUX 7.0 cc rejects these. */
3501 ccp = (char const *const *) p;
3502 { /* SCO 3.2v4 cc rejects this. */
3504 char const *s = 0 ? (char *) 0 : (char const *) 0;
3508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3510 const int *foo = &x[0];
3513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3514 typedef const int *iptr;
3518 { /* AIX XL C 1.02.0.0 rejects this saying
3519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3520 struct s { int j; const int *ap[3]; };
3521 struct s *b; b->j = 5;
3523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3541 echo "$ac_t""$ac_cv_c_const" 1>&6
3542 if test $ac_cv_c_const = no; then
3543 cat >> confdefs.h <<\EOF
3550 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3551 echo "configure:3552: checking type of OS" >&5
3553 echo "$ac_t""$OS" 1>&6
3554 if test "$OS" = "OS/2"; then
3561 if test "x$GCC" = "xyes"; then
3562 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3565 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3566 echo "configure:3567: checking for developer gcc flags" >&5
3567 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3568 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3569 CFLAGS="$CFLAGS $devflags"
3571 echo "$ac_t""yes. Using $devflags" 1>&6
3574 CFLAGS="$CFLAGS -DNDEBUG"
3576 echo "$ac_t""no." 1>&6
3580 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3581 echo "configure:3582: checking for crypt in -lcrypt" >&5
3582 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 ac_save_LIBS="$LIBS"
3587 LIBS="-lcrypt $LIBS"
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error. */
3592 /* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 eval "ac_cv_lib_$ac_lib_var=no"
3610 LIBS="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3618 echo "$ac_t""no" 1>&6
3622 if test "$CRYPTLIB" != ""; then
3623 cat >> confdefs.h <<\EOF
3624 #define HAVE_CRYPT 1
3628 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3629 echo "configure:3630: checking for crypt" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637 which can conflict with char crypt(); below. */
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_crypt) || defined (__stub___crypt)
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3659 eval "ac_cv_func_crypt=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 eval "ac_cv_func_crypt=no"
3669 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 cat >> confdefs.h <<\EOF
3672 #define HAVE_CRYPT 1
3676 echo "$ac_t""no" 1>&6
3681 if test "x$WITH_SNMP" = "xyes"; then
3686 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3687 echo "configure:3688: checking for asn1.h" >&5
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3693 #ifdef HAVE_SYS_TYPES_H
3694 #include <sys/types.h>
3696 #ifdef HAVE_STDINT_H
3705 #ifdef HAVE_UNISTD_H
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3724 if test "x$SNMP_INCLUDE" = "x"; then
3725 old_CFLAGS="$CFLAGS"
3726 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3727 CFLAGS="$old_CFLAGS -I$try"
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3732 #ifdef HAVE_SYS_TYPES_H
3733 #include <sys/types.h>
3735 #ifdef HAVE_STDINT_H
3744 #ifdef HAVE_UNISTD_H
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 SNMP_INCLUDE="-I$try"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3762 if test "x$SNMP_INCLUDE" != "x"; then
3766 CFLAGS="$old_CFLAGS"
3769 if test "x$SNMP_INCLUDE" = "x"; then
3770 echo "$ac_t""no" 1>&6
3772 echo "$ac_t""yes" 1>&6
3773 cat >> confdefs.h <<\EOF
3774 #define HAVE_ASN1_H 1
3778 old_CFLAGS="$CFLAGS"
3779 CFLAGS="$CFLAGS $SNMP_INCLUDE"
3781 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3782 echo "configure:3783: checking for snmp.h" >&5
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3787 #ifdef HAVE_SYS_TYPES_H
3788 #include <sys/types.h>
3790 #ifdef HAVE_STDINT_H
3799 #ifdef HAVE_UNISTD_H
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_SNMP_H 1
3815 ac_cv_header_snmp_h=yes
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3821 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3822 echo "$ac_t""yes" 1>&6
3824 echo "$ac_t""no" 1>&6
3827 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3828 echo "configure:3829: checking for snmp_impl.h" >&5
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3833 #ifdef HAVE_SYS_TYPES_H
3834 #include <sys/types.h>
3836 #ifdef HAVE_STDINT_H
3845 #ifdef HAVE_UNISTD_H
3854 #include <snmp_impl.h>
3859 if { (eval echo configure:3860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3861 cat >> confdefs.h <<\EOF
3862 #define HAVE_SNMP_IMPL_H 1
3864 ac_cv_header_snmp_impl_h=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3870 if test "x$ac_cv_header_snmp_h" = "xyes"; then
3871 echo "$ac_t""yes" 1>&6
3873 echo "$ac_t""no" 1>&6
3876 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3877 echo "configure:3878: checking for snmp_build_var_op in -lsnmp" >&5
3880 LIBS="$old_LIBS -lsnmp"
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 extern char snmp_build_var_op();
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3900 if test "x$SNMP_LIBS" = "x"; then
3901 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3902 LIBS="$old_LIBS -L$try -lsnmp"
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 extern char snmp_build_var_op();
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3913 SNMP_LIBS="-L$try -lsnmp"
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3921 if test "x$SNMP_LIBS" != "x"; then
3924 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 extern char snmp_build_var_op();
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 SNMP_LIBS="-L$try -lsnmp -lcrypto"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3943 if test "x$SNMP_LIBS" != "x"; then
3950 CFLAGS="$old_CFLAGS"
3951 if test "x$SNMP_LIBS" = "x"; then
3952 echo "$ac_t""no" 1>&6
3955 echo "$ac_t""yes" 1>&6
3956 cat >> confdefs.h <<\EOF
3960 cat >> confdefs.h <<\EOF
3961 #define HAVE_LIBSNMP 1
3969 if test "X$ac_cv_func_sem_init" = "Xno"; then
3971 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
3972 echo "configure:3973: checking for sem_init in -lposix4" >&5
3973 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
3974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 ac_save_LIBS="$LIBS"
3978 LIBS="-lposix4 $LIBS"
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 eval "ac_cv_lib_$ac_lib_var=yes"
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 eval "ac_cv_lib_$ac_lib_var=no"
4001 LIBS="$ac_save_LIBS"
4004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4006 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4008 cat >> confdefs.h <<EOF
4009 #define $ac_tr_lib 1
4012 LIBS="-lposix4 $LIBS"
4015 echo "$ac_t""no" 1>&6
4019 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
4020 if test "$WITH_THREAD_POOL" = "yes"; then
4021 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
4031 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4032 echo "configure:4033: checking for isql.h" >&5
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4053 if test "x$ODBC_INCLUDE" = "x"; then
4054 old_CFLAGS="$CFLAGS"
4058 if test "x$LOCATE" != "x"; then
4062 for x in `${LOCATE} $file 2>/dev/null`; do
4063 base=`echo $x | sed "s%/${file}%%"`
4064 if test "x$x" = "x$base"; then
4068 dir=`${DIRNAME} $x 2>/dev/null`
4069 exclude=`echo ${dir} | ${GREP} /home`
4070 if test "x$exclude" != "x"; then
4074 already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4075 if test "x$already" = "x"; then
4081 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4084 for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4085 CFLAGS="$old_CFLAGS -I$try"
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4096 ODBC_INCLUDE="-I$try"
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4104 if test "x$ODBC_INCLUDE" != "x"; then
4108 CFLAGS="$old_CFLAGS"
4111 if test "x$ODBC_INCLUDE" = "x"; then
4112 echo "$ac_t""no" 1>&6
4114 echo "$ac_t""yes" 1>&6
4116 echo $ac_n "checking for odbc_init in -lodbcclient""... $ac_c" 1>&6
4117 echo "configure:4118: checking for odbc_init in -lodbcclient" >&5
4123 if test "x$LOCATE" != "x"; then
4125 file=libodbcclient${libltdl_cv_shlibext}
4127 for x in `${LOCATE} $file 2>/dev/null`; do
4128 base=`echo $x | sed "s%/${file}%%"`
4129 if test "x$x" = "x$base"; then
4133 dir=`${DIRNAME} $x 2>/dev/null`
4134 exclude=`echo ${dir} | ${GREP} /home`
4135 if test "x$exclude" != "x"; then
4139 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4140 if test "x$already" = "x"; then
4146 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4150 if test "x$LOCATE" != "x"; then
4152 file=libodbcclient.a
4154 for x in `${LOCATE} $file 2>/dev/null`; do
4155 base=`echo $x | sed "s%/${file}%%"`
4156 if test "x$x" = "x$base"; then
4160 dir=`${DIRNAME} $x 2>/dev/null`
4161 exclude=`echo ${dir} | ${GREP} /home`
4162 if test "x$exclude" != "x"; then
4166 already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4167 if test "x$already" = "x"; then
4173 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4176 for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4177 LIBS="$old_LIBS -L$try -lodbcclient"
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 extern char odbc_init();
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4188 ODBC_LIBS="-L$try -lodbcclient"
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4196 if test "x$ODBC_LIBS" != "x"; then
4202 if test "x$ODBC_LIBS" = "x"; then
4203 echo "$ac_t""no" 1>&6
4206 echo "$ac_t""yes" 1>&6
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_ISQL_H 1
4216 LIBTOOL="`pwd`/libtool"
4224 if test "$WITH_THREAD_POOL" = "yes"; then
4225 if test "$WITH_THREADS" != "yes"; then
4226 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4229 if test "X$PTHREADLIB" = "X"; then
4230 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4237 for foo in `find src/modules -name configure -print`; do
4238 bar=`echo $foo | sed 's%/configure$%%g'`
4239 mysubdirs="$mysubdirs $bar"
4242 subdirs="libltdl $mysubdirs"
4249 USE_SHARED_LIBS=$enable_shared
4251 USE_STATIC_LIBS=$enable_static
4260 cat > confcache <<\EOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs. It is not useful on other systems.
4264 # If it contains results you don't want to keep, you may remove or edit it.
4266 # By default, configure uses ./config.cache as the cache file,
4267 # creating it if it does not exist already. You can give configure
4268 # the --cache-file=FILE option to use a different cache file; that is
4269 # what configure does when it calls configure scripts in
4270 # subdirectories, so they share the cache.
4271 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4272 # config.status only pays attention to the cache file if you give it the
4273 # --recheck option to rerun configure.
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4282 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4284 # `set' does not quote correctly, so add quotes (double-quote substitution
4285 # turns \\\\ into \\, and sed turns \\ into \).
4287 -e "s/'/'\\\\''/g" \
4288 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4291 # `set' quotes correctly as required by POSIX, so do not add quotes.
4292 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4295 if cmp -s $cache_file confcache; then
4298 if test -w $cache_file; then
4299 echo "updating cache $cache_file"
4300 cat confcache > $cache_file
4302 echo "not updating unwritable cache $cache_file"
4307 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4310 # Let make expand exec_prefix.
4311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4313 # Any assignment to VPATH causes Sun make to only execute
4314 # the first set of double-colon rules, so remove it if not needed.
4315 # If there is a colon in the path, we need to keep it.
4316 if test "x$srcdir" = x.; then
4317 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4320 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4322 DEFS=-DHAVE_CONFIG_H
4324 # Without the "./", some shells look in PATH for config.status.
4325 : ${CONFIG_STATUS=./config.status}
4327 echo creating $CONFIG_STATUS
4328 rm -f $CONFIG_STATUS
4329 cat > $CONFIG_STATUS <<EOF
4331 # Generated automatically by configure.
4332 # Run this file to recreate the current configuration.
4333 # This directory was configured as follows,
4334 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4336 # $0 $ac_configure_args
4338 # Compiler output produced by configure, useful for debugging
4339 # configure, is in ./config.log if it exists.
4341 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4344 case "\$ac_option" in
4345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4346 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4347 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4348 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4349 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4351 -help | --help | --hel | --he | --h)
4352 echo "\$ac_cs_usage"; exit 0 ;;
4353 *) echo "\$ac_cs_usage"; exit 1 ;;
4357 ac_given_srcdir=$srcdir
4359 trap 'rm -fr `echo "\
4361 ./src/include/build-radpaths-h \
4362 ./src/main/checkrad.pl \
4363 ./src/main/radlast \
4364 ./src/main/radtest \
4365 ./scripts/rc.radiusd \
4366 ./scripts/radwatch \
4367 ./scripts/check-radiusd-config \
4368 ./scripts/radiusd.cron.daily \
4369 ./scripts/radiusd.cron.monthly \
4370 ./scripts/cryptpasswd \
4371 ./raddb/radiusd.conf
4372 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4374 cat >> $CONFIG_STATUS <<EOF
4376 # Protect against being on the right side of a sed subst in config.status.
4377 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4378 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4382 s%@CFLAGS@%$CFLAGS%g
4383 s%@CPPFLAGS@%$CPPFLAGS%g
4384 s%@CXXFLAGS@%$CXXFLAGS%g
4385 s%@FFLAGS@%$FFLAGS%g
4387 s%@LDFLAGS@%$LDFLAGS%g
4389 s%@exec_prefix@%$exec_prefix%g
4390 s%@prefix@%$prefix%g
4391 s%@program_transform_name@%$program_transform_name%g
4392 s%@bindir@%$bindir%g
4393 s%@sbindir@%$sbindir%g
4394 s%@libexecdir@%$libexecdir%g
4395 s%@datadir@%$datadir%g
4396 s%@sysconfdir@%$sysconfdir%g
4397 s%@sharedstatedir@%$sharedstatedir%g
4398 s%@localstatedir@%$localstatedir%g
4399 s%@libdir@%$libdir%g
4400 s%@includedir@%$includedir%g
4401 s%@oldincludedir@%$oldincludedir%g
4402 s%@infodir@%$infodir%g
4403 s%@mandir@%$mandir%g
4406 s%@RANLIB@%$RANLIB%g
4410 s%@host_alias@%$host_alias%g
4411 s%@host_cpu@%$host_cpu%g
4412 s%@host_vendor@%$host_vendor%g
4413 s%@host_os@%$host_os%g
4415 s%@build_alias@%$build_alias%g
4416 s%@build_cpu@%$build_cpu%g
4417 s%@build_vendor@%$build_vendor%g
4418 s%@build_os@%$build_os%g
4420 s%@LIBTOOL@%$LIBTOOL%g
4421 s%@logdir@%$logdir%g
4422 s%@radacctdir@%$radacctdir%g
4423 s%@raddbdir@%$raddbdir%g
4424 s%@subdirs@%$subdirs%g
4426 s%@SNMPGET@%$SNMPGET%g
4427 s%@SNMPWALK@%$SNMPWALK%g
4428 s%@RUSERS@%$RUSERS%g
4429 s%@ACLOCAL@%$ACLOCAL%g
4430 s%@AUTOCONF@%$AUTOCONF%g
4431 s%@AUTOHEADER@%$AUTOHEADER%g
4432 s%@LOCATE@%$LOCATE%g
4433 s%@DIRNAME@%$DIRNAME%g
4436 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4437 s%@LIBPREFIX@%$LIBPREFIX%g
4438 s%@CRYPTLIB@%$CRYPTLIB%g
4439 s%@SNMP_LIBS@%$SNMP_LIBS%g
4440 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4441 s%@ODBC_LIBS@%$ODBC_LIBS%g
4442 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4443 s%@LIBLTDL@%$LIBLTDL%g
4444 s%@INCLTDL@%$INCLTDL%g
4445 s%@top_builddir@%$top_builddir%g
4446 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4447 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4448 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4449 s%@STATIC_MODULES@%$STATIC_MODULES%g
4450 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
4451 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
4452 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4457 cat >> $CONFIG_STATUS <<\EOF
4459 # Split the substitutions into bite-sized pieces for seds with
4460 # small command number limits, like on Digital OSF/1 and HP-UX.
4461 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4462 ac_file=1 # Number of current file.
4463 ac_beg=1 # First line for current file.
4464 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4467 while $ac_more_lines; do
4468 if test $ac_beg -gt 1; then
4469 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4471 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4473 if test ! -s conftest.s$ac_file; then
4475 rm -f conftest.s$ac_file
4477 if test -z "$ac_sed_cmds"; then
4478 ac_sed_cmds="sed -f conftest.s$ac_file"
4480 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4482 ac_file=`expr $ac_file + 1`
4484 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4487 if test -z "$ac_sed_cmds"; then
4492 cat >> $CONFIG_STATUS <<EOF
4494 CONFIG_FILES=\${CONFIG_FILES-"\
4496 ./src/include/build-radpaths-h \
4497 ./src/main/checkrad.pl \
4498 ./src/main/radlast \
4499 ./src/main/radtest \
4500 ./scripts/rc.radiusd \
4501 ./scripts/radwatch \
4502 ./scripts/check-radiusd-config \
4503 ./scripts/radiusd.cron.daily \
4504 ./scripts/radiusd.cron.monthly \
4505 ./scripts/cryptpasswd \
4506 ./raddb/radiusd.conf
4509 cat >> $CONFIG_STATUS <<\EOF
4510 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4513 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4514 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4515 *) ac_file_in="${ac_file}.in" ;;
4518 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4520 # Remove last slash and all that follows it. Not all systems have dirname.
4521 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4523 # The file is in a subdirectory.
4524 test ! -d "$ac_dir" && mkdir "$ac_dir"
4525 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4526 # A "../" for each directory in $ac_dir_suffix.
4527 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4529 ac_dir_suffix= ac_dots=
4532 case "$ac_given_srcdir" in
4534 if test -z "$ac_dots"; then top_srcdir=.
4535 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4536 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4538 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4539 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4543 echo creating "$ac_file"
4545 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4547 *Makefile*) ac_comsub="1i\\
4548 # $configure_input" ;;
4552 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4554 s%@configure_input@%$configure_input%g
4555 s%@srcdir@%$srcdir%g
4556 s%@top_srcdir@%$top_srcdir%g
4557 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4561 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4562 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4564 # ac_d sets the value in "#define NAME VALUE" lines.
4565 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4566 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4569 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4570 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4571 ac_uB='\([ ]\)%\1#\2define\3'
4574 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4575 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4576 ac_eB='$%\1#\2define\3'
4580 if test "${CONFIG_HEADERS+set}" != set; then
4582 cat >> $CONFIG_STATUS <<EOF
4583 CONFIG_HEADERS="src/include/autoconf.h"
4585 cat >> $CONFIG_STATUS <<\EOF
4587 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4590 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4591 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4592 *) ac_file_in="${ac_file}.in" ;;
4595 echo creating $ac_file
4597 rm -f conftest.frag conftest.in conftest.out
4598 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4599 cat $ac_file_inputs > conftest.in
4603 # Transform confdefs.h into a sed script conftest.vals that substitutes
4604 # the proper values into config.h.in to produce config.h. And first:
4605 # Protect against being on the right side of a sed subst in config.status.
4606 # Protect against being in an unquoted here document in config.status.
4608 cat > conftest.hdr <<\EOF
4611 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4615 sed -n -f conftest.hdr confdefs.h > conftest.vals
4618 # This sed command replaces #undef with comments. This is necessary, for
4619 # example, in the case of _POSIX_SOURCE, which is predefined and required
4620 # on some systems where configure will not decide to define it.
4621 cat >> conftest.vals <<\EOF
4622 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4625 # Break up conftest.vals because some shells have a limit on
4626 # the size of here documents, and old seds have small limits too.
4631 ac_lines=`grep -c . conftest.vals`
4632 # grep -c gives empty output for an empty file on some AIX systems.
4633 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4634 # Write a limited-size here document to conftest.frag.
4635 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4636 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4638 sed -f conftest.frag conftest.in > conftest.out
4640 mv conftest.out conftest.in
4642 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4644 mv conftest.tail conftest.vals
4648 cat >> $CONFIG_STATUS <<\EOF
4649 rm -f conftest.frag conftest.h
4650 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4651 cat conftest.in >> conftest.h
4653 if cmp -s $ac_file conftest.h 2>/dev/null; then
4654 echo "$ac_file is unchanged"
4657 # Remove last slash and all that follows it. Not all systems have dirname.
4658 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4660 # The file is in a subdirectory.
4661 test ! -d "$ac_dir" && mkdir "$ac_dir"
4664 mv conftest.h $ac_file
4669 cat >> $CONFIG_STATUS <<EOF
4672 cat >> $CONFIG_STATUS <<\EOF
4676 chmod +x $CONFIG_STATUS
4677 rm -fr confdefs* $ac_clean_files
4678 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4680 if test "$no_recursion" != yes; then
4682 # Remove --cache-file and --srcdir arguments so they do not pile up.
4683 ac_sub_configure_args=
4685 for ac_arg in $ac_configure_args; do
4686 if test -n "$ac_prev"; then
4691 -cache-file | --cache-file | --cache-fil | --cache-fi \
4692 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4693 ac_prev=cache_file ;;
4694 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4695 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4697 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4699 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4701 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4705 for ac_config_dir in libltdl $mysubdirs; do
4707 # Do not complain, so a configure script can configure whichever
4708 # parts of a large source tree are present.
4709 if test ! -d $srcdir/$ac_config_dir; then
4713 echo configuring in $ac_config_dir
4718 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4720 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4728 # A "../" for each directory in /$ac_config_dir.
4729 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4732 .) # No --srcdir option. We are building in place.
4733 ac_sub_srcdir=$srcdir ;;
4734 /*) # Absolute path.
4735 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4737 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4740 # Check for guested configure; otherwise get Cygnus style configure.
4741 if test -f $ac_sub_srcdir/configure; then
4742 ac_sub_configure=$ac_sub_srcdir/configure
4743 elif test -f $ac_sub_srcdir/configure.in; then
4744 ac_sub_configure=$ac_configure
4746 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4750 # The recursion is here.
4751 if test -n "$ac_sub_configure"; then
4753 # Make the cache file name correct relative to the subdirectory.
4754 case "$cache_file" in
4755 /*) ac_sub_cache_file=$cache_file ;;
4757 ac_sub_cache_file="$ac_dots$cache_file" ;;
4760 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4761 # The eval makes quoting arguments work.
4762 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4765 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4779 echo timestamp > src/include/stamp-h
4780 (cd ./src/include && /bin/sh ./build-radpaths-h)
4781 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
4782 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
4784 cat >> src/include/autoconf.h <<EOF
4786 #define HOSTINFO "$host"
4787 #define RADIUSD_VERSION "$RADIUSD_VERSION"