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