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:
16 --enable-debug qspecify you are building with debugging on"
18 --enable-libdebug specify you are building debugging libraries"
20 --enable-fakeroot=<path to packaging directory>"
22 --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
24 --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
26 --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
28 --enable-includedir=<path to include location> - where to put <security>"
30 --enable-pamlocking configure libpam to observe a global authentication lock"
32 --enable-uglyhack configure libpam to try to honor old pam_strerror syntax"
34 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files"
36 --enable-static-libpam build a libpam.a library"
38 --disable-dynamic-libpam do not build a shared libpam library"
40 --enable-static-modules do not make the modules dynamically loadable"
42 --disable-lckpwdf do not use the lckpwdf function"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file=./config.cache
57 program_transform_name=s,x,x,
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
78 # Initialize some other variables.
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=conf/pam_conv1/pam_conv.y
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
557 LIBPAM_VERSION_MAJOR=0
558 LIBPAM_VERSION_MINOR=73
562 cat >> confdefs.h <<\EOF
563 #define LIBPAM_VERSION_MAJOR 1
566 cat >> confdefs.h <<\EOF
567 #define LIBPAM_VERSION_MINOR 1
578 LOCALSRCDIR=`/bin/pwd` ;
579 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXWZ/abcdefghijklmonpqrstuvwxyz/'`
588 INSTALL=/usr/bin/install ;
591 # Check whether --enable-debug or --disable-debug was given.
592 if test "${enable_debug+set}" = set; then
593 enableval="$enable_debug"
594 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
604 # Check whether --enable-libdebug or --disable-libdebug was given.
605 if test "${enable_libdebug+set}" = set; then
606 enableval="$enable_libdebug"
607 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
608 #define WITH_LIBDEBUG 1
617 # Check whether --enable-fakeroot or --disable-fakeroot was given.
618 if test "${enable_fakeroot+set}" = set; then
619 enableval="$enable_fakeroot"
625 # Check whether --enable-securedir or --disable-securedir was given.
626 if test "${enable_securedir+set}" = set; then
627 enableval="$enable_securedir"
630 SECUREDIR=$libdir/security
635 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
636 if test "${enable_sconfigdir+set}" = set; then
637 enableval="$enable_sconfigdir"
638 SCONFIGDIR=$enableval
640 SCONFIGDIR=$sysconfdir/security
645 # Check whether --enable-suplementedir or --disable-suplementedir was given.
646 if test "${enable_suplementedir+set}" = set; then
647 enableval="$enable_suplementedir"
648 SUPLEMENTED=$enableval
655 # Check whether --enable-includedir or --disable-includedir was given.
656 if test "${enable_includedir+set}" = set; then
657 enableval="$enable_includedir"
658 INCLUDEDIR=$enableval
660 INCLUDEDIR=/usr/include
665 # Check whether --enable-pamlocking or --disable-pamlocking was given.
666 if test "${enable_pamlocking+set}" = set; then
667 enableval="$enable_pamlocking"
668 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
669 #define PAM_LOCKING 1
678 # Check whether --enable-uglyhack or --disable-uglyhack was given.
679 if test "${enable_uglyhack+set}" = set; then
680 enableval="$enable_uglyhack"
681 cat >> confdefs.h <<\EOF
682 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
688 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
689 if test "${enable_read_both_confs+set}" = set; then
690 enableval="$enable_read_both_confs"
691 cat >> confdefs.h <<\EOF
692 #define PAM_READ_BOTH_CONFS 1
699 # Check whether --enable-static-libpam or --disable-static-libpam was given.
700 if test "${enable_static_libpam+set}" = set; then
701 enableval="$enable_static_libpam"
709 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
710 if test "${enable_dynamic_libpam+set}" = set; then
711 enableval="$enable_dynamic_libpam"
719 DYNAMIC=-DPAM_DYNAMIC
722 # Check whether --enable-static-modules or --disable-static-modules was given.
723 if test "${enable_static_modules+set}" = set; then
724 enableval="$enable_static_modules"
730 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
731 if test "${enable_lckpwdf+set}" = set; then
732 enableval="$enable_lckpwdf"
740 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
742 # Extract the first word of "$ac_prog", so it can be a program name with args.
743 set dummy $ac_prog; ac_word=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CXX"; then
750 ac_cv_prog_CXX="$CXX" # Let the user override the test.
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
757 ac_cv_prog_CXX="$ac_prog"
764 CXX="$ac_cv_prog_CXX"
765 if test -n "$CXX"; then
766 echo "$ac_t""$CXX" 1>&6
768 echo "$ac_t""no" 1>&6
771 test -n "$CXX" && break
773 test -n "$CXX" || CXX="gcc"
776 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781 ac_cpp='$CXXCPP $CPPFLAGS'
782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784 cross_compiling=$ac_cv_prog_cxx_cross
786 cat > conftest.$ac_ext << EOF
788 #line 789 "configure"
789 #include "confdefs.h"
791 int main(){return(0);}
793 if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
794 ac_cv_prog_cxx_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cxx_cross=no
799 ac_cv_prog_cxx_cross=yes
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cxx_works=no
808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809 ac_cpp='$CPP $CPPFLAGS'
810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812 cross_compiling=$ac_cv_prog_cc_cross
814 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
815 if test $ac_cv_prog_cxx_works = no; then
816 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
818 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
819 echo "configure:820: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
820 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
821 cross_compiling=$ac_cv_prog_cxx_cross
823 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
824 echo "configure:825: checking whether we are using GNU C++" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 cat > conftest.C <<EOF
833 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
840 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
842 if test $ac_cv_prog_gxx = yes; then
848 ac_test_CXXFLAGS="${CXXFLAGS+set}"
849 ac_save_CXXFLAGS="$CXXFLAGS"
851 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
852 echo "configure:853: checking whether ${CXX-g++} accepts -g" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 echo 'void f(){}' > conftest.cc
857 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
866 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
867 if test "$ac_test_CXXFLAGS" = set; then
868 CXXFLAGS="$ac_save_CXXFLAGS"
869 elif test $ac_cv_prog_cxx_g = yes; then
870 if test "$GXX" = yes; then
876 if test "$GXX" = yes; then
883 for ac_prog in 'bison -y' byacc
885 # Extract the first word of "$ac_prog", so it can be a program name with args.
886 set dummy $ac_prog; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$YACC"; then
893 ac_cv_prog_YACC="$YACC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_YACC="$ac_prog"
907 YACC="$ac_cv_prog_YACC"
908 if test -n "$YACC"; then
909 echo "$ac_t""$YACC" 1>&6
911 echo "$ac_t""no" 1>&6
914 test -n "$YACC" && break
916 test -n "$YACC" || YACC="yacc"
918 # Extract the first word of "flex", so it can be a program name with args.
919 set dummy flex; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$LEX"; then
926 ac_cv_prog_LEX="$LEX" # Let the user override the test.
928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
930 for ac_dir in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
933 ac_cv_prog_LEX="flex"
938 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
941 LEX="$ac_cv_prog_LEX"
942 if test -n "$LEX"; then
943 echo "$ac_t""$LEX" 1>&6
945 echo "$ac_t""no" 1>&6
954 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
955 echo "configure:956: checking for yywrap in -l$ac_lib" >&5
956 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
961 LIBS="-l$ac_lib $LIBS"
962 cat > conftest.$ac_ext <<EOF
963 #line 964 "configure"
964 #include "confdefs.h"
965 /* Override any gcc2 internal prototype to avoid an error. */
966 /* We use char because int might match the return type of a gcc2
967 builtin and then its argument prototype would still apply. */
974 if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
976 eval "ac_cv_lib_$ac_lib_var=yes"
978 echo "configure: failed program was:" >&5
979 cat conftest.$ac_ext >&5
981 eval "ac_cv_lib_$ac_lib_var=no"
987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
988 echo "$ac_t""yes" 1>&6
991 echo "$ac_t""no" 1>&6
996 # Extract the first word of "gcc", so it can be a program name with args.
997 set dummy gcc; ac_word=$2
998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
999 echo "configure:1000: checking for $ac_word" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 if test -n "$CC"; then
1004 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1008 for ac_dir in $ac_dummy; do
1009 test -z "$ac_dir" && ac_dir=.
1010 if test -f $ac_dir/$ac_word; then
1019 if test -n "$CC"; then
1020 echo "$ac_t""$CC" 1>&6
1022 echo "$ac_t""no" 1>&6
1025 if test -z "$CC"; then
1026 # Extract the first word of "cc", so it can be a program name with args.
1027 set dummy cc; ac_word=$2
1028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029 echo "configure:1030: checking for $ac_word" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 if test -n "$CC"; then
1034 ac_cv_prog_CC="$CC" # Let the user override the test.
1036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1042 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1043 ac_prog_rejected=yes
1051 if test $ac_prog_rejected = yes; then
1052 # We found a bogon in the path, so make sure we never use it.
1053 set dummy $ac_cv_prog_CC
1055 if test $# -gt 0; then
1056 # We chose a different compiler from the bogus one.
1057 # However, it has the same basename, so the bogon will be chosen
1058 # first if we set CC to just the basename; use the full file name.
1060 set dummy "$ac_dir/$ac_word" "$@"
1068 if test -n "$CC"; then
1069 echo "$ac_t""$CC" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 if test -z "$CC"; then
1075 case "`uname -s`" in
1077 # Extract the first word of "cl", so it can be a program name with args.
1078 set dummy cl; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 if test -n "$CC"; then
1085 ac_cv_prog_CC="$CC" # Let the user override the test.
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1089 for ac_dir in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f $ac_dir/$ac_word; then
1100 if test -n "$CC"; then
1101 echo "$ac_t""$CC" 1>&6
1103 echo "$ac_t""no" 1>&6
1108 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1111 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1116 ac_cpp='$CPP $CPPFLAGS'
1117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1119 cross_compiling=$ac_cv_prog_cc_cross
1121 cat > conftest.$ac_ext << EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1129 ac_cv_prog_cc_works=yes
1130 # If we can't run a trivial program, we are probably using a cross compiler.
1131 if (./conftest; exit) 2>/dev/null; then
1132 ac_cv_prog_cc_cross=no
1134 ac_cv_prog_cc_cross=yes
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1139 ac_cv_prog_cc_works=no
1143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144 ac_cpp='$CPP $CPPFLAGS'
1145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147 cross_compiling=$ac_cv_prog_cc_cross
1149 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1150 if test $ac_cv_prog_cc_works = no; then
1151 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1155 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1156 cross_compiling=$ac_cv_prog_cc_cross
1158 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether we are using GNU C" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 cat > conftest.c <<EOF
1168 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1175 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1177 if test $ac_cv_prog_gcc = yes; then
1183 ac_test_CFLAGS="${CFLAGS+set}"
1184 ac_save_CFLAGS="$CFLAGS"
1186 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether ${CC-cc} accepts -g" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 echo 'void f(){}' > conftest.c
1192 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1201 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1202 if test "$ac_test_CFLAGS" = set; then
1203 CFLAGS="$ac_save_CFLAGS"
1204 elif test $ac_cv_prog_cc_g = yes; then
1205 if test "$GCC" = yes; then
1211 if test "$GCC" = yes; then
1218 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether ln -s works" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1224 if ln -s X conftestdata 2>/dev/null
1227 ac_cv_prog_LN_S="ln -s"
1232 LN_S="$ac_cv_prog_LN_S"
1233 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1234 echo "$ac_t""yes" 1>&6
1236 echo "$ac_t""no" 1>&6
1239 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${MAKE-make} sets \${MAKE}" >&5
1241 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1242 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftestmake <<\EOF
1247 @echo 'ac_maketemp="${MAKE}"'
1249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1250 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1251 if test -n "$ac_maketemp"; then
1252 eval ac_cv_prog_make_${ac_make}_set=yes
1254 eval ac_cv_prog_make_${ac_make}_set=no
1258 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1262 echo "$ac_t""no" 1>&6
1263 SET_MAKE="MAKE=${MAKE-make}"
1267 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1268 echo "configure:1269: checking for __libc_sched_setscheduler in -lc" >&5
1269 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 ac_save_LIBS="$LIBS"
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 /* Override any gcc2 internal prototype to avoid an error. */
1279 /* We use char because int might match the return type of a gcc2
1280 builtin and then its argument prototype would still apply. */
1281 char __libc_sched_setscheduler();
1284 __libc_sched_setscheduler()
1287 if { (eval echo configure:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1289 eval "ac_cv_lib_$ac_lib_var=yes"
1291 echo "configure: failed program was:" >&5
1292 cat conftest.$ac_ext >&5
1294 eval "ac_cv_lib_$ac_lib_var=no"
1297 LIBS="$ac_save_LIBS"
1300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1301 echo "$ac_t""yes" 1>&6
1304 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1311 echo "configure:1312: checking for lckpwdf in -lc" >&5
1312 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 ac_save_LIBS="$LIBS"
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1321 /* Override any gcc2 internal prototype to avoid an error. */
1322 /* We use char because int might match the return type of a gcc2
1323 builtin and then its argument prototype would still apply. */
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1332 eval "ac_cv_lib_$ac_lib_var=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 eval "ac_cv_lib_$ac_lib_var=no"
1340 LIBS="$ac_save_LIBS"
1343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1347 echo "$ac_t""no" 1>&6
1353 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1354 echo "configure:1355: checking for FascistCheck in -lcrack" >&5
1355 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 ac_save_LIBS="$LIBS"
1360 LIBS="-lcrack $LIBS"
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1364 /* Override any gcc2 internal prototype to avoid an error. */
1365 /* We use char because int might match the return type of a gcc2
1366 builtin and then its argument prototype would still apply. */
1367 char FascistCheck();
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1375 eval "ac_cv_lib_$ac_lib_var=yes"
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 eval "ac_cv_lib_$ac_lib_var=no"
1383 LIBS="$ac_save_LIBS"
1386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1387 echo "$ac_t""yes" 1>&6
1388 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1389 #define HAVE_LIBCRACK 1
1393 echo "$ac_t""no" 1>&6
1399 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1400 echo "configure:1401: checking for fcrypt in -lcrypt" >&5
1401 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 ac_save_LIBS="$LIBS"
1406 LIBS="-lcrypt $LIBS"
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421 eval "ac_cv_lib_$ac_lib_var=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 eval "ac_cv_lib_$ac_lib_var=no"
1429 LIBS="$ac_save_LIBS"
1432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1434 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1435 #define HAVE_LIBCRYPT 1
1439 echo "$ac_t""no" 1>&6
1444 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1445 echo "configure:1446: checking for dbm_store in -lndbm" >&5
1446 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 ac_save_LIBS="$LIBS"
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* Override any gcc2 internal prototype to avoid an error. */
1456 /* We use char because int might match the return type of a gcc2
1457 builtin and then its argument prototype would still apply. */
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 eval "ac_cv_lib_$ac_lib_var=yes"
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 eval "ac_cv_lib_$ac_lib_var=no"
1474 LIBS="$ac_save_LIBS"
1477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1479 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1480 #define HAVE_LIBNDBM 1
1484 echo "$ac_t""no" 1>&6
1489 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1490 echo "configure:1491: checking for dbm_store in -ldb" >&5
1491 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 ac_save_LIBS="$LIBS"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* Override any gcc2 internal prototype to avoid an error. */
1501 /* We use char because int might match the return type of a gcc2
1502 builtin and then its argument prototype would still apply. */
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 eval "ac_cv_lib_$ac_lib_var=yes"
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 eval "ac_cv_lib_$ac_lib_var=no"
1519 LIBS="$ac_save_LIBS"
1522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1525 #define HAVE_LIBDB 1
1529 echo "$ac_t""no" 1>&6
1534 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1535 echo "configure:1536: checking for yylex in -lfl" >&5
1536 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 ac_save_LIBS="$LIBS"
1541 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 /* Override any gcc2 internal prototype to avoid an error. */
1546 /* We use char because int might match the return type of a gcc2
1547 builtin and then its argument prototype would still apply. */
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1556 eval "ac_cv_lib_$ac_lib_var=yes"
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 eval "ac_cv_lib_$ac_lib_var=no"
1564 LIBS="$ac_save_LIBS"
1567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1568 echo "$ac_t""yes" 1>&6
1571 echo "$ac_t""no" 1>&6
1572 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1573 #define HAVE_LIBFL 1
1579 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1580 echo "configure:1581: checking for yp_maplist in -lnsl" >&5
1581 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 ac_save_LIBS="$LIBS"
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 /* Override any gcc2 internal prototype to avoid an error. */
1591 /* We use char because int might match the return type of a gcc2
1592 builtin and then its argument prototype would still apply. */
1599 if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1601 eval "ac_cv_lib_$ac_lib_var=yes"
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1606 eval "ac_cv_lib_$ac_lib_var=no"
1609 LIBS="$ac_save_LIBS"
1612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1615 #define HAVE_LIBNSL 1
1619 echo "$ac_t""no" 1>&6
1624 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1625 echo "configure:1626: checking for pwdb_db_name in -lpwdb" >&5
1626 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 ac_save_LIBS="$LIBS"
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 /* Override any gcc2 internal prototype to avoid an error. */
1636 /* We use char because int might match the return type of a gcc2
1637 builtin and then its argument prototype would still apply. */
1638 char pwdb_db_name();
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1646 eval "ac_cv_lib_$ac_lib_var=yes"
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 eval "ac_cv_lib_$ac_lib_var=no"
1654 LIBS="$ac_save_LIBS"
1657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1658 echo "$ac_t""yes" 1>&6
1659 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1660 #define HAVE_LIBPWDB 1
1664 echo "$ac_t""no" 1>&6
1671 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1674 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1675 echo "configure:1676: checking for $ac_hdr that defines DIR" >&5
1676 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 cat > conftest.$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1682 #include <sys/types.h>
1688 if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1690 eval "ac_cv_header_dirent_$ac_safe=yes"
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 eval "ac_cv_header_dirent_$ac_safe=no"
1699 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1702 cat >> confdefs.h <<EOF
1703 #define $ac_tr_hdr 1
1705 ac_header_dirent=$ac_hdr; break
1707 echo "$ac_t""no" 1>&6
1710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1711 if test $ac_header_dirent = dirent.h; then
1712 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1713 echo "configure:1714: checking for opendir in -ldir" >&5
1714 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 ac_save_LIBS="$LIBS"
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 /* Override any gcc2 internal prototype to avoid an error. */
1724 /* We use char because int might match the return type of a gcc2
1725 builtin and then its argument prototype would still apply. */
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 eval "ac_cv_lib_$ac_lib_var=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 eval "ac_cv_lib_$ac_lib_var=no"
1742 LIBS="$ac_save_LIBS"
1745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1749 echo "$ac_t""no" 1>&6
1753 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1754 echo "configure:1755: checking for opendir in -lx" >&5
1755 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 ac_save_LIBS="$LIBS"
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 /* Override any gcc2 internal prototype to avoid an error. */
1765 /* We use char because int might match the return type of a gcc2
1766 builtin and then its argument prototype would still apply. */
1773 if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775 eval "ac_cv_lib_$ac_lib_var=yes"
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1780 eval "ac_cv_lib_$ac_lib_var=no"
1783 LIBS="$ac_save_LIBS"
1786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1790 echo "$ac_t""no" 1>&6
1795 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1796 echo "configure:1797: checking how to run the C preprocessor" >&5
1797 # On Suns, sometimes $CPP names a directory.
1798 if test -n "$CPP" && test -d "$CPP"; then
1801 if test -z "$CPP"; then
1802 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 # This must be in double quotes, not single quotes, because CPP may get
1806 # substituted into the Makefile and "${CC-cc}" will confuse make.
1808 # On the NeXT, cc -E runs the code through the compiler's parser,
1809 # not just through cpp.
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1819 if test -z "$ac_err"; then
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 CPP="${CC-cc} -E -traditional-cpp"
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 if test -z "$ac_err"; then
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 CPP="${CC-cc} -nologo -E"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1867 ac_cv_prog_CPP="$CPP"
1869 CPP="$ac_cv_prog_CPP"
1871 ac_cv_prog_CPP="$CPP"
1873 echo "$ac_t""$CPP" 1>&6
1875 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1876 echo "configure:1877: checking for ANSI C header files" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 ac_cv_header_stdc=yes
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 ac_cv_header_stdc=no
1903 if test $ac_cv_header_stdc = yes; then
1904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1911 egrep "memchr" >/dev/null 2>&1; then
1915 ac_cv_header_stdc=no
1921 if test $ac_cv_header_stdc = yes; then
1922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "free" >/dev/null 2>&1; then
1933 ac_cv_header_stdc=no
1939 if test $ac_cv_header_stdc = yes; then
1940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1941 if test "$cross_compiling" = yes; then
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1948 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1949 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1951 int main () { int i; for (i = 0; i < 256; i++)
1952 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1956 if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1963 ac_cv_header_stdc=no
1971 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1972 if test $ac_cv_header_stdc = yes; then
1973 cat >> confdefs.h <<\EOF
1974 #define STDC_HEADERS 1
1979 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1980 echo "configure:1981: checking for sys/wait.h that is POSIX.1 compatible" >&5
1981 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1987 #include <sys/types.h>
1988 #include <sys/wait.h>
1990 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1993 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1998 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2001 if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 ac_cv_header_sys_wait_h=yes
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 ac_cv_header_sys_wait_h=no
2013 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2014 if test $ac_cv_header_sys_wait_h = yes; then
2015 cat >> confdefs.h <<\EOF
2016 #define HAVE_SYS_WAIT_H 1
2021 for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h
2023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_hdr" >&5
2026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2035 { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2037 if test -z "$ac_err"; then
2039 eval "ac_cv_header_$ac_safe=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_header_$ac_safe=no"
2049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2052 cat >> confdefs.h <<EOF
2053 #define $ac_tr_hdr 1
2057 echo "$ac_t""no" 1>&6
2062 for ac_hdr in features.h
2064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2066 echo "configure:2067: checking for $ac_hdr" >&5
2067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2076 { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2078 if test -z "$ac_err"; then
2080 eval "ac_cv_header_$ac_safe=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 eval "ac_cv_header_$ac_safe=no"
2090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2091 echo "$ac_t""yes" 1>&6
2092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2093 cat >> confdefs.h <<EOF
2094 #define $ac_tr_hdr 1
2098 echo "$ac_t""no" 1>&6
2103 for ac_hdr in crypt.h
2105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_hdr" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117 { (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119 if test -z "$ac_err"; then
2121 eval "ac_cv_header_$ac_safe=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 eval "ac_cv_header_$ac_safe=no"
2131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2134 cat >> confdefs.h <<EOF
2135 #define $ac_tr_hdr 1
2139 echo "$ac_t""no" 1>&6
2144 for ac_hdr in lastlog.h utmp.h utmpx.h
2146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_hdr" >&5
2149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2158 { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2160 if test -z "$ac_err"; then
2162 eval "ac_cv_header_$ac_safe=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_header_$ac_safe=no"
2172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2175 cat >> confdefs.h <<EOF
2176 #define $ac_tr_hdr 1
2180 echo "$ac_t""no" 1>&6
2186 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2187 echo "configure:2188: checking path to cracklib dictionary" >&5
2188 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2189 /usr/local/lib /usr/local/share/lib"
2190 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2191 CRACKLIB_DICTPATH=""
2192 for d in $DICT_DIR_CANDIDATES ; do
2193 for f in $DICT_FILE_CANDIDATES ; do
2194 if test -r $d/$f.hwm ; then
2195 CRACKLIB_DICTPATH=$d/$f
2197 elif test -r $d/dict/$f.hwm ; then
2198 CRACKLIB_DICTPATH=$d/dict/$f
2203 if test -z $CRACKLIB_DICTPATH ; then
2204 echo "$ac_t""none found" 1>&6
2206 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2211 GCC_WARNINGS="-Wall -Wwrite-strings \
2212 -Wpointer-arith -Wcast-qual -Wcast-align \
2213 -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
2214 -Wnested-externs -Winline -Wshadow"
2216 if test "$GCC" = yes; then
2218 ### Non-Linux needs attention on per-OS basis
2219 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2220 WARNINGS="$GCC_WARNINGS"
2222 #can/should we use LD=gcc ???
2224 LD_D="gcc -shared -Xlinker -x"
2225 LD_L="$LD -x -shared"
2229 ### Non-gcc needs attention on per-OS basis
2231 ### [These are Solaris-C specific...]
2236 LD_D="cc -z text -G -R."
2249 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether byte ordering is bigendian" >&5
2251 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 ac_cv_c_bigendian=unknown
2255 # See if sys/param.h defines the BYTE_ORDER macro.
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <sys/types.h>
2260 #include <sys/param.h>
2263 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 # It does; now see whether it defined to BIG_ENDIAN or not.
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2275 #include <sys/param.h>
2278 #if BYTE_ORDER != BIG_ENDIAN
2283 if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 ac_cv_c_bigendian=yes
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 ac_cv_c_bigendian=no
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2298 if test $ac_cv_c_bigendian = unknown; then
2299 if test "$cross_compiling" = yes; then
2300 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2306 /* Are we little or big endian? From Harbison&Steele. */
2310 char c[sizeof (long)];
2313 exit (u.c[sizeof (long) - 1] == 1);
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2318 ac_cv_c_bigendian=no
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2323 ac_cv_c_bigendian=yes
2331 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2332 if test $ac_cv_c_bigendian = yes; then
2333 cat >> confdefs.h <<\EOF
2334 #define WORDS_BIGENDIAN 1
2339 echo $ac_n "checking for working const""... $ac_c" 1>&6
2340 echo "configure:2341: checking for working const" >&5
2341 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 /* Ultrix mips cc rejects this. */
2351 typedef int charset[2]; const charset x;
2352 /* SunOS 4.1.1 cc rejects this. */
2353 char const *const *ccp;
2355 /* NEC SVR4.0.2 mips cc rejects this. */
2356 struct point {int x, y;};
2357 static struct point const zero = {0,0};
2358 /* AIX XL C 1.02.0.0 rejects this.
2359 It does not let you subtract one const X* pointer from another in an arm
2360 of an if-expression whose if-part is not a constant expression */
2361 const char *g = "string";
2362 ccp = &g + (g ? g-g : 0);
2363 /* HPUX 7.0 cc rejects these. */
2366 ccp = (char const *const *) p;
2367 { /* SCO 3.2v4 cc rejects this. */
2369 char const *s = 0 ? (char *) 0 : (char const *) 0;
2373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2375 const int *foo = &x[0];
2378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2379 typedef const int *iptr;
2383 { /* AIX XL C 1.02.0.0 rejects this saying
2384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2385 struct s { int j; const int *ap[3]; };
2386 struct s *b; b->j = 5;
2388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2394 if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2406 echo "$ac_t""$ac_cv_c_const" 1>&6
2407 if test $ac_cv_c_const = no; then
2408 cat >> confdefs.h <<\EOF
2414 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2415 echo "configure:2416: checking for uid_t in sys/types.h" >&5
2416 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 #include <sys/types.h>
2424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2425 egrep "uid_t" >/dev/null 2>&1; then
2427 ac_cv_type_uid_t=yes
2436 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2437 if test $ac_cv_type_uid_t = no; then
2438 cat >> confdefs.h <<\EOF
2442 cat >> confdefs.h <<\EOF
2448 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2449 echo "configure:2450: checking for off_t" >&5
2450 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 #include <sys/types.h>
2462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2463 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2465 ac_cv_type_off_t=yes
2473 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2474 if test $ac_cv_type_off_t = no; then
2475 cat >> confdefs.h <<\EOF
2481 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2482 echo "configure:2483: checking for pid_t" >&5
2483 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 #include <sys/types.h>
2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2496 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2498 ac_cv_type_pid_t=yes
2506 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2507 if test $ac_cv_type_pid_t = no; then
2508 cat >> confdefs.h <<\EOF
2514 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2515 echo "configure:2516: checking for size_t" >&5
2516 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 #include <sys/types.h>
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2531 ac_cv_type_size_t=yes
2534 ac_cv_type_size_t=no
2539 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2540 if test $ac_cv_type_size_t = no; then
2541 cat >> confdefs.h <<\EOF
2542 #define size_t unsigned
2547 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether time.h and sys/time.h may both be included" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2556 #include <sys/time.h>
2562 if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 ac_cv_header_time=yes
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 ac_cv_header_time=no
2574 echo "$ac_t""$ac_cv_header_time" 1>&6
2575 if test $ac_cv_header_time = yes; then
2576 cat >> confdefs.h <<\EOF
2577 #define TIME_WITH_SYS_TIME 1
2582 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2583 echo "configure:2584: checking whether struct tm is in sys/time.h or time.h" >&5
2584 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <sys/types.h>
2593 struct tm *tp; tp->tm_sec;
2596 if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2598 ac_cv_struct_tm=time.h
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2603 ac_cv_struct_tm=sys/time.h
2608 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2609 if test $ac_cv_struct_tm = sys/time.h; then
2610 cat >> confdefs.h <<\EOF
2611 #define TM_IN_SYS_TIME 1
2617 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2618 echo "configure:2619: checking type of array argument to getgroups" >&5
2619 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 if test "$cross_compiling" = yes; then
2623 ac_cv_type_getgroups=cross
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2629 /* Thanks to Mike Rendell for this test. */
2630 #include <sys/types.h>
2633 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2638 union { gid_t gval; long lval; } val;
2641 for (i = 0; i < NGID; i++)
2642 gidset[i] = val.gval;
2643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2645 /* Exit non-zero if getgroups seems to require an array of ints. This
2646 happens when gid_t is short but getgroups modifies an array of ints. */
2647 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2653 ac_cv_type_getgroups=gid_t
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 ac_cv_type_getgroups=int
2663 if test $ac_cv_type_getgroups = cross; then
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2670 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2672 ac_cv_type_getgroups=gid_t
2675 ac_cv_type_getgroups=int
2682 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2683 cat >> confdefs.h <<EOF
2684 #define GETGROUPS_T $ac_cv_type_getgroups
2688 if test $ac_cv_prog_gcc = yes; then
2689 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2690 echo "configure:2691: checking whether ${CC-cc} needs -traditional" >&5
2691 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 ac_pattern="Autoconf.*'x'"
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2702 egrep "$ac_pattern" >/dev/null 2>&1; then
2704 ac_cv_prog_gcc_traditional=yes
2707 ac_cv_prog_gcc_traditional=no
2712 if test $ac_cv_prog_gcc_traditional = no; then
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "$ac_pattern" >/dev/null 2>&1; then
2722 ac_cv_prog_gcc_traditional=yes
2729 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2730 if test $ac_cv_prog_gcc_traditional = yes; then
2731 CC="$CC -traditional"
2735 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2736 echo "configure:2737: checking for 8-bit clean memcmp" >&5
2737 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 if test "$cross_compiling" = yes; then
2741 ac_cv_func_memcmp_clean=no
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2749 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2750 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2756 ac_cv_func_memcmp_clean=yes
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2761 ac_cv_func_memcmp_clean=no
2768 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2769 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2771 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2772 echo "configure:2773: checking for vprintf" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char vprintf(); below. */
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 eval "ac_cv_func_vprintf=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_func_vprintf=no"
2812 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 cat >> confdefs.h <<\EOF
2815 #define HAVE_VPRINTF 1
2819 echo "$ac_t""no" 1>&6
2822 if test "$ac_cv_func_vprintf" != yes; then
2823 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2824 echo "configure:2825: checking for _doprnt" >&5
2825 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* System header to define __stub macros and hopefully few prototypes,
2832 which can conflict with char _doprnt(); below. */
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2841 /* The GNU C library defines this for functions which it implements
2842 to always fail with ENOSYS. Some functions are actually named
2843 something starting with __ and the normal name is an alias. */
2844 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2854 eval "ac_cv_func__doprnt=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_func__doprnt=no"
2864 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 cat >> confdefs.h <<\EOF
2867 #define HAVE_DOPRNT 1
2871 echo "$ac_t""no" 1>&6
2876 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
2878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2879 echo "configure:2880: checking for $ac_func" >&5
2880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char $ac_func(); below. */
2889 /* Override any gcc2 internal prototype to avoid an error. */
2890 /* We use char because int might match the return type of a gcc2
2891 builtin and then its argument prototype would still apply. */
2896 /* The GNU C library defines this for functions which it implements
2897 to always fail with ENOSYS. Some functions are actually named
2898 something starting with __ and the normal name is an alias. */
2899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2909 eval "ac_cv_func_$ac_func=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 eval "ac_cv_func_$ac_func=no"
2919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_func 1
2927 echo "$ac_t""no" 1>&6
2932 # Extract the first word of "sgml2txt", so it can be a program name with args.
2933 set dummy sgml2txt; ac_word=$2
2934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_word" >&5
2936 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 if test -n "$HAVE_SGML2TXT"; then
2940 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
2942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2944 for ac_dir in $ac_dummy; do
2945 test -z "$ac_dir" && ac_dir=.
2946 if test -f $ac_dir/$ac_word; then
2947 ac_cv_prog_HAVE_SGML2TXT="yes"
2952 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
2955 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
2956 if test -n "$HAVE_SGML2TXT"; then
2957 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
2959 echo "$ac_t""no" 1>&6
2962 # Extract the first word of "sgml2html", so it can be a program name with args.
2963 set dummy sgml2html; ac_word=$2
2964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_word" >&5
2966 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test -n "$HAVE_SGML2HTML"; then
2970 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
2972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2974 for ac_dir in $ac_dummy; do
2975 test -z "$ac_dir" && ac_dir=.
2976 if test -f $ac_dir/$ac_word; then
2977 ac_cv_prog_HAVE_SGML2HTML="yes"
2982 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
2985 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
2986 if test -n "$HAVE_SGML2HTML"; then
2987 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
2989 echo "$ac_t""no" 1>&6
2992 # Extract the first word of "sgml2latex", so it can be a program name with args.
2993 set dummy sgml2latex; ac_word=$2
2994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_word" >&5
2996 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 if test -n "$HAVE_SGML2LATEX"; then
3000 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 for ac_dir in $ac_dummy; do
3005 test -z "$ac_dir" && ac_dir=.
3006 if test -f $ac_dir/$ac_word; then
3007 ac_cv_prog_HAVE_SGML2LATEX="yes"
3012 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3015 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3016 if test -n "$HAVE_SGML2LATEX"; then
3017 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3019 echo "$ac_t""no" 1>&6
3022 if test $HAVE_SGML2LATEX = "yes" ; then
3023 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3024 PSER="sgml2latex -o ps"
3026 PSER="sgml2latex -p"
3029 # Extract the first word of "sgml2ps", so it can be a program name with args.
3030 set dummy sgml2ps; ac_word=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 if test -n "$HAVE_SGML2PS"; then
3037 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_prog_HAVE_SGML2PS="yes"
3049 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3052 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3053 if test -n "$HAVE_SGML2PS"; then
3054 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3056 echo "$ac_t""no" 1>&6
3059 if test $HAVE_SGML2PS = yes ; then
3066 cat > confcache <<\EOF
3067 # This file is a shell script that caches the results of configure
3068 # tests run on this system so they can be shared between configure
3069 # scripts and configure runs. It is not useful on other systems.
3070 # If it contains results you don't want to keep, you may remove or edit it.
3072 # By default, configure uses ./config.cache as the cache file,
3073 # creating it if it does not exist already. You can give configure
3074 # the --cache-file=FILE option to use a different cache file; that is
3075 # what configure does when it calls configure scripts in
3076 # subdirectories, so they share the cache.
3077 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3078 # config.status only pays attention to the cache file if you give it the
3079 # --recheck option to rerun configure.
3082 # The following way of writing the cache mishandles newlines in values,
3083 # but we know of no workaround that is simple, portable, and efficient.
3084 # So, don't put newlines in cache variables' values.
3085 # Ultrix sh set writes to stderr and can't be redirected directly,
3086 # and sets the high bit in the cache file unless we assign to the vars.
3088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3090 # `set' does not quote correctly, so add quotes (double-quote substitution
3091 # turns \\\\ into \\, and sed turns \\ into \).
3093 -e "s/'/'\\\\''/g" \
3094 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3097 # `set' quotes correctly as required by POSIX, so do not add quotes.
3098 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3101 if cmp -s $cache_file confcache; then
3104 if test -w $cache_file; then
3105 echo "updating cache $cache_file"
3106 cat confcache > $cache_file
3108 echo "not updating unwritable cache $cache_file"
3113 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3116 # Let make expand exec_prefix.
3117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3119 # Any assignment to VPATH causes Sun make to only execute
3120 # the first set of double-colon rules, so remove it if not needed.
3121 # If there is a colon in the path, we need to keep it.
3122 if test "x$srcdir" = x.; then
3123 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3126 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3128 DEFS=-DHAVE_CONFIG_H
3130 # Without the "./", some shells look in PATH for config.status.
3131 : ${CONFIG_STATUS=./config.status}
3133 echo creating $CONFIG_STATUS
3134 rm -f $CONFIG_STATUS
3135 cat > $CONFIG_STATUS <<EOF
3137 # Generated automatically by configure.
3138 # Run this file to recreate the current configuration.
3139 # This directory was configured as follows,
3140 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3142 # $0 $ac_configure_args
3144 # Compiler output produced by configure, useful for debugging
3145 # configure, is in ./config.log if it exists.
3147 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3150 case "\$ac_option" in
3151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3152 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3153 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3154 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3155 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3157 -help | --help | --hel | --he | --h)
3158 echo "\$ac_cs_usage"; exit 0 ;;
3159 *) echo "\$ac_cs_usage"; exit 1 ;;
3163 ac_given_srcdir=$srcdir
3165 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3167 cat >> $CONFIG_STATUS <<EOF
3169 # Protect against being on the right side of a sed subst in config.status.
3170 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3171 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3175 s%@CFLAGS@%$CFLAGS%g
3176 s%@CPPFLAGS@%$CPPFLAGS%g
3177 s%@CXXFLAGS@%$CXXFLAGS%g
3178 s%@FFLAGS@%$FFLAGS%g
3180 s%@LDFLAGS@%$LDFLAGS%g
3182 s%@exec_prefix@%$exec_prefix%g
3183 s%@prefix@%$prefix%g
3184 s%@program_transform_name@%$program_transform_name%g
3185 s%@bindir@%$bindir%g
3186 s%@sbindir@%$sbindir%g
3187 s%@libexecdir@%$libexecdir%g
3188 s%@datadir@%$datadir%g
3189 s%@sysconfdir@%$sysconfdir%g
3190 s%@sharedstatedir@%$sharedstatedir%g
3191 s%@localstatedir@%$localstatedir%g
3192 s%@libdir@%$libdir%g
3193 s%@includedir@%$includedir%g
3194 s%@oldincludedir@%$oldincludedir%g
3195 s%@infodir@%$infodir%g
3196 s%@mandir@%$mandir%g
3197 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3198 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3200 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3202 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3204 s%@DYNTYPE@%$DYNTYPE%g
3206 s%@USESONAME@%$USESONAME%g
3207 s%@NEEDSONAME@%$NEEDSONAME%g
3208 s%@SHLIBMODE@%$SHLIBMODE%g
3209 s%@INSTALL@%$INSTALL%g
3210 s%@WITH_DEBUG@%$WITH_DEBUG%g
3211 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3212 s%@FAKEROOT@%$FAKEROOT%g
3213 s%@SECUREDIR@%$SECUREDIR%g
3214 s%@SCONFIGDIR@%$SCONFIGDIR%g
3215 s%@SUPLEMENTED@%$SUPLEMENTED%g
3216 s%@INCLUDEDIR@%$INCLUDEDIR%g
3217 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3218 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3219 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3220 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3221 s%@DYNAMIC@%$DYNAMIC%g
3222 s%@STATIC@%$STATIC%g
3223 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3227 s%@LEXLIB@%$LEXLIB%g
3229 s%@SET_MAKE@%$SET_MAKE%g
3230 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3231 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3232 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3233 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3234 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3235 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3236 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3237 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3238 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3240 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3241 s%@OS_CFLAGS@%$OS_CFLAGS%g
3242 s%@WARNINGS@%$WARNINGS%g
3248 s%@LIBOBJS@%$LIBOBJS%g
3249 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3250 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3251 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3252 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3258 cat >> $CONFIG_STATUS <<\EOF
3260 # Split the substitutions into bite-sized pieces for seds with
3261 # small command number limits, like on Digital OSF/1 and HP-UX.
3262 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3263 ac_file=1 # Number of current file.
3264 ac_beg=1 # First line for current file.
3265 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3268 while $ac_more_lines; do
3269 if test $ac_beg -gt 1; then
3270 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3272 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3274 if test ! -s conftest.s$ac_file; then
3276 rm -f conftest.s$ac_file
3278 if test -z "$ac_sed_cmds"; then
3279 ac_sed_cmds="sed -f conftest.s$ac_file"
3281 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3283 ac_file=`expr $ac_file + 1`
3285 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3288 if test -z "$ac_sed_cmds"; then
3293 cat >> $CONFIG_STATUS <<EOF
3295 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3297 cat >> $CONFIG_STATUS <<\EOF
3298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3303 *) ac_file_in="${ac_file}.in" ;;
3306 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3308 # Remove last slash and all that follows it. Not all systems have dirname.
3309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3311 # The file is in a subdirectory.
3312 test ! -d "$ac_dir" && mkdir "$ac_dir"
3313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3314 # A "../" for each directory in $ac_dir_suffix.
3315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3317 ac_dir_suffix= ac_dots=
3320 case "$ac_given_srcdir" in
3322 if test -z "$ac_dots"; then top_srcdir=.
3323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3331 echo creating "$ac_file"
3333 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3335 *Makefile*) ac_comsub="1i\\
3336 # $configure_input" ;;
3340 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3342 s%@configure_input@%$configure_input%g
3343 s%@srcdir@%$srcdir%g
3344 s%@top_srcdir@%$top_srcdir%g
3345 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3349 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3350 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3352 # ac_d sets the value in "#define NAME VALUE" lines.
3353 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3354 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3357 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3358 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3359 ac_uB='\([ ]\)%\1#\2define\3'
3362 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3363 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3364 ac_eB='$%\1#\2define\3'
3368 if test "${CONFIG_HEADERS+set}" != set; then
3370 cat >> $CONFIG_STATUS <<EOF
3371 CONFIG_HEADERS="_pam_aconf.h"
3373 cat >> $CONFIG_STATUS <<\EOF
3375 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3378 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3379 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3380 *) ac_file_in="${ac_file}.in" ;;
3383 echo creating $ac_file
3385 rm -f conftest.frag conftest.in conftest.out
3386 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3387 cat $ac_file_inputs > conftest.in
3391 # Transform confdefs.h into a sed script conftest.vals that substitutes
3392 # the proper values into config.h.in to produce config.h. And first:
3393 # Protect against being on the right side of a sed subst in config.status.
3394 # Protect against being in an unquoted here document in config.status.
3396 cat > conftest.hdr <<\EOF
3399 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3403 sed -n -f conftest.hdr confdefs.h > conftest.vals
3406 # This sed command replaces #undef with comments. This is necessary, for
3407 # example, in the case of _POSIX_SOURCE, which is predefined and required
3408 # on some systems where configure will not decide to define it.
3409 cat >> conftest.vals <<\EOF
3410 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3413 # Break up conftest.vals because some shells have a limit on
3414 # the size of here documents, and old seds have small limits too.
3419 ac_lines=`grep -c . conftest.vals`
3420 # grep -c gives empty output for an empty file on some AIX systems.
3421 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3422 # Write a limited-size here document to conftest.frag.
3423 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3424 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3426 sed -f conftest.frag conftest.in > conftest.out
3428 mv conftest.out conftest.in
3430 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3432 mv conftest.tail conftest.vals
3436 cat >> $CONFIG_STATUS <<\EOF
3437 rm -f conftest.frag conftest.h
3438 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3439 cat conftest.in >> conftest.h
3441 if cmp -s $ac_file conftest.h 2>/dev/null; then
3442 echo "$ac_file is unchanged"
3445 # Remove last slash and all that follows it. Not all systems have dirname.
3446 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3448 # The file is in a subdirectory.
3449 test ! -d "$ac_dir" && mkdir "$ac_dir"
3452 mv conftest.h $ac_file
3457 cat >> $CONFIG_STATUS <<EOF
3460 cat >> $CONFIG_STATUS <<\EOF
3464 chmod +x $CONFIG_STATUS
3465 rm -fr confdefs* $ac_clean_files
3466 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1