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