3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-shadow Enable shadow password support"
23 --with-secure-path PATH setting for exec'ed programs"
25 --with-facility Syslog facility to use"
27 --enable-radius-116 Include support for Livingston's RADIUS server 1.16"
29 --enable-scp Add service type hints derived from username prefix"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.12"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=src/radlogin.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
541 ac_install_sh="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh; then
545 ac_install_sh="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # Do some error checking and defaulting for the host and target type.
559 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
562 # 1. You are not allowed to specify --host, --target, and nonopt at the
564 # 2. Host defaults to nonopt.
565 # 3. If nonopt is not specified, then host defaults to the current host,
566 # as determined by config.guess.
567 # 4. Target and build default to nonopt.
568 # 5. If nonopt is not specified, then target and build default to host.
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---*---* | *---NONE---* | *---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578 # Make sure we can run config.sub.
579 if $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
587 case "$host_alias" in
591 if host_alias=`$ac_config_guess`; then :
592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594 *) host_alias=$nonopt ;;
598 host=`$ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
608 case "$target_alias" in
611 NONE) target_alias=$host_alias ;;
612 *) target_alias=$nonopt ;;
616 target=`$ac_config_sub $target_alias`
617 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
626 case "$build_alias" in
629 NONE) build_alias=$host_alias ;;
630 *) build_alias=$nonopt ;;
634 build=`$ac_config_sub $build_alias`
635 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
640 test "$host_alias" != "$target_alias" &&
641 test "$program_prefix$program_suffix$program_transform_name" = \
643 program_prefix=${target_alias}-
651 # Find a good install program. We prefer a C program (faster),
652 # so one script is as good as another. But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
660 # ./install, which can be erroneously created by make from ./install.sh.
661 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
662 echo "configure:663: checking for a BSD compatible install" >&5
663 if test -z "$INSTALL"; then
664 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
668 for ac_dir in $PATH; do
669 # Account for people who put trailing slashes in PATH elements.
671 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
673 # OSF1 and SCO ODT 3.0 have their own names for install.
674 for ac_prog in ginstall installbsd scoinst install; do
675 if test -f $ac_dir/$ac_prog; then
676 if test $ac_prog = install &&
677 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
678 # AIX install. It has an incompatible calling convention.
679 # OSF/1 installbsd also uses dspmsg, but is usable.
682 ac_cv_path_install="$ac_dir/$ac_prog -c"
693 if test "${ac_cv_path_install+set}" = set; then
694 INSTALL="$ac_cv_path_install"
696 # As a last resort, use the slow shell script. We don't cache a
697 # path for INSTALL within a source directory, because that will
698 # break other packages using the cache if that directory is
699 # removed, or if the path is relative.
700 INSTALL="$ac_install_sh"
703 echo "$ac_t""$INSTALL" 1>&6
705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
706 # It thinks the first close brace ends the variable substitution.
707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
714 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
715 echo "configure:716: checking whether build environment is sane" >&5
718 echo timestamp > conftestfile
719 # Do `set' in a subshell so we don't clobber the current shell's
720 # arguments. Must try -L first in case configure is actually a
721 # symlink; some systems play weird games with the mod time of symlinks
722 # (eg FreeBSD returns the mod time of the symlink's containing
725 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
726 if test "$*" = "X"; then
728 set X `ls -t $srcdir/configure conftestfile`
730 if test "$*" != "X $srcdir/configure conftestfile" \
731 && test "$*" != "X conftestfile $srcdir/configure"; then
733 # If neither matched, then we have a broken ls. This can happen
734 # if, for instance, CONFIG_SHELL is bash and it inherits a
735 # broken ls alias from the environment. This has actually
736 # happened. Such a system could not be considered "sane".
737 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
738 alias in your environment" 1>&2; exit 1; }
741 test "$2" = conftestfile
747 { echo "configure: error: newly created file is older than distributed files!
748 Check your system clock" 1>&2; exit 1; }
751 echo "$ac_t""yes" 1>&6
752 if test "$program_transform_name" = s,x,x,; then
753 program_transform_name=
755 # Double any \ or $. echo might interpret backslashes.
756 cat <<\EOF_SED > conftestsed
757 s,\\,\\\\,g; s,\$,$$,g
759 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
762 test "$program_prefix" != NONE &&
763 program_transform_name="s,^,${program_prefix},; $program_transform_name"
764 # Use a double $ so make ignores it.
765 test "$program_suffix" != NONE &&
766 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
768 # sed with no file args requires a program.
769 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
772 echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
773 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 cat > conftestmake <<\EOF
779 @echo 'ac_maketemp="${MAKE}"'
781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783 if test -n "$ac_maketemp"; then
784 eval ac_cv_prog_make_${ac_make}_set=yes
786 eval ac_cv_prog_make_${ac_make}_set=no
790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791 echo "$ac_t""yes" 1>&6
794 echo "$ac_t""no" 1>&6
795 SET_MAKE="MAKE=${MAKE-make}"
803 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
806 cat >> confdefs.h <<EOF
807 #define PACKAGE "$PACKAGE"
810 cat >> confdefs.h <<EOF
811 #define VERSION "$VERSION"
816 missing_dir=`cd $ac_aux_dir && pwd`
817 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
818 echo "configure:819: checking for working aclocal" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
824 echo "$ac_t""found" 1>&6
826 ACLOCAL="$missing_dir/missing aclocal"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoconf" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
837 echo "$ac_t""found" 1>&6
839 AUTOCONF="$missing_dir/missing autoconf"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working automake""... $ac_c" 1>&6
844 echo "configure:845: checking for working automake" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (automake --version) < /dev/null > /dev/null 2>&1; then
850 echo "$ac_t""found" 1>&6
852 AUTOMAKE="$missing_dir/missing automake"
853 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
857 echo "configure:858: checking for working autoheader" >&5
858 # Run test in a subshell; some versions of sh will print an error if
859 # an executable is not found, even if stderr is redirected.
860 # Redirect stdin to placate older versions of autoconf. Sigh.
861 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
862 AUTOHEADER=autoheader
863 echo "$ac_t""found" 1>&6
865 AUTOHEADER="$missing_dir/missing autoheader"
866 echo "$ac_t""missing" 1>&6
869 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
870 echo "configure:871: checking for working makeinfo" >&5
871 # Run test in a subshell; some versions of sh will print an error if
872 # an executable is not found, even if stderr is redirected.
873 # Redirect stdin to placate older versions of autoconf. Sigh.
874 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
876 echo "$ac_t""found" 1>&6
878 MAKEINFO="$missing_dir/missing makeinfo"
879 echo "$ac_t""missing" 1>&6
887 pkgsysconfdir=${sysconfdir}/$PACKAGE
890 # Extract the first word of "gcc", so it can be a program name with args.
891 set dummy gcc; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test.
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
901 for ac_dir in $PATH; do
902 test -z "$ac_dir" && ac_dir=.
903 if test -f $ac_dir/$ac_word; then
912 if test -n "$CC"; then
913 echo "$ac_t""$CC" 1>&6
915 echo "$ac_t""no" 1>&6
918 if test -z "$CC"; then
919 # Extract the first word of "cc", so it can be a program name with args.
920 set dummy cc; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 echo "configure:923: checking for $ac_word" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 if test -n "$CC"; then
927 ac_cv_prog_CC="$CC" # Let the user override the test.
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
931 for ac_dir in $PATH; do
932 test -z "$ac_dir" && ac_dir=.
933 if test -f $ac_dir/$ac_word; then
934 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
943 if test $ac_prog_rejected = yes; then
944 # We found a bogon in the path, so make sure we never use it.
945 set dummy $ac_cv_prog_CC
947 if test $# -gt 0; then
948 # We chose a different compiler from the bogus one.
949 # However, it has the same basename, so the bogon will be chosen
950 # first if we set CC to just the basename; use the full file name.
952 set dummy "$ac_dir/$ac_word" "$@"
960 if test -n "$CC"; then
961 echo "$ac_t""$CC" 1>&6
963 echo "$ac_t""no" 1>&6
966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977 cross_compiling=$ac_cv_prog_cc_cross
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
984 if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
985 ac_cv_prog_cc_works=yes
986 # If we can't run a trivial program, we are probably using a cross compiler.
987 if (./conftest; exit) 2>/dev/null; then
988 ac_cv_prog_cc_cross=no
990 ac_cv_prog_cc_cross=yes
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995 ac_cv_prog_cc_works=no
999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1000 if test $ac_cv_prog_cc_works = no; then
1001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether we are using GNU C" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 cat > conftest.c <<EOF
1018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1027 if test $ac_cv_prog_gcc = yes; then
1029 ac_test_CFLAGS="${CFLAGS+set}"
1030 ac_save_CFLAGS="$CFLAGS"
1032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 echo 'void f(){}' > conftest.c
1038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1048 if test "$ac_test_CFLAGS" = set; then
1049 CFLAGS="$ac_save_CFLAGS"
1050 elif test $ac_cv_prog_cc_g = yes; then
1057 test "${CFLAGS+set}" = set || CFLAGS="-g"
1061 # Extract the first word of "ar", so it can be a program name with args.
1062 set dummy ar; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1070 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1074 for ac_dir in $PATH; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f $ac_dir/$ac_word; then
1077 ac_cv_path_AR="$ac_dir/$ac_word"
1086 if test -n "$AR"; then
1087 echo "$ac_t""$AR" 1>&6
1089 echo "$ac_t""no" 1>&6
1092 # Extract the first word of "ranlib", so it can be a program name with args.
1093 set dummy ranlib; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 if test -n "$RANLIB"; then
1100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1103 for ac_dir in $PATH; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1122 if test "${with_gnu_ld+set}" = set; then
1123 withval="$with_gnu_ld"
1124 test "$withval" = no || with_gnu_ld=yes
1131 if test "$ac_cv_prog_gcc" = yes; then
1132 # Check if gcc -print-prog-name=ld gives a path.
1133 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1134 echo "configure:1135: checking for ld used by GCC" >&5
1135 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1137 # Accept absolute paths.
1139 test -z "$LD" && LD="$ac_prog"
1142 # If it fails, then pretend we aren't using GCC.
1146 # If it is relative, then search for the first ld in PATH.
1150 elif test "$with_gnu_ld" = yes; then
1151 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1152 echo "configure:1153: checking for GNU ld" >&5
1154 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1155 echo "configure:1156: checking for non-GNU ld" >&5
1157 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -z "$LD"; then
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1162 for ac_dir in $PATH; do
1163 test -z "$ac_dir" && ac_dir=.
1164 if test -f "$ac_dir/$ac_prog"; then
1165 ac_cv_path_LD="$ac_dir/$ac_prog"
1166 # Check to see if the program is GNU ld. I'd rather use --version,
1167 # but apparently some GNU ld's only accept -v.
1168 # Break only if it was the GNU/non-GNU ld that we prefer.
1169 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1170 test "$with_gnu_ld" != no && break
1172 test "$with_gnu_ld" != yes && break
1178 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1183 if test -n "$LD"; then
1184 echo "$ac_t""$LD" 1>&6
1186 echo "$ac_t""no" 1>&6
1188 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1190 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1191 echo "configure:1192: checking if the linker ($LD) is GNU ld" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1196 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1197 ac_cv_prog_gnu_ld=yes
1199 ac_cv_prog_gnu_ld=no
1203 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1206 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1207 echo "configure:1208: checking for BSD-compatible nm" >&5
1208 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1213 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1217 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1218 test -z "$ac_dir" && dir=.
1219 if test -f $ac_dir/nm; then
1220 # Check to see if the nm accepts a BSD-compat flag.
1221 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1222 # nm: unknown option "B" ignored
1223 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1224 ac_cv_path_NM="$ac_dir/nm -B"
1225 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1226 ac_cv_path_NM="$ac_dir/nm -p"
1228 ac_cv_path_NM="$ac_dir/nm"
1234 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1240 echo "$ac_t""$NM" 1>&6
1243 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ln -s works" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1249 if ln -s X conftestdata 2>/dev/null
1252 ac_cv_prog_LN_S="ln -s"
1257 LN_S="$ac_cv_prog_LN_S"
1258 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1259 echo "$ac_t""yes" 1>&6
1261 echo "$ac_t""no" 1>&6
1271 # Always use our own libtool.
1272 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1275 # Check whether --enable-shared or --disable-shared was given.
1276 if test "${enable_shared+set}" = set; then
1277 enableval="$enable_shared"
1278 if test "$enableval" = no; then
1279 libtool_enable_shared=no
1281 libtool_enable_shared=yes
1285 test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
1287 test "$enable_shared" = no && libtool_shared=" --disable-shared"
1289 # Check whether --enable-static or --disable-static was given.
1290 if test "${enable_static+set}" = set; then
1291 enableval="$enable_static"
1292 if test "$enableval" = no; then
1293 libtool_enable_static=no
1295 libtool_enable_static=yes
1299 test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
1301 test "$enable_static" = no && libtool_static=" --disable-static"
1303 libtool_flags="$libtool_shared$libtool_static"
1304 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1305 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1306 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1308 # Some flags need to be propagated to the compiler or linker for good
1312 ac_save_CFLAGS="$CFLAGS"
1314 for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do
1317 test -n "$SGI_ABI" && flag_passed=yes
1318 if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then
1319 # Choose the ABI flag according to GCC's specs.
1320 if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[ ]-32' >/dev/null; then
1329 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1336 CFLAGS="$ac_save_CFLAGS"
1340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1341 CFLAGS="$CFLAGS -belf"
1345 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1346 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1347 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1348 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1349 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1350 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1353 echo $ac_n "checking whether to include shadow password support""... $ac_c" 1>&6
1354 echo "configure:1355: checking whether to include shadow password support" >&5
1355 # Check whether --enable-shadow or --disable-shadow was given.
1356 if test "${enable_shadow+set}" = set; then
1357 enableval="$enable_shadow"
1359 echo "$ac_t""yes" 1>&6
1360 cat >> confdefs.h <<\EOF
1361 #define HAVE_SHADOW_PASSWORDS 1
1364 shadow_passwords=yes
1368 echo "$ac_t""no" 1>&6
1375 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1376 echo "configure:1377: checking for gethostbyname in -lnsl" >&5
1377 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_save_LIBS="$LIBS"
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1389 char gethostbyname();
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1397 eval "ac_cv_lib_$ac_lib_var=yes"
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 eval "ac_cv_lib_$ac_lib_var=no"
1405 LIBS="$ac_save_LIBS"
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1411 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1412 cat >> confdefs.h <<EOF
1413 #define $ac_tr_lib 1
1419 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1423 echo "configure:1424: checking for socket in -lsocket" >&5
1424 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 ac_save_LIBS="$LIBS"
1429 LIBS="-lsocket $LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1444 eval "ac_cv_lib_$ac_lib_var=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_lib_$ac_lib_var=no"
1452 LIBS="$ac_save_LIBS"
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1459 cat >> confdefs.h <<EOF
1460 #define $ac_tr_lib 1
1463 LIBS="-lsocket $LIBS"
1466 echo "$ac_t""no" 1>&6
1469 if test "$shadow_passwords" = "yes"
1471 echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6
1472 echo "configure:1473: checking for getspnam in -lc" >&5
1473 ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'`
1474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 ac_save_LIBS="$LIBS"
1479 cat > conftest.$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1482 /* Override any gcc2 internal prototype to avoid an error. */
1483 /* We use char because int might match the return type of a gcc2
1484 builtin and then its argument prototype would still apply. */
1491 if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1493 eval "ac_cv_lib_$ac_lib_var=yes"
1495 echo "configure: failed program was:" >&5
1496 cat conftest.$ac_ext >&5
1498 eval "ac_cv_lib_$ac_lib_var=no"
1501 LIBS="$ac_save_LIBS"
1504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505 echo "$ac_t""yes" 1>&6
1508 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1510 echo "configure:1511: checking for getspnam in -lshadow" >&5
1511 ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 ac_save_LIBS="$LIBS"
1516 LIBS="-lshadow $LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error. */
1521 /* We use char because int might match the return type of a gcc2
1522 builtin and then its argument prototype would still apply. */
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1531 eval "ac_cv_lib_$ac_lib_var=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 eval "ac_cv_lib_$ac_lib_var=no"
1539 LIBS="$ac_save_LIBS"
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543 echo "$ac_t""yes" 1>&6
1544 LIBS="$LIBS -lshadow"
1547 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1555 echo "configure:1556: checking for crypt in -lcrypt" >&5
1556 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 ac_save_LIBS="$LIBS"
1561 LIBS="-lcrypt $LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error. */
1566 /* We use char because int might match the return type of a gcc2
1567 builtin and then its argument prototype would still apply. */
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1576 eval "ac_cv_lib_$ac_lib_var=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 eval "ac_cv_lib_$ac_lib_var=no"
1584 LIBS="$ac_save_LIBS"
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1589 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1591 cat >> confdefs.h <<EOF
1592 #define $ac_tr_lib 1
1595 LIBS="-lcrypt $LIBS"
1598 echo "$ac_t""no" 1>&6
1603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1606 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_hdr that defines DIR" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <sys/types.h>
1620 if { (eval echo configure:1621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1622 eval "ac_cv_header_dirent_$ac_safe=yes"
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1627 eval "ac_cv_header_dirent_$ac_safe=no"
1631 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1634 cat >> confdefs.h <<EOF
1635 #define $ac_tr_hdr 1
1637 ac_header_dirent=$ac_hdr; break
1639 echo "$ac_t""no" 1>&6
1642 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1643 if test $ac_header_dirent = dirent.h; then
1644 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1645 echo "configure:1646: checking for opendir in -ldir" >&5
1646 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 ac_save_LIBS="$LIBS"
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 /* Override any gcc2 internal prototype to avoid an error. */
1656 /* We use char because int might match the return type of a gcc2
1657 builtin and then its argument prototype would still apply. */
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1666 eval "ac_cv_lib_$ac_lib_var=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_lib_$ac_lib_var=no"
1674 LIBS="$ac_save_LIBS"
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1681 echo "$ac_t""no" 1>&6
1685 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1686 echo "configure:1687: checking for opendir in -lx" >&5
1687 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 ac_save_LIBS="$LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error. */
1697 /* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1712 eval "ac_cv_lib_$ac_lib_var=no"
1715 LIBS="$ac_save_LIBS"
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1722 echo "$ac_t""no" 1>&6
1727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1728 echo "configure:1729: checking how to run the C preprocessor" >&5
1729 # On Suns, sometimes $CPP names a directory.
1730 if test -n "$CPP" && test -d "$CPP"; then
1733 if test -z "$CPP"; then
1734 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 # This must be in double quotes, not single quotes, because CPP may get
1738 # substituted into the Makefile and "${CC-cc}" will confuse make.
1740 # On the NeXT, cc -E runs the code through the compiler's parser,
1741 # not just through cpp.
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750 ac_err=`grep -v '^ *+' conftest.out`
1751 if test -z "$ac_err"; then
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1758 CPP="${CC-cc} -E -traditional-cpp"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out`
1768 if test -z "$ac_err"; then
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1780 ac_cv_prog_CPP="$CPP"
1782 CPP="$ac_cv_prog_CPP"
1784 ac_cv_prog_CPP="$CPP"
1786 echo "$ac_t""$CPP" 1>&6
1788 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1789 echo "configure:1790: checking for ANSI C header files" >&5
1790 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out`
1804 if test -z "$ac_err"; then
1806 ac_cv_header_stdc=yes
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 ac_cv_header_stdc=no
1816 if test $ac_cv_header_stdc = yes; then
1817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1824 egrep "memchr" >/dev/null 2>&1; then
1828 ac_cv_header_stdc=no
1834 if test $ac_cv_header_stdc = yes; then
1835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1842 egrep "free" >/dev/null 2>&1; then
1846 ac_cv_header_stdc=no
1852 if test $ac_cv_header_stdc = yes; then
1853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1854 if test "$cross_compiling" = yes; then
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1861 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1862 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1864 int main () { int i; for (i = 0; i < 256; i++)
1865 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 ac_cv_header_stdc=no
1884 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1885 if test $ac_cv_header_stdc = yes; then
1886 cat >> confdefs.h <<\EOF
1887 #define STDC_HEADERS 1
1892 for ac_hdr in crypt.h signal.h sys/signal.h sys/stat.h
1894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_hdr" >&5
1897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err=`grep -v '^ *+' conftest.out`
1908 if test -z "$ac_err"; then
1910 eval "ac_cv_header_$ac_safe=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_header_$ac_safe=no"
1920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1921 echo "$ac_t""yes" 1>&6
1922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1923 cat >> confdefs.h <<EOF
1924 #define $ac_tr_hdr 1
1928 echo "$ac_t""no" 1>&6
1932 for ac_hdr in fcntl.h sys/fcntl.h
1934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_hdr" >&5
1937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1946 { (eval echo configure:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1947 ac_err=`grep -v '^ *+' conftest.out`
1948 if test -z "$ac_err"; then
1950 eval "ac_cv_header_$ac_safe=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 eval "ac_cv_header_$ac_safe=no"
1960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1961 echo "$ac_t""yes" 1>&6
1962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1963 cat >> confdefs.h <<EOF
1964 #define $ac_tr_hdr 1
1968 echo "$ac_t""no" 1>&6
1972 for ac_hdr in sys/utsname.h getopt.h unistd.h
1974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_hdr" >&5
1977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1986 { (eval echo configure:1987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1987 ac_err=`grep -v '^ *+' conftest.out`
1988 if test -z "$ac_err"; then
1990 eval "ac_cv_header_$ac_safe=yes"
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1996 eval "ac_cv_header_$ac_safe=no"
2000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2003 cat >> confdefs.h <<EOF
2004 #define $ac_tr_hdr 1
2008 echo "$ac_t""no" 1>&6
2012 for ac_hdr in sys/file.h termios.h sys/ioctl.h
2014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_hdr" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out`
2028 if test -z "$ac_err"; then
2030 eval "ac_cv_header_$ac_safe=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 eval "ac_cv_header_$ac_safe=no"
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2043 cat >> confdefs.h <<EOF
2044 #define $ac_tr_hdr 1
2048 echo "$ac_t""no" 1>&6
2052 if test "$shadow_passwords" = "yes"
2054 ac_safe=`echo "shadow.h" | sed 'y%./+-%__p_%'`
2055 echo $ac_n "checking for shadow.h""... $ac_c" 1>&6
2056 echo "configure:2057: checking for shadow.h" >&5
2057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2066 { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2067 ac_err=`grep -v '^ *+' conftest.out`
2068 if test -z "$ac_err"; then
2070 eval "ac_cv_header_$ac_safe=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 eval "ac_cv_header_$ac_safe=no"
2080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2084 echo "$ac_t""no" 1>&6
2090 echo $ac_n "checking for working const""... $ac_c" 1>&6
2091 echo "configure:2092: checking for working const" >&5
2092 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2101 /* Ultrix mips cc rejects this. */
2102 typedef int charset[2]; const charset x;
2103 /* SunOS 4.1.1 cc rejects this. */
2104 char const *const *ccp;
2106 /* NEC SVR4.0.2 mips cc rejects this. */
2107 struct point {int x, y;};
2108 static struct point const zero = {0,0};
2109 /* AIX XL C 1.02.0.0 rejects this.
2110 It does not let you subtract one const X* pointer from another in an arm
2111 of an if-expression whose if-part is not a constant expression */
2112 const char *g = "string";
2113 ccp = &g + (g ? g-g : 0);
2114 /* HPUX 7.0 cc rejects these. */
2117 ccp = (char const *const *) p;
2118 { /* SCO 3.2v4 cc rejects this. */
2120 char const *s = 0 ? (char *) 0 : (char const *) 0;
2124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2126 const int *foo = &x[0];
2129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2130 typedef const int *iptr;
2134 { /* AIX XL C 1.02.0.0 rejects this saying
2135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2136 struct s { int j; const int *ap[3]; };
2137 struct s *b; b->j = 5;
2139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2145 if { (eval echo configure:2146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2157 echo "$ac_t""$ac_cv_c_const" 1>&6
2158 if test $ac_cv_c_const = no; then
2159 cat >> confdefs.h <<\EOF
2165 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2166 echo "configure:2167: checking for off_t" >&5
2167 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 #include <sys/types.h>
2179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2180 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2182 ac_cv_type_off_t=yes
2190 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2191 if test $ac_cv_type_off_t = no; then
2192 cat >> confdefs.h <<\EOF
2198 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2199 echo "configure:2200: checking for size_t" >&5
2200 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2215 ac_cv_type_size_t=yes
2218 ac_cv_type_size_t=no
2223 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2224 if test $ac_cv_type_size_t = no; then
2225 cat >> confdefs.h <<\EOF
2226 #define size_t unsigned
2231 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether time.h and sys/time.h may both be included" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <sys/types.h>
2240 #include <sys/time.h>
2246 if { (eval echo configure:2247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2248 ac_cv_header_time=yes
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 ac_cv_header_time=no
2258 echo "$ac_t""$ac_cv_header_time" 1>&6
2259 if test $ac_cv_header_time = yes; then
2260 cat >> confdefs.h <<\EOF
2261 #define TIME_WITH_SYS_TIME 1
2266 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether struct tm is in sys/time.h or time.h" >&5
2268 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2277 struct tm *tp; tp->tm_sec;
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_struct_tm=time.h
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 ac_cv_struct_tm=sys/time.h
2292 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2293 if test $ac_cv_struct_tm = sys/time.h; then
2294 cat >> confdefs.h <<\EOF
2295 #define TM_IN_SYS_TIME 1
2301 if test $ac_cv_prog_gcc = yes; then
2302 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2303 echo "configure:2304: checking whether ${CC-cc} needs -traditional" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_pattern="Autoconf.*'x'"
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "$ac_pattern" >/dev/null 2>&1; then
2317 ac_cv_prog_gcc_traditional=yes
2320 ac_cv_prog_gcc_traditional=no
2325 if test $ac_cv_prog_gcc_traditional = no; then
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "$ac_pattern" >/dev/null 2>&1; then
2335 ac_cv_prog_gcc_traditional=yes
2342 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2343 if test $ac_cv_prog_gcc_traditional = yes; then
2344 CC="$CC -traditional"
2348 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2349 echo "configure:2350: checking for 8-bit clean memcmp" >&5
2350 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 if test "$cross_compiling" = yes; then
2354 ac_cv_func_memcmp_clean=no
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2362 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2363 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2369 ac_cv_func_memcmp_clean=yes
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 ac_cv_func_memcmp_clean=no
2381 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2382 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2384 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2385 echo "configure:2386: checking whether setvbuf arguments are reversed" >&5
2386 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 if test "$cross_compiling" = yes; then
2390 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2396 /* If setvbuf has the reversed format, exit 0. */
2398 /* This call has the arguments reversed.
2399 A reversed system may check and see that the address of main
2400 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2401 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2404 exit(0); /* Non-reversed systems segv here. */
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2409 ac_cv_func_setvbuf_reversed=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 ac_cv_func_setvbuf_reversed=no
2419 rm -f core core.* *.core
2422 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2423 if test $ac_cv_func_setvbuf_reversed = yes; then
2424 cat >> confdefs.h <<\EOF
2425 #define SETVBUF_REVERSED 1
2430 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2431 echo "configure:2432: checking return type of signal handlers" >&5
2432 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 #include <sys/types.h>
2444 extern "C" void (*signal (int, void (*)(int)))(int);
2446 void (*signal ()) ();
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 ac_cv_type_signal=void
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2460 ac_cv_type_signal=int
2465 echo "$ac_t""$ac_cv_type_signal" 1>&6
2466 cat >> confdefs.h <<EOF
2467 #define RETSIGTYPE $ac_cv_type_signal
2471 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2472 echo "configure:2473: checking for strftime" >&5
2473 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 /* System header to define __stub macros and hopefully few prototypes,
2480 which can conflict with char strftime(); below. */
2482 /* Override any gcc2 internal prototype to avoid an error. */
2483 /* We use char because int might match the return type of a gcc2
2484 builtin and then its argument prototype would still apply. */
2489 /* The GNU C library defines this for functions which it implements
2490 to always fail with ENOSYS. Some functions are actually named
2491 something starting with __ and the normal name is an alias. */
2492 #if defined (__stub_strftime) || defined (__stub___strftime)
2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2502 eval "ac_cv_func_strftime=yes"
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2507 eval "ac_cv_func_strftime=no"
2512 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 cat >> confdefs.h <<\EOF
2515 #define HAVE_STRFTIME 1
2519 echo "$ac_t""no" 1>&6
2520 # strftime is in -lintl on SCO UNIX.
2521 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2522 echo "configure:2523: checking for strftime in -lintl" >&5
2523 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_save_LIBS="$LIBS"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error. */
2533 /* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2543 eval "ac_cv_lib_$ac_lib_var=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_lib_$ac_lib_var=no"
2551 LIBS="$ac_save_LIBS"
2554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 cat >> confdefs.h <<\EOF
2557 #define HAVE_STRFTIME 1
2562 echo "$ac_t""no" 1>&6
2567 for ac_func in strdup strerror strcasecmp
2569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_func" >&5
2571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 /* System header to define __stub macros and hopefully few prototypes,
2578 which can conflict with char $ac_func(); below. */
2580 /* Override any gcc2 internal prototype to avoid an error. */
2581 /* We use char because int might match the return type of a gcc2
2582 builtin and then its argument prototype would still apply. */
2587 /* The GNU C library defines this for functions which it implements
2588 to always fail with ENOSYS. Some functions are actually named
2589 something starting with __ and the normal name is an alias. */
2590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2600 eval "ac_cv_func_$ac_func=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2605 eval "ac_cv_func_$ac_func=no"
2610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_func 1
2618 echo "$ac_t""no" 1>&6
2619 LIBOBJS="$LIBOBJS ${ac_func}.o"
2624 for ac_func in flock fcntl uname gethostname sysinfo getdomainname
2626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_func" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char $ac_func(); below. */
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2657 eval "ac_cv_func_$ac_func=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 eval "ac_cv_func_$ac_func=no"
2667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_func 1
2675 echo "$ac_t""no" 1>&6
2679 for ac_func in stricmp random rand snprintf vsnprintf
2681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_func" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* System header to define __stub macros and hopefully few prototypes,
2690 which can conflict with char $ac_func(); below. */
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 /* We use char because int might match the return type of a gcc2
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2712 eval "ac_cv_func_$ac_func=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_func_$ac_func=no"
2722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_func 1
2730 echo "$ac_t""no" 1>&6
2735 if test "$ac_cv_func_uname" = 'yes'
2737 echo $ac_n "checking for field domainname in struct utsname""... $ac_c" 1>&6
2738 echo "configure:2739: checking for field domainname in struct utsname" >&5
2739 if test "$cross_compiling" = yes; then
2740 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2746 #include <sys/utsname.h>
2748 main(int argc, char **argv)
2751 uts.domainname[0] = '\0';
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2757 echo "$ac_t""yes" 1>&6
2758 cat >> confdefs.h <<\EOF
2759 #define HAVE_STRUCT_UTSNAME_DOMAINNAME 1
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 echo "$ac_t""no" 1>&6
2774 echo $ac_n "checking for /dev/urandom""... $ac_c" 1>&6
2775 echo "configure:2776: checking for /dev/urandom" >&5
2776 if test -c /dev/urandom
2778 echo "$ac_t""yes" 1>&6
2779 cat >> confdefs.h <<\EOF
2780 #define HAVE_DEV_URANDOM 1
2784 echo "$ac_t""no" 1>&6
2787 echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6
2788 # Check whether --with-secure-path or --without-secure-path was given.
2789 if test "${with_secure_path+set}" = set; then
2790 withval="$with_secure_path"
2792 echo "$ac_t""$withval" 1>&6
2793 RC_SECURE_PATH=$withval
2797 echo "$ac_t""/bin:/usr/bin:/usr/local/bin" 1>&6
2798 RC_SECURE_PATH=/bin:/usr/bin:/usr/local/bin
2804 echo $ac_n "checking which syslog facility to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking which syslog facility to use" >&5
2806 # Check whether --with-facility or --without-facility was given.
2807 if test "${with_facility+set}" = set; then
2808 withval="$with_facility"
2810 echo "$ac_t""$withval" 1>&6
2811 RC_LOG_FACILITY=$withval
2815 echo "$ac_t""LOG_DAEMON" 1>&6
2816 RC_LOG_FACILITY=LOG_DAEMON
2822 echo $ac_n "checking whether to include Livingston's RADIUS server 1.16 kludge""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether to include Livingston's RADIUS server 1.16 kludge" >&5
2824 # Check whether --enable-radius-116 or --disable-radius-116 was given.
2825 if test "${enable_radius_116+set}" = set; then
2826 enableval="$enable_radius_116"
2828 echo "$ac_t""yes" 1>&6
2829 cat >> confdefs.h <<\EOF
2830 #define RADIUS_116 1
2833 echo "configure: warning: !! This is a bug in Livingston's RADIUS server v1.16. There" 1>&2
2834 echo "configure: warning: !! is a patch included with radiusclient which fixes this" 1>&2
2835 echo "configure: warning: !! problem. See patches/radiusd-1.16.accounting.diff. With" 1>&2
2836 echo "configure: warning: !! the patched RADIUS server you no longer need to activate" 1>&2
2837 echo "configure: warning: !! this hack." 1>&2
2841 echo "$ac_t""no" 1>&6
2847 echo $ac_n "checking whether to add service type hints derived from username prefix""... $ac_c" 1>&6
2848 echo "configure:2849: checking whether to add service type hints derived from username prefix" >&5
2849 # Check whether --enable-scp or --disable-scp was given.
2850 if test "${enable_scp+set}" = set; then
2851 enableval="$enable_scp"
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h <<\EOF
2861 echo "$ac_t""no" 1>&6
2873 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
2876 cat > confcache <<\EOF
2877 # This file is a shell script that caches the results of configure
2878 # tests run on this system so they can be shared between configure
2879 # scripts and configure runs. It is not useful on other systems.
2880 # If it contains results you don't want to keep, you may remove or edit it.
2882 # By default, configure uses ./config.cache as the cache file,
2883 # creating it if it does not exist already. You can give configure
2884 # the --cache-file=FILE option to use a different cache file; that is
2885 # what configure does when it calls configure scripts in
2886 # subdirectories, so they share the cache.
2887 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2888 # config.status only pays attention to the cache file if you give it the
2889 # --recheck option to rerun configure.
2892 # The following way of writing the cache mishandles newlines in values,
2893 # but we know of no workaround that is simple, portable, and efficient.
2894 # So, don't put newlines in cache variables' values.
2895 # Ultrix sh set writes to stderr and can't be redirected directly,
2896 # and sets the high bit in the cache file unless we assign to the vars.
2898 case `(ac_space=' '; set) 2>&1` in
2900 # `set' does not quote correctly, so add quotes (double-quote substitution
2901 # turns \\\\ into \\, and sed turns \\ into \).
2903 -e "s/'/'\\\\''/g" \
2904 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2907 # `set' quotes correctly as required by POSIX, so do not add quotes.
2908 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2911 if cmp -s $cache_file confcache; then
2914 if test -w $cache_file; then
2915 echo "updating cache $cache_file"
2916 cat confcache > $cache_file
2918 echo "not updating unwritable cache $cache_file"
2923 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2926 # Let make expand exec_prefix.
2927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2929 # Any assignment to VPATH causes Sun make to only execute
2930 # the first set of double-colon rules, so remove it if not needed.
2931 # If there is a colon in the path, we need to keep it.
2932 if test "x$srcdir" = x.; then
2933 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2936 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2938 DEFS=-DHAVE_CONFIG_H
2940 # Without the "./", some shells look in PATH for config.status.
2941 : ${CONFIG_STATUS=./config.status}
2943 echo creating $CONFIG_STATUS
2944 rm -f $CONFIG_STATUS
2945 cat > $CONFIG_STATUS <<EOF
2947 # Generated automatically by configure.
2948 # Run this file to recreate the current configuration.
2949 # This directory was configured as follows,
2950 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2952 # $0 $ac_configure_args
2954 # Compiler output produced by configure, useful for debugging
2955 # configure, is in ./config.log if it exists.
2957 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2960 case "\$ac_option" in
2961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2962 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2963 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2964 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2965 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2967 -help | --help | --hel | --he | --h)
2968 echo "\$ac_cs_usage"; exit 0 ;;
2969 *) echo "\$ac_cs_usage"; exit 1 ;;
2973 ac_given_srcdir=$srcdir
2974 ac_given_INSTALL="$INSTALL"
2976 trap 'rm -fr `echo "
2978 include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile
2979 doc/Makefile patches/Makefile
2980 login.radius/Makefile login.radius/migs/Makefile
2981 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2983 cat >> $CONFIG_STATUS <<EOF
2985 # Protect against being on the right side of a sed subst in config.status.
2986 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2987 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2990 s%@CFLAGS@%$CFLAGS%g
2991 s%@CPPFLAGS@%$CPPFLAGS%g
2992 s%@CXXFLAGS@%$CXXFLAGS%g
2994 s%@LDFLAGS@%$LDFLAGS%g
2996 s%@exec_prefix@%$exec_prefix%g
2997 s%@prefix@%$prefix%g
2998 s%@program_transform_name@%$program_transform_name%g
2999 s%@bindir@%$bindir%g
3000 s%@sbindir@%$sbindir%g
3001 s%@libexecdir@%$libexecdir%g
3002 s%@datadir@%$datadir%g
3003 s%@sysconfdir@%$sysconfdir%g
3004 s%@sharedstatedir@%$sharedstatedir%g
3005 s%@localstatedir@%$localstatedir%g
3006 s%@libdir@%$libdir%g
3007 s%@includedir@%$includedir%g
3008 s%@oldincludedir@%$oldincludedir%g
3009 s%@infodir@%$infodir%g
3010 s%@mandir@%$mandir%g
3012 s%@host_alias@%$host_alias%g
3013 s%@host_cpu@%$host_cpu%g
3014 s%@host_vendor@%$host_vendor%g
3015 s%@host_os@%$host_os%g
3016 s%@target@%$target%g
3017 s%@target_alias@%$target_alias%g
3018 s%@target_cpu@%$target_cpu%g
3019 s%@target_vendor@%$target_vendor%g
3020 s%@target_os@%$target_os%g
3022 s%@build_alias@%$build_alias%g
3023 s%@build_cpu@%$build_cpu%g
3024 s%@build_vendor@%$build_vendor%g
3025 s%@build_os@%$build_os%g
3026 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3027 s%@INSTALL_DATA@%$INSTALL_DATA%g
3028 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3029 s%@PACKAGE@%$PACKAGE%g
3030 s%@VERSION@%$VERSION%g
3031 s%@ACLOCAL@%$ACLOCAL%g
3032 s%@AUTOCONF@%$AUTOCONF%g
3033 s%@AUTOMAKE@%$AUTOMAKE%g
3034 s%@AUTOHEADER@%$AUTOHEADER%g
3035 s%@MAKEINFO@%$MAKEINFO%g
3036 s%@SET_MAKE@%$SET_MAKE%g
3037 s%@LIBVERSION@%$LIBVERSION%g
3038 s%@pkgsysconfdir@%$pkgsysconfdir%g
3041 s%@RANLIB@%$RANLIB%g
3045 s%@LIBTOOL@%$LIBTOOL%g
3047 s%@LIBOBJS@%$LIBOBJS%g
3048 s%@RC_SECURE_PATH@%$RC_SECURE_PATH%g
3049 s%@RC_LOG_FACILITY@%$RC_LOG_FACILITY%g
3050 s%@LTLIBOBJS@%$LTLIBOBJS%g
3055 cat >> $CONFIG_STATUS <<\EOF
3057 # Split the substitutions into bite-sized pieces for seds with
3058 # small command number limits, like on Digital OSF/1 and HP-UX.
3059 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3060 ac_file=1 # Number of current file.
3061 ac_beg=1 # First line for current file.
3062 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3065 while $ac_more_lines; do
3066 if test $ac_beg -gt 1; then
3067 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3069 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3071 if test ! -s conftest.s$ac_file; then
3073 rm -f conftest.s$ac_file
3075 if test -z "$ac_sed_cmds"; then
3076 ac_sed_cmds="sed -f conftest.s$ac_file"
3078 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3080 ac_file=`expr $ac_file + 1`
3082 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3085 if test -z "$ac_sed_cmds"; then
3090 cat >> $CONFIG_STATUS <<EOF
3092 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3093 include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile
3094 doc/Makefile patches/Makefile
3095 login.radius/Makefile login.radius/migs/Makefile
3098 cat >> $CONFIG_STATUS <<\EOF
3099 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3102 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3103 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3104 *) ac_file_in="${ac_file}.in" ;;
3107 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3109 # Remove last slash and all that follows it. Not all systems have dirname.
3110 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3111 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3112 # The file is in a subdirectory.
3113 test ! -d "$ac_dir" && mkdir "$ac_dir"
3114 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3115 # A "../" for each directory in $ac_dir_suffix.
3116 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3118 ac_dir_suffix= ac_dots=
3121 case "$ac_given_srcdir" in
3123 if test -z "$ac_dots"; then top_srcdir=.
3124 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3125 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3127 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3128 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3131 case "$ac_given_INSTALL" in
3132 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3133 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3136 echo creating "$ac_file"
3138 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3140 *Makefile*) ac_comsub="1i\\
3141 # $configure_input" ;;
3145 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3147 s%@configure_input@%$configure_input%g
3148 s%@srcdir@%$srcdir%g
3149 s%@top_srcdir@%$top_srcdir%g
3150 s%@INSTALL@%$INSTALL%g
3151 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3158 # ac_d sets the value in "#define NAME VALUE" lines.
3159 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3160 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3163 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3164 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3165 ac_uB='\([ ]\)%\1#\2define\3'
3168 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3169 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3170 ac_eB='$%\1#\2define\3'
3174 if test "${CONFIG_HEADERS+set}" != set; then
3176 cat >> $CONFIG_STATUS <<EOF
3177 CONFIG_HEADERS="config.h"
3179 cat >> $CONFIG_STATUS <<\EOF
3181 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3184 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3185 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3186 *) ac_file_in="${ac_file}.in" ;;
3189 echo creating $ac_file
3191 rm -f conftest.frag conftest.in conftest.out
3192 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3193 cat $ac_file_inputs > conftest.in
3197 # Transform confdefs.h into a sed script conftest.vals that substitutes
3198 # the proper values into config.h.in to produce config.h. And first:
3199 # Protect against being on the right side of a sed subst in config.status.
3200 # Protect against being in an unquoted here document in config.status.
3202 cat > conftest.hdr <<\EOF
3205 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3209 sed -n -f conftest.hdr confdefs.h > conftest.vals
3212 # This sed command replaces #undef with comments. This is necessary, for
3213 # example, in the case of _POSIX_SOURCE, which is predefined and required
3214 # on some systems where configure will not decide to define it.
3215 cat >> conftest.vals <<\EOF
3216 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3219 # Break up conftest.vals because some shells have a limit on
3220 # the size of here documents, and old seds have small limits too.
3225 ac_lines=`grep -c . conftest.vals`
3226 # grep -c gives empty output for an empty file on some AIX systems.
3227 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3228 # Write a limited-size here document to conftest.frag.
3229 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3230 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3232 sed -f conftest.frag conftest.in > conftest.out
3234 mv conftest.out conftest.in
3236 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3238 mv conftest.tail conftest.vals
3242 cat >> $CONFIG_STATUS <<\EOF
3243 rm -f conftest.frag conftest.h
3244 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3245 cat conftest.in >> conftest.h
3247 if cmp -s $ac_file conftest.h 2>/dev/null; then
3248 echo "$ac_file is unchanged"
3251 # Remove last slash and all that follows it. Not all systems have dirname.
3252 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3253 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3254 # The file is in a subdirectory.
3255 test ! -d "$ac_dir" && mkdir "$ac_dir"
3258 mv conftest.h $ac_file
3263 cat >> $CONFIG_STATUS <<EOF
3267 cat >> $CONFIG_STATUS <<\EOF
3268 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3269 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3272 chmod +x $CONFIG_STATUS
3273 rm -fr confdefs* $ac_clean_files
3274 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1