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