]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs:
[linux-pam] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="conf/pam_conv1/pam_conv.y"
275 ac_default_prefix=
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBPAM_VERSION_MAJOR LIBPAM_VERSION_MINOR LOCALSRCDIR LOCALOBJDIR OS CONF_CFLAGS MKDIR SHLIBMODE MANMODE USESONAME SOSWITCH NEEDSONAME LDCONFIG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE WITH_DEBUG WITH_MEMORY_DEBUG WITH_LIBDEBUG FAKEROOT SECUREDIR SCONFIGDIR SUPLEMENTED INCLUDEDIR DOCDIR MANDIR WITH_PAMLOCKING PAM_READ_BOTH_CONFS STATIC_LIBPAM DYNAMIC_LIBPAM DYNAMIC STATIC WITH_LCKPWDF CPP EGREP PAM_NEEDS_LIBC HAVE_LCKPWDF LIBDL HAVE_LIBCRACK HAVE_LIBCRYPT HAVE_LIBUTIL HAVE_LIBNDBM HAVE_LIBDB HAVE_LIBFL HAVE_LIBNSL HAVE_LIBPWDB HAVE_LIBFLEX HAVE_LIBLEX HAVE_NDBM_H CRACKLIB_DICTPATH DYNTYPE OS_CFLAGS WARNINGS PIC LD LD_D LD_L RANLIB STRIP CC_STATIC LIBOBJS HAVE_SGML2TXT HAVE_SGML2HTML HAVE_SGML2LATEX HAVE_PS2PDF HAVE_SGML2PS PSER PS2PDF LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-debug           specify you are building with debugging on
845   --enable-memory-debug    specify you want every malloc etc. call tracked
846   --enable-libdebug        specify you are building debugging libraries
847   --enable-fakeroot=<path to packaging directory>
848   --enable-securedir=<path to location of PAMs> default \$libdir/security
849   --enable-isadir=<path to arch-specific module files> default ../../\`basename \$libdir\`/security
850   --enable-sconfigdir=<path to module conf files> default \$sysconfdir/security
851   --enable-suplementedir=<path to module helper binaries> default \$sbindir
852   --enable-includedir=<path to include location> - where to put <security>
853   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>
854   --enable-mandir=<path to store manuals in - /usr/share/man>
855   --enable-pamlocking      configure libpam to observe a global authentication lock
856   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax
857   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files
858   --enable-static-libpam   build a libpam.a library
859   --disable-dynamic-libpam do not build a shared libpam library
860   --enable-static-modules  do not make the modules dynamically loadable
861   --disable-lckpwdf do not use the lckpwdf function
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --with-mailspool         path to mail spool directory
867                            default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
868
869 Some influential environment variables:
870   CC          C compiler command
871   CFLAGS      C compiler flags
872   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873               nonstandard directory <lib dir>
874   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875               headers in a nonstandard directory <include dir>
876   CPP         C preprocessor
877
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
880
881 _ACEOF
882 fi
883
884 if test "$ac_init_help" = "recursive"; then
885   # If there are subdirs, report their specific --help.
886   ac_popdir=`pwd`
887   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888     test -d $ac_dir || continue
889     ac_builddir=.
890
891 if test "$ac_dir" != .; then
892   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893   # A "../" for each directory in $ac_dir_suffix.
894   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 else
896   ac_dir_suffix= ac_top_builddir=
897 fi
898
899 case $srcdir in
900   .)  # No --srcdir option.  We are building in place.
901     ac_srcdir=.
902     if test -z "$ac_top_builddir"; then
903        ac_top_srcdir=.
904     else
905        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906     fi ;;
907   [\\/]* | ?:[\\/]* )  # Absolute path.
908     ac_srcdir=$srcdir$ac_dir_suffix;
909     ac_top_srcdir=$srcdir ;;
910   *) # Relative path.
911     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912     ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
914
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
919 *)
920   case "$ac_dir" in
921   .) ac_abs_builddir=`pwd`;;
922   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923   *) ac_abs_builddir=`pwd`/"$ac_dir";;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *)
929   case ${ac_top_builddir}. in
930   .) ac_abs_top_builddir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
937 *)
938   case $ac_srcdir in
939   .) ac_abs_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *)
947   case $ac_top_srcdir in
948   .) ac_abs_top_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951   esac;;
952 esac
953
954     cd $ac_dir
955     # Check for guested configure; otherwise get Cygnus style configure.
956     if test -f $ac_srcdir/configure.gnu; then
957       echo
958       $SHELL $ac_srcdir/configure.gnu  --help=recursive
959     elif test -f $ac_srcdir/configure; then
960       echo
961       $SHELL $ac_srcdir/configure  --help=recursive
962     elif test -f $ac_srcdir/configure.ac ||
963            test -f $ac_srcdir/configure.in; then
964       echo
965       $ac_configure --help
966     else
967       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968     fi
969     cd $ac_popdir
970   done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975   cat <<\_ACEOF
976
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1050 do
1051   for ac_arg
1052   do
1053     case $ac_arg in
1054     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056     | -silent | --silent | --silen | --sile | --sil)
1057       continue ;;
1058     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060     esac
1061     case $ac_pass in
1062     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063     2)
1064       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065       if test $ac_must_keep_next = true; then
1066         ac_must_keep_next=false # Got value, back to normal.
1067       else
1068         case $ac_arg in
1069           *=* | --config-cache | -C | -disable-* | --disable-* \
1070           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072           | -with-* | --with-* | -without-* | --without-* | --x)
1073             case "$ac_configure_args0 " in
1074               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075             esac
1076             ;;
1077           -* ) ac_must_keep_next=true ;;
1078         esac
1079       fi
1080       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081       # Get rid of the leading space.
1082       ac_sep=" "
1083       ;;
1084     esac
1085   done
1086 done
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log.  We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096   # Save into config.log some information that might help in debugging.
1097   {
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105     echo
1106     # The following way of writing the cache mishandles newlines in values,
1107 {
1108   (set) 2>&1 |
1109     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110     *ac_space=\ *)
1111       sed -n \
1112         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114       ;;
1115     *)
1116       sed -n \
1117         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118       ;;
1119     esac;
1120 }
1121     echo
1122
1123     cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128     echo
1129     for ac_var in $ac_subst_vars
1130     do
1131       eval ac_val=$`echo $ac_var`
1132       echo "$ac_var='"'"'$ac_val'"'"'"
1133     done | sort
1134     echo
1135
1136     if test -n "$ac_subst_files"; then
1137       cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142       echo
1143       for ac_var in $ac_subst_files
1144       do
1145         eval ac_val=$`echo $ac_var`
1146         echo "$ac_var='"'"'$ac_val'"'"'"
1147       done | sort
1148       echo
1149     fi
1150
1151     if test -s confdefs.h; then
1152       cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157       echo
1158       sed "/^$/d" confdefs.h | sort
1159       echo
1160     fi
1161     test "$ac_signal" != 0 &&
1162       echo "$as_me: caught signal $ac_signal"
1163     echo "$as_me: exit $exit_status"
1164   } >&5
1165   rm -f core *.core &&
1166   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167     exit $exit_status
1168      ' 0
1169 for ac_signal in 1 2 13 15; do
1170   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1173
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 echo >confdefs.h
1178
1179 # Predefined preprocessor variables.
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1204
1205
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209   if test "x$prefix" != xNONE; then
1210     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211   else
1212     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213   fi
1214 fi
1215 for ac_site_file in $CONFIG_SITE; do
1216   if test -r "$ac_site_file"; then
1217     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219     sed 's/^/| /' "$ac_site_file" >&5
1220     . "$ac_site_file"
1221   fi
1222 done
1223
1224 if test -r "$cache_file"; then
1225   # Some versions of bash will fail to source /dev/null (special
1226   # files actually), so we avoid doing that.
1227   if test -f "$cache_file"; then
1228     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1230     case $cache_file in
1231       [\\/]* | ?:[\\/]* ) . $cache_file;;
1232       *)                      . ./$cache_file;;
1233     esac
1234   fi
1235 else
1236   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238   >$cache_file
1239 fi
1240
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247   eval ac_new_set=\$ac_env_${ac_var}_set
1248   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249   eval ac_new_val="\$ac_env_${ac_var}_value"
1250   case $ac_old_set,$ac_new_set in
1251     set,)
1252       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254       ac_cache_corrupted=: ;;
1255     ,set)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,);;
1260     *)
1261       if test "x$ac_old_val" != "x$ac_new_val"; then
1262         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1265 echo "$as_me:   former value:  $ac_old_val" >&2;}
1266         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1267 echo "$as_me:   current value: $ac_new_val" >&2;}
1268         ac_cache_corrupted=:
1269       fi;;
1270   esac
1271   # Pass precious variables to config.status.
1272   if test "$ac_new_set" = set; then
1273     case $ac_new_val in
1274     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276     *) ac_arg=$ac_var=$ac_new_val ;;
1277     esac
1278     case " $ac_configure_args " in
1279       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1280       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281     esac
1282   fi
1283 done
1284 if $ac_cache_corrupted; then
1285   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289    { (exit 1); exit 1; }; }
1290 fi
1291
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317           ac_config_headers="$ac_config_headers _pam_aconf.h"
1318
1319
1320
1321 LIBPAM_VERSION_MAJOR=0
1322 LIBPAM_VERSION_MINOR=78
1323
1324
1325
1326 cat >>confdefs.h <<\_ACEOF
1327 #define LIBPAM_VERSION_MAJOR 1
1328 _ACEOF
1329
1330 cat >>confdefs.h <<\_ACEOF
1331 #define LIBPAM_VERSION_MINOR 1
1332 _ACEOF
1333
1334
1335
1336
1337
1338 LOCALSRCDIR=`/bin/pwd`         ;
1339 LOCALOBJDIR=`/bin/pwd`         ;
1340 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1341
1342
1343
1344 CONF_CFLAGS=                    ;
1345 MKDIR="mkdir -p"                ;
1346
1347 SHLIBMODE=755                   ;
1348 MANMODE=644                     ;
1349
1350 USESONAME=yes                   ;
1351 SOSWITCH="-Wl,-soname -Wl,"     ;
1352 NEEDSONAME=yes                  ;
1353 LDCONFIG=/sbin/ldconfig         ;
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360 if test -n "$ac_tool_prefix"; then
1361   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   if test -n "$CC"; then
1369   ac_cv_prog_CC="$CC" # Let the user override the test.
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374   IFS=$as_save_IFS
1375   test -z "$as_dir" && as_dir=.
1376   for ac_exec_ext in '' $ac_executable_extensions; do
1377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380     break 2
1381   fi
1382 done
1383 done
1384
1385 fi
1386 fi
1387 CC=$ac_cv_prog_CC
1388 if test -n "$CC"; then
1389   echo "$as_me:$LINENO: result: $CC" >&5
1390 echo "${ECHO_T}$CC" >&6
1391 else
1392   echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1394 fi
1395
1396 fi
1397 if test -z "$ac_cv_prog_CC"; then
1398   ac_ct_CC=$CC
1399   # Extract the first word of "gcc", so it can be a program name with args.
1400 set dummy gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   if test -n "$ac_ct_CC"; then
1407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 else
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 for as_dir in $PATH
1411 do
1412   IFS=$as_save_IFS
1413   test -z "$as_dir" && as_dir=.
1414   for ac_exec_ext in '' $ac_executable_extensions; do
1415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416     ac_cv_prog_ac_ct_CC="gcc"
1417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418     break 2
1419   fi
1420 done
1421 done
1422
1423 fi
1424 fi
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1429 else
1430   echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 fi
1433
1434   CC=$ac_ct_CC
1435 else
1436   CC="$ac_cv_prog_CC"
1437 fi
1438
1439 if test -z "$CC"; then
1440   if test -n "$ac_tool_prefix"; then
1441   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   if test -n "$CC"; then
1449   ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454   IFS=$as_save_IFS
1455   test -z "$as_dir" && as_dir=.
1456   for ac_exec_ext in '' $ac_executable_extensions; do
1457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458     ac_cv_prog_CC="${ac_tool_prefix}cc"
1459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460     break 2
1461   fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469   echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472   echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 fi
1477 if test -z "$ac_cv_prog_CC"; then
1478   ac_ct_CC=$CC
1479   # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$ac_ct_CC"; then
1487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_ac_ct_CC="cc"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514   CC=$ac_ct_CC
1515 else
1516   CC="$ac_cv_prog_CC"
1517 fi
1518
1519 fi
1520 if test -z "$CC"; then
1521   # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$CC"; then
1529   ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531   ac_prog_rejected=no
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   for ac_exec_ext in '' $ac_executable_extensions; do
1538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1540        ac_prog_rejected=yes
1541        continue
1542      fi
1543     ac_cv_prog_CC="cc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 if test $ac_prog_rejected = yes; then
1551   # We found a bogon in the path, so make sure we never use it.
1552   set dummy $ac_cv_prog_CC
1553   shift
1554   if test $# != 0; then
1555     # We chose a different compiler from the bogus one.
1556     # However, it has the same basename, so the bogon will be chosen
1557     # first if we set CC to just the basename; use the full file name.
1558     shift
1559     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1560   fi
1561 fi
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$CC"; then
1575   if test -n "$ac_tool_prefix"; then
1576   for ac_prog in cl
1577   do
1578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$CC"; then
1586   ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606   echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613     test -n "$CC" && break
1614   done
1615 fi
1616 if test -z "$CC"; then
1617   ac_ct_CC=$CC
1618   for ac_prog in cl
1619 do
1620   # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$ac_ct_CC"; then
1628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_ac_ct_CC="$ac_prog"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647 if test -n "$ac_ct_CC"; then
1648   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649 echo "${ECHO_T}$ac_ct_CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655   test -n "$ac_ct_CC" && break
1656 done
1657
1658   CC=$ac_ct_CC
1659 fi
1660
1661 fi
1662
1663
1664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1665 See \`config.log' for more details." >&5
1666 echo "$as_me: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details." >&2;}
1668    { (exit 1); exit 1; }; }
1669
1670 # Provide some information about the compiler.
1671 echo "$as_me:$LINENO:" \
1672      "checking for C compiler version" >&5
1673 ac_compiler=`set X $ac_compile; echo $2`
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1675   (eval $ac_compiler --version </dev/null >&5) 2>&5
1676   ac_status=$?
1677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678   (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1680   (eval $ac_compiler -v </dev/null >&5) 2>&5
1681   ac_status=$?
1682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683   (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1685   (eval $ac_compiler -V </dev/null >&5) 2>&5
1686   ac_status=$?
1687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688   (exit $ac_status); }
1689
1690 cat >conftest.$ac_ext <<_ACEOF
1691 /* confdefs.h.  */
1692 _ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h.  */
1696
1697 int
1698 main ()
1699 {
1700
1701   ;
1702   return 0;
1703 }
1704 _ACEOF
1705 ac_clean_files_save=$ac_clean_files
1706 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1707 # Try to create an executable without -o first, disregard a.out.
1708 # It will help us diagnose broken compilers, and finding out an intuition
1709 # of exeext.
1710 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1711 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1712 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1713 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1714   (eval $ac_link_default) 2>&5
1715   ac_status=$?
1716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717   (exit $ac_status); }; then
1718   # Find the output, starting from the most likely.  This scheme is
1719 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1720 # resort.
1721
1722 # Be careful to initialize this variable, since it used to be cached.
1723 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1724 ac_cv_exeext=
1725 # b.out is created by i960 compilers.
1726 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1727 do
1728   test -f "$ac_file" || continue
1729   case $ac_file in
1730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1731         ;;
1732     conftest.$ac_ext )
1733         # This is the source file.
1734         ;;
1735     [ab].out )
1736         # We found the default executable, but exeext='' is most
1737         # certainly right.
1738         break;;
1739     *.* )
1740         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741         # FIXME: I believe we export ac_cv_exeext for Libtool,
1742         # but it would be cool to find out if it's true.  Does anybody
1743         # maintain Libtool? --akim.
1744         export ac_cv_exeext
1745         break;;
1746     * )
1747         break;;
1748   esac
1749 done
1750 else
1751   echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1755 See \`config.log' for more details." >&5
1756 echo "$as_me: error: C compiler cannot create executables
1757 See \`config.log' for more details." >&2;}
1758    { (exit 77); exit 77; }; }
1759 fi
1760
1761 ac_exeext=$ac_cv_exeext
1762 echo "$as_me:$LINENO: result: $ac_file" >&5
1763 echo "${ECHO_T}$ac_file" >&6
1764
1765 # Check the compiler produces executables we can run.  If not, either
1766 # the compiler is broken, or we cross compile.
1767 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1770 # If not cross compiling, check that we can run a simple program.
1771 if test "$cross_compiling" != yes; then
1772   if { ac_try='./$ac_file'
1773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1774   (eval $ac_try) 2>&5
1775   ac_status=$?
1776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777   (exit $ac_status); }; }; then
1778     cross_compiling=no
1779   else
1780     if test "$cross_compiling" = maybe; then
1781         cross_compiling=yes
1782     else
1783         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'.
1785 See \`config.log' for more details." >&5
1786 echo "$as_me: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'.
1788 See \`config.log' for more details." >&2;}
1789    { (exit 1); exit 1; }; }
1790     fi
1791   fi
1792 fi
1793 echo "$as_me:$LINENO: result: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1795
1796 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1797 ac_clean_files=$ac_clean_files_save
1798 # Check the compiler produces executables we can run.  If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1801 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1802 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1803 echo "${ECHO_T}$cross_compiling" >&6
1804
1805 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1806 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1808   (eval $ac_link) 2>&5
1809   ac_status=$?
1810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811   (exit $ac_status); }; then
1812   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1813 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1814 # work properly (i.e., refer to `conftest.exe'), while it won't with
1815 # `rm'.
1816 for ac_file in conftest.exe conftest conftest.*; do
1817   test -f "$ac_file" || continue
1818   case $ac_file in
1819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1820     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821           export ac_cv_exeext
1822           break;;
1823     * ) break;;
1824   esac
1825 done
1826 else
1827   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834 rm -f conftest$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1836 echo "${ECHO_T}$ac_cv_exeext" >&6
1837
1838 rm -f conftest.$ac_ext
1839 EXEEXT=$ac_cv_exeext
1840 ac_exeext=$EXEEXT
1841 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1842 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1843 if test "${ac_cv_objext+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h.  */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h.  */
1852
1853 int
1854 main ()
1855 {
1856
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 rm -f conftest.o conftest.obj
1862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1863   (eval $ac_compile) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }; then
1867   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1868   case $ac_file in
1869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1870     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1871        break;;
1872   esac
1873 done
1874 else
1875   echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1881 See \`config.log' for more details." >&2;}
1882    { (exit 1); exit 1; }; }
1883 fi
1884
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886 fi
1887 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1890 ac_objext=$OBJEXT
1891 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h.  */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h.  */
1902
1903 int
1904 main ()
1905 {
1906 #ifndef __GNUC__
1907        choke me
1908 #endif
1909
1910   ;
1911   return 0;
1912 }
1913 _ACEOF
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916   (eval $ac_compile) 2>conftest.er1
1917   ac_status=$?
1918   grep -v '^ *+' conftest.er1 >conftest.err
1919   rm -f conftest.er1
1920   cat conftest.err >&5
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); } &&
1923          { ac_try='test -z "$ac_c_werror_flag"
1924                          || test ! -s conftest.err'
1925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926   (eval $ac_try) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; } &&
1930          { ac_try='test -s conftest.$ac_objext'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936   ac_compiler_gnu=yes
1937 else
1938   echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_compiler_gnu=no
1942 fi
1943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1945
1946 fi
1947 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1949 GCC=`test $ac_compiler_gnu = yes && echo yes`
1950 ac_test_CFLAGS=${CFLAGS+set}
1951 ac_save_CFLAGS=$CFLAGS
1952 CFLAGS="-g"
1953 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1954 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1955 if test "${ac_cv_prog_cc_g+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   cat >conftest.$ac_ext <<_ACEOF
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>conftest.er1
1976   ac_status=$?
1977   grep -v '^ *+' conftest.er1 >conftest.err
1978   rm -f conftest.er1
1979   cat conftest.err >&5
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); } &&
1982          { ac_try='test -z "$ac_c_werror_flag"
1983                          || test ! -s conftest.err'
1984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985   (eval $ac_try) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; } &&
1989          { ac_try='test -s conftest.$ac_objext'
1990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991   (eval $ac_try) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; }; then
1995   ac_cv_prog_cc_g=yes
1996 else
1997   echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_cv_prog_cc_g=no
2001 fi
2002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2006 if test "$ac_test_CFLAGS" = set; then
2007   CFLAGS=$ac_save_CFLAGS
2008 elif test $ac_cv_prog_cc_g = yes; then
2009   if test "$GCC" = yes; then
2010     CFLAGS="-g -O2"
2011   else
2012     CFLAGS="-g"
2013   fi
2014 else
2015   if test "$GCC" = yes; then
2016     CFLAGS="-O2"
2017   else
2018     CFLAGS=
2019   fi
2020 fi
2021 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2022 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_cv_prog_cc_stdc=no
2027 ac_save_CC=$CC
2028 cat >conftest.$ac_ext <<_ACEOF
2029 /* confdefs.h.  */
2030 _ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h.  */
2034 #include <stdarg.h>
2035 #include <stdio.h>
2036 #include <sys/types.h>
2037 #include <sys/stat.h>
2038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2039 struct buf { int x; };
2040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2041 static char *e (p, i)
2042      char **p;
2043      int i;
2044 {
2045   return p[i];
2046 }
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2048 {
2049   char *s;
2050   va_list v;
2051   va_start (v,p);
2052   s = g (p, va_arg (v,int));
2053   va_end (v);
2054   return s;
2055 }
2056
2057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2058    function prototypes and stuff, but not '\xHH' hex character constants.
2059    These don't provoke an error unfortunately, instead are silently treated
2060    as 'x'.  The following induces an error, until -std1 is added to get
2061    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2062    array size at least.  It's necessary to write '\x00'==0 to get something
2063    that's true only with -std1.  */
2064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2065
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2070 int argc;
2071 char **argv;
2072 int
2073 main ()
2074 {
2075 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX                   -qlanglvl=ansi
2083 # Ultrix and OSF/1      -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2086 # SVR4                  -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2088 do
2089   CC="$ac_save_CC $ac_arg"
2090   rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>conftest.er1
2093   ac_status=$?
2094   grep -v '^ *+' conftest.er1 >conftest.err
2095   rm -f conftest.er1
2096   cat conftest.err >&5
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -z "$ac_c_werror_flag"
2100                          || test ! -s conftest.err'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; } &&
2106          { ac_try='test -s conftest.$ac_objext'
2107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108   (eval $ac_try) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }; }; then
2112   ac_cv_prog_cc_stdc=$ac_arg
2113 break
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 fi
2119 rm -f conftest.err conftest.$ac_objext
2120 done
2121 rm -f conftest.$ac_ext conftest.$ac_objext
2122 CC=$ac_save_CC
2123
2124 fi
2125
2126 case "x$ac_cv_prog_cc_stdc" in
2127   x|xno)
2128     echo "$as_me:$LINENO: result: none needed" >&5
2129 echo "${ECHO_T}none needed" >&6 ;;
2130   *)
2131     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2133     CC="$CC $ac_cv_prog_cc_stdc" ;;
2134 esac
2135
2136 # Some people use a C++ compiler to compile C.  Since we use `exit',
2137 # in C++ we need to declare it.  In case someone uses the same compiler
2138 # for both compiling C and C++ we need to have the C++ compiler decide
2139 # the declaration of exit, since it's the most demanding environment.
2140 cat >conftest.$ac_ext <<_ACEOF
2141 #ifndef __cplusplus
2142   choke me
2143 #endif
2144 _ACEOF
2145 rm -f conftest.$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147   (eval $ac_compile) 2>conftest.er1
2148   ac_status=$?
2149   grep -v '^ *+' conftest.er1 >conftest.err
2150   rm -f conftest.er1
2151   cat conftest.err >&5
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -z "$ac_c_werror_flag"
2155                          || test ! -s conftest.err'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; } &&
2161          { ac_try='test -s conftest.$ac_objext'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; }; then
2167   for ac_declaration in \
2168    '' \
2169    'extern "C" void std::exit (int) throw (); using std::exit;' \
2170    'extern "C" void std::exit (int); using std::exit;' \
2171    'extern "C" void exit (int) throw ();' \
2172    'extern "C" void exit (int);' \
2173    'void exit (int);'
2174 do
2175   cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181 $ac_declaration
2182 #include <stdlib.h>
2183 int
2184 main ()
2185 {
2186 exit (42);
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>conftest.er1
2194   ac_status=$?
2195   grep -v '^ *+' conftest.er1 >conftest.err
2196   rm -f conftest.er1
2197   cat conftest.err >&5
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); } &&
2200          { ac_try='test -z "$ac_c_werror_flag"
2201                          || test ! -s conftest.err'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; } &&
2207          { ac_try='test -s conftest.$ac_objext'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213   :
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 continue
2219 fi
2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221   cat >conftest.$ac_ext <<_ACEOF
2222 /* confdefs.h.  */
2223 _ACEOF
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h.  */
2227 $ac_declaration
2228 int
2229 main ()
2230 {
2231 exit (42);
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>conftest.er1
2239   ac_status=$?
2240   grep -v '^ *+' conftest.er1 >conftest.err
2241   rm -f conftest.er1
2242   cat conftest.err >&5
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); } &&
2245          { ac_try='test -z "$ac_c_werror_flag"
2246                          || test ! -s conftest.err'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; } &&
2252          { ac_try='test -s conftest.$ac_objext'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; }; then
2258   break
2259 else
2260   echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 fi
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2265 done
2266 rm -f conftest*
2267 if test -n "$ac_declaration"; then
2268   echo '#ifdef __cplusplus' >>confdefs.h
2269   echo $ac_declaration      >>confdefs.h
2270   echo '#endif'             >>confdefs.h
2271 fi
2272
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ac_ext=c
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285 for ac_prog in 'bison -y' byacc
2286 do
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_YACC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$YACC"; then
2295   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_YACC="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310
2311 fi
2312 fi
2313 YACC=$ac_cv_prog_YACC
2314 if test -n "$YACC"; then
2315   echo "$as_me:$LINENO: result: $YACC" >&5
2316 echo "${ECHO_T}$YACC" >&6
2317 else
2318   echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 fi
2321
2322   test -n "$YACC" && break
2323 done
2324 test -n "$YACC" || YACC="yacc"
2325
2326
2327 for ac_prog in flex lex
2328 do
2329   # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_LEX+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$LEX"; then
2337   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     ac_cv_prog_LEX="$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 LEX=$ac_cv_prog_LEX
2356 if test -n "$LEX"; then
2357   echo "$as_me:$LINENO: result: $LEX" >&5
2358 echo "${ECHO_T}$LEX" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364   test -n "$LEX" && break
2365 done
2366 test -n "$LEX" || LEX=":"
2367
2368 if test -z "$LEXLIB"
2369 then
2370   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2371 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2372 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   ac_check_lib_save_LIBS=$LIBS
2376 LIBS="-lfl  $LIBS"
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383
2384 /* Override any gcc2 internal prototype to avoid an error.  */
2385 #ifdef __cplusplus
2386 extern "C"
2387 #endif
2388 /* We use char because int might match the return type of a gcc2
2389    builtin and then its argument prototype would still apply.  */
2390 char yywrap ();
2391 int
2392 main ()
2393 {
2394 yywrap ();
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2401   (eval $ac_link) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest$ac_exeext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_lib_fl_yywrap=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_lib_fl_yywrap=no
2427 fi
2428 rm -f conftest.err conftest.$ac_objext \
2429       conftest$ac_exeext conftest.$ac_ext
2430 LIBS=$ac_check_lib_save_LIBS
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2433 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2434 if test $ac_cv_lib_fl_yywrap = yes; then
2435   LEXLIB="-lfl"
2436 else
2437   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2438 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2439 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_check_lib_save_LIBS=$LIBS
2443 LIBS="-ll  $LIBS"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450
2451 /* Override any gcc2 internal prototype to avoid an error.  */
2452 #ifdef __cplusplus
2453 extern "C"
2454 #endif
2455 /* We use char because int might match the return type of a gcc2
2456    builtin and then its argument prototype would still apply.  */
2457 char yywrap ();
2458 int
2459 main ()
2460 {
2461 yywrap ();
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext conftest$ac_exeext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468   (eval $ac_link) 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag"
2476                          || test ! -s conftest.err'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest$ac_exeext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_lib_l_yywrap=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_lib_l_yywrap=no
2494 fi
2495 rm -f conftest.err conftest.$ac_objext \
2496       conftest$ac_exeext conftest.$ac_ext
2497 LIBS=$ac_check_lib_save_LIBS
2498 fi
2499 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2500 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2501 if test $ac_cv_lib_l_yywrap = yes; then
2502   LEXLIB="-ll"
2503 fi
2504
2505 fi
2506
2507 fi
2508
2509 if test "x$LEX" != "x:"; then
2510   echo "$as_me:$LINENO: checking lex output file root" >&5
2511 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2512 if test "${ac_cv_prog_lex_root+set}" = set; then
2513   echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515   # The minimal lex program is just a single line: %%.  But some broken lexes
2516 # (Solaris, I think it was) want two %% lines, so accommodate them.
2517 cat >conftest.l <<_ACEOF
2518 %%
2519 %%
2520 _ACEOF
2521 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2522   (eval $LEX conftest.l) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526 if test -f lex.yy.c; then
2527   ac_cv_prog_lex_root=lex.yy
2528 elif test -f lexyy.c; then
2529   ac_cv_prog_lex_root=lexyy
2530 else
2531   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2532 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2533    { (exit 1); exit 1; }; }
2534 fi
2535 fi
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2537 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2538 rm -f conftest.l
2539 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2540
2541 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2542 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2543 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   # POSIX says lex can declare yytext either as a pointer or an array; the
2547 # default is implementation-dependent. Figure out which it is, since
2548 # not all implementations provide the %pointer and %array declarations.
2549 ac_cv_prog_lex_yytext_pointer=no
2550 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2551 ac_save_LIBS=$LIBS
2552 LIBS="$LIBS $LEXLIB"
2553 cat >conftest.$ac_ext <<_ACEOF
2554 `cat $LEX_OUTPUT_ROOT.c`
2555 _ACEOF
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558   (eval $ac_link) 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -z "$ac_c_werror_flag"
2566                          || test ! -s conftest.err'
2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568   (eval $ac_try) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; } &&
2572          { ac_try='test -s conftest$ac_exeext'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   ac_cv_prog_lex_yytext_pointer=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext \
2585       conftest$ac_exeext conftest.$ac_ext
2586 LIBS=$ac_save_LIBS
2587 rm -f "${LEX_OUTPUT_ROOT}.c"
2588
2589 fi
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2591 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2592 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2593
2594 cat >>confdefs.h <<\_ACEOF
2595 #define YYTEXT_POINTER 1
2596 _ACEOF
2597
2598 fi
2599
2600 fi
2601 ac_aux_dir=
2602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2603   if test -f $ac_dir/install-sh; then
2604     ac_aux_dir=$ac_dir
2605     ac_install_sh="$ac_aux_dir/install-sh -c"
2606     break
2607   elif test -f $ac_dir/install.sh; then
2608     ac_aux_dir=$ac_dir
2609     ac_install_sh="$ac_aux_dir/install.sh -c"
2610     break
2611   elif test -f $ac_dir/shtool; then
2612     ac_aux_dir=$ac_dir
2613     ac_install_sh="$ac_aux_dir/shtool install -c"
2614     break
2615   fi
2616 done
2617 if test -z "$ac_aux_dir"; then
2618   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2619 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2620    { (exit 1); exit 1; }; }
2621 fi
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2624 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2625
2626 # Find a good install program.  We prefer a C program (faster),
2627 # so one script is as good as another.  But avoid the broken or
2628 # incompatible versions:
2629 # SysV /etc/install, /usr/sbin/install
2630 # SunOS /usr/etc/install
2631 # IRIX /sbin/install
2632 # AIX /bin/install
2633 # AmigaOS /C/install, which installs bootblocks on floppy discs
2634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637 # OS/2's system install, which has a completely different semantic
2638 # ./install, which can be erroneously created by make from ./install.sh.
2639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2641 if test -z "$INSTALL"; then
2642 if test "${ac_cv_path_install+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   # Account for people who put trailing slashes in PATH elements.
2651 case $as_dir/ in
2652   ./ | .// | /cC/* | \
2653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2654   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2655   /usr/ucb/* ) ;;
2656   *)
2657     # OSF1 and SCO ODT 3.0 have their own names for install.
2658     # Don't use installbsd from OSF since it installs stuff as root
2659     # by default.
2660     for ac_prog in ginstall scoinst install; do
2661       for ac_exec_ext in '' $ac_executable_extensions; do
2662         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2663           if test $ac_prog = install &&
2664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665             # AIX install.  It has an incompatible calling convention.
2666             :
2667           elif test $ac_prog = install &&
2668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2669             # program-specific install script used by HP pwplus--don't use.
2670             :
2671           else
2672             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2673             break 3
2674           fi
2675         fi
2676       done
2677     done
2678     ;;
2679 esac
2680 done
2681
2682
2683 fi
2684   if test "${ac_cv_path_install+set}" = set; then
2685     INSTALL=$ac_cv_path_install
2686   else
2687     # As a last resort, use the slow shell script.  We don't cache a
2688     # path for INSTALL within a source directory, because that will
2689     # break other packages using the cache if that directory is
2690     # removed, or if the path is relative.
2691     INSTALL=$ac_install_sh
2692   fi
2693 fi
2694 echo "$as_me:$LINENO: result: $INSTALL" >&5
2695 echo "${ECHO_T}$INSTALL" >&6
2696
2697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2698 # It thinks the first close brace ends the variable substitution.
2699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700
2701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702
2703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704
2705 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2707 LN_S=$as_ln_s
2708 if test "$LN_S" = "ln -s"; then
2709   echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6
2711 else
2712   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2713 echo "${ECHO_T}no, using $LN_S" >&6
2714 fi
2715
2716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.make <<\_ACEOF
2723 all:
2724         @echo 'ac_maketemp="$(MAKE)"'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2728 if test -n "$ac_maketemp"; then
2729   eval ac_cv_prog_make_${ac_make}_set=yes
2730 else
2731   eval ac_cv_prog_make_${ac_make}_set=no
2732 fi
2733 rm -f conftest.make
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2736   echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738   SET_MAKE=
2739 else
2740   echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742   SET_MAKE="MAKE=${MAKE-make}"
2743 fi
2744
2745
2746
2747 # Check whether --enable-debug or --disable-debug was given.
2748 if test "${enable_debug+set}" = set; then
2749   enableval="$enable_debug"
2750   WITH_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2751 #define DEBUG 1
2752 _ACEOF
2753
2754 else
2755   WITH_DEBUG=no
2756 fi;
2757
2758
2759 # Check whether --enable-memory-debug or --disable-memory-debug was given.
2760 if test "${enable_memory_debug+set}" = set; then
2761   enableval="$enable_memory_debug"
2762   WITH_MEMORY_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2763 #define MEMORY_DEBUG 1
2764 _ACEOF
2765
2766 else
2767   WITH_MEMORY_DEBUG=no
2768 fi;
2769
2770
2771 # Check whether --enable-libdebug or --disable-libdebug was given.
2772 if test "${enable_libdebug+set}" = set; then
2773   enableval="$enable_libdebug"
2774   WITH_LIBDEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2775 #define WITH_LIBDEBUG 1
2776 _ACEOF
2777
2778 else
2779   WITH_LIBDEBUG=no
2780 fi;
2781
2782
2783 # Check whether --enable-fakeroot or --disable-fakeroot was given.
2784 if test "${enable_fakeroot+set}" = set; then
2785   enableval="$enable_fakeroot"
2786   FAKEROOT=$enableval
2787 fi;
2788
2789
2790 # Check whether --enable-securedir or --disable-securedir was given.
2791 if test "${enable_securedir+set}" = set; then
2792   enableval="$enable_securedir"
2793   SECUREDIR=$enableval
2794 else
2795   SECUREDIR=$libdir/security
2796 fi;
2797
2798
2799 # Check whether --enable-isadir or --disable-isadir was given.
2800 if test "${enable_isadir+set}" = set; then
2801   enableval="$enable_isadir"
2802   ISA=$enableval
2803 else
2804   ISA=../../`basename $libdir`/security
2805 fi;
2806 unset mylibdirbase
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define _PAM_ISA "$ISA"
2810 _ACEOF
2811
2812 echo "$as_me:$LINENO: result: Defining \$ISA to \\"$ISA\\"." >&5
2813 echo "${ECHO_T}Defining \$ISA to \\"$ISA\\"." >&6
2814
2815 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
2816 if test "${enable_sconfigdir+set}" = set; then
2817   enableval="$enable_sconfigdir"
2818   SCONFIGDIR=$enableval
2819 else
2820   SCONFIGDIR=$sysconfdir/security
2821 fi;
2822
2823
2824 # Check whether --enable-suplementedir or --disable-suplementedir was given.
2825 if test "${enable_suplementedir+set}" = set; then
2826   enableval="$enable_suplementedir"
2827   SUPLEMENTED=$enableval
2828 else
2829   SUPLEMENTED=$sbindir
2830 fi;
2831
2832
2833 # Check whether --enable-includedir or --disable-includedir was given.
2834 if test "${enable_includedir+set}" = set; then
2835   enableval="$enable_includedir"
2836   INCLUDEDIR=$enableval
2837 else
2838   INCLUDEDIR=/usr/include
2839 fi;
2840
2841
2842 # Check whether --enable-docdir or --disable-docdir was given.
2843 if test "${enable_docdir+set}" = set; then
2844   enableval="$enable_docdir"
2845   DOCDIR=$enableval
2846 else
2847   DOCDIR=/usr/share/doc/pam
2848 fi;
2849
2850
2851 # Check whether --enable-mandir or --disable-mandir was given.
2852 if test "${enable_mandir+set}" = set; then
2853   enableval="$enable_mandir"
2854   MANDIR=$enableval
2855 else
2856   MANDIR=/usr/share/man
2857 fi;
2858
2859
2860 # Check whether --enable-pamlocking or --disable-pamlocking was given.
2861 if test "${enable_pamlocking+set}" = set; then
2862   enableval="$enable_pamlocking"
2863   WITH_PAMLOCKING=yes ; cat >>confdefs.h <<\_ACEOF
2864 #define PAM_LOCKING 1
2865 _ACEOF
2866
2867 else
2868   WITH_PAMLOCKING=no
2869 fi;
2870
2871
2872 # Check whether --enable-uglyhack or --disable-uglyhack was given.
2873 if test "${enable_uglyhack+set}" = set; then
2874   enableval="$enable_uglyhack"
2875   cat >>confdefs.h <<\_ACEOF
2876 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
2877 _ACEOF
2878
2879 fi;
2880
2881 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
2882 if test "${enable_read_both_confs+set}" = set; then
2883   enableval="$enable_read_both_confs"
2884   cat >>confdefs.h <<\_ACEOF
2885 #define PAM_READ_BOTH_CONFS 1
2886 _ACEOF
2887
2888 fi;
2889
2890
2891 # Check whether --enable-static-libpam or --disable-static-libpam was given.
2892 if test "${enable_static_libpam+set}" = set; then
2893   enableval="$enable_static_libpam"
2894   STATIC_LIBPAM=yes
2895 else
2896   STATIC_LIBPAM=no
2897 fi;
2898
2899
2900 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
2901 if test "${enable_dynamic_libpam+set}" = set; then
2902   enableval="$enable_dynamic_libpam"
2903   DYNAMIC_LIBPAM=no
2904 else
2905   DYNAMIC_LIBPAM=yes
2906 fi;
2907
2908
2909 DYNAMIC=-DPAM_DYNAMIC
2910
2911
2912 # Check whether --enable-static-modules or --disable-static-modules was given.
2913 if test "${enable_static_modules+set}" = set; then
2914   enableval="$enable_static_modules"
2915   STATIC=-DPAM_STATIC
2916 fi;
2917
2918
2919 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
2920 if test "${enable_lckpwdf+set}" = set; then
2921   enableval="$enable_lckpwdf"
2922   WITH_LCKPWDF=no
2923 else
2924   WITH_LCKPWDF=yes
2925 fi;
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2935 # On Suns, sometimes $CPP names a directory.
2936 if test -n "$CPP" && test -d "$CPP"; then
2937   CPP=
2938 fi
2939 if test -z "$CPP"; then
2940   if test "${ac_cv_prog_CPP+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943       # Double quotes because CPP needs to be expanded
2944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2945     do
2946       ac_preproc_ok=false
2947 for ac_c_preproc_warn_flag in '' yes
2948 do
2949   # Use a header file that comes with gcc, so configuring glibc
2950   # with a fresh cross-compiler works.
2951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2952   # <limits.h> exists even on freestanding compilers.
2953   # On the NeXT, cc -E runs the code through the compiler's parser,
2954   # not just through cpp. "Syntax error" is here to catch this case.
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 #ifdef __STDC__
2962 # include <limits.h>
2963 #else
2964 # include <assert.h>
2965 #endif
2966                      Syntax error
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979   else
2980     ac_cpp_err=
2981   fi
2982 else
2983   ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986   :
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991   # Broken: fails on valid input.
2992 continue
2993 fi
2994 rm -f conftest.err conftest.$ac_ext
2995
2996   # OK, works on sane cases.  Now check whether non-existent headers
2997   # can be detected and how.
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 #include <ac_nonexistent.h>
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017   else
3018     ac_cpp_err=
3019   fi
3020 else
3021   ac_cpp_err=yes
3022 fi
3023 if test -z "$ac_cpp_err"; then
3024   # Broken: success on invalid input.
3025 continue
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030   # Passes both tests.
3031 ac_preproc_ok=:
3032 break
3033 fi
3034 rm -f conftest.err conftest.$ac_ext
3035
3036 done
3037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3038 rm -f conftest.err conftest.$ac_ext
3039 if $ac_preproc_ok; then
3040   break
3041 fi
3042
3043     done
3044     ac_cv_prog_CPP=$CPP
3045
3046 fi
3047   CPP=$ac_cv_prog_CPP
3048 else
3049   ac_cv_prog_CPP=$CPP
3050 fi
3051 echo "$as_me:$LINENO: result: $CPP" >&5
3052 echo "${ECHO_T}$CPP" >&6
3053 ac_preproc_ok=false
3054 for ac_c_preproc_warn_flag in '' yes
3055 do
3056   # Use a header file that comes with gcc, so configuring glibc
3057   # with a fresh cross-compiler works.
3058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059   # <limits.h> exists even on freestanding compilers.
3060   # On the NeXT, cc -E runs the code through the compiler's parser,
3061   # not just through cpp. "Syntax error" is here to catch this case.
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073                      Syntax error
3074 _ACEOF
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } >/dev/null; then
3083   if test -s conftest.err; then
3084     ac_cpp_err=$ac_c_preproc_warn_flag
3085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3086   else
3087     ac_cpp_err=
3088   fi
3089 else
3090   ac_cpp_err=yes
3091 fi
3092 if test -z "$ac_cpp_err"; then
3093   :
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098   # Broken: fails on valid input.
3099 continue
3100 fi
3101 rm -f conftest.err conftest.$ac_ext
3102
3103   # OK, works on sane cases.  Now check whether non-existent headers
3104   # can be detected and how.
3105   cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111 #include <ac_nonexistent.h>
3112 _ACEOF
3113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3115   ac_status=$?
3116   grep -v '^ *+' conftest.er1 >conftest.err
3117   rm -f conftest.er1
3118   cat conftest.err >&5
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } >/dev/null; then
3121   if test -s conftest.err; then
3122     ac_cpp_err=$ac_c_preproc_warn_flag
3123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3124   else
3125     ac_cpp_err=
3126   fi
3127 else
3128   ac_cpp_err=yes
3129 fi
3130 if test -z "$ac_cpp_err"; then
3131   # Broken: success on invalid input.
3132 continue
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137   # Passes both tests.
3138 ac_preproc_ok=:
3139 break
3140 fi
3141 rm -f conftest.err conftest.$ac_ext
3142
3143 done
3144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3145 rm -f conftest.err conftest.$ac_ext
3146 if $ac_preproc_ok; then
3147   :
3148 else
3149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161
3162
3163 echo "$as_me:$LINENO: checking for egrep" >&5
3164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3165 if test "${ac_cv_prog_egrep+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3169     then ac_cv_prog_egrep='grep -E'
3170     else ac_cv_prog_egrep='egrep'
3171     fi
3172 fi
3173 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3174 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3175  EGREP=$ac_cv_prog_egrep
3176
3177
3178 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3180 if test "${ac_cv_header_stdc+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <stdlib.h>
3190 #include <stdarg.h>
3191 #include <string.h>
3192 #include <float.h>
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204   (eval $ac_compile) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_c_werror_flag"
3212                          || test ! -s conftest.err'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; }; then
3224   ac_cv_header_stdc=yes
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 ac_cv_header_stdc=no
3230 fi
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232
3233 if test $ac_cv_header_stdc = yes; then
3234   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3235   cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #include <string.h>
3242
3243 _ACEOF
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245   $EGREP "memchr" >/dev/null 2>&1; then
3246   :
3247 else
3248   ac_cv_header_stdc=no
3249 fi
3250 rm -f conftest*
3251
3252 fi
3253
3254 if test $ac_cv_header_stdc = yes; then
3255   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdlib.h>
3263
3264 _ACEOF
3265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3266   $EGREP "free" >/dev/null 2>&1; then
3267   :
3268 else
3269   ac_cv_header_stdc=no
3270 fi
3271 rm -f conftest*
3272
3273 fi
3274
3275 if test $ac_cv_header_stdc = yes; then
3276   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3277   if test "$cross_compiling" = yes; then
3278   :
3279 else
3280   cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <ctype.h>
3287 #if ((' ' & 0x0FF) == 0x020)
3288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3290 #else
3291 # define ISLOWER(c) \
3292                    (('a' <= (c) && (c) <= 'i') \
3293                      || ('j' <= (c) && (c) <= 'r') \
3294                      || ('s' <= (c) && (c) <= 'z'))
3295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3296 #endif
3297
3298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3299 int
3300 main ()
3301 {
3302   int i;
3303   for (i = 0; i < 256; i++)
3304     if (XOR (islower (i), ISLOWER (i))
3305         || toupper (i) != TOUPPER (i))
3306       exit(2);
3307   exit (0);
3308 }
3309 _ACEOF
3310 rm -f conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312   (eval $ac_link) 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317   (eval $ac_try) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; }; then
3321   :
3322 else
3323   echo "$as_me: program exited with status $ac_status" >&5
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 ( exit $ac_status )
3328 ac_cv_header_stdc=no
3329 fi
3330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3331 fi
3332 fi
3333 fi
3334 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3335 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3336 if test $ac_cv_header_stdc = yes; then
3337
3338 cat >>confdefs.h <<\_ACEOF
3339 #define STDC_HEADERS 1
3340 _ACEOF
3341
3342 fi
3343
3344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3355                   inttypes.h stdint.h unistd.h
3356 do
3357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 $ac_includes_default
3370
3371 #include <$ac_header>
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375   (eval $ac_compile) 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_c_werror_flag"
3383                          || test ! -s conftest.err'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; } &&
3389          { ac_try='test -s conftest.$ac_objext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   eval "$as_ac_Header=yes"
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 eval "$as_ac_Header=no"
3401 fi
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3407   cat >>confdefs.h <<_ACEOF
3408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409 _ACEOF
3410
3411 fi
3412
3413 done
3414
3415
3416
3417 for ac_header in paths.h
3418 do
3419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421   echo "$as_me:$LINENO: checking for $ac_header" >&5
3422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 fi
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 else
3429   # Is the header compilable?
3430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 $ac_includes_default
3439 #include <$ac_header>
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   ac_header_compiler=yes
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 ac_header_compiler=no
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3472 echo "${ECHO_T}$ac_header_compiler" >&6
3473
3474 # Is the header present?
3475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 #include <$ac_header>
3484 _ACEOF
3485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } >/dev/null; then
3493   if test -s conftest.err; then
3494     ac_cpp_err=$ac_c_preproc_warn_flag
3495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496   else
3497     ac_cpp_err=
3498   fi
3499 else
3500   ac_cpp_err=yes
3501 fi
3502 if test -z "$ac_cpp_err"; then
3503   ac_header_preproc=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508   ac_header_preproc=no
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3512 echo "${ECHO_T}$ac_header_preproc" >&6
3513
3514 # So?  What about this header?
3515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3516   yes:no: )
3517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3521     ac_header_preproc=yes
3522     ;;
3523   no:yes:* )
3524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3536     (
3537       cat <<\_ASBOX
3538 ## ------------------------------------------ ##
3539 ## Report this to the AC_PACKAGE_NAME lists.  ##
3540 ## ------------------------------------------ ##
3541 _ASBOX
3542     ) |
3543       sed "s/^/$as_me: WARNING:     /" >&2
3544     ;;
3545 esac
3546 echo "$as_me:$LINENO: checking for $ac_header" >&5
3547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   eval "$as_ac_Header=\$ac_header_preproc"
3552 fi
3553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3555
3556 fi
3557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3558   cat >>confdefs.h <<_ACEOF
3559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3560 _ACEOF
3561
3562 fi
3563
3564 done
3565
3566
3567 # Check whether --with-mailspool or --without-mailspool was given.
3568 if test "${with_mailspool+set}" = set; then
3569   withval="$with_mailspool"
3570   with_mailspool=${withval}
3571 fi;
3572 if test x$with_mailspool != x ; then
3573         pam_mail_spool="\"$with_mailspool\""
3574 else
3575         if test "$cross_compiling" = yes; then
3576   pam_mail_spool="\"/var/spool/mail\""
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 #include <paths.h>
3586 int main() {
3587 #ifdef _PATH_MAILDIR
3588 exit(0);
3589 #else
3590 exit(1);
3591 #endif
3592 }
3593 _ACEOF
3594 rm -f conftest$ac_exeext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596   (eval $ac_link) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601   (eval $ac_try) 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605   pam_mail_spool="_PATH_MAILDIR"
3606 else
3607   echo "$as_me: program exited with status $ac_status" >&5
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ( exit $ac_status )
3612 pam_mail_spool="\"/var/spool/mail\""
3613 fi
3614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 fi
3617 cat >>confdefs.h <<_ACEOF
3618 #define PAM_PATH_MAILDIR $pam_mail_spool
3619 _ACEOF
3620
3621
3622 echo "$as_me:$LINENO: checking for __libc_sched_setscheduler in -lc" >&5
3623 echo $ECHO_N "checking for __libc_sched_setscheduler in -lc... $ECHO_C" >&6
3624 if test "${ac_cv_lib_c___libc_sched_setscheduler+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_check_lib_save_LIBS=$LIBS
3628 LIBS="-lc  $LIBS"
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 /* Override any gcc2 internal prototype to avoid an error.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char __libc_sched_setscheduler ();
3643 int
3644 main ()
3645 {
3646 __libc_sched_setscheduler ();
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653   (eval $ac_link) 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } &&
3660          { ac_try='test -z "$ac_c_werror_flag"
3661                          || test ! -s conftest.err'
3662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663   (eval $ac_try) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }; } &&
3667          { ac_try='test -s conftest$ac_exeext'
3668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669   (eval $ac_try) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; }; then
3673   ac_cv_lib_c___libc_sched_setscheduler=yes
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 ac_cv_lib_c___libc_sched_setscheduler=no
3679 fi
3680 rm -f conftest.err conftest.$ac_objext \
3681       conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3683 fi
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_c___libc_sched_setscheduler" >&5
3685 echo "${ECHO_T}$ac_cv_lib_c___libc_sched_setscheduler" >&6
3686 if test $ac_cv_lib_c___libc_sched_setscheduler = yes; then
3687   PAM_NEEDS_LIBC=
3688 else
3689   PAM_NEEDS_LIBC=-lc
3690 fi
3691
3692
3693
3694 echo "$as_me:$LINENO: checking for lckpwdf in -lc" >&5
3695 echo $ECHO_N "checking for lckpwdf in -lc... $ECHO_C" >&6
3696 if test "${ac_cv_lib_c_lckpwdf+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   ac_check_lib_save_LIBS=$LIBS
3700 LIBS="-lc  $LIBS"
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h.  */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h.  */
3707
3708 /* Override any gcc2 internal prototype to avoid an error.  */
3709 #ifdef __cplusplus
3710 extern "C"
3711 #endif
3712 /* We use char because int might match the return type of a gcc2
3713    builtin and then its argument prototype would still apply.  */
3714 char lckpwdf ();
3715 int
3716 main ()
3717 {
3718 lckpwdf ();
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 rm -f conftest.$ac_objext conftest$ac_exeext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725   (eval $ac_link) 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } &&
3732          { ac_try='test -z "$ac_c_werror_flag"
3733                          || test ! -s conftest.err'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; } &&
3739          { ac_try='test -s conftest$ac_exeext'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; }; then
3745   ac_cv_lib_c_lckpwdf=yes
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_cv_lib_c_lckpwdf=no
3751 fi
3752 rm -f conftest.err conftest.$ac_objext \
3753       conftest$ac_exeext conftest.$ac_ext
3754 LIBS=$ac_check_lib_save_LIBS
3755 fi
3756 echo "$as_me:$LINENO: result: $ac_cv_lib_c_lckpwdf" >&5
3757 echo "${ECHO_T}$ac_cv_lib_c_lckpwdf" >&6
3758 if test $ac_cv_lib_c_lckpwdf = yes; then
3759   HAVE_LCKPWDF=yes
3760 else
3761   HAVE_LCKPWDF=no
3762 fi
3763
3764
3765
3766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   ac_check_lib_save_LIBS=$LIBS
3772 LIBS="-ldl  $LIBS"
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h.  */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h.  */
3779
3780 /* Override any gcc2 internal prototype to avoid an error.  */
3781 #ifdef __cplusplus
3782 extern "C"
3783 #endif
3784 /* We use char because int might match the return type of a gcc2
3785    builtin and then its argument prototype would still apply.  */
3786 char dlopen ();
3787 int
3788 main ()
3789 {
3790 dlopen ();
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797   (eval $ac_link) 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } &&
3804          { ac_try='test -z "$ac_c_werror_flag"
3805                          || test ! -s conftest.err'
3806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807   (eval $ac_try) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; } &&
3811          { ac_try='test -s conftest$ac_exeext'
3812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813   (eval $ac_try) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }; }; then
3817   ac_cv_lib_dl_dlopen=yes
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 ac_cv_lib_dl_dlopen=no
3823 fi
3824 rm -f conftest.err conftest.$ac_objext \
3825       conftest$ac_exeext conftest.$ac_ext
3826 LIBS=$ac_check_lib_save_LIBS
3827 fi
3828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3830 if test $ac_cv_lib_dl_dlopen = yes; then
3831   LIBDL=-ldl
3832 fi
3833
3834
3835
3836 echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
3837 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
3838 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   ac_check_lib_save_LIBS=$LIBS
3842 LIBS="-lcrack  $LIBS"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849
3850 /* Override any gcc2 internal prototype to avoid an error.  */
3851 #ifdef __cplusplus
3852 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855    builtin and then its argument prototype would still apply.  */
3856 char FascistCheck ();
3857 int
3858 main ()
3859 {
3860 FascistCheck ();
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3867   (eval $ac_link) 2>conftest.er1
3868   ac_status=$?
3869   grep -v '^ *+' conftest.er1 >conftest.err
3870   rm -f conftest.er1
3871   cat conftest.err >&5
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } &&
3874          { ac_try='test -z "$ac_c_werror_flag"
3875                          || test ! -s conftest.err'
3876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); }; } &&
3881          { ac_try='test -s conftest$ac_exeext'
3882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883   (eval $ac_try) 2>&5
3884   ac_status=$?
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); }; }; then
3887   ac_cv_lib_crack_FascistCheck=yes
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ac_cv_lib_crack_FascistCheck=no
3893 fi
3894 rm -f conftest.err conftest.$ac_objext \
3895       conftest$ac_exeext conftest.$ac_ext
3896 LIBS=$ac_check_lib_save_LIBS
3897 fi
3898 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
3899 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
3900 if test $ac_cv_lib_crack_FascistCheck = yes; then
3901   HAVE_LIBCRACK=yes ; cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_LIBCRACK 1
3903 _ACEOF
3904
3905 else
3906   HAVE_LIBCRACK=no
3907 fi
3908
3909
3910
3911 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3912 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3913 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   ac_check_lib_save_LIBS=$LIBS
3917 LIBS="-lcrypt  $LIBS"
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924
3925 /* Override any gcc2 internal prototype to avoid an error.  */
3926 #ifdef __cplusplus
3927 extern "C"
3928 #endif
3929 /* We use char because int might match the return type of a gcc2
3930    builtin and then its argument prototype would still apply.  */
3931 char crypt ();
3932 int
3933 main ()
3934 {
3935 crypt ();
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942   (eval $ac_link) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } &&
3949          { ac_try='test -z "$ac_c_werror_flag"
3950                          || test ! -s conftest.err'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; } &&
3956          { ac_try='test -s conftest$ac_exeext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ac_cv_lib_crypt_crypt=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ac_cv_lib_crypt_crypt=no
3968 fi
3969 rm -f conftest.err conftest.$ac_objext \
3970       conftest$ac_exeext conftest.$ac_ext
3971 LIBS=$ac_check_lib_save_LIBS
3972 fi
3973 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3974 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
3975 if test $ac_cv_lib_crypt_crypt = yes; then
3976   HAVE_LIBCRYPT=yes ; cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_LIBCRYPT 1
3978 _ACEOF
3979
3980 else
3981   HAVE_LIBCRYPT=no
3982 fi
3983
3984
3985 echo "$as_me:$LINENO: checking for logwtmp in -lutil" >&5
3986 echo $ECHO_N "checking for logwtmp in -lutil... $ECHO_C" >&6
3987 if test "${ac_cv_lib_util_logwtmp+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_check_lib_save_LIBS=$LIBS
3991 LIBS="-lutil  $LIBS"
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998
3999 /* Override any gcc2 internal prototype to avoid an error.  */
4000 #ifdef __cplusplus
4001 extern "C"
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004    builtin and then its argument prototype would still apply.  */
4005 char logwtmp ();
4006 int
4007 main ()
4008 {
4009 logwtmp ();
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext conftest$ac_exeext
4015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4016   (eval $ac_link) 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          { ac_try='test -z "$ac_c_werror_flag"
4024                          || test ! -s conftest.err'
4025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026   (eval $ac_try) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; } &&
4030          { ac_try='test -s conftest$ac_exeext'
4031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032   (eval $ac_try) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; }; then
4036   ac_cv_lib_util_logwtmp=yes
4037 else
4038   echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 ac_cv_lib_util_logwtmp=no
4042 fi
4043 rm -f conftest.err conftest.$ac_objext \
4044       conftest$ac_exeext conftest.$ac_ext
4045 LIBS=$ac_check_lib_save_LIBS
4046 fi
4047 echo "$as_me:$LINENO: result: $ac_cv_lib_util_logwtmp" >&5
4048 echo "${ECHO_T}$ac_cv_lib_util_logwtmp" >&6
4049 if test $ac_cv_lib_util_logwtmp = yes; then
4050   HAVE_LIBUTIL=yes ; cat >>confdefs.h <<\_ACEOF
4051 #define HAVE_LIBUTIL 1
4052 _ACEOF
4053
4054 else
4055   HAVE_LIBUTIL=no
4056 fi
4057
4058
4059 echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
4060 echo $ECHO_N "checking for dbm_store in -lndbm... $ECHO_C" >&6
4061 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   ac_check_lib_save_LIBS=$LIBS
4065 LIBS="-lndbm  $LIBS"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072
4073 /* Override any gcc2 internal prototype to avoid an error.  */
4074 #ifdef __cplusplus
4075 extern "C"
4076 #endif
4077 /* We use char because int might match the return type of a gcc2
4078    builtin and then its argument prototype would still apply.  */
4079 char dbm_store ();
4080 int
4081 main ()
4082 {
4083 dbm_store ();
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.$ac_objext conftest$ac_exeext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090   (eval $ac_link) 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } &&
4097          { ac_try='test -z "$ac_c_werror_flag"
4098                          || test ! -s conftest.err'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; } &&
4104          { ac_try='test -s conftest$ac_exeext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   ac_cv_lib_ndbm_dbm_store=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_cv_lib_ndbm_dbm_store=no
4116 fi
4117 rm -f conftest.err conftest.$ac_objext \
4118       conftest$ac_exeext conftest.$ac_ext
4119 LIBS=$ac_check_lib_save_LIBS
4120 fi
4121 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
4122 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_store" >&6
4123 if test $ac_cv_lib_ndbm_dbm_store = yes; then
4124   HAVE_LIBNDBM=yes ; cat >>confdefs.h <<\_ACEOF
4125 #define HAVE_LIBNDBM 1
4126 _ACEOF
4127
4128 else
4129   HAVE_LIBNDBM=no
4130 fi
4131
4132
4133 echo "$as_me:$LINENO: checking for dbm_store in -ldb" >&5
4134 echo $ECHO_N "checking for dbm_store in -ldb... $ECHO_C" >&6
4135 if test "${ac_cv_lib_db_dbm_store+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   ac_check_lib_save_LIBS=$LIBS
4139 LIBS="-ldb  $LIBS"
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 /* Override any gcc2 internal prototype to avoid an error.  */
4148 #ifdef __cplusplus
4149 extern "C"
4150 #endif
4151 /* We use char because int might match the return type of a gcc2
4152    builtin and then its argument prototype would still apply.  */
4153 char dbm_store ();
4154 int
4155 main ()
4156 {
4157 dbm_store ();
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag"
4172                          || test ! -s conftest.err'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; } &&
4178          { ac_try='test -s conftest$ac_exeext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   ac_cv_lib_db_dbm_store=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_lib_db_dbm_store=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext \
4192       conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4194 fi
4195 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_store" >&5
4196 echo "${ECHO_T}$ac_cv_lib_db_dbm_store" >&6
4197 if test $ac_cv_lib_db_dbm_store = yes; then
4198   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_LIBDB 1
4200 _ACEOF
4201
4202 else
4203   HAVE_LIBDB=no
4204 fi
4205
4206 if test x$HAVE_LIBDB != xyes ; then
4207         echo "$as_me:$LINENO: checking for db_create in -ldb" >&5
4208 echo $ECHO_N "checking for db_create in -ldb... $ECHO_C" >&6
4209 if test "${ac_cv_lib_db_db_create+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   ac_check_lib_save_LIBS=$LIBS
4213 LIBS="-ldb  $LIBS"
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220
4221 /* Override any gcc2 internal prototype to avoid an error.  */
4222 #ifdef __cplusplus
4223 extern "C"
4224 #endif
4225 /* We use char because int might match the return type of a gcc2
4226    builtin and then its argument prototype would still apply.  */
4227 char db_create ();
4228 int
4229 main ()
4230 {
4231 db_create ();
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238   (eval $ac_link) 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } &&
4245          { ac_try='test -z "$ac_c_werror_flag"
4246                          || test ! -s conftest.err'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; } &&
4252          { ac_try='test -s conftest$ac_exeext'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; }; then
4258   ac_cv_lib_db_db_create=yes
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 ac_cv_lib_db_db_create=no
4264 fi
4265 rm -f conftest.err conftest.$ac_objext \
4266       conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4268 fi
4269 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_create" >&5
4270 echo "${ECHO_T}$ac_cv_lib_db_db_create" >&6
4271 if test $ac_cv_lib_db_db_create = yes; then
4272   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4273 #define HAVE_LIBDB 1
4274 _ACEOF
4275
4276 else
4277   HAVE_LIBDB=no
4278 fi
4279
4280 fi
4281
4282 echo "$as_me:$LINENO: checking for yylex in -lfl" >&5
4283 echo $ECHO_N "checking for yylex in -lfl... $ECHO_C" >&6
4284 if test "${ac_cv_lib_fl_yylex+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_check_lib_save_LIBS=$LIBS
4288 LIBS="-lfl HAVE_LIBFL=no $LIBS"
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295
4296 /* Override any gcc2 internal prototype to avoid an error.  */
4297 #ifdef __cplusplus
4298 extern "C"
4299 #endif
4300 /* We use char because int might match the return type of a gcc2
4301    builtin and then its argument prototype would still apply.  */
4302 char yylex ();
4303 int
4304 main ()
4305 {
4306 yylex ();
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313   (eval $ac_link) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_lib_fl_yylex=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_lib_fl_yylex=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext \
4341       conftest$ac_exeext conftest.$ac_ext
4342 LIBS=$ac_check_lib_save_LIBS
4343 fi
4344 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yylex" >&5
4345 echo "${ECHO_T}$ac_cv_lib_fl_yylex" >&6
4346 if test $ac_cv_lib_fl_yylex = yes; then
4347   yyterminate
4348 else
4349   HAVE_LIBFL=yes ; cat >>confdefs.h <<\_ACEOF
4350 #define HAVE_LIBFL 1
4351 _ACEOF
4352
4353 fi
4354
4355
4356 echo "$as_me:$LINENO: checking for yp_maplist in -lnsl" >&5
4357 echo $ECHO_N "checking for yp_maplist in -lnsl... $ECHO_C" >&6
4358 if test "${ac_cv_lib_nsl_yp_maplist+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lnsl  $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369
4370 /* Override any gcc2 internal prototype to avoid an error.  */
4371 #ifdef __cplusplus
4372 extern "C"
4373 #endif
4374 /* We use char because int might match the return type of a gcc2
4375    builtin and then its argument prototype would still apply.  */
4376 char yp_maplist ();
4377 int
4378 main ()
4379 {
4380 yp_maplist ();
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387   (eval $ac_link) 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -z "$ac_c_werror_flag"
4395                          || test ! -s conftest.err'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; } &&
4401          { ac_try='test -s conftest$ac_exeext'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_lib_nsl_yp_maplist=yes
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_lib_nsl_yp_maplist=no
4413 fi
4414 rm -f conftest.err conftest.$ac_objext \
4415       conftest$ac_exeext conftest.$ac_ext
4416 LIBS=$ac_check_lib_save_LIBS
4417 fi
4418 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_maplist" >&5
4419 echo "${ECHO_T}$ac_cv_lib_nsl_yp_maplist" >&6
4420 if test $ac_cv_lib_nsl_yp_maplist = yes; then
4421   HAVE_LIBNSL=yes ; cat >>confdefs.h <<\_ACEOF
4422 #define HAVE_LIBNSL 1
4423 _ACEOF
4424
4425 else
4426   HAVE_LIBNSL=no
4427 fi
4428
4429
4430
4431 if test $HAVE_LIBNSL = yes ; then
4432         pwdblibs="$pwdblibs -lnsl"
4433 fi
4434 echo "$as_me:$LINENO: checking for pwdb_db_name in -lpwdb" >&5
4435 echo $ECHO_N "checking for pwdb_db_name in -lpwdb... $ECHO_C" >&6
4436 if test "${ac_cv_lib_pwdb_pwdb_db_name+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   ac_check_lib_save_LIBS=$LIBS
4440 LIBS="-lpwdb $pwdblibs $LIBS"
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447
4448 /* Override any gcc2 internal prototype to avoid an error.  */
4449 #ifdef __cplusplus
4450 extern "C"
4451 #endif
4452 /* We use char because int might match the return type of a gcc2
4453    builtin and then its argument prototype would still apply.  */
4454 char pwdb_db_name ();
4455 int
4456 main ()
4457 {
4458 pwdb_db_name ();
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465   (eval $ac_link) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag"
4473                          || test ! -s conftest.err'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest$ac_exeext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   ac_cv_lib_pwdb_pwdb_db_name=yes
4486 else
4487   echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ac_cv_lib_pwdb_pwdb_db_name=no
4491 fi
4492 rm -f conftest.err conftest.$ac_objext \
4493       conftest$ac_exeext conftest.$ac_ext
4494 LIBS=$ac_check_lib_save_LIBS
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_lib_pwdb_pwdb_db_name" >&5
4497 echo "${ECHO_T}$ac_cv_lib_pwdb_pwdb_db_name" >&6
4498 if test $ac_cv_lib_pwdb_pwdb_db_name = yes; then
4499   HAVE_LIBPWDB=yes ; cat >>confdefs.h <<\_ACEOF
4500 #define HAVE_LIBPWDB 1
4501 _ACEOF
4502
4503 else
4504   HAVE_LIBPWDB=no
4505 fi
4506
4507
4508 unset pwdblibs
4509
4510 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4511 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4512 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   ac_check_lib_save_LIBS=$LIBS
4516 LIBS="-lfl  $LIBS"
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523
4524 /* Override any gcc2 internal prototype to avoid an error.  */
4525 #ifdef __cplusplus
4526 extern "C"
4527 #endif
4528 /* We use char because int might match the return type of a gcc2
4529    builtin and then its argument prototype would still apply.  */
4530 char yywrap ();
4531 int
4532 main ()
4533 {
4534 yywrap ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext conftest$ac_exeext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541   (eval $ac_link) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_c_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest$ac_exeext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_lib_fl_yywrap=yes
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 ac_cv_lib_fl_yywrap=no
4567 fi
4568 rm -f conftest.err conftest.$ac_objext \
4569       conftest$ac_exeext conftest.$ac_ext
4570 LIBS=$ac_check_lib_save_LIBS
4571 fi
4572 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4573 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4574 if test $ac_cv_lib_fl_yywrap = yes; then
4575   HAVE_LIBFLEX=yes ; cat >>confdefs.h <<\_ACEOF
4576 #define HAVE_LIBFLEX 1
4577 _ACEOF
4578
4579 else
4580   HAVE_LIBFLEX=no
4581 fi
4582
4583
4584 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4585 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4586 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   ac_check_lib_save_LIBS=$LIBS
4590 LIBS="-ll  $LIBS"
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597
4598 /* Override any gcc2 internal prototype to avoid an error.  */
4599 #ifdef __cplusplus
4600 extern "C"
4601 #endif
4602 /* We use char because int might match the return type of a gcc2
4603    builtin and then its argument prototype would still apply.  */
4604 char yywrap ();
4605 int
4606 main ()
4607 {
4608 yywrap ();
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext conftest$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615   (eval $ac_link) 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } &&
4622          { ac_try='test -z "$ac_c_werror_flag"
4623                          || test ! -s conftest.err'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; } &&
4629          { ac_try='test -s conftest$ac_exeext'
4630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; }; then
4635   ac_cv_lib_l_yywrap=yes
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 ac_cv_lib_l_yywrap=no
4641 fi
4642 rm -f conftest.err conftest.$ac_objext \
4643       conftest$ac_exeext conftest.$ac_ext
4644 LIBS=$ac_check_lib_save_LIBS
4645 fi
4646 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4647 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4648 if test $ac_cv_lib_l_yywrap = yes; then
4649   HAVE_LIBLEX=yes ; cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_LIBLEX 1
4651 _ACEOF
4652
4653 else
4654   HAVE_LIBLEX=no
4655 fi
4656
4657
4658
4659
4660
4661
4662
4663
4664 ac_header_dirent=no
4665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4666   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h.  */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h.  */
4678 #include <sys/types.h>
4679 #include <$ac_hdr>
4680
4681 int
4682 main ()
4683 {
4684 if ((DIR *) 0)
4685 return 0;
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692   (eval $ac_compile) 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -z "$ac_c_werror_flag"
4700                          || test ! -s conftest.err'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; } &&
4706          { ac_try='test -s conftest.$ac_objext'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   eval "$as_ac_Header=yes"
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 eval "$as_ac_Header=no"
4718 fi
4719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4724   cat >>confdefs.h <<_ACEOF
4725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4726 _ACEOF
4727
4728 ac_header_dirent=$ac_hdr; break
4729 fi
4730
4731 done
4732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4733 if test $ac_header_dirent = dirent.h; then
4734   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4736 if test "${ac_cv_search_opendir+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   ac_func_search_save_LIBS=$LIBS
4740 ac_cv_search_opendir=no
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 /* Override any gcc2 internal prototype to avoid an error.  */
4749 #ifdef __cplusplus
4750 extern "C"
4751 #endif
4752 /* We use char because int might match the return type of a gcc2
4753    builtin and then its argument prototype would still apply.  */
4754 char opendir ();
4755 int
4756 main ()
4757 {
4758 opendir ();
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765   (eval $ac_link) 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -z "$ac_c_werror_flag"
4773                          || test ! -s conftest.err'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest$ac_exeext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785   ac_cv_search_opendir="none required"
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 fi
4791 rm -f conftest.err conftest.$ac_objext \
4792       conftest$ac_exeext conftest.$ac_ext
4793 if test "$ac_cv_search_opendir" = no; then
4794   for ac_lib in dir; do
4795     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4796     cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 /* Override any gcc2 internal prototype to avoid an error.  */
4804 #ifdef __cplusplus
4805 extern "C"
4806 #endif
4807 /* We use char because int might match the return type of a gcc2
4808    builtin and then its argument prototype would still apply.  */
4809 char opendir ();
4810 int
4811 main ()
4812 {
4813 opendir ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820   (eval $ac_link) 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } &&
4827          { ac_try='test -z "$ac_c_werror_flag"
4828                          || test ! -s conftest.err'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; } &&
4834          { ac_try='test -s conftest$ac_exeext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_cv_search_opendir="-l$ac_lib"
4841 break
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 fi
4847 rm -f conftest.err conftest.$ac_objext \
4848       conftest$ac_exeext conftest.$ac_ext
4849   done
4850 fi
4851 LIBS=$ac_func_search_save_LIBS
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4854 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4855 if test "$ac_cv_search_opendir" != no; then
4856   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4857
4858 fi
4859
4860 else
4861   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4862 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4863 if test "${ac_cv_search_opendir+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   ac_func_search_save_LIBS=$LIBS
4867 ac_cv_search_opendir=no
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874
4875 /* Override any gcc2 internal prototype to avoid an error.  */
4876 #ifdef __cplusplus
4877 extern "C"
4878 #endif
4879 /* We use char because int might match the return type of a gcc2
4880    builtin and then its argument prototype would still apply.  */
4881 char opendir ();
4882 int
4883 main ()
4884 {
4885 opendir ();
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892   (eval $ac_link) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest$ac_exeext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   ac_cv_search_opendir="none required"
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 fi
4918 rm -f conftest.err conftest.$ac_objext \
4919       conftest$ac_exeext conftest.$ac_ext
4920 if test "$ac_cv_search_opendir" = no; then
4921   for ac_lib in x; do
4922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4923     cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929
4930 /* Override any gcc2 internal prototype to avoid an error.  */
4931 #ifdef __cplusplus
4932 extern "C"
4933 #endif
4934 /* We use char because int might match the return type of a gcc2
4935    builtin and then its argument prototype would still apply.  */
4936 char opendir ();
4937 int
4938 main ()
4939 {
4940 opendir ();
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947   (eval $ac_link) 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } &&
4954          { ac_try='test -z "$ac_c_werror_flag"
4955                          || test ! -s conftest.err'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; } &&
4961          { ac_try='test -s conftest$ac_exeext'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; }; then
4967   ac_cv_search_opendir="-l$ac_lib"
4968 break
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 fi
4974 rm -f conftest.err conftest.$ac_objext \
4975       conftest$ac_exeext conftest.$ac_ext
4976   done
4977 fi
4978 LIBS=$ac_func_search_save_LIBS
4979 fi
4980 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4981 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4982 if test "$ac_cv_search_opendir" != no; then
4983   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4984
4985 fi
4986
4987 fi
4988
4989 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4991 if test "${ac_cv_header_stdc+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <stdlib.h>
5001 #include <stdarg.h>
5002 #include <string.h>
5003 #include <float.h>
5004
5005 int
5006 main ()
5007 {
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015   (eval $ac_compile) 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag"
5023                          || test ! -s conftest.err'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   ac_cv_header_stdc=yes
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_cv_header_stdc=no
5041 fi
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043
5044 if test $ac_cv_header_stdc = yes; then
5045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #include <string.h>
5053
5054 _ACEOF
5055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056   $EGREP "memchr" >/dev/null 2>&1; then
5057   :
5058 else
5059   ac_cv_header_stdc=no
5060 fi
5061 rm -f conftest*
5062
5063 fi
5064
5065 if test $ac_cv_header_stdc = yes; then
5066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5067   cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 #include <stdlib.h>
5074
5075 _ACEOF
5076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5077   $EGREP "free" >/dev/null 2>&1; then
5078   :
5079 else
5080   ac_cv_header_stdc=no
5081 fi
5082 rm -f conftest*
5083
5084 fi
5085
5086 if test $ac_cv_header_stdc = yes; then
5087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5088   if test "$cross_compiling" = yes; then
5089   :
5090 else
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 #include <ctype.h>
5098 #if ((' ' & 0x0FF) == 0x020)
5099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5101 #else
5102 # define ISLOWER(c) \
5103                    (('a' <= (c) && (c) <= 'i') \
5104                      || ('j' <= (c) && (c) <= 'r') \
5105                      || ('s' <= (c) && (c) <= 'z'))
5106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5107 #endif
5108
5109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5110 int
5111 main ()
5112 {
5113   int i;
5114   for (i = 0; i < 256; i++)
5115     if (XOR (islower (i), ISLOWER (i))
5116         || toupper (i) != TOUPPER (i))
5117       exit(2);
5118   exit (0);
5119 }
5120 _ACEOF
5121 rm -f conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123   (eval $ac_link) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; }; then
5132   :
5133 else
5134   echo "$as_me: program exited with status $ac_status" >&5
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 ( exit $ac_status )
5139 ac_cv_header_stdc=no
5140 fi
5141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142 fi
5143 fi
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5146 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5147 if test $ac_cv_header_stdc = yes; then
5148
5149 cat >>confdefs.h <<\_ACEOF
5150 #define STDC_HEADERS 1
5151 _ACEOF
5152
5153 fi
5154
5155 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 #include <sys/types.h>
5167 #include <sys/wait.h>
5168 #ifndef WEXITSTATUS
5169 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5170 #endif
5171 #ifndef WIFEXITED
5172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5173 #endif
5174
5175 int
5176 main ()
5177 {
5178   int s;
5179   wait (&s);
5180   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187   (eval $ac_compile) 2>conftest.er1
5188   ac_status=$?
5189   grep -v '^ *+' conftest.er1 >conftest.err
5190   rm -f conftest.er1
5191   cat conftest.err >&5
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } &&
5194          { ac_try='test -z "$ac_c_werror_flag"
5195                          || test ! -s conftest.err'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; } &&
5201          { ac_try='test -s conftest.$ac_objext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_header_sys_wait_h=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 ac_cv_header_sys_wait_h=no
5213 fi
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5218 if test $ac_cv_header_sys_wait_h = yes; then
5219
5220 cat >>confdefs.h <<\_ACEOF
5221 #define HAVE_SYS_WAIT_H 1
5222 _ACEOF
5223
5224 fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
5237 do
5238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5240   echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 fi
5245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5247 else
5248   # Is the header compilable?
5249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h.  */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h.  */
5257 $ac_includes_default
5258 #include <$ac_header>
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag"
5270                          || test ! -s conftest.err'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_header_compiler=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_header_compiler=no
5288 fi
5289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6
5292
5293 # Is the header present?
5294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 #include <$ac_header>
5303 _ACEOF
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   ac_header_preproc=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327   ac_header_preproc=no
5328 fi
5329 rm -f conftest.err conftest.$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6
5332
5333 # So?  What about this header?
5334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335   yes:no: )
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340     ac_header_preproc=yes
5341     ;;
5342   no:yes:* )
5343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355     (
5356       cat <<\_ASBOX
5357 ## ------------------------------------------ ##
5358 ## Report this to the AC_PACKAGE_NAME lists.  ##
5359 ## ------------------------------------------ ##
5360 _ASBOX
5361     ) |
5362       sed "s/^/$as_me: WARNING:     /" >&2
5363     ;;
5364 esac
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   eval "$as_ac_Header=\$ac_header_preproc"
5371 fi
5372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5374
5375 fi
5376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5377   cat >>confdefs.h <<_ACEOF
5378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 _ACEOF
5380
5381 fi
5382
5383 done
5384
5385
5386
5387 for ac_header in features.h
5388 do
5389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391   echo "$as_me:$LINENO: checking for $ac_header" >&5
5392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 fi
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398 else
5399   # Is the header compilable?
5400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 $ac_includes_default
5409 #include <$ac_header>
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } &&
5420          { ac_try='test -z "$ac_c_werror_flag"
5421                          || test ! -s conftest.err'
5422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423   (eval $ac_try) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; } &&
5427          { ac_try='test -s conftest.$ac_objext'
5428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429   (eval $ac_try) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); }; }; then
5433   ac_header_compiler=yes
5434 else
5435   echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ac_header_compiler=no
5439 fi
5440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5442 echo "${ECHO_T}$ac_header_compiler" >&6
5443
5444 # Is the header present?
5445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <$ac_header>
5454 _ACEOF
5455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } >/dev/null; then
5463   if test -s conftest.err; then
5464     ac_cpp_err=$ac_c_preproc_warn_flag
5465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5466   else
5467     ac_cpp_err=
5468   fi
5469 else
5470   ac_cpp_err=yes
5471 fi
5472 if test -z "$ac_cpp_err"; then
5473   ac_header_preproc=yes
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478   ac_header_preproc=no
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5482 echo "${ECHO_T}$ac_header_preproc" >&6
5483
5484 # So?  What about this header?
5485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5486   yes:no: )
5487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5491     ac_header_preproc=yes
5492     ;;
5493   no:yes:* )
5494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5506     (
5507       cat <<\_ASBOX
5508 ## ------------------------------------------ ##
5509 ## Report this to the AC_PACKAGE_NAME lists.  ##
5510 ## ------------------------------------------ ##
5511 _ASBOX
5512     ) |
5513       sed "s/^/$as_me: WARNING:     /" >&2
5514     ;;
5515 esac
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   eval "$as_ac_Header=\$ac_header_preproc"
5522 fi
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525
5526 fi
5527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5528   cat >>confdefs.h <<_ACEOF
5529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530 _ACEOF
5531
5532 fi
5533
5534 done
5535
5536
5537
5538 for ac_header in crypt.h
5539 do
5540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542   echo "$as_me:$LINENO: checking for $ac_header" >&5
5543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 fi
5547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549 else
5550   # Is the header compilable?
5551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 $ac_includes_default
5560 #include <$ac_header>
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564   (eval $ac_compile) 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } &&
5571          { ac_try='test -z "$ac_c_werror_flag"
5572                          || test ! -s conftest.err'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   ac_header_compiler=yes
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_header_compiler=no
5590 fi
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5593 echo "${ECHO_T}$ac_header_compiler" >&6
5594
5595 # Is the header present?
5596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 #include <$ac_header>
5605 _ACEOF
5606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } >/dev/null; then
5614   if test -s conftest.err; then
5615     ac_cpp_err=$ac_c_preproc_warn_flag
5616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617   else
5618     ac_cpp_err=
5619   fi
5620 else
5621   ac_cpp_err=yes
5622 fi
5623 if test -z "$ac_cpp_err"; then
5624   ac_header_preproc=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629   ac_header_preproc=no
5630 fi
5631 rm -f conftest.err conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5633 echo "${ECHO_T}$ac_header_preproc" >&6
5634
5635 # So?  What about this header?
5636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5637   yes:no: )
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5642     ac_header_preproc=yes
5643     ;;
5644   no:yes:* )
5645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5657     (
5658       cat <<\_ASBOX
5659 ## ------------------------------------------ ##
5660 ## Report this to the AC_PACKAGE_NAME lists.  ##
5661 ## ------------------------------------------ ##
5662 _ASBOX
5663     ) |
5664       sed "s/^/$as_me: WARNING:     /" >&2
5665     ;;
5666 esac
5667 echo "$as_me:$LINENO: checking for $ac_header" >&5
5668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   eval "$as_ac_Header=\$ac_header_preproc"
5673 fi
5674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5676
5677 fi
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679   cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 _ACEOF
5682
5683 fi
5684
5685 done
5686
5687
5688
5689
5690 for ac_header in ndbm.h db.h
5691 do
5692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5694   echo "$as_me:$LINENO: checking for $ac_header" >&5
5695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 fi
5699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 else
5702   # Is the header compilable?
5703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 #include <$ac_header>
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -z "$ac_c_werror_flag"
5724                          || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest.$ac_objext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_header_compiler=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_header_compiler=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5745 echo "${ECHO_T}$ac_header_compiler" >&6
5746
5747 # Is the header present?
5748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 #include <$ac_header>
5757 _ACEOF
5758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } >/dev/null; then
5766   if test -s conftest.err; then
5767     ac_cpp_err=$ac_c_preproc_warn_flag
5768     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5769   else
5770     ac_cpp_err=
5771   fi
5772 else
5773   ac_cpp_err=yes
5774 fi
5775 if test -z "$ac_cpp_err"; then
5776   ac_header_preproc=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781   ac_header_preproc=no
5782 fi
5783 rm -f conftest.err conftest.$ac_ext
5784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5785 echo "${ECHO_T}$ac_header_preproc" >&6
5786
5787 # So?  What about this header?
5788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5789   yes:no: )
5790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5794     ac_header_preproc=yes
5795     ;;
5796   no:yes:* )
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5809     (
5810       cat <<\_ASBOX
5811 ## ------------------------------------------ ##
5812 ## Report this to the AC_PACKAGE_NAME lists.  ##
5813 ## ------------------------------------------ ##
5814 _ASBOX
5815     ) |
5816       sed "s/^/$as_me: WARNING:     /" >&2
5817     ;;
5818 esac
5819 echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   eval "$as_ac_Header=\$ac_header_preproc"
5825 fi
5826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5828
5829 fi
5830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5831   cat >>confdefs.h <<_ACEOF
5832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5833 _ACEOF
5834
5835 fi
5836
5837 done
5838
5839 HAVE_NDBM_H=$ac_cv_header_ndbm_h
5840
5841
5842
5843
5844
5845 for ac_header in lastlog.h utmp.h utmpx.h
5846 do
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849   echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 fi
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856 else
5857   # Is the header compilable?
5858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 $ac_includes_default
5867 #include <$ac_header>
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871   (eval $ac_compile) 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -z "$ac_c_werror_flag"
5879                          || test ! -s conftest.err'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_header_compiler=yes
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 ac_header_compiler=no
5897 fi
5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5900 echo "${ECHO_T}$ac_header_compiler" >&6
5901
5902 # Is the header present?
5903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 #include <$ac_header>
5912 _ACEOF
5913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } >/dev/null; then
5921   if test -s conftest.err; then
5922     ac_cpp_err=$ac_c_preproc_warn_flag
5923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5924   else
5925     ac_cpp_err=
5926   fi
5927 else
5928   ac_cpp_err=yes
5929 fi
5930 if test -z "$ac_cpp_err"; then
5931   ac_header_preproc=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936   ac_header_preproc=no
5937 fi
5938 rm -f conftest.err conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5941
5942 # So?  What about this header?
5943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5944   yes:no: )
5945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5949     ac_header_preproc=yes
5950     ;;
5951   no:yes:* )
5952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5964     (
5965       cat <<\_ASBOX
5966 ## ------------------------------------------ ##
5967 ## Report this to the AC_PACKAGE_NAME lists.  ##
5968 ## ------------------------------------------ ##
5969 _ASBOX
5970     ) |
5971       sed "s/^/$as_me: WARNING:     /" >&2
5972     ;;
5973 esac
5974 echo "$as_me:$LINENO: checking for $ac_header" >&5
5975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   eval "$as_ac_Header=\$ac_header_preproc"
5980 fi
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983
5984 fi
5985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5986   cat >>confdefs.h <<_ACEOF
5987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991
5992 done
5993
5994
5995
5996 echo "$as_me:$LINENO: checking path to cracklib dictionary" >&5
5997 echo $ECHO_N "checking path to cracklib dictionary... $ECHO_C" >&6
5998 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
5999   /usr/local/lib /usr/local/share/lib"
6000 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
6001 CRACKLIB_DICTPATH=""
6002 for d in $DICT_DIR_CANDIDATES ; do
6003       for f in $DICT_FILE_CANDIDATES ; do
6004               if test -r $d/$f.hwm ; then
6005                       CRACKLIB_DICTPATH=$d/$f
6006                       break 2
6007               elif test -r $d/dict/$f.hwm ; then
6008                       CRACKLIB_DICTPATH=$d/dict/$f
6009                       break 2
6010               fi
6011       done
6012 done
6013 if test -z "$CRACKLIB_DICTPATH" ; then
6014       { { echo "$as_me:$LINENO: error: none found" >&5
6015 echo "$as_me: error: none found" >&2;}
6016    { (exit 1); exit 1; }; }
6017 else
6018       echo "$as_me:$LINENO: result: $CRACKLIB_DICTPATH" >&5
6019 echo "${ECHO_T}$CRACKLIB_DICTPATH" >&6
6020 fi
6021
6022
6023
6024 GCC_WARNINGS="-Wall -Wwrite-strings \
6025         -Wpointer-arith -Wcast-qual -Wcast-align \
6026         -Wstrict-prototypes -Wmissing-prototypes \
6027         -Wnested-externs -Winline -Wshadow"
6028
6029 if test "$GCC" = yes; then
6030         CC=gcc                          ;
6031 ### May need per-OS attention
6032 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
6033         case $OS in
6034         linux)
6035                 OS_CFLAGS=
6036                 LD_D="$CC -shared $LDFLAGS"
6037                 WARNINGS="$GCC_WARNINGS"
6038                 PIC="-fPIC"
6039                 DYNTYPE=so
6040                 LD=gcc
6041                 LD_L="$CC -shared $LDFLAGS"
6042                 RANLIB=:
6043                 STRIP=strip
6044                 CC_STATIC="-Xlinker -export-dynamic"
6045                 ;;
6046         sunos)
6047                 OS_CFLAGS="-ansi -pedantic"
6048                 LD_D="gcc -shared -Xlinker -x"
6049                 WARNINGS="$GCC_WARNINGS"
6050                 PIC="-fPIC"
6051                 DYNTYPE=so
6052                 LD=ld
6053                 LD_L="$LD -x -shared"
6054                 RANLIB=ranlib
6055                 STRIP=strip
6056                 CC_STATIC="-Xlinker -export-dynamic"
6057                 ;;
6058         aix)
6059                 OS_CFLAGS=""
6060                 DYNTYPE=lo
6061                 LD=ld
6062                 LD_L=ld -bexpall -bM:SRE -bnoentry
6063                 LD_D="$LD_L"
6064                 RANLIB=ranlib
6065                 STRIP=strip
6066                 ;;
6067         *)
6068                 OS_CFLAGS=""
6069                 ;;
6070         esac
6071 else
6072 ###
6073 ### Non-gcc needs attention on per-OS basis
6074 ###
6075         case "$OS" in
6076         darwin)
6077 # add some stuff here (see sourceforge bug 534205)
6078 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
6079 # MANDIR=/usr/share/man
6080                 ;;
6081         solaris)
6082             ### Support for Solaris-C
6083             OS_CFLAGS=""
6084             WARNINGS=""
6085             PIC="-K pic"
6086             LD=ld
6087             LD_D="cc -z text -G -R."
6088             LD_L="$LD_D"
6089             RANLIB=ranlib
6090             STRIP=strip
6091             CC_STATIC=
6092             ;;
6093         irix*)
6094             OSRELEASE=`uname -r`
6095             if test "$OSRELEASE" = 6.5; then
6096                 OS_CFLAGS=""
6097                 WARNINGS="-fullwarn"
6098                 PIC=                    #PIC code is default for IRIX
6099                 LD="cc -shared"         # modules friendly approach
6100                 LD_D="cc -shared"
6101                 LD_L="ld -G -z redlocsym"
6102                 RANLIB=echo
6103                 STRIP=strip
6104                 CC_STATIC=
6105             else
6106                 echo "IRIX prior to 6.5 not allowed for"
6107                 exit
6108             fi
6109             ;;
6110        *) echo "Native compiler on $OS is not yet supported"
6111                exit
6112             ;;
6113        esac
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6128 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6129 if test "${ac_cv_c_bigendian+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   # See if sys/param.h defines the BYTE_ORDER macro.
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 #include <sys/types.h>
6140 #include <sys/param.h>
6141
6142 int
6143 main ()
6144 {
6145 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6146  bogus endian macros
6147 #endif
6148
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155   (eval $ac_compile) 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } &&
6162          { ac_try='test -z "$ac_c_werror_flag"
6163                          || test ! -s conftest.err'
6164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165   (eval $ac_try) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   # It does; now see whether it defined to BIG_ENDIAN or not.
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h.  */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h.  */
6182 #include <sys/types.h>
6183 #include <sys/param.h>
6184
6185 int
6186 main ()
6187 {
6188 #if BYTE_ORDER != BIG_ENDIAN
6189  not big endian
6190 #endif
6191
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198   (eval $ac_compile) 2>conftest.er1
6199   ac_status=$?
6200   grep -v '^ *+' conftest.er1 >conftest.err
6201   rm -f conftest.er1
6202   cat conftest.err >&5
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } &&
6205          { ac_try='test -z "$ac_c_werror_flag"
6206                          || test ! -s conftest.err'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; } &&
6212          { ac_try='test -s conftest.$ac_objext'
6213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; }; then
6218   ac_cv_c_bigendian=yes
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_cv_c_bigendian=no
6224 fi
6225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 else
6227   echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 # It does not; compile a test program.
6231 if test "$cross_compiling" = yes; then
6232   # try to guess the endianness by grepping values into an object file
6233   ac_cv_c_bigendian=unknown
6234   cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6241 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6243 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6244 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6246 int
6247 main ()
6248 {
6249  _ascii (); _ebcdic ();
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256   (eval $ac_compile) 2>conftest.er1
6257   ac_status=$?
6258   grep -v '^ *+' conftest.er1 >conftest.err
6259   rm -f conftest.er1
6260   cat conftest.err >&5
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); } &&
6263          { ac_try='test -z "$ac_c_werror_flag"
6264                          || test ! -s conftest.err'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; } &&
6270          { ac_try='test -s conftest.$ac_objext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6277   ac_cv_c_bigendian=yes
6278 fi
6279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6280   if test "$ac_cv_c_bigendian" = unknown; then
6281     ac_cv_c_bigendian=no
6282   else
6283     # finding both strings is unlikely to happen, but who knows?
6284     ac_cv_c_bigendian=unknown
6285   fi
6286 fi
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 fi
6292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 else
6294   cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 int
6301 main ()
6302 {
6303   /* Are we little or big endian?  From Harbison&Steele.  */
6304   union
6305   {
6306     long l;
6307     char c[sizeof (long)];
6308   } u;
6309   u.l = 1;
6310   exit (u.c[sizeof (long) - 1] == 1);
6311 }
6312 _ACEOF
6313 rm -f conftest$ac_exeext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315   (eval $ac_link) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320   (eval $ac_try) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }; }; then
6324   ac_cv_c_bigendian=no
6325 else
6326   echo "$as_me: program exited with status $ac_status" >&5
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 ( exit $ac_status )
6331 ac_cv_c_bigendian=yes
6332 fi
6333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6334 fi
6335 fi
6336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6339 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6340 case $ac_cv_c_bigendian in
6341   yes)
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define WORDS_BIGENDIAN 1
6345 _ACEOF
6346  ;;
6347   no)
6348      ;;
6349   *)
6350     { { echo "$as_me:$LINENO: error: unknown endianness
6351 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6352 echo "$as_me: error: unknown endianness
6353 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6354    { (exit 1); exit 1; }; } ;;
6355 esac
6356
6357 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6358 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6359 if test "${ac_cv_c_const+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368
6369 int
6370 main ()
6371 {
6372 /* FIXME: Include the comments suggested by Paul. */
6373 #ifndef __cplusplus
6374   /* Ultrix mips cc rejects this.  */
6375   typedef int charset[2];
6376   const charset x;
6377   /* SunOS 4.1.1 cc rejects this.  */
6378   char const *const *ccp;
6379   char **p;
6380   /* NEC SVR4.0.2 mips cc rejects this.  */
6381   struct point {int x, y;};
6382   static struct point const zero = {0,0};
6383   /* AIX XL C 1.02.0.0 rejects this.
6384      It does not let you subtract one const X* pointer from another in
6385      an arm of an if-expression whose if-part is not a constant
6386      expression */
6387   const char *g = "string";
6388   ccp = &g + (g ? g-g : 0);
6389   /* HPUX 7.0 cc rejects these. */
6390   ++ccp;
6391   p = (char**) ccp;
6392   ccp = (char const *const *) p;
6393   { /* SCO 3.2v4 cc rejects this.  */
6394     char *t;
6395     char const *s = 0 ? (char *) 0 : (char const *) 0;
6396
6397     *t++ = 0;
6398   }
6399   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6400     int x[] = {25, 17};
6401     const int *foo = &x[0];
6402     ++foo;
6403   }
6404   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6405     typedef const int *iptr;
6406     iptr p = 0;
6407     ++p;
6408   }
6409   { /* AIX XL C 1.02.0.0 rejects this saying
6410        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6411     struct s { int j; const int *ap[3]; };
6412     struct s *b; b->j = 5;
6413   }
6414   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6415     const int foo = 10;
6416   }
6417 #endif
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"
6433                          || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest.$ac_objext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_c_const=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_cv_c_const=no
6451 fi
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6455 echo "${ECHO_T}$ac_cv_c_const" >&6
6456 if test $ac_cv_c_const = no; then
6457
6458 cat >>confdefs.h <<\_ACEOF
6459 #define const
6460 _ACEOF
6461
6462 fi
6463
6464 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6465 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6466 if test "${ac_cv_type_uid_t+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469   cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h.  */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h.  */
6475 #include <sys/types.h>
6476
6477 _ACEOF
6478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6479   $EGREP "uid_t" >/dev/null 2>&1; then
6480   ac_cv_type_uid_t=yes
6481 else
6482   ac_cv_type_uid_t=no
6483 fi
6484 rm -f conftest*
6485
6486 fi
6487 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6488 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6489 if test $ac_cv_type_uid_t = no; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define uid_t int
6493 _ACEOF
6494
6495
6496 cat >>confdefs.h <<\_ACEOF
6497 #define gid_t int
6498 _ACEOF
6499
6500 fi
6501
6502 echo "$as_me:$LINENO: checking for off_t" >&5
6503 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6504 if test "${ac_cv_type_off_t+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 $ac_includes_default
6514 int
6515 main ()
6516 {
6517 if ((off_t *) 0)
6518   return 0;
6519 if (sizeof (off_t))
6520   return 0;
6521   ;
6522   return 0;
6523 }
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527   (eval $ac_compile) 2>conftest.er1
6528   ac_status=$?
6529   grep -v '^ *+' conftest.er1 >conftest.err
6530   rm -f conftest.er1
6531   cat conftest.err >&5
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -z "$ac_c_werror_flag"
6535                          || test ! -s conftest.err'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; } &&
6541          { ac_try='test -s conftest.$ac_objext'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; }; then
6547   ac_cv_type_off_t=yes
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_type_off_t=no
6553 fi
6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6557 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6558 if test $ac_cv_type_off_t = yes; then
6559   :
6560 else
6561
6562 cat >>confdefs.h <<_ACEOF
6563 #define off_t long
6564 _ACEOF
6565
6566 fi
6567
6568 echo "$as_me:$LINENO: checking for pid_t" >&5
6569 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6570 if test "${ac_cv_type_pid_t+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 $ac_includes_default
6580 int
6581 main ()
6582 {
6583 if ((pid_t *) 0)
6584   return 0;
6585 if (sizeof (pid_t))
6586   return 0;
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_type_pid_t=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cv_type_pid_t=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 fi
6622 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6623 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6624 if test $ac_cv_type_pid_t = yes; then
6625   :
6626 else
6627
6628 cat >>confdefs.h <<_ACEOF
6629 #define pid_t int
6630 _ACEOF
6631
6632 fi
6633
6634 echo "$as_me:$LINENO: checking for size_t" >&5
6635 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6636 if test "${ac_cv_type_size_t+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 $ac_includes_default
6646 int
6647 main ()
6648 {
6649 if ((size_t *) 0)
6650   return 0;
6651 if (sizeof (size_t))
6652   return 0;
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6659   (eval $ac_compile) 2>conftest.er1
6660   ac_status=$?
6661   grep -v '^ *+' conftest.er1 >conftest.err
6662   rm -f conftest.er1
6663   cat conftest.err >&5
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          { ac_try='test -z "$ac_c_werror_flag"
6667                          || test ! -s conftest.err'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; } &&
6673          { ac_try='test -s conftest.$ac_objext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_type_size_t=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ac_cv_type_size_t=no
6685 fi
6686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6689 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6690 if test $ac_cv_type_size_t = yes; then
6691   :
6692 else
6693
6694 cat >>confdefs.h <<_ACEOF
6695 #define size_t unsigned
6696 _ACEOF
6697
6698 fi
6699
6700 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6701 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6702 if test "${ac_cv_header_time+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h.  */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h.  */
6711 #include <sys/types.h>
6712 #include <sys/time.h>
6713 #include <time.h>
6714
6715 int
6716 main ()
6717 {
6718 if ((struct tm *) 0)
6719 return 0;
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726   (eval $ac_compile) 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -z "$ac_c_werror_flag"
6734                          || test ! -s conftest.err'
6735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736   (eval $ac_try) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; } &&
6740          { ac_try='test -s conftest.$ac_objext'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; }; then
6746   ac_cv_header_time=yes
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751 ac_cv_header_time=no
6752 fi
6753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6754 fi
6755 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6756 echo "${ECHO_T}$ac_cv_header_time" >&6
6757 if test $ac_cv_header_time = yes; then
6758
6759 cat >>confdefs.h <<\_ACEOF
6760 #define TIME_WITH_SYS_TIME 1
6761 _ACEOF
6762
6763 fi
6764
6765 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6766 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6767 if test "${ac_cv_struct_tm+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776 #include <sys/types.h>
6777 #include <time.h>
6778
6779 int
6780 main ()
6781 {
6782 struct tm *tp; tp->tm_sec;
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789   (eval $ac_compile) 2>conftest.er1
6790   ac_status=$?
6791   grep -v '^ *+' conftest.er1 >conftest.err
6792   rm -f conftest.er1
6793   cat conftest.err >&5
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); } &&
6796          { ac_try='test -z "$ac_c_werror_flag"
6797                          || test ! -s conftest.err'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest.$ac_objext'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_cv_struct_tm=time.h
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_cv_struct_tm=sys/time.h
6815 fi
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6817 fi
6818 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6819 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6820 if test $ac_cv_struct_tm = sys/time.h; then
6821
6822 cat >>confdefs.h <<\_ACEOF
6823 #define TM_IN_SYS_TIME 1
6824 _ACEOF
6825
6826 fi
6827
6828
6829 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6830 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6831 if test "${ac_cv_type_getgroups+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   if test "$cross_compiling" = yes; then
6835   ac_cv_type_getgroups=cross
6836 else
6837   cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 /* Thanks to Mike Rendell for this test.  */
6844 #include <sys/types.h>
6845 #define NGID 256
6846 #undef MAX
6847 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6848
6849 int
6850 main ()
6851 {
6852   gid_t gidset[NGID];
6853   int i, n;
6854   union { gid_t gval; long lval; }  val;
6855
6856   val.lval = -1;
6857   for (i = 0; i < NGID; i++)
6858     gidset[i] = val.gval;
6859   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6860                  gidset);
6861   /* Exit non-zero if getgroups seems to require an array of ints.  This
6862      happens when gid_t is short but getgroups modifies an array of ints.  */
6863   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6864 }
6865 _ACEOF
6866 rm -f conftest$ac_exeext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6868   (eval $ac_link) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   ac_cv_type_getgroups=gid_t
6878 else
6879   echo "$as_me: program exited with status $ac_status" >&5
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 ( exit $ac_status )
6884 ac_cv_type_getgroups=int
6885 fi
6886 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 if test $ac_cv_type_getgroups = cross; then
6889         cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895 #include <unistd.h>
6896
6897 _ACEOF
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6900   ac_cv_type_getgroups=gid_t
6901 else
6902   ac_cv_type_getgroups=int
6903 fi
6904 rm -f conftest*
6905
6906 fi
6907 fi
6908 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6909 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define GETGROUPS_T $ac_cv_type_getgroups
6913 _ACEOF
6914
6915
6916 if test $ac_cv_c_compiler_gnu = yes; then
6917     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6918 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6919 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922     ac_pattern="Autoconf.*'x'"
6923   cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929 #include <sgtty.h>
6930 Autoconf TIOCGETP
6931 _ACEOF
6932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6934   ac_cv_prog_gcc_traditional=yes
6935 else
6936   ac_cv_prog_gcc_traditional=no
6937 fi
6938 rm -f conftest*
6939
6940
6941   if test $ac_cv_prog_gcc_traditional = no; then
6942     cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948 #include <termio.h>
6949 Autoconf TCGETA
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6953   ac_cv_prog_gcc_traditional=yes
6954 fi
6955 rm -f conftest*
6956
6957   fi
6958 fi
6959 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6960 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6961   if test $ac_cv_prog_gcc_traditional = yes; then
6962     CC="$CC -traditional"
6963   fi
6964 fi
6965
6966 echo "$as_me:$LINENO: checking for working memcmp" >&5
6967 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6968 if test "${ac_cv_func_memcmp_working+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   if test "$cross_compiling" = yes; then
6972   ac_cv_func_memcmp_working=no
6973 else
6974   cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 $ac_includes_default
6981 int
6982 main ()
6983 {
6984
6985   /* Some versions of memcmp are not 8-bit clean.  */
6986   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6987   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6988     exit (1);
6989
6990   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6991      or more and with at least one buffer not starting on a 4-byte boundary.
6992      William Lewis provided this test program.   */
6993   {
6994     char foo[21];
6995     char bar[21];
6996     int i;
6997     for (i = 0; i < 4; i++)
6998       {
6999         char *a = foo + i;
7000         char *b = bar + i;
7001         strcpy (a, "--------01111111");
7002         strcpy (b, "--------10000000");
7003         if (memcmp (a, b, 16) >= 0)
7004           exit (1);
7005       }
7006     exit (0);
7007   }
7008
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015   (eval $ac_link) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_func_memcmp_working=yes
7025 else
7026   echo "$as_me: program exited with status $ac_status" >&5
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 ( exit $ac_status )
7031 ac_cv_func_memcmp_working=no
7032 fi
7033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 fi
7036 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7037 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
7038 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
7039     "memcmp.$ac_objext"   | \
7040   *" memcmp.$ac_objext"   | \
7041     "memcmp.$ac_objext "* | \
7042   *" memcmp.$ac_objext "* ) ;;
7043   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
7044 esac
7045
7046
7047
7048 for ac_func in vprintf
7049 do
7050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_var+set}\" = set"; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7064 #define $ac_func innocuous_$ac_func
7065
7066 /* System header to define __stub macros and hopefully few prototypes,
7067     which can conflict with char $ac_func (); below.
7068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069     <limits.h> exists even on freestanding compilers.  */
7070
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076
7077 #undef $ac_func
7078
7079 /* Override any gcc2 internal prototype to avoid an error.  */
7080 #ifdef __cplusplus
7081 extern "C"
7082 {
7083 #endif
7084 /* We use char because int might match the return type of a gcc2
7085    builtin and then its argument prototype would still apply.  */
7086 char $ac_func ();
7087 /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS.  Some functions are actually named
7089     something starting with __ and the normal name is an alias.  */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 choke me
7092 #else
7093 char (*f) () = $ac_func;
7094 #endif
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098
7099 int
7100 main ()
7101 {
7102 return f != $ac_func;
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -z "$ac_c_werror_flag"
7117                          || test ! -s conftest.err'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   eval "$as_ac_var=yes"
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 eval "$as_ac_var=no"
7135 fi
7136 rm -f conftest.err conftest.$ac_objext \
7137       conftest$ac_exeext conftest.$ac_ext
7138 fi
7139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7141 if test `eval echo '${'$as_ac_var'}'` = yes; then
7142   cat >>confdefs.h <<_ACEOF
7143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7144 _ACEOF
7145
7146 echo "$as_me:$LINENO: checking for _doprnt" >&5
7147 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7148 if test "${ac_cv_func__doprnt+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7159 #define _doprnt innocuous__doprnt
7160
7161 /* System header to define __stub macros and hopefully few prototypes,
7162     which can conflict with char _doprnt (); below.
7163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7164     <limits.h> exists even on freestanding compilers.  */
7165
7166 #ifdef __STDC__
7167 # include <limits.h>
7168 #else
7169 # include <assert.h>
7170 #endif
7171
7172 #undef _doprnt
7173
7174 /* Override any gcc2 internal prototype to avoid an error.  */
7175 #ifdef __cplusplus
7176 extern "C"
7177 {
7178 #endif
7179 /* We use char because int might match the return type of a gcc2
7180    builtin and then its argument prototype would still apply.  */
7181 char _doprnt ();
7182 /* The GNU C library defines this for functions which it implements
7183     to always fail with ENOSYS.  Some functions are actually named
7184     something starting with __ and the normal name is an alias.  */
7185 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7186 choke me
7187 #else
7188 char (*f) () = _doprnt;
7189 #endif
7190 #ifdef __cplusplus
7191 }
7192 #endif
7193
7194 int
7195 main ()
7196 {
7197 return f != _doprnt;
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204   (eval $ac_link) 2>conftest.er1
7205   ac_status=$?
7206   grep -v '^ *+' conftest.er1 >conftest.err
7207   rm -f conftest.er1
7208   cat conftest.err >&5
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); } &&
7211          { ac_try='test -z "$ac_c_werror_flag"
7212                          || test ! -s conftest.err'
7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); }; } &&
7218          { ac_try='test -s conftest$ac_exeext'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; }; then
7224   ac_cv_func__doprnt=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 ac_cv_func__doprnt=no
7230 fi
7231 rm -f conftest.err conftest.$ac_objext \
7232       conftest$ac_exeext conftest.$ac_ext
7233 fi
7234 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7235 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7236 if test $ac_cv_func__doprnt = yes; then
7237
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_DOPRNT 1
7240 _ACEOF
7241
7242 fi
7243
7244 fi
7245 done
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
7260 do
7261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7262 echo "$as_me:$LINENO: checking for $ac_func" >&5
7263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7264 if eval "test \"\${$as_ac_var+set}\" = set"; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7275 #define $ac_func innocuous_$ac_func
7276
7277 /* System header to define __stub macros and hopefully few prototypes,
7278     which can conflict with char $ac_func (); below.
7279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7280     <limits.h> exists even on freestanding compilers.  */
7281
7282 #ifdef __STDC__
7283 # include <limits.h>
7284 #else
7285 # include <assert.h>
7286 #endif
7287
7288 #undef $ac_func
7289
7290 /* Override any gcc2 internal prototype to avoid an error.  */
7291 #ifdef __cplusplus
7292 extern "C"
7293 {
7294 #endif
7295 /* We use char because int might match the return type of a gcc2
7296    builtin and then its argument prototype would still apply.  */
7297 char $ac_func ();
7298 /* The GNU C library defines this for functions which it implements
7299     to always fail with ENOSYS.  Some functions are actually named
7300     something starting with __ and the normal name is an alias.  */
7301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7302 choke me
7303 #else
7304 char (*f) () = $ac_func;
7305 #endif
7306 #ifdef __cplusplus
7307 }
7308 #endif
7309
7310 int
7311 main ()
7312 {
7313 return f != $ac_func;
7314   ;
7315   return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320   (eval $ac_link) 2>conftest.er1
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
7324   cat conftest.err >&5
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -z "$ac_c_werror_flag"
7328                          || test ! -s conftest.err'
7329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330   (eval $ac_try) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; } &&
7334          { ac_try='test -s conftest$ac_exeext'
7335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336   (eval $ac_try) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; }; then
7340   eval "$as_ac_var=yes"
7341 else
7342   echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345 eval "$as_ac_var=no"
7346 fi
7347 rm -f conftest.err conftest.$ac_objext \
7348       conftest$ac_exeext conftest.$ac_ext
7349 fi
7350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7352 if test `eval echo '${'$as_ac_var'}'` = yes; then
7353   cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7355 _ACEOF
7356
7357 fi
7358 done
7359
7360
7361
7362
7363
7364
7365
7366
7367 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getgrouplist
7368 do
7369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7370 echo "$as_me:$LINENO: checking for $ac_func" >&5
7371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_var+set}\" = set"; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h.  */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h.  */
7381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7383 #define $ac_func innocuous_$ac_func
7384
7385 /* System header to define __stub macros and hopefully few prototypes,
7386     which can conflict with char $ac_func (); below.
7387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7388     <limits.h> exists even on freestanding compilers.  */
7389
7390 #ifdef __STDC__
7391 # include <limits.h>
7392 #else
7393 # include <assert.h>
7394 #endif
7395
7396 #undef $ac_func
7397
7398 /* Override any gcc2 internal prototype to avoid an error.  */
7399 #ifdef __cplusplus
7400 extern "C"
7401 {
7402 #endif
7403 /* We use char because int might match the return type of a gcc2
7404    builtin and then its argument prototype would still apply.  */
7405 char $ac_func ();
7406 /* The GNU C library defines this for functions which it implements
7407     to always fail with ENOSYS.  Some functions are actually named
7408     something starting with __ and the normal name is an alias.  */
7409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410 choke me
7411 #else
7412 char (*f) () = $ac_func;
7413 #endif
7414 #ifdef __cplusplus
7415 }
7416 #endif
7417
7418 int
7419 main ()
7420 {
7421 return f != $ac_func;
7422   ;
7423   return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428   (eval $ac_link) 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -z "$ac_c_werror_flag"
7436                          || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest$ac_exeext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   eval "$as_ac_var=yes"
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 eval "$as_ac_var=no"
7454 fi
7455 rm -f conftest.err conftest.$ac_objext \
7456       conftest$ac_exeext conftest.$ac_ext
7457 fi
7458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7460 if test `eval echo '${'$as_ac_var'}'` = yes; then
7461   cat >>confdefs.h <<_ACEOF
7462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7463 _ACEOF
7464
7465 fi
7466 done
7467
7468
7469 # Extract the first word of "sgml2txt", so it can be a program name with args.
7470 set dummy sgml2txt; ac_word=$2
7471 echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7473 if test "${ac_cv_prog_HAVE_SGML2TXT+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   if test -n "$HAVE_SGML2TXT"; then
7477   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484   for ac_exec_ext in '' $ac_executable_extensions; do
7485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486     ac_cv_prog_HAVE_SGML2TXT="yes"
7487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491 done
7492
7493   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
7494 fi
7495 fi
7496 HAVE_SGML2TXT=$ac_cv_prog_HAVE_SGML2TXT
7497 if test -n "$HAVE_SGML2TXT"; then
7498   echo "$as_me:$LINENO: result: $HAVE_SGML2TXT" >&5
7499 echo "${ECHO_T}$HAVE_SGML2TXT" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505 # Extract the first word of "sgml2html", so it can be a program name with args.
7506 set dummy sgml2html; ac_word=$2
7507 echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509 if test "${ac_cv_prog_HAVE_SGML2HTML+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$HAVE_SGML2HTML"; then
7513   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522     ac_cv_prog_HAVE_SGML2HTML="yes"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528
7529   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
7530 fi
7531 fi
7532 HAVE_SGML2HTML=$ac_cv_prog_HAVE_SGML2HTML
7533 if test -n "$HAVE_SGML2HTML"; then
7534   echo "$as_me:$LINENO: result: $HAVE_SGML2HTML" >&5
7535 echo "${ECHO_T}$HAVE_SGML2HTML" >&6
7536 else
7537   echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 fi
7540
7541 # Extract the first word of "sgml2latex", so it can be a program name with args.
7542 set dummy sgml2latex; ac_word=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_prog_HAVE_SGML2LATEX+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   if test -n "$HAVE_SGML2LATEX"; then
7549   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_HAVE_SGML2LATEX="yes"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564
7565   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
7566 fi
7567 fi
7568 HAVE_SGML2LATEX=$ac_cv_prog_HAVE_SGML2LATEX
7569 if test -n "$HAVE_SGML2LATEX"; then
7570   echo "$as_me:$LINENO: result: $HAVE_SGML2LATEX" >&5
7571 echo "${ECHO_T}$HAVE_SGML2LATEX" >&6
7572 else
7573   echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7575 fi
7576
7577 if test $HAVE_SGML2LATEX = "yes" ; then
7578   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
7579     PSER="sgml2latex -o ps"
7580   else
7581     PSER="sgml2latex -p"
7582   fi
7583   # Extract the first word of "ps2pdf", so it can be a program name with args.
7584 set dummy ps2pdf; ac_word=$2
7585 echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587 if test "${ac_cv_prog_HAVE_PS2PDF+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   if test -n "$HAVE_PS2PDF"; then
7591   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600     ac_cv_prog_HAVE_PS2PDF="yes"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606
7607   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
7608 fi
7609 fi
7610 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
7611 if test -n "$HAVE_PS2PDF"; then
7612   echo "$as_me:$LINENO: result: $HAVE_PS2PDF" >&5
7613 echo "${ECHO_T}$HAVE_PS2PDF" >&6
7614 else
7615   echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6
7617 fi
7618
7619 else
7620   # Extract the first word of "sgml2ps", so it can be a program name with args.
7621 set dummy sgml2ps; ac_word=$2
7622 echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624 if test "${ac_cv_prog_HAVE_SGML2PS+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   if test -n "$HAVE_SGML2PS"; then
7628   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635   for ac_exec_ext in '' $ac_executable_extensions; do
7636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637     ac_cv_prog_HAVE_SGML2PS="yes"
7638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642 done
7643
7644   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
7645 fi
7646 fi
7647 HAVE_SGML2PS=$ac_cv_prog_HAVE_SGML2PS
7648 if test -n "$HAVE_SGML2PS"; then
7649   echo "$as_me:$LINENO: result: $HAVE_SGML2PS" >&5
7650 echo "${ECHO_T}$HAVE_SGML2PS" >&6
7651 else
7652   echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654 fi
7655
7656   if test $HAVE_SGML2PS = yes ; then
7657     PSER="sgml2ps"
7658   fi
7659 fi
7660
7661
7662
7663           ac_config_files="$ac_config_files Make.Rules"
7664 cat >confcache <<\_ACEOF
7665 # This file is a shell script that caches the results of configure
7666 # tests run on this system so they can be shared between configure
7667 # scripts and configure runs, see configure's option --config-cache.
7668 # It is not useful on other systems.  If it contains results you don't
7669 # want to keep, you may remove or edit it.
7670 #
7671 # config.status only pays attention to the cache file if you give it
7672 # the --recheck option to rerun configure.
7673 #
7674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7676 # following values.
7677
7678 _ACEOF
7679
7680 # The following way of writing the cache mishandles newlines in values,
7681 # but we know of no workaround that is simple, portable, and efficient.
7682 # So, don't put newlines in cache variables' values.
7683 # Ultrix sh set writes to stderr and can't be redirected directly,
7684 # and sets the high bit in the cache file unless we assign to the vars.
7685 {
7686   (set) 2>&1 |
7687     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7688     *ac_space=\ *)
7689       # `set' does not quote correctly, so add quotes (double-quote
7690       # substitution turns \\\\ into \\, and sed turns \\ into \).
7691       sed -n \
7692         "s/'/'\\\\''/g;
7693           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7694       ;;
7695     *)
7696       # `set' quotes correctly as required by POSIX, so do not add quotes.
7697       sed -n \
7698         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7699       ;;
7700     esac;
7701 } |
7702   sed '
7703      t clear
7704      : clear
7705      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7706      t end
7707      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7708      : end' >>confcache
7709 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7710   if test -w $cache_file; then
7711     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7712     cat confcache >$cache_file
7713   else
7714     echo "not updating unwritable cache $cache_file"
7715   fi
7716 fi
7717 rm -f confcache
7718
7719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7720 # Let make expand exec_prefix.
7721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7722
7723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7725 # trailing colons and then remove the whole line if VPATH becomes empty
7726 # (actually we leave an empty line to preserve line numbers).
7727 if test "x$srcdir" = x.; then
7728   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7729 s/:*\$(srcdir):*/:/;
7730 s/:*\${srcdir}:*/:/;
7731 s/:*@srcdir@:*/:/;
7732 s/^\([^=]*=[     ]*\):*/\1/;
7733 s/:*$//;
7734 s/^[^=]*=[       ]*$//;
7735 }'
7736 fi
7737
7738 DEFS=-DHAVE_CONFIG_H
7739
7740 ac_libobjs=
7741 ac_ltlibobjs=
7742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7743   # 1. Remove the extension, and $U if already installed.
7744   ac_i=`echo "$ac_i" |
7745          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7746   # 2. Add them.
7747   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7748   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7749 done
7750 LIBOBJS=$ac_libobjs
7751
7752 LTLIBOBJS=$ac_ltlibobjs
7753
7754
7755
7756 : ${CONFIG_STATUS=./config.status}
7757 ac_clean_files_save=$ac_clean_files
7758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7759 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7760 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7761 cat >$CONFIG_STATUS <<_ACEOF
7762 #! $SHELL
7763 # Generated by $as_me.
7764 # Run this file to recreate the current configuration.
7765 # Compiler output produced by configure, useful for debugging
7766 # configure, is in config.log if it exists.
7767
7768 debug=false
7769 ac_cs_recheck=false
7770 ac_cs_silent=false
7771 SHELL=\${CONFIG_SHELL-$SHELL}
7772 _ACEOF
7773
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 ## --------------------- ##
7776 ## M4sh Initialization.  ##
7777 ## --------------------- ##
7778
7779 # Be Bourne compatible
7780 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7781   emulate sh
7782   NULLCMD=:
7783   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7784   # is contrary to our usage.  Disable this feature.
7785   alias -g '${1+"$@"}'='"$@"'
7786 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7787   set -o posix
7788 fi
7789 DUALCASE=1; export DUALCASE # for MKS sh
7790
7791 # Support unset when possible.
7792 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7793   as_unset=unset
7794 else
7795   as_unset=false
7796 fi
7797
7798
7799 # Work around bugs in pre-3.0 UWIN ksh.
7800 $as_unset ENV MAIL MAILPATH
7801 PS1='$ '
7802 PS2='> '
7803 PS4='+ '
7804
7805 # NLS nuisances.
7806 for as_var in \
7807   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7808   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7809   LC_TELEPHONE LC_TIME
7810 do
7811   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7812     eval $as_var=C; export $as_var
7813   else
7814     $as_unset $as_var
7815   fi
7816 done
7817
7818 # Required to use basename.
7819 if expr a : '\(a\)' >/dev/null 2>&1; then
7820   as_expr=expr
7821 else
7822   as_expr=false
7823 fi
7824
7825 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7826   as_basename=basename
7827 else
7828   as_basename=false
7829 fi
7830
7831
7832 # Name of the executable.
7833 as_me=`$as_basename "$0" ||
7834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7835          X"$0" : 'X\(//\)$' \| \
7836          X"$0" : 'X\(/\)$' \| \
7837          .     : '\(.\)' 2>/dev/null ||
7838 echo X/"$0" |
7839     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7840           /^X\/\(\/\/\)$/{ s//\1/; q; }
7841           /^X\/\(\/\).*/{ s//\1/; q; }
7842           s/.*/./; q'`
7843
7844
7845 # PATH needs CR, and LINENO needs CR and PATH.
7846 # Avoid depending upon Character Ranges.
7847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7850 as_cr_digits='0123456789'
7851 as_cr_alnum=$as_cr_Letters$as_cr_digits
7852
7853 # The user is always right.
7854 if test "${PATH_SEPARATOR+set}" != set; then
7855   echo "#! /bin/sh" >conf$$.sh
7856   echo  "exit 0"   >>conf$$.sh
7857   chmod +x conf$$.sh
7858   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7859     PATH_SEPARATOR=';'
7860   else
7861     PATH_SEPARATOR=:
7862   fi
7863   rm -f conf$$.sh
7864 fi
7865
7866
7867   as_lineno_1=$LINENO
7868   as_lineno_2=$LINENO
7869   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7870   test "x$as_lineno_1" != "x$as_lineno_2" &&
7871   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7872   # Find who we are.  Look in the path if we contain no path at all
7873   # relative or not.
7874   case $0 in
7875     *[\\/]* ) as_myself=$0 ;;
7876     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7882 done
7883
7884        ;;
7885   esac
7886   # We did not find ourselves, most probably we were run as `sh COMMAND'
7887   # in which case we are not to be found in the path.
7888   if test "x$as_myself" = x; then
7889     as_myself=$0
7890   fi
7891   if test ! -f "$as_myself"; then
7892     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7893 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7894    { (exit 1); exit 1; }; }
7895   fi
7896   case $CONFIG_SHELL in
7897   '')
7898     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for as_base in sh bash ksh sh5; do
7904          case $as_dir in
7905          /*)
7906            if ("$as_dir/$as_base" -c '
7907   as_lineno_1=$LINENO
7908   as_lineno_2=$LINENO
7909   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7910   test "x$as_lineno_1" != "x$as_lineno_2" &&
7911   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7912              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7913              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7914              CONFIG_SHELL=$as_dir/$as_base
7915              export CONFIG_SHELL
7916              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7917            fi;;
7918          esac
7919        done
7920 done
7921 ;;
7922   esac
7923
7924   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7925   # uniformly replaced by the line number.  The first 'sed' inserts a
7926   # line-number line before each line; the second 'sed' does the real
7927   # work.  The second script uses 'N' to pair each line-number line
7928   # with the numbered line, and appends trailing '-' during
7929   # substitution so that $LINENO is not a special case at line end.
7930   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7931   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7932   sed '=' <$as_myself |
7933     sed '
7934       N
7935       s,$,-,
7936       : loop
7937       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7938       t loop
7939       s,-$,,
7940       s,^['$as_cr_digits']*\n,,
7941     ' >$as_me.lineno &&
7942   chmod +x $as_me.lineno ||
7943     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7944 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7945    { (exit 1); exit 1; }; }
7946
7947   # Don't try to exec as it changes $[0], causing all sort of problems
7948   # (the dirname of $[0] is not the place where we might find the
7949   # original and so on.  Autoconf is especially sensible to this).
7950   . ./$as_me.lineno
7951   # Exit status is that of the last command.
7952   exit
7953 }
7954
7955
7956 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7957   *c*,-n*) ECHO_N= ECHO_C='
7958 ' ECHO_T='      ' ;;
7959   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7960   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7961 esac
7962
7963 if expr a : '\(a\)' >/dev/null 2>&1; then
7964   as_expr=expr
7965 else
7966   as_expr=false
7967 fi
7968
7969 rm -f conf$$ conf$$.exe conf$$.file
7970 echo >conf$$.file
7971 if ln -s conf$$.file conf$$ 2>/dev/null; then
7972   # We could just check for DJGPP; but this test a) works b) is more generic
7973   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7974   if test -f conf$$.exe; then
7975     # Don't use ln at all; we don't have any links
7976     as_ln_s='cp -p'
7977   else
7978     as_ln_s='ln -s'
7979   fi
7980 elif ln conf$$.file conf$$ 2>/dev/null; then
7981   as_ln_s=ln
7982 else
7983   as_ln_s='cp -p'
7984 fi
7985 rm -f conf$$ conf$$.exe conf$$.file
7986
7987 if mkdir -p . 2>/dev/null; then
7988   as_mkdir_p=:
7989 else
7990   test -d ./-p && rmdir ./-p
7991   as_mkdir_p=false
7992 fi
7993
7994 as_executable_p="test -f"
7995
7996 # Sed expression to map a string onto a valid CPP name.
7997 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7998
7999 # Sed expression to map a string onto a valid variable name.
8000 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8001
8002
8003 # IFS
8004 # We need space, tab and new line, in precisely that order.
8005 as_nl='
8006 '
8007 IFS="   $as_nl"
8008
8009 # CDPATH.
8010 $as_unset CDPATH
8011
8012 exec 6>&1
8013
8014 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8015 # report actual input values of CONFIG_FILES etc. instead of their
8016 # values after options handling.  Logging --version etc. is OK.
8017 exec 5>>config.log
8018 {
8019   echo
8020   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8021 ## Running $as_me. ##
8022 _ASBOX
8023 } >&5
8024 cat >&5 <<_CSEOF
8025
8026 This file was extended by $as_me, which was
8027 generated by GNU Autoconf 2.59.  Invocation command line was
8028
8029   CONFIG_FILES    = $CONFIG_FILES
8030   CONFIG_HEADERS  = $CONFIG_HEADERS
8031   CONFIG_LINKS    = $CONFIG_LINKS
8032   CONFIG_COMMANDS = $CONFIG_COMMANDS
8033   $ $0 $@
8034
8035 _CSEOF
8036 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8037 echo >&5
8038 _ACEOF
8039
8040 # Files that config.status was made for.
8041 if test -n "$ac_config_files"; then
8042   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8043 fi
8044
8045 if test -n "$ac_config_headers"; then
8046   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8047 fi
8048
8049 if test -n "$ac_config_links"; then
8050   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8051 fi
8052
8053 if test -n "$ac_config_commands"; then
8054   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8055 fi
8056
8057 cat >>$CONFIG_STATUS <<\_ACEOF
8058
8059 ac_cs_usage="\
8060 \`$as_me' instantiates files from templates according to the
8061 current configuration.
8062
8063 Usage: $0 [OPTIONS] [FILE]...
8064
8065   -h, --help       print this help, then exit
8066   -V, --version    print version number, then exit
8067   -q, --quiet      do not print progress messages
8068   -d, --debug      don't remove temporary files
8069       --recheck    update $as_me by reconfiguring in the same conditions
8070   --file=FILE[:TEMPLATE]
8071                    instantiate the configuration file FILE
8072   --header=FILE[:TEMPLATE]
8073                    instantiate the configuration header FILE
8074
8075 Configuration files:
8076 $config_files
8077
8078 Configuration headers:
8079 $config_headers
8080
8081 Report bugs to <bug-autoconf@gnu.org>."
8082 _ACEOF
8083
8084 cat >>$CONFIG_STATUS <<_ACEOF
8085 ac_cs_version="\\
8086 config.status
8087 configured by $0, generated by GNU Autoconf 2.59,
8088   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8089
8090 Copyright (C) 2003 Free Software Foundation, Inc.
8091 This config.status script is free software; the Free Software Foundation
8092 gives unlimited permission to copy, distribute and modify it."
8093 srcdir=$srcdir
8094 INSTALL="$INSTALL"
8095 _ACEOF
8096
8097 cat >>$CONFIG_STATUS <<\_ACEOF
8098 # If no file are specified by the user, then we need to provide default
8099 # value.  By we need to know if files were specified by the user.
8100 ac_need_defaults=:
8101 while test $# != 0
8102 do
8103   case $1 in
8104   --*=*)
8105     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8106     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8107     ac_shift=:
8108     ;;
8109   -*)
8110     ac_option=$1
8111     ac_optarg=$2
8112     ac_shift=shift
8113     ;;
8114   *) # This is not an option, so the user has probably given explicit
8115      # arguments.
8116      ac_option=$1
8117      ac_need_defaults=false;;
8118   esac
8119
8120   case $ac_option in
8121   # Handling of the options.
8122 _ACEOF
8123 cat >>$CONFIG_STATUS <<\_ACEOF
8124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8125     ac_cs_recheck=: ;;
8126   --version | --vers* | -V )
8127     echo "$ac_cs_version"; exit 0 ;;
8128   --he | --h)
8129     # Conflict between --help and --header
8130     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8131 Try \`$0 --help' for more information." >&5
8132 echo "$as_me: error: ambiguous option: $1
8133 Try \`$0 --help' for more information." >&2;}
8134    { (exit 1); exit 1; }; };;
8135   --help | --hel | -h )
8136     echo "$ac_cs_usage"; exit 0 ;;
8137   --debug | --d* | -d )
8138     debug=: ;;
8139   --file | --fil | --fi | --f )
8140     $ac_shift
8141     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8142     ac_need_defaults=false;;
8143   --header | --heade | --head | --hea )
8144     $ac_shift
8145     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8146     ac_need_defaults=false;;
8147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8149     ac_cs_silent=: ;;
8150
8151   # This is an error.
8152   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8153 Try \`$0 --help' for more information." >&5
8154 echo "$as_me: error: unrecognized option: $1
8155 Try \`$0 --help' for more information." >&2;}
8156    { (exit 1); exit 1; }; } ;;
8157
8158   *) ac_config_targets="$ac_config_targets $1" ;;
8159
8160   esac
8161   shift
8162 done
8163
8164 ac_configure_extra_args=
8165
8166 if $ac_cs_silent; then
8167   exec 6>/dev/null
8168   ac_configure_extra_args="$ac_configure_extra_args --silent"
8169 fi
8170
8171 _ACEOF
8172 cat >>$CONFIG_STATUS <<_ACEOF
8173 if \$ac_cs_recheck; then
8174   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8175   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8176 fi
8177
8178 _ACEOF
8179
8180
8181
8182
8183
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 for ac_config_target in $ac_config_targets
8186 do
8187   case "$ac_config_target" in
8188   # Handling of arguments.
8189   "Make.Rules" ) CONFIG_FILES="$CONFIG_FILES Make.Rules" ;;
8190   "_pam_aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS _pam_aconf.h" ;;
8191   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8192 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8193    { (exit 1); exit 1; }; };;
8194   esac
8195 done
8196
8197 # If the user did not use the arguments to specify the items to instantiate,
8198 # then the envvar interface is used.  Set only those that are not.
8199 # We use the long form for the default assignment because of an extremely
8200 # bizarre bug on SunOS 4.1.3.
8201 if $ac_need_defaults; then
8202   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8203   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8204 fi
8205
8206 # Have a temporary directory for convenience.  Make it in the build tree
8207 # simply because there is no reason to put it here, and in addition,
8208 # creating and moving files from /tmp can sometimes cause problems.
8209 # Create a temporary directory, and hook for its removal unless debugging.
8210 $debug ||
8211 {
8212   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8213   trap '{ (exit 1); exit 1; }' 1 2 13 15
8214 }
8215
8216 # Create a (secure) tmp directory for tmp files.
8217
8218 {
8219   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8220   test -n "$tmp" && test -d "$tmp"
8221 }  ||
8222 {
8223   tmp=./confstat$$-$RANDOM
8224   (umask 077 && mkdir $tmp)
8225 } ||
8226 {
8227    echo "$me: cannot create a temporary directory in ." >&2
8228    { (exit 1); exit 1; }
8229 }
8230
8231 _ACEOF
8232
8233 cat >>$CONFIG_STATUS <<_ACEOF
8234
8235 #
8236 # CONFIG_FILES section.
8237 #
8238
8239 # No need to generate the scripts if there are no CONFIG_FILES.
8240 # This happens for instance when ./config.status config.h
8241 if test -n "\$CONFIG_FILES"; then
8242   # Protect against being on the right side of a sed subst in config.status.
8243   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8244    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8245 s,@SHELL@,$SHELL,;t t
8246 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8247 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8248 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8249 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8250 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8251 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8252 s,@exec_prefix@,$exec_prefix,;t t
8253 s,@prefix@,$prefix,;t t
8254 s,@program_transform_name@,$program_transform_name,;t t
8255 s,@bindir@,$bindir,;t t
8256 s,@sbindir@,$sbindir,;t t
8257 s,@libexecdir@,$libexecdir,;t t
8258 s,@datadir@,$datadir,;t t
8259 s,@sysconfdir@,$sysconfdir,;t t
8260 s,@sharedstatedir@,$sharedstatedir,;t t
8261 s,@localstatedir@,$localstatedir,;t t
8262 s,@libdir@,$libdir,;t t
8263 s,@includedir@,$includedir,;t t
8264 s,@oldincludedir@,$oldincludedir,;t t
8265 s,@infodir@,$infodir,;t t
8266 s,@mandir@,$mandir,;t t
8267 s,@build_alias@,$build_alias,;t t
8268 s,@host_alias@,$host_alias,;t t
8269 s,@target_alias@,$target_alias,;t t
8270 s,@DEFS@,$DEFS,;t t
8271 s,@ECHO_C@,$ECHO_C,;t t
8272 s,@ECHO_N@,$ECHO_N,;t t
8273 s,@ECHO_T@,$ECHO_T,;t t
8274 s,@LIBS@,$LIBS,;t t
8275 s,@LIBPAM_VERSION_MAJOR@,$LIBPAM_VERSION_MAJOR,;t t
8276 s,@LIBPAM_VERSION_MINOR@,$LIBPAM_VERSION_MINOR,;t t
8277 s,@LOCALSRCDIR@,$LOCALSRCDIR,;t t
8278 s,@LOCALOBJDIR@,$LOCALOBJDIR,;t t
8279 s,@OS@,$OS,;t t
8280 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
8281 s,@MKDIR@,$MKDIR,;t t
8282 s,@SHLIBMODE@,$SHLIBMODE,;t t
8283 s,@MANMODE@,$MANMODE,;t t
8284 s,@USESONAME@,$USESONAME,;t t
8285 s,@SOSWITCH@,$SOSWITCH,;t t
8286 s,@NEEDSONAME@,$NEEDSONAME,;t t
8287 s,@LDCONFIG@,$LDCONFIG,;t t
8288 s,@CC@,$CC,;t t
8289 s,@CFLAGS@,$CFLAGS,;t t
8290 s,@LDFLAGS@,$LDFLAGS,;t t
8291 s,@CPPFLAGS@,$CPPFLAGS,;t t
8292 s,@ac_ct_CC@,$ac_ct_CC,;t t
8293 s,@EXEEXT@,$EXEEXT,;t t
8294 s,@OBJEXT@,$OBJEXT,;t t
8295 s,@YACC@,$YACC,;t t
8296 s,@LEX@,$LEX,;t t
8297 s,@LEXLIB@,$LEXLIB,;t t
8298 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8299 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8300 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8301 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8302 s,@LN_S@,$LN_S,;t t
8303 s,@SET_MAKE@,$SET_MAKE,;t t
8304 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
8305 s,@WITH_MEMORY_DEBUG@,$WITH_MEMORY_DEBUG,;t t
8306 s,@WITH_LIBDEBUG@,$WITH_LIBDEBUG,;t t
8307 s,@FAKEROOT@,$FAKEROOT,;t t
8308 s,@SECUREDIR@,$SECUREDIR,;t t
8309 s,@SCONFIGDIR@,$SCONFIGDIR,;t t
8310 s,@SUPLEMENTED@,$SUPLEMENTED,;t t
8311 s,@INCLUDEDIR@,$INCLUDEDIR,;t t
8312 s,@DOCDIR@,$DOCDIR,;t t
8313 s,@MANDIR@,$MANDIR,;t t
8314 s,@WITH_PAMLOCKING@,$WITH_PAMLOCKING,;t t
8315 s,@PAM_READ_BOTH_CONFS@,$PAM_READ_BOTH_CONFS,;t t
8316 s,@STATIC_LIBPAM@,$STATIC_LIBPAM,;t t
8317 s,@DYNAMIC_LIBPAM@,$DYNAMIC_LIBPAM,;t t
8318 s,@DYNAMIC@,$DYNAMIC,;t t
8319 s,@STATIC@,$STATIC,;t t
8320 s,@WITH_LCKPWDF@,$WITH_LCKPWDF,;t t
8321 s,@CPP@,$CPP,;t t
8322 s,@EGREP@,$EGREP,;t t
8323 s,@PAM_NEEDS_LIBC@,$PAM_NEEDS_LIBC,;t t
8324 s,@HAVE_LCKPWDF@,$HAVE_LCKPWDF,;t t
8325 s,@LIBDL@,$LIBDL,;t t
8326 s,@HAVE_LIBCRACK@,$HAVE_LIBCRACK,;t t
8327 s,@HAVE_LIBCRYPT@,$HAVE_LIBCRYPT,;t t
8328 s,@HAVE_LIBUTIL@,$HAVE_LIBUTIL,;t t
8329 s,@HAVE_LIBNDBM@,$HAVE_LIBNDBM,;t t
8330 s,@HAVE_LIBDB@,$HAVE_LIBDB,;t t
8331 s,@HAVE_LIBFL@,$HAVE_LIBFL,;t t
8332 s,@HAVE_LIBNSL@,$HAVE_LIBNSL,;t t
8333 s,@HAVE_LIBPWDB@,$HAVE_LIBPWDB,;t t
8334 s,@HAVE_LIBFLEX@,$HAVE_LIBFLEX,;t t
8335 s,@HAVE_LIBLEX@,$HAVE_LIBLEX,;t t
8336 s,@HAVE_NDBM_H@,$HAVE_NDBM_H,;t t
8337 s,@CRACKLIB_DICTPATH@,$CRACKLIB_DICTPATH,;t t
8338 s,@DYNTYPE@,$DYNTYPE,;t t
8339 s,@OS_CFLAGS@,$OS_CFLAGS,;t t
8340 s,@WARNINGS@,$WARNINGS,;t t
8341 s,@PIC@,$PIC,;t t
8342 s,@LD@,$LD,;t t
8343 s,@LD_D@,$LD_D,;t t
8344 s,@LD_L@,$LD_L,;t t
8345 s,@RANLIB@,$RANLIB,;t t
8346 s,@STRIP@,$STRIP,;t t
8347 s,@CC_STATIC@,$CC_STATIC,;t t
8348 s,@LIBOBJS@,$LIBOBJS,;t t
8349 s,@HAVE_SGML2TXT@,$HAVE_SGML2TXT,;t t
8350 s,@HAVE_SGML2HTML@,$HAVE_SGML2HTML,;t t
8351 s,@HAVE_SGML2LATEX@,$HAVE_SGML2LATEX,;t t
8352 s,@HAVE_PS2PDF@,$HAVE_PS2PDF,;t t
8353 s,@HAVE_SGML2PS@,$HAVE_SGML2PS,;t t
8354 s,@PSER@,$PSER,;t t
8355 s,@PS2PDF@,$PS2PDF,;t t
8356 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8357 CEOF
8358
8359 _ACEOF
8360
8361   cat >>$CONFIG_STATUS <<\_ACEOF
8362   # Split the substitutions into bite-sized pieces for seds with
8363   # small command number limits, like on Digital OSF/1 and HP-UX.
8364   ac_max_sed_lines=48
8365   ac_sed_frag=1 # Number of current file.
8366   ac_beg=1 # First line for current file.
8367   ac_end=$ac_max_sed_lines # Line after last line for current file.
8368   ac_more_lines=:
8369   ac_sed_cmds=
8370   while $ac_more_lines; do
8371     if test $ac_beg -gt 1; then
8372       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8373     else
8374       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8375     fi
8376     if test ! -s $tmp/subs.frag; then
8377       ac_more_lines=false
8378     else
8379       # The purpose of the label and of the branching condition is to
8380       # speed up the sed processing (if there are no `@' at all, there
8381       # is no need to browse any of the substitutions).
8382       # These are the two extra sed commands mentioned above.
8383       (echo ':t
8384   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8385       if test -z "$ac_sed_cmds"; then
8386         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8387       else
8388         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8389       fi
8390       ac_sed_frag=`expr $ac_sed_frag + 1`
8391       ac_beg=$ac_end
8392       ac_end=`expr $ac_end + $ac_max_sed_lines`
8393     fi
8394   done
8395   if test -z "$ac_sed_cmds"; then
8396     ac_sed_cmds=cat
8397   fi
8398 fi # test -n "$CONFIG_FILES"
8399
8400 _ACEOF
8401 cat >>$CONFIG_STATUS <<\_ACEOF
8402 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8403   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8404   case $ac_file in
8405   - | *:- | *:-:* ) # input from stdin
8406         cat >$tmp/stdin
8407         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8408         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8409   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8410         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8411   * )   ac_file_in=$ac_file.in ;;
8412   esac
8413
8414   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8415   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8417          X"$ac_file" : 'X\(//\)[^/]' \| \
8418          X"$ac_file" : 'X\(//\)$' \| \
8419          X"$ac_file" : 'X\(/\)' \| \
8420          .     : '\(.\)' 2>/dev/null ||
8421 echo X"$ac_file" |
8422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8423           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8424           /^X\(\/\/\)$/{ s//\1/; q; }
8425           /^X\(\/\).*/{ s//\1/; q; }
8426           s/.*/./; q'`
8427   { if $as_mkdir_p; then
8428     mkdir -p "$ac_dir"
8429   else
8430     as_dir="$ac_dir"
8431     as_dirs=
8432     while test ! -d "$as_dir"; do
8433       as_dirs="$as_dir $as_dirs"
8434       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8436          X"$as_dir" : 'X\(//\)[^/]' \| \
8437          X"$as_dir" : 'X\(//\)$' \| \
8438          X"$as_dir" : 'X\(/\)' \| \
8439          .     : '\(.\)' 2>/dev/null ||
8440 echo X"$as_dir" |
8441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8443           /^X\(\/\/\)$/{ s//\1/; q; }
8444           /^X\(\/\).*/{ s//\1/; q; }
8445           s/.*/./; q'`
8446     done
8447     test ! -n "$as_dirs" || mkdir $as_dirs
8448   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8450    { (exit 1); exit 1; }; }; }
8451
8452   ac_builddir=.
8453
8454 if test "$ac_dir" != .; then
8455   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8456   # A "../" for each directory in $ac_dir_suffix.
8457   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8458 else
8459   ac_dir_suffix= ac_top_builddir=
8460 fi
8461
8462 case $srcdir in
8463   .)  # No --srcdir option.  We are building in place.
8464     ac_srcdir=.
8465     if test -z "$ac_top_builddir"; then
8466        ac_top_srcdir=.
8467     else
8468        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8469     fi ;;
8470   [\\/]* | ?:[\\/]* )  # Absolute path.
8471     ac_srcdir=$srcdir$ac_dir_suffix;
8472     ac_top_srcdir=$srcdir ;;
8473   *) # Relative path.
8474     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8475     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8476 esac
8477
8478 # Do not use `cd foo && pwd` to compute absolute paths, because
8479 # the directories may not exist.
8480 case `pwd` in
8481 .) ac_abs_builddir="$ac_dir";;
8482 *)
8483   case "$ac_dir" in
8484   .) ac_abs_builddir=`pwd`;;
8485   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8486   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8487   esac;;
8488 esac
8489 case $ac_abs_builddir in
8490 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8491 *)
8492   case ${ac_top_builddir}. in
8493   .) ac_abs_top_builddir=$ac_abs_builddir;;
8494   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8495   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8496   esac;;
8497 esac
8498 case $ac_abs_builddir in
8499 .) ac_abs_srcdir=$ac_srcdir;;
8500 *)
8501   case $ac_srcdir in
8502   .) ac_abs_srcdir=$ac_abs_builddir;;
8503   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8504   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8505   esac;;
8506 esac
8507 case $ac_abs_builddir in
8508 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8509 *)
8510   case $ac_top_srcdir in
8511   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8512   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8513   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8514   esac;;
8515 esac
8516
8517
8518   case $INSTALL in
8519   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8520   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8521   esac
8522
8523   if test x"$ac_file" != x-; then
8524     { echo "$as_me:$LINENO: creating $ac_file" >&5
8525 echo "$as_me: creating $ac_file" >&6;}
8526     rm -f "$ac_file"
8527   fi
8528   # Let's still pretend it is `configure' which instantiates (i.e., don't
8529   # use $as_me), people would be surprised to read:
8530   #    /* config.h.  Generated by config.status.  */
8531   if test x"$ac_file" = x-; then
8532     configure_input=
8533   else
8534     configure_input="$ac_file.  "
8535   fi
8536   configure_input=$configure_input"Generated from `echo $ac_file_in |
8537                                      sed 's,.*/,,'` by configure."
8538
8539   # First look for the input files in the build tree, otherwise in the
8540   # src tree.
8541   ac_file_inputs=`IFS=:
8542     for f in $ac_file_in; do
8543       case $f in
8544       -) echo $tmp/stdin ;;
8545       [\\/$]*)
8546          # Absolute (can't be DOS-style, as IFS=:)
8547          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8548 echo "$as_me: error: cannot find input file: $f" >&2;}
8549    { (exit 1); exit 1; }; }
8550          echo "$f";;
8551       *) # Relative
8552          if test -f "$f"; then
8553            # Build tree
8554            echo "$f"
8555          elif test -f "$srcdir/$f"; then
8556            # Source tree
8557            echo "$srcdir/$f"
8558          else
8559            # /dev/null tree
8560            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8561 echo "$as_me: error: cannot find input file: $f" >&2;}
8562    { (exit 1); exit 1; }; }
8563          fi;;
8564       esac
8565     done` || { (exit 1); exit 1; }
8566 _ACEOF
8567 cat >>$CONFIG_STATUS <<_ACEOF
8568   sed "$ac_vpsub
8569 $extrasub
8570 _ACEOF
8571 cat >>$CONFIG_STATUS <<\_ACEOF
8572 :t
8573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8574 s,@configure_input@,$configure_input,;t t
8575 s,@srcdir@,$ac_srcdir,;t t
8576 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8577 s,@top_srcdir@,$ac_top_srcdir,;t t
8578 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8579 s,@builddir@,$ac_builddir,;t t
8580 s,@abs_builddir@,$ac_abs_builddir,;t t
8581 s,@top_builddir@,$ac_top_builddir,;t t
8582 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8583 s,@INSTALL@,$ac_INSTALL,;t t
8584 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8585   rm -f $tmp/stdin
8586   if test x"$ac_file" != x-; then
8587     mv $tmp/out $ac_file
8588   else
8589     cat $tmp/out
8590     rm -f $tmp/out
8591   fi
8592
8593 done
8594 _ACEOF
8595 cat >>$CONFIG_STATUS <<\_ACEOF
8596
8597 #
8598 # CONFIG_HEADER section.
8599 #
8600
8601 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8602 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8603 #
8604 # ac_d sets the value in "#define NAME VALUE" lines.
8605 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8606 ac_dB='[         ].*$,\1#\2'
8607 ac_dC=' '
8608 ac_dD=',;t'
8609 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8610 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8611 ac_uB='$,\1#\2define\3'
8612 ac_uC=' '
8613 ac_uD=',;t'
8614
8615 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8616   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8617   case $ac_file in
8618   - | *:- | *:-:* ) # input from stdin
8619         cat >$tmp/stdin
8620         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8622   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8623         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8624   * )   ac_file_in=$ac_file.in ;;
8625   esac
8626
8627   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8628 echo "$as_me: creating $ac_file" >&6;}
8629
8630   # First look for the input files in the build tree, otherwise in the
8631   # src tree.
8632   ac_file_inputs=`IFS=:
8633     for f in $ac_file_in; do
8634       case $f in
8635       -) echo $tmp/stdin ;;
8636       [\\/$]*)
8637          # Absolute (can't be DOS-style, as IFS=:)
8638          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8639 echo "$as_me: error: cannot find input file: $f" >&2;}
8640    { (exit 1); exit 1; }; }
8641          # Do quote $f, to prevent DOS paths from being IFS'd.
8642          echo "$f";;
8643       *) # Relative
8644          if test -f "$f"; then
8645            # Build tree
8646            echo "$f"
8647          elif test -f "$srcdir/$f"; then
8648            # Source tree
8649            echo "$srcdir/$f"
8650          else
8651            # /dev/null tree
8652            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8653 echo "$as_me: error: cannot find input file: $f" >&2;}
8654    { (exit 1); exit 1; }; }
8655          fi;;
8656       esac
8657     done` || { (exit 1); exit 1; }
8658   # Remove the trailing spaces.
8659   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8660
8661 _ACEOF
8662
8663 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8664 # `conftest.undefs', that substitutes the proper values into
8665 # config.h.in to produce config.h.  The first handles `#define'
8666 # templates, and the second `#undef' templates.
8667 # And first: Protect against being on the right side of a sed subst in
8668 # config.status.  Protect against being in an unquoted here document
8669 # in config.status.
8670 rm -f conftest.defines conftest.undefs
8671 # Using a here document instead of a string reduces the quoting nightmare.
8672 # Putting comments in sed scripts is not portable.
8673 #
8674 # `end' is used to avoid that the second main sed command (meant for
8675 # 0-ary CPP macros) applies to n-ary macro definitions.
8676 # See the Autoconf documentation for `clear'.
8677 cat >confdef2sed.sed <<\_ACEOF
8678 s/[\\&,]/\\&/g
8679 s,[\\$`],\\&,g
8680 t clear
8681 : clear
8682 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8683 t end
8684 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8685 : end
8686 _ACEOF
8687 # If some macros were called several times there might be several times
8688 # the same #defines, which is useless.  Nevertheless, we may not want to
8689 # sort them, since we want the *last* AC-DEFINE to be honored.
8690 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8691 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8692 rm -f confdef2sed.sed
8693
8694 # This sed command replaces #undef with comments.  This is necessary, for
8695 # example, in the case of _POSIX_SOURCE, which is predefined and required
8696 # on some systems where configure will not decide to define it.
8697 cat >>conftest.undefs <<\_ACEOF
8698 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8699 _ACEOF
8700
8701 # Break up conftest.defines because some shells have a limit on the size
8702 # of here documents, and old seds have small limits too (100 cmds).
8703 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8704 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8705 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8706 echo '  :' >>$CONFIG_STATUS
8707 rm -f conftest.tail
8708 while grep . conftest.defines >/dev/null
8709 do
8710   # Write a limited-size here document to $tmp/defines.sed.
8711   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8712   # Speed up: don't consider the non `#define' lines.
8713   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8714   # Work around the forget-to-reset-the-flag bug.
8715   echo 't clr' >>$CONFIG_STATUS
8716   echo ': clr' >>$CONFIG_STATUS
8717   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8718   echo 'CEOF
8719   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8720   rm -f $tmp/in
8721   mv $tmp/out $tmp/in
8722 ' >>$CONFIG_STATUS
8723   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8724   rm -f conftest.defines
8725   mv conftest.tail conftest.defines
8726 done
8727 rm -f conftest.defines
8728 echo '  fi # grep' >>$CONFIG_STATUS
8729 echo >>$CONFIG_STATUS
8730
8731 # Break up conftest.undefs because some shells have a limit on the size
8732 # of here documents, and old seds have small limits too (100 cmds).
8733 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8734 rm -f conftest.tail
8735 while grep . conftest.undefs >/dev/null
8736 do
8737   # Write a limited-size here document to $tmp/undefs.sed.
8738   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8739   # Speed up: don't consider the non `#undef'
8740   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8741   # Work around the forget-to-reset-the-flag bug.
8742   echo 't clr' >>$CONFIG_STATUS
8743   echo ': clr' >>$CONFIG_STATUS
8744   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8745   echo 'CEOF
8746   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8747   rm -f $tmp/in
8748   mv $tmp/out $tmp/in
8749 ' >>$CONFIG_STATUS
8750   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8751   rm -f conftest.undefs
8752   mv conftest.tail conftest.undefs
8753 done
8754 rm -f conftest.undefs
8755
8756 cat >>$CONFIG_STATUS <<\_ACEOF
8757   # Let's still pretend it is `configure' which instantiates (i.e., don't
8758   # use $as_me), people would be surprised to read:
8759   #    /* config.h.  Generated by config.status.  */
8760   if test x"$ac_file" = x-; then
8761     echo "/* Generated by configure.  */" >$tmp/config.h
8762   else
8763     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8764   fi
8765   cat $tmp/in >>$tmp/config.h
8766   rm -f $tmp/in
8767   if test x"$ac_file" != x-; then
8768     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8769       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8770 echo "$as_me: $ac_file is unchanged" >&6;}
8771     else
8772       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8774          X"$ac_file" : 'X\(//\)[^/]' \| \
8775          X"$ac_file" : 'X\(//\)$' \| \
8776          X"$ac_file" : 'X\(/\)' \| \
8777          .     : '\(.\)' 2>/dev/null ||
8778 echo X"$ac_file" |
8779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8781           /^X\(\/\/\)$/{ s//\1/; q; }
8782           /^X\(\/\).*/{ s//\1/; q; }
8783           s/.*/./; q'`
8784       { if $as_mkdir_p; then
8785     mkdir -p "$ac_dir"
8786   else
8787     as_dir="$ac_dir"
8788     as_dirs=
8789     while test ! -d "$as_dir"; do
8790       as_dirs="$as_dir $as_dirs"
8791       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8793          X"$as_dir" : 'X\(//\)[^/]' \| \
8794          X"$as_dir" : 'X\(//\)$' \| \
8795          X"$as_dir" : 'X\(/\)' \| \
8796          .     : '\(.\)' 2>/dev/null ||
8797 echo X"$as_dir" |
8798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8799           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8800           /^X\(\/\/\)$/{ s//\1/; q; }
8801           /^X\(\/\).*/{ s//\1/; q; }
8802           s/.*/./; q'`
8803     done
8804     test ! -n "$as_dirs" || mkdir $as_dirs
8805   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8806 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8807    { (exit 1); exit 1; }; }; }
8808
8809       rm -f $ac_file
8810       mv $tmp/config.h $ac_file
8811     fi
8812   else
8813     cat $tmp/config.h
8814     rm -f $tmp/config.h
8815   fi
8816 done
8817 _ACEOF
8818
8819 cat >>$CONFIG_STATUS <<\_ACEOF
8820
8821 { (exit 0); exit 0; }
8822 _ACEOF
8823 chmod +x $CONFIG_STATUS
8824 ac_clean_files=$ac_clean_files_save
8825
8826
8827 # configure is writing to config.log, and then calls config.status.
8828 # config.status does its own redirection, appending to config.log.
8829 # Unfortunately, on DOS this fails, as config.log is still kept open
8830 # by configure, so config.status won't be able to write to it; its
8831 # output is simply discarded.  So we exec the FD to /dev/null,
8832 # effectively closing config.log, so it can be properly (re)opened and
8833 # appended to by config.status.  When coming back to configure, we
8834 # need to make the FD available again.
8835 if test "$no_create" != yes; then
8836   ac_cs_success=:
8837   ac_config_status_args=
8838   test "$silent" = yes &&
8839     ac_config_status_args="$ac_config_status_args --quiet"
8840   exec 5>/dev/null
8841   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8842   exec 5>>config.log
8843   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8844   # would make configure fail if this is the last instruction.
8845   $ac_cs_success || { (exit 1); exit 1; }
8846 fi
8847