source: trunk/yao/share/antlr-2.7.7/configure @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 242.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for antlr 2.7.7.
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS="   $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='antlr'
269PACKAGE_TARNAME='antlr'
270PACKAGE_VERSION='2.7.7'
271PACKAGE_STRING='antlr 2.7.7'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="LICENSE.txt"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 ANTLR_JAR ANTLR_LIB ANTLR_NET ANTLR_PY ASTFRAME_NET antlr_jar antlr_lib antlr_net antlr_py astframe_net ANTLRFLAGS ANTLR ANTLR_ACTION_FILES ANTLR_ANTLR_FILES ANTLR_COMPILE_CMD ANTLR_CYGWIN ANTLR_MINGW ANTLR_TOKDEF_FILES ANTLR_WIN32 ANTLR_WITH_ANTLR_CMD ANTLR_WITH_ANTLR_JAR ARFLAGS AR AS BOOTCLASSPATH CSHARPCFLAGS CSHARPC CSHARP_COMPILE_CMD CLR CXX_COMPILE_CMD CXX_LIB_CMD CXX_LINK_CMD CYGPATH C_COMPILE_CMD DEBUG EXEEXT JARFLAGS JAR JAR_CMD JAVACFLAGS JAVAC JAVAFLAGS JAVA JAVA_CMD JAVA_COMPILE_CMD LIBEXT MAKE OBJEXT PATCHLEVEL PYTHONFLAGS PYTHON SUBVERSION TIMESTAMP TOUCH VERBOSE VERSION WITH_EXAMPLES abs_this_builddir cxx jar java javac TAR RMF CP ECHO FIND STRONGNAME KEYFILE APTC build build_cpu build_vendor build_os host host_cpu host_vendor host_os CYGPATH_M CYGPATH_W just_make CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX CC CFLAGS ac_ct_CC CPP EGREP LIBOBJS DOXYGEN INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MKDIR RM CHMOD SED CAT GREP LTLIBOBJS'
313ac_subst_files='stdvars stddeps stdmake'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671              localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711         X"$0" : 'X\(//\)[^/]' \| \
712         X"$0" : 'X\(//\)$' \| \
713         X"$0" : 'X\(/\)' \| \
714         .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718          /^X\(\/\/\)$/{ s//\1/; q; }
719          /^X\(\/\).*/{ s//\1/; q; }
720          s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_ANTLRFLAGS_set=${ANTLRFLAGS+set}
754ac_env_ANTLRFLAGS_value=$ANTLRFLAGS
755ac_cv_env_ANTLRFLAGS_set=${ANTLRFLAGS+set}
756ac_cv_env_ANTLRFLAGS_value=$ANTLRFLAGS
757ac_env_MAKE_set=${MAKE+set}
758ac_env_MAKE_value=$MAKE
759ac_cv_env_MAKE_set=${MAKE+set}
760ac_cv_env_MAKE_value=$MAKE
761ac_env_JAVAC_set=${JAVAC+set}
762ac_env_JAVAC_value=$JAVAC
763ac_cv_env_JAVAC_set=${JAVAC+set}
764ac_cv_env_JAVAC_value=$JAVAC
765ac_env_JAVACFLAGS_set=${JAVACFLAGS+set}
766ac_env_JAVACFLAGS_value=$JAVACFLAGS
767ac_cv_env_JAVACFLAGS_set=${JAVACFLAGS+set}
768ac_cv_env_JAVACFLAGS_value=$JAVACFLAGS
769ac_env_JAVA_set=${JAVA+set}
770ac_env_JAVA_value=$JAVA
771ac_cv_env_JAVA_set=${JAVA+set}
772ac_cv_env_JAVA_value=$JAVA
773ac_env_JAVAFLAGS_set=${JAVAFLAGS+set}
774ac_env_JAVAFLAGS_value=$JAVAFLAGS
775ac_cv_env_JAVAFLAGS_set=${JAVAFLAGS+set}
776ac_cv_env_JAVAFLAGS_value=$JAVAFLAGS
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_LDFLAGS_set=${LDFLAGS+set}
786ac_env_LDFLAGS_value=$LDFLAGS
787ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
788ac_cv_env_LDFLAGS_value=$LDFLAGS
789ac_env_CPPFLAGS_set=${CPPFLAGS+set}
790ac_env_CPPFLAGS_value=$CPPFLAGS
791ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
792ac_cv_env_CPPFLAGS_value=$CPPFLAGS
793ac_env_CC_set=${CC+set}
794ac_env_CC_value=$CC
795ac_cv_env_CC_set=${CC+set}
796ac_cv_env_CC_value=$CC
797ac_env_CFLAGS_set=${CFLAGS+set}
798ac_env_CFLAGS_value=$CFLAGS
799ac_cv_env_CFLAGS_set=${CFLAGS+set}
800ac_cv_env_CFLAGS_value=$CFLAGS
801ac_env_CPP_set=${CPP+set}
802ac_env_CPP_value=$CPP
803ac_cv_env_CPP_set=${CPP+set}
804ac_cv_env_CPP_value=$CPP
805ac_env_PYTHON_set=${PYTHON+set}
806ac_env_PYTHON_value=$PYTHON
807ac_cv_env_PYTHON_set=${PYTHON+set}
808ac_cv_env_PYTHON_value=$PYTHON
809ac_env_PYTHONFLAGS_set=${PYTHONFLAGS+set}
810ac_env_PYTHONFLAGS_value=$PYTHONFLAGS
811ac_cv_env_PYTHONFLAGS_set=${PYTHONFLAGS+set}
812ac_cv_env_PYTHONFLAGS_value=$PYTHONFLAGS
813ac_env_CSHARPC_set=${CSHARPC+set}
814ac_env_CSHARPC_value=$CSHARPC
815ac_cv_env_CSHARPC_set=${CSHARPC+set}
816ac_cv_env_CSHARPC_value=$CSHARPC
817ac_env_CSHARPCFLAGS_set=${CSHARPCFLAGS+set}
818ac_env_CSHARPCFLAGS_value=$CSHARPCFLAGS
819ac_cv_env_CSHARPCFLAGS_set=${CSHARPCFLAGS+set}
820ac_cv_env_CSHARPCFLAGS_value=$CSHARPCFLAGS
821
822#
823# Report the --help message.
824#
825if test "$ac_init_help" = "long"; then
826  # Omit some internal or obsolete options to make the list less imposing.
827  # This message is too long to be a string in the A/UX 3.1 sh.
828  cat <<_ACEOF
829\`configure' configures antlr 2.7.7 to adapt to many kinds of systems.
830
831Usage: $0 [OPTION]... [VAR=VALUE]...
832
833To assign environment variables (e.g., CC, CFLAGS...), specify them as
834VAR=VALUE.  See below for descriptions of some of the useful variables.
835
836Defaults for the options are specified in brackets.
837
838Configuration:
839  -h, --help              display this help and exit
840      --help=short        display options specific to this package
841      --help=recursive    display the short help of all the included packages
842  -V, --version           display version information and exit
843  -q, --quiet, --silent   do not print \`checking...' messages
844      --cache-file=FILE   cache test results in FILE [disabled]
845  -C, --config-cache      alias for \`--cache-file=config.cache'
846  -n, --no-create         do not create output files
847      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
848
849_ACEOF
850
851  cat <<_ACEOF
852Installation directories:
853  --prefix=PREFIX         install architecture-independent files in PREFIX
854                          [$ac_default_prefix]
855  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
856                          [PREFIX]
857
858By default, \`make install' will install all the files in
859\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
860an installation prefix other than \`$ac_default_prefix' using \`--prefix',
861for instance \`--prefix=\$HOME'.
862
863For better control, use the options below.
864
865Fine tuning of the installation directories:
866  --bindir=DIR           user executables [EPREFIX/bin]
867  --sbindir=DIR          system admin executables [EPREFIX/sbin]
868  --libexecdir=DIR       program executables [EPREFIX/libexec]
869  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
870  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
871  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
872  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
873  --libdir=DIR           object code libraries [EPREFIX/lib]
874  --includedir=DIR       C header files [PREFIX/include]
875  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
876  --infodir=DIR          info documentation [PREFIX/info]
877  --mandir=DIR           man documentation [PREFIX/man]
878_ACEOF
879
880  cat <<\_ACEOF
881
882System types:
883  --build=BUILD     configure for building on BUILD [guessed]
884  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
885_ACEOF
886fi
887
888if test -n "$ac_init_help"; then
889  case $ac_init_help in
890     short | recursive ) echo "Configuration of antlr 2.7.7:";;
891   esac
892  cat <<\_ACEOF
893
894Optional Features:
895  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
896  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
897  --enable-java           enable or disable ANTLR for Java (enabled)
898
899  --enable-cxx            enable or disable ANTLR for C++ (enabled)
900
901  --enable-python         enable or disable ANTLR for Python (enabled).
902
903  --enable-csharp         enable or disable ANTLR for C# (enabled)
904
905  --enable-verbose        turn on verbosity when building package.
906
907  --enable-debug          set debug level - any value greater zero enables a
908                          debug version
909
910  --enable-examples       include examples into this configuration (enabled)
911
912  --enable-allow-partially-trusted-callers
913                          allow partially trusted callers (C#)
914
915
916Optional Packages:
917  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
918  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
919  --with-antlr-jar=ARG    use given file (antlr.jar) to bootstrap
920
921  --with-antlr-cmd=ARG    use given command to compile ANTLR grammar files
922                          while bootstrapping..
923
924  --with-strong-assemblies=ARG
925                          enable strong named assemblies by passing a keyfile
926                          holding a public/private key pair (only useful when
927                          building C#)
928
929  --with-bootclasspath=ARG
930                          use this option to set bootclasspath when using
931                          jikes. ARG is a white space seperated list of
932                          absolute file or directory names, typically
933                          /opt/jdk1.3/jre/lib/rt.jar. In most cases this
934                          option is not requird as configure tries to detect
935                          rt.jar itself. If configure fails or detects the
936                          wrong boot library you may use this option. Note
937                          that this option is only used when using jikes.
938
939  --with-cxx=ARG          given argument will override variable $CXX. For a
940                          detailed description of $CXX see below.
941
942  --with-cxxflags=ARG     given argument will override variable $CXXFLAGS. For
943                          a detailed description of $CXXFLAGS see below.
944
945  --with-make=ARG         given argument will override variable $MAKE. For a
946                          detailed description of $MAKE see below.
947
948  --with-makeflags=ARG    given argument will override variable $MAKEFLAGS.
949                          For a detailed description of $MAKEFLAGS see below.
950
951  --with-java=ARG         given argument will override variable $JAVA. For a
952                          detailed description of $JAVA see below.
953
954  --with-javaflags=ARG    given argument will override variable $JAVAFLAGS.
955                          For a detailed description of $JAVAFLAGS see below.
956
957  --with-javac=ARG        given argument will override variable $JAVAC. For a
958                          detailed description of $JAVAC see below.
959
960  --with-javacflags=ARG   given argument will override variable $JAVACFLAGS.
961                          For a detailed description of $JAVACFLAGS see below.
962
963  --with-jar=ARG          given argument will override variable $JAR. For a
964                          detailed description of $JAR see below.
965
966  --with-jarflags=ARG     given argument will override variable $JARFLAGS. For
967                          a detailed description of $JARFLAGS see below.
968
969  --with-python=ARG       given argument will override variable $PYTHON. For a
970                          detailed description of $PYTHON see below.
971
972  --with-pythonflags=ARG  given argument will override variable $PYTHONFLAGS.
973                          For a detailed description of $PYTHONFLAGS see
974                          below.
975
976  --with-csharpc=ARG      given argument will override variable $CSHARPC. For
977                          a detailed description of $CSHARPC see below.
978
979  --with-csharpcflags=ARG given argument will override variable $CSHARPCFLAGS.
980                          For a detailed description of $CSHARPCFLAGS see
981                          below.
982
983
984Some influential environment variables:
985  ANTLRFLAGS  Use environment variable ANTLRFLAGS to pass some extra flags to
986              antlr when compiling grammar (*.g) files.
987  MAKE        By default we search for "make", "gmake" and "gnumake" in your
988              PATH as well as "/bin/make" and "/usr/bin/make". You may
989              override this search by using enviromnent variable $MAKE. Note
990              that a GNU make is required to build this package. However, when
991              providing your own candidate a check for GNU make is skipped and
992              all bets are on.
993  JAVAC       By default we search for "jikes", "javac" and "gcj" in your
994              $PATH on how to comile Java source files. You may override this
995              search by using enviromnent variable $JAVAC. JAVAC may contain a
996              list of candidates, either as absolute path names or as a
997              relative one. In case a relative name is given, a search in
998              $PATH will take place, otherwise the absolute name is tried.
999  JAVACFLAGS  Environment variable JAVACFLAGS can be used to change or
1000              override all flags required to compile Java source files. Note
1001              that JAVACFLAGS understands the following: "+ flag1 flag2 .."
1002              append "flag1 flag2 .." to precomputed list "- flag1 flag2 .."
1003              prepend "flag1 flag2 .." to precomputed list "= flag1 flag2 ..
1004              override with flag1 flag2 ..". If there is a need to hardwire
1005              additional flags then edit scripts/javac.sh.in and run
1006              "CONFIG_FILES=scripts/javac.sh ./config.status" again.
1007  JAVA        By default we search for "java" and "gij" in your PATH on how to
1008              run Java class files. You may override this search by using
1009              enviromnent variable $JAVA. JAVA may contain a list of
1010              candidates, either as absolute path name or as a relative one.
1011              In case of a relative name, a search in $PATH will take place.
1012              Otherwise the absolute name will be accepted if existing.
1013  JAVAFLAGS   Shall contain all flags required to run Java class files. You
1014              may override by using environment variable JAVAFLAGS.
1015  CXX         C++ compiler command
1016  CXXFLAGS    C++ compiler flags
1017  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1018              nonstandard directory <lib dir>
1019  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020              headers in a nonstandard directory <include dir>
1021  CC          C compiler command
1022  CFLAGS      C compiler flags
1023  CPP         C preprocessor
1024  PYTHON      By default we search for "python" in $PATH to execute Python
1025              files. Override this by providing a list of candidates in
1026              environment variable $PYTHON and use whitespace as spereration
1027              character. A candidate can be either a relative or absolute path
1028              name. In the former case a lookup in $PATH takes place, in the
1029              latter, the absolute path name must exist.
1030  PYTHONFLAGS Shall contain all flags required to run Python. Override the
1031              default by using environment variable $PYTHONFLAGS.
1032  CSHARPC     By default we search for "cscc", "msc" and "csc" in $PATH to
1033              compile C# files. Override this by providing a list of
1034              candidates in environment variable $CSHARP and use whitespace as
1035              spereration character. A candidate can be either a relative or
1036              absolute path name. In the former case a lookup in $PATH takes
1037              place, in the latter, the absolute path name must exist.
1038  CSHARPCFLAGS
1039              Shall contain all flags required to compile a #C file. Override
1040              the default by using environment variable $CSHARPCFLAGS.
1041
1042Use these variables to override the choices made by `configure' or to help
1043it to find libraries and programs with nonstandard names/locations.
1044
1045_ACEOF
1046fi
1047
1048if test "$ac_init_help" = "recursive"; then
1049  # If there are subdirs, report their specific --help.
1050  ac_popdir=`pwd`
1051  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1052    test -d $ac_dir || continue
1053    ac_builddir=.
1054
1055if test "$ac_dir" != .; then
1056  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057  # A "../" for each directory in $ac_dir_suffix.
1058  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059else
1060  ac_dir_suffix= ac_top_builddir=
1061fi
1062
1063case $srcdir in
1064  .)  # No --srcdir option.  We are building in place.
1065    ac_srcdir=.
1066    if test -z "$ac_top_builddir"; then
1067       ac_top_srcdir=.
1068    else
1069       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070    fi ;;
1071  [\\/]* | ?:[\\/]* )  # Absolute path.
1072    ac_srcdir=$srcdir$ac_dir_suffix;
1073    ac_top_srcdir=$srcdir ;;
1074  *) # Relative path.
1075    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077esac
1078
1079# Do not use `cd foo && pwd` to compute absolute paths, because
1080# the directories may not exist.
1081case `pwd` in
1082.) ac_abs_builddir="$ac_dir";;
1083*)
1084  case "$ac_dir" in
1085  .) ac_abs_builddir=`pwd`;;
1086  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1087  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088  esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_builddir=${ac_top_builddir}.;;
1092*)
1093  case ${ac_top_builddir}. in
1094  .) ac_abs_top_builddir=$ac_abs_builddir;;
1095  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1096  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097  esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_srcdir=$ac_srcdir;;
1101*)
1102  case $ac_srcdir in
1103  .) ac_abs_srcdir=$ac_abs_builddir;;
1104  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1105  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106  esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_srcdir=$ac_top_srcdir;;
1110*)
1111  case $ac_top_srcdir in
1112  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1113  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1114  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1115  esac;;
1116esac
1117
1118    cd $ac_dir
1119    # Check for guested configure; otherwise get Cygnus style configure.
1120    if test -f $ac_srcdir/configure.gnu; then
1121      echo
1122      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1123    elif test -f $ac_srcdir/configure; then
1124      echo
1125      $SHELL $ac_srcdir/configure  --help=recursive
1126    elif test -f $ac_srcdir/configure.ac ||
1127           test -f $ac_srcdir/configure.in; then
1128      echo
1129      $ac_configure --help
1130    else
1131      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132    fi
1133    cd $ac_popdir
1134  done
1135fi
1136
1137test -n "$ac_init_help" && exit 0
1138if $ac_init_version; then
1139  cat <<\_ACEOF
1140antlr configure 2.7.7
1141generated by GNU Autoconf 2.59
1142
1143Copyright (C) 2003 Free Software Foundation, Inc.
1144This configure script is free software; the Free Software Foundation
1145gives unlimited permission to copy, distribute and modify it.
1146_ACEOF
1147  exit 0
1148fi
1149exec 5>config.log
1150cat >&5 <<_ACEOF
1151This file contains any messages produced by compilers while
1152running configure, to aid debugging if configure makes a mistake.
1153
1154It was created by antlr $as_me 2.7.7, which was
1155generated by GNU Autoconf 2.59.  Invocation command line was
1156
1157  $ $0 $@
1158
1159_ACEOF
1160{
1161cat <<_ASUNAME
1162## --------- ##
1163## Platform. ##
1164## --------- ##
1165
1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183_ASUNAME
1184
1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186for as_dir in $PATH
1187do
1188  IFS=$as_save_IFS
1189  test -z "$as_dir" && as_dir=.
1190  echo "PATH: $as_dir"
1191done
1192
1193} >&5
1194
1195cat >&5 <<_ACEOF
1196
1197
1198## ----------- ##
1199## Core tests. ##
1200## ----------- ##
1201
1202_ACEOF
1203
1204
1205# Keep a trace of the command line.
1206# Strip out --no-create and --no-recursion so they do not pile up.
1207# Strip out --silent because we don't want to record it for future runs.
1208# Also quote any args containing shell meta-characters.
1209# Make two passes to allow for proper duplicate-argument suppression.
1210ac_configure_args=
1211ac_configure_args0=
1212ac_configure_args1=
1213ac_sep=
1214ac_must_keep_next=false
1215for ac_pass in 1 2
1216do
1217  for ac_arg
1218  do
1219    case $ac_arg in
1220    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222    | -silent | --silent | --silen | --sile | --sil)
1223      continue ;;
1224    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226    esac
1227    case $ac_pass in
1228    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229    2)
1230      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231      if test $ac_must_keep_next = true; then
1232        ac_must_keep_next=false # Got value, back to normal.
1233      else
1234        case $ac_arg in
1235          *=* | --config-cache | -C | -disable-* | --disable-* \
1236          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238          | -with-* | --with-* | -without-* | --without-* | --x)
1239            case "$ac_configure_args0 " in
1240              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241            esac
1242            ;;
1243          -* ) ac_must_keep_next=true ;;
1244        esac
1245      fi
1246      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247      # Get rid of the leading space.
1248      ac_sep=" "
1249      ;;
1250    esac
1251  done
1252done
1253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256# When interrupted or exit'd, cleanup temporary files, and complete
1257# config.log.  We remove comments because anyway the quotes in there
1258# would cause problems or look ugly.
1259# WARNING: Be sure not to use single quotes in there, as some shells,
1260# such as our DU 5.0 friend, will then `close' the trap.
1261trap 'exit_status=$?
1262  # Save into config.log some information that might help in debugging.
1263  {
1264    echo
1265
1266    cat <<\_ASBOX
1267## ---------------- ##
1268## Cache variables. ##
1269## ---------------- ##
1270_ASBOX
1271    echo
1272    # The following way of writing the cache mishandles newlines in values,
1273{
1274  (set) 2>&1 |
1275    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276    *ac_space=\ *)
1277      sed -n \
1278        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280      ;;
1281    *)
1282      sed -n \
1283        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284      ;;
1285    esac;
1286}
1287    echo
1288
1289    cat <<\_ASBOX
1290## ----------------- ##
1291## Output variables. ##
1292## ----------------- ##
1293_ASBOX
1294    echo
1295    for ac_var in $ac_subst_vars
1296    do
1297      eval ac_val=$`echo $ac_var`
1298      echo "$ac_var='"'"'$ac_val'"'"'"
1299    done | sort
1300    echo
1301
1302    if test -n "$ac_subst_files"; then
1303      cat <<\_ASBOX
1304## ------------- ##
1305## Output files. ##
1306## ------------- ##
1307_ASBOX
1308      echo
1309      for ac_var in $ac_subst_files
1310      do
1311        eval ac_val=$`echo $ac_var`
1312        echo "$ac_var='"'"'$ac_val'"'"'"
1313      done | sort
1314      echo
1315    fi
1316
1317    if test -s confdefs.h; then
1318      cat <<\_ASBOX
1319## ----------- ##
1320## confdefs.h. ##
1321## ----------- ##
1322_ASBOX
1323      echo
1324      sed "/^$/d" confdefs.h | sort
1325      echo
1326    fi
1327    test "$ac_signal" != 0 &&
1328      echo "$as_me: caught signal $ac_signal"
1329    echo "$as_me: exit $exit_status"
1330  } >&5
1331  rm -f core *.core &&
1332  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333    exit $exit_status
1334     ' 0
1335for ac_signal in 1 2 13 15; do
1336  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337done
1338ac_signal=0
1339
1340# confdefs.h avoids OS command line length limits that DEFS can exceed.
1341rm -rf conftest* confdefs.h
1342# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343echo >confdefs.h
1344
1345# Predefined preprocessor variables.
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_NAME "$PACKAGE_NAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_VERSION "$PACKAGE_VERSION"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_STRING "$PACKAGE_STRING"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369_ACEOF
1370
1371
1372# Let the site file select an alternate cache file if it wants to.
1373# Prefer explicitly selected file to automatically selected ones.
1374if test -z "$CONFIG_SITE"; then
1375  if test "x$prefix" != xNONE; then
1376    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377  else
1378    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379  fi
1380fi
1381for ac_site_file in $CONFIG_SITE; do
1382  if test -r "$ac_site_file"; then
1383    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384echo "$as_me: loading site script $ac_site_file" >&6;}
1385    sed 's/^/| /' "$ac_site_file" >&5
1386    . "$ac_site_file"
1387  fi
1388done
1389
1390if test -r "$cache_file"; then
1391  # Some versions of bash will fail to source /dev/null (special
1392  # files actually), so we avoid doing that.
1393  if test -f "$cache_file"; then
1394    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395echo "$as_me: loading cache $cache_file" >&6;}
1396    case $cache_file in
1397      [\\/]* | ?:[\\/]* ) . $cache_file;;
1398      *)                      . ./$cache_file;;
1399    esac
1400  fi
1401else
1402  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403echo "$as_me: creating cache $cache_file" >&6;}
1404  >$cache_file
1405fi
1406
1407# Check that the precious variables saved in the cache have kept the same
1408# value.
1409ac_cache_corrupted=false
1410for ac_var in `(set) 2>&1 |
1411               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413  eval ac_new_set=\$ac_env_${ac_var}_set
1414  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415  eval ac_new_val="\$ac_env_${ac_var}_value"
1416  case $ac_old_set,$ac_new_set in
1417    set,)
1418      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420      ac_cache_corrupted=: ;;
1421    ,set)
1422      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424      ac_cache_corrupted=: ;;
1425    ,);;
1426    *)
1427      if test "x$ac_old_val" != "x$ac_new_val"; then
1428        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431echo "$as_me:   former value:  $ac_old_val" >&2;}
1432        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433echo "$as_me:   current value: $ac_new_val" >&2;}
1434        ac_cache_corrupted=:
1435      fi;;
1436  esac
1437  # Pass precious variables to config.status.
1438  if test "$ac_new_set" = set; then
1439    case $ac_new_val in
1440    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442    *) ac_arg=$ac_var=$ac_new_val ;;
1443    esac
1444    case " $ac_configure_args " in
1445      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447    esac
1448  fi
1449done
1450if $ac_cache_corrupted; then
1451  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455   { (exit 1); exit 1; }; }
1456fi
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491ac_aux_dir=
1492for ac_dir in scripts $srcdir/scripts; do
1493  if test -f $ac_dir/install-sh; then
1494    ac_aux_dir=$ac_dir
1495    ac_install_sh="$ac_aux_dir/install-sh -c"
1496    break
1497  elif test -f $ac_dir/install.sh; then
1498    ac_aux_dir=$ac_dir
1499    ac_install_sh="$ac_aux_dir/install.sh -c"
1500    break
1501  elif test -f $ac_dir/shtool; then
1502    ac_aux_dir=$ac_dir
1503    ac_install_sh="$ac_aux_dir/shtool install -c"
1504    break
1505  fi
1506done
1507if test -z "$ac_aux_dir"; then
1508  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1509echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1510   { (exit 1); exit 1; }; }
1511fi
1512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
1516
1517## This shall be the very first config file. Do not change
1518## this.
1519          ac_config_files="$ac_config_files scripts/config.vars"
1520
1521          ac_config_files="$ac_config_files scripts/config.deps"
1522
1523          ac_config_files="$ac_config_files scripts/config.make"
1524
1525
1526          ac_config_files="$ac_config_files antlr/Version.java"
1527
1528
1529
1530
1531
1532
1533## ANTLR's core libraries for each supporte language. The variable
1534## in  uppercase letters denotes the absolute name of the library.
1535## When in  lower  cases  letters - see below - the variable just
1536## holds the basename.
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606# create strong named assemblies [true|false(*)]
1607
1608# file containing public/private key pair for creating strong named
1609# assemblies (no default value)
1610
1611# Allow partially trusted callers (C#)
1612
1613
1614
1615## introduce package information as autoconf vars.
1616VERSION=`echo $PACKAGE_VERSION | cut -d . -f 1`
1617SUBVERSION=`echo $PACKAGE_VERSION | cut -d . -f 2`
1618PATCHLEVEL=`echo $PACKAGE_VERSION | cut -d . -f 3`
1619TIMESTAMP=`date +%Y%m%d`
1620
1621## @abs_this_builddir@  - absolute path to top of build directory.
1622## According to GNU autoconf we can rely on that there's a proper
1623## pwd around.
1624abs_this_builddir=`pwd`
1625
1626## This is how we compile Java files ..
1627JAVA_COMPILE_CMD="/bin/sh $abs_this_builddir/scripts/javac.sh"
1628
1629## This is how we run Java ..
1630JAVA_CMD="/bin/sh $abs_this_builddir/scripts/java.sh"
1631
1632## This is how we pack Java (class) files ..
1633JAR_CMD="/bin/sh $abs_this_builddir/scripts/jar.sh"
1634
1635## And this is how we are going to compile ANTLR grammar files ..
1636ANTLR_COMPILE_CMD="/bin/sh $abs_this_builddir/scripts/antlr.sh"
1637
1638## This is how we compile CSHARP files ..
1639CSHARP_COMPILE_CMD="/bin/sh $abs_this_builddir/scripts/csc.sh"
1640
1641## This is how we compile C++ files and how we are going to create
1642## libantlr.a or antlr.lib etc. ..
1643
1644CXX_COMPILE_CMD="/bin/sh $abs_this_builddir/scripts/cxx.sh"
1645CXX_LIB_CMD="/bin/sh $abs_this_builddir/scripts/lib.sh"
1646CXX_LINK_CMD="/bin/sh $abs_this_builddir/scripts/link.sh"
1647
1648C_COMPILE_CMD="/bin/sh $abs_this_builddir/scripts/c.sh"
1649
1650ANTLR_JAR="$abs_this_builddir/antlr/antlr.jar"
1651ANTLR_NET="$abs_this_builddir/lib/antlr.runtime.dll"
1652ASTFRAME_NET="$abs_this_builddir/lib/antlr.astframe.dll"
1653ANTLR_PY="$abs_this_builddir/lib/python/antlr/python.py"
1654
1655## Note: values might be overriden in C++ section.
1656OBJEXT=".o"
1657LIBEXT=".a"
1658ANTLR_LIB="$abs_this_builddir/lib/cpp/src/libantlr.a"
1659
1660stdvars="scripts/config.vars"
1661stddeps="scripts/config.deps"
1662stdmake="scripts/config.make"
1663
1664##
1665## option --enable-java
1666##
1667
1668    LANG_JAVA=1
1669    # Check whether --enable-java or --disable-java was given.
1670if test "${enable_java+set}" = set; then
1671  enableval="$enable_java"
1672
1673        LANG_JAVA="${enableval}"
1674        case "${LANG_JAVA}" in
1675          no|0|false) LANG_JAVA=0;;
1676          * )         LANG_JAVA=1;;
1677        esac
1678
1679
1680fi;
1681
1682
1683
1684##
1685## option --enable-cxx
1686##
1687
1688    LANG_CXX=1
1689    # Check whether --enable-cxx or --disable-cxx was given.
1690if test "${enable_cxx+set}" = set; then
1691  enableval="$enable_cxx"
1692
1693        LANG_CXX="${enableval}"
1694        case "${LANG_CXX}" in
1695          no|0|false) LANG_CXX=0;;
1696          * )         LANG_CXX=1;;
1697        esac
1698
1699
1700fi;
1701
1702
1703
1704##
1705## option --enable-python
1706##
1707
1708    LANG_PY=1
1709    # Check whether --enable-python or --disable-python was given.
1710if test "${enable_python+set}" = set; then
1711  enableval="$enable_python"
1712
1713        LANG_PY="${enableval}"
1714        case "${LANG_PY}" in
1715          no|0|false) LANG_PY=0;;
1716          * )         LANG_PY=1;;
1717        esac
1718
1719
1720fi;
1721
1722
1723
1724##
1725## option --enable-csharp
1726##
1727
1728    LANG_CS=1
1729    # Check whether --enable-csharp or --disable-csharp was given.
1730if test "${enable_csharp+set}" = set; then
1731  enableval="$enable_csharp"
1732
1733        LANG_CS="${enableval}"
1734        case "${LANG_CS}" in
1735          no|0|false) LANG_CS=0;;
1736          * )         LANG_CS=1;;
1737        esac
1738
1739
1740fi;
1741
1742
1743
1744##
1745## option --enable-verbose=<level>
1746##
1747
1748    VERBOSE=0
1749    # Check whether --enable-verbose or --disable-verbose was given.
1750if test "${enable_verbose+set}" = set; then
1751  enableval="$enable_verbose"
1752
1753        VERBOSE="${enableval}"
1754        case "${VERBOSE}" in
1755          no|0|false) VERBOSE=0;;
1756          * )         VERBOSE=1;;
1757        esac
1758
1759
1760fi;
1761
1762
1763
1764##
1765## option --enable-debug=<level>
1766##
1767
1768    DEBUG=0
1769    # Check whether --enable-debug or --disable-debug was given.
1770if test "${enable_debug+set}" = set; then
1771  enableval="$enable_debug"
1772
1773        DEBUG="${enableval}"
1774        case "${DEBUG}" in
1775          no|0|false) DEBUG=0;;
1776          * )         DEBUG=1;;
1777        esac
1778
1779
1780fi;
1781
1782
1783
1784##
1785## option --enable-examples
1786##
1787
1788WITH_EXAMPLES=1
1789
1790
1791    WITH_EXAMPLES=1
1792    # Check whether --enable-examples or --disable-examples was given.
1793if test "${enable_examples+set}" = set; then
1794  enableval="$enable_examples"
1795
1796        WITH_EXAMPLES="${enableval}"
1797        case "${WITH_EXAMPLES}" in
1798          no|0|false) WITH_EXAMPLES=0;;
1799          * )         WITH_EXAMPLES=1;;
1800        esac
1801
1802
1803fi;
1804
1805
1806
1807##
1808## option --enable-allow-partially-trusted-callers
1809##
1810
1811APTC=1
1812
1813
1814    APTC=1
1815    # Check whether --enable-allow-partially-trusted-callers or --disable-allow-partially-trusted-callers was given.
1816if test "${enable_allow_partially_trusted_callers+set}" = set; then
1817  enableval="$enable_allow_partially_trusted_callers"
1818
1819        APTC="${enableval}"
1820        case "${APTC}" in
1821          no|0|false) APTC=0;;
1822          * )         APTC=1;;
1823        esac
1824
1825
1826fi;
1827
1828
1829
1830case $APTC in
1831  0) APTC=false ;;
1832  *) APTC=true  ;;
1833esac
1834
1835
1836##
1837## option --with-antlr-jar
1838##
1839ANTLR_WITH_ANTLR_JAR=""
1840
1841
1842# Check whether --with-antlr-jar or --without-antlr-jar was given.
1843if test "${with_antlr_jar+set}" = set; then
1844  withval="$with_antlr_jar"
1845
1846    if test -n "${ANTLR_WITH_ANTLR_CMD}" ; then
1847      opts="--with-antlr-jar,--with-antlr-cmd"
1848      { { echo "$as_me:$LINENO: error: this configuration options mutually exclusive: $opts" >&5
1849echo "$as_me: error: this configuration options mutually exclusive: $opts" >&2;}
1850   { (exit 1); exit 1; }; }
1851    fi
1852    ANTLR_WITH_ANTLR_JAR="${withval}"
1853
1854fi;
1855
1856##
1857## option --with-antlr-cmd
1858##
1859ANTLR_WITH_ANTLR_CMD=""
1860
1861
1862# Check whether --with-antlr-cmd or --without-antlr-cmd was given.
1863if test "${with_antlr_cmd+set}" = set; then
1864  withval="$with_antlr_cmd"
1865
1866    if test -n "${ANTLR_WITH_ANTLR_JAR}" ; then
1867      opts="--with-antlr-jar,--with-antlr-cmd"
1868      { { echo "$as_me:$LINENO: error: this configuration options mutually exclusive: $opts" >&5
1869echo "$as_me: error: this configuration options mutually exclusive: $opts" >&2;}
1870   { (exit 1); exit 1; }; }
1871    fi
1872    ANTLR_WITH_ANTLR_CMD="${withval}"
1873
1874
1875fi;
1876
1877##
1878## option --with-strong-assemblies
1879##
1880STRONGNAME=false
1881KEYFILE=
1882
1883
1884# Check whether --with-strong-assemblies or --without-strong-assemblies was given.
1885if test "${with_strong_assemblies+set}" = set; then
1886  withval="$with_strong_assemblies"
1887
1888    STRONGNAME=true
1889    KEYFILE="${withval}"
1890
1891
1892fi;
1893
1894
1895# Check whether --with-bootclasspath or --without-bootclasspath was given.
1896if test "${with_bootclasspath+set}" = set; then
1897  withval="$with_bootclasspath"
1898
1899    BOOTCLASSPATH="${withval}"
1900
1901
1902fi;
1903
1904
1905
1906# Check whether --with-cxx or --without-cxx was given.
1907if test "${with_cxx+set}" = set; then
1908  withval="$with_cxx"
1909  CXX="${withval}"
1910
1911fi;
1912
1913# Check whether --with-cxxflags or --without-cxxflags was given.
1914if test "${with_cxxflags+set}" = set; then
1915  withval="$with_cxxflags"
1916  CXXFLAGS="${withval}"
1917
1918fi;
1919
1920
1921
1922
1923
1924# Check whether --with-make or --without-make was given.
1925if test "${with_make+set}" = set; then
1926  withval="$with_make"
1927  MAKE="${withval}"
1928
1929fi;
1930
1931# Check whether --with-makeflags or --without-makeflags was given.
1932if test "${with_makeflags+set}" = set; then
1933  withval="$with_makeflags"
1934  MAKEFLAGS="${withval}"
1935
1936fi;
1937
1938
1939
1940
1941
1942# Check whether --with-java or --without-java was given.
1943if test "${with_java+set}" = set; then
1944  withval="$with_java"
1945  JAVA="${withval}"
1946
1947fi;
1948
1949# Check whether --with-javaflags or --without-javaflags was given.
1950if test "${with_javaflags+set}" = set; then
1951  withval="$with_javaflags"
1952  JAVAFLAGS="${withval}"
1953
1954fi;
1955
1956
1957
1958
1959
1960# Check whether --with-javac or --without-javac was given.
1961if test "${with_javac+set}" = set; then
1962  withval="$with_javac"
1963  JAVAC="${withval}"
1964
1965fi;
1966
1967# Check whether --with-javacflags or --without-javacflags was given.
1968if test "${with_javacflags+set}" = set; then
1969  withval="$with_javacflags"
1970  JAVACFLAGS="${withval}"
1971
1972fi;
1973
1974
1975
1976
1977
1978# Check whether --with-jar or --without-jar was given.
1979if test "${with_jar+set}" = set; then
1980  withval="$with_jar"
1981  JAR="${withval}"
1982
1983fi;
1984
1985# Check whether --with-jarflags or --without-jarflags was given.
1986if test "${with_jarflags+set}" = set; then
1987  withval="$with_jarflags"
1988  JARFLAGS="${withval}"
1989
1990fi;
1991
1992
1993
1994
1995
1996# Check whether --with-python or --without-python was given.
1997if test "${with_python+set}" = set; then
1998  withval="$with_python"
1999  PYTHON="${withval}"
2000
2001fi;
2002
2003# Check whether --with-pythonflags or --without-pythonflags was given.
2004if test "${with_pythonflags+set}" = set; then
2005  withval="$with_pythonflags"
2006  PYTHONFLAGS="${withval}"
2007
2008fi;
2009
2010
2011
2012
2013
2014# Check whether --with-csharpc or --without-csharpc was given.
2015if test "${with_csharpc+set}" = set; then
2016  withval="$with_csharpc"
2017  CSHARPC="${withval}"
2018
2019fi;
2020
2021# Check whether --with-csharpcflags or --without-csharpcflags was given.
2022if test "${with_csharpcflags+set}" = set; then
2023  withval="$with_csharpcflags"
2024  CSHARPCFLAGS="${withval}"
2025
2026fi;
2027
2028
2029
2030#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2031#                     S T A R T   T E S T S                          #
2032#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2033
2034# get host_os set
2035# Make sure we can run config.sub.
2036$ac_config_sub sun4 >/dev/null 2>&1 ||
2037  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2038echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2039   { (exit 1); exit 1; }; }
2040
2041echo "$as_me:$LINENO: checking build system type" >&5
2042echo $ECHO_N "checking build system type... $ECHO_C" >&6
2043if test "${ac_cv_build+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  ac_cv_build_alias=$build_alias
2047test -z "$ac_cv_build_alias" &&
2048  ac_cv_build_alias=`$ac_config_guess`
2049test -z "$ac_cv_build_alias" &&
2050  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052   { (exit 1); exit 1; }; }
2053ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2054  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2055echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2056   { (exit 1); exit 1; }; }
2057
2058fi
2059echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060echo "${ECHO_T}$ac_cv_build" >&6
2061build=$ac_cv_build
2062build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2063build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2064build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2065
2066
2067echo "$as_me:$LINENO: checking host system type" >&5
2068echo $ECHO_N "checking host system type... $ECHO_C" >&6
2069if test "${ac_cv_host+set}" = set; then
2070  echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072  ac_cv_host_alias=$host_alias
2073test -z "$ac_cv_host_alias" &&
2074  ac_cv_host_alias=$ac_cv_build_alias
2075ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2076  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2077echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2078   { (exit 1); exit 1; }; }
2079
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082echo "${ECHO_T}$ac_cv_host" >&6
2083host=$ac_cv_host
2084host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2085host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2086host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2087
2088
2089
2090# Detect cygwin or mingw
2091ANTLR_CYGWIN=no
2092ANTLR_MINGW=no
2093
2094echo "$as_me:$LINENO: checking whether this is Cygwin" >&5
2095echo $ECHO_N "checking whether this is Cygwin... $ECHO_C" >&6
2096case $host_os in
2097   *cygwin* )
2098    ANTLR_CYGWIN=yes
2099    ;;
2100  *)
2101    echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6
2103  ;;
2104esac
2105
2106echo "$as_me:$LINENO: checking whether this is MinGW" >&5
2107echo $ECHO_N "checking whether this is MinGW... $ECHO_C" >&6
2108case $host_os in
2109   *mingw* )
2110    ANTLR_MINGW=yes
2111    ;;
2112  *)
2113    echo "$as_me:$LINENO: result: no" >&5
2114echo "${ECHO_T}no" >&6
2115  ;;
2116esac
2117
2118## Set common file extensions depending on OS we are running on.
2119## File extensions depend on C++/C compiler in use. This values
2120## are just guesses and redefined further below.
2121
2122case "${host_os}" in
2123  *mingw*|*cygwin*)
2124    OBJEXT=".o"
2125    LIBEXT=".a"
2126    EXEEXT=".exe"
2127    ;;
2128  *)
2129    OBJEXT=".o"
2130    LIBEXT=".a"
2131    EXEEXT=""
2132    ;;
2133esac
2134
2135## Test whether we have cygpath
2136test -z "$CYGPATH"    && for ac_prog in cygpath$EXEEXT
2137do
2138  # Extract the first word of "$ac_prog", so it can be a program name with args.
2139set dummy $ac_prog; ac_word=$2
2140echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142if test "${ac_cv_path_CYGPATH+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  case $CYGPATH in
2146  [\\/]* | ?:[\\/]*)
2147  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
2148  ;;
2149  *)
2150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153  IFS=$as_save_IFS
2154  test -z "$as_dir" && as_dir=.
2155  for ac_exec_ext in '' $ac_executable_extensions; do
2156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
2158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159    break 2
2160  fi
2161done
2162done
2163
2164  ;;
2165esac
2166fi
2167CYGPATH=$ac_cv_path_CYGPATH
2168
2169if test -n "$CYGPATH"; then
2170  echo "$as_me:$LINENO: result: $CYGPATH" >&5
2171echo "${ECHO_T}$CYGPATH" >&6
2172else
2173  echo "$as_me:$LINENO: result: no" >&5
2174echo "${ECHO_T}no" >&6
2175fi
2176
2177  test -n "$CYGPATH" && break
2178done
2179
2180
2181
2182
2183
2184if test -n "$CYGPATH" ; then
2185  CYGPATH_M="${CYGPATH} -m"
2186  CYGPATH_W="${CYGPATH} -w"
2187else
2188  CYGPATH_M="echo"
2189  CYGPATH_W="echo"
2190fi
2191
2192
2193
2194
2195    ax_arg_list="/bin/cp   /usr/bin/cp   cp"
2196    if test "x${CP}" != "x" ; then
2197      ax_arg_list="${CP}"
2198    fi
2199    CP=""
2200
2201    for ac_prog in ${ax_arg_list} ; do
2202      set dummy $ac_prog; ac_word=${2}
2203      ## if argument is absolute we check whether such a file exists,
2204      ## otherwise we lookup PATH. Each hit will be added to main
2205      ## variable.
2206      case $ac_word in
2207        [\\/]* | ?:[\\/]*)
2208          echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210          if test -f $ac_word ; then
2211            CP="${CP} ${ac_word}"
2212            echo "$as_me:$LINENO: result: yes" >&5
2213echo "${ECHO_T}yes" >&6
2214          else
2215            echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6
2217          fi
2218          ;;
2219        *)
2220          as_found=
2221          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222          for as_dir in $PATH
2223          do
2224           IFS=$as_save_IFS
2225           test -z "$as_dir" && as_dir=.
2226           for ac_exec_ext in '' $ac_executable_extensions; do
2227             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228               CP="${CP} $as_dir/$ac_word$ac_exec_ext"
2229               echo "$as_me:$LINENO: checking for $ac_word" >&5
2230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2232echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2233               as_found=1
2234             fi
2235           done
2236          done
2237          test "x$as_found" == "x" && {
2238            echo "$as_me:$LINENO: checking for $ac_word" >&5
2239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240            echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6
2242          }
2243          ;;
2244      esac
2245    done
2246
2247
2248    if test "x${CP}" != "x" ; then
2249      :
2250    else
2251
2252          { { echo "$as_me:$LINENO: error: no suitable value has been found for CP" >&5
2253echo "$as_me: error: no suitable value has been found for CP" >&2;}
2254   { (exit 1); exit 1; }; }
2255
2256    fi
2257
2258
2259
2260    ax_arg_list="/bin/echo /usr/bin/echo echo"
2261    if test "x${ECHO}" != "x" ; then
2262      ax_arg_list="${ECHO}"
2263    fi
2264    ECHO=""
2265
2266    for ac_prog in ${ax_arg_list} ; do
2267      set dummy $ac_prog; ac_word=${2}
2268      ## if argument is absolute we check whether such a file exists,
2269      ## otherwise we lookup PATH. Each hit will be added to main
2270      ## variable.
2271      case $ac_word in
2272        [\\/]* | ?:[\\/]*)
2273          echo "$as_me:$LINENO: checking for $ac_word" >&5
2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275          if test -f $ac_word ; then
2276            ECHO="${ECHO} ${ac_word}"
2277            echo "$as_me:$LINENO: result: yes" >&5
2278echo "${ECHO_T}yes" >&6
2279          else
2280            echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6
2282          fi
2283          ;;
2284        *)
2285          as_found=
2286          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287          for as_dir in $PATH
2288          do
2289           IFS=$as_save_IFS
2290           test -z "$as_dir" && as_dir=.
2291           for ac_exec_ext in '' $ac_executable_extensions; do
2292             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293               ECHO="${ECHO} $as_dir/$ac_word$ac_exec_ext"
2294               echo "$as_me:$LINENO: checking for $ac_word" >&5
2295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2297echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2298               as_found=1
2299             fi
2300           done
2301          done
2302          test "x$as_found" == "x" && {
2303            echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305            echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6
2307          }
2308          ;;
2309      esac
2310    done
2311
2312
2313    if test "x${ECHO}" != "x" ; then
2314      :
2315    else
2316
2317          { { echo "$as_me:$LINENO: error: no suitable value has been found for ECHO" >&5
2318echo "$as_me: error: no suitable value has been found for ECHO" >&2;}
2319   { (exit 1); exit 1; }; }
2320
2321    fi
2322
2323
2324
2325    ax_arg_list="/bin/find /usr/bin/find find"
2326    if test "x${FIND}" != "x" ; then
2327      ax_arg_list="${FIND}"
2328    fi
2329    FIND=""
2330
2331    for ac_prog in ${ax_arg_list} ; do
2332      set dummy $ac_prog; ac_word=${2}
2333      ## if argument is absolute we check whether such a file exists,
2334      ## otherwise we lookup PATH. Each hit will be added to main
2335      ## variable.
2336      case $ac_word in
2337        [\\/]* | ?:[\\/]*)
2338          echo "$as_me:$LINENO: checking for $ac_word" >&5
2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340          if test -f $ac_word ; then
2341            FIND="${FIND} ${ac_word}"
2342            echo "$as_me:$LINENO: result: yes" >&5
2343echo "${ECHO_T}yes" >&6
2344          else
2345            echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6
2347          fi
2348          ;;
2349        *)
2350          as_found=
2351          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352          for as_dir in $PATH
2353          do
2354           IFS=$as_save_IFS
2355           test -z "$as_dir" && as_dir=.
2356           for ac_exec_ext in '' $ac_executable_extensions; do
2357             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358               FIND="${FIND} $as_dir/$ac_word$ac_exec_ext"
2359               echo "$as_me:$LINENO: checking for $ac_word" >&5
2360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2362echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2363               as_found=1
2364             fi
2365           done
2366          done
2367          test "x$as_found" == "x" && {
2368            echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370            echo "$as_me:$LINENO: result: no" >&5
2371echo "${ECHO_T}no" >&6
2372          }
2373          ;;
2374      esac
2375    done
2376
2377
2378    if test "x${FIND}" != "x" ; then
2379      :
2380    else
2381
2382          { { echo "$as_me:$LINENO: error: no suitable value has been found for FIND" >&5
2383echo "$as_me: error: no suitable value has been found for FIND" >&2;}
2384   { (exit 1); exit 1; }; }
2385
2386    fi
2387
2388
2389
2390
2391    set x ${CP}
2392    CP="${2}"
2393
2394
2395
2396    set x ${ECHO}
2397    ECHO="${2}"
2398
2399
2400
2401    set x ${FIND}
2402    FIND="${2}"
2403
2404
2405
2406#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2407#                             MAKE                                   #
2408#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2409## Check whether there's a make program around. We search for a
2410## couple of well know names within $PATH. A user may skip this
2411## search by providing variable $MAKE.
2412
2413
2414## @MAKE@ shall contain absolut path name of make program found.
2415
2416## Search for well known make programs - take user given MAKE
2417## into account. The result will be a list of valid make prog-
2418## grams found and will be stored in variable MAKE.
2419user_make="${MAKE}"
2420
2421    ax_arg_list="make gmake gnumake /bin/make /usr/bin/make
2422"
2423    if test "x${MAKE}" != "x" ; then
2424      ax_arg_list="${MAKE}"
2425    fi
2426    MAKE=""
2427
2428    for ac_prog in ${ax_arg_list} ; do
2429      set dummy $ac_prog; ac_word=${2}
2430      ## if argument is absolute we check whether such a file exists,
2431      ## otherwise we lookup PATH. Each hit will be added to main
2432      ## variable.
2433      case $ac_word in
2434        [\\/]* | ?:[\\/]*)
2435          echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437          if test -f $ac_word ; then
2438            MAKE="${MAKE} ${ac_word}"
2439            echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441          else
2442            echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444          fi
2445          ;;
2446        *)
2447          as_found=
2448          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449          for as_dir in $PATH
2450          do
2451           IFS=$as_save_IFS
2452           test -z "$as_dir" && as_dir=.
2453           for ac_exec_ext in '' $ac_executable_extensions; do
2454             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455               MAKE="${MAKE} $as_dir/$ac_word$ac_exec_ext"
2456               echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2459echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2460               as_found=1
2461             fi
2462           done
2463          done
2464          test "x$as_found" == "x" && {
2465            echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2467            echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6
2469          }
2470          ;;
2471      esac
2472    done
2473
2474
2475    if test "x${MAKE}" != "x" ; then
2476      :
2477    else
2478
2479          { { echo "$as_me:$LINENO: error: no suitable value has been found for MAKE" >&5
2480echo "$as_me: error: no suitable value has been found for MAKE" >&2;}
2481   { (exit 1); exit 1; }; }
2482
2483    fi
2484
2485
2486
2487## right now we need to have a GNU make around, other makes are
2488## not supported and likely to fail.
2489if test "x${user_make}" == "x" ; then
2490
2491    #Search all the common names for GNU make
2492    ax_gnu_make_list="${MAKE}"
2493    MAKE=
2494    for a in . ${ax_gnu_make_list} ; do
2495      if test "$a" == "." ; then
2496        continue
2497      fi
2498      echo "$as_me:$LINENO: checking whether ${a} is GNU make" >&5
2499echo $ECHO_N "checking whether ${a} is GNU make... $ECHO_C" >&6
2500      if (/bin/sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null );  then
2501        MAKE="$a"
2502        echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6
2504        break
2505      else
2506        echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6
2508      fi
2509    done
2510    ## handle search result
2511    if test  "x${MAKE}" == "x"  ; then
2512      :
2513      { { echo "$as_me:$LINENO: error: package requires GNU make" >&5
2514echo "$as_me: error: package requires GNU make" >&2;}
2515   { (exit 1); exit 1; }; }
2516
2517    else
2518      :
2519
2520    fi
2521
2522
2523fi
2524
2525## we lookup 'make' in PATH. If the one found is not the same
2526## as the configured one we issue a warning message.
2527for ac_prog in make
2528do
2529  # Extract the first word of "$ac_prog", so it can be a program name with args.
2530set dummy $ac_prog; ac_word=$2
2531echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533if test "${ac_cv_path_just_make+set}" = set; then
2534  echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536  case $just_make in
2537  [\\/]* | ?:[\\/]*)
2538  ac_cv_path_just_make="$just_make" # Let the user override the test with a path.
2539  ;;
2540  *)
2541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546  for ac_exec_ext in '' $ac_executable_extensions; do
2547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548    ac_cv_path_just_make="$as_dir/$ac_word$ac_exec_ext"
2549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550    break 2
2551  fi
2552done
2553done
2554
2555  ;;
2556esac
2557fi
2558just_make=$ac_cv_path_just_make
2559
2560if test -n "$just_make"; then
2561  echo "$as_me:$LINENO: result: $just_make" >&5
2562echo "${ECHO_T}$just_make" >&6
2563else
2564  echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566fi
2567
2568  test -n "$just_make" && break
2569done
2570test -n "$just_make" || just_make="%"
2571
2572
2573case "${just_make}" in
2574  ${MAKE})
2575    ;;
2576  *)
2577              ac_config_commands="$ac_config_commands notice"
2578
2579  ;;
2580esac
2581
2582#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2583#                             JAVA                                   #
2584#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2585## @JAVAC@ shall contain absolut path name of javac program and
2586## similar to  CXXFLAGS, @JAVACFLAGS@ shall contain all options
2587## required to compile JAVA source files.
2588
2589
2590
2591## @JAVA@ shall contain absolut path name of java  program and
2592## similar to  CXXFLAGS, @JAVAFLAGS@ shall contain all options
2593## required to run JAVA class files.
2594
2595
2596
2597
2598
2599    case $LANG_JAVA in
2600      1)
2601
2602    ax_arg_list="java gij"
2603    if test "x${JAVA}" != "x" ; then
2604      ax_arg_list="${JAVA}"
2605    fi
2606    JAVA=""
2607
2608    for ac_prog in ${ax_arg_list} ; do
2609      set dummy $ac_prog; ac_word=${2}
2610      ## if argument is absolute we check whether such a file exists,
2611      ## otherwise we lookup PATH. Each hit will be added to main
2612      ## variable.
2613      case $ac_word in
2614        [\\/]* | ?:[\\/]*)
2615          echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617          if test -f $ac_word ; then
2618            JAVA="${JAVA} ${ac_word}"
2619            echo "$as_me:$LINENO: result: yes" >&5
2620echo "${ECHO_T}yes" >&6
2621          else
2622            echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6
2624          fi
2625          ;;
2626        *)
2627          as_found=
2628          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629          for as_dir in $PATH
2630          do
2631           IFS=$as_save_IFS
2632           test -z "$as_dir" && as_dir=.
2633           for ac_exec_ext in '' $ac_executable_extensions; do
2634             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635               JAVA="${JAVA} $as_dir/$ac_word$ac_exec_ext"
2636               echo "$as_me:$LINENO: checking for $ac_word" >&5
2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2639echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2640               as_found=1
2641             fi
2642           done
2643          done
2644          test "x$as_found" == "x" && {
2645            echo "$as_me:$LINENO: checking for $ac_word" >&5
2646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647            echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6
2649          }
2650          ;;
2651      esac
2652    done
2653
2654
2655    if test "x${JAVA}" != "x" ; then
2656
2657    set x ${JAVA}
2658    JAVA="${2}"
2659
2660
2661
2662    else
2663      LANG_JAVA=0
2664            cat <<EOF
2665
2666============================================================
2667Warning:
2668Support for JAVA has been disabled as I have not been able
2669locate to locate a mandatory program. Please change \$PATH or run
2670with option --help on how to overcome this problem.
2671============================================================
2672
2673EOF
2674
2675
2676    fi
2677
2678
2679        ;;
2680    esac
2681
2682
2683
2684    case $LANG_JAVA in
2685      1)
2686
2687    ax_arg_list="jikes javac gcj"
2688    if test "x${JAVAC}" != "x" ; then
2689      ax_arg_list="${JAVAC}"
2690    fi
2691    JAVAC=""
2692
2693    for ac_prog in ${ax_arg_list} ; do
2694      set dummy $ac_prog; ac_word=${2}
2695      ## if argument is absolute we check whether such a file exists,
2696      ## otherwise we lookup PATH. Each hit will be added to main
2697      ## variable.
2698      case $ac_word in
2699        [\\/]* | ?:[\\/]*)
2700          echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702          if test -f $ac_word ; then
2703            JAVAC="${JAVAC} ${ac_word}"
2704            echo "$as_me:$LINENO: result: yes" >&5
2705echo "${ECHO_T}yes" >&6
2706          else
2707            echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6
2709          fi
2710          ;;
2711        *)
2712          as_found=
2713          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714          for as_dir in $PATH
2715          do
2716           IFS=$as_save_IFS
2717           test -z "$as_dir" && as_dir=.
2718           for ac_exec_ext in '' $ac_executable_extensions; do
2719             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720               JAVAC="${JAVAC} $as_dir/$ac_word$ac_exec_ext"
2721               echo "$as_me:$LINENO: checking for $ac_word" >&5
2722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2724echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2725               as_found=1
2726             fi
2727           done
2728          done
2729          test "x$as_found" == "x" && {
2730            echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732            echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734          }
2735          ;;
2736      esac
2737    done
2738
2739
2740    if test "x${JAVAC}" != "x" ; then
2741
2742    set x ${JAVAC}
2743    JAVAC="${2}"
2744
2745
2746
2747    else
2748      LANG_JAVA=0
2749            cat <<EOF
2750
2751============================================================
2752Warning:
2753Support for JAVA has been disabled as I have not been able
2754locate to locate a mandatory program. Please change \$PATH or run
2755with option --help on how to overcome this problem.
2756============================================================
2757
2758EOF
2759
2760
2761    fi
2762
2763
2764        ;;
2765    esac
2766
2767
2768
2769    case $LANG_JAVA in
2770      1)
2771
2772    ax_arg_list="fastjar jar"
2773    if test "x${JAR}" != "x" ; then
2774      ax_arg_list="${JAR}"
2775    fi
2776    JAR=""
2777
2778    for ac_prog in ${ax_arg_list} ; do
2779      set dummy $ac_prog; ac_word=${2}
2780      ## if argument is absolute we check whether such a file exists,
2781      ## otherwise we lookup PATH. Each hit will be added to main
2782      ## variable.
2783      case $ac_word in
2784        [\\/]* | ?:[\\/]*)
2785          echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787          if test -f $ac_word ; then
2788            JAR="${JAR} ${ac_word}"
2789            echo "$as_me:$LINENO: result: yes" >&5
2790echo "${ECHO_T}yes" >&6
2791          else
2792            echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794          fi
2795          ;;
2796        *)
2797          as_found=
2798          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799          for as_dir in $PATH
2800          do
2801           IFS=$as_save_IFS
2802           test -z "$as_dir" && as_dir=.
2803           for ac_exec_ext in '' $ac_executable_extensions; do
2804             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805               JAR="${JAR} $as_dir/$ac_word$ac_exec_ext"
2806               echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
2809echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
2810               as_found=1
2811             fi
2812           done
2813          done
2814          test "x$as_found" == "x" && {
2815            echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817            echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6
2819          }
2820          ;;
2821      esac
2822    done
2823
2824
2825    if test "x${JAR}" != "x" ; then
2826
2827    set x ${JAR}
2828    JAR="${2}"
2829
2830
2831
2832
2833    else
2834      LANG_JAVA=0
2835            cat <<EOF
2836
2837============================================================
2838Warning:
2839Support for JAVA has been disabled as I have not been able
2840locate to locate a mandatory program. Please change \$PATH or run
2841with option --help on how to overcome this problem.
2842============================================================
2843
2844EOF
2845
2846
2847    fi
2848
2849
2850        ;;
2851    esac
2852
2853
2854
2855case $LANG_JAVA in
2856  1)
2857    jar="`basename $JAR`"
2858    jar="`echo ${jar}|sed 's,\..*$,,'`"
2859
2860    ## This macro tries to determine which javac compiler is
2861    ## being used. Well  known  compilers are gcj, jikes and
2862    ## javac. A unknown compiler is treated as  if javac has
2863    ## been  given  in  the  very, very naive  hope that all
2864    ## javac compiler have at least the same  options as the
2865    ## original, ie. javac.
2866    ## If your compiler is not in the list  and does not be-
2867    ## have like javac, then you need  to  extend this macro
2868    ## by writing a specialized test.
2869
2870
2871    if (/bin/sh -c "$JAVAC --version" 2>&1 | grep -i 'GCC' 2>&1 > /dev/null ) ; then
2872      javac=gcj
2873    elif (/bin/sh -c "$JAVAC --version" 2>&1 | grep -i 'jikes' 2>&1 > /dev/null ) ; then
2874      javac=jikes
2875    else
2876      javac=javac
2877    fi
2878
2879
2880    ## Jikes cannot live without having a Java around. Have
2881    ## therefore a look into  Java  installations found for
2882    ## a 'rt.jar'.
2883    test -n "${BOOTCLASSPATH}" && {
2884      for f in ${BOOTCLASSPATH} ; do
2885        echo "$as_me:$LINENO: checking bootclasspath \"$f\"" >&5
2886echo $ECHO_N "checking bootclasspath \"$f\"... $ECHO_C" >&6
2887        test -f "${f}" -o -d "${f}" || {
2888          echo "$as_me:$LINENO: result: does not exist" >&5
2889echo "${ECHO_T}does not exist" >&6
2890          { { echo "$as_me:$LINENO: error:
2891===================================================================
2892Please check arguments given to
2893  --with-bootclasspath
2894 or
2895  \${BOOTCLASSPATH}
2896Each argument must be a valid file or directory. Use whitespace to
2897seperate your args.
2898===================================================================
2899          " >&5
2900echo "$as_me: error:
2901===================================================================
2902Please check arguments given to
2903  --with-bootclasspath
2904 or
2905  \${BOOTCLASSPATH}
2906Each argument must be a valid file or directory. Use whitespace to
2907seperate your args.
2908===================================================================
2909          " >&2;}
2910   { (exit 1); exit 1; }; }
2911        }
2912        echo "$as_me:$LINENO: result: good" >&5
2913echo "${ECHO_T}good" >&6
2914      done
2915    }
2916    test -z "${BOOTCLASSPATH}" && {
2917      case "${javac}" in
2918        jikes)
2919          BOOTCLASSPATH=""
2920          set x ${JAVA}
2921          while test $# -gt 1 ; do
2922            x="$2" ; shift
2923            d=`dirname $x`
2924            test -d "$d" || continue
2925            d=`(cd $d && cd .. && pwd)`
2926            test -d "$d" || continue
2927            test -f "$d/jre/lib/rt.jar" && {
2928              BOOTCLASSPATH="$d/jre/lib/rt.jar"
2929              ## we need to try whether jikes accept .. (tbd)
2930              break
2931            }
2932            test -f "$d/lib/rt.jar" && {
2933              BOOTCLASSPATH="$d/lib/rt.jar"
2934              ## we need to try whether jikes accept .. (tbd)
2935              break
2936            }
2937          done
2938          ## go for some unusual locations (MacOS)
2939          test -z "${BOOTCLASSPATH}" && {
2940            fwdir=/System/Library/Frameworks/JavaVM.framework/Versions
2941            for x in 1.4.1 1.3.1 ; do
2942              if test -f "$fwdir/$x/Classes/classes.jar" ; then
2943                BOOTCLASSPATH="$fwdir/$x/Classes/classes.jar"
2944                break
2945              fi
2946            done
2947          }
2948          ## give up in case we can't set.
2949          test -z "${BOOTCLASSPATH}" && {
2950            { { echo "$as_me:$LINENO: error: Unable to set BOOTCLASSPATH - there is no rt.jar around." >&5
2951echo "$as_me: error: Unable to set BOOTCLASSPATH - there is no rt.jar around." >&2;}
2952   { (exit 1); exit 1; }; }
2953          }
2954          ;;
2955        *)
2956          BOOTCLASSPATH=""
2957          ;;
2958      esac
2959    }
2960    test -n "${BOOTCLASSPATH}" && {
2961      ## Finalize BOOTCLASSPATH. Depending on platform join arguments using
2962      ## a different seperator.
2963      case $build_os in
2964        cygwin)
2965          sep=";"
2966          ;;
2967        *)
2968          sep=":"
2969          ;;
2970      esac
2971      set x $BOOTCLASSPATH ; shift
2972      BOOTCLASSPATH="$1"
2973      shift
2974      while test $# -gt 0 ; do
2975        BOOTCLASSPATH="${BOOTCLASSPATH}${sep}${1}"
2976        shift
2977      done
2978    }
2979    ## Use Java first in list.
2980
2981    set x ${JAVA}
2982    JAVA="${2}"
2983
2984
2985
2986    ;;
2987esac
2988
2989#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2990#                             C++                                    #
2991#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
2992
2993case $LANG_CXX in
2994  1)
2995
2996    ax_arg_list="tlib lib ar /usr/bin/ar
2997    "
2998    if test "x${AR}" != "x" ; then
2999      ax_arg_list="${AR}"
3000    fi
3001    AR=""
3002
3003    for ac_prog in ${ax_arg_list} ; do
3004      set dummy $ac_prog; ac_word=${2}
3005      ## if argument is absolute we check whether such a file exists,
3006      ## otherwise we lookup PATH. Each hit will be added to main
3007      ## variable.
3008      case $ac_word in
3009        [\\/]* | ?:[\\/]*)
3010          echo "$as_me:$LINENO: checking for $ac_word" >&5
3011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012          if test -f $ac_word ; then
3013            AR="${AR} ${ac_word}"
3014            echo "$as_me:$LINENO: result: yes" >&5
3015echo "${ECHO_T}yes" >&6
3016          else
3017            echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
3019          fi
3020          ;;
3021        *)
3022          as_found=
3023          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024          for as_dir in $PATH
3025          do
3026           IFS=$as_save_IFS
3027           test -z "$as_dir" && as_dir=.
3028           for ac_exec_ext in '' $ac_executable_extensions; do
3029             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030               AR="${AR} $as_dir/$ac_word$ac_exec_ext"
3031               echo "$as_me:$LINENO: checking for $ac_word" >&5
3032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
3034echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
3035               as_found=1
3036             fi
3037           done
3038          done
3039          test "x$as_found" == "x" && {
3040            echo "$as_me:$LINENO: checking for $ac_word" >&5
3041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3042            echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
3044          }
3045          ;;
3046      esac
3047    done
3048
3049
3050    if test "x${AR}" != "x" ; then
3051      :
3052    else
3053
3054          { { echo "$as_me:$LINENO: error: no suitable value has been found for AR" >&5
3055echo "$as_me: error: no suitable value has been found for AR" >&2;}
3056   { (exit 1); exit 1; }; }
3057
3058    fi
3059
3060
3061    ## Try to figure out what C++ compiler shall be used. Note that CC
3062    ## clashes on cygwin. While CC is usually SUN's C++ compiler name,
3063    ## CC is also present on Cygwin - it's just an alias for gcc. The
3064    ## real alias is  actually  'cc'  but  names  are searched in non-
3065    ## sensitive manner. To solve this problem we  use  kind  of  hack
3066    ## here and list compilers availabe to known operating systems.
3067    case $build_os in
3068      cygwin*|mingw*)
3069        ## On Cygwin/Microsoft we are aware of Borland C++, Microsoft
3070        ## C++ and GNU.
3071        cxx_compiler_list="bcc32 cl g++"
3072                  # FIXME: for bcc32
3073                  c_compiler_list="cl gcc"
3074        ;;
3075      *)
3076        ## On other platforms we now HP C++ (aCC), IBM C++ (xlC*) and
3077        ## of  course GNU. If there's a GNU compiler around we prefer
3078        ## GNU. This avoids also  a  problem  with  vendors having CC
3079        ## a symbolic link to "gcc" instead of "g++".
3080        cxx_compiler_list="g++ aCC CC xlC xlC_r cxx c++"
3081                  # FIXME: for other unix flavours
3082                  c_compiler_list="cc gcc xlc_r acc"
3083        ;;
3084    esac
3085
3086    ## Find a compiler for me. If compiler is not in list you can al-
3087    ## ways override by using environment varialbe CXX.
3088    ac_ext=cc
3089ac_cpp='$CXXCPP $CPPFLAGS'
3090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3093if test -n "$ac_tool_prefix"; then
3094  for ac_prog in $CCC ${cxx_compiler_list}
3095  do
3096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098echo "$as_me:$LINENO: checking for $ac_word" >&5
3099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100if test "${ac_cv_prog_CXX+set}" = set; then
3101  echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103  if test -n "$CXX"; then
3104  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111  for ac_exec_ext in '' $ac_executable_extensions; do
3112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118done
3119
3120fi
3121fi
3122CXX=$ac_cv_prog_CXX
3123if test -n "$CXX"; then
3124  echo "$as_me:$LINENO: result: $CXX" >&5
3125echo "${ECHO_T}$CXX" >&6
3126else
3127  echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129fi
3130
3131    test -n "$CXX" && break
3132  done
3133fi
3134if test -z "$CXX"; then
3135  ac_ct_CXX=$CXX
3136  for ac_prog in $CCC ${cxx_compiler_list}
3137do
3138  # Extract the first word of "$ac_prog", so it can be a program name with args.
3139set dummy $ac_prog; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3143  echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145  if test -n "$ac_ct_CXX"; then
3146  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153  for ac_exec_ext in '' $ac_executable_extensions; do
3154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155    ac_cv_prog_ac_ct_CXX="$ac_prog"
3156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160done
3161
3162fi
3163fi
3164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3165if test -n "$ac_ct_CXX"; then
3166  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3167echo "${ECHO_T}$ac_ct_CXX" >&6
3168else
3169  echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173  test -n "$ac_ct_CXX" && break
3174done
3175test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3176
3177  CXX=$ac_ct_CXX
3178fi
3179
3180
3181# Provide some information about the compiler.
3182echo "$as_me:$LINENO:" \
3183     "checking for C++ compiler version" >&5
3184ac_compiler=`set X $ac_compile; echo $2`
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3186  (eval $ac_compiler --version </dev/null >&5) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }
3190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3191  (eval $ac_compiler -v </dev/null >&5) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }
3195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3196  (eval $ac_compiler -V </dev/null >&5) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200
3201cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h.  */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h.  */
3207
3208int
3209main ()
3210{
3211
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216ac_clean_files_save=$ac_clean_files
3217ac_clean_files="$ac_clean_files a.out a.exe b.out"
3218# Try to create an executable without -o first, disregard a.out.
3219# It will help us diagnose broken compilers, and finding out an intuition
3220# of exeext.
3221echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3222echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
3223ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3225  (eval $ac_link_default) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; then
3229  # Find the output, starting from the most likely.  This scheme is
3230# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3231# resort.
3232
3233# Be careful to initialize this variable, since it used to be cached.
3234# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3235ac_cv_exeext=
3236# b.out is created by i960 compilers.
3237for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3238do
3239  test -f "$ac_file" || continue
3240  case $ac_file in
3241    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3242        ;;
3243    conftest.$ac_ext )
3244        # This is the source file.
3245        ;;
3246    [ab].out )
3247        # We found the default executable, but exeext='' is most
3248        # certainly right.
3249        break;;
3250    *.* )
3251        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252        # FIXME: I believe we export ac_cv_exeext for Libtool,
3253        # but it would be cool to find out if it's true.  Does anybody
3254        # maintain Libtool? --akim.
3255        export ac_cv_exeext
3256        break;;
3257    * )
3258        break;;
3259  esac
3260done
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: C++ compiler cannot create executables
3268See \`config.log' for more details." >&2;}
3269   { (exit 77); exit 77; }; }
3270fi
3271
3272ac_exeext=$ac_cv_exeext
3273echo "$as_me:$LINENO: result: $ac_file" >&5
3274echo "${ECHO_T}$ac_file" >&6
3275
3276# Check the compiler produces executables we can run.  If not, either
3277# the compiler is broken, or we cross compile.
3278echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3279echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
3280# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3281# If not cross compiling, check that we can run a simple program.
3282if test "$cross_compiling" != yes; then
3283  if { ac_try='./$ac_file'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; }; then
3289    cross_compiling=no
3290  else
3291    if test "$cross_compiling" = maybe; then
3292        cross_compiling=yes
3293    else
3294        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3295If you meant to cross compile, use \`--host'.
3296See \`config.log' for more details." >&5
3297echo "$as_me: error: cannot run C++ compiled programs.
3298If you meant to cross compile, use \`--host'.
3299See \`config.log' for more details." >&2;}
3300   { (exit 1); exit 1; }; }
3301    fi
3302  fi
3303fi
3304echo "$as_me:$LINENO: result: yes" >&5
3305echo "${ECHO_T}yes" >&6
3306
3307rm -f a.out a.exe conftest$ac_cv_exeext b.out
3308ac_clean_files=$ac_clean_files_save
3309# Check the compiler produces executables we can run.  If not, either
3310# the compiler is broken, or we cross compile.
3311echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3312echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3313echo "$as_me:$LINENO: result: $cross_compiling" >&5
3314echo "${ECHO_T}$cross_compiling" >&6
3315
3316echo "$as_me:$LINENO: checking for suffix of executables" >&5
3317echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319  (eval $ac_link) 2>&5
3320  ac_status=$?
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); }; then
3323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3325# work properly (i.e., refer to `conftest.exe'), while it won't with
3326# `rm'.
3327for ac_file in conftest.exe conftest conftest.*; do
3328  test -f "$ac_file" || continue
3329  case $ac_file in
3330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332          export ac_cv_exeext
3333          break;;
3334    * ) break;;
3335  esac
3336done
3337else
3338  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3339See \`config.log' for more details." >&5
3340echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3341See \`config.log' for more details." >&2;}
3342   { (exit 1); exit 1; }; }
3343fi
3344
3345rm -f conftest$ac_cv_exeext
3346echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3347echo "${ECHO_T}$ac_cv_exeext" >&6
3348
3349rm -f conftest.$ac_ext
3350EXEEXT=$ac_cv_exeext
3351ac_exeext=$EXEEXT
3352echo "$as_me:$LINENO: checking for suffix of object files" >&5
3353echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3354if test "${ac_cv_objext+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  cat >conftest.$ac_ext <<_ACEOF
3358/* confdefs.h.  */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372rm -f conftest.o conftest.obj
3373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374  (eval $ac_compile) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; then
3378  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3381    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382       break;;
3383  esac
3384done
3385else
3386  echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3390See \`config.log' for more details." >&5
3391echo "$as_me: error: cannot compute suffix of object files: cannot compile
3392See \`config.log' for more details." >&2;}
3393   { (exit 1); exit 1; }; }
3394fi
3395
3396rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3399echo "${ECHO_T}$ac_cv_objext" >&6
3400OBJEXT=$ac_cv_objext
3401ac_objext=$OBJEXT
3402echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3403echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418       choke me
3419#endif
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427  (eval $ac_compile) 2>conftest.er1
3428  ac_status=$?
3429  grep -v '^ *+' conftest.er1 >conftest.err
3430  rm -f conftest.er1
3431  cat conftest.err >&5
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); } &&
3434         { ac_try='test -z "$ac_cxx_werror_flag"
3435                         || test ! -s conftest.err'
3436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); }; } &&
3441         { ac_try='test -s conftest.$ac_objext'
3442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443  (eval $ac_try) 2>&5
3444  ac_status=$?
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); }; }; then
3447  ac_compiler_gnu=yes
3448else
3449  echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_compiler_gnu=no
3453fi
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3460GXX=`test $ac_compiler_gnu = yes && echo yes`
3461ac_test_CXXFLAGS=${CXXFLAGS+set}
3462ac_save_CXXFLAGS=$CXXFLAGS
3463CXXFLAGS="-g"
3464echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3465echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3466if test "${ac_cv_prog_cxx_g+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486  (eval $ac_compile) 2>conftest.er1
3487  ac_status=$?
3488  grep -v '^ *+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); } &&
3493         { ac_try='test -z "$ac_cxx_werror_flag"
3494                         || test ! -s conftest.err'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; } &&
3500         { ac_try='test -s conftest.$ac_objext'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; }; then
3506  ac_cv_prog_cxx_g=yes
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511ac_cv_prog_cxx_g=no
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514fi
3515echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3516echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3517if test "$ac_test_CXXFLAGS" = set; then
3518  CXXFLAGS=$ac_save_CXXFLAGS
3519elif test $ac_cv_prog_cxx_g = yes; then
3520  if test "$GXX" = yes; then
3521    CXXFLAGS="-g -O2"
3522  else
3523    CXXFLAGS="-g"
3524  fi
3525else
3526  if test "$GXX" = yes; then
3527    CXXFLAGS="-O2"
3528  else
3529    CXXFLAGS=
3530  fi
3531fi
3532for ac_declaration in \
3533   '' \
3534   'extern "C" void std::exit (int) throw (); using std::exit;' \
3535   'extern "C" void std::exit (int); using std::exit;' \
3536   'extern "C" void exit (int) throw ();' \
3537   'extern "C" void exit (int);' \
3538   'void exit (int);'
3539do
3540  cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546$ac_declaration
3547#include <stdlib.h>
3548int
3549main ()
3550{
3551exit (42);
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558  (eval $ac_compile) 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } &&
3565         { ac_try='test -z "$ac_cxx_werror_flag"
3566                         || test ! -s conftest.err'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; } &&
3572         { ac_try='test -s conftest.$ac_objext'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; }; then
3578  :
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583continue
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586  cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592$ac_declaration
3593int
3594main ()
3595{
3596exit (42);
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_cxx_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest.$ac_objext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  break
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630done
3631rm -f conftest*
3632if test -n "$ac_declaration"; then
3633  echo '#ifdef __cplusplus' >>confdefs.h
3634  echo $ac_declaration      >>confdefs.h
3635  echo '#endif'             >>confdefs.h
3636fi
3637
3638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644    ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649if test -n "$ac_tool_prefix"; then
3650  for ac_prog in ${c_compiler_list}
3651  do
3652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654echo "$as_me:$LINENO: checking for $ac_word" >&5
3655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656if test "${ac_cv_prog_CC+set}" = set; then
3657  echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659  if test -n "$CC"; then
3660  ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667  for ac_exec_ext in '' $ac_executable_extensions; do
3668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674done
3675
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680  echo "$as_me:$LINENO: result: $CC" >&5
3681echo "${ECHO_T}$CC" >&6
3682else
3683  echo "$as_me:$LINENO: result: no" >&5
3684echo "${ECHO_T}no" >&6
3685fi
3686
3687    test -n "$CC" && break
3688  done
3689fi
3690if test -z "$CC"; then
3691  ac_ct_CC=$CC
3692  for ac_prog in ${c_compiler_list}
3693do
3694  # Extract the first word of "$ac_prog", so it can be a program name with args.
3695set dummy $ac_prog; ac_word=$2
3696echo "$as_me:$LINENO: checking for $ac_word" >&5
3697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  if test -n "$ac_ct_CC"; then
3702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707  IFS=$as_save_IFS
3708  test -z "$as_dir" && as_dir=.
3709  for ac_exec_ext in '' $ac_executable_extensions; do
3710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711    ac_cv_prog_ac_ct_CC="$ac_prog"
3712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713    break 2
3714  fi
3715done
3716done
3717
3718fi
3719fi
3720ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721if test -n "$ac_ct_CC"; then
3722  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3723echo "${ECHO_T}$ac_ct_CC" >&6
3724else
3725  echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727fi
3728
3729  test -n "$ac_ct_CC" && break
3730done
3731
3732  CC=$ac_ct_CC
3733fi
3734
3735
3736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3737See \`config.log' for more details." >&5
3738echo "$as_me: error: no acceptable C compiler found in \$PATH
3739See \`config.log' for more details." >&2;}
3740   { (exit 1); exit 1; }; }
3741
3742# Provide some information about the compiler.
3743echo "$as_me:$LINENO:" \
3744     "checking for C compiler version" >&5
3745ac_compiler=`set X $ac_compile; echo $2`
3746{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3747  (eval $ac_compiler --version </dev/null >&5) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }
3751{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3752  (eval $ac_compiler -v </dev/null >&5) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }
3756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3757  (eval $ac_compiler -V </dev/null >&5) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }
3761
3762echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3763echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3764if test "${ac_cv_c_compiler_gnu+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777#ifndef __GNUC__
3778       choke me
3779#endif
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787  (eval $ac_compile) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794         { ac_try='test -z "$ac_c_werror_flag"
3795                         || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801         { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  ac_compiler_gnu=yes
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812ac_compiler_gnu=no
3813fi
3814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815ac_cv_c_compiler_gnu=$ac_compiler_gnu
3816
3817fi
3818echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3819echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3820GCC=`test $ac_compiler_gnu = yes && echo yes`
3821ac_test_CFLAGS=${CFLAGS+set}
3822ac_save_CFLAGS=$CFLAGS
3823CFLAGS="-g"
3824echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3825echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3826if test "${ac_cv_prog_cc_g+set}" = set; then
3827  echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829  cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h.  */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846  (eval $ac_compile) 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } &&
3853         { ac_try='test -z "$ac_c_werror_flag"
3854                         || test ! -s conftest.err'
3855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856  (eval $ac_try) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; } &&
3860         { ac_try='test -s conftest.$ac_objext'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; }; then
3866  ac_cv_prog_cc_g=yes
3867else
3868  echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871ac_cv_prog_cc_g=no
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874fi
3875echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3876echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3877if test "$ac_test_CFLAGS" = set; then
3878  CFLAGS=$ac_save_CFLAGS
3879elif test $ac_cv_prog_cc_g = yes; then
3880  if test "$GCC" = yes; then
3881    CFLAGS="-g -O2"
3882  else
3883    CFLAGS="-g"
3884  fi
3885else
3886  if test "$GCC" = yes; then
3887    CFLAGS="-O2"
3888  else
3889    CFLAGS=
3890  fi
3891fi
3892echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3893echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3894if test "${ac_cv_prog_cc_stdc+set}" = set; then
3895  echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897  ac_cv_prog_cc_stdc=no
3898ac_save_CC=$CC
3899cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h.  */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h.  */
3905#include <stdarg.h>
3906#include <stdio.h>
3907#include <sys/types.h>
3908#include <sys/stat.h>
3909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3910struct buf { int x; };
3911FILE * (*rcsopen) (struct buf *, struct stat *, int);
3912static char *e (p, i)
3913     char **p;
3914     int i;
3915{
3916  return p[i];
3917}
3918static char *f (char * (*g) (char **, int), char **p, ...)
3919{
3920  char *s;
3921  va_list v;
3922  va_start (v,p);
3923  s = g (p, va_arg (v,int));
3924  va_end (v);
3925  return s;
3926}
3927
3928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3929   function prototypes and stuff, but not '\xHH' hex character constants.
3930   These don't provoke an error unfortunately, instead are silently treated
3931   as 'x'.  The following induces an error, until -std1 is added to get
3932   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3933   array size at least.  It's necessary to write '\x00'==0 to get something
3934   that's true only with -std1.  */
3935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3936
3937int test (int i, double x);
3938struct s1 {int (*f) (int a);};
3939struct s2 {int (*f) (double a);};
3940int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3941int argc;
3942char **argv;
3943int
3944main ()
3945{
3946return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951# Don't try gcc -ansi; that turns off useful extensions and
3952# breaks some systems' header files.
3953# AIX                   -qlanglvl=ansi
3954# Ultrix and OSF/1      -std1
3955# HP-UX 10.20 and later -Ae
3956# HP-UX older versions  -Aa -D_HPUX_SOURCE
3957# SVR4                  -Xc -D__EXTENSIONS__
3958for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959do
3960  CC="$ac_save_CC $ac_arg"
3961  rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963  (eval $ac_compile) 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } &&
3970         { ac_try='test -z "$ac_c_werror_flag"
3971                         || test ! -s conftest.err'
3972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973  (eval $ac_try) 2>&5
3974  ac_status=$?
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); }; } &&
3977         { ac_try='test -s conftest.$ac_objext'
3978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979  (eval $ac_try) 2>&5
3980  ac_status=$?
3981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982  (exit $ac_status); }; }; then
3983  ac_cv_prog_cc_stdc=$ac_arg
3984break
3985else
3986  echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989fi
3990rm -f conftest.err conftest.$ac_objext
3991done
3992rm -f conftest.$ac_ext conftest.$ac_objext
3993CC=$ac_save_CC
3994
3995fi
3996
3997case "x$ac_cv_prog_cc_stdc" in
3998  x|xno)
3999    echo "$as_me:$LINENO: result: none needed" >&5
4000echo "${ECHO_T}none needed" >&6 ;;
4001  *)
4002    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4003echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4004    CC="$CC $ac_cv_prog_cc_stdc" ;;
4005esac
4006
4007# Some people use a C++ compiler to compile C.  Since we use `exit',
4008# in C++ we need to declare it.  In case someone uses the same compiler
4009# for both compiling C and C++ we need to have the C++ compiler decide
4010# the declaration of exit, since it's the most demanding environment.
4011cat >conftest.$ac_ext <<_ACEOF
4012#ifndef __cplusplus
4013  choke me
4014#endif
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018  (eval $ac_compile) 2>conftest.er1
4019  ac_status=$?
4020  grep -v '^ *+' conftest.er1 >conftest.err
4021  rm -f conftest.er1
4022  cat conftest.err >&5
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); } &&
4025         { ac_try='test -z "$ac_c_werror_flag"
4026                         || test ! -s conftest.err'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; } &&
4032         { ac_try='test -s conftest.$ac_objext'
4033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034  (eval $ac_try) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; }; then
4038  for ac_declaration in \
4039   '' \
4040   'extern "C" void std::exit (int) throw (); using std::exit;' \
4041   'extern "C" void std::exit (int); using std::exit;' \
4042   'extern "C" void exit (int) throw ();' \
4043   'extern "C" void exit (int);' \
4044   'void exit (int);'
4045do
4046  cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h.  */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h.  */
4052$ac_declaration
4053#include <stdlib.h>
4054int
4055main ()
4056{
4057exit (42);
4058  ;
4059  return 0;
4060}
4061_ACEOF
4062rm -f conftest.$ac_objext
4063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064  (eval $ac_compile) 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } &&
4071         { ac_try='test -z "$ac_c_werror_flag"
4072                         || test ! -s conftest.err'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; } &&
4078         { ac_try='test -s conftest.$ac_objext'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; }; then
4084  :
4085else
4086  echo "$as_me: failed program was:" >&5
4087sed 's/^/| /' conftest.$ac_ext >&5
4088
4089continue
4090fi
4091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092  cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h.  */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h.  */
4098$ac_declaration
4099int
4100main ()
4101{
4102exit (42);
4103  ;
4104  return 0;
4105}
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109  (eval $ac_compile) 2>conftest.er1
4110  ac_status=$?
4111  grep -v '^ *+' conftest.er1 >conftest.err
4112  rm -f conftest.er1
4113  cat conftest.err >&5
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); } &&
4116         { ac_try='test -z "$ac_c_werror_flag"
4117                         || test ! -s conftest.err'
4118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119  (eval $ac_try) 2>&5
4120  ac_status=$?
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); }; } &&
4123         { ac_try='test -s conftest.$ac_objext'
4124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125  (eval $ac_try) 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; }; then
4129  break
4130else
4131  echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134fi
4135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136done
4137rm -f conftest*
4138if test -n "$ac_declaration"; then
4139  echo '#ifdef __cplusplus' >>confdefs.h
4140  echo $ac_declaration      >>confdefs.h
4141  echo '#endif'             >>confdefs.h
4142fi
4143
4144else
4145  echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150ac_ext=c
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
4156
4157    ## just  overrule what autoconf figured out - we never asked for
4158    ## this anyway. Our  handling  of compiler options is done below
4159    ## in the fine tuning section.
4160    CXXFLAGS=""
4161
4162    ## 'cxx'  shall  be  the canonical compiler name. For example, gcc
4163    ## cl, bcc, CC, etc. Note that this is in general not equal to CXX.
4164    ## For example, CYGWIN  appears to have c++ as name for g++ and cc
4165    ## as alias for gcc.
4166    ## CXX is used to call the compiler, 'cxx' shall be used for
4167    ## decisions based on compiler in use.
4168    cxx=""
4169
4170    if test "x$GXX" = xyes; then
4171      cxx="gcc"
4172    else
4173      cxx=`basename $CXX`
4174      cxx=`echo ${cxx}|sed 's,\.[^.]*$,,'`
4175    fi
4176
4177    case ${cxx} in
4178      gcc*)
4179        cxx='gcc'
4180        ;;
4181      cl*|CL*)
4182        cxx='cl'
4183        ## check whether this is Microsoft C++ (tbd)
4184        ;;
4185      bcc32*|BCC32*)
4186        cxx='bcc32'
4187        ## check whether this is Borland C++ (tbd)
4188        ;;
4189      CC*)
4190        ## check whether this is SUN C++ (tbd)
4191        cxx="CC"
4192        ;;
4193      xlC*|xlC_r*)
4194        cxx="xlC"
4195        ## check whether this is IBM C++ (tbd)
4196        ;;
4197      aCC*)
4198        cxx='aCC'
4199        ## check whether this is HP C++ (tbd)
4200        ;;
4201      cxx*)
4202        cxx='cxx'
4203        ## check for Digital UNIX cxx (Tru64)??
4204        ;;
4205      *)
4206        ## unknown compiler - good luck.
4207
4208    { echo "$as_me:$LINENO: WARNING:
4209%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4210          U N K N O W N  C++ COMPILER:  ${cxx}
4211============================================================
4212Compilation  is  very  likely to fail as we are not aware of
4213this compiler yet. In case of problems  please  try  to  set
4214additional flags by using environment variable CXXFLAGS.
4215
4216If CXXFLAGS does not help you, please edit either
4217
4218 ${srcdir}/scripts/cxx.sh.in   ; or
4219 ${srcdir}/scripts/link.sh.in
4220
4221Those scripts are getting called for compilation of all C++
4222source code (cxx.sh.in) or for linking binaries (link.sh.in).
4223
4224In very obscure cases, building the library may also fail.If
4225so, please try variable ARFLAGS or edit
4226
4227 ${srcdir}/scripts/lib.sh.in
4228
4229============================================================
4230
4231  *** PLEASE PROVIDE FEEDBACK TO antlr.org - THANK YOU ***
4232
4233%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4234" >&5
4235echo "$as_me: WARNING:
4236%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4237          U N K N O W N  C++ COMPILER:  ${cxx}
4238============================================================
4239Compilation  is  very  likely to fail as we are not aware of
4240this compiler yet. In case of problems  please  try  to  set
4241additional flags by using environment variable CXXFLAGS.
4242
4243If CXXFLAGS does not help you, please edit either
4244
4245 ${srcdir}/scripts/cxx.sh.in   ; or
4246 ${srcdir}/scripts/link.sh.in
4247
4248Those scripts are getting called for compilation of all C++
4249source code (cxx.sh.in) or for linking binaries (link.sh.in).
4250
4251In very obscure cases, building the library may also fail.If
4252so, please try variable ARFLAGS or edit
4253
4254 ${srcdir}/scripts/lib.sh.in
4255
4256============================================================
4257
4258  *** PLEASE PROVIDE FEEDBACK TO antlr.org - THANK YOU ***
4259
4260%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4261" >&2;}
4262
4263
4264        ;;
4265    esac
4266
4267    ##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx##
4268    ##                  COMPILER TUNING SECTION                     ##
4269    ##==============================================================##
4270
4271    ## compiler tuning has basically removed from this configure
4272    ## script as it appears not  to  be handy and practical. All
4273    ## compiler flags  are  set  in  cxx.sh.in.  If there is any
4274    ## change required, go there and change.
4275    ## Note that flags  given in this file may overrule settings
4276    ## given in cxx.sh.in. Therefore, if you "add" flags here,
4277    ## put a "+" in front of variable CXXFLAGS. For example, let's
4278    ## say you want to add "-g". Then do this:
4279    ##
4280    ##  CXXFLAGS="-g"
4281    ##  ..
4282    ##  CXXFLAGS="+ ${CXXFLAGS}"
4283    ##
4284    ## The addition of "+"  CXXFLAGS should be the last action for
4285    ## that variable. The net effect is that "-g" will be added to
4286    ## flags set in cxx.sh.in. So the result may look like
4287    ## gcc -Wall -c -g ..
4288    ##
4289    ## Similar, put a "-" in front to get "gcc -g -Wall -c .." and
4290    ## put nothing or a "=" in front to get "gcc -g ..".
4291    ##
4292    ## Similar to CXXFLAGS are LDFLAGS and ARFLAGS for linking
4293    ## and making a static library.
4294
4295    case "${cxx}" in
4296      cl|bcc32)
4297        OBJEXT=".obj"
4298        LIBEXT=".lib"
4299        EXEEXT=".exe"
4300        ANTLR_LIB="$abs_this_builddir/lib/cpp/src/antlr.lib"
4301        CPP="${cxx}"
4302        CPPFLAGS="-EP"
4303        ;;
4304      *)
4305        OBJEXT=".o"
4306        ;;
4307    esac
4308
4309    LDFLAGS=
4310
4311    set x ${AR}
4312    AR="${2}"
4313
4314
4315
4316    ##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx##
4317    ##               END  COMPILER TUNING SECTION                   ##
4318    ##==============================================================##
4319
4320    # Checks for header files.
4321
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4328echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4329# On Suns, sometimes $CPP names a directory.
4330if test -n "$CPP" && test -d "$CPP"; then
4331  CPP=
4332fi
4333if test -z "$CPP"; then
4334  if test "${ac_cv_prog_CPP+set}" = set; then
4335  echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337      # Double quotes because CPP needs to be expanded
4338    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4339    do
4340      ac_preproc_ok=false
4341for ac_c_preproc_warn_flag in '' yes
4342do
4343  # Use a header file that comes with gcc, so configuring glibc
4344  # with a fresh cross-compiler works.
4345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346  # <limits.h> exists even on freestanding compilers.
4347  # On the NeXT, cc -E runs the code through the compiler's parser,
4348  # not just through cpp. "Syntax error" is here to catch this case.
4349  cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h.  */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h.  */
4355#ifdef __STDC__
4356# include <limits.h>
4357#else
4358# include <assert.h>
4359#endif
4360                     Syntax error
4361_ACEOF
4362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364  ac_status=$?
4365  grep -v '^ *+' conftest.er1 >conftest.err
4366  rm -f conftest.er1
4367  cat conftest.err >&5
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); } >/dev/null; then
4370  if test -s conftest.err; then
4371    ac_cpp_err=$ac_c_preproc_warn_flag
4372    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373  else
4374    ac_cpp_err=
4375  fi
4376else
4377  ac_cpp_err=yes
4378fi
4379if test -z "$ac_cpp_err"; then
4380  :
4381else
4382  echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385  # Broken: fails on valid input.
4386continue
4387fi
4388rm -f conftest.err conftest.$ac_ext
4389
4390  # OK, works on sane cases.  Now check whether non-existent headers
4391  # can be detected and how.
4392  cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h.  */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h.  */
4398#include <ac_nonexistent.h>
4399_ACEOF
4400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } >/dev/null; then
4408  if test -s conftest.err; then
4409    ac_cpp_err=$ac_c_preproc_warn_flag
4410    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4411  else
4412    ac_cpp_err=
4413  fi
4414else
4415  ac_cpp_err=yes
4416fi
4417if test -z "$ac_cpp_err"; then
4418  # Broken: success on invalid input.
4419continue
4420else
4421  echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424  # Passes both tests.
4425ac_preproc_ok=:
4426break
4427fi
4428rm -f conftest.err conftest.$ac_ext
4429
4430done
4431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4432rm -f conftest.err conftest.$ac_ext
4433if $ac_preproc_ok; then
4434  break
4435fi
4436
4437    done
4438    ac_cv_prog_CPP=$CPP
4439
4440fi
4441  CPP=$ac_cv_prog_CPP
4442else
4443  ac_cv_prog_CPP=$CPP
4444fi
4445echo "$as_me:$LINENO: result: $CPP" >&5
4446echo "${ECHO_T}$CPP" >&6
4447ac_preproc_ok=false
4448for ac_c_preproc_warn_flag in '' yes
4449do
4450  # Use a header file that comes with gcc, so configuring glibc
4451  # with a fresh cross-compiler works.
4452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453  # <limits.h> exists even on freestanding compilers.
4454  # On the NeXT, cc -E runs the code through the compiler's parser,
4455  # not just through cpp. "Syntax error" is here to catch this case.
4456  cat >conftest.$ac_ext <<_ACEOF
4457/* confdefs.h.  */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h.  */
4462#ifdef __STDC__
4463# include <limits.h>
4464#else
4465# include <assert.h>
4466#endif
4467                     Syntax error
4468_ACEOF
4469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } >/dev/null; then
4477  if test -s conftest.err; then
4478    ac_cpp_err=$ac_c_preproc_warn_flag
4479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480  else
4481    ac_cpp_err=
4482  fi
4483else
4484  ac_cpp_err=yes
4485fi
4486if test -z "$ac_cpp_err"; then
4487  :
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492  # Broken: fails on valid input.
4493continue
4494fi
4495rm -f conftest.err conftest.$ac_ext
4496
4497  # OK, works on sane cases.  Now check whether non-existent headers
4498  # can be detected and how.
4499  cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505#include <ac_nonexistent.h>
4506_ACEOF
4507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } >/dev/null; then
4515  if test -s conftest.err; then
4516    ac_cpp_err=$ac_c_preproc_warn_flag
4517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4518  else
4519    ac_cpp_err=
4520  fi
4521else
4522  ac_cpp_err=yes
4523fi
4524if test -z "$ac_cpp_err"; then
4525  # Broken: success on invalid input.
4526continue
4527else
4528  echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531  # Passes both tests.
4532ac_preproc_ok=:
4533break
4534fi
4535rm -f conftest.err conftest.$ac_ext
4536
4537done
4538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539rm -f conftest.err conftest.$ac_ext
4540if $ac_preproc_ok; then
4541  :
4542else
4543  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4544See \`config.log' for more details." >&5
4545echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4546See \`config.log' for more details." >&2;}
4547   { (exit 1); exit 1; }; }
4548fi
4549
4550ac_ext=c
4551ac_cpp='$CPP $CPPFLAGS'
4552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555
4556
4557echo "$as_me:$LINENO: checking for egrep" >&5
4558echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4559if test "${ac_cv_prog_egrep+set}" = set; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4563    then ac_cv_prog_egrep='grep -E'
4564    else ac_cv_prog_egrep='egrep'
4565    fi
4566fi
4567echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4568echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4569 EGREP=$ac_cv_prog_egrep
4570
4571
4572echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4573echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4574if test "${ac_cv_header_stdc+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583#include <stdlib.h>
4584#include <stdarg.h>
4585#include <string.h>
4586#include <float.h>
4587
4588int
4589main ()
4590{
4591
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598  (eval $ac_compile) 2>conftest.er1
4599  ac_status=$?
4600  grep -v '^ *+' conftest.er1 >conftest.err
4601  rm -f conftest.er1
4602  cat conftest.err >&5
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); } &&
4605         { ac_try='test -z "$ac_c_werror_flag"
4606                         || test ! -s conftest.err'
4607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608  (eval $ac_try) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; } &&
4612         { ac_try='test -s conftest.$ac_objext'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; }; then
4618  ac_cv_header_stdc=yes
4619else
4620  echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623ac_cv_header_stdc=no
4624fi
4625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626
4627if test $ac_cv_header_stdc = yes; then
4628  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629  cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h.  */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h.  */
4635#include <string.h>
4636
4637_ACEOF
4638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639  $EGREP "memchr" >/dev/null 2>&1; then
4640  :
4641else
4642  ac_cv_header_stdc=no
4643fi
4644rm -f conftest*
4645
4646fi
4647
4648if test $ac_cv_header_stdc = yes; then
4649  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4650  cat >conftest.$ac_ext <<_ACEOF
4651/* confdefs.h.  */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h.  */
4656#include <stdlib.h>
4657
4658_ACEOF
4659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660  $EGREP "free" >/dev/null 2>&1; then
4661  :
4662else
4663  ac_cv_header_stdc=no
4664fi
4665rm -f conftest*
4666
4667fi
4668
4669if test $ac_cv_header_stdc = yes; then
4670  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671  if test "$cross_compiling" = yes; then
4672  :
4673else
4674  cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h.  */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h.  */
4680#include <ctype.h>
4681#if ((' ' & 0x0FF) == 0x020)
4682# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684#else
4685# define ISLOWER(c) \
4686                   (('a' <= (c) && (c) <= 'i') \
4687                     || ('j' <= (c) && (c) <= 'r') \
4688                     || ('s' <= (c) && (c) <= 'z'))
4689# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690#endif
4691
4692#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693int
4694main ()
4695{
4696  int i;
4697  for (i = 0; i < 256; i++)
4698    if (XOR (islower (i), ISLOWER (i))
4699        || toupper (i) != TOUPPER (i))
4700      exit(2);
4701  exit (0);
4702}
4703_ACEOF
4704rm -f conftest$ac_exeext
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706  (eval $ac_link) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711  (eval $ac_try) 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; }; then
4715  :
4716else
4717  echo "$as_me: program exited with status $ac_status" >&5
4718echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721( exit $ac_status )
4722ac_cv_header_stdc=no
4723fi
4724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4725fi
4726fi
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730if test $ac_cv_header_stdc = yes; then
4731
4732cat >>confdefs.h <<\_ACEOF
4733#define STDC_HEADERS 1
4734_ACEOF
4735
4736fi
4737
4738    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749                  inttypes.h stdint.h unistd.h
4750do
4751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752echo "$as_me:$LINENO: checking for $ac_header" >&5
4753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757  cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763$ac_includes_default
4764
4765#include <$ac_header>
4766_ACEOF
4767rm -f conftest.$ac_objext
4768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769  (eval $ac_compile) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -z "$ac_c_werror_flag"
4777                         || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783         { ac_try='test -s conftest.$ac_objext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  eval "$as_ac_Header=yes"
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794eval "$as_ac_Header=no"
4795fi
4796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797fi
4798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4800if test `eval echo '${'$as_ac_Header'}'` = yes; then
4801  cat >>confdefs.h <<_ACEOF
4802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4803_ACEOF
4804
4805fi
4806
4807done
4808
4809
4810
4811
4812for ac_header in stdlib.h unistd.h
4813do
4814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816  echo "$as_me:$LINENO: checking for $ac_header" >&5
4817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4818if eval "test \"\${$as_ac_Header+set}\" = set"; then
4819  echo $ECHO_N "(cached) $ECHO_C" >&6
4820fi
4821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4823else
4824  # Is the header compilable?
4825echo "$as_me:$LINENO: checking $ac_header usability" >&5
4826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4827cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h.  */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h.  */
4833$ac_includes_default
4834#include <$ac_header>
4835_ACEOF
4836rm -f conftest.$ac_objext
4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838  (eval $ac_compile) 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } &&
4845         { ac_try='test -z "$ac_c_werror_flag"
4846                         || test ! -s conftest.err'
4847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848  (eval $ac_try) 2>&5
4849  ac_status=$?
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); }; } &&
4852         { ac_try='test -s conftest.$ac_objext'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; }; then
4858  ac_header_compiler=yes
4859else
4860  echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863ac_header_compiler=no
4864fi
4865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4867echo "${ECHO_T}$ac_header_compiler" >&6
4868
4869# Is the header present?
4870echo "$as_me:$LINENO: checking $ac_header presence" >&5
4871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4872cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#include <$ac_header>
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882  ac_status=$?
4883  grep -v '^ *+' conftest.er1 >conftest.err
4884  rm -f conftest.er1
4885  cat conftest.err >&5
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); } >/dev/null; then
4888  if test -s conftest.err; then
4889    ac_cpp_err=$ac_c_preproc_warn_flag
4890    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4891  else
4892    ac_cpp_err=
4893  fi
4894else
4895  ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898  ac_header_preproc=yes
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903  ac_header_preproc=no
4904fi
4905rm -f conftest.err conftest.$ac_ext
4906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4907echo "${ECHO_T}$ac_header_preproc" >&6
4908
4909# So?  What about this header?
4910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4911  yes:no: )
4912    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4916    ac_header_preproc=yes
4917    ;;
4918  no:yes:* )
4919    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4921    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4922echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4923    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4925    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4926echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4927    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4929    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4931    (
4932      cat <<\_ASBOX
4933## -------------------------------- ##
4934## Report this to the antlr lists.  ##
4935## -------------------------------- ##
4936_ASBOX
4937    ) |
4938      sed "s/^/$as_me: WARNING:     /" >&2
4939    ;;
4940esac
4941echo "$as_me:$LINENO: checking for $ac_header" >&5
4942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4943if eval "test \"\${$as_ac_Header+set}\" = set"; then
4944  echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946  eval "$as_ac_Header=\$ac_header_preproc"
4947fi
4948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4950
4951fi
4952if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953  cat >>confdefs.h <<_ACEOF
4954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955_ACEOF
4956
4957fi
4958
4959done
4960
4961
4962    # Checks for typedefs, structures, and compiler characteristics.
4963    echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4964echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4965if test "${ac_cv_c_const+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974
4975int
4976main ()
4977{
4978/* FIXME: Include the comments suggested by Paul. */
4979#ifndef __cplusplus
4980  /* Ultrix mips cc rejects this.  */
4981  typedef int charset[2];
4982  const charset x;
4983  /* SunOS 4.1.1 cc rejects this.  */
4984  char const *const *ccp;
4985  char **p;
4986  /* NEC SVR4.0.2 mips cc rejects this.  */
4987  struct point {int x, y;};
4988  static struct point const zero = {0,0};
4989  /* AIX XL C 1.02.0.0 rejects this.
4990     It does not let you subtract one const X* pointer from another in
4991     an arm of an if-expression whose if-part is not a constant
4992     expression */
4993  const char *g = "string";
4994  ccp = &g + (g ? g-g : 0);
4995  /* HPUX 7.0 cc rejects these. */
4996  ++ccp;
4997  p = (char**) ccp;
4998  ccp = (char const *const *) p;
4999  { /* SCO 3.2v4 cc rejects this.  */
5000    char *t;
5001    char const *s = 0 ? (char *) 0 : (char const *) 0;
5002
5003    *t++ = 0;
5004  }
5005  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5006    int x[] = {25, 17};
5007    const int *foo = &x[0];
5008    ++foo;
5009  }
5010  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5011    typedef const int *iptr;
5012    iptr p = 0;
5013    ++p;
5014  }
5015  { /* AIX XL C 1.02.0.0 rejects this saying
5016       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5017    struct s { int j; const int *ap[3]; };
5018    struct s *b; b->j = 5;
5019  }
5020  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5021    const int foo = 10;
5022  }
5023#endif
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext
5030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031  (eval $ac_compile) 2>conftest.er1
5032  ac_status=$?
5033  grep -v '^ *+' conftest.er1 >conftest.err
5034  rm -f conftest.er1
5035  cat conftest.err >&5
5036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037  (exit $ac_status); } &&
5038         { ac_try='test -z "$ac_c_werror_flag"
5039                         || test ! -s conftest.err'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; } &&
5045         { ac_try='test -s conftest.$ac_objext'
5046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047  (eval $ac_try) 2>&5
5048  ac_status=$?
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); }; }; then
5051  ac_cv_c_const=yes
5052else
5053  echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056ac_cv_c_const=no
5057fi
5058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5061echo "${ECHO_T}$ac_cv_c_const" >&6
5062if test $ac_cv_c_const = no; then
5063
5064cat >>confdefs.h <<\_ACEOF
5065#define const
5066_ACEOF
5067
5068fi
5069
5070    echo "$as_me:$LINENO: checking for inline" >&5
5071echo $ECHO_N "checking for inline... $ECHO_C" >&6
5072if test "${ac_cv_c_inline+set}" = set; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075  ac_cv_c_inline=no
5076for ac_kw in inline __inline__ __inline; do
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#ifndef __cplusplus
5084typedef int foo_t;
5085static $ac_kw foo_t static_foo () {return 0; }
5086$ac_kw foo_t foo () {return 0; }
5087#endif
5088
5089_ACEOF
5090rm -f conftest.$ac_objext
5091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092  (eval $ac_compile) 2>conftest.er1
5093  ac_status=$?
5094  grep -v '^ *+' conftest.er1 >conftest.err
5095  rm -f conftest.er1
5096  cat conftest.err >&5
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); } &&
5099         { ac_try='test -z "$ac_c_werror_flag"
5100                         || test ! -s conftest.err'
5101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102  (eval $ac_try) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; } &&
5106         { ac_try='test -s conftest.$ac_objext'
5107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108  (eval $ac_try) 2>&5
5109  ac_status=$?
5110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); }; }; then
5112  ac_cv_c_inline=$ac_kw; break
5113else
5114  echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117fi
5118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119done
5120
5121fi
5122echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5123echo "${ECHO_T}$ac_cv_c_inline" >&6
5124
5125
5126case $ac_cv_c_inline in
5127  inline | yes) ;;
5128  *)
5129    case $ac_cv_c_inline in
5130      no) ac_val=;;
5131      *) ac_val=$ac_cv_c_inline;;
5132    esac
5133    cat >>confdefs.h <<_ACEOF
5134#ifndef __cplusplus
5135#define inline $ac_val
5136#endif
5137_ACEOF
5138    ;;
5139esac
5140
5141
5142    # Checks for library functions.
5143
5144for ac_header in stdlib.h
5145do
5146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5147if eval "test \"\${$as_ac_Header+set}\" = set"; then
5148  echo "$as_me:$LINENO: checking for $ac_header" >&5
5149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5150if eval "test \"\${$as_ac_Header+set}\" = set"; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152fi
5153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5155else
5156  # Is the header compilable?
5157echo "$as_me:$LINENO: checking $ac_header usability" >&5
5158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5159cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165$ac_includes_default
5166#include <$ac_header>
5167_ACEOF
5168rm -f conftest.$ac_objext
5169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170  (eval $ac_compile) 2>conftest.er1
5171  ac_status=$?
5172  grep -v '^ *+' conftest.er1 >conftest.err
5173  rm -f conftest.er1
5174  cat conftest.err >&5
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); } &&
5177         { ac_try='test -z "$ac_c_werror_flag"
5178                         || test ! -s conftest.err'
5179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180  (eval $ac_try) 2>&5
5181  ac_status=$?
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); }; } &&
5184         { ac_try='test -s conftest.$ac_objext'
5185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186  (eval $ac_try) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }; }; then
5190  ac_header_compiler=yes
5191else
5192  echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195ac_header_compiler=no
5196fi
5197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199echo "${ECHO_T}$ac_header_compiler" >&6
5200
5201# Is the header present?
5202echo "$as_me:$LINENO: checking $ac_header presence" >&5
5203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5204cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h.  */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h.  */
5210#include <$ac_header>
5211_ACEOF
5212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214  ac_status=$?
5215  grep -v '^ *+' conftest.er1 >conftest.err
5216  rm -f conftest.er1
5217  cat conftest.err >&5
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } >/dev/null; then
5220  if test -s conftest.err; then
5221    ac_cpp_err=$ac_c_preproc_warn_flag
5222    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5223  else
5224    ac_cpp_err=
5225  fi
5226else
5227  ac_cpp_err=yes
5228fi
5229if test -z "$ac_cpp_err"; then
5230  ac_header_preproc=yes
5231else
5232  echo "$as_me: failed program was:" >&5
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
5235  ac_header_preproc=no
5236fi
5237rm -f conftest.err conftest.$ac_ext
5238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239echo "${ECHO_T}$ac_header_preproc" >&6
5240
5241# So?  What about this header?
5242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243  yes:no: )
5244    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5248    ac_header_preproc=yes
5249    ;;
5250  no:yes:* )
5251    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5253    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5254echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5255    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5257    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5258echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5259    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5261    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5263    (
5264      cat <<\_ASBOX
5265## -------------------------------- ##
5266## Report this to the antlr lists.  ##
5267## -------------------------------- ##
5268_ASBOX
5269    ) |
5270      sed "s/^/$as_me: WARNING:     /" >&2
5271    ;;
5272esac
5273echo "$as_me:$LINENO: checking for $ac_header" >&5
5274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5275if eval "test \"\${$as_ac_Header+set}\" = set"; then
5276  echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278  eval "$as_ac_Header=\$ac_header_preproc"
5279fi
5280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5282
5283fi
5284if test `eval echo '${'$as_ac_Header'}'` = yes; then
5285  cat >>confdefs.h <<_ACEOF
5286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5287_ACEOF
5288
5289fi
5290
5291done
5292
5293echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5294echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5295if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  if test "$cross_compiling" = yes; then
5299  ac_cv_func_malloc_0_nonnull=no
5300else
5301  cat >conftest.$ac_ext <<_ACEOF
5302/* confdefs.h.  */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h.  */
5307#if STDC_HEADERS || HAVE_STDLIB_H
5308# include <stdlib.h>
5309#else
5310char *malloc ();
5311#endif
5312
5313int
5314main ()
5315{
5316exit (malloc (0) ? 0 : 1);
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321rm -f conftest$ac_exeext
5322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323  (eval $ac_link) 2>&5
5324  ac_status=$?
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328  (eval $ac_try) 2>&5
5329  ac_status=$?
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); }; }; then
5332  ac_cv_func_malloc_0_nonnull=yes
5333else
5334  echo "$as_me: program exited with status $ac_status" >&5
5335echo "$as_me: failed program was:" >&5
5336sed 's/^/| /' conftest.$ac_ext >&5
5337
5338( exit $ac_status )
5339ac_cv_func_malloc_0_nonnull=no
5340fi
5341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5342fi
5343fi
5344echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5345echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5346if test $ac_cv_func_malloc_0_nonnull = yes; then
5347
5348cat >>confdefs.h <<\_ACEOF
5349#define HAVE_MALLOC 1
5350_ACEOF
5351
5352else
5353  cat >>confdefs.h <<\_ACEOF
5354#define HAVE_MALLOC 0
5355_ACEOF
5356
5357   case $LIBOBJS in
5358    "malloc.$ac_objext"   | \
5359  *" malloc.$ac_objext"   | \
5360    "malloc.$ac_objext "* | \
5361  *" malloc.$ac_objext "* ) ;;
5362  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
5363esac
5364
5365
5366cat >>confdefs.h <<\_ACEOF
5367#define malloc rpl_malloc
5368_ACEOF
5369
5370fi
5371
5372
5373
5374
5375for ac_func in strcasecmp
5376do
5377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5378echo "$as_me:$LINENO: checking for $ac_func" >&5
5379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5380if eval "test \"\${$as_ac_var+set}\" = set"; then
5381  echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383  cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5390   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5391#define $ac_func innocuous_$ac_func
5392
5393/* System header to define __stub macros and hopefully few prototypes,
5394    which can conflict with char $ac_func (); below.
5395    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396    <limits.h> exists even on freestanding compilers.  */
5397
5398#ifdef __STDC__
5399# include <limits.h>
5400#else
5401# include <assert.h>
5402#endif
5403
5404#undef $ac_func
5405
5406/* Override any gcc2 internal prototype to avoid an error.  */
5407#ifdef __cplusplus
5408extern "C"
5409{
5410#endif
5411/* We use char because int might match the return type of a gcc2
5412   builtin and then its argument prototype would still apply.  */
5413char $ac_func ();
5414/* The GNU C library defines this for functions which it implements
5415    to always fail with ENOSYS.  Some functions are actually named
5416    something starting with __ and the normal name is an alias.  */
5417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5418choke me
5419#else
5420char (*f) () = $ac_func;
5421#endif
5422#ifdef __cplusplus
5423}
5424#endif
5425
5426int
5427main ()
5428{
5429return f != $ac_func;
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext conftest$ac_exeext
5435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436  (eval $ac_link) 2>conftest.er1
5437  ac_status=$?
5438  grep -v '^ *+' conftest.er1 >conftest.err
5439  rm -f conftest.er1
5440  cat conftest.err >&5
5441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); } &&
5443         { ac_try='test -z "$ac_c_werror_flag"
5444                         || test ! -s conftest.err'
5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446  (eval $ac_try) 2>&5
5447  ac_status=$?
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; } &&
5450         { ac_try='test -s conftest$ac_exeext'
5451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452  (eval $ac_try) 2>&5
5453  ac_status=$?
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); }; }; then
5456  eval "$as_ac_var=yes"
5457else
5458  echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461eval "$as_ac_var=no"
5462fi
5463rm -f conftest.err conftest.$ac_objext \
5464      conftest$ac_exeext conftest.$ac_ext
5465fi
5466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5468if test `eval echo '${'$as_ac_var'}'` = yes; then
5469  cat >>confdefs.h <<_ACEOF
5470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5471_ACEOF
5472
5473fi
5474done
5475
5476
5477    ## Some further specific test required as are using std C++.
5478    ## (tbd)
5479    ;;
5480esac
5481
5482##
5483test -z "$DOXYGEN" && # Extract the first word of "doxygen", so it can be a program name with args.
5484set dummy doxygen; ac_word=$2
5485echo "$as_me:$LINENO: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487if test "${ac_cv_path_DOXYGEN+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  case $DOXYGEN in
5491  [\\/]* | ?:[\\/]*)
5492  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5493  ;;
5494  *)
5495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500  for ac_exec_ext in '' $ac_executable_extensions; do
5501  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507done
5508
5509  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
5510  ;;
5511esac
5512fi
5513DOXYGEN=$ac_cv_path_DOXYGEN
5514
5515if test -n "$DOXYGEN"; then
5516  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5517echo "${ECHO_T}$DOXYGEN" >&6
5518else
5519  echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521fi
5522
5523
5524# This seems to convince configure to use an absolute path to the backup
5525# install-sh script.
5526ac_install_sh="$PWD/scripts/install-sh"
5527# Find a good install program.  We prefer a C program (faster),
5528# so one script is as good as another.  But avoid the broken or
5529# incompatible versions:
5530# SysV /etc/install, /usr/sbin/install
5531# SunOS /usr/etc/install
5532# IRIX /sbin/install
5533# AIX /bin/install
5534# AmigaOS /C/install, which installs bootblocks on floppy discs
5535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5538# OS/2's system install, which has a completely different semantic
5539# ./install, which can be erroneously created by make from ./install.sh.
5540echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5541echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5542if test -z "$INSTALL"; then
5543if test "${ac_cv_path_install+set}" = set; then
5544  echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551  # Account for people who put trailing slashes in PATH elements.
5552case $as_dir/ in
5553  ./ | .// | /cC/* | \
5554  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5555  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5556  /usr/ucb/* ) ;;
5557  *)
5558    # OSF1 and SCO ODT 3.0 have their own names for install.
5559    # Don't use installbsd from OSF since it installs stuff as root
5560    # by default.
5561    for ac_prog in ginstall scoinst install; do
5562      for ac_exec_ext in '' $ac_executable_extensions; do
5563        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5564          if test $ac_prog = install &&
5565            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5566            # AIX install.  It has an incompatible calling convention.
5567            :
5568          elif test $ac_prog = install &&
5569            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5570            # program-specific install script used by HP pwplus--don't use.
5571            :
5572          else
5573            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5574            break 3
5575          fi
5576        fi
5577      done
5578    done
5579    ;;
5580esac
5581done
5582
5583
5584fi
5585  if test "${ac_cv_path_install+set}" = set; then
5586    INSTALL=$ac_cv_path_install
5587  else
5588    # As a last resort, use the slow shell script.  We don't cache a
5589    # path for INSTALL within a source directory, because that will
5590    # break other packages using the cache if that directory is
5591    # removed, or if the path is relative.
5592    INSTALL=$ac_install_sh
5593  fi
5594fi
5595echo "$as_me:$LINENO: result: $INSTALL" >&5
5596echo "${ECHO_T}$INSTALL" >&6
5597
5598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5599# It thinks the first close brace ends the variable substitution.
5600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5601
5602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5603
5604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5605
5606if test -n "$ac_tool_prefix"; then
5607  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5609echo "$as_me:$LINENO: checking for $ac_word" >&5
5610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611if test "${ac_cv_prog_RANLIB+set}" = set; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  if test -n "$RANLIB"; then
5615  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620  IFS=$as_save_IFS
5621  test -z "$as_dir" && as_dir=.
5622  for ac_exec_ext in '' $ac_executable_extensions; do
5623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626    break 2
5627  fi
5628done
5629done
5630
5631fi
5632fi
5633RANLIB=$ac_cv_prog_RANLIB
5634if test -n "$RANLIB"; then
5635  echo "$as_me:$LINENO: result: $RANLIB" >&5
5636echo "${ECHO_T}$RANLIB" >&6
5637else
5638  echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640fi
5641
5642fi
5643if test -z "$ac_cv_prog_RANLIB"; then
5644  ac_ct_RANLIB=$RANLIB
5645  # Extract the first word of "ranlib", so it can be a program name with args.
5646set dummy ranlib; ac_word=$2
5647echo "$as_me:$LINENO: checking for $ac_word" >&5
5648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5650  echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652  if test -n "$ac_ct_RANLIB"; then
5653  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660  for ac_exec_ext in '' $ac_executable_extensions; do
5661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_prog_ac_ct_RANLIB="ranlib"
5663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667done
5668
5669  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5670fi
5671fi
5672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5673if test -n "$ac_ct_RANLIB"; then
5674  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5675echo "${ECHO_T}$ac_ct_RANLIB" >&6
5676else
5677  echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679fi
5680
5681  RANLIB=$ac_ct_RANLIB
5682else
5683  RANLIB="$ac_cv_prog_RANLIB"
5684fi
5685
5686
5687test -z "$MKDIR" && # Extract the first word of "mkdir$EXEEXT", so it can be a program name with args.
5688set dummy mkdir$EXEEXT; ac_word=$2
5689echo "$as_me:$LINENO: checking for $ac_word" >&5
5690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691if test "${ac_cv_path_MKDIR+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  case $MKDIR in
5695  [\\/]* | ?:[\\/]*)
5696  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5697  ;;
5698  *)
5699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702  IFS=$as_save_IFS
5703  test -z "$as_dir" && as_dir=.
5704  for ac_exec_ext in '' $ac_executable_extensions; do
5705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708    break 2
5709  fi
5710done
5711done
5712
5713  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir$EXEEXT "
5714  ;;
5715esac
5716fi
5717MKDIR=$ac_cv_path_MKDIR
5718
5719if test -n "$MKDIR"; then
5720  echo "$as_me:$LINENO: result: $MKDIR" >&5
5721echo "${ECHO_T}$MKDIR" >&6
5722else
5723  echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6
5725fi
5726
5727test -z "$RM"    && # Extract the first word of "rm$EXEEXT", so it can be a program name with args.
5728set dummy rm$EXEEXT; ac_word=$2
5729echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731if test "${ac_cv_path_RM+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  case $RM in
5735  [\\/]* | ?:[\\/]*)
5736  ac_cv_path_RM="$RM" # Let the user override the test with a path.
5737  ;;
5738  *)
5739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742  IFS=$as_save_IFS
5743  test -z "$as_dir" && as_dir=.
5744  for ac_exec_ext in '' $ac_executable_extensions; do
5745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748    break 2
5749  fi
5750done
5751done
5752
5753  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm$EXEEXT "
5754  ;;
5755esac
5756fi
5757RM=$ac_cv_path_RM
5758
5759if test -n "$RM"; then
5760  echo "$as_me:$LINENO: result: $RM" >&5
5761echo "${ECHO_T}$RM" >&6
5762else
5763  echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765fi
5766
5767
5768
5769    ax_arg_list="gnutar tar"
5770    if test "x${TAR}" != "x" ; then
5771      ax_arg_list="${TAR}"
5772    fi
5773    TAR=""
5774
5775    for ac_prog in ${ax_arg_list} ; do
5776      set dummy $ac_prog; ac_word=${2}
5777      ## if argument is absolute we check whether such a file exists,
5778      ## otherwise we lookup PATH. Each hit will be added to main
5779      ## variable.
5780      case $ac_word in
5781        [\\/]* | ?:[\\/]*)
5782          echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784          if test -f $ac_word ; then
5785            TAR="${TAR} ${ac_word}"
5786            echo "$as_me:$LINENO: result: yes" >&5
5787echo "${ECHO_T}yes" >&6
5788          else
5789            echo "$as_me:$LINENO: result: no" >&5
5790echo "${ECHO_T}no" >&6
5791          fi
5792          ;;
5793        *)
5794          as_found=
5795          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796          for as_dir in $PATH
5797          do
5798           IFS=$as_save_IFS
5799           test -z "$as_dir" && as_dir=.
5800           for ac_exec_ext in '' $ac_executable_extensions; do
5801             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802               TAR="${TAR} $as_dir/$ac_word$ac_exec_ext"
5803               echo "$as_me:$LINENO: checking for $ac_word" >&5
5804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
5806echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
5807               as_found=1
5808             fi
5809           done
5810          done
5811          test "x$as_found" == "x" && {
5812            echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814            echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816          }
5817          ;;
5818      esac
5819    done
5820
5821
5822    if test "x${TAR}" != "x" ; then
5823
5824    set x ${TAR}
5825    TAR="${2}"
5826
5827
5828
5829    else
5830
5831          { { echo "$as_me:$LINENO: error: no suitable value has been found for TAR" >&5
5832echo "$as_me: error: no suitable value has been found for TAR" >&2;}
5833   { (exit 1); exit 1; }; }
5834
5835    fi
5836
5837
5838
5839
5840    ax_arg_list="/bin/touch /usr/bin/touch touch"
5841    if test "x${TOUCH}" != "x" ; then
5842      ax_arg_list="${TOUCH}"
5843    fi
5844    TOUCH=""
5845
5846    for ac_prog in ${ax_arg_list} ; do
5847      set dummy $ac_prog; ac_word=${2}
5848      ## if argument is absolute we check whether such a file exists,
5849      ## otherwise we lookup PATH. Each hit will be added to main
5850      ## variable.
5851      case $ac_word in
5852        [\\/]* | ?:[\\/]*)
5853          echo "$as_me:$LINENO: checking for $ac_word" >&5
5854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855          if test -f $ac_word ; then
5856            TOUCH="${TOUCH} ${ac_word}"
5857            echo "$as_me:$LINENO: result: yes" >&5
5858echo "${ECHO_T}yes" >&6
5859          else
5860            echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862          fi
5863          ;;
5864        *)
5865          as_found=
5866          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867          for as_dir in $PATH
5868          do
5869           IFS=$as_save_IFS
5870           test -z "$as_dir" && as_dir=.
5871           for ac_exec_ext in '' $ac_executable_extensions; do
5872             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873               TOUCH="${TOUCH} $as_dir/$ac_word$ac_exec_ext"
5874               echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
5877echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
5878               as_found=1
5879             fi
5880           done
5881          done
5882          test "x$as_found" == "x" && {
5883            echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885            echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887          }
5888          ;;
5889      esac
5890    done
5891
5892
5893    if test "x${TOUCH}" != "x" ; then
5894
5895    set x ${TOUCH}
5896    TOUCH="${2}"
5897
5898
5899
5900    else
5901
5902          { { echo "$as_me:$LINENO: error: no suitable value has been found for TOUCH" >&5
5903echo "$as_me: error: no suitable value has been found for TOUCH" >&2;}
5904   { (exit 1); exit 1; }; }
5905
5906    fi
5907
5908
5909
5910test -z "$CHMOD" && # Extract the first word of "chmod$EXEEXT", so it can be a program name with args.
5911set dummy chmod$EXEEXT; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_path_CHMOD+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  case $CHMOD in
5918  [\\/]* | ?:[\\/]*)
5919  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5920  ;;
5921  *)
5922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927  for ac_exec_ext in '' $ac_executable_extensions; do
5928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934done
5935
5936  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod$EXEEXT "
5937  ;;
5938esac
5939fi
5940CHMOD=$ac_cv_path_CHMOD
5941
5942if test -n "$CHMOD"; then
5943  echo "$as_me:$LINENO: result: $CHMOD" >&5
5944echo "${ECHO_T}$CHMOD" >&6
5945else
5946  echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948fi
5949
5950test -z "$SED"   && # Extract the first word of "sed$EXEEXT", so it can be a program name with args.
5951set dummy sed$EXEEXT; ac_word=$2
5952echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954if test "${ac_cv_path_SED+set}" = set; then
5955  echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957  case $SED in
5958  [\\/]* | ?:[\\/]*)
5959  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5960  ;;
5961  *)
5962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967  for ac_exec_ext in '' $ac_executable_extensions; do
5968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974done
5975
5976  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed$EXEEXT "
5977  ;;
5978esac
5979fi
5980SED=$ac_cv_path_SED
5981
5982if test -n "$SED"; then
5983  echo "$as_me:$LINENO: result: $SED" >&5
5984echo "${ECHO_T}$SED" >&6
5985else
5986  echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6
5988fi
5989
5990test -z "$CAT"   && # Extract the first word of "cat$EXEEXT", so it can be a program name with args.
5991set dummy cat$EXEEXT; ac_word=$2
5992echo "$as_me:$LINENO: checking for $ac_word" >&5
5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994if test "${ac_cv_path_CAT+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  case $CAT in
5998  [\\/]* | ?:[\\/]*)
5999  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6000  ;;
6001  *)
6002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005  IFS=$as_save_IFS
6006  test -z "$as_dir" && as_dir=.
6007  for ac_exec_ext in '' $ac_executable_extensions; do
6008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011    break 2
6012  fi
6013done
6014done
6015
6016  test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat$EXEEXT "
6017  ;;
6018esac
6019fi
6020CAT=$ac_cv_path_CAT
6021
6022if test -n "$CAT"; then
6023  echo "$as_me:$LINENO: result: $CAT" >&5
6024echo "${ECHO_T}$CAT" >&6
6025else
6026  echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028fi
6029
6030test -z "$GREP"  && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
6031set dummy grep$EXEEXT; ac_word=$2
6032echo "$as_me:$LINENO: checking for $ac_word" >&5
6033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6034if test "${ac_cv_path_GREP+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  case $GREP in
6038  [\\/]* | ?:[\\/]*)
6039  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6040  ;;
6041  *)
6042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047  for ac_exec_ext in '' $ac_executable_extensions; do
6048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054done
6055
6056  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT "
6057  ;;
6058esac
6059fi
6060GREP=$ac_cv_path_GREP
6061
6062if test -n "$GREP"; then
6063  echo "$as_me:$LINENO: result: $GREP" >&5
6064echo "${ECHO_T}$GREP" >&6
6065else
6066  echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068fi
6069
6070
6071#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
6072#                             PYTHON                                 #
6073#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
6074
6075
6076
6077
6078
6079
6080    case $LANG_PY in
6081      1)
6082
6083    ax_arg_list="python"
6084    if test "x${PYTHON}" != "x" ; then
6085      ax_arg_list="${PYTHON}"
6086    fi
6087    PYTHON=""
6088
6089    for ac_prog in ${ax_arg_list} ; do
6090      set dummy $ac_prog; ac_word=${2}
6091      ## if argument is absolute we check whether such a file exists,
6092      ## otherwise we lookup PATH. Each hit will be added to main
6093      ## variable.
6094      case $ac_word in
6095        [\\/]* | ?:[\\/]*)
6096          echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098          if test -f $ac_word ; then
6099            PYTHON="${PYTHON} ${ac_word}"
6100            echo "$as_me:$LINENO: result: yes" >&5
6101echo "${ECHO_T}yes" >&6
6102          else
6103            echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
6105          fi
6106          ;;
6107        *)
6108          as_found=
6109          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110          for as_dir in $PATH
6111          do
6112           IFS=$as_save_IFS
6113           test -z "$as_dir" && as_dir=.
6114           for ac_exec_ext in '' $ac_executable_extensions; do
6115             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116               PYTHON="${PYTHON} $as_dir/$ac_word$ac_exec_ext"
6117               echo "$as_me:$LINENO: checking for $ac_word" >&5
6118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6119               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
6120echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
6121               as_found=1
6122             fi
6123           done
6124          done
6125          test "x$as_found" == "x" && {
6126            echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128            echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130          }
6131          ;;
6132      esac
6133    done
6134
6135
6136    if test "x${PYTHON}" != "x" ; then
6137
6138    set x ${PYTHON}
6139    PYTHON="${2}"
6140
6141
6142
6143    else
6144      LANG_PY=0
6145            cat <<EOF
6146
6147============================================================
6148Warning:
6149Support for Python has been disabled as I have not been able
6150to locate a mandatory program. Please change \$PATH or run
6151with option --help on how to overcome this problem.
6152============================================================
6153
6154EOF
6155
6156
6157    fi
6158
6159
6160        ;;
6161    esac
6162
6163
6164
6165case $LANG_PY in
6166  1)
6167    # We need a script that wrap Python calls in order to make Python
6168    # ANTLR aware. This script needs to be executable.
6169              ac_config_files="$ac_config_files scripts/python.sh"
6170
6171
6172              ac_config_files="$ac_config_files scripts/pyantlr.sh:scripts/pyinst.sh.in"
6173
6174
6175              ac_config_files="$ac_config_files lib/python/Makefile"
6176
6177
6178    # We have a Makefile that loops through all python examples.
6179    case $WITH_EXAMPLES in
6180      1 )
6181                  ac_config_files="$ac_config_files examples/python/Makefile"
6182
6183                                                                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files examples/python/asn1/Makefile examples/python/ASTsupport/Makefile examples/python/calc/Makefile examples/python/columns/Makefile examples/python/exprAST/Makefile examples/python/filter/Makefile examples/python/filterWithRule/Makefile examples/python/heteroAST/Makefile examples/python/HTML/Makefile examples/python/IDL/Makefile examples/python/imagNodeAST/Makefile examples/python/includeFile/Makefile examples/python/inherit.tinyc/Makefile examples/python/java/Makefile examples/python/lexerTester/Makefile examples/python/lexRewrite/Makefile examples/python/linkChecker/Makefile examples/python/multiLexer/Makefile examples/python/multiParser/Makefile examples/python/parseBinary/Makefile examples/python/pascal/Makefile examples/python/cpp/Makefile examples/python/preserveWhiteSpace/Makefile examples/python/tinybasic/Makefile examples/python/tinyc/Makefile examples/python/transform/Makefile examples/python/treewalk/Makefile examples/python/unicode/Makefile examples/python/unicode.IDENTs/Makefile examples/python/xml/Makefile"
6184
6185        ;;
6186    esac
6187    ;;
6188esac
6189
6190#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
6191#                             CSHARP                                 #
6192#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#
6193
6194
6195
6196
6197
6198
6199    case $LANG_CS in
6200      1)
6201
6202    ax_arg_list="cscc mcs csc /usr/local/bin/cscc /usr/local/bin/mcs /opt/bin/cscc /opt/bin/mcs"
6203    if test "x${CSHARPC}" != "x" ; then
6204      ax_arg_list="${CSHARPC}"
6205    fi
6206    CSHARPC=""
6207
6208    for ac_prog in ${ax_arg_list} ; do
6209      set dummy $ac_prog; ac_word=${2}
6210      ## if argument is absolute we check whether such a file exists,
6211      ## otherwise we lookup PATH. Each hit will be added to main
6212      ## variable.
6213      case $ac_word in
6214        [\\/]* | ?:[\\/]*)
6215          echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217          if test -f $ac_word ; then
6218            CSHARPC="${CSHARPC} ${ac_word}"
6219            echo "$as_me:$LINENO: result: yes" >&5
6220echo "${ECHO_T}yes" >&6
6221          else
6222            echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
6224          fi
6225          ;;
6226        *)
6227          as_found=
6228          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229          for as_dir in $PATH
6230          do
6231           IFS=$as_save_IFS
6232           test -z "$as_dir" && as_dir=.
6233           for ac_exec_ext in '' $ac_executable_extensions; do
6234             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235               CSHARPC="${CSHARPC} $as_dir/$ac_word$ac_exec_ext"
6236               echo "$as_me:$LINENO: checking for $ac_word" >&5
6237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
6239echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
6240               as_found=1
6241             fi
6242           done
6243          done
6244          test "x$as_found" == "x" && {
6245            echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6247            echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249          }
6250          ;;
6251      esac
6252    done
6253
6254
6255    if test "x${CSHARPC}" != "x" ; then
6256
6257    set x ${CSHARPC}
6258    CSHARPC="${2}"
6259
6260
6261
6262    else
6263      LANG_CS=0
6264            cat <<EOF
6265
6266============================================================
6267Warning:
6268Support for C# has been disabled as I have not been able to
6269locate a mandatory program. Please change \$PATH or run
6270with option --help on how to overcome this problem.
6271============================================================
6272
6273EOF
6274
6275
6276    fi
6277
6278
6279        ;;
6280    esac
6281
6282
6283
6284## get the basename of C# compiler. Depending on basename we try to
6285## decide about the CLR.
6286test -n "${CSHARPC}"  && {
6287  csharpc=`basename ${CSHARPC}`
6288  csharpc_d=`dirname ${CSHARPC}`
6289}
6290
6291case $csharpc in
6292  cscc*)
6293
6294    case $LANG_CS in
6295      1)
6296
6297    ax_arg_list="${csharpc_d}/ilrun ilrun /usr/local/bin/ilrun /opt/bin/ilrun"
6298    if test "x${CLR}" != "x" ; then
6299      ax_arg_list="${CLR}"
6300    fi
6301    CLR=""
6302
6303    for ac_prog in ${ax_arg_list} ; do
6304      set dummy $ac_prog; ac_word=${2}
6305      ## if argument is absolute we check whether such a file exists,
6306      ## otherwise we lookup PATH. Each hit will be added to main
6307      ## variable.
6308      case $ac_word in
6309        [\\/]* | ?:[\\/]*)
6310          echo "$as_me:$LINENO: checking for $ac_word" >&5
6311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6312          if test -f $ac_word ; then
6313            CLR="${CLR} ${ac_word}"
6314            echo "$as_me:$LINENO: result: yes" >&5
6315echo "${ECHO_T}yes" >&6
6316          else
6317            echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319          fi
6320          ;;
6321        *)
6322          as_found=
6323          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324          for as_dir in $PATH
6325          do
6326           IFS=$as_save_IFS
6327           test -z "$as_dir" && as_dir=.
6328           for ac_exec_ext in '' $ac_executable_extensions; do
6329             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330               CLR="${CLR} $as_dir/$ac_word$ac_exec_ext"
6331               echo "$as_me:$LINENO: checking for $ac_word" >&5
6332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
6334echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
6335               as_found=1
6336             fi
6337           done
6338          done
6339          test "x$as_found" == "x" && {
6340            echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6342            echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6
6344          }
6345          ;;
6346      esac
6347    done
6348
6349
6350    if test "x${CLR}" != "x" ; then
6351
6352    set x ${CLR}
6353    CLR="${2}"
6354
6355
6356
6357    else
6358      LANG_CS=0
6359            cat <<EOF
6360
6361============================================================
6362Warning:
6363Support for C# has been disabled as I have not been able to
6364locate a mandatory program. Please change \$PATH or run
6365with option --help on how to overcome this problem.
6366============================================================
6367
6368EOF
6369
6370
6371    fi
6372
6373
6374        ;;
6375    esac
6376
6377
6378    ;;
6379  mcs*)
6380
6381    case $LANG_CS in
6382      1)
6383
6384    ax_arg_list="${csharpc_d}/mono mono /usr/local/bin/mono /opt/bin/mono"
6385    if test "x${CLR}" != "x" ; then
6386      ax_arg_list="${CLR}"
6387    fi
6388    CLR=""
6389
6390    for ac_prog in ${ax_arg_list} ; do
6391      set dummy $ac_prog; ac_word=${2}
6392      ## if argument is absolute we check whether such a file exists,
6393      ## otherwise we lookup PATH. Each hit will be added to main
6394      ## variable.
6395      case $ac_word in
6396        [\\/]* | ?:[\\/]*)
6397          echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399          if test -f $ac_word ; then
6400            CLR="${CLR} ${ac_word}"
6401            echo "$as_me:$LINENO: result: yes" >&5
6402echo "${ECHO_T}yes" >&6
6403          else
6404            echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406          fi
6407          ;;
6408        *)
6409          as_found=
6410          as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411          for as_dir in $PATH
6412          do
6413           IFS=$as_save_IFS
6414           test -z "$as_dir" && as_dir=.
6415           for ac_exec_ext in '' $ac_executable_extensions; do
6416             if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417               CLR="${CLR} $as_dir/$ac_word$ac_exec_ext"
6418               echo "$as_me:$LINENO: checking for $ac_word" >&5
6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420               echo "$as_me:$LINENO: result: $as_dir/$ac_word$ac_exec_ext" >&5
6421echo "${ECHO_T}$as_dir/$ac_word$ac_exec_ext" >&6
6422               as_found=1
6423             fi
6424           done
6425          done
6426          test "x$as_found" == "x" && {
6427            echo "$as_me:$LINENO: checking for $ac_word" >&5
6428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6429            echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
6431          }
6432          ;;
6433      esac
6434    done
6435
6436
6437    if test "x${CLR}" != "x" ; then
6438
6439    set x ${CLR}
6440    CLR="${2}"
6441
6442
6443
6444    else
6445      LANG_CS=0
6446            cat <<EOF
6447
6448============================================================
6449Warning:
6450Support for C# has been disabled as I have not been able to
6451locate a mandatory program. Please change \$PATH or run
6452with option --help on how to overcome this problem.
6453============================================================
6454
6455EOF
6456
6457
6458    fi
6459
6460
6461        ;;
6462    esac
6463
6464
6465    ;;
6466esac
6467
6468case $LANG_CS in
6469  1)
6470              ac_config_files="$ac_config_files scripts/csc.sh"
6471
6472
6473              ac_config_files="$ac_config_files lib/csharp/Makefile"
6474
6475              ac_config_files="$ac_config_files lib/csharp/antlr.runtime/Makefile"
6476
6477              ac_config_files="$ac_config_files lib/csharp/antlr.astframe/Makefile"
6478
6479
6480    # We have a Makefile that loops through all python examples.
6481    case $WITH_EXAMPLES in
6482      1)
6483                  ac_config_files="$ac_config_files examples/csharp/ASTsupport/Makefile"
6484
6485                  ac_config_files="$ac_config_files examples/csharp/HTML/Makefile"
6486
6487                  ac_config_files="$ac_config_files examples/csharp/IDL/Makefile"
6488
6489                  ac_config_files="$ac_config_files examples/csharp/ParseTreeDebug/Makefile"
6490
6491                  ac_config_files="$ac_config_files examples/csharp/TokenStreamRewrite/Makefile"
6492
6493                  ac_config_files="$ac_config_files examples/csharp/calc/Makefile"
6494
6495                  ac_config_files="$ac_config_files examples/csharp/columns/Makefile"
6496
6497                  ac_config_files="$ac_config_files examples/csharp/exprAST/Makefile"
6498
6499                  ac_config_files="$ac_config_files examples/csharp/filter/Makefile"
6500
6501                  ac_config_files="$ac_config_files examples/csharp/filterWithRule/Makefile"
6502
6503                  ac_config_files="$ac_config_files examples/csharp/heteroAST/Makefile"
6504
6505                  ac_config_files="$ac_config_files examples/csharp/java/Makefile"
6506
6507                  ac_config_files="$ac_config_files examples/csharp/multiLexer/Makefile"
6508
6509                  ac_config_files="$ac_config_files examples/csharp/parseBinary/Makefile"
6510
6511                  ac_config_files="$ac_config_files examples/csharp/preserveWhiteSpace/Makefile"
6512
6513                  ac_config_files="$ac_config_files examples/csharp/tinyc/Makefile"
6514
6515                  ac_config_files="$ac_config_files examples/csharp/unicode/Makefile"
6516
6517                  ac_config_files="$ac_config_files examples/csharp/Makefile"
6518
6519        ;;
6520    esac
6521    ;;
6522esac
6523
6524# We need a script that wrap java calls in order to make Java
6525# ANTLR aware. This script needs to be executable.
6526          ac_config_files="$ac_config_files scripts/java.sh"
6527
6528
6529# We need a script that wrap jar calls in order to make Java
6530# ANTLR aware. This script needs to be executable.
6531          ac_config_files="$ac_config_files scripts/jar.sh"
6532
6533
6534# We need a script that wrap javac calls in order to make Javac
6535# ANTLR aware. This script needs to be executable.
6536          ac_config_files="$ac_config_files scripts/javac.sh"
6537
6538
6539# We need a script that wraps antlr calls
6540          ac_config_files="$ac_config_files scripts/antlr.sh"
6541
6542
6543case $LANG_CXX in
6544  1)
6545    # We need a script that wraps how we compile C++
6546              ac_config_files="$ac_config_files scripts/cxx.sh"
6547
6548
6549    # # We need a script that wraps how we link C++
6550              ac_config_files="$ac_config_files scripts/link.sh"
6551
6552
6553    # There's a few C files around so make sure we can compile those as well
6554              ac_config_files="$ac_config_files scripts/c.sh"
6555
6556
6557     # We need a script that wraps how we build a (static?) library
6558              ac_config_files="$ac_config_files scripts/lib.sh"
6559
6560
6561    # We need a script that wraps how we run the preprocessor
6562              ac_config_files="$ac_config_files scripts/cpp.sh"
6563
6564
6565    # C++ library
6566              ac_config_files="$ac_config_files lib/cpp/Makefile"
6567
6568              ac_config_files="$ac_config_files lib/cpp/antlr/Makefile"
6569
6570              ac_config_files="$ac_config_files lib/cpp/src/Makefile"
6571
6572
6573    # C++ examples
6574    case $WITH_EXAMPLES in
6575      1)
6576                  ac_config_files="$ac_config_files examples/cpp/Makefile"
6577
6578                  ac_config_files="$ac_config_files examples/cpp/ASTsupport/Makefile"
6579
6580                  ac_config_files="$ac_config_files examples/cpp/calc/Makefile"
6581
6582                  ac_config_files="$ac_config_files examples/cpp/exprAST/Makefile"
6583
6584                  ac_config_files="$ac_config_files examples/cpp/filter/Makefile"
6585
6586                  ac_config_files="$ac_config_files examples/cpp/filterWithRule/Makefile"
6587
6588                  ac_config_files="$ac_config_files examples/cpp/flexLexer/Makefile"
6589
6590                  ac_config_files="$ac_config_files examples/cpp/HTML/Makefile"
6591
6592                  ac_config_files="$ac_config_files examples/cpp/heteroAST/Makefile"
6593
6594                  ac_config_files="$ac_config_files examples/cpp/IDL/Makefile"
6595
6596                  ac_config_files="$ac_config_files examples/cpp/imagNodeAST/Makefile"
6597
6598                  ac_config_files="$ac_config_files examples/cpp/includeFile/Makefile"
6599
6600                  ac_config_files="$ac_config_files examples/cpp/inherit.tinyc/Makefile"
6601
6602                  ac_config_files="$ac_config_files examples/cpp/java/Makefile"
6603
6604                  ac_config_files="$ac_config_files examples/cpp/lexRewrite/Makefile"
6605
6606                  ac_config_files="$ac_config_files examples/cpp/multiLexer/Makefile"
6607
6608                  ac_config_files="$ac_config_files examples/cpp/multiParser/Makefile"
6609
6610                  ac_config_files="$ac_config_files examples/cpp/parseBinary/Makefile"
6611
6612                  ac_config_files="$ac_config_files examples/cpp/preserveWhiteSpace/Makefile"
6613
6614                  ac_config_files="$ac_config_files examples/cpp/tinyc/Makefile"
6615
6616                  ac_config_files="$ac_config_files examples/cpp/tokenStreamRewrite/Makefile"
6617
6618                  ac_config_files="$ac_config_files examples/cpp/transform/Makefile"
6619
6620                  ac_config_files="$ac_config_files examples/cpp/treewalk/Makefile"
6621
6622                  ac_config_files="$ac_config_files examples/cpp/unicode/Makefile"
6623
6624        ;;
6625    esac
6626    ;;
6627esac
6628
6629# Makefile to build supplementary libraries ..
6630          ac_config_files="$ac_config_files lib/Makefile"
6631
6632case $WITH_EXAMPLES in
6633  1)
6634              ac_config_files="$ac_config_files examples/Makefile"
6635
6636    ;;
6637esac
6638
6639          ac_config_files="$ac_config_files doc/Makefile"
6640
6641          ac_config_files="$ac_config_files Makefile"
6642
6643                              ac_config_files="$ac_config_files scripts/antlr-config scripts/run-antlr scripts/antlr.spec"
6644
6645
6646case $LANG_JAVA in
6647  1)
6648              ac_config_files="$ac_config_files antlr/Makefile"
6649
6650    case $WITH_EXAMPLES in
6651      1)
6652                  ac_config_files="$ac_config_files examples/java/ASTsupport/Makefile"
6653
6654                  ac_config_files="$ac_config_files examples/java/HTML/Makefile"
6655
6656                  ac_config_files="$ac_config_files examples/java/IDL/Makefile"
6657
6658                  ac_config_files="$ac_config_files examples/java/calc/Makefile"
6659
6660                  ac_config_files="$ac_config_files examples/java/columns/Makefile"
6661
6662                  ac_config_files="$ac_config_files examples/java/exprAST/Makefile"
6663
6664                  ac_config_files="$ac_config_files examples/java/filter/Makefile"
6665
6666                  ac_config_files="$ac_config_files examples/java/filterWithRule/Makefile"
6667
6668                  ac_config_files="$ac_config_files examples/java/heteroAST/Makefile"
6669
6670                  ac_config_files="$ac_config_files examples/java/imagNodeAST/Makefile"
6671
6672                  ac_config_files="$ac_config_files examples/java/includeFile/Makefile"
6673
6674                  ac_config_files="$ac_config_files examples/java/inherit.tinyc/Makefile"
6675
6676                  ac_config_files="$ac_config_files examples/java/java/Makefile"
6677
6678                  ac_config_files="$ac_config_files examples/java/lexRewrite/Makefile"
6679
6680                  ac_config_files="$ac_config_files examples/java/linkChecker/Makefile"
6681
6682                  ac_config_files="$ac_config_files examples/java/multiLexer/Makefile"
6683
6684                  ac_config_files="$ac_config_files examples/java/parseBinary/Makefile"
6685
6686                  ac_config_files="$ac_config_files examples/java/pascal/Makefile"
6687
6688                  ac_config_files="$ac_config_files examples/java/preserveWhiteSpace/Makefile"
6689
6690                  ac_config_files="$ac_config_files examples/java/tinybasic/Makefile"
6691
6692                  ac_config_files="$ac_config_files examples/java/tinyc/Makefile"
6693
6694                  ac_config_files="$ac_config_files examples/java/transform/Makefile"
6695
6696                  ac_config_files="$ac_config_files examples/java/treewalk/Makefile"
6697
6698                  ac_config_files="$ac_config_files examples/java/unicode.IDENTs/Makefile"
6699
6700                  ac_config_files="$ac_config_files examples/java/unicode/Makefile"
6701
6702                  ac_config_files="$ac_config_files examples/java/xml/Makefile"
6703
6704                  ac_config_files="$ac_config_files examples/java/Makefile"
6705
6706                  ac_config_files="$ac_config_files examples/java/cpp/Makefile"
6707
6708        ;;
6709    esac
6710
6711    ANTLR_ACTION_FILES=""
6712    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/cpp/ActionLexer.java"
6713    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/cpp/ActionLexerTokenTypes.java"
6714    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/csharp/ActionLexer.java"
6715    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/csharp/ActionLexerTokenTypes.java"
6716    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/java/ActionLexer.java"
6717    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/java/ActionLexerTokenTypes.java"
6718    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/python/ActionLexer.java"
6719    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/python/ActionLexerTokenTypes.java"
6720    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/python/CodeLexer.java"
6721    ANTLR_ACTION_FILES="${ANTLR_ACTION_FILES} actions/python/CodeLexerTokenTypes.java"
6722
6723    ANTLR_ANTLR_FILES=""
6724    ANTLR_ANTLR_FILES="${ANTLR_ANTLR_FILES}   ANTLRParser.java"
6725    ANTLR_ANTLR_FILES="${ANTLR_ANTLR_FILES}   ANTLRTokenTypes.java"
6726    ANTLR_ANTLR_FILES="${ANTLR_ANTLR_FILES}   ANTLRLexer.java"
6727
6728    ANTLR_TOKDEF_FILES=""
6729    ANTLR_TOKDEF_FILES="${ANTLR_TOKDEF_FILES} ANTLRTokdefParser.java"
6730    ANTLR_TOKDEF_FILES="${ANTLR_TOKDEF_FILES} ANTLRTokdefLexer.java"
6731    ANTLR_TOKDEF_FILES="${ANTLR_TOKDEF_FILES} ANTLRTokdefParserTokenTypes.java"
6732
6733    ## This variables can be used in antlr/Makefile
6734
6735    file_list="${ANTLR_ACTION_FILES} ${ANTLR_ANTLR_FILES} ${ANTLR_TOKDEF_FILES}"
6736    if test "x${file_list}" == "x" ; then
6737      :
6738    else
6739      ANTLR_CONFIG_FILES=""
6740      ANTLR_FILE_LIST=""
6741
6742      ## iterate over my file list. If a file exists then  don't copy
6743      ## this file - autoconf's behaviour is to delete existing files.
6744      for x in ${file_list} ; do
6745        f="antlr/${x}"
6746        if test -f "${f}" ; then
6747          :
6748        else
6749          f="${f}:${f}"
6750          ANTLR_CONFIG_FILES="${ANTLR_CONFIG_FILES} ${f}"
6751          ANTLR_FILE_LIST="${ANTLR_FILE_LIST} antlr/${x}"
6752        fi
6753      done
6754
6755      ## copy files into build directory and make them writeable  (in
6756      ## case we copy them from our depot. The actions necessary here
6757      ## to execute  a  command  (chmod)  on  a list  of files is bit
6758      ## hackish - it may depend  on autoconf version in  use  (works
6759      ## fine for autoconf 2.59).
6760      ## The problem is that autoconf takes the file list literally,
6761      ## ie. we end up in config.status by something like
6762      ##
6763      ##  case $ac_file in
6764      ##  ..
6765      ##  $ANTLR_CONFIG_FILES) chmod a+w .. ;;
6766      ##  esac
6767      ##
6768      ## To make this work I'm introducing ANTLR_CONFIG_FILES as kind
6769      ## of 'catch-all'  variable.  The  side   effect  is that every
6770      ## file with no explicit action will get a "chmod  a+w ..." But
6771      ## that should be ok for Makefiles etc.
6772
6773                ac_config_files="$ac_config_files ${ANTLR_CONFIG_FILES}"
6774
6775    fi
6776    ;;
6777esac
6778
6779## compute basename of core libraries
6780antlr_jar=`basename ${ANTLR_JAR}`
6781antlr_net=`basename ${ANTLR_NET}`
6782antlr_lib=`basename ${ANTLR_LIB}`
6783antlr_py=`basename ${ANTLR_PY}`
6784astframe_net=`basename ${ASTFRAME_NET}`
6785
6786test -z "${JAVA}" && {
6787  JAVA=java
6788}
6789
6790### cygwin has no (supported) Java - users are requested to have java
6791### in their PATH in order to execute "bin/antlr.sh". To support this
6792### I'm making sure that just the basename is used.
6793case $host_os in
6794  *cygwin* |*mingw*|*msys*)
6795
6796    test -n "JAVA" && {
6797      JAVA=`basename ${JAVA}`
6798    }
6799
6800
6801  ;;
6802esac
6803
6804# we assume that we have standard rm arround. This should be checked.
6805RMF="$RM -r -f"
6806
6807cat >confcache <<\_ACEOF
6808# This file is a shell script that caches the results of configure
6809# tests run on this system so they can be shared between configure
6810# scripts and configure runs, see configure's option --config-cache.
6811# It is not useful on other systems.  If it contains results you don't
6812# want to keep, you may remove or edit it.
6813#
6814# config.status only pays attention to the cache file if you give it
6815# the --recheck option to rerun configure.
6816#
6817# `ac_cv_env_foo' variables (set or unset) will be overridden when
6818# loading this file, other *unset* `ac_cv_foo' will be assigned the
6819# following values.
6820
6821_ACEOF
6822
6823# The following way of writing the cache mishandles newlines in values,
6824# but we know of no workaround that is simple, portable, and efficient.
6825# So, don't put newlines in cache variables' values.
6826# Ultrix sh set writes to stderr and can't be redirected directly,
6827# and sets the high bit in the cache file unless we assign to the vars.
6828{
6829  (set) 2>&1 |
6830    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6831    *ac_space=\ *)
6832      # `set' does not quote correctly, so add quotes (double-quote
6833      # substitution turns \\\\ into \\, and sed turns \\ into \).
6834      sed -n \
6835        "s/'/'\\\\''/g;
6836          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6837      ;;
6838    *)
6839      # `set' quotes correctly as required by POSIX, so do not add quotes.
6840      sed -n \
6841        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6842      ;;
6843    esac;
6844} |
6845  sed '
6846     t clear
6847     : clear
6848     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6849     t end
6850     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6851     : end' >>confcache
6852if diff $cache_file confcache >/dev/null 2>&1; then :; else
6853  if test -w $cache_file; then
6854    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6855    cat confcache >$cache_file
6856  else
6857    echo "not updating unwritable cache $cache_file"
6858  fi
6859fi
6860rm -f confcache
6861
6862test "x$prefix" = xNONE && prefix=$ac_default_prefix
6863# Let make expand exec_prefix.
6864test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6865
6866# VPATH may cause trouble with some makes, so we remove $(srcdir),
6867# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6868# trailing colons and then remove the whole line if VPATH becomes empty
6869# (actually we leave an empty line to preserve line numbers).
6870if test "x$srcdir" = x.; then
6871  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6872s/:*\$(srcdir):*/:/;
6873s/:*\${srcdir}:*/:/;
6874s/:*@srcdir@:*/:/;
6875s/^\([^=]*=[     ]*\):*/\1/;
6876s/:*$//;
6877s/^[^=]*=[       ]*$//;
6878}'
6879fi
6880
6881# Transform confdefs.h into DEFS.
6882# Protect against shell expansion while executing Makefile rules.
6883# Protect against Makefile macro expansion.
6884#
6885# If the first sed substitution is executed (which looks for macros that
6886# take arguments), then we branch to the quote section.  Otherwise,
6887# look for a macro that doesn't take arguments.
6888cat >confdef2opt.sed <<\_ACEOF
6889t clear
6890: clear
6891s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6892t quote
6893s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6894t quote
6895d
6896: quote
6897s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6898s,\[,\\&,g
6899s,\],\\&,g
6900s,\$,$$,g
6901p
6902_ACEOF
6903# We use echo to avoid assuming a particular line-breaking character.
6904# The extra dot is to prevent the shell from consuming trailing
6905# line-breaks from the sub-command output.  A line-break within
6906# single-quotes doesn't work because, if this script is created in a
6907# platform that uses two characters for line-breaks (e.g., DOS), tr
6908# would break.
6909ac_LF_and_DOT=`echo; echo .`
6910DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6911rm -f confdef2opt.sed
6912
6913
6914ac_libobjs=
6915ac_ltlibobjs=
6916for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6917  # 1. Remove the extension, and $U if already installed.
6918  ac_i=`echo "$ac_i" |
6919         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6920  # 2. Add them.
6921  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6922  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6923done
6924LIBOBJS=$ac_libobjs
6925
6926LTLIBOBJS=$ac_ltlibobjs
6927
6928
6929
6930: ${CONFIG_STATUS=./config.status}
6931ac_clean_files_save=$ac_clean_files
6932ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6933{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6934echo "$as_me: creating $CONFIG_STATUS" >&6;}
6935cat >$CONFIG_STATUS <<_ACEOF
6936#! $SHELL
6937# Generated by $as_me.
6938# Run this file to recreate the current configuration.
6939# Compiler output produced by configure, useful for debugging
6940# configure, is in config.log if it exists.
6941
6942debug=false
6943ac_cs_recheck=false
6944ac_cs_silent=false
6945SHELL=\${CONFIG_SHELL-$SHELL}
6946_ACEOF
6947
6948cat >>$CONFIG_STATUS <<\_ACEOF
6949## --------------------- ##
6950## M4sh Initialization.  ##
6951## --------------------- ##
6952
6953# Be Bourne compatible
6954if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6955  emulate sh
6956  NULLCMD=:
6957  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6958  # is contrary to our usage.  Disable this feature.
6959  alias -g '${1+"$@"}'='"$@"'
6960elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6961  set -o posix
6962fi
6963DUALCASE=1; export DUALCASE # for MKS sh
6964
6965# Support unset when possible.
6966if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6967  as_unset=unset
6968else
6969  as_unset=false
6970fi
6971
6972
6973# Work around bugs in pre-3.0 UWIN ksh.
6974$as_unset ENV MAIL MAILPATH
6975PS1='$ '
6976PS2='> '
6977PS4='+ '
6978
6979# NLS nuisances.
6980for as_var in \
6981  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6982  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6983  LC_TELEPHONE LC_TIME
6984do
6985  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6986    eval $as_var=C; export $as_var
6987  else
6988    $as_unset $as_var
6989  fi
6990done
6991
6992# Required to use basename.
6993if expr a : '\(a\)' >/dev/null 2>&1; then
6994  as_expr=expr
6995else
6996  as_expr=false
6997fi
6998
6999if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7000  as_basename=basename
7001else
7002  as_basename=false
7003fi
7004
7005
7006# Name of the executable.
7007as_me=`$as_basename "$0" ||
7008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7009         X"$0" : 'X\(//\)$' \| \
7010         X"$0" : 'X\(/\)$' \| \
7011         .     : '\(.\)' 2>/dev/null ||
7012echo X/"$0" |
7013    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7014          /^X\/\(\/\/\)$/{ s//\1/; q; }
7015          /^X\/\(\/\).*/{ s//\1/; q; }
7016          s/.*/./; q'`
7017
7018
7019# PATH needs CR, and LINENO needs CR and PATH.
7020# Avoid depending upon Character Ranges.
7021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7024as_cr_digits='0123456789'
7025as_cr_alnum=$as_cr_Letters$as_cr_digits
7026
7027# The user is always right.
7028if test "${PATH_SEPARATOR+set}" != set; then
7029  echo "#! /bin/sh" >conf$$.sh
7030  echo  "exit 0"   >>conf$$.sh
7031  chmod +x conf$$.sh
7032  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7033    PATH_SEPARATOR=';'
7034  else
7035    PATH_SEPARATOR=:
7036  fi
7037  rm -f conf$$.sh
7038fi
7039
7040
7041  as_lineno_1=$LINENO
7042  as_lineno_2=$LINENO
7043  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7044  test "x$as_lineno_1" != "x$as_lineno_2" &&
7045  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7046  # Find who we are.  Look in the path if we contain no path at all
7047  # relative or not.
7048  case $0 in
7049    *[\\/]* ) as_myself=$0 ;;
7050    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7056done
7057
7058       ;;
7059  esac
7060  # We did not find ourselves, most probably we were run as `sh COMMAND'
7061  # in which case we are not to be found in the path.
7062  if test "x$as_myself" = x; then
7063    as_myself=$0
7064  fi
7065  if test ! -f "$as_myself"; then
7066    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7067echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7068   { (exit 1); exit 1; }; }
7069  fi
7070  case $CONFIG_SHELL in
7071  '')
7072    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077  for as_base in sh bash ksh sh5; do
7078         case $as_dir in
7079         /*)
7080           if ("$as_dir/$as_base" -c '
7081  as_lineno_1=$LINENO
7082  as_lineno_2=$LINENO
7083  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7084  test "x$as_lineno_1" != "x$as_lineno_2" &&
7085  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7086             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7087             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7088             CONFIG_SHELL=$as_dir/$as_base
7089             export CONFIG_SHELL
7090             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7091           fi;;
7092         esac
7093       done
7094done
7095;;
7096  esac
7097
7098  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7099  # uniformly replaced by the line number.  The first 'sed' inserts a
7100  # line-number line before each line; the second 'sed' does the real
7101  # work.  The second script uses 'N' to pair each line-number line
7102  # with the numbered line, and appends trailing '-' during
7103  # substitution so that $LINENO is not a special case at line end.
7104  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7105  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7106  sed '=' <$as_myself |
7107    sed '
7108      N
7109      s,$,-,
7110      : loop
7111      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7112      t loop
7113      s,-$,,
7114      s,^['$as_cr_digits']*\n,,
7115    ' >$as_me.lineno &&
7116  chmod +x $as_me.lineno ||
7117    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7118echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7119   { (exit 1); exit 1; }; }
7120
7121  # Don't try to exec as it changes $[0], causing all sort of problems
7122  # (the dirname of $[0] is not the place where we might find the
7123  # original and so on.  Autoconf is especially sensible to this).
7124  . ./$as_me.lineno
7125  # Exit status is that of the last command.
7126  exit
7127}
7128
7129
7130case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7131  *c*,-n*) ECHO_N= ECHO_C='
7132' ECHO_T='      ' ;;
7133  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7134  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7135esac
7136
7137if expr a : '\(a\)' >/dev/null 2>&1; then
7138  as_expr=expr
7139else
7140  as_expr=false
7141fi
7142
7143rm -f conf$$ conf$$.exe conf$$.file
7144echo >conf$$.file
7145if ln -s conf$$.file conf$$ 2>/dev/null; then
7146  # We could just check for DJGPP; but this test a) works b) is more generic
7147  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7148  if test -f conf$$.exe; then
7149    # Don't use ln at all; we don't have any links
7150    as_ln_s='cp -p'
7151  else
7152    as_ln_s='ln -s'
7153  fi
7154elif ln conf$$.file conf$$ 2>/dev/null; then
7155  as_ln_s=ln
7156else
7157  as_ln_s='cp -p'
7158fi
7159rm -f conf$$ conf$$.exe conf$$.file
7160
7161if mkdir -p . 2>/dev/null; then
7162  as_mkdir_p=:
7163else
7164  test -d ./-p && rmdir ./-p
7165  as_mkdir_p=false
7166fi
7167
7168as_executable_p="test -f"
7169
7170# Sed expression to map a string onto a valid CPP name.
7171as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7172
7173# Sed expression to map a string onto a valid variable name.
7174as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7175
7176
7177# IFS
7178# We need space, tab and new line, in precisely that order.
7179as_nl='
7180'
7181IFS="   $as_nl"
7182
7183# CDPATH.
7184$as_unset CDPATH
7185
7186exec 6>&1
7187
7188# Open the log real soon, to keep \$[0] and so on meaningful, and to
7189# report actual input values of CONFIG_FILES etc. instead of their
7190# values after options handling.  Logging --version etc. is OK.
7191exec 5>>config.log
7192{
7193  echo
7194  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7195## Running $as_me. ##
7196_ASBOX
7197} >&5
7198cat >&5 <<_CSEOF
7199
7200This file was extended by antlr $as_me 2.7.7, which was
7201generated by GNU Autoconf 2.59.  Invocation command line was
7202
7203  CONFIG_FILES    = $CONFIG_FILES
7204  CONFIG_HEADERS  = $CONFIG_HEADERS
7205  CONFIG_LINKS    = $CONFIG_LINKS
7206  CONFIG_COMMANDS = $CONFIG_COMMANDS
7207  $ $0 $@
7208
7209_CSEOF
7210echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7211echo >&5
7212_ACEOF
7213
7214# Files that config.status was made for.
7215if test -n "$ac_config_files"; then
7216  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7217fi
7218
7219if test -n "$ac_config_headers"; then
7220  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7221fi
7222
7223if test -n "$ac_config_links"; then
7224  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7225fi
7226
7227if test -n "$ac_config_commands"; then
7228  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7229fi
7230
7231cat >>$CONFIG_STATUS <<\_ACEOF
7232
7233ac_cs_usage="\
7234\`$as_me' instantiates files from templates according to the
7235current configuration.
7236
7237Usage: $0 [OPTIONS] [FILE]...
7238
7239  -h, --help       print this help, then exit
7240  -V, --version    print version number, then exit
7241  -q, --quiet      do not print progress messages
7242  -d, --debug      don't remove temporary files
7243      --recheck    update $as_me by reconfiguring in the same conditions
7244  --file=FILE[:TEMPLATE]
7245                   instantiate the configuration file FILE
7246
7247Configuration files:
7248$config_files
7249
7250Configuration commands:
7251$config_commands
7252
7253Report bugs to <bug-autoconf@gnu.org>."
7254_ACEOF
7255
7256cat >>$CONFIG_STATUS <<_ACEOF
7257ac_cs_version="\\
7258antlr config.status 2.7.7
7259configured by $0, generated by GNU Autoconf 2.59,
7260  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7261
7262Copyright (C) 2003 Free Software Foundation, Inc.
7263This config.status script is free software; the Free Software Foundation
7264gives unlimited permission to copy, distribute and modify it."
7265srcdir=$srcdir
7266INSTALL="$INSTALL"
7267_ACEOF
7268
7269cat >>$CONFIG_STATUS <<\_ACEOF
7270# If no file are specified by the user, then we need to provide default
7271# value.  By we need to know if files were specified by the user.
7272ac_need_defaults=:
7273while test $# != 0
7274do
7275  case $1 in
7276  --*=*)
7277    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7278    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7279    ac_shift=:
7280    ;;
7281  -*)
7282    ac_option=$1
7283    ac_optarg=$2
7284    ac_shift=shift
7285    ;;
7286  *) # This is not an option, so the user has probably given explicit
7287     # arguments.
7288     ac_option=$1
7289     ac_need_defaults=false;;
7290  esac
7291
7292  case $ac_option in
7293  # Handling of the options.
7294_ACEOF
7295cat >>$CONFIG_STATUS <<\_ACEOF
7296  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7297    ac_cs_recheck=: ;;
7298  --version | --vers* | -V )
7299    echo "$ac_cs_version"; exit 0 ;;
7300  --he | --h)
7301    # Conflict between --help and --header
7302    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7303Try \`$0 --help' for more information." >&5
7304echo "$as_me: error: ambiguous option: $1
7305Try \`$0 --help' for more information." >&2;}
7306   { (exit 1); exit 1; }; };;
7307  --help | --hel | -h )
7308    echo "$ac_cs_usage"; exit 0 ;;
7309  --debug | --d* | -d )
7310    debug=: ;;
7311  --file | --fil | --fi | --f )
7312    $ac_shift
7313    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7314    ac_need_defaults=false;;
7315  --header | --heade | --head | --hea )
7316    $ac_shift
7317    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7318    ac_need_defaults=false;;
7319  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7320  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7321    ac_cs_silent=: ;;
7322
7323  # This is an error.
7324  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7325Try \`$0 --help' for more information." >&5
7326echo "$as_me: error: unrecognized option: $1
7327Try \`$0 --help' for more information." >&2;}
7328   { (exit 1); exit 1; }; } ;;
7329
7330  *) ac_config_targets="$ac_config_targets $1" ;;
7331
7332  esac
7333  shift
7334done
7335
7336ac_configure_extra_args=
7337
7338if $ac_cs_silent; then
7339  exec 6>/dev/null
7340  ac_configure_extra_args="$ac_configure_extra_args --silent"
7341fi
7342
7343_ACEOF
7344cat >>$CONFIG_STATUS <<_ACEOF
7345if \$ac_cs_recheck; then
7346  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7347  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7348fi
7349
7350_ACEOF
7351
7352cat >>$CONFIG_STATUS <<_ACEOF
7353#
7354# INIT-COMMANDS section.
7355#
7356
7357
7358        MAKE="${MAKE}"
7359
7360
7361CHMOD=${CHMOD}
7362
7363CHMOD=${CHMOD}
7364
7365CHMOD=${CHMOD}
7366
7367
7368          ANTLR_CONFIG_FILES='*'
7369          ANTLR_FILE_LIST="${ANTLR_FILE_LIST}"
7370          CHMOD="${CHMOD}"
7371
7372
7373
7374_ACEOF
7375
7376
7377
7378cat >>$CONFIG_STATUS <<\_ACEOF
7379for ac_config_target in $ac_config_targets
7380do
7381  case "$ac_config_target" in
7382  # Handling of arguments.
7383  "scripts/config.vars" ) CONFIG_FILES="$CONFIG_FILES scripts/config.vars" ;;
7384  "scripts/config.deps" ) CONFIG_FILES="$CONFIG_FILES scripts/config.deps" ;;
7385  "scripts/config.make" ) CONFIG_FILES="$CONFIG_FILES scripts/config.make" ;;
7386  "antlr/Version.java" ) CONFIG_FILES="$CONFIG_FILES antlr/Version.java" ;;
7387  "scripts/python.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/python.sh" ;;
7388  "scripts/pyantlr.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/pyantlr.sh:scripts/pyinst.sh.in" ;;
7389  "lib/python/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/python/Makefile" ;;
7390  "examples/python/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/Makefile" ;;
7391  "examples/python/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/asn1/Makefile" ;;
7392  "examples/python/ASTsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/ASTsupport/Makefile" ;;
7393  "examples/python/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/calc/Makefile" ;;
7394  "examples/python/columns/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/columns/Makefile" ;;
7395  "examples/python/exprAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/exprAST/Makefile" ;;
7396  "examples/python/filter/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/filter/Makefile" ;;
7397  "examples/python/filterWithRule/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/filterWithRule/Makefile" ;;
7398  "examples/python/heteroAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/heteroAST/Makefile" ;;
7399  "examples/python/HTML/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/HTML/Makefile" ;;
7400  "examples/python/IDL/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/IDL/Makefile" ;;
7401  "examples/python/imagNodeAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/imagNodeAST/Makefile" ;;
7402  "examples/python/includeFile/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/includeFile/Makefile" ;;
7403  "examples/python/inherit.tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/inherit.tinyc/Makefile" ;;
7404  "examples/python/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/java/Makefile" ;;
7405  "examples/python/lexerTester/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/lexerTester/Makefile" ;;
7406  "examples/python/lexRewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/lexRewrite/Makefile" ;;
7407  "examples/python/linkChecker/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/linkChecker/Makefile" ;;
7408  "examples/python/multiLexer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/multiLexer/Makefile" ;;
7409  "examples/python/multiParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/multiParser/Makefile" ;;
7410  "examples/python/parseBinary/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/parseBinary/Makefile" ;;
7411  "examples/python/pascal/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/pascal/Makefile" ;;
7412  "examples/python/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/cpp/Makefile" ;;
7413  "examples/python/preserveWhiteSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/preserveWhiteSpace/Makefile" ;;
7414  "examples/python/tinybasic/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/tinybasic/Makefile" ;;
7415  "examples/python/tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/tinyc/Makefile" ;;
7416  "examples/python/transform/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/transform/Makefile" ;;
7417  "examples/python/treewalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/treewalk/Makefile" ;;
7418  "examples/python/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/unicode/Makefile" ;;
7419  "examples/python/unicode.IDENTs/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/unicode.IDENTs/Makefile" ;;
7420  "examples/python/xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/python/xml/Makefile" ;;
7421  "scripts/csc.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/csc.sh" ;;
7422  "lib/csharp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/csharp/Makefile" ;;
7423  "lib/csharp/antlr.runtime/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/csharp/antlr.runtime/Makefile" ;;
7424  "lib/csharp/antlr.astframe/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/csharp/antlr.astframe/Makefile" ;;
7425  "examples/csharp/ASTsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/ASTsupport/Makefile" ;;
7426  "examples/csharp/HTML/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/HTML/Makefile" ;;
7427  "examples/csharp/IDL/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/IDL/Makefile" ;;
7428  "examples/csharp/ParseTreeDebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/ParseTreeDebug/Makefile" ;;
7429  "examples/csharp/TokenStreamRewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/TokenStreamRewrite/Makefile" ;;
7430  "examples/csharp/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/calc/Makefile" ;;
7431  "examples/csharp/columns/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/columns/Makefile" ;;
7432  "examples/csharp/exprAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/exprAST/Makefile" ;;
7433  "examples/csharp/filter/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/filter/Makefile" ;;
7434  "examples/csharp/filterWithRule/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/filterWithRule/Makefile" ;;
7435  "examples/csharp/heteroAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/heteroAST/Makefile" ;;
7436  "examples/csharp/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/java/Makefile" ;;
7437  "examples/csharp/multiLexer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/multiLexer/Makefile" ;;
7438  "examples/csharp/parseBinary/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/parseBinary/Makefile" ;;
7439  "examples/csharp/preserveWhiteSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/preserveWhiteSpace/Makefile" ;;
7440  "examples/csharp/tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/tinyc/Makefile" ;;
7441  "examples/csharp/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/unicode/Makefile" ;;
7442  "examples/csharp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/csharp/Makefile" ;;
7443  "scripts/java.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/java.sh" ;;
7444  "scripts/jar.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/jar.sh" ;;
7445  "scripts/javac.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/javac.sh" ;;
7446  "scripts/antlr.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/antlr.sh" ;;
7447  "scripts/cxx.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/cxx.sh" ;;
7448  "scripts/link.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/link.sh" ;;
7449  "scripts/c.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/c.sh" ;;
7450  "scripts/lib.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/lib.sh" ;;
7451  "scripts/cpp.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/cpp.sh" ;;
7452  "lib/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
7453  "lib/cpp/antlr/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/antlr/Makefile" ;;
7454  "lib/cpp/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/cpp/src/Makefile" ;;
7455  "examples/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;;
7456  "examples/cpp/ASTsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/ASTsupport/Makefile" ;;
7457  "examples/cpp/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/calc/Makefile" ;;
7458  "examples/cpp/exprAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/exprAST/Makefile" ;;
7459  "examples/cpp/filter/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/filter/Makefile" ;;
7460  "examples/cpp/filterWithRule/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/filterWithRule/Makefile" ;;
7461  "examples/cpp/flexLexer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/flexLexer/Makefile" ;;
7462  "examples/cpp/HTML/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/HTML/Makefile" ;;
7463  "examples/cpp/heteroAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/heteroAST/Makefile" ;;
7464  "examples/cpp/IDL/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/IDL/Makefile" ;;
7465  "examples/cpp/imagNodeAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/imagNodeAST/Makefile" ;;
7466  "examples/cpp/includeFile/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/includeFile/Makefile" ;;
7467  "examples/cpp/inherit.tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/inherit.tinyc/Makefile" ;;
7468  "examples/cpp/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/java/Makefile" ;;
7469  "examples/cpp/lexRewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/lexRewrite/Makefile" ;;
7470  "examples/cpp/multiLexer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/multiLexer/Makefile" ;;
7471  "examples/cpp/multiParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/multiParser/Makefile" ;;
7472  "examples/cpp/parseBinary/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/parseBinary/Makefile" ;;
7473  "examples/cpp/preserveWhiteSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/preserveWhiteSpace/Makefile" ;;
7474  "examples/cpp/tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/tinyc/Makefile" ;;
7475  "examples/cpp/tokenStreamRewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/tokenStreamRewrite/Makefile" ;;
7476  "examples/cpp/transform/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/transform/Makefile" ;;
7477  "examples/cpp/treewalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/treewalk/Makefile" ;;
7478  "examples/cpp/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/unicode/Makefile" ;;
7479  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7480  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
7481  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7482  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7483  "scripts/antlr-config" ) CONFIG_FILES="$CONFIG_FILES scripts/antlr-config" ;;
7484  "scripts/run-antlr" ) CONFIG_FILES="$CONFIG_FILES scripts/run-antlr" ;;
7485  "scripts/antlr.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/antlr.spec" ;;
7486  "antlr/Makefile" ) CONFIG_FILES="$CONFIG_FILES antlr/Makefile" ;;
7487  "examples/java/ASTsupport/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/ASTsupport/Makefile" ;;
7488  "examples/java/HTML/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/HTML/Makefile" ;;
7489  "examples/java/IDL/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/IDL/Makefile" ;;
7490  "examples/java/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/calc/Makefile" ;;
7491  "examples/java/columns/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/columns/Makefile" ;;
7492  "examples/java/exprAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/exprAST/Makefile" ;;
7493  "examples/java/filter/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/filter/Makefile" ;;
7494  "examples/java/filterWithRule/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/filterWithRule/Makefile" ;;
7495  "examples/java/heteroAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/heteroAST/Makefile" ;;
7496  "examples/java/imagNodeAST/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/imagNodeAST/Makefile" ;;
7497  "examples/java/includeFile/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/includeFile/Makefile" ;;
7498  "examples/java/inherit.tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/inherit.tinyc/Makefile" ;;
7499  "examples/java/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/java/Makefile" ;;
7500  "examples/java/lexRewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/lexRewrite/Makefile" ;;
7501  "examples/java/linkChecker/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/linkChecker/Makefile" ;;
7502  "examples/java/multiLexer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/multiLexer/Makefile" ;;
7503  "examples/java/parseBinary/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/parseBinary/Makefile" ;;
7504  "examples/java/pascal/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/pascal/Makefile" ;;
7505  "examples/java/preserveWhiteSpace/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/preserveWhiteSpace/Makefile" ;;
7506  "examples/java/tinybasic/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/tinybasic/Makefile" ;;
7507  "examples/java/tinyc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/tinyc/Makefile" ;;
7508  "examples/java/transform/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/transform/Makefile" ;;
7509  "examples/java/treewalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/treewalk/Makefile" ;;
7510  "examples/java/unicode.IDENTs/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/unicode.IDENTs/Makefile" ;;
7511  "examples/java/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/unicode/Makefile" ;;
7512  "examples/java/xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/xml/Makefile" ;;
7513  "examples/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
7514  "examples/java/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/java/cpp/Makefile" ;;
7515  "${ANTLR_CONFIG_FILES}" ) CONFIG_FILES="$CONFIG_FILES ${ANTLR_CONFIG_FILES}" ;;
7516  "notice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS notice" ;;
7517  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7518echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7519   { (exit 1); exit 1; }; };;
7520  esac
7521done
7522
7523# If the user did not use the arguments to specify the items to instantiate,
7524# then the envvar interface is used.  Set only those that are not.
7525# We use the long form for the default assignment because of an extremely
7526# bizarre bug on SunOS 4.1.3.
7527if $ac_need_defaults; then
7528  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7529  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7530fi
7531
7532# Have a temporary directory for convenience.  Make it in the build tree
7533# simply because there is no reason to put it here, and in addition,
7534# creating and moving files from /tmp can sometimes cause problems.
7535# Create a temporary directory, and hook for its removal unless debugging.
7536$debug ||
7537{
7538  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7539  trap '{ (exit 1); exit 1; }' 1 2 13 15
7540}
7541
7542# Create a (secure) tmp directory for tmp files.
7543
7544{
7545  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7546  test -n "$tmp" && test -d "$tmp"
7547}  ||
7548{
7549  tmp=./confstat$$-$RANDOM
7550  (umask 077 && mkdir $tmp)
7551} ||
7552{
7553   echo "$me: cannot create a temporary directory in ." >&2
7554   { (exit 1); exit 1; }
7555}
7556
7557_ACEOF
7558
7559cat >>$CONFIG_STATUS <<_ACEOF
7560
7561#
7562# CONFIG_FILES section.
7563#
7564
7565# No need to generate the scripts if there are no CONFIG_FILES.
7566# This happens for instance when ./config.status config.h
7567if test -n "\$CONFIG_FILES"; then
7568  # Protect against being on the right side of a sed subst in config.status.
7569  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7570   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7571s,@SHELL@,$SHELL,;t t
7572s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7573s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7574s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7575s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7576s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7577s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7578s,@exec_prefix@,$exec_prefix,;t t
7579s,@prefix@,$prefix,;t t
7580s,@program_transform_name@,$program_transform_name,;t t
7581s,@bindir@,$bindir,;t t
7582s,@sbindir@,$sbindir,;t t
7583s,@libexecdir@,$libexecdir,;t t
7584s,@datadir@,$datadir,;t t
7585s,@sysconfdir@,$sysconfdir,;t t
7586s,@sharedstatedir@,$sharedstatedir,;t t
7587s,@localstatedir@,$localstatedir,;t t
7588s,@libdir@,$libdir,;t t
7589s,@includedir@,$includedir,;t t
7590s,@oldincludedir@,$oldincludedir,;t t
7591s,@infodir@,$infodir,;t t
7592s,@mandir@,$mandir,;t t
7593s,@build_alias@,$build_alias,;t t
7594s,@host_alias@,$host_alias,;t t
7595s,@target_alias@,$target_alias,;t t
7596s,@DEFS@,$DEFS,;t t
7597s,@ECHO_C@,$ECHO_C,;t t
7598s,@ECHO_N@,$ECHO_N,;t t
7599s,@ECHO_T@,$ECHO_T,;t t
7600s,@LIBS@,$LIBS,;t t
7601s,@ANTLR_JAR@,$ANTLR_JAR,;t t
7602s,@ANTLR_LIB@,$ANTLR_LIB,;t t
7603s,@ANTLR_NET@,$ANTLR_NET,;t t
7604s,@ANTLR_PY@,$ANTLR_PY,;t t
7605s,@ASTFRAME_NET@,$ASTFRAME_NET,;t t
7606s,@antlr_jar@,$antlr_jar,;t t
7607s,@antlr_lib@,$antlr_lib,;t t
7608s,@antlr_net@,$antlr_net,;t t
7609s,@antlr_py@,$antlr_py,;t t
7610s,@astframe_net@,$astframe_net,;t t
7611s,@ANTLRFLAGS@,$ANTLRFLAGS,;t t
7612s,@ANTLR@,$ANTLR,;t t
7613s,@ANTLR_ACTION_FILES@,$ANTLR_ACTION_FILES,;t t
7614s,@ANTLR_ANTLR_FILES@,$ANTLR_ANTLR_FILES,;t t
7615s,@ANTLR_COMPILE_CMD@,$ANTLR_COMPILE_CMD,;t t
7616s,@ANTLR_CYGWIN@,$ANTLR_CYGWIN,;t t
7617s,@ANTLR_MINGW@,$ANTLR_MINGW,;t t
7618s,@ANTLR_TOKDEF_FILES@,$ANTLR_TOKDEF_FILES,;t t
7619s,@ANTLR_WIN32@,$ANTLR_WIN32,;t t
7620s,@ANTLR_WITH_ANTLR_CMD@,$ANTLR_WITH_ANTLR_CMD,;t t
7621s,@ANTLR_WITH_ANTLR_JAR@,$ANTLR_WITH_ANTLR_JAR,;t t
7622s,@ARFLAGS@,$ARFLAGS,;t t
7623s,@AR@,$AR,;t t
7624s,@AS@,$AS,;t t
7625s,@BOOTCLASSPATH@,$BOOTCLASSPATH,;t t
7626s,@CSHARPCFLAGS@,$CSHARPCFLAGS,;t t
7627s,@CSHARPC@,$CSHARPC,;t t
7628s,@CSHARP_COMPILE_CMD@,$CSHARP_COMPILE_CMD,;t t
7629s,@CLR@,$CLR,;t t
7630s,@CXX_COMPILE_CMD@,$CXX_COMPILE_CMD,;t t
7631s,@CXX_LIB_CMD@,$CXX_LIB_CMD,;t t
7632s,@CXX_LINK_CMD@,$CXX_LINK_CMD,;t t
7633s,@CYGPATH@,$CYGPATH,;t t
7634s,@C_COMPILE_CMD@,$C_COMPILE_CMD,;t t
7635s,@DEBUG@,$DEBUG,;t t
7636s,@EXEEXT@,$EXEEXT,;t t
7637s,@JARFLAGS@,$JARFLAGS,;t t
7638s,@JAR@,$JAR,;t t
7639s,@JAR_CMD@,$JAR_CMD,;t t
7640s,@JAVACFLAGS@,$JAVACFLAGS,;t t
7641s,@JAVAC@,$JAVAC,;t t
7642s,@JAVAFLAGS@,$JAVAFLAGS,;t t
7643s,@JAVA@,$JAVA,;t t
7644s,@JAVA_CMD@,$JAVA_CMD,;t t
7645s,@JAVA_COMPILE_CMD@,$JAVA_COMPILE_CMD,;t t
7646s,@LIBEXT@,$LIBEXT,;t t
7647s,@MAKE@,$MAKE,;t t
7648s,@OBJEXT@,$OBJEXT,;t t
7649s,@PATCHLEVEL@,$PATCHLEVEL,;t t
7650s,@PYTHONFLAGS@,$PYTHONFLAGS,;t t
7651s,@PYTHON@,$PYTHON,;t t
7652s,@SUBVERSION@,$SUBVERSION,;t t
7653s,@TIMESTAMP@,$TIMESTAMP,;t t
7654s,@TOUCH@,$TOUCH,;t t
7655s,@VERBOSE@,$VERBOSE,;t t
7656s,@VERSION@,$VERSION,;t t
7657s,@WITH_EXAMPLES@,$WITH_EXAMPLES,;t t
7658s,@abs_this_builddir@,$abs_this_builddir,;t t
7659s,@cxx@,$cxx,;t t
7660s,@jar@,$jar,;t t
7661s,@java@,$java,;t t
7662s,@javac@,$javac,;t t
7663s,@TAR@,$TAR,;t t
7664s,@RMF@,$RMF,;t t
7665s,@CP@,$CP,;t t
7666s,@ECHO@,$ECHO,;t t
7667s,@FIND@,$FIND,;t t
7668s,@STRONGNAME@,$STRONGNAME,;t t
7669s,@KEYFILE@,$KEYFILE,;t t
7670s,@APTC@,$APTC,;t t
7671s,@build@,$build,;t t
7672s,@build_cpu@,$build_cpu,;t t
7673s,@build_vendor@,$build_vendor,;t t
7674s,@build_os@,$build_os,;t t
7675s,@host@,$host,;t t
7676s,@host_cpu@,$host_cpu,;t t
7677s,@host_vendor@,$host_vendor,;t t
7678s,@host_os@,$host_os,;t t
7679s,@CYGPATH_M@,$CYGPATH_M,;t t
7680s,@CYGPATH_W@,$CYGPATH_W,;t t
7681s,@just_make@,$just_make,;t t
7682s,@CXX@,$CXX,;t t
7683s,@CXXFLAGS@,$CXXFLAGS,;t t
7684s,@LDFLAGS@,$LDFLAGS,;t t
7685s,@CPPFLAGS@,$CPPFLAGS,;t t
7686s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7687s,@CC@,$CC,;t t
7688s,@CFLAGS@,$CFLAGS,;t t
7689s,@ac_ct_CC@,$ac_ct_CC,;t t
7690s,@CPP@,$CPP,;t t
7691s,@EGREP@,$EGREP,;t t
7692s,@LIBOBJS@,$LIBOBJS,;t t
7693s,@DOXYGEN@,$DOXYGEN,;t t
7694s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7695s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7696s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7697s,@RANLIB@,$RANLIB,;t t
7698s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7699s,@MKDIR@,$MKDIR,;t t
7700s,@RM@,$RM,;t t
7701s,@CHMOD@,$CHMOD,;t t
7702s,@SED@,$SED,;t t
7703s,@CAT@,$CAT,;t t
7704s,@GREP@,$GREP,;t t
7705s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7706/@stdvars@/r $stdvars
7707s,@stdvars@,,;t t
7708/@stddeps@/r $stddeps
7709s,@stddeps@,,;t t
7710/@stdmake@/r $stdmake
7711s,@stdmake@,,;t t
7712CEOF
7713
7714_ACEOF
7715
7716  cat >>$CONFIG_STATUS <<\_ACEOF
7717  # Split the substitutions into bite-sized pieces for seds with
7718  # small command number limits, like on Digital OSF/1 and HP-UX.
7719  ac_max_sed_lines=48
7720  ac_sed_frag=1 # Number of current file.
7721  ac_beg=1 # First line for current file.
7722  ac_end=$ac_max_sed_lines # Line after last line for current file.
7723  ac_more_lines=:
7724  ac_sed_cmds=
7725  while $ac_more_lines; do
7726    if test $ac_beg -gt 1; then
7727      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7728    else
7729      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7730    fi
7731    if test ! -s $tmp/subs.frag; then
7732      ac_more_lines=false
7733    else
7734      # The purpose of the label and of the branching condition is to
7735      # speed up the sed processing (if there are no `@' at all, there
7736      # is no need to browse any of the substitutions).
7737      # These are the two extra sed commands mentioned above.
7738      (echo ':t
7739  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7740      if test -z "$ac_sed_cmds"; then
7741        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7742      else
7743        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7744      fi
7745      ac_sed_frag=`expr $ac_sed_frag + 1`
7746      ac_beg=$ac_end
7747      ac_end=`expr $ac_end + $ac_max_sed_lines`
7748    fi
7749  done
7750  if test -z "$ac_sed_cmds"; then
7751    ac_sed_cmds=cat
7752  fi
7753fi # test -n "$CONFIG_FILES"
7754
7755_ACEOF
7756cat >>$CONFIG_STATUS <<\_ACEOF
7757for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7758  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7759  case $ac_file in
7760  - | *:- | *:-:* ) # input from stdin
7761        cat >$tmp/stdin
7762        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7763        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7764  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7765        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7766  * )   ac_file_in=$ac_file.in ;;
7767  esac
7768
7769  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7770  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7771$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7772         X"$ac_file" : 'X\(//\)[^/]' \| \
7773         X"$ac_file" : 'X\(//\)$' \| \
7774         X"$ac_file" : 'X\(/\)' \| \
7775         .     : '\(.\)' 2>/dev/null ||
7776echo X"$ac_file" |
7777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7778          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7779          /^X\(\/\/\)$/{ s//\1/; q; }
7780          /^X\(\/\).*/{ s//\1/; q; }
7781          s/.*/./; q'`
7782  { if $as_mkdir_p; then
7783    mkdir -p "$ac_dir"
7784  else
7785    as_dir="$ac_dir"
7786    as_dirs=
7787    while test ! -d "$as_dir"; do
7788      as_dirs="$as_dir $as_dirs"
7789      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7791         X"$as_dir" : 'X\(//\)[^/]' \| \
7792         X"$as_dir" : 'X\(//\)$' \| \
7793         X"$as_dir" : 'X\(/\)' \| \
7794         .     : '\(.\)' 2>/dev/null ||
7795echo X"$as_dir" |
7796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7797          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7798          /^X\(\/\/\)$/{ s//\1/; q; }
7799          /^X\(\/\).*/{ s//\1/; q; }
7800          s/.*/./; q'`
7801    done
7802    test ! -n "$as_dirs" || mkdir $as_dirs
7803  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7804echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7805   { (exit 1); exit 1; }; }; }
7806
7807  ac_builddir=.
7808
7809if test "$ac_dir" != .; then
7810  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7811  # A "../" for each directory in $ac_dir_suffix.
7812  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7813else
7814  ac_dir_suffix= ac_top_builddir=
7815fi
7816
7817case $srcdir in
7818  .)  # No --srcdir option.  We are building in place.
7819    ac_srcdir=.
7820    if test -z "$ac_top_builddir"; then
7821       ac_top_srcdir=.
7822    else
7823       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7824    fi ;;
7825  [\\/]* | ?:[\\/]* )  # Absolute path.
7826    ac_srcdir=$srcdir$ac_dir_suffix;
7827    ac_top_srcdir=$srcdir ;;
7828  *) # Relative path.
7829    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7830    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7831esac
7832
7833# Do not use `cd foo && pwd` to compute absolute paths, because
7834# the directories may not exist.
7835case `pwd` in
7836.) ac_abs_builddir="$ac_dir";;
7837*)
7838  case "$ac_dir" in
7839  .) ac_abs_builddir=`pwd`;;
7840  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7841  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7842  esac;;
7843esac
7844case $ac_abs_builddir in
7845.) ac_abs_top_builddir=${ac_top_builddir}.;;
7846*)
7847  case ${ac_top_builddir}. in
7848  .) ac_abs_top_builddir=$ac_abs_builddir;;
7849  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7850  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7851  esac;;
7852esac
7853case $ac_abs_builddir in
7854.) ac_abs_srcdir=$ac_srcdir;;
7855*)
7856  case $ac_srcdir in
7857  .) ac_abs_srcdir=$ac_abs_builddir;;
7858  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7859  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7860  esac;;
7861esac
7862case $ac_abs_builddir in
7863.) ac_abs_top_srcdir=$ac_top_srcdir;;
7864*)
7865  case $ac_top_srcdir in
7866  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7867  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7868  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7869  esac;;
7870esac
7871
7872
7873  case $INSTALL in
7874  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7875  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7876  esac
7877
7878  if test x"$ac_file" != x-; then
7879    { echo "$as_me:$LINENO: creating $ac_file" >&5
7880echo "$as_me: creating $ac_file" >&6;}
7881    rm -f "$ac_file"
7882  fi
7883  # Let's still pretend it is `configure' which instantiates (i.e., don't
7884  # use $as_me), people would be surprised to read:
7885  #    /* config.h.  Generated by config.status.  */
7886  if test x"$ac_file" = x-; then
7887    configure_input=
7888  else
7889    configure_input="$ac_file.  "
7890  fi
7891  configure_input=$configure_input"Generated from `echo $ac_file_in |
7892                                     sed 's,.*/,,'` by configure."
7893
7894  # First look for the input files in the build tree, otherwise in the
7895  # src tree.
7896  ac_file_inputs=`IFS=:
7897    for f in $ac_file_in; do
7898      case $f in
7899      -) echo $tmp/stdin ;;
7900      [\\/$]*)
7901         # Absolute (can't be DOS-style, as IFS=:)
7902         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7903echo "$as_me: error: cannot find input file: $f" >&2;}
7904   { (exit 1); exit 1; }; }
7905         echo "$f";;
7906      *) # Relative
7907         if test -f "$f"; then
7908           # Build tree
7909           echo "$f"
7910         elif test -f "$srcdir/$f"; then
7911           # Source tree
7912           echo "$srcdir/$f"
7913         else
7914           # /dev/null tree
7915           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7916echo "$as_me: error: cannot find input file: $f" >&2;}
7917   { (exit 1); exit 1; }; }
7918         fi;;
7919      esac
7920    done` || { (exit 1); exit 1; }
7921_ACEOF
7922cat >>$CONFIG_STATUS <<_ACEOF
7923  sed "$ac_vpsub
7924$extrasub
7925_ACEOF
7926cat >>$CONFIG_STATUS <<\_ACEOF
7927:t
7928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7929s,@configure_input@,$configure_input,;t t
7930s,@srcdir@,$ac_srcdir,;t t
7931s,@abs_srcdir@,$ac_abs_srcdir,;t t
7932s,@top_srcdir@,$ac_top_srcdir,;t t
7933s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7934s,@builddir@,$ac_builddir,;t t
7935s,@abs_builddir@,$ac_abs_builddir,;t t
7936s,@top_builddir@,$ac_top_builddir,;t t
7937s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7938s,@INSTALL@,$ac_INSTALL,;t t
7939" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7940  rm -f $tmp/stdin
7941  if test x"$ac_file" != x-; then
7942    mv $tmp/out $ac_file
7943  else
7944    cat $tmp/out
7945    rm -f $tmp/out
7946  fi
7947
7948  # Run the commands associated with the file.
7949  case $ac_file in
7950    scripts/python.sh ) ${CHMOD} a+x scripts/python.sh ;;
7951    scripts/pyantlr.sh ) ${CHMOD} a+x scripts/pyantlr.sh ;;
7952    scripts/csc.sh ) ${CHMOD} a+x scripts/csc.sh ;;
7953    scripts/java.sh ) ${CHMOD} a+x scripts/java.sh ;;
7954    scripts/jar.sh ) ${CHMOD} a+x scripts/jar.sh ;;
7955    scripts/javac.sh ) ${CHMOD} a+x scripts/javac.sh ;;
7956    scripts/antlr.sh ) ${CHMOD} a+x scripts/antlr.sh ;;
7957    scripts/cxx.sh ) ${CHMOD} a+x scripts/cxx.sh ;;
7958    scripts/link.sh ) ${CHMOD} a+x scripts/link.sh ;;
7959    scripts/c.sh ) ${CHMOD} a+x scripts/c.sh ;;
7960    scripts/lib.sh ) ${CHMOD} a+x scripts/lib.sh ;;
7961    scripts/cpp.sh ) ${CHMOD} a+x scripts/cpp.sh ;;
7962    ${ANTLR_CONFIG_FILES} )
7963          ### echo "config.status: chmod a+w ${ac_file} .."
7964          ${CHMOD} a+w "${ac_file}"  ;;
7965  esac
7966done
7967_ACEOF
7968cat >>$CONFIG_STATUS <<\_ACEOF
7969
7970#
7971# CONFIG_COMMANDS section.
7972#
7973for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7974  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7975  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7976  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7977$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7978         X"$ac_dest" : 'X\(//\)[^/]' \| \
7979         X"$ac_dest" : 'X\(//\)$' \| \
7980         X"$ac_dest" : 'X\(/\)' \| \
7981         .     : '\(.\)' 2>/dev/null ||
7982echo X"$ac_dest" |
7983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7984          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7985          /^X\(\/\/\)$/{ s//\1/; q; }
7986          /^X\(\/\).*/{ s//\1/; q; }
7987          s/.*/./; q'`
7988  { if $as_mkdir_p; then
7989    mkdir -p "$ac_dir"
7990  else
7991    as_dir="$ac_dir"
7992    as_dirs=
7993    while test ! -d "$as_dir"; do
7994      as_dirs="$as_dir $as_dirs"
7995      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7997         X"$as_dir" : 'X\(//\)[^/]' \| \
7998         X"$as_dir" : 'X\(//\)$' \| \
7999         X"$as_dir" : 'X\(/\)' \| \
8000         .     : '\(.\)' 2>/dev/null ||
8001echo X"$as_dir" |
8002    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8003          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8004          /^X\(\/\/\)$/{ s//\1/; q; }
8005          /^X\(\/\).*/{ s//\1/; q; }
8006          s/.*/./; q'`
8007    done
8008    test ! -n "$as_dirs" || mkdir $as_dirs
8009  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8011   { (exit 1); exit 1; }; }; }
8012
8013  ac_builddir=.
8014
8015if test "$ac_dir" != .; then
8016  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8017  # A "../" for each directory in $ac_dir_suffix.
8018  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8019else
8020  ac_dir_suffix= ac_top_builddir=
8021fi
8022
8023case $srcdir in
8024  .)  # No --srcdir option.  We are building in place.
8025    ac_srcdir=.
8026    if test -z "$ac_top_builddir"; then
8027       ac_top_srcdir=.
8028    else
8029       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8030    fi ;;
8031  [\\/]* | ?:[\\/]* )  # Absolute path.
8032    ac_srcdir=$srcdir$ac_dir_suffix;
8033    ac_top_srcdir=$srcdir ;;
8034  *) # Relative path.
8035    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8036    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8037esac
8038
8039# Do not use `cd foo && pwd` to compute absolute paths, because
8040# the directories may not exist.
8041case `pwd` in
8042.) ac_abs_builddir="$ac_dir";;
8043*)
8044  case "$ac_dir" in
8045  .) ac_abs_builddir=`pwd`;;
8046  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8047  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8048  esac;;
8049esac
8050case $ac_abs_builddir in
8051.) ac_abs_top_builddir=${ac_top_builddir}.;;
8052*)
8053  case ${ac_top_builddir}. in
8054  .) ac_abs_top_builddir=$ac_abs_builddir;;
8055  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8056  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8057  esac;;
8058esac
8059case $ac_abs_builddir in
8060.) ac_abs_srcdir=$ac_srcdir;;
8061*)
8062  case $ac_srcdir in
8063  .) ac_abs_srcdir=$ac_abs_builddir;;
8064  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8065  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8066  esac;;
8067esac
8068case $ac_abs_builddir in
8069.) ac_abs_top_srcdir=$ac_top_srcdir;;
8070*)
8071  case $ac_top_srcdir in
8072  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8073  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8074  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8075  esac;;
8076esac
8077
8078
8079  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8080echo "$as_me: executing $ac_dest commands" >&6;}
8081  case $ac_dest in
8082    notice )
8083        { echo "$as_me:$LINENO:
8084 ---------------------------------------------------------
8085                   * WARNING *
8086
8087  This package has been configured to be build by using
8088
8089   $MAKE
8090
8091  It is very likely that just running \"make\" from  the
8092  command line will fail. Please remember therefore to
8093  use the configured version.
8094 =========================================================
8095          " >&5
8096echo "$as_me:
8097 ---------------------------------------------------------
8098                   * WARNING *
8099
8100  This package has been configured to be build by using
8101
8102   $MAKE
8103
8104  It is very likely that just running \"make\" from  the
8105  command line will fail. Please remember therefore to
8106  use the configured version.
8107 =========================================================
8108          " >&6;}
8109         ;;
8110  esac
8111done
8112_ACEOF
8113
8114cat >>$CONFIG_STATUS <<\_ACEOF
8115
8116{ (exit 0); exit 0; }
8117_ACEOF
8118chmod +x $CONFIG_STATUS
8119ac_clean_files=$ac_clean_files_save
8120
8121
8122# configure is writing to config.log, and then calls config.status.
8123# config.status does its own redirection, appending to config.log.
8124# Unfortunately, on DOS this fails, as config.log is still kept open
8125# by configure, so config.status won't be able to write to it; its
8126# output is simply discarded.  So we exec the FD to /dev/null,
8127# effectively closing config.log, so it can be properly (re)opened and
8128# appended to by config.status.  When coming back to configure, we
8129# need to make the FD available again.
8130if test "$no_create" != yes; then
8131  ac_cs_success=:
8132  ac_config_status_args=
8133  test "$silent" = yes &&
8134    ac_config_status_args="$ac_config_status_args --quiet"
8135  exec 5>/dev/null
8136  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8137  exec 5>>config.log
8138  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139  # would make configure fail if this is the last instruction.
8140  $ac_cs_success || { (exit 1); exit 1; }
8141fi
8142
Note: See TracBrowser for help on using the repository browser.