-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.in
280 lines (236 loc) · 8.83 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
dnl Process this with autoconf to create configure
AC_INIT([kawa],[1.11-ai2]) dnl Also update build.xml.
AC_CONFIG_SRCDIR([doc/kawa.texi])
AM_MAINTAINER_MODE
AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE
dnl AC_ARG_WITH(classpath,[ --with-classpath Path to Java classes], classpath=$withval, classpath=$$CLASSPATH)
AC_ARG_ENABLE(kawa-frontend,
[ --enable-kawa-frontend Build "kawa" front-end program using readline],
enable_kawa_frontend=$enableval, enable_kawa_frontend=no)
AC_ARG_WITH(gcj,
AS_HELP_STRING(--with-gcj,Compile Kawa using GCJ (GNU Compiler for Java)))
AC_ARG_WITH(gcj-dbtool,
AS_HELP_STRING(--with-gcj-dbtool,Compile Kawa using GCJ and gcj-dbtool))
AC_ARG_WITH(libtool,
AS_HELP_STRING(--with-libtool, Use libtool))
AC_ARG_ENABLE(xml,
AS_HELP_STRING(--disable-xml,Don't build support for XML processing),
enable_xml=$enableval, enable_xml=yes)
AC_ARG_WITH(servlet,
AS_HELP_STRING(--with-servlet@<:@=servlet-api.jar@:>@,Build support for generating servlets))
AC_ARG_WITH(android,
AS_HELP_STRING(--with-android@<:@=android.jar@:>@,Build for the Android platform))
AC_ARG_WITH(XQTS,
AS_HELP_STRING(--with-XQTS@<:@=XQTS-path@:>@,Support XQuery Test Suite))
AC_ARG_ENABLE(echo2,
AS_HELP_STRING(--enable-echo2,Enable support for the Echo2 web toolkit))
AC_ARG_ENABLE(jemacs,
AS_HELP_STRING(--enable-jemacs,Build JEmacs))
AC_ARG_ENABLE(xquery,
AS_HELP_STRING(--enable-xquery,Build XQuery language support (Qexo) (default on)))
AC_ARG_ENABLE(brl,
AS_HELP_STRING(--enable-brl,Build BRL emulation and KRL))
AC_ARG_WITH(httpserver,
AS_HELP_STRING(--with-httpserver,Make use of JDK6's builtin http server))
AC_ARG_WITH(swing,
AS_HELP_STRING(--with-swing,Assume Swing is available (default on)))
AC_ARG_WITH(swt,
AS_HELP_STRING(--with-swt,Assume SWT is available))
AC_ARG_WITH(awt,
AS_HELP_STRING(--with-awt,Assume AWT is available (default on)))
AC_ARG_WITH(sax2,
AS_HELP_STRING(--with-sax2, Assume SAX2 is available (default on)))
AC_ARG_WITH(javax.script,
AS_HELP_STRING(--with-javax.script, Use javax.script interfaces))
AC_ARG_WITH(java-source,
AS_HELP_STRING(--with-java-source=NUM,Assume functionality of given Java/JDK version))
test -z "${with_java_source}" -a -n "${with_android}" \
&& with_java_source=android
with_java_source=`echo ${with_java_source} | tr A-Z a-z`
case "/${with_java_source}/" in
/1/) JAVA_SOURCE=1 ;;
/2/) JAVA_SOURCE=2 ;;
/4/) JAVA_SOURCE=4 ;;
/4x/) JAVA_SOURCE=4x ;;
/5/) JAVA_SOURCE=5 ;;
/6/) JAVA_SOURCE=6 ;;
/6compat5/) JAVA_SOURCE=6compat5 ;;
/7/) JAVA_SOURCE=7 ;;
/1.1*/) JAVA_SOURCE=1 ;;
/1.2*/) JAVA_SOURCE=2 ;;
/1.3*/) JAVA_SOURCE=2 ;;
/1.4*+jaxp1.3/) JAVA_SOURCE=4x ;;
/1.4*/) JAVA_SOURCE=4 ;;
/gcj4/) JAVA_SOURCE=4x ;;
/1.5*/) JAVA_SOURCE=5 ;;
/1.6*/) JAVA_SOURCE=6 ;;
/1.7*/) JAVA_SOURCE=7 ;;
/android*/)
JAVA_SOURCE=android
test -z "$with_swing" && with_swing="no"
test -z "$with_awt" && with_awt="no"
;;
//) JAVA_SOURCE=6 ;;
/*/) AC_MSG_ERROR([Invalid version for --with-java-version.
(Must be 1, 2, 5, 6, or a JDK version such as 1.4.)]) ;;
esac
AC_SUBST(JAVA_SOURCE)
if test -z "$with_sax2" ; then
case "$JAVA_SOURCE" in
1|2|3) with_sax2="no";;
esac
fi
if test -z "$with_javax_script"; then
case "$JAVA_SOURCE" in
6compat5|6|7) with_javax_script="yes";;
esac
fi
if test -z "$with_httpserver"; then
case "$JAVA_SOURCE" in
6compat5|6|7) with_httpserver="yes";;
esac
fi
AC_PROG_INSTALL
AC_PROG_LN_S
AC_EXEEXT
AC_OBJEXT
AC_PROG_CC
AC_PROG_CXX
TOP_BUILDDIR=`pwd`
test "${with_gcj_dbtool}" = "yes" -a -z "${with_gcj}" && with_gcj="yes"
case ${with_gcj} in
yes)
test -z "$enable_kawa_frontend" && enable_kawa_frontend="yes"
test -z "${with_gcj_dbtool}" && with_gcj_dbtool=no
GCJ_COMPILED_SELECTED=ENABLE_GCJ_COMPILED
GCJ_SELECTED=WITH_GCJ
JAVA=${JAVA-gij}
JAVAC=${JAVAC-"gcj -C"}
AC_CHECK_TOOL(GCJ, gcj)
test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
if test "x${GCJFLAGS-unset}" = xunset; then
GCJFLAGS="-g -O2"
fi
AC_SUBST(GCJFLAGS)
_AM_DEPENDENCIES(GCJ)
;;
*)
GCJ_COMPILED_SELECTED=DISABLE_GCJ_COMPILED
GCJ_SELECTED=WITHOUT_GCJ
JAVA=${JAVA-java}
JAVAC=${JAVAC-javac}
dnl needed to match _AM_DEPENDENCIES
am__fastdepGCJ_TRUE='#'
;;
esac
JAVACFLAGS=${JAVACFLAGS--g}
case "$JAVA_SOURCE" in
6compat5) JAVACFLAGS="${JAVACFLAGS} -target 1.5" ;;
esac
# Partly for compatibility (--enable/--disable-servlet was the old option);
# partly to allow --with-servlet=path-to-jar --disable-servlet.
# we essentially default enable-servlet to with-servlet. But we don't
# want to clutter up configure --help with --enable-servlet.
enable_servlet=${enable_servlet-${with_servlet}}
AM_CONDITIONAL(WITH_GCJ, test "$with_gcj" = "yes")
AM_CONDITIONAL(WITH_GCJ_DBTOOL, test "$with_gcj_dbtool" = "yes")
AM_CONDITIONAL(WITH_GCJ_NO_DBTOOL,
test "$with_gcj" = "yes" -a "$with_gcj_dbtool" != "yes")
AM_CONDITIONAL(ENABLE_ECHO2, test "$enable_echo2" = "yes")
AM_CONDITIONAL(WITH_ANDROID,
test "$with_android" != "" -a "$with_android" != "no")
AM_CONDITIONAL(ENABLE_BRL, test "$enable_brl" = "yes")
AM_CONDITIONAL(ENABLE_JEMACS, test "$enable_jemacs" = "yes")
AM_CONDITIONAL(ENABLE_XQUERY, test "$enable_xquery" != "no")
AM_CONDITIONAL(ENABLE_XML, test "$enable_xml" = "yes")
AM_CONDITIONAL(ENABLE_SERVLET,
test "$enable_servlet" != "" -a "$enable_servlet" != "no")
AM_CONDITIONAL(WITH_SWING, test "$with_swing" != "no")
AM_CONDITIONAL(WITH_SWT, test "$with_swt" = "yes")
AM_CONDITIONAL(WITH_AWT, test "$with_awt" != "no")
AM_CONDITIONAL(WITH_SAX2, test "$with_sax2" != "no")
AM_CONDITIONAL(WITH_JAVAX_SCRIPT, test "$with_javax_script" = "yes")
AM_CONDITIONAL(WITH_HTTPSERVER, test "$with_httpserver" = "yes")
AM_CONDITIONAL(WITH_XQTS, test "$with_XQTS" != "" -a "$with_XQTS" != "no")
AM_CONDITIONAL(ENABLE_KAWA_FRONTEND, test "$enable_kawa_frontend" = "yes")
AM_CONDITIONAL(WITH_LIBTOOL, test "$with_libtool" = "yes")
JEMACS_VERSION=`echo $VERSION | sed -e 's/^1/0/'`
BYTECODE_VERSION="$VERSION"
pathsep=':'
filesep='/'
case ${with_servlet} in
yes) ;;
no) ;;
"") ;;
*) conf_classpath=${with_servlet}${pathsep}$conf_classpath ;;
esac
case ${with_android} in
yes) ;;
no) ;;
"") ;;
*) conf_classpath=${with_android}${pathsep}$conf_classpath ;;
esac
case ${with_sax2} in
yes) SAX2_PREPROCESS="+SAX2";;
no) SAX2_PREPROCESS="-SAX2";;
*) SAX2_PREPROCESS=""
esac
XQTS_PATH=${with_XQTS:XQTS}
AC_SUBST(XQTS_PATH)
AC_SUBST(SAX2_PREPROCESS)
AC_SUBST(conf_classpath)
AC_SUBST(pathsep)
AC_SUBST(filesep)
AC_SUBST(JAVA)
AC_SUBST(JAVAC)
AC_SUBST(JAVACFLAGS)
#These don't do anything, because Make-rules can't contain autoconf
#substitutions. Perhaps fix when new automake is out.
#AC_SUBST(GCJ) AC_SUBST(GCJFLAGS)
AC_SUBST(GCJ_COMPILED_SELECTED)
AC_SUBST(GCJ_SELECTED)
AC_SUBST(TOP_BUILDDIR)
AC_SUBST(CC)
AC_SUBST(CFLAGS)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(JEMACS_VERSION)
AC_SUBST(BYTECODE_VERSION)
AC_SUBST(SHELL)
Make_rules="$srcdir/Make-rules"
AC_SUBST_FILE(Make_rules)
AC_CONFIG_LINKS(
gnu/xquery/testsuite/outline.xml:gnu/xquery/testsuite/outline.xml.in
gnu/xquery/testsuite/tab.xml:gnu/xquery/testsuite/tab.xml.in
gnu/xquery/testsuite/bib.xml:gnu/xquery/testsuite/bib.xml.in
gnu/xquery/testsuite/auction.xml:gnu/xquery/testsuite/auction.xml.in
gnu/xquery/testsuite/book1.xml:gnu/xquery/testsuite/book1.xml.in
gnu/xquery/testsuite/report1.xml:gnu/xquery/testsuite/report1.xml.in
gnu/xquery/testsuite/reviews.xml:gnu/xquery/testsuite/reviews.xml.in
gnu/xquery/testsuite/items.xml:gnu/xquery/testsuite/items.xml.in
gnu/xquery/testsuite/bids.xml:gnu/xquery/testsuite/bids.xml.in
gnu/xquery/testsuite/users.xml:gnu/xquery/testsuite/users.xml.in
testsuite/scribble.html:testsuite/scribble.html.in)
AC_CONFIG_FILES([Makefile gnu/bytecode/Makefile gnu/math/Makefile
gnu/lists/Makefile gnu/text/Makefile gnu/mapping/Makefile gnu/expr/Makefile
gnu/kawa/util/Makefile gnu/kawa/reflect/Makefile
gnu/kawa/functions/Makefile gnu/kawa/servlet/Makefile
gnu/xml/Makefile gnu/kawa/xml/Makefile
gnu/kawa/xslt/Makefile gnu/kawa/sax/Makefile
gnu/brl/Makefile gnu/kawa/brl/Makefile
gnu/kawa/lispexpr/Makefile gnu/kawa/slib/Makefile gnu/ecmascript/Makefile
gnu/commonlisp/Makefile gnu/commonlisp/lang/Makefile
gnu/commonlisp/lisp/Makefile gnu/commonlisp/testsuite/Makefile
gnu/jemacs/lang/Makefile gnu/jemacs/buffer/Makefile
gnu/jemacs/lisp/Makefile gnu/jemacs/testsuite/Makefile
gnu/jemacs/swing/Makefile gnu/jemacs/swt/Makefile
kawa/Makefile kawa/lang/Makefile kawa/standard/Makefile kawa/lib/Makefile
gnu/q2/Makefile gnu/q2/lang/Makefile
gnu/xquery/Makefile gnu/xquery/lang/Makefile
gnu/xquery/util/Makefile gnu/xquery/testsuite/Makefile
gnu/kawa/ant/Makefile
gnu/kawa/models/Makefile gnu/kawa/swingviews/Makefile
gnu/kawa/swtviews/Makefile gnu/kawa/echo2/Makefile gnu/kawa/android/Makefile
doc/Makefile testsuite/Makefile bin/Makefile])
AC_OUTPUT