diff options
author | Richard Jones <rjones@centos5x32.home.annexia.org> | 2009-07-07 17:33:09 +0100 |
---|---|---|
committer | Richard Jones <rjones@centos5x32.home.annexia.org> | 2009-07-07 17:33:09 +0100 |
commit | 11400fde901e1c7a6d3c3887f322af66374793c2 (patch) | |
tree | 11646ddb2ae0e7f7f510d1c7393df2ed4e13a98c /java | |
parent | 9a3c4a62398d9f0c553ac2b5f43a3eefafd7bac5 (diff) | |
download | libguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.tar.gz libguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.tar.xz libguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.zip |
RHEL 5: $(builddir) did not exist with this old autoconf/automake, so workaround.
Diffstat (limited to 'java')
-rw-r--r-- | java/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/Makefile.am b/java/Makefile.am index b6827473..f0db4935 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -15,6 +15,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Old RHEL 5 autoconf doesn't have builddir. +builddir ?= $(top_builddir)/java + java_prefix = com/redhat/et/libguestfs java_sources = \ @@ -50,7 +53,7 @@ libguestfs_jardir = $(JAR_INSTALL_DIR) libguestfs_jar_DATA = libguestfs-${VERSION}.jar libguestfs_jar_class_files = $(java_sources:.java=.class) $(libguestfs_jar_class_files): %.class: %.java - $(JAVAC) $(JAVAC_FLAGS) -d @builddir@ -classpath @srcdir@:@builddir@ -sourcepath @srcdir@:@builddir@ $< + $(JAVAC) $(JAVAC_FLAGS) -d $(builddir) -classpath @srcdir@:$(builddir) -sourcepath @srcdir@:$(builddir) $< libguestfs-${VERSION}.jar: $(libguestfs_jar_class_files) $(JAR) cf $@ $^ @@ -69,7 +72,7 @@ libguestfs_jni_la_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_builddir)/src $(JNI BUILT_SOURCES = com_redhat_et_libguestfs_GuestFS.h com_redhat_et_libguestfs_GuestFS.h: $(java_prefix)/GuestFS.class - $(JAVAH) -classpath @srcdir@:@builddir@ com.redhat.et.libguestfs.GuestFS + $(JAVAH) -classpath @srcdir@:$(builddir) com.redhat.et.libguestfs.GuestFS # Documentation. |