PageRenderTime 83ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 2ms

/lib/antlr-2.7.5/configure

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