From fb82b6d7d9921074e5135f02040b38a302d6b611 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 1 Oct 2011 04:55:00 +0000 Subject: [PATCH] [1.5] fix output when --disable-shared or --disable-static is passed to configure. Minor fix for jpwl compilation. --- CHANGES | 3 +++ applications/jpip/libopenjpip/Makefile.am | 8 ++++++++ configure.ac | 11 +++++++---- libopenjpeg/Makefile.am | 4 ++++ libopenjpeg/jpwl/Makefile.am | 6 +++++- 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 70fb84da..f08a0fef 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ What's New for OpenJPEG ! : changed + : added +October 1, 2011 ++ [vincent] fix output when --disable-shared or --disable-static is passed to configure. Minor fix for jpwl compilation. + September 9, 2011 + [antonin] added a new indexer functionality to the library. With the new '-jpip' option at encoding, the user can now generate a JP2 file including an XML box with the index used when browsing the image with JPIP. diff --git a/applications/jpip/libopenjpip/Makefile.am b/applications/jpip/libopenjpip/Makefile.am index fbdffda4..e86f6e15 100644 --- a/applications/jpip/libopenjpip/Makefile.am +++ b/applications/jpip/libopenjpip/Makefile.am @@ -62,11 +62,19 @@ libopenjpip_local_la_SOURCES = $(JPIP_SRC) install-data-hook: @echo -e " (LA)\t$(libdir)/libopenjpip_server.la" >> $(top_builddir)/report.txt +if BUILD_SHARED @( $(call solist_s) ) >> $(top_builddir)/report.txt +endif +if BUILD_STATIC @echo -e " (A)\t$(base_s)/$(a_s)" >> $(top_builddir)/report.txt +endif @echo -e " (LA)\t$(libdir)/libopenjpip_local.la" >> $(top_builddir)/report.txt +if BUILD_SHARED @( $(call solist_c) ) >> $(top_builddir)/report.txt +endif +if BUILD_STATIC @echo -e " (A)\t$(base_c)/$(a_c)" >> $(top_builddir)/report.txt +endif solist_s = $(foreach f, $(dll_s) $(so_s), echo -e ' $(SO_PREFIX)\t$(base_s)/$(f)' ;) get_tok_s = $(shell grep -E "^$(1)=" libopenjpip_server.la | cut -d "'" -f 2) diff --git a/configure.ac b/configure.ac index 5cdf640b..f1e68b31 100644 --- a/configure.ac +++ b/configure.ac @@ -116,10 +116,6 @@ AC_ARG_ENABLE([jpwl], AC_MSG_CHECKING([whether to build the JPWL library]) AC_MSG_RESULT([${want_jpwl}]) -if test "x${want_jpwl}" = "xyes" ; then - AC_DEFINE(USE_JPWL, [1], [define to 1 if you use jpwl]) -fi - AM_CONDITIONAL([WANT_JPWL], [test "x${want_jpwl}" = "xyes"]) # JPIP @@ -397,6 +393,13 @@ fi ### Checks for library functions + +### Post configuration + +AM_CONDITIONAL([BUILD_SHARED], [test "x${enable_shared}" = "xyes"]) +AM_CONDITIONAL([BUILD_STATIC], [test "x${enable_static}" = "xyes"]) + + AC_CONFIG_FILES([ Makefile libopenjpeg1.pc diff --git a/libopenjpeg/Makefile.am b/libopenjpeg/Makefile.am index 4c160e08..23a94b14 100644 --- a/libopenjpeg/Makefile.am +++ b/libopenjpeg/Makefile.am @@ -78,8 +78,12 @@ install-data-hook: openjpeg.h @rm -rf $(top_builddir)/report.txt @echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt +if BUILD_SHARED @( $(call solist) ) >> $(top_builddir)/report.txt +endif +if BUILD_STATIC @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt +endif @echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt @echo -e " (LN)\t$(includedir)/openjpeg.h" >> $(top_builddir)/report.txt diff --git a/libopenjpeg/jpwl/Makefile.am b/libopenjpeg/jpwl/Makefile.am index 8677a399..f1eda310 100644 --- a/libopenjpeg/jpwl/Makefile.am +++ b/libopenjpeg/jpwl/Makefile.am @@ -26,7 +26,7 @@ OPJ_SRC = \ ../phix_manager.c \ ../ppix_manager.c \ ../thix_manager.c \ -../tpix_manager.c +../tpix_manager.c libopenjpeg_JPWL_la_CPPFLAGS = \ -I. \ @@ -50,8 +50,12 @@ rs.h install-data-hook: @echo -e " (LA)\t$(libdir)/libopenjpeg_JPWL.la" >> $(top_builddir)/report.txt +if BUILD_SHARED @( $(call solist) ) >> $(top_builddir)/report.txt +endif +if BUILD_STATIC @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt +endif solist = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;) get_tok = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)