This patch will use automake conditionals to compile or not depending
if epdf, edvi and eps are available.
--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [EMAIL PROTECTED]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
Index: configure.in
===================================================================
--- configure.in (revision 199)
+++ configure.in (working copy)
@@ -37,19 +37,22 @@
[epdf
esmart_container
esmart_text_entry
- ])
-
+ ], [HAVE_EPDF=true], [HAVE_EPDF=false])
+AM_CONDITIONAL(HAVE_EPDF, $HAVE_EPDF)
+
PKG_CHECK_MODULES([EDVI],
[edvi
esmart_container
esmart_text_entry
- ])
+ ], [HAVE_EDVI=true], [HAVE_EDVI=false])
+AM_CONDITIONAL(HAVE_EDVI, $HAVE_EDVI)
PKG_CHECK_MODULES([EPS],
[eps
esmart_container
esmart_text_entry
- ])
+ ], [HAVE_EPS=true], [HAVE_EPS=false])
+AM_CONDITIONAL(HAVE_EPS, $HAVE_EPS)
AC_OUTPUT([
Makefile
Index: src/plugins/document/Makefile.am
===================================================================
--- src/plugins/document/Makefile.am (revision 199)
+++ src/plugins/document/Makefile.am (working copy)
@@ -8,24 +8,34 @@
plugindir = $(prefix)/lib/eyesight/plugins
-plugin_LTLIBRARIES = pdf.la dvi.la ps.la
+plugin_LTLIBRARIES =
+
+if HAVE_EPDF
+plugin_LTLIBRARIES += pdf.la
pdf_la_SOURCES = document.c animations.c toolbar.c view.c
pdf_la_CFLAGS = -Wall -DPDF -Werror -g
pdf_la_LDFLAGS = -module -avoid-version -no-undefined
pdf_la_LIBTOOLFLAGS = --tag=disable-static
pdf_la_LIBADD = @EYESIGHT_LIBS@ @EPDF_LIBS@ @intl_libs@ @dlopen_libs@
+endif
+if HAVE_EDVI
+plugin_LTLIBRARIES += dvi.la
dvi_la_SOURCES = document.c animations.c toolbar.c view.c
dvi_la_CFLAGS = -Wall -DDVI -Werror -g
dvi_la_LDFLAGS = -module -avoid-version -no-undefined
dvi_la_LIBTOOLFLAGS = --tag=disable-static
dvi_la_LIBADD = @EYESIGHT_LIBS@ @EDVI_LIBS@ @intl_libs@ @dlopen_libs@
+endif
+if HAVE_EPS
+plugin_LTLIBRARIES += ps.la
ps_la_SOURCES = document.c animations.c toolbar.c view.c
ps_la_CFLAGS = -Wall -DPS -Werror -g
ps_la_LDFLAGS = -module -avoid-version -no-undefined
ps_la_LIBTOOLFLAGS = --tag=disable-static
ps_la_LIBADD = @EYESIGHT_LIBS@ @EPS_LIBS@ @intl_libs@ @dlopen_libs@
+endif
EXTRA_DIST = animations.h document.h toolbar.h defines.h view.h
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel