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 --with-mailspool path to mail spool directory
45 [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=conf/pam_conv1/pam_conv.y
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
560 LIBPAM_VERSION_MAJOR=0
561 LIBPAM_VERSION_MINOR=76
565 cat >> confdefs.h <<\EOF
566 #define LIBPAM_VERSION_MAJOR 1
569 cat >> confdefs.h <<\EOF
570 #define LIBPAM_VERSION_MINOR 1
581 LOCALSRCDIR=`/bin/pwd` ;
582 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
590 LDCONFIG=/sbin/ldconfig ;
592 if test "$OS" = "aix"; then
593 INSTALL=/usr/ucb/install -c
595 INSTALL=/usr/bin/install
599 # Extract the first word of "gcc", so it can be a program name with args.
600 set dummy gcc; ac_word=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 if test -n "$CC"; then
607 ac_cv_prog_CC="$CC" # Let the user override the test.
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 if test -z "$CC"; then
629 # Extract the first word of "cc", so it can be a program name with args.
630 set dummy cc; ac_word=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 echo "configure:633: checking for $ac_word" >&5
633 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 if test -n "$CC"; then
637 ac_cv_prog_CC="$CC" # Let the user override the test.
639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
654 if test $ac_prog_rejected = yes; then
655 # We found a bogon in the path, so make sure we never use it.
656 set dummy $ac_cv_prog_CC
658 if test $# -gt 0; then
659 # We chose a different compiler from the bogus one.
660 # However, it has the same basename, so the bogon will be chosen
661 # first if we set CC to just the basename; use the full file name.
663 set dummy "$ac_dir/$ac_word" "$@"
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
680 # Extract the first word of "cl", so it can be a program name with args.
681 set dummy cl; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
692 for ac_dir in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir=.
694 if test -f $ac_dir/$ac_word; then
703 if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
706 echo "$ac_t""no" 1>&6
711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
724 cat > conftest.$ac_ext << EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
732 ac_cv_prog_cc_works=yes
733 # If we can't run a trivial program, we are probably using a cross compiler.
734 if (./conftest; exit) 2>/dev/null; then
735 ac_cv_prog_cc_cross=no
737 ac_cv_prog_cc_cross=yes
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 ac_cv_prog_cc_works=no
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
753 if test $ac_cv_prog_cc_works = no; then
754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
757 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
758 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
759 cross_compiling=$ac_cv_prog_cc_cross
761 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762 echo "configure:763: checking whether we are using GNU C" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 cat > conftest.c <<EOF
771 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
778 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
780 if test $ac_cv_prog_gcc = yes; then
786 ac_test_CFLAGS="${CFLAGS+set}"
787 ac_save_CFLAGS="$CFLAGS"
789 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${CC-cc} accepts -g" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 echo 'void f(){}' > conftest.c
795 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
804 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
805 if test "$ac_test_CFLAGS" = set; then
806 CFLAGS="$ac_save_CFLAGS"
807 elif test $ac_cv_prog_cc_g = yes; then
808 if test "$GCC" = yes; then
814 if test "$GCC" = yes; then
821 for ac_prog in 'bison -y' byacc
823 # Extract the first word of "$ac_prog", so it can be a program name with args.
824 set dummy $ac_prog; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$YACC"; then
831 ac_cv_prog_YACC="$YACC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_YACC="$ac_prog"
845 YACC="$ac_cv_prog_YACC"
846 if test -n "$YACC"; then
847 echo "$ac_t""$YACC" 1>&6
849 echo "$ac_t""no" 1>&6
852 test -n "$YACC" && break
854 test -n "$YACC" || YACC="yacc"
856 # Extract the first word of "flex", so it can be a program name with args.
857 set dummy flex; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$LEX"; then
864 ac_cv_prog_LEX="$LEX" # Let the user override the test.
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 for ac_dir in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir=.
870 if test -f $ac_dir/$ac_word; then
871 ac_cv_prog_LEX="flex"
876 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
879 LEX="$ac_cv_prog_LEX"
880 if test -n "$LEX"; then
881 echo "$ac_t""$LEX" 1>&6
883 echo "$ac_t""no" 1>&6
892 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
893 echo "configure:894: checking for yywrap in -l$ac_lib" >&5
894 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
899 LIBS="-l$ac_lib $LIBS"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 /* Override any gcc2 internal prototype to avoid an error. */
904 /* We use char because int might match the return type of a gcc2
905 builtin and then its argument prototype would still apply. */
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 eval "ac_cv_lib_$ac_lib_var=yes"
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
919 eval "ac_cv_lib_$ac_lib_var=no"
925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
926 echo "$ac_t""yes" 1>&6
929 echo "$ac_t""no" 1>&6
934 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
935 echo "configure:936: checking whether ln -s works" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
940 if ln -s X conftestdata 2>/dev/null
943 ac_cv_prog_LN_S="ln -s"
948 LN_S="$ac_cv_prog_LN_S"
949 if test "$ac_cv_prog_LN_S" = "ln -s"; then
950 echo "$ac_t""yes" 1>&6
952 echo "$ac_t""no" 1>&6
955 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
956 echo "configure:957: checking whether ${MAKE-make} sets \${MAKE}" >&5
957 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
958 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 cat > conftestmake <<\EOF
963 @echo 'ac_maketemp="${MAKE}"'
965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
966 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
967 if test -n "$ac_maketemp"; then
968 eval ac_cv_prog_make_${ac_make}_set=yes
970 eval ac_cv_prog_make_${ac_make}_set=no
974 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
975 echo "$ac_t""yes" 1>&6
978 echo "$ac_t""no" 1>&6
979 SET_MAKE="MAKE=${MAKE-make}"
984 # Check whether --enable-debug or --disable-debug was given.
985 if test "${enable_debug+set}" = set; then
986 enableval="$enable_debug"
987 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
997 # Check whether --enable-libdebug or --disable-libdebug was given.
998 if test "${enable_libdebug+set}" = set; then
999 enableval="$enable_libdebug"
1000 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1001 #define WITH_LIBDEBUG 1
1010 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1011 if test "${enable_fakeroot+set}" = set; then
1012 enableval="$enable_fakeroot"
1018 # Check whether --enable-securedir or --disable-securedir was given.
1019 if test "${enable_securedir+set}" = set; then
1020 enableval="$enable_securedir"
1021 SECUREDIR=$enableval
1023 SECUREDIR=$libdir/security
1028 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1029 if test "${enable_sconfigdir+set}" = set; then
1030 enableval="$enable_sconfigdir"
1031 SCONFIGDIR=$enableval
1033 SCONFIGDIR=$sysconfdir/security
1038 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1039 if test "${enable_suplementedir+set}" = set; then
1040 enableval="$enable_suplementedir"
1041 SUPLEMENTED=$enableval
1043 SUPLEMENTED=$sbindir
1048 # Check whether --enable-includedir or --disable-includedir was given.
1049 if test "${enable_includedir+set}" = set; then
1050 enableval="$enable_includedir"
1051 INCLUDEDIR=$enableval
1053 INCLUDEDIR=/usr/include
1058 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1059 if test "${enable_pamlocking+set}" = set; then
1060 enableval="$enable_pamlocking"
1061 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1062 #define PAM_LOCKING 1
1071 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1072 if test "${enable_uglyhack+set}" = set; then
1073 enableval="$enable_uglyhack"
1074 cat >> confdefs.h <<\EOF
1075 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1081 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1082 if test "${enable_read_both_confs+set}" = set; then
1083 enableval="$enable_read_both_confs"
1084 cat >> confdefs.h <<\EOF
1085 #define PAM_READ_BOTH_CONFS 1
1092 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1093 if test "${enable_static_libpam+set}" = set; then
1094 enableval="$enable_static_libpam"
1102 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1103 if test "${enable_dynamic_libpam+set}" = set; then
1104 enableval="$enable_dynamic_libpam"
1112 DYNAMIC=-DPAM_DYNAMIC
1115 # Check whether --enable-static-modules or --disable-static-modules was given.
1116 if test "${enable_static_modules+set}" = set; then
1117 enableval="$enable_static_modules"
1123 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1124 if test "${enable_lckpwdf+set}" = set; then
1125 enableval="$enable_lckpwdf"
1133 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1134 echo "configure:1135: checking how to run the C preprocessor" >&5
1135 # On Suns, sometimes $CPP names a directory.
1136 if test -n "$CPP" && test -d "$CPP"; then
1139 if test -z "$CPP"; then
1140 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 # This must be in double quotes, not single quotes, because CPP may get
1144 # substituted into the Makefile and "${CC-cc}" will confuse make.
1146 # On the NeXT, cc -E runs the code through the compiler's parser,
1147 # not just through cpp.
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155 { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1157 if test -z "$ac_err"; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 CPP="${CC-cc} -E -traditional-cpp"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1178 echo "configure: failed program was:" >&5
1179 cat conftest.$ac_ext >&5
1181 CPP="${CC-cc} -nologo -E"
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1191 if test -z "$ac_err"; then
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1205 ac_cv_prog_CPP="$CPP"
1207 CPP="$ac_cv_prog_CPP"
1209 ac_cv_prog_CPP="$CPP"
1211 echo "$ac_t""$CPP" 1>&6
1213 for ac_hdr in paths.h
1215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_hdr" >&5
1218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1227 { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1229 if test -z "$ac_err"; then
1231 eval "ac_cv_header_$ac_safe=yes"
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 eval "ac_cv_header_$ac_safe=no"
1241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1244 cat >> confdefs.h <<EOF
1245 #define $ac_tr_hdr 1
1249 echo "$ac_t""no" 1>&6
1253 # Check whether --with-mailspool or --without-mailspool was given.
1254 if test "${with_mailspool+set}" = set; then
1255 withval="$with_mailspool"
1256 with_mailspool=${withval}
1259 if test x$with_mailspool != x ; then
1260 pam_mail_spool="\"$with_mailspool\""
1262 if test "$cross_compiling" = yes; then
1263 pam_mail_spool="\"/var/spool/mail\""
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1271 #ifdef _PATH_MAILDIR
1278 if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1280 pam_mail_spool="_PATH_MAILDIR"
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 pam_mail_spool="\"/var/spool/mail\""
1291 cat >> confdefs.h <<EOF
1292 #define PAM_PATH_MAILDIR $pam_mail_spool
1296 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1297 echo "configure:1298: checking for __libc_sched_setscheduler in -lc" >&5
1298 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 ac_save_LIBS="$LIBS"
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* Override any gcc2 internal prototype to avoid an error. */
1308 /* We use char because int might match the return type of a gcc2
1309 builtin and then its argument prototype would still apply. */
1310 char __libc_sched_setscheduler();
1313 __libc_sched_setscheduler()
1316 if { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1318 eval "ac_cv_lib_$ac_lib_var=yes"
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1323 eval "ac_cv_lib_$ac_lib_var=no"
1326 LIBS="$ac_save_LIBS"
1329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1330 echo "$ac_t""yes" 1>&6
1333 echo "$ac_t""no" 1>&6
1339 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1340 echo "configure:1341: checking for lckpwdf in -lc" >&5
1341 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 ac_save_LIBS="$LIBS"
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 /* Override any gcc2 internal prototype to avoid an error. */
1351 /* We use char because int might match the return type of a gcc2
1352 builtin and then its argument prototype would still apply. */
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1361 eval "ac_cv_lib_$ac_lib_var=yes"
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 eval "ac_cv_lib_$ac_lib_var=no"
1369 LIBS="$ac_save_LIBS"
1372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1376 echo "$ac_t""no" 1>&6
1382 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1383 echo "configure:1384: checking for dlopen in -ldl" >&5
1384 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 ac_save_LIBS="$LIBS"
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 eval "ac_cv_lib_$ac_lib_var=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 eval "ac_cv_lib_$ac_lib_var=no"
1412 LIBS="$ac_save_LIBS"
1415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1425 echo "configure:1426: checking for FascistCheck in -lcrack" >&5
1426 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS="$LIBS"
1431 LIBS="-lcrack $LIBS"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1438 char FascistCheck();
1444 if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1460 #define HAVE_LIBCRACK 1
1464 echo "$ac_t""no" 1>&6
1470 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1471 echo "configure:1472: checking for fcrypt in -lcrypt" >&5
1472 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 ac_save_LIBS="$LIBS"
1477 LIBS="-lcrypt $LIBS"
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 /* Override any gcc2 internal prototype to avoid an error. */
1482 /* We use char because int might match the return type of a gcc2
1483 builtin and then its argument prototype would still apply. */
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492 eval "ac_cv_lib_$ac_lib_var=yes"
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1497 eval "ac_cv_lib_$ac_lib_var=no"
1500 LIBS="$ac_save_LIBS"
1503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1504 echo "$ac_t""yes" 1>&6
1505 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1506 #define HAVE_LIBCRYPT 1
1510 echo "$ac_t""no" 1>&6
1515 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1516 echo "configure:1517: checking for logwtmp in -lutil" >&5
1517 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_save_LIBS="$LIBS"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1542 eval "ac_cv_lib_$ac_lib_var=no"
1545 LIBS="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1551 #define HAVE_LIBUTIL 1
1555 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1561 echo "configure:1562: checking for dbm_store in -lndbm" >&5
1562 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 ac_save_LIBS="$LIBS"
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* Override any gcc2 internal prototype to avoid an error. */
1572 /* We use char because int might match the return type of a gcc2
1573 builtin and then its argument prototype would still apply. */
1580 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582 eval "ac_cv_lib_$ac_lib_var=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 eval "ac_cv_lib_$ac_lib_var=no"
1590 LIBS="$ac_save_LIBS"
1593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1596 #define HAVE_LIBNDBM 1
1600 echo "$ac_t""no" 1>&6
1605 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1606 echo "configure:1607: checking for dbm_store in -ldb" >&5
1607 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 ac_save_LIBS="$LIBS"
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627 eval "ac_cv_lib_$ac_lib_var=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1632 eval "ac_cv_lib_$ac_lib_var=no"
1635 LIBS="$ac_save_LIBS"
1638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1641 #define HAVE_LIBDB 1
1645 echo "$ac_t""no" 1>&6
1650 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1651 echo "configure:1652: checking for yylex in -lfl" >&5
1652 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 ac_save_LIBS="$LIBS"
1657 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672 eval "ac_cv_lib_$ac_lib_var=yes"
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1677 eval "ac_cv_lib_$ac_lib_var=no"
1680 LIBS="$ac_save_LIBS"
1683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1684 echo "$ac_t""yes" 1>&6
1687 echo "$ac_t""no" 1>&6
1688 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1689 #define HAVE_LIBFL 1
1695 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1696 echo "configure:1697: checking for yp_maplist in -lnsl" >&5
1697 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_save_LIBS="$LIBS"
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 /* Override any gcc2 internal prototype to avoid an error. */
1707 /* We use char because int might match the return type of a gcc2
1708 builtin and then its argument prototype would still apply. */
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717 eval "ac_cv_lib_$ac_lib_var=yes"
1719 echo "configure: failed program was:" >&5
1720 cat conftest.$ac_ext >&5
1722 eval "ac_cv_lib_$ac_lib_var=no"
1725 LIBS="$ac_save_LIBS"
1728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1729 echo "$ac_t""yes" 1>&6
1730 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1731 #define HAVE_LIBNSL 1
1735 echo "$ac_t""no" 1>&6
1740 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1741 echo "configure:1742: checking for pwdb_db_name in -lpwdb" >&5
1742 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 ac_save_LIBS="$LIBS"
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 /* Override any gcc2 internal prototype to avoid an error. */
1752 /* We use char because int might match the return type of a gcc2
1753 builtin and then its argument prototype would still apply. */
1754 char pwdb_db_name();
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1762 eval "ac_cv_lib_$ac_lib_var=yes"
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 eval "ac_cv_lib_$ac_lib_var=no"
1770 LIBS="$ac_save_LIBS"
1773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1774 echo "$ac_t""yes" 1>&6
1775 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1776 #define HAVE_LIBPWDB 1
1780 echo "$ac_t""no" 1>&6
1787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1790 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_hdr that defines DIR" >&5
1792 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <sys/types.h>
1804 if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 eval "ac_cv_header_dirent_$ac_safe=yes"
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 eval "ac_cv_header_dirent_$ac_safe=no"
1815 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1816 echo "$ac_t""yes" 1>&6
1817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1818 cat >> confdefs.h <<EOF
1819 #define $ac_tr_hdr 1
1821 ac_header_dirent=$ac_hdr; break
1823 echo "$ac_t""no" 1>&6
1826 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1827 if test $ac_header_dirent = dirent.h; then
1828 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1829 echo "configure:1830: checking for opendir in -ldir" >&5
1830 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 ac_save_LIBS="$LIBS"
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* Override any gcc2 internal prototype to avoid an error. */
1840 /* We use char because int might match the return type of a gcc2
1841 builtin and then its argument prototype would still apply. */
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 eval "ac_cv_lib_$ac_lib_var=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_lib_$ac_lib_var=no"
1858 LIBS="$ac_save_LIBS"
1861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1862 echo "$ac_t""yes" 1>&6
1865 echo "$ac_t""no" 1>&6
1869 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1870 echo "configure:1871: checking for opendir in -lx" >&5
1871 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 ac_save_LIBS="$LIBS"
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 /* Override any gcc2 internal prototype to avoid an error. */
1881 /* We use char because int might match the return type of a gcc2
1882 builtin and then its argument prototype would still apply. */
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891 eval "ac_cv_lib_$ac_lib_var=yes"
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1896 eval "ac_cv_lib_$ac_lib_var=no"
1899 LIBS="$ac_save_LIBS"
1902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1903 echo "$ac_t""yes" 1>&6
1906 echo "$ac_t""no" 1>&6
1911 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1912 echo "configure:1913: checking for ANSI C header files" >&5
1913 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then
1929 ac_cv_header_stdc=yes
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 ac_cv_header_stdc=no
1939 if test $ac_cv_header_stdc = yes; then
1940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "memchr" >/dev/null 2>&1; then
1951 ac_cv_header_stdc=no
1957 if test $ac_cv_header_stdc = yes; then
1958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1965 egrep "free" >/dev/null 2>&1; then
1969 ac_cv_header_stdc=no
1975 if test $ac_cv_header_stdc = yes; then
1976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1977 if test "$cross_compiling" = yes; then
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1984 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1985 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1987 int main () { int i; for (i = 0; i < 256; i++)
1988 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1999 ac_cv_header_stdc=no
2007 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2008 if test $ac_cv_header_stdc = yes; then
2009 cat >> confdefs.h <<\EOF
2010 #define STDC_HEADERS 1
2015 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2016 echo "configure:2017: checking for sys/wait.h that is POSIX.1 compatible" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+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"
2023 #include <sys/types.h>
2024 #include <sys/wait.h>
2026 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2029 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2034 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2039 ac_cv_header_sys_wait_h=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 ac_cv_header_sys_wait_h=no
2049 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2050 if test $ac_cv_header_sys_wait_h = yes; then
2051 cat >> confdefs.h <<\EOF
2052 #define HAVE_SYS_WAIT_H 1
2057 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
2059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_hdr" >&5
2062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2073 if test -z "$ac_err"; then
2075 eval "ac_cv_header_$ac_safe=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 eval "ac_cv_header_$ac_safe=no"
2085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_hdr 1
2093 echo "$ac_t""no" 1>&6
2098 for ac_hdr in features.h
2100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2114 if test -z "$ac_err"; then
2116 eval "ac_cv_header_$ac_safe=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 eval "ac_cv_header_$ac_safe=no"
2126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129 cat >> confdefs.h <<EOF
2130 #define $ac_tr_hdr 1
2134 echo "$ac_t""no" 1>&6
2139 for ac_hdr in crypt.h
2141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2153 { (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155 if test -z "$ac_err"; then
2157 eval "ac_cv_header_$ac_safe=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2163 eval "ac_cv_header_$ac_safe=no"
2167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h <<EOF
2171 #define $ac_tr_hdr 1
2175 echo "$ac_t""no" 1>&6
2180 for ac_hdr in ndbm.h db.h
2182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_hdr" >&5
2185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2194 { (eval echo configure:2195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2196 if test -z "$ac_err"; then
2198 eval "ac_cv_header_$ac_safe=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 eval "ac_cv_header_$ac_safe=no"
2208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_hdr 1
2216 echo "$ac_t""no" 1>&6
2220 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2223 for ac_hdr in lastlog.h utmp.h utmpx.h
2225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_hdr" >&5
2228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2237 { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2239 if test -z "$ac_err"; then
2241 eval "ac_cv_header_$ac_safe=yes"
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2247 eval "ac_cv_header_$ac_safe=no"
2251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2254 cat >> confdefs.h <<EOF
2255 #define $ac_tr_hdr 1
2259 echo "$ac_t""no" 1>&6
2265 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2266 echo "configure:2267: checking path to cracklib dictionary" >&5
2267 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2268 /usr/local/lib /usr/local/share/lib"
2269 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2270 CRACKLIB_DICTPATH=""
2271 for d in $DICT_DIR_CANDIDATES ; do
2272 for f in $DICT_FILE_CANDIDATES ; do
2273 if test -r $d/$f.hwm ; then
2274 CRACKLIB_DICTPATH=$d/$f
2276 elif test -r $d/dict/$f.hwm ; then
2277 CRACKLIB_DICTPATH=$d/dict/$f
2282 if test -z "$CRACKLIB_DICTPATH" ; then
2283 echo "$ac_t""none found" 1>&6
2285 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2290 GCC_WARNINGS="-Wall -Wwrite-strings \
2291 -Wpointer-arith -Wcast-qual -Wcast-align \
2292 -Wstrict-prototypes -Wmissing-prototypes \
2293 -Wnested-externs -Winline -Wshadow"
2295 if test "$GCC" = yes; then
2296 ### May need per-OS attention
2297 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2300 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2301 LD_D="gcc -shared -Xlinker -x"
2302 WARNINGS="$GCC_WARNINGS"
2306 LD_L="$LD -x -shared"
2309 CC_STATIC="-Xlinker -export-dynamic"
2312 OS_CFLAGS="-ansi -pedantic"
2313 LD_D="gcc -shared -Xlinker -x"
2314 WARNINGS="$GCC_WARNINGS"
2318 LD_L="$LD -x -shared"
2321 CC_STATIC="-Xlinker -export-dynamic"
2327 LD_L=ld -bexpall -bM:SRE -bnoentry
2338 ### Non-gcc needs attention on per-OS basis
2340 ### [These are Solaris-C specific...]
2346 LD_D="cc -z text -G -R."
2364 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether byte ordering is bigendian" >&5
2366 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_cv_c_bigendian=unknown
2370 # See if sys/param.h defines the BYTE_ORDER macro.
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <sys/param.h>
2378 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2383 if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2385 # It does; now see whether it defined to BIG_ENDIAN or not.
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2390 #include <sys/param.h>
2393 #if BYTE_ORDER != BIG_ENDIAN
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2400 ac_cv_c_bigendian=yes
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 ac_cv_c_bigendian=no
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2413 if test $ac_cv_c_bigendian = unknown; then
2414 if test "$cross_compiling" = yes; then
2415 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2421 /* Are we little or big endian? From Harbison&Steele. */
2425 char c[sizeof (long)];
2428 exit (u.c[sizeof (long) - 1] == 1);
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2433 ac_cv_c_bigendian=no
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 ac_cv_c_bigendian=yes
2446 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2447 if test $ac_cv_c_bigendian = yes; then
2448 cat >> confdefs.h <<\EOF
2449 #define WORDS_BIGENDIAN 1
2454 echo $ac_n "checking for working const""... $ac_c" 1>&6
2455 echo "configure:2456: checking for working const" >&5
2456 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2465 /* Ultrix mips cc rejects this. */
2466 typedef int charset[2]; const charset x;
2467 /* SunOS 4.1.1 cc rejects this. */
2468 char const *const *ccp;
2470 /* NEC SVR4.0.2 mips cc rejects this. */
2471 struct point {int x, y;};
2472 static struct point const zero = {0,0};
2473 /* AIX XL C 1.02.0.0 rejects this.
2474 It does not let you subtract one const X* pointer from another in an arm
2475 of an if-expression whose if-part is not a constant expression */
2476 const char *g = "string";
2477 ccp = &g + (g ? g-g : 0);
2478 /* HPUX 7.0 cc rejects these. */
2481 ccp = (char const *const *) p;
2482 { /* SCO 3.2v4 cc rejects this. */
2484 char const *s = 0 ? (char *) 0 : (char const *) 0;
2488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2490 const int *foo = &x[0];
2493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2494 typedef const int *iptr;
2498 { /* AIX XL C 1.02.0.0 rejects this saying
2499 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2500 struct s { int j; const int *ap[3]; };
2501 struct s *b; b->j = 5;
2503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2521 echo "$ac_t""$ac_cv_c_const" 1>&6
2522 if test $ac_cv_c_const = no; then
2523 cat >> confdefs.h <<\EOF
2529 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2530 echo "configure:2531: checking for uid_t in sys/types.h" >&5
2531 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 #include <sys/types.h>
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540 egrep "uid_t" >/dev/null 2>&1; then
2542 ac_cv_type_uid_t=yes
2551 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2552 if test $ac_cv_type_uid_t = no; then
2553 cat >> confdefs.h <<\EOF
2557 cat >> confdefs.h <<\EOF
2563 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2564 echo "configure:2565: checking for off_t" >&5
2565 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2580 ac_cv_type_off_t=yes
2588 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2589 if test $ac_cv_type_off_t = no; then
2590 cat >> confdefs.h <<\EOF
2596 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2597 echo "configure:2598: checking for pid_t" >&5
2598 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 #include <sys/types.h>
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2613 ac_cv_type_pid_t=yes
2621 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2622 if test $ac_cv_type_pid_t = no; then
2623 cat >> confdefs.h <<\EOF
2629 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2630 echo "configure:2631: checking for size_t" >&5
2631 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2646 ac_cv_type_size_t=yes
2649 ac_cv_type_size_t=no
2654 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2655 if test $ac_cv_type_size_t = no; then
2656 cat >> confdefs.h <<\EOF
2657 #define size_t unsigned
2662 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether time.h and sys/time.h may both be included" >&5
2664 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2671 #include <sys/time.h>
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 ac_cv_header_time=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 ac_cv_header_time=no
2689 echo "$ac_t""$ac_cv_header_time" 1>&6
2690 if test $ac_cv_header_time = yes; then
2691 cat >> confdefs.h <<\EOF
2692 #define TIME_WITH_SYS_TIME 1
2697 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2698 echo "configure:2699: checking whether struct tm is in sys/time.h or time.h" >&5
2699 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2708 struct tm *tp; tp->tm_sec;
2711 if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2713 ac_cv_struct_tm=time.h
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 ac_cv_struct_tm=sys/time.h
2723 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2724 if test $ac_cv_struct_tm = sys/time.h; then
2725 cat >> confdefs.h <<\EOF
2726 #define TM_IN_SYS_TIME 1
2732 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2733 echo "configure:2734: checking type of array argument to getgroups" >&5
2734 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 if test "$cross_compiling" = yes; then
2738 ac_cv_type_getgroups=cross
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2744 /* Thanks to Mike Rendell for this test. */
2745 #include <sys/types.h>
2748 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2753 union { gid_t gval; long lval; } val;
2756 for (i = 0; i < NGID; i++)
2757 gidset[i] = val.gval;
2758 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2760 /* Exit non-zero if getgroups seems to require an array of ints. This
2761 happens when gid_t is short but getgroups modifies an array of ints. */
2762 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2766 if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2768 ac_cv_type_getgroups=gid_t
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2773 ac_cv_type_getgroups=int
2778 if test $ac_cv_type_getgroups = cross; then
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2785 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2787 ac_cv_type_getgroups=gid_t
2790 ac_cv_type_getgroups=int
2797 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2798 cat >> confdefs.h <<EOF
2799 #define GETGROUPS_T $ac_cv_type_getgroups
2803 if test $ac_cv_prog_gcc = yes; then
2804 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2805 echo "configure:2806: checking whether ${CC-cc} needs -traditional" >&5
2806 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 ac_pattern="Autoconf.*'x'"
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2817 egrep "$ac_pattern" >/dev/null 2>&1; then
2819 ac_cv_prog_gcc_traditional=yes
2822 ac_cv_prog_gcc_traditional=no
2827 if test $ac_cv_prog_gcc_traditional = no; then
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "$ac_pattern" >/dev/null 2>&1; then
2837 ac_cv_prog_gcc_traditional=yes
2844 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2845 if test $ac_cv_prog_gcc_traditional = yes; then
2846 CC="$CC -traditional"
2850 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2851 echo "configure:2852: checking for 8-bit clean memcmp" >&5
2852 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 if test "$cross_compiling" = yes; then
2856 ac_cv_func_memcmp_clean=no
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2864 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2865 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2869 if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2871 ac_cv_func_memcmp_clean=yes
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2876 ac_cv_func_memcmp_clean=no
2883 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2884 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2886 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2887 echo "configure:2888: checking for vprintf" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char vprintf(); below. */
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 /* We use char because int might match the return type of a gcc2
2899 builtin and then its argument prototype would still apply. */
2904 /* The GNU C library defines this for functions which it implements
2905 to always fail with ENOSYS. Some functions are actually named
2906 something starting with __ and the normal name is an alias. */
2907 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2915 if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2917 eval "ac_cv_func_vprintf=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 eval "ac_cv_func_vprintf=no"
2927 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2928 echo "$ac_t""yes" 1>&6
2929 cat >> confdefs.h <<\EOF
2930 #define HAVE_VPRINTF 1
2934 echo "$ac_t""no" 1>&6
2937 if test "$ac_cv_func_vprintf" != yes; then
2938 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2939 echo "configure:2940: checking for _doprnt" >&5
2940 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* System header to define __stub macros and hopefully few prototypes,
2947 which can conflict with char _doprnt(); below. */
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2956 /* The GNU C library defines this for functions which it implements
2957 to always fail with ENOSYS. Some functions are actually named
2958 something starting with __ and the normal name is an alias. */
2959 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2969 eval "ac_cv_func__doprnt=yes"
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 eval "ac_cv_func__doprnt=no"
2979 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2981 cat >> confdefs.h <<\EOF
2982 #define HAVE_DOPRNT 1
2986 echo "$ac_t""no" 1>&6
2991 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
2993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_func" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char $ac_func(); below. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3024 eval "ac_cv_func_$ac_func=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 eval "ac_cv_func_$ac_func=no"
3034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3037 cat >> confdefs.h <<EOF
3038 #define $ac_tr_func 1
3042 echo "$ac_t""no" 1>&6
3047 # Extract the first word of "sgml2txt", so it can be a program name with args.
3048 set dummy sgml2txt; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$HAVE_SGML2TXT"; then
3055 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_prog_HAVE_SGML2TXT="yes"
3067 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3070 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3071 if test -n "$HAVE_SGML2TXT"; then
3072 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3074 echo "$ac_t""no" 1>&6
3077 # Extract the first word of "sgml2html", so it can be a program name with args.
3078 set dummy sgml2html; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$HAVE_SGML2HTML"; then
3085 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_HAVE_SGML2HTML="yes"
3097 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3100 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3101 if test -n "$HAVE_SGML2HTML"; then
3102 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3104 echo "$ac_t""no" 1>&6
3107 # Extract the first word of "sgml2latex", so it can be a program name with args.
3108 set dummy sgml2latex; ac_word=$2
3109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_word" >&5
3111 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 if test -n "$HAVE_SGML2LATEX"; then
3115 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3119 for ac_dir in $ac_dummy; do
3120 test -z "$ac_dir" && ac_dir=.
3121 if test -f $ac_dir/$ac_word; then
3122 ac_cv_prog_HAVE_SGML2LATEX="yes"
3127 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3130 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3131 if test -n "$HAVE_SGML2LATEX"; then
3132 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3134 echo "$ac_t""no" 1>&6
3137 if test $HAVE_SGML2LATEX = "yes" ; then
3138 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3139 PSER="sgml2latex -o ps"
3141 PSER="sgml2latex -p"
3144 # Extract the first word of "sgml2ps", so it can be a program name with args.
3145 set dummy sgml2ps; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 if test -n "$HAVE_SGML2PS"; then
3152 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3156 for ac_dir in $ac_dummy; do
3157 test -z "$ac_dir" && ac_dir=.
3158 if test -f $ac_dir/$ac_word; then
3159 ac_cv_prog_HAVE_SGML2PS="yes"
3164 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3167 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3168 if test -n "$HAVE_SGML2PS"; then
3169 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3171 echo "$ac_t""no" 1>&6
3174 if test $HAVE_SGML2PS = yes ; then
3181 cat > confcache <<\EOF
3182 # This file is a shell script that caches the results of configure
3183 # tests run on this system so they can be shared between configure
3184 # scripts and configure runs. It is not useful on other systems.
3185 # If it contains results you don't want to keep, you may remove or edit it.
3187 # By default, configure uses ./config.cache as the cache file,
3188 # creating it if it does not exist already. You can give configure
3189 # the --cache-file=FILE option to use a different cache file; that is
3190 # what configure does when it calls configure scripts in
3191 # subdirectories, so they share the cache.
3192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3193 # config.status only pays attention to the cache file if you give it the
3194 # --recheck option to rerun configure.
3197 # The following way of writing the cache mishandles newlines in values,
3198 # but we know of no workaround that is simple, portable, and efficient.
3199 # So, don't put newlines in cache variables' values.
3200 # Ultrix sh set writes to stderr and can't be redirected directly,
3201 # and sets the high bit in the cache file unless we assign to the vars.
3203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3205 # `set' does not quote correctly, so add quotes (double-quote substitution
3206 # turns \\\\ into \\, and sed turns \\ into \).
3208 -e "s/'/'\\\\''/g" \
3209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3212 # `set' quotes correctly as required by POSIX, so do not add quotes.
3213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3216 if cmp -s $cache_file confcache; then
3219 if test -w $cache_file; then
3220 echo "updating cache $cache_file"
3221 cat confcache > $cache_file
3223 echo "not updating unwritable cache $cache_file"
3228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3231 # Let make expand exec_prefix.
3232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3234 # Any assignment to VPATH causes Sun make to only execute
3235 # the first set of double-colon rules, so remove it if not needed.
3236 # If there is a colon in the path, we need to keep it.
3237 if test "x$srcdir" = x.; then
3238 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3243 DEFS=-DHAVE_CONFIG_H
3245 # Without the "./", some shells look in PATH for config.status.
3246 : ${CONFIG_STATUS=./config.status}
3248 echo creating $CONFIG_STATUS
3249 rm -f $CONFIG_STATUS
3250 cat > $CONFIG_STATUS <<EOF
3252 # Generated automatically by configure.
3253 # Run this file to recreate the current configuration.
3254 # This directory was configured as follows,
3255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3257 # $0 $ac_configure_args
3259 # Compiler output produced by configure, useful for debugging
3260 # configure, is in ./config.log if it exists.
3262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3265 case "\$ac_option" in
3266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3272 -help | --help | --hel | --he | --h)
3273 echo "\$ac_cs_usage"; exit 0 ;;
3274 *) echo "\$ac_cs_usage"; exit 1 ;;
3278 ac_given_srcdir=$srcdir
3280 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3282 cat >> $CONFIG_STATUS <<EOF
3284 # Protect against being on the right side of a sed subst in config.status.
3285 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3286 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3290 s%@CFLAGS@%$CFLAGS%g
3291 s%@CPPFLAGS@%$CPPFLAGS%g
3292 s%@CXXFLAGS@%$CXXFLAGS%g
3293 s%@FFLAGS@%$FFLAGS%g
3295 s%@LDFLAGS@%$LDFLAGS%g
3297 s%@exec_prefix@%$exec_prefix%g
3298 s%@prefix@%$prefix%g
3299 s%@program_transform_name@%$program_transform_name%g
3300 s%@bindir@%$bindir%g
3301 s%@sbindir@%$sbindir%g
3302 s%@libexecdir@%$libexecdir%g
3303 s%@datadir@%$datadir%g
3304 s%@sysconfdir@%$sysconfdir%g
3305 s%@sharedstatedir@%$sharedstatedir%g
3306 s%@localstatedir@%$localstatedir%g
3307 s%@libdir@%$libdir%g
3308 s%@includedir@%$includedir%g
3309 s%@oldincludedir@%$oldincludedir%g
3310 s%@infodir@%$infodir%g
3311 s%@mandir@%$mandir%g
3312 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3313 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3315 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3317 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3319 s%@SHLIBMODE@%$SHLIBMODE%g
3320 s%@USESONAME@%$USESONAME%g
3321 s%@SOSWITCH@%$SOSWITCH%g
3322 s%@NEEDSONAME@%$NEEDSONAME%g
3323 s%@LDCONFIG@%$LDCONFIG%g
3324 s%@INSTALL@%$INSTALL%g
3327 s%@LEXLIB@%$LEXLIB%g
3329 s%@SET_MAKE@%$SET_MAKE%g
3330 s%@WITH_DEBUG@%$WITH_DEBUG%g
3331 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3332 s%@FAKEROOT@%$FAKEROOT%g
3333 s%@SECUREDIR@%$SECUREDIR%g
3334 s%@SCONFIGDIR@%$SCONFIGDIR%g
3335 s%@SUPLEMENTED@%$SUPLEMENTED%g
3336 s%@INCLUDEDIR@%$INCLUDEDIR%g
3337 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3338 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3339 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3340 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3341 s%@DYNAMIC@%$DYNAMIC%g
3342 s%@STATIC@%$STATIC%g
3343 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3345 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3346 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3348 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3349 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3350 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3351 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3352 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3353 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3354 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3355 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3356 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3357 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3358 s%@DYNTYPE@%$DYNTYPE%g
3359 s%@OS_CFLAGS@%$OS_CFLAGS%g
3360 s%@WARNINGS@%$WARNINGS%g
3365 s%@RANLIB@%$RANLIB%g
3367 s%@CC_STATIC@%$CC_STATIC%g
3368 s%@LIBOBJS@%$LIBOBJS%g
3369 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3370 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3371 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3372 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3378 cat >> $CONFIG_STATUS <<\EOF
3380 # Split the substitutions into bite-sized pieces for seds with
3381 # small command number limits, like on Digital OSF/1 and HP-UX.
3382 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3383 ac_file=1 # Number of current file.
3384 ac_beg=1 # First line for current file.
3385 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3388 while $ac_more_lines; do
3389 if test $ac_beg -gt 1; then
3390 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3392 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3394 if test ! -s conftest.s$ac_file; then
3396 rm -f conftest.s$ac_file
3398 if test -z "$ac_sed_cmds"; then
3399 ac_sed_cmds="sed -f conftest.s$ac_file"
3401 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3403 ac_file=`expr $ac_file + 1`
3405 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3408 if test -z "$ac_sed_cmds"; then
3413 cat >> $CONFIG_STATUS <<EOF
3415 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3417 cat >> $CONFIG_STATUS <<\EOF
3418 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3421 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3422 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3423 *) ac_file_in="${ac_file}.in" ;;
3426 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3428 # Remove last slash and all that follows it. Not all systems have dirname.
3429 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3430 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3431 # The file is in a subdirectory.
3432 test ! -d "$ac_dir" && mkdir "$ac_dir"
3433 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3434 # A "../" for each directory in $ac_dir_suffix.
3435 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3437 ac_dir_suffix= ac_dots=
3440 case "$ac_given_srcdir" in
3442 if test -z "$ac_dots"; then top_srcdir=.
3443 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3444 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3446 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3447 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3451 echo creating "$ac_file"
3453 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3455 *Makefile*) ac_comsub="1i\\
3456 # $configure_input" ;;
3460 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3462 s%@configure_input@%$configure_input%g
3463 s%@srcdir@%$srcdir%g
3464 s%@top_srcdir@%$top_srcdir%g
3465 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3472 # ac_d sets the value in "#define NAME VALUE" lines.
3473 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3474 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3477 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3478 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3479 ac_uB='\([ ]\)%\1#\2define\3'
3482 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3483 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3484 ac_eB='$%\1#\2define\3'
3488 if test "${CONFIG_HEADERS+set}" != set; then
3490 cat >> $CONFIG_STATUS <<EOF
3491 CONFIG_HEADERS="_pam_aconf.h"
3493 cat >> $CONFIG_STATUS <<\EOF
3495 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3500 *) ac_file_in="${ac_file}.in" ;;
3503 echo creating $ac_file
3505 rm -f conftest.frag conftest.in conftest.out
3506 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3507 cat $ac_file_inputs > conftest.in
3511 # Transform confdefs.h into a sed script conftest.vals that substitutes
3512 # the proper values into config.h.in to produce config.h. And first:
3513 # Protect against being on the right side of a sed subst in config.status.
3514 # Protect against being in an unquoted here document in config.status.
3516 cat > conftest.hdr <<\EOF
3519 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3523 sed -n -f conftest.hdr confdefs.h > conftest.vals
3526 # This sed command replaces #undef with comments. This is necessary, for
3527 # example, in the case of _POSIX_SOURCE, which is predefined and required
3528 # on some systems where configure will not decide to define it.
3529 cat >> conftest.vals <<\EOF
3530 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3533 # Break up conftest.vals because some shells have a limit on
3534 # the size of here documents, and old seds have small limits too.
3539 ac_lines=`grep -c . conftest.vals`
3540 # grep -c gives empty output for an empty file on some AIX systems.
3541 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3542 # Write a limited-size here document to conftest.frag.
3543 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3544 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3546 sed -f conftest.frag conftest.in > conftest.out
3548 mv conftest.out conftest.in
3550 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3552 mv conftest.tail conftest.vals
3556 cat >> $CONFIG_STATUS <<\EOF
3557 rm -f conftest.frag conftest.h
3558 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3559 cat conftest.in >> conftest.h
3561 if cmp -s $ac_file conftest.h 2>/dev/null; then
3562 echo "$ac_file is unchanged"
3565 # Remove last slash and all that follows it. Not all systems have dirname.
3566 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3567 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3568 # The file is in a subdirectory.
3569 test ! -d "$ac_dir" && mkdir "$ac_dir"
3572 mv conftest.h $ac_file
3577 cat >> $CONFIG_STATUS <<EOF
3580 cat >> $CONFIG_STATUS <<\EOF
3584 chmod +x $CONFIG_STATUS
3585 rm -fr confdefs* $ac_clean_files
3586 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1