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