import from HEAD:
[freeradius.git] / src / modules / rlm_pam / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.5 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="rlm_pam.c"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP pam_ldflags pam_cflags targetname LIBOBJS 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 Some influential environment variables:
842   CC          C compiler command
843   CFLAGS      C compiler flags
844   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
845               nonstandard directory <lib dir>
846   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
847               headers in a nonstandard directory <include dir>
848   CPP         C preprocessor
849
850 Use these variables to override the choices made by `configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
852
853 _ACEOF
854 fi
855
856 if test "$ac_init_help" = "recursive"; then
857   # If there are subdirs, report their specific --help.
858   ac_popdir=`pwd`
859   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860     test -d $ac_dir || continue
861     ac_builddir=.
862
863 if test "$ac_dir" != .; then
864   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865   # A "../" for each directory in $ac_dir_suffix.
866   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
867 else
868   ac_dir_suffix= ac_top_builddir=
869 fi
870
871 case $srcdir in
872   .)  # No --srcdir option.  We are building in place.
873     ac_srcdir=.
874     if test -z "$ac_top_builddir"; then
875        ac_top_srcdir=.
876     else
877        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
878     fi ;;
879   [\\/]* | ?:[\\/]* )  # Absolute path.
880     ac_srcdir=$srcdir$ac_dir_suffix;
881     ac_top_srcdir=$srcdir ;;
882   *) # Relative path.
883     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884     ac_top_srcdir=$ac_top_builddir$srcdir ;;
885 esac
886
887 # Do not use `cd foo && pwd` to compute absolute paths, because
888 # the directories may not exist.
889 case `pwd` in
890 .) ac_abs_builddir="$ac_dir";;
891 *)
892   case "$ac_dir" in
893   .) ac_abs_builddir=`pwd`;;
894   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
895   *) ac_abs_builddir=`pwd`/"$ac_dir";;
896   esac;;
897 esac
898 case $ac_abs_builddir in
899 .) ac_abs_top_builddir=${ac_top_builddir}.;;
900 *)
901   case ${ac_top_builddir}. in
902   .) ac_abs_top_builddir=$ac_abs_builddir;;
903   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
904   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
905   esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_srcdir=$ac_srcdir;;
909 *)
910   case $ac_srcdir in
911   .) ac_abs_srcdir=$ac_abs_builddir;;
912   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
913   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
914   esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_top_srcdir=$ac_top_srcdir;;
918 *)
919   case $ac_top_srcdir in
920   .) ac_abs_top_srcdir=$ac_abs_builddir;;
921   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
922   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
923   esac;;
924 esac
925
926     cd $ac_dir
927     # Check for guested configure; otherwise get Cygnus style configure.
928     if test -f $ac_srcdir/configure.gnu; then
929       echo
930       $SHELL $ac_srcdir/configure.gnu  --help=recursive
931     elif test -f $ac_srcdir/configure; then
932       echo
933       $SHELL $ac_srcdir/configure  --help=recursive
934     elif test -f $ac_srcdir/configure.ac ||
935            test -f $ac_srcdir/configure.in; then
936       echo
937       $ac_configure --help
938     else
939       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940     fi
941     cd $ac_popdir
942   done
943 fi
944
945 test -n "$ac_init_help" && exit 0
946 if $ac_init_version; then
947   cat <<\_ACEOF
948
949 Copyright (C) 2003 Free Software Foundation, Inc.
950 This configure script is free software; the Free Software Foundation
951 gives unlimited permission to copy, distribute and modify it.
952 _ACEOF
953   exit 0
954 fi
955 exec 5>config.log
956 cat >&5 <<_ACEOF
957 This file contains any messages produced by compilers while
958 running configure, to aid debugging if configure makes a mistake.
959
960 It was created by $as_me, which was
961 generated by GNU Autoconf 2.59.  Invocation command line was
962
963   $ $0 $@
964
965 _ACEOF
966 {
967 cat <<_ASUNAME
968 ## --------- ##
969 ## Platform. ##
970 ## --------- ##
971
972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
980
981 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
982 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
985 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
986 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
987 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
988
989 _ASUNAME
990
991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992 for as_dir in $PATH
993 do
994   IFS=$as_save_IFS
995   test -z "$as_dir" && as_dir=.
996   echo "PATH: $as_dir"
997 done
998
999 } >&5
1000
1001 cat >&5 <<_ACEOF
1002
1003
1004 ## ----------- ##
1005 ## Core tests. ##
1006 ## ----------- ##
1007
1008 _ACEOF
1009
1010
1011 # Keep a trace of the command line.
1012 # Strip out --no-create and --no-recursion so they do not pile up.
1013 # Strip out --silent because we don't want to record it for future runs.
1014 # Also quote any args containing shell meta-characters.
1015 # Make two passes to allow for proper duplicate-argument suppression.
1016 ac_configure_args=
1017 ac_configure_args0=
1018 ac_configure_args1=
1019 ac_sep=
1020 ac_must_keep_next=false
1021 for ac_pass in 1 2
1022 do
1023   for ac_arg
1024   do
1025     case $ac_arg in
1026     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028     | -silent | --silent | --silen | --sile | --sil)
1029       continue ;;
1030     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032     esac
1033     case $ac_pass in
1034     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035     2)
1036       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037       if test $ac_must_keep_next = true; then
1038         ac_must_keep_next=false # Got value, back to normal.
1039       else
1040         case $ac_arg in
1041           *=* | --config-cache | -C | -disable-* | --disable-* \
1042           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044           | -with-* | --with-* | -without-* | --without-* | --x)
1045             case "$ac_configure_args0 " in
1046               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047             esac
1048             ;;
1049           -* ) ac_must_keep_next=true ;;
1050         esac
1051       fi
1052       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053       # Get rid of the leading space.
1054       ac_sep=" "
1055       ;;
1056     esac
1057   done
1058 done
1059 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062 # When interrupted or exit'd, cleanup temporary files, and complete
1063 # config.log.  We remove comments because anyway the quotes in there
1064 # would cause problems or look ugly.
1065 # WARNING: Be sure not to use single quotes in there, as some shells,
1066 # such as our DU 5.0 friend, will then `close' the trap.
1067 trap 'exit_status=$?
1068   # Save into config.log some information that might help in debugging.
1069   {
1070     echo
1071
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094
1095     cat <<\_ASBOX
1096 ## ----------------- ##
1097 ## Output variables. ##
1098 ## ----------------- ##
1099 _ASBOX
1100     echo
1101     for ac_var in $ac_subst_vars
1102     do
1103       eval ac_val=$`echo $ac_var`
1104       echo "$ac_var='"'"'$ac_val'"'"'"
1105     done | sort
1106     echo
1107
1108     if test -n "$ac_subst_files"; then
1109       cat <<\_ASBOX
1110 ## ------------- ##
1111 ## Output files. ##
1112 ## ------------- ##
1113 _ASBOX
1114       echo
1115       for ac_var in $ac_subst_files
1116       do
1117         eval ac_val=$`echo $ac_var`
1118         echo "$ac_var='"'"'$ac_val'"'"'"
1119       done | sort
1120       echo
1121     fi
1122
1123     if test -s confdefs.h; then
1124       cat <<\_ASBOX
1125 ## ----------- ##
1126 ## confdefs.h. ##
1127 ## ----------- ##
1128 _ASBOX
1129       echo
1130       sed "/^$/d" confdefs.h | sort
1131       echo
1132     fi
1133     test "$ac_signal" != 0 &&
1134       echo "$as_me: caught signal $ac_signal"
1135     echo "$as_me: exit $exit_status"
1136   } >&5
1137   rm -f core *.core &&
1138   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139     exit $exit_status
1140      ' 0
1141 for ac_signal in 1 2 13 15; do
1142   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143 done
1144 ac_signal=0
1145
1146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1147 rm -rf conftest* confdefs.h
1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149 echo >confdefs.h
1150
1151 # Predefined preprocessor variables.
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_NAME "$PACKAGE_NAME"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_STRING "$PACKAGE_STRING"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175 _ACEOF
1176
1177
1178 # Let the site file select an alternate cache file if it wants to.
1179 # Prefer explicitly selected file to automatically selected ones.
1180 if test -z "$CONFIG_SITE"; then
1181   if test "x$prefix" != xNONE; then
1182     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183   else
1184     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185   fi
1186 fi
1187 for ac_site_file in $CONFIG_SITE; do
1188   if test -r "$ac_site_file"; then
1189     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190 echo "$as_me: loading site script $ac_site_file" >&6;}
1191     sed 's/^/| /' "$ac_site_file" >&5
1192     . "$ac_site_file"
1193   fi
1194 done
1195
1196 if test -r "$cache_file"; then
1197   # Some versions of bash will fail to source /dev/null (special
1198   # files actually), so we avoid doing that.
1199   if test -f "$cache_file"; then
1200     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201 echo "$as_me: loading cache $cache_file" >&6;}
1202     case $cache_file in
1203       [\\/]* | ?:[\\/]* ) . $cache_file;;
1204       *)                      . ./$cache_file;;
1205     esac
1206   fi
1207 else
1208   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209 echo "$as_me: creating cache $cache_file" >&6;}
1210   >$cache_file
1211 fi
1212
1213 # Check that the precious variables saved in the cache have kept the same
1214 # value.
1215 ac_cache_corrupted=false
1216 for ac_var in `(set) 2>&1 |
1217                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219   eval ac_new_set=\$ac_env_${ac_var}_set
1220   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221   eval ac_new_val="\$ac_env_${ac_var}_value"
1222   case $ac_old_set,$ac_new_set in
1223     set,)
1224       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226       ac_cache_corrupted=: ;;
1227     ,set)
1228       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230       ac_cache_corrupted=: ;;
1231     ,);;
1232     *)
1233       if test "x$ac_old_val" != "x$ac_new_val"; then
1234         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1237 echo "$as_me:   former value:  $ac_old_val" >&2;}
1238         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1239 echo "$as_me:   current value: $ac_new_val" >&2;}
1240         ac_cache_corrupted=:
1241       fi;;
1242   esac
1243   # Pass precious variables to config.status.
1244   if test "$ac_new_set" = set; then
1245     case $ac_new_val in
1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248     *) ac_arg=$ac_var=$ac_new_val ;;
1249     esac
1250     case " $ac_configure_args " in
1251       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1252       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253     esac
1254   fi
1255 done
1256 if $ac_cache_corrupted; then
1257   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261    { (exit 1); exit 1; }; }
1262 fi
1263
1264 ac_ext=c
1265 ac_cpp='$CPP $CPPFLAGS'
1266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291 if test x$with_rlm_pam != xno; then
1292
1293         ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 if test -n "$ac_tool_prefix"; then
1299   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1301 echo "$as_me:$LINENO: checking for $ac_word" >&5
1302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303 if test "${ac_cv_prog_CC+set}" = set; then
1304   echo $ECHO_N "(cached) $ECHO_C" >&6
1305 else
1306   if test -n "$CC"; then
1307   ac_cv_prog_CC="$CC" # Let the user override the test.
1308 else
1309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310 for as_dir in $PATH
1311 do
1312   IFS=$as_save_IFS
1313   test -z "$as_dir" && as_dir=.
1314   for ac_exec_ext in '' $ac_executable_extensions; do
1315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1316     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1318     break 2
1319   fi
1320 done
1321 done
1322
1323 fi
1324 fi
1325 CC=$ac_cv_prog_CC
1326 if test -n "$CC"; then
1327   echo "$as_me:$LINENO: result: $CC" >&5
1328 echo "${ECHO_T}$CC" >&6
1329 else
1330   echo "$as_me:$LINENO: result: no" >&5
1331 echo "${ECHO_T}no" >&6
1332 fi
1333
1334 fi
1335 if test -z "$ac_cv_prog_CC"; then
1336   ac_ct_CC=$CC
1337   # Extract the first word of "gcc", so it can be a program name with args.
1338 set dummy gcc; ac_word=$2
1339 echo "$as_me:$LINENO: checking for $ac_word" >&5
1340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1342   echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344   if test -n "$ac_ct_CC"; then
1345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1346 else
1347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348 for as_dir in $PATH
1349 do
1350   IFS=$as_save_IFS
1351   test -z "$as_dir" && as_dir=.
1352   for ac_exec_ext in '' $ac_executable_extensions; do
1353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354     ac_cv_prog_ac_ct_CC="gcc"
1355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356     break 2
1357   fi
1358 done
1359 done
1360
1361 fi
1362 fi
1363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1364 if test -n "$ac_ct_CC"; then
1365   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1366 echo "${ECHO_T}$ac_ct_CC" >&6
1367 else
1368   echo "$as_me:$LINENO: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1370 fi
1371
1372   CC=$ac_ct_CC
1373 else
1374   CC="$ac_cv_prog_CC"
1375 fi
1376
1377 if test -z "$CC"; then
1378   if test -n "$ac_tool_prefix"; then
1379   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1380 set dummy ${ac_tool_prefix}cc; ac_word=$2
1381 echo "$as_me:$LINENO: checking for $ac_word" >&5
1382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383 if test "${ac_cv_prog_CC+set}" = set; then
1384   echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386   if test -n "$CC"; then
1387   ac_cv_prog_CC="$CC" # Let the user override the test.
1388 else
1389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 for as_dir in $PATH
1391 do
1392   IFS=$as_save_IFS
1393   test -z "$as_dir" && as_dir=.
1394   for ac_exec_ext in '' $ac_executable_extensions; do
1395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396     ac_cv_prog_CC="${ac_tool_prefix}cc"
1397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398     break 2
1399   fi
1400 done
1401 done
1402
1403 fi
1404 fi
1405 CC=$ac_cv_prog_CC
1406 if test -n "$CC"; then
1407   echo "$as_me:$LINENO: result: $CC" >&5
1408 echo "${ECHO_T}$CC" >&6
1409 else
1410   echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 fi
1415 if test -z "$ac_cv_prog_CC"; then
1416   ac_ct_CC=$CC
1417   # Extract the first word of "cc", so it can be a program name with args.
1418 set dummy cc; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   if test -n "$ac_ct_CC"; then
1425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1426 else
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_prog_ac_ct_CC="cc"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441 fi
1442 fi
1443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1444 if test -n "$ac_ct_CC"; then
1445   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1446 echo "${ECHO_T}$ac_ct_CC" >&6
1447 else
1448   echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1450 fi
1451
1452   CC=$ac_ct_CC
1453 else
1454   CC="$ac_cv_prog_CC"
1455 fi
1456
1457 fi
1458 if test -z "$CC"; then
1459   # Extract the first word of "cc", so it can be a program name with args.
1460 set dummy cc; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_CC+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   if test -n "$CC"; then
1467   ac_cv_prog_CC="$CC" # Let the user override the test.
1468 else
1469   ac_prog_rejected=no
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471 for as_dir in $PATH
1472 do
1473   IFS=$as_save_IFS
1474   test -z "$as_dir" && as_dir=.
1475   for ac_exec_ext in '' $ac_executable_extensions; do
1476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1478        ac_prog_rejected=yes
1479        continue
1480      fi
1481     ac_cv_prog_CC="cc"
1482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483     break 2
1484   fi
1485 done
1486 done
1487
1488 if test $ac_prog_rejected = yes; then
1489   # We found a bogon in the path, so make sure we never use it.
1490   set dummy $ac_cv_prog_CC
1491   shift
1492   if test $# != 0; then
1493     # We chose a different compiler from the bogus one.
1494     # However, it has the same basename, so the bogon will be chosen
1495     # first if we set CC to just the basename; use the full file name.
1496     shift
1497     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1498   fi
1499 fi
1500 fi
1501 fi
1502 CC=$ac_cv_prog_CC
1503 if test -n "$CC"; then
1504   echo "$as_me:$LINENO: result: $CC" >&5
1505 echo "${ECHO_T}$CC" >&6
1506 else
1507   echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1509 fi
1510
1511 fi
1512 if test -z "$CC"; then
1513   if test -n "$ac_tool_prefix"; then
1514   for ac_prog in cl
1515   do
1516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551     test -n "$CC" && break
1552   done
1553 fi
1554 if test -z "$CC"; then
1555   ac_ct_CC=$CC
1556   for ac_prog in cl
1557 do
1558   # Extract the first word of "$ac_prog", so it can be a program name with args.
1559 set dummy $ac_prog; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$ac_ct_CC"; then
1566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_ac_ct_CC="$ac_prog"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593   test -n "$ac_ct_CC" && break
1594 done
1595
1596   CC=$ac_ct_CC
1597 fi
1598
1599 fi
1600
1601
1602 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1603 See \`config.log' for more details." >&5
1604 echo "$as_me: error: no acceptable C compiler found in \$PATH
1605 See \`config.log' for more details." >&2;}
1606    { (exit 1); exit 1; }; }
1607
1608 # Provide some information about the compiler.
1609 echo "$as_me:$LINENO:" \
1610      "checking for C compiler version" >&5
1611 ac_compiler=`set X $ac_compile; echo $2`
1612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1613   (eval $ac_compiler --version </dev/null >&5) 2>&5
1614   ac_status=$?
1615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616   (exit $ac_status); }
1617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1618   (eval $ac_compiler -v </dev/null >&5) 2>&5
1619   ac_status=$?
1620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621   (exit $ac_status); }
1622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1623   (eval $ac_compiler -V </dev/null >&5) 2>&5
1624   ac_status=$?
1625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626   (exit $ac_status); }
1627
1628 cat >conftest.$ac_ext <<_ACEOF
1629 /* confdefs.h.  */
1630 _ACEOF
1631 cat confdefs.h >>conftest.$ac_ext
1632 cat >>conftest.$ac_ext <<_ACEOF
1633 /* end confdefs.h.  */
1634
1635 int
1636 main ()
1637 {
1638
1639   ;
1640   return 0;
1641 }
1642 _ACEOF
1643 ac_clean_files_save=$ac_clean_files
1644 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1645 # Try to create an executable without -o first, disregard a.out.
1646 # It will help us diagnose broken compilers, and finding out an intuition
1647 # of exeext.
1648 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1649 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1650 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1651 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1652   (eval $ac_link_default) 2>&5
1653   ac_status=$?
1654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655   (exit $ac_status); }; then
1656   # Find the output, starting from the most likely.  This scheme is
1657 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1658 # resort.
1659
1660 # Be careful to initialize this variable, since it used to be cached.
1661 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1662 ac_cv_exeext=
1663 # b.out is created by i960 compilers.
1664 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1665 do
1666   test -f "$ac_file" || continue
1667   case $ac_file in
1668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1669         ;;
1670     conftest.$ac_ext )
1671         # This is the source file.
1672         ;;
1673     [ab].out )
1674         # We found the default executable, but exeext='' is most
1675         # certainly right.
1676         break;;
1677     *.* )
1678         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679         # FIXME: I believe we export ac_cv_exeext for Libtool,
1680         # but it would be cool to find out if it's true.  Does anybody
1681         # maintain Libtool? --akim.
1682         export ac_cv_exeext
1683         break;;
1684     * )
1685         break;;
1686   esac
1687 done
1688 else
1689   echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1693 See \`config.log' for more details." >&5
1694 echo "$as_me: error: C compiler cannot create executables
1695 See \`config.log' for more details." >&2;}
1696    { (exit 77); exit 77; }; }
1697 fi
1698
1699 ac_exeext=$ac_cv_exeext
1700 echo "$as_me:$LINENO: result: $ac_file" >&5
1701 echo "${ECHO_T}$ac_file" >&6
1702
1703 # Check the compiler produces executables we can run.  If not, either
1704 # the compiler is broken, or we cross compile.
1705 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1706 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1707 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1708 # If not cross compiling, check that we can run a simple program.
1709 if test "$cross_compiling" != yes; then
1710   if { ac_try='./$ac_file'
1711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1712   (eval $ac_try) 2>&5
1713   ac_status=$?
1714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715   (exit $ac_status); }; }; then
1716     cross_compiling=no
1717   else
1718     if test "$cross_compiling" = maybe; then
1719         cross_compiling=yes
1720     else
1721         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1722 If you meant to cross compile, use \`--host'.
1723 See \`config.log' for more details." >&5
1724 echo "$as_me: error: cannot run C compiled programs.
1725 If you meant to cross compile, use \`--host'.
1726 See \`config.log' for more details." >&2;}
1727    { (exit 1); exit 1; }; }
1728     fi
1729   fi
1730 fi
1731 echo "$as_me:$LINENO: result: yes" >&5
1732 echo "${ECHO_T}yes" >&6
1733
1734 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1735 ac_clean_files=$ac_clean_files_save
1736 # Check the compiler produces executables we can run.  If not, either
1737 # the compiler is broken, or we cross compile.
1738 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1740 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1741 echo "${ECHO_T}$cross_compiling" >&6
1742
1743 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1746   (eval $ac_link) 2>&5
1747   ac_status=$?
1748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749   (exit $ac_status); }; then
1750   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1751 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1752 # work properly (i.e., refer to `conftest.exe'), while it won't with
1753 # `rm'.
1754 for ac_file in conftest.exe conftest conftest.*; do
1755   test -f "$ac_file" || continue
1756   case $ac_file in
1757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1758     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759           export ac_cv_exeext
1760           break;;
1761     * ) break;;
1762   esac
1763 done
1764 else
1765   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1768 See \`config.log' for more details." >&2;}
1769    { (exit 1); exit 1; }; }
1770 fi
1771
1772 rm -f conftest$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1774 echo "${ECHO_T}$ac_cv_exeext" >&6
1775
1776 rm -f conftest.$ac_ext
1777 EXEEXT=$ac_cv_exeext
1778 ac_exeext=$EXEEXT
1779 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1780 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1781 if test "${ac_cv_objext+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   cat >conftest.$ac_ext <<_ACEOF
1785 /* confdefs.h.  */
1786 _ACEOF
1787 cat confdefs.h >>conftest.$ac_ext
1788 cat >>conftest.$ac_ext <<_ACEOF
1789 /* end confdefs.h.  */
1790
1791 int
1792 main ()
1793 {
1794
1795   ;
1796   return 0;
1797 }
1798 _ACEOF
1799 rm -f conftest.o conftest.obj
1800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801   (eval $ac_compile) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }; then
1805   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1806   case $ac_file in
1807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1808     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1809        break;;
1810   esac
1811 done
1812 else
1813   echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1817 See \`config.log' for more details." >&5
1818 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1819 See \`config.log' for more details." >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822
1823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1824 fi
1825 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1826 echo "${ECHO_T}$ac_cv_objext" >&6
1827 OBJEXT=$ac_cv_objext
1828 ac_objext=$OBJEXT
1829 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1832   echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834   cat >conftest.$ac_ext <<_ACEOF
1835 /* confdefs.h.  */
1836 _ACEOF
1837 cat confdefs.h >>conftest.$ac_ext
1838 cat >>conftest.$ac_ext <<_ACEOF
1839 /* end confdefs.h.  */
1840
1841 int
1842 main ()
1843 {
1844 #ifndef __GNUC__
1845        choke me
1846 #endif
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 rm -f conftest.$ac_objext
1853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854   (eval $ac_compile) 2>conftest.er1
1855   ac_status=$?
1856   grep -v '^ *+' conftest.er1 >conftest.err
1857   rm -f conftest.er1
1858   cat conftest.err >&5
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); } &&
1861          { ac_try='test -z "$ac_c_werror_flag"
1862                          || test ! -s conftest.err'
1863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864   (eval $ac_try) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }; } &&
1868          { ac_try='test -s conftest.$ac_objext'
1869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870   (eval $ac_try) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }; }; then
1874   ac_compiler_gnu=yes
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_compiler_gnu=no
1880 fi
1881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1883
1884 fi
1885 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1887 GCC=`test $ac_compiler_gnu = yes && echo yes`
1888 ac_test_CFLAGS=${CFLAGS+set}
1889 ac_save_CFLAGS=$CFLAGS
1890 CFLAGS="-g"
1891 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1893 if test "${ac_cv_prog_cc_g+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
1907   ;
1908   return 0;
1909 }
1910 _ACEOF
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913   (eval $ac_compile) 2>conftest.er1
1914   ac_status=$?
1915   grep -v '^ *+' conftest.er1 >conftest.err
1916   rm -f conftest.er1
1917   cat conftest.err >&5
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); } &&
1920          { ac_try='test -z "$ac_c_werror_flag"
1921                          || test ! -s conftest.err'
1922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923   (eval $ac_try) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }; } &&
1927          { ac_try='test -s conftest.$ac_objext'
1928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929   (eval $ac_try) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; }; then
1933   ac_cv_prog_cc_g=yes
1934 else
1935   echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_cv_prog_cc_g=no
1939 fi
1940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1944 if test "$ac_test_CFLAGS" = set; then
1945   CFLAGS=$ac_save_CFLAGS
1946 elif test $ac_cv_prog_cc_g = yes; then
1947   if test "$GCC" = yes; then
1948     CFLAGS="-g -O2"
1949   else
1950     CFLAGS="-g"
1951   fi
1952 else
1953   if test "$GCC" = yes; then
1954     CFLAGS="-O2"
1955   else
1956     CFLAGS=
1957   fi
1958 fi
1959 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1960 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1961 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   ac_cv_prog_cc_stdc=no
1965 ac_save_CC=$CC
1966 cat >conftest.$ac_ext <<_ACEOF
1967 /* confdefs.h.  */
1968 _ACEOF
1969 cat confdefs.h >>conftest.$ac_ext
1970 cat >>conftest.$ac_ext <<_ACEOF
1971 /* end confdefs.h.  */
1972 #include <stdarg.h>
1973 #include <stdio.h>
1974 #include <sys/types.h>
1975 #include <sys/stat.h>
1976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1977 struct buf { int x; };
1978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1979 static char *e (p, i)
1980      char **p;
1981      int i;
1982 {
1983   return p[i];
1984 }
1985 static char *f (char * (*g) (char **, int), char **p, ...)
1986 {
1987   char *s;
1988   va_list v;
1989   va_start (v,p);
1990   s = g (p, va_arg (v,int));
1991   va_end (v);
1992   return s;
1993 }
1994
1995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1996    function prototypes and stuff, but not '\xHH' hex character constants.
1997    These don't provoke an error unfortunately, instead are silently treated
1998    as 'x'.  The following induces an error, until -std1 is added to get
1999    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2000    array size at least.  It's necessary to write '\x00'==0 to get something
2001    that's true only with -std1.  */
2002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2003
2004 int test (int i, double x);
2005 struct s1 {int (*f) (int a);};
2006 struct s2 {int (*f) (double a);};
2007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2008 int argc;
2009 char **argv;
2010 int
2011 main ()
2012 {
2013 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 # Don't try gcc -ansi; that turns off useful extensions and
2019 # breaks some systems' header files.
2020 # AIX                   -qlanglvl=ansi
2021 # Ultrix and OSF/1      -std1
2022 # HP-UX 10.20 and later -Ae
2023 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2024 # SVR4                  -Xc -D__EXTENSIONS__
2025 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2026 do
2027   CC="$ac_save_CC $ac_arg"
2028   rm -f conftest.$ac_objext
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030   (eval $ac_compile) 2>conftest.er1
2031   ac_status=$?
2032   grep -v '^ *+' conftest.er1 >conftest.err
2033   rm -f conftest.er1
2034   cat conftest.err >&5
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); } &&
2037          { ac_try='test -z "$ac_c_werror_flag"
2038                          || test ! -s conftest.err'
2039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040   (eval $ac_try) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; } &&
2044          { ac_try='test -s conftest.$ac_objext'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050   ac_cv_prog_cc_stdc=$ac_arg
2051 break
2052 else
2053   echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 fi
2057 rm -f conftest.err conftest.$ac_objext
2058 done
2059 rm -f conftest.$ac_ext conftest.$ac_objext
2060 CC=$ac_save_CC
2061
2062 fi
2063
2064 case "x$ac_cv_prog_cc_stdc" in
2065   x|xno)
2066     echo "$as_me:$LINENO: result: none needed" >&5
2067 echo "${ECHO_T}none needed" >&6 ;;
2068   *)
2069     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2070 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2071     CC="$CC $ac_cv_prog_cc_stdc" ;;
2072 esac
2073
2074 # Some people use a C++ compiler to compile C.  Since we use `exit',
2075 # in C++ we need to declare it.  In case someone uses the same compiler
2076 # for both compiling C and C++ we need to have the C++ compiler decide
2077 # the declaration of exit, since it's the most demanding environment.
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #ifndef __cplusplus
2080   choke me
2081 #endif
2082 _ACEOF
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085   (eval $ac_compile) 2>conftest.er1
2086   ac_status=$?
2087   grep -v '^ *+' conftest.er1 >conftest.err
2088   rm -f conftest.er1
2089   cat conftest.err >&5
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); } &&
2092          { ac_try='test -z "$ac_c_werror_flag"
2093                          || test ! -s conftest.err'
2094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095   (eval $ac_try) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   for ac_declaration in \
2106    '' \
2107    'extern "C" void std::exit (int) throw (); using std::exit;' \
2108    'extern "C" void std::exit (int); using std::exit;' \
2109    'extern "C" void exit (int) throw ();' \
2110    'extern "C" void exit (int);' \
2111    'void exit (int);'
2112 do
2113   cat >conftest.$ac_ext <<_ACEOF
2114 /* confdefs.h.  */
2115 _ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h.  */
2119 $ac_declaration
2120 #include <stdlib.h>
2121 int
2122 main ()
2123 {
2124 exit (42);
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>conftest.er1
2132   ac_status=$?
2133   grep -v '^ *+' conftest.er1 >conftest.err
2134   rm -f conftest.er1
2135   cat conftest.err >&5
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -z "$ac_c_werror_flag"
2139                          || test ! -s conftest.err'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; } &&
2145          { ac_try='test -s conftest.$ac_objext'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; }; then
2151   :
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 continue
2157 fi
2158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159   cat >conftest.$ac_ext <<_ACEOF
2160 /* confdefs.h.  */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h.  */
2165 $ac_declaration
2166 int
2167 main ()
2168 {
2169 exit (42);
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176   (eval $ac_compile) 2>conftest.er1
2177   ac_status=$?
2178   grep -v '^ *+' conftest.er1 >conftest.err
2179   rm -f conftest.er1
2180   cat conftest.err >&5
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); } &&
2183          { ac_try='test -z "$ac_c_werror_flag"
2184                          || test ! -s conftest.err'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; } &&
2190          { ac_try='test -s conftest.$ac_objext'
2191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192   (eval $ac_try) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; }; then
2196   break
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 fi
2202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204 rm -f conftest*
2205 if test -n "$ac_declaration"; then
2206   echo '#ifdef __cplusplus' >>confdefs.h
2207   echo $ac_declaration      >>confdefs.h
2208   echo '#endif'             >>confdefs.h
2209 fi
2210
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 fi
2216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2217 ac_ext=c
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222
2223         ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2230 # On Suns, sometimes $CPP names a directory.
2231 if test -n "$CPP" && test -d "$CPP"; then
2232   CPP=
2233 fi
2234 if test -z "$CPP"; then
2235   if test "${ac_cv_prog_CPP+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238       # Double quotes because CPP needs to be expanded
2239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2240     do
2241       ac_preproc_ok=false
2242 for ac_c_preproc_warn_flag in '' yes
2243 do
2244   # Use a header file that comes with gcc, so configuring glibc
2245   # with a fresh cross-compiler works.
2246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2247   # <limits.h> exists even on freestanding compilers.
2248   # On the NeXT, cc -E runs the code through the compiler's parser,
2249   # not just through cpp. "Syntax error" is here to catch this case.
2250   cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h.  */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h.  */
2256 #ifdef __STDC__
2257 # include <limits.h>
2258 #else
2259 # include <assert.h>
2260 #endif
2261                      Syntax error
2262 _ACEOF
2263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2265   ac_status=$?
2266   grep -v '^ *+' conftest.er1 >conftest.err
2267   rm -f conftest.er1
2268   cat conftest.err >&5
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } >/dev/null; then
2271   if test -s conftest.err; then
2272     ac_cpp_err=$ac_c_preproc_warn_flag
2273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2274   else
2275     ac_cpp_err=
2276   fi
2277 else
2278   ac_cpp_err=yes
2279 fi
2280 if test -z "$ac_cpp_err"; then
2281   :
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286   # Broken: fails on valid input.
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_ext
2290
2291   # OK, works on sane cases.  Now check whether non-existent headers
2292   # can be detected and how.
2293   cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h.  */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h.  */
2299 #include <ac_nonexistent.h>
2300 _ACEOF
2301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2303   ac_status=$?
2304   grep -v '^ *+' conftest.er1 >conftest.err
2305   rm -f conftest.er1
2306   cat conftest.err >&5
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); } >/dev/null; then
2309   if test -s conftest.err; then
2310     ac_cpp_err=$ac_c_preproc_warn_flag
2311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2312   else
2313     ac_cpp_err=
2314   fi
2315 else
2316   ac_cpp_err=yes
2317 fi
2318 if test -z "$ac_cpp_err"; then
2319   # Broken: success on invalid input.
2320 continue
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325   # Passes both tests.
2326 ac_preproc_ok=:
2327 break
2328 fi
2329 rm -f conftest.err conftest.$ac_ext
2330
2331 done
2332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2333 rm -f conftest.err conftest.$ac_ext
2334 if $ac_preproc_ok; then
2335   break
2336 fi
2337
2338     done
2339     ac_cv_prog_CPP=$CPP
2340
2341 fi
2342   CPP=$ac_cv_prog_CPP
2343 else
2344   ac_cv_prog_CPP=$CPP
2345 fi
2346 echo "$as_me:$LINENO: result: $CPP" >&5
2347 echo "${ECHO_T}$CPP" >&6
2348 ac_preproc_ok=false
2349 for ac_c_preproc_warn_flag in '' yes
2350 do
2351   # Use a header file that comes with gcc, so configuring glibc
2352   # with a fresh cross-compiler works.
2353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354   # <limits.h> exists even on freestanding compilers.
2355   # On the NeXT, cc -E runs the code through the compiler's parser,
2356   # not just through cpp. "Syntax error" is here to catch this case.
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363 #ifdef __STDC__
2364 # include <limits.h>
2365 #else
2366 # include <assert.h>
2367 #endif
2368                      Syntax error
2369 _ACEOF
2370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } >/dev/null; then
2378   if test -s conftest.err; then
2379     ac_cpp_err=$ac_c_preproc_warn_flag
2380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2381   else
2382     ac_cpp_err=
2383   fi
2384 else
2385   ac_cpp_err=yes
2386 fi
2387 if test -z "$ac_cpp_err"; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393   # Broken: fails on valid input.
2394 continue
2395 fi
2396 rm -f conftest.err conftest.$ac_ext
2397
2398   # OK, works on sane cases.  Now check whether non-existent headers
2399   # can be detected and how.
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 #include <ac_nonexistent.h>
2407 _ACEOF
2408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2410   ac_status=$?
2411   grep -v '^ *+' conftest.er1 >conftest.err
2412   rm -f conftest.er1
2413   cat conftest.err >&5
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); } >/dev/null; then
2416   if test -s conftest.err; then
2417     ac_cpp_err=$ac_c_preproc_warn_flag
2418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2419   else
2420     ac_cpp_err=
2421   fi
2422 else
2423   ac_cpp_err=yes
2424 fi
2425 if test -z "$ac_cpp_err"; then
2426   # Broken: success on invalid input.
2427 continue
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432   # Passes both tests.
2433 ac_preproc_ok=:
2434 break
2435 fi
2436 rm -f conftest.err conftest.$ac_ext
2437
2438 done
2439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440 rm -f conftest.err conftest.$ac_ext
2441 if $ac_preproc_ok; then
2442   :
2443 else
2444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2447 See \`config.log' for more details." >&2;}
2448    { (exit 1); exit 1; }; }
2449 fi
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   ac_check_lib_save_LIBS=$LIBS
2465 LIBS="-ldl  $LIBS"
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 /* Override any gcc2 internal prototype to avoid an error.  */
2474 #ifdef __cplusplus
2475 extern "C"
2476 #endif
2477 /* We use char because int might match the return type of a gcc2
2478    builtin and then its argument prototype would still apply.  */
2479 char dlopen ();
2480 int
2481 main ()
2482 {
2483 dlopen ();
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext conftest$ac_exeext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490   (eval $ac_link) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } &&
2497          { ac_try='test -z "$ac_c_werror_flag"
2498                          || test ! -s conftest.err'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest$ac_exeext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   ac_cv_lib_dl_dlopen=yes
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 ac_cv_lib_dl_dlopen=no
2516 fi
2517 rm -f conftest.err conftest.$ac_objext \
2518       conftest$ac_exeext conftest.$ac_ext
2519 LIBS=$ac_check_lib_save_LIBS
2520 fi
2521 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2523 if test $ac_cv_lib_dl_dlopen = yes; then
2524    pam_ldflags="-ldl"
2525
2526 fi
2527
2528
2529         echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
2530 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
2531 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   ac_check_lib_save_LIBS=$LIBS
2535 LIBS="-lpam  $pam_ldflags
2536          $LIBS"
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 /* Override any gcc2 internal prototype to avoid an error.  */
2545 #ifdef __cplusplus
2546 extern "C"
2547 #endif
2548 /* We use char because int might match the return type of a gcc2
2549    builtin and then its argument prototype would still apply.  */
2550 char pam_start ();
2551 int
2552 main ()
2553 {
2554 pam_start ();
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext conftest$ac_exeext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2561   (eval $ac_link) 2>conftest.er1
2562   ac_status=$?
2563   grep -v '^ *+' conftest.er1 >conftest.err
2564   rm -f conftest.er1
2565   cat conftest.err >&5
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); } &&
2568          { ac_try='test -z "$ac_c_werror_flag"
2569                          || test ! -s conftest.err'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; } &&
2575          { ac_try='test -s conftest$ac_exeext'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581   ac_cv_lib_pam_pam_start=yes
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_cv_lib_pam_pam_start=no
2587 fi
2588 rm -f conftest.err conftest.$ac_objext \
2589       conftest$ac_exeext conftest.$ac_ext
2590 LIBS=$ac_check_lib_save_LIBS
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
2593 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
2594 if test $ac_cv_lib_pam_pam_start = yes; then
2595    pam_ldflags="-lpam $pam_ldflags"
2596 else
2597    fail=$fail" libpam"
2598 fi
2599
2600
2601
2602 echo "$as_me:$LINENO: checking for egrep" >&5
2603 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2604 if test "${ac_cv_prog_egrep+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2608     then ac_cv_prog_egrep='grep -E'
2609     else ac_cv_prog_egrep='egrep'
2610     fi
2611 fi
2612 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2613 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2614  EGREP=$ac_cv_prog_egrep
2615
2616
2617 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2619 if test "${ac_cv_header_stdc+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 #include <stdlib.h>
2629 #include <stdarg.h>
2630 #include <string.h>
2631 #include <float.h>
2632
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag"
2651                          || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_cv_header_stdc=yes
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 ac_cv_header_stdc=no
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671
2672 if test $ac_cv_header_stdc = yes; then
2673   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2674   cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 #include <string.h>
2681
2682 _ACEOF
2683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2684   $EGREP "memchr" >/dev/null 2>&1; then
2685   :
2686 else
2687   ac_cv_header_stdc=no
2688 fi
2689 rm -f conftest*
2690
2691 fi
2692
2693 if test $ac_cv_header_stdc = yes; then
2694   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 #include <stdlib.h>
2702
2703 _ACEOF
2704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2705   $EGREP "free" >/dev/null 2>&1; then
2706   :
2707 else
2708   ac_cv_header_stdc=no
2709 fi
2710 rm -f conftest*
2711
2712 fi
2713
2714 if test $ac_cv_header_stdc = yes; then
2715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2716   if test "$cross_compiling" = yes; then
2717   :
2718 else
2719   cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725 #include <ctype.h>
2726 #if ((' ' & 0x0FF) == 0x020)
2727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2729 #else
2730 # define ISLOWER(c) \
2731                    (('a' <= (c) && (c) <= 'i') \
2732                      || ('j' <= (c) && (c) <= 'r') \
2733                      || ('s' <= (c) && (c) <= 'z'))
2734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2735 #endif
2736
2737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2738 int
2739 main ()
2740 {
2741   int i;
2742   for (i = 0; i < 256; i++)
2743     if (XOR (islower (i), ISLOWER (i))
2744         || toupper (i) != TOUPPER (i))
2745       exit(2);
2746   exit (0);
2747 }
2748 _ACEOF
2749 rm -f conftest$ac_exeext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751   (eval $ac_link) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: program exited with status $ac_status" >&5
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 ( exit $ac_status )
2767 ac_cv_header_stdc=no
2768 fi
2769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2770 fi
2771 fi
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2775 if test $ac_cv_header_stdc = yes; then
2776
2777 cat >>confdefs.h <<\_ACEOF
2778 #define STDC_HEADERS 1
2779 _ACEOF
2780
2781 fi
2782
2783 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2794                   inttypes.h stdint.h unistd.h
2795 do
2796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2797 echo "$as_me:$LINENO: checking for $ac_header" >&5
2798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h.  */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h.  */
2808 $ac_includes_default
2809
2810 #include <$ac_header>
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814   (eval $ac_compile) 2>conftest.er1
2815   ac_status=$?
2816   grep -v '^ *+' conftest.er1 >conftest.err
2817   rm -f conftest.er1
2818   cat conftest.err >&5
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -z "$ac_c_werror_flag"
2822                          || test ! -s conftest.err'
2823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; } &&
2828          { ac_try='test -s conftest.$ac_objext'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   eval "$as_ac_Header=yes"
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 eval "$as_ac_Header=no"
2840 fi
2841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842 fi
2843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2846   cat >>confdefs.h <<_ACEOF
2847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2848 _ACEOF
2849
2850 fi
2851
2852 done
2853
2854
2855
2856
2857 for ac_header in \
2858                         security/pam_appl.h \
2859                         pam/pam_appl.h \
2860
2861 do
2862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2864   echo "$as_me:$LINENO: checking for $ac_header" >&5
2865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 fi
2869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2871 else
2872   # Is the header compilable?
2873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881 $ac_includes_default
2882 #include <$ac_header>
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   ac_header_compiler=yes
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 ac_header_compiler=no
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2915 echo "${ECHO_T}$ac_header_compiler" >&6
2916
2917 # Is the header present?
2918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 #include <$ac_header>
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } >/dev/null; then
2936   if test -s conftest.err; then
2937     ac_cpp_err=$ac_c_preproc_warn_flag
2938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939   else
2940     ac_cpp_err=
2941   fi
2942 else
2943   ac_cpp_err=yes
2944 fi
2945 if test -z "$ac_cpp_err"; then
2946   ac_header_preproc=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951   ac_header_preproc=no
2952 fi
2953 rm -f conftest.err conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2955 echo "${ECHO_T}$ac_header_preproc" >&6
2956
2957 # So?  What about this header?
2958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2959   yes:no: )
2960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2964     ac_header_preproc=yes
2965     ;;
2966   no:yes:* )
2967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
2970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
2971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
2974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
2975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2979     (
2980       cat <<\_ASBOX
2981 ## ------------------------------------------ ##
2982 ## Report this to the AC_PACKAGE_NAME lists.  ##
2983 ## ------------------------------------------ ##
2984 _ASBOX
2985     ) |
2986       sed "s/^/$as_me: WARNING:     /" >&2
2987     ;;
2988 esac
2989 echo "$as_me:$LINENO: checking for $ac_header" >&5
2990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   eval "$as_ac_Header=\$ac_header_preproc"
2995 fi
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998
2999 fi
3000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3001   cat >>confdefs.h <<_ACEOF
3002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3003 _ACEOF
3004
3005 fi
3006
3007 done
3008
3009         pam_cflags="-I."
3010
3011         targetname=rlm_pam
3012 else
3013         targetname=
3014         echo \*\*\* module rlm_pam is disabled.
3015 fi
3016
3017 if test x"$fail" != x""; then
3018         if test x"${enable_strict_dependencies}" = x"yes"; then
3019                 { { echo "$as_me:$LINENO: error: set --without-rlm_pam to disable it explicitly." >&5
3020 echo "$as_me: error: set --without-rlm_pam to disable it explicitly." >&2;}
3021    { (exit 1); exit 1; }; }
3022         else
3023                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_pam." >&5
3024 echo "$as_me: WARNING: silently not building rlm_pam." >&2;}
3025                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_pam requires: $fail." >&5
3026 echo "$as_me: WARNING: FAILURE: rlm_pam requires: $fail." >&2;};
3027                 targetname=""
3028         fi
3029 fi
3030
3031
3032
3033
3034           ac_config_headers="$ac_config_headers config.h"
3035
3036           ac_config_files="$ac_config_files Makefile"
3037 cat >confcache <<\_ACEOF
3038 # This file is a shell script that caches the results of configure
3039 # tests run on this system so they can be shared between configure
3040 # scripts and configure runs, see configure's option --config-cache.
3041 # It is not useful on other systems.  If it contains results you don't
3042 # want to keep, you may remove or edit it.
3043 #
3044 # config.status only pays attention to the cache file if you give it
3045 # the --recheck option to rerun configure.
3046 #
3047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3049 # following values.
3050
3051 _ACEOF
3052
3053 # The following way of writing the cache mishandles newlines in values,
3054 # but we know of no workaround that is simple, portable, and efficient.
3055 # So, don't put newlines in cache variables' values.
3056 # Ultrix sh set writes to stderr and can't be redirected directly,
3057 # and sets the high bit in the cache file unless we assign to the vars.
3058 {
3059   (set) 2>&1 |
3060     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3061     *ac_space=\ *)
3062       # `set' does not quote correctly, so add quotes (double-quote
3063       # substitution turns \\\\ into \\, and sed turns \\ into \).
3064       sed -n \
3065         "s/'/'\\\\''/g;
3066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3067       ;;
3068     *)
3069       # `set' quotes correctly as required by POSIX, so do not add quotes.
3070       sed -n \
3071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3072       ;;
3073     esac;
3074 } |
3075   sed '
3076      t clear
3077      : clear
3078      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3079      t end
3080      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3081      : end' >>confcache
3082 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3083   if test -w $cache_file; then
3084     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3085     cat confcache >$cache_file
3086   else
3087     echo "not updating unwritable cache $cache_file"
3088   fi
3089 fi
3090 rm -f confcache
3091
3092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3093 # Let make expand exec_prefix.
3094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3095
3096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3098 # trailing colons and then remove the whole line if VPATH becomes empty
3099 # (actually we leave an empty line to preserve line numbers).
3100 if test "x$srcdir" = x.; then
3101   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3102 s/:*\$(srcdir):*/:/;
3103 s/:*\${srcdir}:*/:/;
3104 s/:*@srcdir@:*/:/;
3105 s/^\([^=]*=[     ]*\):*/\1/;
3106 s/:*$//;
3107 s/^[^=]*=[       ]*$//;
3108 }'
3109 fi
3110
3111 DEFS=-DHAVE_CONFIG_H
3112
3113 ac_libobjs=
3114 ac_ltlibobjs=
3115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3116   # 1. Remove the extension, and $U if already installed.
3117   ac_i=`echo "$ac_i" |
3118          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3119   # 2. Add them.
3120   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3121   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3122 done
3123 LIBOBJS=$ac_libobjs
3124
3125 LTLIBOBJS=$ac_ltlibobjs
3126
3127
3128
3129 : ${CONFIG_STATUS=./config.status}
3130 ac_clean_files_save=$ac_clean_files
3131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3132 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3133 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3134 cat >$CONFIG_STATUS <<_ACEOF
3135 #! $SHELL
3136 # Generated by $as_me.
3137 # Run this file to recreate the current configuration.
3138 # Compiler output produced by configure, useful for debugging
3139 # configure, is in config.log if it exists.
3140
3141 debug=false
3142 ac_cs_recheck=false
3143 ac_cs_silent=false
3144 SHELL=\${CONFIG_SHELL-$SHELL}
3145 _ACEOF
3146
3147 cat >>$CONFIG_STATUS <<\_ACEOF
3148 ## --------------------- ##
3149 ## M4sh Initialization.  ##
3150 ## --------------------- ##
3151
3152 # Be Bourne compatible
3153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3154   emulate sh
3155   NULLCMD=:
3156   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3157   # is contrary to our usage.  Disable this feature.
3158   alias -g '${1+"$@"}'='"$@"'
3159 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3160   set -o posix
3161 fi
3162 DUALCASE=1; export DUALCASE # for MKS sh
3163
3164 # Support unset when possible.
3165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3166   as_unset=unset
3167 else
3168   as_unset=false
3169 fi
3170
3171
3172 # Work around bugs in pre-3.0 UWIN ksh.
3173 $as_unset ENV MAIL MAILPATH
3174 PS1='$ '
3175 PS2='> '
3176 PS4='+ '
3177
3178 # NLS nuisances.
3179 for as_var in \
3180   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3181   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3182   LC_TELEPHONE LC_TIME
3183 do
3184   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3185     eval $as_var=C; export $as_var
3186   else
3187     $as_unset $as_var
3188   fi
3189 done
3190
3191 # Required to use basename.
3192 if expr a : '\(a\)' >/dev/null 2>&1; then
3193   as_expr=expr
3194 else
3195   as_expr=false
3196 fi
3197
3198 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3199   as_basename=basename
3200 else
3201   as_basename=false
3202 fi
3203
3204
3205 # Name of the executable.
3206 as_me=`$as_basename "$0" ||
3207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3208          X"$0" : 'X\(//\)$' \| \
3209          X"$0" : 'X\(/\)$' \| \
3210          .     : '\(.\)' 2>/dev/null ||
3211 echo X/"$0" |
3212     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3213           /^X\/\(\/\/\)$/{ s//\1/; q; }
3214           /^X\/\(\/\).*/{ s//\1/; q; }
3215           s/.*/./; q'`
3216
3217
3218 # PATH needs CR, and LINENO needs CR and PATH.
3219 # Avoid depending upon Character Ranges.
3220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3223 as_cr_digits='0123456789'
3224 as_cr_alnum=$as_cr_Letters$as_cr_digits
3225
3226 # The user is always right.
3227 if test "${PATH_SEPARATOR+set}" != set; then
3228   echo "#! /bin/sh" >conf$$.sh
3229   echo  "exit 0"   >>conf$$.sh
3230   chmod +x conf$$.sh
3231   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3232     PATH_SEPARATOR=';'
3233   else
3234     PATH_SEPARATOR=:
3235   fi
3236   rm -f conf$$.sh
3237 fi
3238
3239
3240   as_lineno_1=$LINENO
3241   as_lineno_2=$LINENO
3242   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3243   test "x$as_lineno_1" != "x$as_lineno_2" &&
3244   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3245   # Find who we are.  Look in the path if we contain no path at all
3246   # relative or not.
3247   case $0 in
3248     *[\\/]* ) as_myself=$0 ;;
3249     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3255 done
3256
3257        ;;
3258   esac
3259   # We did not find ourselves, most probably we were run as `sh COMMAND'
3260   # in which case we are not to be found in the path.
3261   if test "x$as_myself" = x; then
3262     as_myself=$0
3263   fi
3264   if test ! -f "$as_myself"; then
3265     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3266 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3267    { (exit 1); exit 1; }; }
3268   fi
3269   case $CONFIG_SHELL in
3270   '')
3271     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276   for as_base in sh bash ksh sh5; do
3277          case $as_dir in
3278          /*)
3279            if ("$as_dir/$as_base" -c '
3280   as_lineno_1=$LINENO
3281   as_lineno_2=$LINENO
3282   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3283   test "x$as_lineno_1" != "x$as_lineno_2" &&
3284   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3285              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3286              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3287              CONFIG_SHELL=$as_dir/$as_base
3288              export CONFIG_SHELL
3289              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3290            fi;;
3291          esac
3292        done
3293 done
3294 ;;
3295   esac
3296
3297   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3298   # uniformly replaced by the line number.  The first 'sed' inserts a
3299   # line-number line before each line; the second 'sed' does the real
3300   # work.  The second script uses 'N' to pair each line-number line
3301   # with the numbered line, and appends trailing '-' during
3302   # substitution so that $LINENO is not a special case at line end.
3303   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3304   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3305   sed '=' <$as_myself |
3306     sed '
3307       N
3308       s,$,-,
3309       : loop
3310       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3311       t loop
3312       s,-$,,
3313       s,^['$as_cr_digits']*\n,,
3314     ' >$as_me.lineno &&
3315   chmod +x $as_me.lineno ||
3316     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3317 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3318    { (exit 1); exit 1; }; }
3319
3320   # Don't try to exec as it changes $[0], causing all sort of problems
3321   # (the dirname of $[0] is not the place where we might find the
3322   # original and so on.  Autoconf is especially sensible to this).
3323   . ./$as_me.lineno
3324   # Exit status is that of the last command.
3325   exit
3326 }
3327
3328
3329 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3330   *c*,-n*) ECHO_N= ECHO_C='
3331 ' ECHO_T='      ' ;;
3332   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3333   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3334 esac
3335
3336 if expr a : '\(a\)' >/dev/null 2>&1; then
3337   as_expr=expr
3338 else
3339   as_expr=false
3340 fi
3341
3342 rm -f conf$$ conf$$.exe conf$$.file
3343 echo >conf$$.file
3344 if ln -s conf$$.file conf$$ 2>/dev/null; then
3345   # We could just check for DJGPP; but this test a) works b) is more generic
3346   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3347   if test -f conf$$.exe; then
3348     # Don't use ln at all; we don't have any links
3349     as_ln_s='cp -p'
3350   else
3351     as_ln_s='ln -s'
3352   fi
3353 elif ln conf$$.file conf$$ 2>/dev/null; then
3354   as_ln_s=ln
3355 else
3356   as_ln_s='cp -p'
3357 fi
3358 rm -f conf$$ conf$$.exe conf$$.file
3359
3360 if mkdir -p . 2>/dev/null; then
3361   as_mkdir_p=:
3362 else
3363   test -d ./-p && rmdir ./-p
3364   as_mkdir_p=false
3365 fi
3366
3367 as_executable_p="test -f"
3368
3369 # Sed expression to map a string onto a valid CPP name.
3370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3371
3372 # Sed expression to map a string onto a valid variable name.
3373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3374
3375
3376 # IFS
3377 # We need space, tab and new line, in precisely that order.
3378 as_nl='
3379 '
3380 IFS="   $as_nl"
3381
3382 # CDPATH.
3383 $as_unset CDPATH
3384
3385 exec 6>&1
3386
3387 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3388 # report actual input values of CONFIG_FILES etc. instead of their
3389 # values after options handling.  Logging --version etc. is OK.
3390 exec 5>>config.log
3391 {
3392   echo
3393   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3394 ## Running $as_me. ##
3395 _ASBOX
3396 } >&5
3397 cat >&5 <<_CSEOF
3398
3399 This file was extended by $as_me, which was
3400 generated by GNU Autoconf 2.59.  Invocation command line was
3401
3402   CONFIG_FILES    = $CONFIG_FILES
3403   CONFIG_HEADERS  = $CONFIG_HEADERS
3404   CONFIG_LINKS    = $CONFIG_LINKS
3405   CONFIG_COMMANDS = $CONFIG_COMMANDS
3406   $ $0 $@
3407
3408 _CSEOF
3409 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3410 echo >&5
3411 _ACEOF
3412
3413 # Files that config.status was made for.
3414 if test -n "$ac_config_files"; then
3415   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3416 fi
3417
3418 if test -n "$ac_config_headers"; then
3419   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3420 fi
3421
3422 if test -n "$ac_config_links"; then
3423   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3424 fi
3425
3426 if test -n "$ac_config_commands"; then
3427   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3428 fi
3429
3430 cat >>$CONFIG_STATUS <<\_ACEOF
3431
3432 ac_cs_usage="\
3433 \`$as_me' instantiates files from templates according to the
3434 current configuration.
3435
3436 Usage: $0 [OPTIONS] [FILE]...
3437
3438   -h, --help       print this help, then exit
3439   -V, --version    print version number, then exit
3440   -q, --quiet      do not print progress messages
3441   -d, --debug      don't remove temporary files
3442       --recheck    update $as_me by reconfiguring in the same conditions
3443   --file=FILE[:TEMPLATE]
3444                    instantiate the configuration file FILE
3445   --header=FILE[:TEMPLATE]
3446                    instantiate the configuration header FILE
3447
3448 Configuration files:
3449 $config_files
3450
3451 Configuration headers:
3452 $config_headers
3453
3454 Report bugs to <bug-autoconf@gnu.org>."
3455 _ACEOF
3456
3457 cat >>$CONFIG_STATUS <<_ACEOF
3458 ac_cs_version="\\
3459 config.status
3460 configured by $0, generated by GNU Autoconf 2.59,
3461   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3462
3463 Copyright (C) 2003 Free Software Foundation, Inc.
3464 This config.status script is free software; the Free Software Foundation
3465 gives unlimited permission to copy, distribute and modify it."
3466 srcdir=$srcdir
3467 _ACEOF
3468
3469 cat >>$CONFIG_STATUS <<\_ACEOF
3470 # If no file are specified by the user, then we need to provide default
3471 # value.  By we need to know if files were specified by the user.
3472 ac_need_defaults=:
3473 while test $# != 0
3474 do
3475   case $1 in
3476   --*=*)
3477     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3478     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3479     ac_shift=:
3480     ;;
3481   -*)
3482     ac_option=$1
3483     ac_optarg=$2
3484     ac_shift=shift
3485     ;;
3486   *) # This is not an option, so the user has probably given explicit
3487      # arguments.
3488      ac_option=$1
3489      ac_need_defaults=false;;
3490   esac
3491
3492   case $ac_option in
3493   # Handling of the options.
3494 _ACEOF
3495 cat >>$CONFIG_STATUS <<\_ACEOF
3496   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3497     ac_cs_recheck=: ;;
3498   --version | --vers* | -V )
3499     echo "$ac_cs_version"; exit 0 ;;
3500   --he | --h)
3501     # Conflict between --help and --header
3502     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3503 Try \`$0 --help' for more information." >&5
3504 echo "$as_me: error: ambiguous option: $1
3505 Try \`$0 --help' for more information." >&2;}
3506    { (exit 1); exit 1; }; };;
3507   --help | --hel | -h )
3508     echo "$ac_cs_usage"; exit 0 ;;
3509   --debug | --d* | -d )
3510     debug=: ;;
3511   --file | --fil | --fi | --f )
3512     $ac_shift
3513     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3514     ac_need_defaults=false;;
3515   --header | --heade | --head | --hea )
3516     $ac_shift
3517     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3518     ac_need_defaults=false;;
3519   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3520   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3521     ac_cs_silent=: ;;
3522
3523   # This is an error.
3524   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3525 Try \`$0 --help' for more information." >&5
3526 echo "$as_me: error: unrecognized option: $1
3527 Try \`$0 --help' for more information." >&2;}
3528    { (exit 1); exit 1; }; } ;;
3529
3530   *) ac_config_targets="$ac_config_targets $1" ;;
3531
3532   esac
3533   shift
3534 done
3535
3536 ac_configure_extra_args=
3537
3538 if $ac_cs_silent; then
3539   exec 6>/dev/null
3540   ac_configure_extra_args="$ac_configure_extra_args --silent"
3541 fi
3542
3543 _ACEOF
3544 cat >>$CONFIG_STATUS <<_ACEOF
3545 if \$ac_cs_recheck; then
3546   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3547   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3548 fi
3549
3550 _ACEOF
3551
3552
3553
3554
3555
3556 cat >>$CONFIG_STATUS <<\_ACEOF
3557 for ac_config_target in $ac_config_targets
3558 do
3559   case "$ac_config_target" in
3560   # Handling of arguments.
3561   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3562   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3563   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3565    { (exit 1); exit 1; }; };;
3566   esac
3567 done
3568
3569 # If the user did not use the arguments to specify the items to instantiate,
3570 # then the envvar interface is used.  Set only those that are not.
3571 # We use the long form for the default assignment because of an extremely
3572 # bizarre bug on SunOS 4.1.3.
3573 if $ac_need_defaults; then
3574   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3575   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3576 fi
3577
3578 # Have a temporary directory for convenience.  Make it in the build tree
3579 # simply because there is no reason to put it here, and in addition,
3580 # creating and moving files from /tmp can sometimes cause problems.
3581 # Create a temporary directory, and hook for its removal unless debugging.
3582 $debug ||
3583 {
3584   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3585   trap '{ (exit 1); exit 1; }' 1 2 13 15
3586 }
3587
3588 # Create a (secure) tmp directory for tmp files.
3589
3590 {
3591   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3592   test -n "$tmp" && test -d "$tmp"
3593 }  ||
3594 {
3595   tmp=./confstat$$-$RANDOM
3596   (umask 077 && mkdir $tmp)
3597 } ||
3598 {
3599    echo "$me: cannot create a temporary directory in ." >&2
3600    { (exit 1); exit 1; }
3601 }
3602
3603 _ACEOF
3604
3605 cat >>$CONFIG_STATUS <<_ACEOF
3606
3607 #
3608 # CONFIG_FILES section.
3609 #
3610
3611 # No need to generate the scripts if there are no CONFIG_FILES.
3612 # This happens for instance when ./config.status config.h
3613 if test -n "\$CONFIG_FILES"; then
3614   # Protect against being on the right side of a sed subst in config.status.
3615   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3616    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3617 s,@SHELL@,$SHELL,;t t
3618 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3619 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3620 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3621 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3622 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3623 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3624 s,@exec_prefix@,$exec_prefix,;t t
3625 s,@prefix@,$prefix,;t t
3626 s,@program_transform_name@,$program_transform_name,;t t
3627 s,@bindir@,$bindir,;t t
3628 s,@sbindir@,$sbindir,;t t
3629 s,@libexecdir@,$libexecdir,;t t
3630 s,@datadir@,$datadir,;t t
3631 s,@sysconfdir@,$sysconfdir,;t t
3632 s,@sharedstatedir@,$sharedstatedir,;t t
3633 s,@localstatedir@,$localstatedir,;t t
3634 s,@libdir@,$libdir,;t t
3635 s,@includedir@,$includedir,;t t
3636 s,@oldincludedir@,$oldincludedir,;t t
3637 s,@infodir@,$infodir,;t t
3638 s,@mandir@,$mandir,;t t
3639 s,@build_alias@,$build_alias,;t t
3640 s,@host_alias@,$host_alias,;t t
3641 s,@target_alias@,$target_alias,;t t
3642 s,@DEFS@,$DEFS,;t t
3643 s,@ECHO_C@,$ECHO_C,;t t
3644 s,@ECHO_N@,$ECHO_N,;t t
3645 s,@ECHO_T@,$ECHO_T,;t t
3646 s,@LIBS@,$LIBS,;t t
3647 s,@CC@,$CC,;t t
3648 s,@CFLAGS@,$CFLAGS,;t t
3649 s,@LDFLAGS@,$LDFLAGS,;t t
3650 s,@CPPFLAGS@,$CPPFLAGS,;t t
3651 s,@ac_ct_CC@,$ac_ct_CC,;t t
3652 s,@EXEEXT@,$EXEEXT,;t t
3653 s,@OBJEXT@,$OBJEXT,;t t
3654 s,@CPP@,$CPP,;t t
3655 s,@EGREP@,$EGREP,;t t
3656 s,@pam_ldflags@,$pam_ldflags,;t t
3657 s,@pam_cflags@,$pam_cflags,;t t
3658 s,@targetname@,$targetname,;t t
3659 s,@LIBOBJS@,$LIBOBJS,;t t
3660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3661 CEOF
3662
3663 _ACEOF
3664
3665   cat >>$CONFIG_STATUS <<\_ACEOF
3666   # Split the substitutions into bite-sized pieces for seds with
3667   # small command number limits, like on Digital OSF/1 and HP-UX.
3668   ac_max_sed_lines=48
3669   ac_sed_frag=1 # Number of current file.
3670   ac_beg=1 # First line for current file.
3671   ac_end=$ac_max_sed_lines # Line after last line for current file.
3672   ac_more_lines=:
3673   ac_sed_cmds=
3674   while $ac_more_lines; do
3675     if test $ac_beg -gt 1; then
3676       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3677     else
3678       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3679     fi
3680     if test ! -s $tmp/subs.frag; then
3681       ac_more_lines=false
3682     else
3683       # The purpose of the label and of the branching condition is to
3684       # speed up the sed processing (if there are no `@' at all, there
3685       # is no need to browse any of the substitutions).
3686       # These are the two extra sed commands mentioned above.
3687       (echo ':t
3688   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3689       if test -z "$ac_sed_cmds"; then
3690         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3691       else
3692         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3693       fi
3694       ac_sed_frag=`expr $ac_sed_frag + 1`
3695       ac_beg=$ac_end
3696       ac_end=`expr $ac_end + $ac_max_sed_lines`
3697     fi
3698   done
3699   if test -z "$ac_sed_cmds"; then
3700     ac_sed_cmds=cat
3701   fi
3702 fi # test -n "$CONFIG_FILES"
3703
3704 _ACEOF
3705 cat >>$CONFIG_STATUS <<\_ACEOF
3706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3707   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3708   case $ac_file in
3709   - | *:- | *:-:* ) # input from stdin
3710         cat >$tmp/stdin
3711         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3712         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3713   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3715   * )   ac_file_in=$ac_file.in ;;
3716   esac
3717
3718   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3719   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3721          X"$ac_file" : 'X\(//\)[^/]' \| \
3722          X"$ac_file" : 'X\(//\)$' \| \
3723          X"$ac_file" : 'X\(/\)' \| \
3724          .     : '\(.\)' 2>/dev/null ||
3725 echo X"$ac_file" |
3726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3728           /^X\(\/\/\)$/{ s//\1/; q; }
3729           /^X\(\/\).*/{ s//\1/; q; }
3730           s/.*/./; q'`
3731   { if $as_mkdir_p; then
3732     mkdir -p "$ac_dir"
3733   else
3734     as_dir="$ac_dir"
3735     as_dirs=
3736     while test ! -d "$as_dir"; do
3737       as_dirs="$as_dir $as_dirs"
3738       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3740          X"$as_dir" : 'X\(//\)[^/]' \| \
3741          X"$as_dir" : 'X\(//\)$' \| \
3742          X"$as_dir" : 'X\(/\)' \| \
3743          .     : '\(.\)' 2>/dev/null ||
3744 echo X"$as_dir" |
3745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3747           /^X\(\/\/\)$/{ s//\1/; q; }
3748           /^X\(\/\).*/{ s//\1/; q; }
3749           s/.*/./; q'`
3750     done
3751     test ! -n "$as_dirs" || mkdir $as_dirs
3752   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3754    { (exit 1); exit 1; }; }; }
3755
3756   ac_builddir=.
3757
3758 if test "$ac_dir" != .; then
3759   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3760   # A "../" for each directory in $ac_dir_suffix.
3761   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3762 else
3763   ac_dir_suffix= ac_top_builddir=
3764 fi
3765
3766 case $srcdir in
3767   .)  # No --srcdir option.  We are building in place.
3768     ac_srcdir=.
3769     if test -z "$ac_top_builddir"; then
3770        ac_top_srcdir=.
3771     else
3772        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3773     fi ;;
3774   [\\/]* | ?:[\\/]* )  # Absolute path.
3775     ac_srcdir=$srcdir$ac_dir_suffix;
3776     ac_top_srcdir=$srcdir ;;
3777   *) # Relative path.
3778     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3779     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3780 esac
3781
3782 # Do not use `cd foo && pwd` to compute absolute paths, because
3783 # the directories may not exist.
3784 case `pwd` in
3785 .) ac_abs_builddir="$ac_dir";;
3786 *)
3787   case "$ac_dir" in
3788   .) ac_abs_builddir=`pwd`;;
3789   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3790   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3791   esac;;
3792 esac
3793 case $ac_abs_builddir in
3794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3795 *)
3796   case ${ac_top_builddir}. in
3797   .) ac_abs_top_builddir=$ac_abs_builddir;;
3798   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3799   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3800   esac;;
3801 esac
3802 case $ac_abs_builddir in
3803 .) ac_abs_srcdir=$ac_srcdir;;
3804 *)
3805   case $ac_srcdir in
3806   .) ac_abs_srcdir=$ac_abs_builddir;;
3807   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3808   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3809   esac;;
3810 esac
3811 case $ac_abs_builddir in
3812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3813 *)
3814   case $ac_top_srcdir in
3815   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3816   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3817   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3818   esac;;
3819 esac
3820
3821
3822
3823   if test x"$ac_file" != x-; then
3824     { echo "$as_me:$LINENO: creating $ac_file" >&5
3825 echo "$as_me: creating $ac_file" >&6;}
3826     rm -f "$ac_file"
3827   fi
3828   # Let's still pretend it is `configure' which instantiates (i.e., don't
3829   # use $as_me), people would be surprised to read:
3830   #    /* config.h.  Generated by config.status.  */
3831   if test x"$ac_file" = x-; then
3832     configure_input=
3833   else
3834     configure_input="$ac_file.  "
3835   fi
3836   configure_input=$configure_input"Generated from `echo $ac_file_in |
3837                                      sed 's,.*/,,'` by configure."
3838
3839   # First look for the input files in the build tree, otherwise in the
3840   # src tree.
3841   ac_file_inputs=`IFS=:
3842     for f in $ac_file_in; do
3843       case $f in
3844       -) echo $tmp/stdin ;;
3845       [\\/$]*)
3846          # Absolute (can't be DOS-style, as IFS=:)
3847          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3848 echo "$as_me: error: cannot find input file: $f" >&2;}
3849    { (exit 1); exit 1; }; }
3850          echo "$f";;
3851       *) # Relative
3852          if test -f "$f"; then
3853            # Build tree
3854            echo "$f"
3855          elif test -f "$srcdir/$f"; then
3856            # Source tree
3857            echo "$srcdir/$f"
3858          else
3859            # /dev/null tree
3860            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3861 echo "$as_me: error: cannot find input file: $f" >&2;}
3862    { (exit 1); exit 1; }; }
3863          fi;;
3864       esac
3865     done` || { (exit 1); exit 1; }
3866 _ACEOF
3867 cat >>$CONFIG_STATUS <<_ACEOF
3868   sed "$ac_vpsub
3869 $extrasub
3870 _ACEOF
3871 cat >>$CONFIG_STATUS <<\_ACEOF
3872 :t
3873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3874 s,@configure_input@,$configure_input,;t t
3875 s,@srcdir@,$ac_srcdir,;t t
3876 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3877 s,@top_srcdir@,$ac_top_srcdir,;t t
3878 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3879 s,@builddir@,$ac_builddir,;t t
3880 s,@abs_builddir@,$ac_abs_builddir,;t t
3881 s,@top_builddir@,$ac_top_builddir,;t t
3882 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3883 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3884   rm -f $tmp/stdin
3885   if test x"$ac_file" != x-; then
3886     mv $tmp/out $ac_file
3887   else
3888     cat $tmp/out
3889     rm -f $tmp/out
3890   fi
3891
3892 done
3893 _ACEOF
3894 cat >>$CONFIG_STATUS <<\_ACEOF
3895
3896 #
3897 # CONFIG_HEADER section.
3898 #
3899
3900 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3901 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3902 #
3903 # ac_d sets the value in "#define NAME VALUE" lines.
3904 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
3905 ac_dB='[         ].*$,\1#\2'
3906 ac_dC=' '
3907 ac_dD=',;t'
3908 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3909 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3910 ac_uB='$,\1#\2define\3'
3911 ac_uC=' '
3912 ac_uD=',;t'
3913
3914 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3915   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3916   case $ac_file in
3917   - | *:- | *:-:* ) # input from stdin
3918         cat >$tmp/stdin
3919         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3920         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3921   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3922         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3923   * )   ac_file_in=$ac_file.in ;;
3924   esac
3925
3926   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3927 echo "$as_me: creating $ac_file" >&6;}
3928
3929   # First look for the input files in the build tree, otherwise in the
3930   # src tree.
3931   ac_file_inputs=`IFS=:
3932     for f in $ac_file_in; do
3933       case $f in
3934       -) echo $tmp/stdin ;;
3935       [\\/$]*)
3936          # Absolute (can't be DOS-style, as IFS=:)
3937          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3938 echo "$as_me: error: cannot find input file: $f" >&2;}
3939    { (exit 1); exit 1; }; }
3940          # Do quote $f, to prevent DOS paths from being IFS'd.
3941          echo "$f";;
3942       *) # Relative
3943          if test -f "$f"; then
3944            # Build tree
3945            echo "$f"
3946          elif test -f "$srcdir/$f"; then
3947            # Source tree
3948            echo "$srcdir/$f"
3949          else
3950            # /dev/null tree
3951            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3952 echo "$as_me: error: cannot find input file: $f" >&2;}
3953    { (exit 1); exit 1; }; }
3954          fi;;
3955       esac
3956     done` || { (exit 1); exit 1; }
3957   # Remove the trailing spaces.
3958   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
3959
3960 _ACEOF
3961
3962 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3963 # `conftest.undefs', that substitutes the proper values into
3964 # config.h.in to produce config.h.  The first handles `#define'
3965 # templates, and the second `#undef' templates.
3966 # And first: Protect against being on the right side of a sed subst in
3967 # config.status.  Protect against being in an unquoted here document
3968 # in config.status.
3969 rm -f conftest.defines conftest.undefs
3970 # Using a here document instead of a string reduces the quoting nightmare.
3971 # Putting comments in sed scripts is not portable.
3972 #
3973 # `end' is used to avoid that the second main sed command (meant for
3974 # 0-ary CPP macros) applies to n-ary macro definitions.
3975 # See the Autoconf documentation for `clear'.
3976 cat >confdef2sed.sed <<\_ACEOF
3977 s/[\\&,]/\\&/g
3978 s,[\\$`],\\&,g
3979 t clear
3980 : clear
3981 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3982 t end
3983 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3984 : end
3985 _ACEOF
3986 # If some macros were called several times there might be several times
3987 # the same #defines, which is useless.  Nevertheless, we may not want to
3988 # sort them, since we want the *last* AC-DEFINE to be honored.
3989 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3990 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3991 rm -f confdef2sed.sed
3992
3993 # This sed command replaces #undef with comments.  This is necessary, for
3994 # example, in the case of _POSIX_SOURCE, which is predefined and required
3995 # on some systems where configure will not decide to define it.
3996 cat >>conftest.undefs <<\_ACEOF
3997 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3998 _ACEOF
3999
4000 # Break up conftest.defines because some shells have a limit on the size
4001 # of here documents, and old seds have small limits too (100 cmds).
4002 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4003 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4004 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4005 echo '  :' >>$CONFIG_STATUS
4006 rm -f conftest.tail
4007 while grep . conftest.defines >/dev/null
4008 do
4009   # Write a limited-size here document to $tmp/defines.sed.
4010   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4011   # Speed up: don't consider the non `#define' lines.
4012   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
4013   # Work around the forget-to-reset-the-flag bug.
4014   echo 't clr' >>$CONFIG_STATUS
4015   echo ': clr' >>$CONFIG_STATUS
4016   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4017   echo 'CEOF
4018   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4019   rm -f $tmp/in
4020   mv $tmp/out $tmp/in
4021 ' >>$CONFIG_STATUS
4022   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4023   rm -f conftest.defines
4024   mv conftest.tail conftest.defines
4025 done
4026 rm -f conftest.defines
4027 echo '  fi # grep' >>$CONFIG_STATUS
4028 echo >>$CONFIG_STATUS
4029
4030 # Break up conftest.undefs because some shells have a limit on the size
4031 # of here documents, and old seds have small limits too (100 cmds).
4032 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4033 rm -f conftest.tail
4034 while grep . conftest.undefs >/dev/null
4035 do
4036   # Write a limited-size here document to $tmp/undefs.sed.
4037   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4038   # Speed up: don't consider the non `#undef'
4039   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4040   # Work around the forget-to-reset-the-flag bug.
4041   echo 't clr' >>$CONFIG_STATUS
4042   echo ': clr' >>$CONFIG_STATUS
4043   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4044   echo 'CEOF
4045   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4046   rm -f $tmp/in
4047   mv $tmp/out $tmp/in
4048 ' >>$CONFIG_STATUS
4049   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4050   rm -f conftest.undefs
4051   mv conftest.tail conftest.undefs
4052 done
4053 rm -f conftest.undefs
4054
4055 cat >>$CONFIG_STATUS <<\_ACEOF
4056   # Let's still pretend it is `configure' which instantiates (i.e., don't
4057   # use $as_me), people would be surprised to read:
4058   #    /* config.h.  Generated by config.status.  */
4059   if test x"$ac_file" = x-; then
4060     echo "/* Generated by configure.  */" >$tmp/config.h
4061   else
4062     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4063   fi
4064   cat $tmp/in >>$tmp/config.h
4065   rm -f $tmp/in
4066   if test x"$ac_file" != x-; then
4067     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4068       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4069 echo "$as_me: $ac_file is unchanged" >&6;}
4070     else
4071       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4073          X"$ac_file" : 'X\(//\)[^/]' \| \
4074          X"$ac_file" : 'X\(//\)$' \| \
4075          X"$ac_file" : 'X\(/\)' \| \
4076          .     : '\(.\)' 2>/dev/null ||
4077 echo X"$ac_file" |
4078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4080           /^X\(\/\/\)$/{ s//\1/; q; }
4081           /^X\(\/\).*/{ s//\1/; q; }
4082           s/.*/./; q'`
4083       { if $as_mkdir_p; then
4084     mkdir -p "$ac_dir"
4085   else
4086     as_dir="$ac_dir"
4087     as_dirs=
4088     while test ! -d "$as_dir"; do
4089       as_dirs="$as_dir $as_dirs"
4090       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4092          X"$as_dir" : 'X\(//\)[^/]' \| \
4093          X"$as_dir" : 'X\(//\)$' \| \
4094          X"$as_dir" : 'X\(/\)' \| \
4095          .     : '\(.\)' 2>/dev/null ||
4096 echo X"$as_dir" |
4097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4098           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4099           /^X\(\/\/\)$/{ s//\1/; q; }
4100           /^X\(\/\).*/{ s//\1/; q; }
4101           s/.*/./; q'`
4102     done
4103     test ! -n "$as_dirs" || mkdir $as_dirs
4104   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4105 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4106    { (exit 1); exit 1; }; }; }
4107
4108       rm -f $ac_file
4109       mv $tmp/config.h $ac_file
4110     fi
4111   else
4112     cat $tmp/config.h
4113     rm -f $tmp/config.h
4114   fi
4115 done
4116 _ACEOF
4117
4118 cat >>$CONFIG_STATUS <<\_ACEOF
4119
4120 { (exit 0); exit 0; }
4121 _ACEOF
4122 chmod +x $CONFIG_STATUS
4123 ac_clean_files=$ac_clean_files_save
4124
4125
4126 # configure is writing to config.log, and then calls config.status.
4127 # config.status does its own redirection, appending to config.log.
4128 # Unfortunately, on DOS this fails, as config.log is still kept open
4129 # by configure, so config.status won't be able to write to it; its
4130 # output is simply discarded.  So we exec the FD to /dev/null,
4131 # effectively closing config.log, so it can be properly (re)opened and
4132 # appended to by config.status.  When coming back to configure, we
4133 # need to make the FD available again.
4134 if test "$no_create" != yes; then
4135   ac_cs_success=:
4136   ac_config_status_args=
4137   test "$silent" = yes &&
4138     ac_config_status_args="$ac_config_status_args --quiet"
4139   exec 5>/dev/null
4140   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4141   exec 5>>config.log
4142   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4143   # would make configure fail if this is the last instruction.
4144   $ac_cs_success || { (exit 1); exit 1; }
4145 fi
4146