[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: Adds --disable-java and --disable-gcj switches to configure
From: |
Tushar Teredesai |
Subject: |
Patch: Adds --disable-java and --disable-gcj switches to configure |
Date: |
Sat, 13 Mar 2004 12:38:00 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040303 |
The following patch adds --disable-java and --disable-gcj options to
configure (PS: I am not subscribed to the mailing list)
diff -ur gettext-0.14.1.orig/gettext-runtime/configure.ac
gettext-0.14.1.patched/gettext-runtime/configure.ac
--- gettext-0.14.1.orig/gettext-runtime/configure.ac 2004-01-16
04:49:06.000000000 -0600
+++ gettext-0.14.1.patched/gettext-runtime/configure.ac 2004-03-13
10:38:51.000000000 -0600
@@ -35,6 +35,17 @@
AC_PROG_INSTALL
AC_PROG_YACC
+dnl Determine whether to check for Java stuff
+AC_ARG_ENABLE(java,
+ [ --disable-java do not check for Java compiler],
+ [if test "$enableval" != no; then
+ BUILDJAVA=yes
+ else
+ BUILDJAVA=no
+ fi
+ ], BUILDJAVA=yes)
+
+if test "$BUILDJAVA" = "yes"; then
gt_JAVACOMP
AC_CHECK_PROG(JAR, jar, jar)
if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
@@ -42,6 +53,7 @@
else
BUILDJAVA=no
fi
+fi
AC_SUBST(BUILDJAVA)
gt_CSHARPCOMP
diff -ur gettext-0.14.1.orig/gettext-tools/configure.ac
gettext-0.14.1.patched/gettext-tools/configure.ac
--- gettext-0.14.1.orig/gettext-tools/configure.ac 2004-01-16
04:49:06.000000000 -0600
+++ gettext-0.14.1.patched/gettext-tools/configure.ac 2004-03-13
10:39:10.000000000 -0600
@@ -36,14 +36,37 @@
AC_PROG_INSTALL
AC_PROG_YACC
+dnl Determine whether to check for gcj
+AC_ARG_ENABLE(gcj,
+ [ --disable-gcj do not check for GCJ],
+ [if test "$enableval" != no; then
+ BUILDJAVAEXE=yes
+ else
+ BUILDJAVAEXE=no
+ fi
+ ], BUILDJAVAEXE=yes)
+
+if test "$BUILDJAVAEXE" = "yes"; then
gt_GCJ
if test -n "$HAVE_GCJ"; then
BUILDJAVAEXE=yes
else
BUILDJAVAEXE=no
fi
+fi
AC_SUBST(BUILDJAVAEXE)
+dnl Determine whether to check for Java stuff
+AC_ARG_ENABLE(java,
+ [ --disable-java do not check for Java compiler],
+ [if test "$enableval" != no; then
+ BUILDJAVA=yes
+ else
+ BUILDJAVA=no
+ fi
+ ], BUILDJAVA=yes)
+
+if test "$BUILDJAVA" = "yes"; then
gt_JAVACOMP
AC_CHECK_PROG(JAR, jar, jar)
if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
@@ -51,14 +74,17 @@
else
BUILDJAVA=no
fi
+fi
AC_SUBST(BUILDJAVA)
+if test "$BUILDJAVA" = "yes"; then
gt_JAVAEXEC
if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
TESTJAVA=yes
else
TESTJAVA=no
fi
+fi
AC_SUBST(TESTJAVA)
gt_CSHARPCOMP
--
Tushar Teredesai
http://linuxfromscratch.org/~tushar/
http://www.geocities.com/tushar/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch: Adds --disable-java and --disable-gcj switches to configure,
Tushar Teredesai <=