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