]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs: 486063
[linux-pam] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=
15 ac_help="$ac_help
16   --enable-debug           specify you are building with debugging on"
17 ac_help="$ac_help
18   --enable-memory-debug    specify you want every malloc etc. call tracked"
19 ac_help="$ac_help
20   --enable-libdebug        specify you are building debugging libraries"
21 ac_help="$ac_help
22   --enable-fakeroot=<path to packaging directory>"
23 ac_help="$ac_help
24   --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
25 ac_help="$ac_help
26   --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
27 ac_help="$ac_help
28   --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
29 ac_help="$ac_help
30   --enable-includedir=<path to include location> - where to put <security>"
31 ac_help="$ac_help
32   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>"
33 ac_help="$ac_help
34   --enable-mandir=<path to store manuals in - /usr/share/man>"
35 ac_help="$ac_help
36   --enable-pamlocking      configure libpam to observe a global authentication lock"
37 ac_help="$ac_help
38   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax"
39 ac_help="$ac_help
40   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files"
41 ac_help="$ac_help
42   --enable-static-libpam   build a libpam.a library"
43 ac_help="$ac_help
44   --disable-dynamic-libpam do not build a shared libpam library"
45 ac_help="$ac_help
46   --enable-static-modules  do not make the modules dynamically loadable"
47 ac_help="$ac_help
48   --disable-lckpwdf do not use the lckpwdf function"
49 ac_help="$ac_help
50   --with-mailspool         path to mail spool directory
51                            [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
52
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
86
87 # Initialize some other variables.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 ac_max_here_lines=12
93
94 ac_prev=
95 for ac_option
96 do
97
98   # If the previous option needs an argument, assign it.
99   if test -n "$ac_prev"; then
100     eval "$ac_prev=\$ac_option"
101     ac_prev=
102     continue
103   fi
104
105   case "$ac_option" in
106   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107   *) ac_optarg= ;;
108   esac
109
110   # Accept the important Cygnus configure options, so we can diagnose typos.
111
112   case "$ac_option" in
113
114   -bindir | --bindir | --bindi | --bind | --bin | --bi)
115     ac_prev=bindir ;;
116   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117     bindir="$ac_optarg" ;;
118
119   -build | --build | --buil | --bui | --bu)
120     ac_prev=build ;;
121   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122     build="$ac_optarg" ;;
123
124   -cache-file | --cache-file | --cache-fil | --cache-fi \
125   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126     ac_prev=cache_file ;;
127   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129     cache_file="$ac_optarg" ;;
130
131   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132     ac_prev=datadir ;;
133   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134   | --da=*)
135     datadir="$ac_optarg" ;;
136
137   -disable-* | --disable-*)
138     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139     # Reject names that are not valid shell variable names.
140     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142     fi
143     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144     eval "enable_${ac_feature}=no" ;;
145
146   -enable-* | --enable-*)
147     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148     # Reject names that are not valid shell variable names.
149     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151     fi
152     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153     case "$ac_option" in
154       *=*) ;;
155       *) ac_optarg=yes ;;
156     esac
157     eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161   | --exec | --exe | --ex)
162     ac_prev=exec_prefix ;;
163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165   | --exec=* | --exe=* | --ex=*)
166     exec_prefix="$ac_optarg" ;;
167
168   -gas | --gas | --ga | --g)
169     # Obsolete; use --with-gas.
170     with_gas=yes ;;
171
172   -help | --help | --hel | --he)
173     # Omit some internal or obsolete options to make the list less imposing.
174     # This message is too long to be a string in the A/UX 3.1 sh.
175     cat << EOF
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
178 Configuration:
179   --cache-file=FILE       cache test results in FILE
180   --help                  print this message
181   --no-create             do not create output files
182   --quiet, --silent       do not print \`checking...' messages
183   --version               print the version of autoconf that created configure
184 Directory and file names:
185   --prefix=PREFIX         install architecture-independent files in PREFIX
186                           [$ac_default_prefix]
187   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
188                           [same as prefix]
189   --bindir=DIR            user executables in DIR [EPREFIX/bin]
190   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
191   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
192   --datadir=DIR           read-only architecture-independent data in DIR
193                           [PREFIX/share]
194   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
195   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
196                           [PREFIX/com]
197   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
198   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
199   --includedir=DIR        C header files in DIR [PREFIX/include]
200   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
201   --infodir=DIR           info documentation in DIR [PREFIX/info]
202   --mandir=DIR            man documentation in DIR [PREFIX/man]
203   --srcdir=DIR            find the sources in DIR [configure dir or ..]
204   --program-prefix=PREFIX prepend PREFIX to installed program names
205   --program-suffix=SUFFIX append SUFFIX to installed program names
206   --program-transform-name=PROGRAM
207                           run sed PROGRAM on installed program names
208 EOF
209     cat << EOF
210 Host type:
211   --build=BUILD           configure for building on BUILD [BUILD=HOST]
212   --host=HOST             configure for HOST [guessed]
213   --target=TARGET         configure for TARGET [TARGET=HOST]
214 Features and packages:
215   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
216   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
217   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
218   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
219   --x-includes=DIR        X include files are in DIR
220   --x-libraries=DIR       X library files are in DIR
221 EOF
222     if test -n "$ac_help"; then
223       echo "--enable and --with options recognized:$ac_help"
224     fi
225     exit 0 ;;
226
227   -host | --host | --hos | --ho)
228     ac_prev=host ;;
229   -host=* | --host=* | --hos=* | --ho=*)
230     host="$ac_optarg" ;;
231
232   -includedir | --includedir | --includedi | --included | --include \
233   | --includ | --inclu | --incl | --inc)
234     ac_prev=includedir ;;
235   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236   | --includ=* | --inclu=* | --incl=* | --inc=*)
237     includedir="$ac_optarg" ;;
238
239   -infodir | --infodir | --infodi | --infod | --info | --inf)
240     ac_prev=infodir ;;
241   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242     infodir="$ac_optarg" ;;
243
244   -libdir | --libdir | --libdi | --libd)
245     ac_prev=libdir ;;
246   -libdir=* | --libdir=* | --libdi=* | --libd=*)
247     libdir="$ac_optarg" ;;
248
249   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250   | --libexe | --libex | --libe)
251     ac_prev=libexecdir ;;
252   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253   | --libexe=* | --libex=* | --libe=*)
254     libexecdir="$ac_optarg" ;;
255
256   -localstatedir | --localstatedir | --localstatedi | --localstated \
257   | --localstate | --localstat | --localsta | --localst \
258   | --locals | --local | --loca | --loc | --lo)
259     ac_prev=localstatedir ;;
260   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263     localstatedir="$ac_optarg" ;;
264
265   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266     ac_prev=mandir ;;
267   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268     mandir="$ac_optarg" ;;
269
270   -nfp | --nfp | --nf)
271     # Obsolete; use --without-fp.
272     with_fp=no ;;
273
274   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275   | --no-cr | --no-c)
276     no_create=yes ;;
277
278   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280     no_recursion=yes ;;
281
282   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284   | --oldin | --oldi | --old | --ol | --o)
285     ac_prev=oldincludedir ;;
286   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289     oldincludedir="$ac_optarg" ;;
290
291   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292     ac_prev=prefix ;;
293   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294     prefix="$ac_optarg" ;;
295
296   -program-prefix | --program-prefix | --program-prefi | --program-pref \
297   | --program-pre | --program-pr | --program-p)
298     ac_prev=program_prefix ;;
299   -program-prefix=* | --program-prefix=* | --program-prefi=* \
300   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301     program_prefix="$ac_optarg" ;;
302
303   -program-suffix | --program-suffix | --program-suffi | --program-suff \
304   | --program-suf | --program-su | --program-s)
305     ac_prev=program_suffix ;;
306   -program-suffix=* | --program-suffix=* | --program-suffi=* \
307   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308     program_suffix="$ac_optarg" ;;
309
310   -program-transform-name | --program-transform-name \
311   | --program-transform-nam | --program-transform-na \
312   | --program-transform-n | --program-transform- \
313   | --program-transform | --program-transfor \
314   | --program-transfo | --program-transf \
315   | --program-trans | --program-tran \
316   | --progr-tra | --program-tr | --program-t)
317     ac_prev=program_transform_name ;;
318   -program-transform-name=* | --program-transform-name=* \
319   | --program-transform-nam=* | --program-transform-na=* \
320   | --program-transform-n=* | --program-transform-=* \
321   | --program-transform=* | --program-transfor=* \
322   | --program-transfo=* | --program-transf=* \
323   | --program-trans=* | --program-tran=* \
324   | --progr-tra=* | --program-tr=* | --program-t=*)
325     program_transform_name="$ac_optarg" ;;
326
327   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328   | -silent | --silent | --silen | --sile | --sil)
329     silent=yes ;;
330
331   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332     ac_prev=sbindir ;;
333   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334   | --sbi=* | --sb=*)
335     sbindir="$ac_optarg" ;;
336
337   -sharedstatedir | --sharedstatedir | --sharedstatedi \
338   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339   | --sharedst | --shareds | --shared | --share | --shar \
340   | --sha | --sh)
341     ac_prev=sharedstatedir ;;
342   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345   | --sha=* | --sh=*)
346     sharedstatedir="$ac_optarg" ;;
347
348   -site | --site | --sit)
349     ac_prev=site ;;
350   -site=* | --site=* | --sit=*)
351     site="$ac_optarg" ;;
352
353   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354     ac_prev=srcdir ;;
355   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356     srcdir="$ac_optarg" ;;
357
358   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359   | --syscon | --sysco | --sysc | --sys | --sy)
360     ac_prev=sysconfdir ;;
361   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363     sysconfdir="$ac_optarg" ;;
364
365   -target | --target | --targe | --targ | --tar | --ta | --t)
366     ac_prev=target ;;
367   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368     target="$ac_optarg" ;;
369
370   -v | -verbose | --verbose | --verbos | --verbo | --verb)
371     verbose=yes ;;
372
373   -version | --version | --versio | --versi | --vers)
374     echo "configure generated by autoconf version 2.13"
375     exit 0 ;;
376
377   -with-* | --with-*)
378     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379     # Reject names that are not valid shell variable names.
380     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382     fi
383     ac_package=`echo $ac_package| sed 's/-/_/g'`
384     case "$ac_option" in
385       *=*) ;;
386       *) ac_optarg=yes ;;
387     esac
388     eval "with_${ac_package}='$ac_optarg'" ;;
389
390   -without-* | --without-*)
391     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     eval "with_${ac_package}=no" ;;
398
399   --x)
400     # Obsolete; use --with-x.
401     with_x=yes ;;
402
403   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404   | --x-incl | --x-inc | --x-in | --x-i)
405     ac_prev=x_includes ;;
406   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408     x_includes="$ac_optarg" ;;
409
410   -x-libraries | --x-libraries | --x-librarie | --x-librari \
411   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412     ac_prev=x_libraries ;;
413   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415     x_libraries="$ac_optarg" ;;
416
417   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418     ;;
419
420   *)
421     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422       echo "configure: warning: $ac_option: invalid host type" 1>&2
423     fi
424     if test "x$nonopt" != xNONE; then
425       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426     fi
427     nonopt="$ac_option"
428     ;;
429
430   esac
431 done
432
433 if test -n "$ac_prev"; then
434   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 fi
436
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439 # File descriptor usage:
440 # 0 standard input
441 # 1 file creation
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
448   exec 6>/dev/null
449 else
450   exec 6>&1
451 fi
452 exec 5>./config.log
453
454 echo "\
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
457 " 1>&5
458
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
461 ac_configure_args=
462 for ac_arg
463 do
464   case "$ac_arg" in
465   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466   | --no-cr | --no-c) ;;
467   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472   esac
473 done
474
475 # NLS nuisances.
476 # Only set these to C if already set.  These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
484
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 echo > confdefs.h
489
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=conf/pam_conv1/pam_conv.y
493
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496   ac_srcdir_defaulted=yes
497   # Try the directory containing this script, then its parent.
498   ac_prog=$0
499   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501   srcdir=$ac_confdir
502   if test ! -r $srcdir/$ac_unique_file; then
503     srcdir=..
504   fi
505 else
506   ac_srcdir_defaulted=no
507 fi
508 if test ! -r $srcdir/$ac_unique_file; then
509   if test "$ac_srcdir_defaulted" = yes; then
510     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511   else
512     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513   fi
514 fi
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519   if test "x$prefix" != xNONE; then
520     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521   else
522     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523   fi
524 fi
525 for ac_site_file in $CONFIG_SITE; do
526   if test -r "$ac_site_file"; then
527     echo "loading site script $ac_site_file"
528     . "$ac_site_file"
529   fi
530 done
531
532 if test -r "$cache_file"; then
533   echo "loading cache $cache_file"
534   . $cache_file
535 else
536   echo "creating cache $cache_file"
537   > $cache_file
538 fi
539
540 ac_ext=c
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
546
547 ac_exeext=
548 ac_objext=o
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552     ac_n= ac_c='
553 ' ac_t='        '
554   else
555     ac_n=-n ac_c= ac_t=
556   fi
557 else
558   ac_n= ac_c='\c' ac_t=
559 fi
560
561
562
563
564
565
566 LIBPAM_VERSION_MAJOR=0
567 LIBPAM_VERSION_MINOR=76
568
569
570
571 cat >> confdefs.h <<\EOF
572 #define LIBPAM_VERSION_MAJOR 1
573 EOF
574
575 cat >> confdefs.h <<\EOF
576 #define LIBPAM_VERSION_MINOR 1
577 EOF
578
579
580
581
582
583 LOCALSRCDIR=`/bin/pwd`         ; 
584 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
585
586
587
588 CONF_CFLAGS=                    ; 
589 MKDIR="mkdir -p"                ; 
590
591 SHLIBMODE=755                   ; 
592
593 USESONAME=yes                   ; 
594 SOSWITCH=-soname                ; 
595 NEEDSONAME=no                   ; 
596 LDCONFIG=/sbin/ldconfig         ; 
597
598 if test "$OS" = "aix"; then
599   INSTALL=/usr/ucb/install -c
600 else
601   INSTALL=/usr/bin/install
602 fi
603
604
605 # Extract the first word of "gcc", so it can be a program name with args.
606 set dummy gcc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610   echo $ac_n "(cached) $ac_c" 1>&6
611 else
612   if test -n "$CC"; then
613   ac_cv_prog_CC="$CC" # Let the user override the test.
614 else
615   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
616   ac_dummy="$PATH"
617   for ac_dir in $ac_dummy; do
618     test -z "$ac_dir" && ac_dir=.
619     if test -f $ac_dir/$ac_word; then
620       ac_cv_prog_CC="gcc"
621       break
622     fi
623   done
624   IFS="$ac_save_ifs"
625 fi
626 fi
627 CC="$ac_cv_prog_CC"
628 if test -n "$CC"; then
629   echo "$ac_t""$CC" 1>&6
630 else
631   echo "$ac_t""no" 1>&6
632 fi
633
634 if test -z "$CC"; then
635   # Extract the first word of "cc", so it can be a program name with args.
636 set dummy cc; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640   echo $ac_n "(cached) $ac_c" 1>&6
641 else
642   if test -n "$CC"; then
643   ac_cv_prog_CC="$CC" # Let the user override the test.
644 else
645   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
646   ac_prog_rejected=no
647   ac_dummy="$PATH"
648   for ac_dir in $ac_dummy; do
649     test -z "$ac_dir" && ac_dir=.
650     if test -f $ac_dir/$ac_word; then
651       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
652         ac_prog_rejected=yes
653         continue
654       fi
655       ac_cv_prog_CC="cc"
656       break
657     fi
658   done
659   IFS="$ac_save_ifs"
660 if test $ac_prog_rejected = yes; then
661   # We found a bogon in the path, so make sure we never use it.
662   set dummy $ac_cv_prog_CC
663   shift
664   if test $# -gt 0; then
665     # We chose a different compiler from the bogus one.
666     # However, it has the same basename, so the bogon will be chosen
667     # first if we set CC to just the basename; use the full file name.
668     shift
669     set dummy "$ac_dir/$ac_word" "$@"
670     shift
671     ac_cv_prog_CC="$@"
672   fi
673 fi
674 fi
675 fi
676 CC="$ac_cv_prog_CC"
677 if test -n "$CC"; then
678   echo "$ac_t""$CC" 1>&6
679 else
680   echo "$ac_t""no" 1>&6
681 fi
682
683   if test -z "$CC"; then
684     case "`uname -s`" in
685     *win32* | *WIN32*)
686       # Extract the first word of "cl", so it can be a program name with args.
687 set dummy cl; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691   echo $ac_n "(cached) $ac_c" 1>&6
692 else
693   if test -n "$CC"; then
694   ac_cv_prog_CC="$CC" # Let the user override the test.
695 else
696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
697   ac_dummy="$PATH"
698   for ac_dir in $ac_dummy; do
699     test -z "$ac_dir" && ac_dir=.
700     if test -f $ac_dir/$ac_word; then
701       ac_cv_prog_CC="cl"
702       break
703     fi
704   done
705   IFS="$ac_save_ifs"
706 fi
707 fi
708 CC="$ac_cv_prog_CC"
709 if test -n "$CC"; then
710   echo "$ac_t""$CC" 1>&6
711 else
712   echo "$ac_t""no" 1>&6
713 fi
714  ;;
715     esac
716   fi
717   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
718 fi
719
720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
721 echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
722
723 ac_ext=c
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
729
730 cat > conftest.$ac_ext << EOF
731
732 #line 733 "configure"
733 #include "confdefs.h"
734
735 main(){return(0);}
736 EOF
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
738   ac_cv_prog_cc_works=yes
739   # If we can't run a trivial program, we are probably using a cross compiler.
740   if (./conftest; exit) 2>/dev/null; then
741     ac_cv_prog_cc_cross=no
742   else
743     ac_cv_prog_cc_cross=yes
744   fi
745 else
746   echo "configure: failed program was:" >&5
747   cat conftest.$ac_ext >&5
748   ac_cv_prog_cc_works=no
749 fi
750 rm -fr conftest*
751 ac_ext=c
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
757
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
761 fi
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
766
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770   echo $ac_n "(cached) $ac_c" 1>&6
771 else
772   cat > conftest.c <<EOF
773 #ifdef __GNUC__
774   yes;
775 #endif
776 EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
778   ac_cv_prog_gcc=yes
779 else
780   ac_cv_prog_gcc=no
781 fi
782 fi
783
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
785
786 if test $ac_cv_prog_gcc = yes; then
787   GCC=yes
788 else
789   GCC=
790 fi
791
792 ac_test_CFLAGS="${CFLAGS+set}"
793 ac_save_CFLAGS="$CFLAGS"
794 CFLAGS=
795 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
798   echo $ac_n "(cached) $ac_c" 1>&6
799 else
800   echo 'void f(){}' > conftest.c
801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
802   ac_cv_prog_cc_g=yes
803 else
804   ac_cv_prog_cc_g=no
805 fi
806 rm -f conftest*
807
808 fi
809
810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
811 if test "$ac_test_CFLAGS" = set; then
812   CFLAGS="$ac_save_CFLAGS"
813 elif test $ac_cv_prog_cc_g = yes; then
814   if test "$GCC" = yes; then
815     CFLAGS="-g -O2"
816   else
817     CFLAGS="-g"
818   fi
819 else
820   if test "$GCC" = yes; then
821     CFLAGS="-O2"
822   else
823     CFLAGS=
824   fi
825 fi
826
827 for ac_prog in 'bison -y' byacc
828 do
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
834   echo $ac_n "(cached) $ac_c" 1>&6
835 else
836   if test -n "$YACC"; then
837   ac_cv_prog_YACC="$YACC" # Let the user override the test.
838 else
839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
840   ac_dummy="$PATH"
841   for ac_dir in $ac_dummy; do
842     test -z "$ac_dir" && ac_dir=.
843     if test -f $ac_dir/$ac_word; then
844       ac_cv_prog_YACC="$ac_prog"
845       break
846     fi
847   done
848   IFS="$ac_save_ifs"
849 fi
850 fi
851 YACC="$ac_cv_prog_YACC"
852 if test -n "$YACC"; then
853   echo "$ac_t""$YACC" 1>&6
854 else
855   echo "$ac_t""no" 1>&6
856 fi
857
858 test -n "$YACC" && break
859 done
860 test -n "$YACC" || YACC="yacc"
861
862 # Extract the first word of "flex", so it can be a program name with args.
863 set dummy flex; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
867   echo $ac_n "(cached) $ac_c" 1>&6
868 else
869   if test -n "$LEX"; then
870   ac_cv_prog_LEX="$LEX" # Let the user override the test.
871 else
872   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
873   ac_dummy="$PATH"
874   for ac_dir in $ac_dummy; do
875     test -z "$ac_dir" && ac_dir=.
876     if test -f $ac_dir/$ac_word; then
877       ac_cv_prog_LEX="flex"
878       break
879     fi
880   done
881   IFS="$ac_save_ifs"
882   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
883 fi
884 fi
885 LEX="$ac_cv_prog_LEX"
886 if test -n "$LEX"; then
887   echo "$ac_t""$LEX" 1>&6
888 else
889   echo "$ac_t""no" 1>&6
890 fi
891
892 if test -z "$LEXLIB"
893 then
894   case "$LEX" in
895   flex*) ac_lib=fl ;;
896   *) ac_lib=l ;;
897   esac
898   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
899 echo "configure:900: checking for yywrap in -l$ac_lib" >&5
900 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
902   echo $ac_n "(cached) $ac_c" 1>&6
903 else
904   ac_save_LIBS="$LIBS"
905 LIBS="-l$ac_lib  $LIBS"
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 /* Override any gcc2 internal prototype to avoid an error.  */
910 /* We use char because int might match the return type of a gcc2
911     builtin and then its argument prototype would still apply.  */
912 char yywrap();
913
914 int main() {
915 yywrap()
916 ; return 0; }
917 EOF
918 if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
919   rm -rf conftest*
920   eval "ac_cv_lib_$ac_lib_var=yes"
921 else
922   echo "configure: failed program was:" >&5
923   cat conftest.$ac_ext >&5
924   rm -rf conftest*
925   eval "ac_cv_lib_$ac_lib_var=no"
926 fi
927 rm -f conftest*
928 LIBS="$ac_save_LIBS"
929
930 fi
931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
932   echo "$ac_t""yes" 1>&6
933   LEXLIB="-l$ac_lib"
934 else
935   echo "$ac_t""no" 1>&6
936 fi
937
938 fi
939
940 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
941 echo "configure:942: checking whether ln -s works" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   rm -f conftestdata
946 if ln -s X conftestdata 2>/dev/null
947 then
948   rm -f conftestdata
949   ac_cv_prog_LN_S="ln -s"
950 else
951   ac_cv_prog_LN_S=ln
952 fi
953 fi
954 LN_S="$ac_cv_prog_LN_S"
955 if test "$ac_cv_prog_LN_S" = "ln -s"; then
956   echo "$ac_t""yes" 1>&6
957 else
958   echo "$ac_t""no" 1>&6
959 fi
960
961 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
962 echo "configure:963: checking whether ${MAKE-make} sets \${MAKE}" >&5
963 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
964 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   cat > conftestmake <<\EOF
968 all:
969         @echo 'ac_maketemp="${MAKE}"'
970 EOF
971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
972 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
973 if test -n "$ac_maketemp"; then
974   eval ac_cv_prog_make_${ac_make}_set=yes
975 else
976   eval ac_cv_prog_make_${ac_make}_set=no
977 fi
978 rm -f conftestmake
979 fi
980 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
981   echo "$ac_t""yes" 1>&6
982   SET_MAKE=
983 else
984   echo "$ac_t""no" 1>&6
985   SET_MAKE="MAKE=${MAKE-make}"
986 fi
987
988
989
990 # Check whether --enable-debug or --disable-debug was given.
991 if test "${enable_debug+set}" = set; then
992   enableval="$enable_debug"
993   WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
994 #define DEBUG 1
995 EOF
996  
997 else
998   WITH_DEBUG=no
999 fi
1000
1001
1002
1003 # Check whether --enable-memory-debug or --disable-memory-debug was given.
1004 if test "${enable_memory_debug+set}" = set; then
1005   enableval="$enable_memory_debug"
1006   WITH_MEMORY_DEBUG=yes ; cat >> confdefs.h <<\EOF
1007 #define MEMORY_DEBUG 1
1008 EOF
1009  
1010 else
1011   WITH_MEMORY_DEBUG=no
1012 fi
1013
1014
1015
1016 # Check whether --enable-libdebug or --disable-libdebug was given.
1017 if test "${enable_libdebug+set}" = set; then
1018   enableval="$enable_libdebug"
1019   WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1020 #define WITH_LIBDEBUG 1
1021 EOF
1022  
1023 else
1024   WITH_LIBDEBUG=no
1025 fi
1026
1027
1028
1029 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1030 if test "${enable_fakeroot+set}" = set; then
1031   enableval="$enable_fakeroot"
1032   FAKEROOT=$enableval
1033 fi
1034
1035
1036
1037 # Check whether --enable-securedir or --disable-securedir was given.
1038 if test "${enable_securedir+set}" = set; then
1039   enableval="$enable_securedir"
1040   SECUREDIR=$enableval
1041 else
1042   SECUREDIR=$libdir/security
1043 fi
1044
1045
1046
1047 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1048 if test "${enable_sconfigdir+set}" = set; then
1049   enableval="$enable_sconfigdir"
1050   SCONFIGDIR=$enableval
1051 else
1052   SCONFIGDIR=$sysconfdir/security
1053 fi
1054
1055
1056
1057 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1058 if test "${enable_suplementedir+set}" = set; then
1059   enableval="$enable_suplementedir"
1060   SUPLEMENTED=$enableval
1061 else
1062   SUPLEMENTED=$sbindir
1063 fi
1064
1065
1066
1067 # Check whether --enable-includedir or --disable-includedir was given.
1068 if test "${enable_includedir+set}" = set; then
1069   enableval="$enable_includedir"
1070   INCLUDEDIR=$enableval
1071 else
1072   INCLUDEDIR=/usr/include
1073 fi
1074
1075
1076
1077 # Check whether --enable-docdir or --disable-docdir was given.
1078 if test "${enable_docdir+set}" = set; then
1079   enableval="$enable_docdir"
1080   DOCDIR=$enableval
1081 else
1082   DOCDIR=/usr/share/doc/pam
1083 fi
1084
1085
1086
1087 # Check whether --enable-mandir or --disable-mandir was given.
1088 if test "${enable_mandir+set}" = set; then
1089   enableval="$enable_mandir"
1090   MANDIR=$enableval
1091 else
1092   MANDIR=/usr/share/man
1093 fi
1094
1095
1096
1097 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1098 if test "${enable_pamlocking+set}" = set; then
1099   enableval="$enable_pamlocking"
1100   WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1101 #define PAM_LOCKING 1
1102 EOF
1103  
1104 else
1105   WITH_PAMLOCKING=no
1106 fi
1107
1108
1109
1110 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1111 if test "${enable_uglyhack+set}" = set; then
1112   enableval="$enable_uglyhack"
1113   cat >> confdefs.h <<\EOF
1114 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1115 EOF
1116
1117 fi
1118
1119
1120 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1121 if test "${enable_read_both_confs+set}" = set; then
1122   enableval="$enable_read_both_confs"
1123   cat >> confdefs.h <<\EOF
1124 #define PAM_READ_BOTH_CONFS 1
1125 EOF
1126
1127 fi
1128
1129
1130
1131 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1132 if test "${enable_static_libpam+set}" = set; then
1133   enableval="$enable_static_libpam"
1134   STATIC_LIBPAM=yes 
1135 else
1136   STATIC_LIBPAM=no
1137 fi
1138
1139
1140
1141 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1142 if test "${enable_dynamic_libpam+set}" = set; then
1143   enableval="$enable_dynamic_libpam"
1144   DYNAMIC_LIBPAM=no
1145 else
1146   DYNAMIC_LIBPAM=yes
1147 fi
1148
1149
1150
1151 DYNAMIC=-DPAM_DYNAMIC
1152
1153
1154 # Check whether --enable-static-modules or --disable-static-modules was given.
1155 if test "${enable_static_modules+set}" = set; then
1156   enableval="$enable_static_modules"
1157   STATIC=-DPAM_STATIC
1158 fi
1159
1160
1161
1162 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1163 if test "${enable_lckpwdf+set}" = set; then
1164   enableval="$enable_lckpwdf"
1165   WITH_LCKPWDF=no
1166 else
1167   WITH_LCKPWDF=yes
1168 fi
1169
1170
1171
1172 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1173 echo "configure:1174: checking how to run the C preprocessor" >&5
1174 # On Suns, sometimes $CPP names a directory.
1175 if test -n "$CPP" && test -d "$CPP"; then
1176   CPP=
1177 fi
1178 if test -z "$CPP"; then
1179 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1180   echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182     # This must be in double quotes, not single quotes, because CPP may get
1183   # substituted into the Makefile and "${CC-cc}" will confuse make.
1184   CPP="${CC-cc} -E"
1185   # On the NeXT, cc -E runs the code through the compiler's parser,
1186   # not just through cpp.
1187   cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1190 #include <assert.h>
1191 Syntax Error
1192 EOF
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1197   :
1198 else
1199   echo "$ac_err" >&5
1200   echo "configure: failed program was:" >&5
1201   cat conftest.$ac_ext >&5
1202   rm -rf conftest*
1203   CPP="${CC-cc} -E -traditional-cpp"
1204   cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 #include <assert.h>
1208 Syntax Error
1209 EOF
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1213 if test -z "$ac_err"; then
1214   :
1215 else
1216   echo "$ac_err" >&5
1217   echo "configure: failed program was:" >&5
1218   cat conftest.$ac_ext >&5
1219   rm -rf conftest*
1220   CPP="${CC-cc} -nologo -E"
1221   cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #include <assert.h>
1225 Syntax Error
1226 EOF
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230 if test -z "$ac_err"; then
1231   :
1232 else
1233   echo "$ac_err" >&5
1234   echo "configure: failed program was:" >&5
1235   cat conftest.$ac_ext >&5
1236   rm -rf conftest*
1237   CPP=/lib/cpp
1238 fi
1239 rm -f conftest*
1240 fi
1241 rm -f conftest*
1242 fi
1243 rm -f conftest*
1244   ac_cv_prog_CPP="$CPP"
1245 fi
1246   CPP="$ac_cv_prog_CPP"
1247 else
1248   ac_cv_prog_CPP="$CPP"
1249 fi
1250 echo "$ac_t""$CPP" 1>&6
1251
1252 for ac_hdr in paths.h
1253 do
1254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_hdr" >&5
1257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1258   echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260   cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 #include <$ac_hdr>
1264 EOF
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1269   rm -rf conftest*
1270   eval "ac_cv_header_$ac_safe=yes"
1271 else
1272   echo "$ac_err" >&5
1273   echo "configure: failed program was:" >&5
1274   cat conftest.$ac_ext >&5
1275   rm -rf conftest*
1276   eval "ac_cv_header_$ac_safe=no"
1277 fi
1278 rm -f conftest*
1279 fi
1280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1281   echo "$ac_t""yes" 1>&6
1282     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1283   cat >> confdefs.h <<EOF
1284 #define $ac_tr_hdr 1
1285 EOF
1286  
1287 else
1288   echo "$ac_t""no" 1>&6
1289 fi
1290 done
1291
1292 # Check whether --with-mailspool or --without-mailspool was given.
1293 if test "${with_mailspool+set}" = set; then
1294   withval="$with_mailspool"
1295   with_mailspool=${withval}
1296 fi
1297
1298 if test x$with_mailspool != x ; then
1299         pam_mail_spool="\"$with_mailspool\""
1300 else
1301         if test "$cross_compiling" = yes; then
1302   pam_mail_spool="\"/var/spool/mail\""
1303 else
1304   cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307
1308 #include <paths.h>
1309 int main() {
1310 #ifdef _PATH_MAILDIR
1311 exit(0);
1312 #else
1313 exit(1);
1314 #endif
1315 }
1316 EOF
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1318 then
1319   pam_mail_spool="_PATH_MAILDIR"
1320 else
1321   echo "configure: failed program was:" >&5
1322   cat conftest.$ac_ext >&5
1323   rm -fr conftest*
1324   pam_mail_spool="\"/var/spool/mail\""
1325 fi
1326 rm -fr conftest*
1327 fi
1328
1329 fi
1330 cat >> confdefs.h <<EOF
1331 #define PAM_PATH_MAILDIR $pam_mail_spool
1332 EOF
1333
1334
1335 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1336 echo "configure:1337: checking for __libc_sched_setscheduler in -lc" >&5
1337 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339   echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341   ac_save_LIBS="$LIBS"
1342 LIBS="-lc  $LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error.  */
1347 /* We use char because int might match the return type of a gcc2
1348     builtin and then its argument prototype would still apply.  */
1349 char __libc_sched_setscheduler();
1350
1351 int main() {
1352 __libc_sched_setscheduler()
1353 ; return 0; }
1354 EOF
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356   rm -rf conftest*
1357   eval "ac_cv_lib_$ac_lib_var=yes"
1358 else
1359   echo "configure: failed program was:" >&5
1360   cat conftest.$ac_ext >&5
1361   rm -rf conftest*
1362   eval "ac_cv_lib_$ac_lib_var=no"
1363 fi
1364 rm -f conftest*
1365 LIBS="$ac_save_LIBS"
1366
1367 fi
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369   echo "$ac_t""yes" 1>&6
1370   PAM_NEEDS_LIBC=
1371 else
1372   echo "$ac_t""no" 1>&6
1373 PAM_NEEDS_LIBC=-lc
1374 fi
1375
1376
1377
1378 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1379 echo "configure:1380: checking for lckpwdf in -lc" >&5
1380 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   ac_save_LIBS="$LIBS"
1385 LIBS="-lc  $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error.  */
1390 /* We use char because int might match the return type of a gcc2
1391     builtin and then its argument prototype would still apply.  */
1392 char lckpwdf();
1393
1394 int main() {
1395 lckpwdf()
1396 ; return 0; }
1397 EOF
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399   rm -rf conftest*
1400   eval "ac_cv_lib_$ac_lib_var=yes"
1401 else
1402   echo "configure: failed program was:" >&5
1403   cat conftest.$ac_ext >&5
1404   rm -rf conftest*
1405   eval "ac_cv_lib_$ac_lib_var=no"
1406 fi
1407 rm -f conftest*
1408 LIBS="$ac_save_LIBS"
1409
1410 fi
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412   echo "$ac_t""yes" 1>&6
1413   HAVE_LCKPWDF=yes
1414 else
1415   echo "$ac_t""no" 1>&6
1416 HAVE_LCKPWDF=no
1417 fi
1418
1419
1420
1421 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for dlopen in -ldl" >&5
1423 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425   echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427   ac_save_LIBS="$LIBS"
1428 LIBS="-ldl  $LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error.  */
1433 /* We use char because int might match the return type of a gcc2
1434     builtin and then its argument prototype would still apply.  */
1435 char dlopen();
1436
1437 int main() {
1438 dlopen()
1439 ; return 0; }
1440 EOF
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442   rm -rf conftest*
1443   eval "ac_cv_lib_$ac_lib_var=yes"
1444 else
1445   echo "configure: failed program was:" >&5
1446   cat conftest.$ac_ext >&5
1447   rm -rf conftest*
1448   eval "ac_cv_lib_$ac_lib_var=no"
1449 fi
1450 rm -f conftest*
1451 LIBS="$ac_save_LIBS"
1452
1453 fi
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455   echo "$ac_t""yes" 1>&6
1456   LIBDL=-ldl
1457 else
1458   echo "$ac_t""no" 1>&6
1459 fi
1460  
1461
1462
1463 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1464 echo "configure:1465: checking for FascistCheck in -lcrack" >&5
1465 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469   ac_save_LIBS="$LIBS"
1470 LIBS="-lcrack  $LIBS"
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* Override any gcc2 internal prototype to avoid an error.  */
1475 /* We use char because int might match the return type of a gcc2
1476     builtin and then its argument prototype would still apply.  */
1477 char FascistCheck();
1478
1479 int main() {
1480 FascistCheck()
1481 ; return 0; }
1482 EOF
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484   rm -rf conftest*
1485   eval "ac_cv_lib_$ac_lib_var=yes"
1486 else
1487   echo "configure: failed program was:" >&5
1488   cat conftest.$ac_ext >&5
1489   rm -rf conftest*
1490   eval "ac_cv_lib_$ac_lib_var=no"
1491 fi
1492 rm -f conftest*
1493 LIBS="$ac_save_LIBS"
1494
1495 fi
1496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1497   echo "$ac_t""yes" 1>&6
1498   HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1499 #define HAVE_LIBCRACK 1
1500 EOF
1501
1502 else
1503   echo "$ac_t""no" 1>&6
1504 HAVE_LIBCRACK=no
1505 fi
1506
1507
1508
1509 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1510 echo "configure:1511: checking for fcrypt in -lcrypt" >&5
1511 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513   echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515   ac_save_LIBS="$LIBS"
1516 LIBS="-lcrypt  $LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error.  */
1521 /* We use char because int might match the return type of a gcc2
1522     builtin and then its argument prototype would still apply.  */
1523 char fcrypt();
1524
1525 int main() {
1526 fcrypt()
1527 ; return 0; }
1528 EOF
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1530   rm -rf conftest*
1531   eval "ac_cv_lib_$ac_lib_var=yes"
1532 else
1533   echo "configure: failed program was:" >&5
1534   cat conftest.$ac_ext >&5
1535   rm -rf conftest*
1536   eval "ac_cv_lib_$ac_lib_var=no"
1537 fi
1538 rm -f conftest*
1539 LIBS="$ac_save_LIBS"
1540
1541 fi
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543   echo "$ac_t""yes" 1>&6
1544   HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1545 #define HAVE_LIBCRYPT 1
1546 EOF
1547
1548 else
1549   echo "$ac_t""no" 1>&6
1550 HAVE_LIBCRYPT=no
1551 fi
1552
1553
1554 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1555 echo "configure:1556: checking for logwtmp in -lutil" >&5
1556 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558   echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560   ac_save_LIBS="$LIBS"
1561 LIBS="-lutil  $LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error.  */
1566 /* We use char because int might match the return type of a gcc2
1567     builtin and then its argument prototype would still apply.  */
1568 char logwtmp();
1569
1570 int main() {
1571 logwtmp()
1572 ; return 0; }
1573 EOF
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575   rm -rf conftest*
1576   eval "ac_cv_lib_$ac_lib_var=yes"
1577 else
1578   echo "configure: failed program was:" >&5
1579   cat conftest.$ac_ext >&5
1580   rm -rf conftest*
1581   eval "ac_cv_lib_$ac_lib_var=no"
1582 fi
1583 rm -f conftest*
1584 LIBS="$ac_save_LIBS"
1585
1586 fi
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588   echo "$ac_t""yes" 1>&6
1589   HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1590 #define HAVE_LIBUTIL 1
1591 EOF
1592
1593 else
1594   echo "$ac_t""no" 1>&6
1595 HAVE_LIBUTIL=no
1596 fi
1597
1598
1599 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1600 echo "configure:1601: checking for dbm_store in -lndbm" >&5
1601 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603   echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605   ac_save_LIBS="$LIBS"
1606 LIBS="-lndbm  $LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error.  */
1611 /* We use char because int might match the return type of a gcc2
1612     builtin and then its argument prototype would still apply.  */
1613 char dbm_store();
1614
1615 int main() {
1616 dbm_store()
1617 ; return 0; }
1618 EOF
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620   rm -rf conftest*
1621   eval "ac_cv_lib_$ac_lib_var=yes"
1622 else
1623   echo "configure: failed program was:" >&5
1624   cat conftest.$ac_ext >&5
1625   rm -rf conftest*
1626   eval "ac_cv_lib_$ac_lib_var=no"
1627 fi
1628 rm -f conftest*
1629 LIBS="$ac_save_LIBS"
1630
1631 fi
1632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1633   echo "$ac_t""yes" 1>&6
1634   HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1635 #define HAVE_LIBNDBM 1
1636 EOF
1637
1638 else
1639   echo "$ac_t""no" 1>&6
1640 HAVE_LIBNDBM=no
1641 fi
1642
1643
1644 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1645 echo "configure:1646: checking for dbm_store in -ldb" >&5
1646 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648   echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650   ac_save_LIBS="$LIBS"
1651 LIBS="-ldb  $LIBS"
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 /* Override any gcc2 internal prototype to avoid an error.  */
1656 /* We use char because int might match the return type of a gcc2
1657     builtin and then its argument prototype would still apply.  */
1658 char dbm_store();
1659
1660 int main() {
1661 dbm_store()
1662 ; return 0; }
1663 EOF
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1665   rm -rf conftest*
1666   eval "ac_cv_lib_$ac_lib_var=yes"
1667 else
1668   echo "configure: failed program was:" >&5
1669   cat conftest.$ac_ext >&5
1670   rm -rf conftest*
1671   eval "ac_cv_lib_$ac_lib_var=no"
1672 fi
1673 rm -f conftest*
1674 LIBS="$ac_save_LIBS"
1675
1676 fi
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678   echo "$ac_t""yes" 1>&6
1679   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1680 #define HAVE_LIBDB 1
1681 EOF
1682
1683 else
1684   echo "$ac_t""no" 1>&6
1685 HAVE_LIBDB=no
1686 fi
1687
1688 if test x$HAVE_LIBDB != xyes ; then
1689         echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1690 echo "configure:1691: checking for db_create in -ldb" >&5
1691 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1693   echo $ac_n "(cached) $ac_c" 1>&6
1694 else
1695   ac_save_LIBS="$LIBS"
1696 LIBS="-ldb  $LIBS"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 /* Override any gcc2 internal prototype to avoid an error.  */
1701 /* We use char because int might match the return type of a gcc2
1702     builtin and then its argument prototype would still apply.  */
1703 char db_create();
1704
1705 int main() {
1706 db_create()
1707 ; return 0; }
1708 EOF
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710   rm -rf conftest*
1711   eval "ac_cv_lib_$ac_lib_var=yes"
1712 else
1713   echo "configure: failed program was:" >&5
1714   cat conftest.$ac_ext >&5
1715   rm -rf conftest*
1716   eval "ac_cv_lib_$ac_lib_var=no"
1717 fi
1718 rm -f conftest*
1719 LIBS="$ac_save_LIBS"
1720
1721 fi
1722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1723   echo "$ac_t""yes" 1>&6
1724   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1725 #define HAVE_LIBDB 1
1726 EOF
1727
1728 else
1729   echo "$ac_t""no" 1>&6
1730 HAVE_LIBDB=no
1731 fi
1732
1733 fi
1734
1735 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1736 echo "configure:1737: checking for yylex in -lfl" >&5
1737 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1739   echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741   ac_save_LIBS="$LIBS"
1742 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* Override any gcc2 internal prototype to avoid an error.  */
1747 /* We use char because int might match the return type of a gcc2
1748     builtin and then its argument prototype would still apply.  */
1749 char yylex();
1750
1751 int main() {
1752 yylex()
1753 ; return 0; }
1754 EOF
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756   rm -rf conftest*
1757   eval "ac_cv_lib_$ac_lib_var=yes"
1758 else
1759   echo "configure: failed program was:" >&5
1760   cat conftest.$ac_ext >&5
1761   rm -rf conftest*
1762   eval "ac_cv_lib_$ac_lib_var=no"
1763 fi
1764 rm -f conftest*
1765 LIBS="$ac_save_LIBS"
1766
1767 fi
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769   echo "$ac_t""yes" 1>&6
1770   yyterminate
1771 else
1772   echo "$ac_t""no" 1>&6
1773 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1774 #define HAVE_LIBFL 1
1775 EOF
1776
1777 fi
1778
1779
1780 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1781 echo "configure:1782: checking for yp_maplist in -lnsl" >&5
1782 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1784   echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786   ac_save_LIBS="$LIBS"
1787 LIBS="-lnsl  $LIBS"
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 /* Override any gcc2 internal prototype to avoid an error.  */
1792 /* We use char because int might match the return type of a gcc2
1793     builtin and then its argument prototype would still apply.  */
1794 char yp_maplist();
1795
1796 int main() {
1797 yp_maplist()
1798 ; return 0; }
1799 EOF
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1801   rm -rf conftest*
1802   eval "ac_cv_lib_$ac_lib_var=yes"
1803 else
1804   echo "configure: failed program was:" >&5
1805   cat conftest.$ac_ext >&5
1806   rm -rf conftest*
1807   eval "ac_cv_lib_$ac_lib_var=no"
1808 fi
1809 rm -f conftest*
1810 LIBS="$ac_save_LIBS"
1811
1812 fi
1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1814   echo "$ac_t""yes" 1>&6
1815   HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1816 #define HAVE_LIBNSL 1
1817 EOF
1818
1819 else
1820   echo "$ac_t""no" 1>&6
1821 HAVE_LIBNSL=no
1822 fi
1823
1824
1825 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1826 echo "configure:1827: checking for pwdb_db_name in -lpwdb" >&5
1827 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829   echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831   ac_save_LIBS="$LIBS"
1832 LIBS="-lpwdb  $LIBS"
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error.  */
1837 /* We use char because int might match the return type of a gcc2
1838     builtin and then its argument prototype would still apply.  */
1839 char pwdb_db_name();
1840
1841 int main() {
1842 pwdb_db_name()
1843 ; return 0; }
1844 EOF
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846   rm -rf conftest*
1847   eval "ac_cv_lib_$ac_lib_var=yes"
1848 else
1849   echo "configure: failed program was:" >&5
1850   cat conftest.$ac_ext >&5
1851   rm -rf conftest*
1852   eval "ac_cv_lib_$ac_lib_var=no"
1853 fi
1854 rm -f conftest*
1855 LIBS="$ac_save_LIBS"
1856
1857 fi
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859   echo "$ac_t""yes" 1>&6
1860   HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1861 #define HAVE_LIBPWDB 1
1862 EOF
1863
1864 else
1865   echo "$ac_t""no" 1>&6
1866 HAVE_LIBPWDB=no
1867 fi
1868
1869
1870
1871 ac_header_dirent=no
1872 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1873 do
1874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_hdr that defines DIR" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1878   echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880   cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <sys/types.h>
1884 #include <$ac_hdr>
1885 int main() {
1886 DIR *dirp = 0;
1887 ; return 0; }
1888 EOF
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890   rm -rf conftest*
1891   eval "ac_cv_header_dirent_$ac_safe=yes"
1892 else
1893   echo "configure: failed program was:" >&5
1894   cat conftest.$ac_ext >&5
1895   rm -rf conftest*
1896   eval "ac_cv_header_dirent_$ac_safe=no"
1897 fi
1898 rm -f conftest*
1899 fi
1900 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1901   echo "$ac_t""yes" 1>&6
1902     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1903   cat >> confdefs.h <<EOF
1904 #define $ac_tr_hdr 1
1905 EOF
1906  ac_header_dirent=$ac_hdr; break
1907 else
1908   echo "$ac_t""no" 1>&6
1909 fi
1910 done
1911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1912 if test $ac_header_dirent = dirent.h; then
1913 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1914 echo "configure:1915: checking for opendir in -ldir" >&5
1915 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917   echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919   ac_save_LIBS="$LIBS"
1920 LIBS="-ldir  $LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error.  */
1925 /* We use char because int might match the return type of a gcc2
1926     builtin and then its argument prototype would still apply.  */
1927 char opendir();
1928
1929 int main() {
1930 opendir()
1931 ; return 0; }
1932 EOF
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934   rm -rf conftest*
1935   eval "ac_cv_lib_$ac_lib_var=yes"
1936 else
1937   echo "configure: failed program was:" >&5
1938   cat conftest.$ac_ext >&5
1939   rm -rf conftest*
1940   eval "ac_cv_lib_$ac_lib_var=no"
1941 fi
1942 rm -f conftest*
1943 LIBS="$ac_save_LIBS"
1944
1945 fi
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947   echo "$ac_t""yes" 1>&6
1948   LIBS="$LIBS -ldir"
1949 else
1950   echo "$ac_t""no" 1>&6
1951 fi
1952
1953 else
1954 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1955 echo "configure:1956: checking for opendir in -lx" >&5
1956 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958   echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960   ac_save_LIBS="$LIBS"
1961 LIBS="-lx  $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* Override any gcc2 internal prototype to avoid an error.  */
1966 /* We use char because int might match the return type of a gcc2
1967     builtin and then its argument prototype would still apply.  */
1968 char opendir();
1969
1970 int main() {
1971 opendir()
1972 ; return 0; }
1973 EOF
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975   rm -rf conftest*
1976   eval "ac_cv_lib_$ac_lib_var=yes"
1977 else
1978   echo "configure: failed program was:" >&5
1979   cat conftest.$ac_ext >&5
1980   rm -rf conftest*
1981   eval "ac_cv_lib_$ac_lib_var=no"
1982 fi
1983 rm -f conftest*
1984 LIBS="$ac_save_LIBS"
1985
1986 fi
1987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988   echo "$ac_t""yes" 1>&6
1989   LIBS="$LIBS -lx"
1990 else
1991   echo "$ac_t""no" 1>&6
1992 fi
1993
1994 fi
1995
1996 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1997 echo "configure:1998: checking for ANSI C header files" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1999   echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001   cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <stdlib.h>
2005 #include <stdarg.h>
2006 #include <string.h>
2007 #include <float.h>
2008 EOF
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2013   rm -rf conftest*
2014   ac_cv_header_stdc=yes
2015 else
2016   echo "$ac_err" >&5
2017   echo "configure: failed program was:" >&5
2018   cat conftest.$ac_ext >&5
2019   rm -rf conftest*
2020   ac_cv_header_stdc=no
2021 fi
2022 rm -f conftest*
2023
2024 if test $ac_cv_header_stdc = yes; then
2025   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <string.h>
2030 EOF
2031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2032   egrep "memchr" >/dev/null 2>&1; then
2033   :
2034 else
2035   rm -rf conftest*
2036   ac_cv_header_stdc=no
2037 fi
2038 rm -f conftest*
2039
2040 fi
2041
2042 if test $ac_cv_header_stdc = yes; then
2043   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 #include <stdlib.h>
2048 EOF
2049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2050   egrep "free" >/dev/null 2>&1; then
2051   :
2052 else
2053   rm -rf conftest*
2054   ac_cv_header_stdc=no
2055 fi
2056 rm -f conftest*
2057
2058 fi
2059
2060 if test $ac_cv_header_stdc = yes; then
2061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2062 if test "$cross_compiling" = yes; then
2063   :
2064 else
2065   cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <ctype.h>
2069 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2070 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2072 int main () { int i; for (i = 0; i < 256; i++)
2073 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2074 exit (0); }
2075
2076 EOF
2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2078 then
2079   :
2080 else
2081   echo "configure: failed program was:" >&5
2082   cat conftest.$ac_ext >&5
2083   rm -fr conftest*
2084   ac_cv_header_stdc=no
2085 fi
2086 rm -fr conftest*
2087 fi
2088
2089 fi
2090 fi
2091
2092 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2093 if test $ac_cv_header_stdc = yes; then
2094   cat >> confdefs.h <<\EOF
2095 #define STDC_HEADERS 1
2096 EOF
2097
2098 fi
2099
2100 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2101 echo "configure:2102: checking for sys/wait.h that is POSIX.1 compatible" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2103   echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105   cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <sys/types.h>
2109 #include <sys/wait.h>
2110 #ifndef WEXITSTATUS
2111 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2112 #endif
2113 #ifndef WIFEXITED
2114 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2115 #endif
2116 int main() {
2117 int s;
2118 wait (&s);
2119 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2120 ; return 0; }
2121 EOF
2122 if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123   rm -rf conftest*
2124   ac_cv_header_sys_wait_h=yes
2125 else
2126   echo "configure: failed program was:" >&5
2127   cat conftest.$ac_ext >&5
2128   rm -rf conftest*
2129   ac_cv_header_sys_wait_h=no
2130 fi
2131 rm -f conftest*
2132 fi
2133
2134 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2135 if test $ac_cv_header_sys_wait_h = yes; then
2136   cat >> confdefs.h <<\EOF
2137 #define HAVE_SYS_WAIT_H 1
2138 EOF
2139
2140 fi
2141
2142 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 sys/fsuid.h
2143 do
2144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_hdr" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2148   echo $ac_n "(cached) $ac_c" 1>&6
2149 else
2150   cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 #include <$ac_hdr>
2154 EOF
2155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2156 { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2158 if test -z "$ac_err"; then
2159   rm -rf conftest*
2160   eval "ac_cv_header_$ac_safe=yes"
2161 else
2162   echo "$ac_err" >&5
2163   echo "configure: failed program was:" >&5
2164   cat conftest.$ac_ext >&5
2165   rm -rf conftest*
2166   eval "ac_cv_header_$ac_safe=no"
2167 fi
2168 rm -f conftest*
2169 fi
2170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2171   echo "$ac_t""yes" 1>&6
2172     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2173   cat >> confdefs.h <<EOF
2174 #define $ac_tr_hdr 1
2175 EOF
2176  
2177 else
2178   echo "$ac_t""no" 1>&6
2179 fi
2180 done
2181
2182
2183 for ac_hdr in features.h
2184 do
2185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_hdr" >&5
2188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2189   echo $ac_n "(cached) $ac_c" 1>&6
2190 else
2191   cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 #include <$ac_hdr>
2195 EOF
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2199 if test -z "$ac_err"; then
2200   rm -rf conftest*
2201   eval "ac_cv_header_$ac_safe=yes"
2202 else
2203   echo "$ac_err" >&5
2204   echo "configure: failed program was:" >&5
2205   cat conftest.$ac_ext >&5
2206   rm -rf conftest*
2207   eval "ac_cv_header_$ac_safe=no"
2208 fi
2209 rm -f conftest*
2210 fi
2211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2212   echo "$ac_t""yes" 1>&6
2213     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2214   cat >> confdefs.h <<EOF
2215 #define $ac_tr_hdr 1
2216 EOF
2217  
2218 else
2219   echo "$ac_t""no" 1>&6
2220 fi
2221 done
2222
2223
2224 for ac_hdr in crypt.h
2225 do
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230   echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232   cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <$ac_hdr>
2236 EOF
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2241   rm -rf conftest*
2242   eval "ac_cv_header_$ac_safe=yes"
2243 else
2244   echo "$ac_err" >&5
2245   echo "configure: failed program was:" >&5
2246   cat conftest.$ac_ext >&5
2247   rm -rf conftest*
2248   eval "ac_cv_header_$ac_safe=no"
2249 fi
2250 rm -f conftest*
2251 fi
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253   echo "$ac_t""yes" 1>&6
2254     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255   cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2257 EOF
2258  
2259 else
2260   echo "$ac_t""no" 1>&6
2261 fi
2262 done
2263
2264
2265 for ac_hdr in ndbm.h db.h
2266 do
2267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271   echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273   cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 #include <$ac_hdr>
2277 EOF
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2282   rm -rf conftest*
2283   eval "ac_cv_header_$ac_safe=yes"
2284 else
2285   echo "$ac_err" >&5
2286   echo "configure: failed program was:" >&5
2287   cat conftest.$ac_ext >&5
2288   rm -rf conftest*
2289   eval "ac_cv_header_$ac_safe=no"
2290 fi
2291 rm -f conftest*
2292 fi
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294   echo "$ac_t""yes" 1>&6
2295     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296   cat >> confdefs.h <<EOF
2297 #define $ac_tr_hdr 1
2298 EOF
2299  
2300 else
2301   echo "$ac_t""no" 1>&6
2302 fi
2303 done
2304
2305 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2306
2307
2308 for ac_hdr in lastlog.h utmp.h utmpx.h
2309 do
2310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_hdr" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2314   echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316   cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <$ac_hdr>
2320 EOF
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2324 if test -z "$ac_err"; then
2325   rm -rf conftest*
2326   eval "ac_cv_header_$ac_safe=yes"
2327 else
2328   echo "$ac_err" >&5
2329   echo "configure: failed program was:" >&5
2330   cat conftest.$ac_ext >&5
2331   rm -rf conftest*
2332   eval "ac_cv_header_$ac_safe=no"
2333 fi
2334 rm -f conftest*
2335 fi
2336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2337   echo "$ac_t""yes" 1>&6
2338     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2339   cat >> confdefs.h <<EOF
2340 #define $ac_tr_hdr 1
2341 EOF
2342  
2343 else
2344   echo "$ac_t""no" 1>&6
2345 fi
2346 done
2347
2348
2349
2350 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2351 echo "configure:2352: checking path to cracklib dictionary" >&5
2352 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2353   /usr/local/lib /usr/local/share/lib"
2354 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2355 CRACKLIB_DICTPATH=""
2356 for d in $DICT_DIR_CANDIDATES ; do
2357       for f in $DICT_FILE_CANDIDATES ; do
2358               if test -r $d/$f.hwm ; then
2359                       CRACKLIB_DICTPATH=$d/$f
2360                       break 2
2361               elif test -r $d/dict/$f.hwm ; then
2362                       CRACKLIB_DICTPATH=$d/dict/$f
2363                       break 2
2364               fi
2365       done
2366 done
2367 if test -z "$CRACKLIB_DICTPATH" ; then
2368       echo "$ac_t""none found" 1>&6
2369 else
2370       echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2371 fi
2372
2373
2374
2375 GCC_WARNINGS="-Wall -Wwrite-strings \
2376         -Wpointer-arith -Wcast-qual -Wcast-align \
2377         -Wstrict-prototypes -Wmissing-prototypes \
2378         -Wnested-externs -Winline -Wshadow"
2379
2380 if test "$GCC" = yes; then
2381         CC=gcc                          ; 
2382 ### May need per-OS attention
2383 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2384         case $OS in
2385         linux)
2386                 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2387                 LD_D="gcc -shared -Xlinker -x"
2388                 WARNINGS="$GCC_WARNINGS"
2389                 PIC="-fPIC"
2390                 DYNTYPE=so
2391                 LD=ld                           
2392                 LD_L="$LD -x -shared"
2393                 RANLIB=ranlib
2394                 STRIP=strip
2395                 CC_STATIC="-Xlinker -export-dynamic"
2396                 ;;
2397         sunos)
2398                 OS_CFLAGS="-ansi -pedantic"
2399                 LD_D="gcc -shared -Xlinker -x"
2400                 WARNINGS="$GCC_WARNINGS"
2401                 PIC="-fPIC"
2402                 DYNTYPE=so
2403                 LD=ld                           
2404                 LD_L="$LD -x -shared"
2405                 RANLIB=ranlib
2406                 STRIP=strip
2407                 CC_STATIC="-Xlinker -export-dynamic"
2408                 ;;
2409         aix)
2410                 OS_CFLAGS=""
2411                 DYNTYPE=lo
2412                 LD=ld                           
2413                 LD_L=ld -bexpall -bM:SRE -bnoentry
2414                 LD_D="$LD_L"
2415                 RANLIB=ranlib
2416                 STRIP=strip
2417                 ;;
2418         *)
2419                 OS_CFLAGS=""
2420                 ;;
2421         esac
2422 else
2423 ###
2424 ### Non-gcc needs attention on per-OS basis
2425 ###
2426         case "$OS" in
2427         solaris)
2428             ### Support for Solaris-C
2429             OS_CFLAGS=""
2430             WARNINGS=""
2431             PIC="-K pic"
2432             LD=ld
2433             LD_D="cc -z text -G -R."
2434             LD_L="$LD_D"
2435             RANLIB=ranlib
2436             STRIP=strip
2437             CC_STATIC=
2438             ;;
2439         irix*)
2440             OSRELEASE=`uname -r`
2441             if test "$OSRELEASE" = 6.5; then
2442                 OS_CFLAGS=""
2443                 WARNINGS="-fullwarn"
2444                 PIC=                    #PIC code is default for IRIX
2445                 LD="cc -shared"         # modules friendly approach
2446                 LD_D="cc -shared"
2447                 LD_L="ld -G -z redlocsym"
2448                 RANLIB=echo
2449                 STRIP=strip
2450                 CC_STATIC=
2451             else
2452                 echo "IRIX prior to 6.5 not allowed for"
2453                 exit
2454             fi
2455             ;;
2456        *) echo "Native compiler on $OS is not yet supported"
2457                exit
2458             ;;
2459        esac
2460 fi
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2474 echo "configure:2475: checking whether byte ordering is bigendian" >&5
2475 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2476   echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478   ac_cv_c_bigendian=unknown
2479 # See if sys/param.h defines the BYTE_ORDER macro.
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/param.h>
2485 int main() {
2486
2487 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2488  bogus endian macros
2489 #endif
2490 ; return 0; }
2491 EOF
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493   rm -rf conftest*
2494   # It does; now see whether it defined to BIG_ENDIAN or not.
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 #include <sys/types.h>
2499 #include <sys/param.h>
2500 int main() {
2501
2502 #if BYTE_ORDER != BIG_ENDIAN
2503  not big endian
2504 #endif
2505 ; return 0; }
2506 EOF
2507 if { (eval echo configure:2508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2508   rm -rf conftest*
2509   ac_cv_c_bigendian=yes
2510 else
2511   echo "configure: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   rm -rf conftest*
2514   ac_cv_c_bigendian=no
2515 fi
2516 rm -f conftest*
2517 else
2518   echo "configure: failed program was:" >&5
2519   cat conftest.$ac_ext >&5
2520 fi
2521 rm -f conftest*
2522 if test $ac_cv_c_bigendian = unknown; then
2523 if test "$cross_compiling" = yes; then
2524     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2525 else
2526   cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 main () {
2530   /* Are we little or big endian?  From Harbison&Steele.  */
2531   union
2532   {
2533     long l;
2534     char c[sizeof (long)];
2535   } u;
2536   u.l = 1;
2537   exit (u.c[sizeof (long) - 1] == 1);
2538 }
2539 EOF
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2541 then
2542   ac_cv_c_bigendian=no
2543 else
2544   echo "configure: failed program was:" >&5
2545   cat conftest.$ac_ext >&5
2546   rm -fr conftest*
2547   ac_cv_c_bigendian=yes
2548 fi
2549 rm -fr conftest*
2550 fi
2551
2552 fi
2553 fi
2554
2555 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2556 if test $ac_cv_c_bigendian = yes; then
2557   cat >> confdefs.h <<\EOF
2558 #define WORDS_BIGENDIAN 1
2559 EOF
2560
2561 fi
2562
2563 echo $ac_n "checking for working const""... $ac_c" 1>&6
2564 echo "configure:2565: checking for working const" >&5
2565 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2566   echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568   cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571
2572 int main() {
2573
2574 /* Ultrix mips cc rejects this.  */
2575 typedef int charset[2]; const charset x;
2576 /* SunOS 4.1.1 cc rejects this.  */
2577 char const *const *ccp;
2578 char **p;
2579 /* NEC SVR4.0.2 mips cc rejects this.  */
2580 struct point {int x, y;};
2581 static struct point const zero = {0,0};
2582 /* AIX XL C 1.02.0.0 rejects this.
2583    It does not let you subtract one const X* pointer from another in an arm
2584    of an if-expression whose if-part is not a constant expression */
2585 const char *g = "string";
2586 ccp = &g + (g ? g-g : 0);
2587 /* HPUX 7.0 cc rejects these. */
2588 ++ccp;
2589 p = (char**) ccp;
2590 ccp = (char const *const *) p;
2591 { /* SCO 3.2v4 cc rejects this.  */
2592   char *t;
2593   char const *s = 0 ? (char *) 0 : (char const *) 0;
2594
2595   *t++ = 0;
2596 }
2597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2598   int x[] = {25, 17};
2599   const int *foo = &x[0];
2600   ++foo;
2601 }
2602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2603   typedef const int *iptr;
2604   iptr p = 0;
2605   ++p;
2606 }
2607 { /* AIX XL C 1.02.0.0 rejects this saying
2608      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2609   struct s { int j; const int *ap[3]; };
2610   struct s *b; b->j = 5;
2611 }
2612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2613   const int foo = 10;
2614 }
2615
2616 ; return 0; }
2617 EOF
2618 if { (eval echo configure:2619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2619   rm -rf conftest*
2620   ac_cv_c_const=yes
2621 else
2622   echo "configure: failed program was:" >&5
2623   cat conftest.$ac_ext >&5
2624   rm -rf conftest*
2625   ac_cv_c_const=no
2626 fi
2627 rm -f conftest*
2628 fi
2629
2630 echo "$ac_t""$ac_cv_c_const" 1>&6
2631 if test $ac_cv_c_const = no; then
2632   cat >> confdefs.h <<\EOF
2633 #define const 
2634 EOF
2635
2636 fi
2637
2638 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2639 echo "configure:2640: checking for uid_t in sys/types.h" >&5
2640 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2641   echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643   cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 #include <sys/types.h>
2647 EOF
2648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2649   egrep "uid_t" >/dev/null 2>&1; then
2650   rm -rf conftest*
2651   ac_cv_type_uid_t=yes
2652 else
2653   rm -rf conftest*
2654   ac_cv_type_uid_t=no
2655 fi
2656 rm -f conftest*
2657
2658 fi
2659
2660 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2661 if test $ac_cv_type_uid_t = no; then
2662   cat >> confdefs.h <<\EOF
2663 #define uid_t int
2664 EOF
2665
2666   cat >> confdefs.h <<\EOF
2667 #define gid_t int
2668 EOF
2669
2670 fi
2671
2672 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for off_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2675   echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677   cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 #if STDC_HEADERS
2682 #include <stdlib.h>
2683 #include <stddef.h>
2684 #endif
2685 EOF
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2688   rm -rf conftest*
2689   ac_cv_type_off_t=yes
2690 else
2691   rm -rf conftest*
2692   ac_cv_type_off_t=no
2693 fi
2694 rm -f conftest*
2695
2696 fi
2697 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2698 if test $ac_cv_type_off_t = no; then
2699   cat >> confdefs.h <<\EOF
2700 #define off_t long
2701 EOF
2702
2703 fi
2704
2705 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2706 echo "configure:2707: checking for pid_t" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2708   echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710   cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <sys/types.h>
2714 #if STDC_HEADERS
2715 #include <stdlib.h>
2716 #include <stddef.h>
2717 #endif
2718 EOF
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2721   rm -rf conftest*
2722   ac_cv_type_pid_t=yes
2723 else
2724   rm -rf conftest*
2725   ac_cv_type_pid_t=no
2726 fi
2727 rm -f conftest*
2728
2729 fi
2730 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2731 if test $ac_cv_type_pid_t = no; then
2732   cat >> confdefs.h <<\EOF
2733 #define pid_t int
2734 EOF
2735
2736 fi
2737
2738 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2739 echo "configure:2740: checking for size_t" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2741   echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743   cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2747 #if STDC_HEADERS
2748 #include <stdlib.h>
2749 #include <stddef.h>
2750 #endif
2751 EOF
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2754   rm -rf conftest*
2755   ac_cv_type_size_t=yes
2756 else
2757   rm -rf conftest*
2758   ac_cv_type_size_t=no
2759 fi
2760 rm -f conftest*
2761
2762 fi
2763 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2764 if test $ac_cv_type_size_t = no; then
2765   cat >> confdefs.h <<\EOF
2766 #define size_t unsigned
2767 EOF
2768
2769 fi
2770
2771 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2772 echo "configure:2773: checking whether time.h and sys/time.h may both be included" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2774   echo $ac_n "(cached) $ac_c" 1>&6
2775 else
2776   cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 #include <sys/types.h>
2780 #include <sys/time.h>
2781 #include <time.h>
2782 int main() {
2783 struct tm *tp;
2784 ; return 0; }
2785 EOF
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2787   rm -rf conftest*
2788   ac_cv_header_time=yes
2789 else
2790   echo "configure: failed program was:" >&5
2791   cat conftest.$ac_ext >&5
2792   rm -rf conftest*
2793   ac_cv_header_time=no
2794 fi
2795 rm -f conftest*
2796 fi
2797
2798 echo "$ac_t""$ac_cv_header_time" 1>&6
2799 if test $ac_cv_header_time = yes; then
2800   cat >> confdefs.h <<\EOF
2801 #define TIME_WITH_SYS_TIME 1
2802 EOF
2803
2804 fi
2805
2806 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2807 echo "configure:2808: checking whether struct tm is in sys/time.h or time.h" >&5
2808 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2809   echo $ac_n "(cached) $ac_c" 1>&6
2810 else
2811   cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 #include <sys/types.h>
2815 #include <time.h>
2816 int main() {
2817 struct tm *tp; tp->tm_sec;
2818 ; return 0; }
2819 EOF
2820 if { (eval echo configure:2821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2821   rm -rf conftest*
2822   ac_cv_struct_tm=time.h
2823 else
2824   echo "configure: failed program was:" >&5
2825   cat conftest.$ac_ext >&5
2826   rm -rf conftest*
2827   ac_cv_struct_tm=sys/time.h
2828 fi
2829 rm -f conftest*
2830 fi
2831
2832 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2833 if test $ac_cv_struct_tm = sys/time.h; then
2834   cat >> confdefs.h <<\EOF
2835 #define TM_IN_SYS_TIME 1
2836 EOF
2837
2838 fi
2839
2840
2841 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2842 echo "configure:2843: checking type of array argument to getgroups" >&5
2843 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2844   echo $ac_n "(cached) $ac_c" 1>&6
2845 else
2846   if test "$cross_compiling" = yes; then
2847   ac_cv_type_getgroups=cross
2848 else
2849   cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852
2853 /* Thanks to Mike Rendell for this test.  */
2854 #include <sys/types.h>
2855 #define NGID 256
2856 #undef MAX
2857 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2858 main()
2859 {
2860   gid_t gidset[NGID];
2861   int i, n;
2862   union { gid_t gval; long lval; }  val;
2863
2864   val.lval = -1;
2865   for (i = 0; i < NGID; i++)
2866     gidset[i] = val.gval;
2867   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2868                  gidset);
2869   /* Exit non-zero if getgroups seems to require an array of ints.  This
2870      happens when gid_t is short but getgroups modifies an array of ints.  */
2871   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2872 }
2873
2874 EOF
2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2876 then
2877     ac_cv_type_getgroups=gid_t
2878 else
2879   echo "configure: failed program was:" >&5
2880   cat conftest.$ac_ext >&5
2881   rm -fr conftest*
2882   ac_cv_type_getgroups=int
2883 fi
2884 rm -fr conftest*
2885 fi
2886
2887 if test $ac_cv_type_getgroups = cross; then
2888         cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2891 #include <unistd.h>
2892 EOF
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2895   rm -rf conftest*
2896   ac_cv_type_getgroups=gid_t
2897 else
2898   rm -rf conftest*
2899   ac_cv_type_getgroups=int
2900 fi
2901 rm -f conftest*
2902
2903 fi
2904 fi
2905
2906 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2907 cat >> confdefs.h <<EOF
2908 #define GETGROUPS_T $ac_cv_type_getgroups
2909 EOF
2910
2911
2912 if test $ac_cv_prog_gcc = yes; then
2913     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2914 echo "configure:2915: checking whether ${CC-cc} needs -traditional" >&5
2915 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2916   echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918     ac_pattern="Autoconf.*'x'"
2919   cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 #include <sgtty.h>
2923 Autoconf TIOCGETP
2924 EOF
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926   egrep "$ac_pattern" >/dev/null 2>&1; then
2927   rm -rf conftest*
2928   ac_cv_prog_gcc_traditional=yes
2929 else
2930   rm -rf conftest*
2931   ac_cv_prog_gcc_traditional=no
2932 fi
2933 rm -f conftest*
2934
2935
2936   if test $ac_cv_prog_gcc_traditional = no; then
2937     cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2940 #include <termio.h>
2941 Autoconf TCGETA
2942 EOF
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944   egrep "$ac_pattern" >/dev/null 2>&1; then
2945   rm -rf conftest*
2946   ac_cv_prog_gcc_traditional=yes
2947 fi
2948 rm -f conftest*
2949
2950   fi
2951 fi
2952
2953 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2954   if test $ac_cv_prog_gcc_traditional = yes; then
2955     CC="$CC -traditional"
2956   fi
2957 fi
2958
2959 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2960 echo "configure:2961: checking for 8-bit clean memcmp" >&5
2961 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2962   echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964   if test "$cross_compiling" = yes; then
2965   ac_cv_func_memcmp_clean=no
2966 else
2967   cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970
2971 main()
2972 {
2973   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2974   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2975 }
2976
2977 EOF
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2979 then
2980   ac_cv_func_memcmp_clean=yes
2981 else
2982   echo "configure: failed program was:" >&5
2983   cat conftest.$ac_ext >&5
2984   rm -fr conftest*
2985   ac_cv_func_memcmp_clean=no
2986 fi
2987 rm -fr conftest*
2988 fi
2989
2990 fi
2991
2992 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2993 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2994
2995 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2996 echo "configure:2997: checking for vprintf" >&5
2997 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2998   echo $ac_n "(cached) $ac_c" 1>&6
2999 else
3000   cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 /* System header to define __stub macros and hopefully few prototypes,
3004     which can conflict with char vprintf(); below.  */
3005 #include <assert.h>
3006 /* Override any gcc2 internal prototype to avoid an error.  */
3007 /* We use char because int might match the return type of a gcc2
3008     builtin and then its argument prototype would still apply.  */
3009 char vprintf();
3010
3011 int main() {
3012
3013 /* The GNU C library defines this for functions which it implements
3014     to always fail with ENOSYS.  Some functions are actually named
3015     something starting with __ and the normal name is an alias.  */
3016 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3017 choke me
3018 #else
3019 vprintf();
3020 #endif
3021
3022 ; return 0; }
3023 EOF
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025   rm -rf conftest*
3026   eval "ac_cv_func_vprintf=yes"
3027 else
3028   echo "configure: failed program was:" >&5
3029   cat conftest.$ac_ext >&5
3030   rm -rf conftest*
3031   eval "ac_cv_func_vprintf=no"
3032 fi
3033 rm -f conftest*
3034 fi
3035
3036 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3037   echo "$ac_t""yes" 1>&6
3038   cat >> confdefs.h <<\EOF
3039 #define HAVE_VPRINTF 1
3040 EOF
3041
3042 else
3043   echo "$ac_t""no" 1>&6
3044 fi
3045
3046 if test "$ac_cv_func_vprintf" != yes; then
3047 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3048 echo "configure:3049: checking for _doprnt" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3050   echo $ac_n "(cached) $ac_c" 1>&6
3051 else
3052   cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* System header to define __stub macros and hopefully few prototypes,
3056     which can conflict with char _doprnt(); below.  */
3057 #include <assert.h>
3058 /* Override any gcc2 internal prototype to avoid an error.  */
3059 /* We use char because int might match the return type of a gcc2
3060     builtin and then its argument prototype would still apply.  */
3061 char _doprnt();
3062
3063 int main() {
3064
3065 /* The GNU C library defines this for functions which it implements
3066     to always fail with ENOSYS.  Some functions are actually named
3067     something starting with __ and the normal name is an alias.  */
3068 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3069 choke me
3070 #else
3071 _doprnt();
3072 #endif
3073
3074 ; return 0; }
3075 EOF
3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077   rm -rf conftest*
3078   eval "ac_cv_func__doprnt=yes"
3079 else
3080   echo "configure: failed program was:" >&5
3081   cat conftest.$ac_ext >&5
3082   rm -rf conftest*
3083   eval "ac_cv_func__doprnt=no"
3084 fi
3085 rm -f conftest*
3086 fi
3087
3088 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3089   echo "$ac_t""yes" 1>&6
3090   cat >> confdefs.h <<\EOF
3091 #define HAVE_DOPRNT 1
3092 EOF
3093
3094 else
3095   echo "$ac_t""no" 1>&6
3096 fi
3097
3098 fi
3099
3100 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3101 do
3102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_func" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3105   echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107   cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111     which can conflict with char $ac_func(); below.  */
3112 #include <assert.h>
3113 /* Override any gcc2 internal prototype to avoid an error.  */
3114 /* We use char because int might match the return type of a gcc2
3115     builtin and then its argument prototype would still apply.  */
3116 char $ac_func();
3117
3118 int main() {
3119
3120 /* The GNU C library defines this for functions which it implements
3121     to always fail with ENOSYS.  Some functions are actually named
3122     something starting with __ and the normal name is an alias.  */
3123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3124 choke me
3125 #else
3126 $ac_func();
3127 #endif
3128
3129 ; return 0; }
3130 EOF
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132   rm -rf conftest*
3133   eval "ac_cv_func_$ac_func=yes"
3134 else
3135   echo "configure: failed program was:" >&5
3136   cat conftest.$ac_ext >&5
3137   rm -rf conftest*
3138   eval "ac_cv_func_$ac_func=no"
3139 fi
3140 rm -f conftest*
3141 fi
3142
3143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3144   echo "$ac_t""yes" 1>&6
3145     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3146   cat >> confdefs.h <<EOF
3147 #define $ac_tr_func 1
3148 EOF
3149  
3150 else
3151   echo "$ac_t""no" 1>&6
3152 fi
3153 done
3154
3155
3156 for ac_func in getpwnam_r getgrnam_r
3157 do
3158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_func" >&5
3160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3161   echo $ac_n "(cached) $ac_c" 1>&6
3162 else
3163   cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 /* System header to define __stub macros and hopefully few prototypes,
3167     which can conflict with char $ac_func(); below.  */
3168 #include <assert.h>
3169 /* Override any gcc2 internal prototype to avoid an error.  */
3170 /* We use char because int might match the return type of a gcc2
3171     builtin and then its argument prototype would still apply.  */
3172 char $ac_func();
3173
3174 int main() {
3175
3176 /* The GNU C library defines this for functions which it implements
3177     to always fail with ENOSYS.  Some functions are actually named
3178     something starting with __ and the normal name is an alias.  */
3179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3180 choke me
3181 #else
3182 $ac_func();
3183 #endif
3184
3185 ; return 0; }
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3188   rm -rf conftest*
3189   eval "ac_cv_func_$ac_func=yes"
3190 else
3191   echo "configure: failed program was:" >&5
3192   cat conftest.$ac_ext >&5
3193   rm -rf conftest*
3194   eval "ac_cv_func_$ac_func=no"
3195 fi
3196 rm -f conftest*
3197 fi
3198
3199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3200   echo "$ac_t""yes" 1>&6
3201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3202   cat >> confdefs.h <<EOF
3203 #define $ac_tr_func 1
3204 EOF
3205  
3206 else
3207   echo "$ac_t""no" 1>&6
3208 fi
3209 done
3210
3211
3212 # Extract the first word of "sgml2txt", so it can be a program name with args.
3213 set dummy sgml2txt; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3216 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3217   echo $ac_n "(cached) $ac_c" 1>&6
3218 else
3219   if test -n "$HAVE_SGML2TXT"; then
3220   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3221 else
3222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3223   ac_dummy="$PATH"
3224   for ac_dir in $ac_dummy; do
3225     test -z "$ac_dir" && ac_dir=.
3226     if test -f $ac_dir/$ac_word; then
3227       ac_cv_prog_HAVE_SGML2TXT="yes"
3228       break
3229     fi
3230   done
3231   IFS="$ac_save_ifs"
3232   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3233 fi
3234 fi
3235 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3236 if test -n "$HAVE_SGML2TXT"; then
3237   echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3238 else
3239   echo "$ac_t""no" 1>&6
3240 fi
3241
3242 # Extract the first word of "sgml2html", so it can be a program name with args.
3243 set dummy sgml2html; ac_word=$2
3244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_word" >&5
3246 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3247   echo $ac_n "(cached) $ac_c" 1>&6
3248 else
3249   if test -n "$HAVE_SGML2HTML"; then
3250   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3251 else
3252   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3253   ac_dummy="$PATH"
3254   for ac_dir in $ac_dummy; do
3255     test -z "$ac_dir" && ac_dir=.
3256     if test -f $ac_dir/$ac_word; then
3257       ac_cv_prog_HAVE_SGML2HTML="yes"
3258       break
3259     fi
3260   done
3261   IFS="$ac_save_ifs"
3262   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3263 fi
3264 fi
3265 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3266 if test -n "$HAVE_SGML2HTML"; then
3267   echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3268 else
3269   echo "$ac_t""no" 1>&6
3270 fi
3271
3272 # Extract the first word of "sgml2latex", so it can be a program name with args.
3273 set dummy sgml2latex; ac_word=$2
3274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_word" >&5
3276 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3277   echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279   if test -n "$HAVE_SGML2LATEX"; then
3280   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3281 else
3282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3283   ac_dummy="$PATH"
3284   for ac_dir in $ac_dummy; do
3285     test -z "$ac_dir" && ac_dir=.
3286     if test -f $ac_dir/$ac_word; then
3287       ac_cv_prog_HAVE_SGML2LATEX="yes"
3288       break
3289     fi
3290   done
3291   IFS="$ac_save_ifs"
3292   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3293 fi
3294 fi
3295 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3296 if test -n "$HAVE_SGML2LATEX"; then
3297   echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3298 else
3299   echo "$ac_t""no" 1>&6
3300 fi
3301
3302 if test $HAVE_SGML2LATEX = "yes" ; then
3303   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
3304     PSER="sgml2latex -o ps"
3305   else
3306     PSER="sgml2latex -p"
3307   fi
3308 else
3309   # Extract the first word of "sgml2ps", so it can be a program name with args.
3310 set dummy sgml2ps; ac_word=$2
3311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_word" >&5
3313 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3314   echo $ac_n "(cached) $ac_c" 1>&6
3315 else
3316   if test -n "$HAVE_SGML2PS"; then
3317   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3318 else
3319   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3320   ac_dummy="$PATH"
3321   for ac_dir in $ac_dummy; do
3322     test -z "$ac_dir" && ac_dir=.
3323     if test -f $ac_dir/$ac_word; then
3324       ac_cv_prog_HAVE_SGML2PS="yes"
3325       break
3326     fi
3327   done
3328   IFS="$ac_save_ifs"
3329   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3330 fi
3331 fi
3332 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3333 if test -n "$HAVE_SGML2PS"; then
3334   echo "$ac_t""$HAVE_SGML2PS" 1>&6
3335 else
3336   echo "$ac_t""no" 1>&6
3337 fi
3338
3339   if test $HAVE_SGML2PS = yes ; then
3340     PSER="sgml2ps"
3341   fi
3342 fi
3343
3344
3345 trap '' 1 2 15
3346 cat > confcache <<\EOF
3347 # This file is a shell script that caches the results of configure
3348 # tests run on this system so they can be shared between configure
3349 # scripts and configure runs.  It is not useful on other systems.
3350 # If it contains results you don't want to keep, you may remove or edit it.
3351 #
3352 # By default, configure uses ./config.cache as the cache file,
3353 # creating it if it does not exist already.  You can give configure
3354 # the --cache-file=FILE option to use a different cache file; that is
3355 # what configure does when it calls configure scripts in
3356 # subdirectories, so they share the cache.
3357 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3358 # config.status only pays attention to the cache file if you give it the
3359 # --recheck option to rerun configure.
3360 #
3361 EOF
3362 # The following way of writing the cache mishandles newlines in values,
3363 # but we know of no workaround that is simple, portable, and efficient.
3364 # So, don't put newlines in cache variables' values.
3365 # Ultrix sh set writes to stderr and can't be redirected directly,
3366 # and sets the high bit in the cache file unless we assign to the vars.
3367 (set) 2>&1 |
3368   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3369   *ac_space=\ *)
3370     # `set' does not quote correctly, so add quotes (double-quote substitution
3371     # turns \\\\ into \\, and sed turns \\ into \).
3372     sed -n \
3373       -e "s/'/'\\\\''/g" \
3374       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3375     ;;
3376   *)
3377     # `set' quotes correctly as required by POSIX, so do not add quotes.
3378     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3379     ;;
3380   esac >> confcache
3381 if cmp -s $cache_file confcache; then
3382   :
3383 else
3384   if test -w $cache_file; then
3385     echo "updating cache $cache_file"
3386     cat confcache > $cache_file
3387   else
3388     echo "not updating unwritable cache $cache_file"
3389   fi
3390 fi
3391 rm -f confcache
3392
3393 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3394
3395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3396 # Let make expand exec_prefix.
3397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3398
3399 # Any assignment to VPATH causes Sun make to only execute
3400 # the first set of double-colon rules, so remove it if not needed.
3401 # If there is a colon in the path, we need to keep it.
3402 if test "x$srcdir" = x.; then
3403   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3404 fi
3405
3406 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3407
3408 DEFS=-DHAVE_CONFIG_H
3409
3410 # Without the "./", some shells look in PATH for config.status.
3411 : ${CONFIG_STATUS=./config.status}
3412
3413 echo creating $CONFIG_STATUS
3414 rm -f $CONFIG_STATUS
3415 cat > $CONFIG_STATUS <<EOF
3416 #! /bin/sh
3417 # Generated automatically by configure.
3418 # Run this file to recreate the current configuration.
3419 # This directory was configured as follows,
3420 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3421 #
3422 # $0 $ac_configure_args
3423 #
3424 # Compiler output produced by configure, useful for debugging
3425 # configure, is in ./config.log if it exists.
3426
3427 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3428 for ac_option
3429 do
3430   case "\$ac_option" in
3431   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3432     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3433     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3434   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3435     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3436     exit 0 ;;
3437   -help | --help | --hel | --he | --h)
3438     echo "\$ac_cs_usage"; exit 0 ;;
3439   *) echo "\$ac_cs_usage"; exit 1 ;;
3440   esac
3441 done
3442
3443 ac_given_srcdir=$srcdir
3444
3445 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3446 EOF
3447 cat >> $CONFIG_STATUS <<EOF
3448
3449 # Protect against being on the right side of a sed subst in config.status.
3450 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3451  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3452 $ac_vpsub
3453 $extrasub
3454 s%@SHELL@%$SHELL%g
3455 s%@CFLAGS@%$CFLAGS%g
3456 s%@CPPFLAGS@%$CPPFLAGS%g
3457 s%@CXXFLAGS@%$CXXFLAGS%g
3458 s%@FFLAGS@%$FFLAGS%g
3459 s%@DEFS@%$DEFS%g
3460 s%@LDFLAGS@%$LDFLAGS%g
3461 s%@LIBS@%$LIBS%g
3462 s%@exec_prefix@%$exec_prefix%g
3463 s%@prefix@%$prefix%g
3464 s%@program_transform_name@%$program_transform_name%g
3465 s%@bindir@%$bindir%g
3466 s%@sbindir@%$sbindir%g
3467 s%@libexecdir@%$libexecdir%g
3468 s%@datadir@%$datadir%g
3469 s%@sysconfdir@%$sysconfdir%g
3470 s%@sharedstatedir@%$sharedstatedir%g
3471 s%@localstatedir@%$localstatedir%g
3472 s%@libdir@%$libdir%g
3473 s%@includedir@%$includedir%g
3474 s%@oldincludedir@%$oldincludedir%g
3475 s%@infodir@%$infodir%g
3476 s%@mandir@%$mandir%g
3477 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3478 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3479 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3480 s%@OS@%$OS%g
3481 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3482 s%@MKDIR@%$MKDIR%g
3483 s%@SHLIBMODE@%$SHLIBMODE%g
3484 s%@USESONAME@%$USESONAME%g
3485 s%@SOSWITCH@%$SOSWITCH%g
3486 s%@NEEDSONAME@%$NEEDSONAME%g
3487 s%@LDCONFIG@%$LDCONFIG%g
3488 s%@INSTALL@%$INSTALL%g
3489 s%@CC@%$CC%g
3490 s%@YACC@%$YACC%g
3491 s%@LEX@%$LEX%g
3492 s%@LEXLIB@%$LEXLIB%g
3493 s%@LN_S@%$LN_S%g
3494 s%@SET_MAKE@%$SET_MAKE%g
3495 s%@WITH_DEBUG@%$WITH_DEBUG%g
3496 s%@WITH_MEMORY_DEBUG@%$WITH_MEMORY_DEBUG%g
3497 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3498 s%@FAKEROOT@%$FAKEROOT%g
3499 s%@SECUREDIR@%$SECUREDIR%g
3500 s%@SCONFIGDIR@%$SCONFIGDIR%g
3501 s%@SUPLEMENTED@%$SUPLEMENTED%g
3502 s%@INCLUDEDIR@%$INCLUDEDIR%g
3503 s%@DOCDIR@%$DOCDIR%g
3504 s%@MANDIR@%$MANDIR%g
3505 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3506 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3507 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3508 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3509 s%@DYNAMIC@%$DYNAMIC%g
3510 s%@STATIC@%$STATIC%g
3511 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3512 s%@CPP@%$CPP%g
3513 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3514 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3515 s%@LIBDL@%$LIBDL%g
3516 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3517 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3518 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3519 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3520 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3521 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3522 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3523 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3524 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3525 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3526 s%@DYNTYPE@%$DYNTYPE%g
3527 s%@OS_CFLAGS@%$OS_CFLAGS%g
3528 s%@WARNINGS@%$WARNINGS%g
3529 s%@PIC@%$PIC%g
3530 s%@LD@%$LD%g
3531 s%@LD_D@%$LD_D%g
3532 s%@LD_L@%$LD_L%g
3533 s%@RANLIB@%$RANLIB%g
3534 s%@STRIP@%$STRIP%g
3535 s%@CC_STATIC@%$CC_STATIC%g
3536 s%@LIBOBJS@%$LIBOBJS%g
3537 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3538 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3539 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3540 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3541 s%@PSER@%$PSER%g
3542
3543 CEOF
3544 EOF
3545
3546 cat >> $CONFIG_STATUS <<\EOF
3547
3548 # Split the substitutions into bite-sized pieces for seds with
3549 # small command number limits, like on Digital OSF/1 and HP-UX.
3550 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3551 ac_file=1 # Number of current file.
3552 ac_beg=1 # First line for current file.
3553 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3554 ac_more_lines=:
3555 ac_sed_cmds=""
3556 while $ac_more_lines; do
3557   if test $ac_beg -gt 1; then
3558     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3559   else
3560     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3561   fi
3562   if test ! -s conftest.s$ac_file; then
3563     ac_more_lines=false
3564     rm -f conftest.s$ac_file
3565   else
3566     if test -z "$ac_sed_cmds"; then
3567       ac_sed_cmds="sed -f conftest.s$ac_file"
3568     else
3569       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3570     fi
3571     ac_file=`expr $ac_file + 1`
3572     ac_beg=$ac_end
3573     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3574   fi
3575 done
3576 if test -z "$ac_sed_cmds"; then
3577   ac_sed_cmds=cat
3578 fi
3579 EOF
3580
3581 cat >> $CONFIG_STATUS <<EOF
3582
3583 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3584 EOF
3585 cat >> $CONFIG_STATUS <<\EOF
3586 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3587   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3588   case "$ac_file" in
3589   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3590        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3591   *) ac_file_in="${ac_file}.in" ;;
3592   esac
3593
3594   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3595
3596   # Remove last slash and all that follows it.  Not all systems have dirname.
3597   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3598   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3599     # The file is in a subdirectory.
3600     test ! -d "$ac_dir" && mkdir "$ac_dir"
3601     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3602     # A "../" for each directory in $ac_dir_suffix.
3603     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3604   else
3605     ac_dir_suffix= ac_dots=
3606   fi
3607
3608   case "$ac_given_srcdir" in
3609   .)  srcdir=.
3610       if test -z "$ac_dots"; then top_srcdir=.
3611       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3612   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3613   *) # Relative path.
3614     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3615     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3616   esac
3617
3618
3619   echo creating "$ac_file"
3620   rm -f "$ac_file"
3621   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3622   case "$ac_file" in
3623   *Makefile*) ac_comsub="1i\\
3624 # $configure_input" ;;
3625   *) ac_comsub= ;;
3626   esac
3627
3628   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3629   sed -e "$ac_comsub
3630 s%@configure_input@%$configure_input%g
3631 s%@srcdir@%$srcdir%g
3632 s%@top_srcdir@%$top_srcdir%g
3633 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3634 fi; done
3635 rm -f conftest.s*
3636
3637 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3638 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3639 #
3640 # ac_d sets the value in "#define NAME VALUE" lines.
3641 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3642 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3643 ac_dC='\3'
3644 ac_dD='%g'
3645 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3646 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3647 ac_uB='\([      ]\)%\1#\2define\3'
3648 ac_uC=' '
3649 ac_uD='\4%g'
3650 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3651 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3652 ac_eB='$%\1#\2define\3'
3653 ac_eC=' '
3654 ac_eD='%g'
3655
3656 if test "${CONFIG_HEADERS+set}" != set; then
3657 EOF
3658 cat >> $CONFIG_STATUS <<EOF
3659   CONFIG_HEADERS="_pam_aconf.h"
3660 EOF
3661 cat >> $CONFIG_STATUS <<\EOF
3662 fi
3663 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3664   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3665   case "$ac_file" in
3666   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3667        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3668   *) ac_file_in="${ac_file}.in" ;;
3669   esac
3670
3671   echo creating $ac_file
3672
3673   rm -f conftest.frag conftest.in conftest.out
3674   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3675   cat $ac_file_inputs > conftest.in
3676
3677 EOF
3678
3679 # Transform confdefs.h into a sed script conftest.vals that substitutes
3680 # the proper values into config.h.in to produce config.h.  And first:
3681 # Protect against being on the right side of a sed subst in config.status.
3682 # Protect against being in an unquoted here document in config.status.
3683 rm -f conftest.vals
3684 cat > conftest.hdr <<\EOF
3685 s/[\\&%]/\\&/g
3686 s%[\\$`]%\\&%g
3687 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3688 s%ac_d%ac_u%gp
3689 s%ac_u%ac_e%gp
3690 EOF
3691 sed -n -f conftest.hdr confdefs.h > conftest.vals
3692 rm -f conftest.hdr
3693
3694 # This sed command replaces #undef with comments.  This is necessary, for
3695 # example, in the case of _POSIX_SOURCE, which is predefined and required
3696 # on some systems where configure will not decide to define it.
3697 cat >> conftest.vals <<\EOF
3698 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3699 EOF
3700
3701 # Break up conftest.vals because some shells have a limit on
3702 # the size of here documents, and old seds have small limits too.
3703
3704 rm -f conftest.tail
3705 while :
3706 do
3707   ac_lines=`grep -c . conftest.vals`
3708   # grep -c gives empty output for an empty file on some AIX systems.
3709   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3710   # Write a limited-size here document to conftest.frag.
3711   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3712   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3713   echo 'CEOF
3714   sed -f conftest.frag conftest.in > conftest.out
3715   rm -f conftest.in
3716   mv conftest.out conftest.in
3717 ' >> $CONFIG_STATUS
3718   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3719   rm -f conftest.vals
3720   mv conftest.tail conftest.vals
3721 done
3722 rm -f conftest.vals
3723
3724 cat >> $CONFIG_STATUS <<\EOF
3725   rm -f conftest.frag conftest.h
3726   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3727   cat conftest.in >> conftest.h
3728   rm -f conftest.in
3729   if cmp -s $ac_file conftest.h 2>/dev/null; then
3730     echo "$ac_file is unchanged"
3731     rm -f conftest.h
3732   else
3733     # Remove last slash and all that follows it.  Not all systems have dirname.
3734       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3735       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3736       # The file is in a subdirectory.
3737       test ! -d "$ac_dir" && mkdir "$ac_dir"
3738     fi
3739     rm -f $ac_file
3740     mv conftest.h $ac_file
3741   fi
3742 fi; done
3743
3744 EOF
3745 cat >> $CONFIG_STATUS <<EOF
3746
3747 EOF
3748 cat >> $CONFIG_STATUS <<\EOF
3749
3750 exit 0
3751 EOF
3752 chmod +x $CONFIG_STATUS
3753 rm -fr confdefs* $ac_clean_files
3754 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3755