/hg/icedtea6: New configure option --with-llvm-config
doko at icedtea.classpath.org
doko at icedtea.classpath.org
Thu Oct 14 04:28:54 PDT 2010
changeset be9262040bbc in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=be9262040bbc
author: doko at ubuntu.com
date: Thu Oct 14 13:25:44 2010 +0200
New configure option --with-llvm-config
2010-10-14 Matthias Klose <doko at ubuntu.com>
* configure.ac: New option --with-llvm-config.
* INSTALL: Document it.
diffstat:
3 files changed, 22 insertions(+), 1 deletion(-)
ChangeLog | 5 +++++
INSTALL | 1 +
configure.ac | 17 ++++++++++++++++-
diffs (51 lines):
diff -r 01c094e27afd -r be9262040bbc ChangeLog
--- a/ChangeLog Wed Oct 13 01:31:53 2010 +0100
+++ b/ChangeLog Thu Oct 14 13:25:44 2010 +0200
@@ -1,3 +1,8 @@ 2010-10-13 Andrew John Hughes <ahughes
+2010-10-14 Matthias Klose <doko at ubuntu.com>
+
+ * configure.ac: New option --with-llvm-config.
+ * INSTALL: Document it.
+
2010-10-13 Andrew John Hughes <ahughes at redhat.com>
* NEWS:
diff -r 01c094e27afd -r be9262040bbc INSTALL
--- a/INSTALL Wed Oct 13 01:31:53 2010 +0100
+++ b/INSTALL Thu Oct 14 13:25:44 2010 +0200
@@ -151,6 +151,7 @@ to configure:
* --with-tzdata-dir: Specify the location of Java timezone data, defaulting to /usr/share/javazi.
* --with-netbeans: Specify the location of NetBeans for VisualVM, defaulting to the netbeans on the path.
* --with-abs-install-dir: The final install location of the j2sdk-image, for use in the SystemTap tapset.
+* --with-llvm-config: Specify the location of the llvm-config binary.
Other options may be supplied which enable or disable new features.
These are documented fully in the relevant section below.
diff -r 01c094e27afd -r be9262040bbc configure.ac
--- a/configure.ac Wed Oct 13 01:31:53 2010 +0100
+++ b/configure.ac Thu Oct 14 13:25:44 2010 +0200
@@ -395,8 +395,23 @@ AC_SUBST(LIBFFI_CFLAGS)
AC_SUBST(LIBFFI_CFLAGS)
AC_SUBST(LIBFFI_LIBS)
+AC_ARG_WITH([llvm-config],
+ [AS_HELP_STRING([--with-llvm-config],
+ [llvm-config binary (default is llvm-config)])],
+ [
+ if test "x${withval}" != x; then
+ if which ${withval} >/dev/null 2>&1 && ${withval} --version >/dev/null 2>&1; then
+ LLVM_CONFIG=${withval}
+ else
+ AC_MSG_ERROR([invalid argument for --with-llvm-config ($withval)])
+ fi
+ fi
+ ])
+
if test "x${SHARK_BUILD_TRUE}" = x || test "x${ADD_SHARK_BUILD_TRUE}" = x; then
- FIND_TOOL([LLVM_CONFIG], [llvm-config])
+ if test "x${LLVM_CONFIG}" = x; then
+ FIND_TOOL([LLVM_CONFIG], [llvm-config])
+ fi
llvm_components="jit engine nativecodegen"
LLVM_VERSION="`$LLVM_CONFIG --version`"
dnl LLVM_CFLAGS
More information about the distro-pkg-dev
mailing list