|
|
1b277d |
diff -up gavl-1.1.1/configure.ac.gdither gavl-1.1.1/configure.ac
|
|
|
1b277d |
--- gavl-1.1.1/configure.ac.gdither 2009-07-13 22:42:38.000000000 +0200
|
|
|
1b277d |
+++ gavl-1.1.1/configure.ac 2009-10-28 00:02:31.461428785 +0100
|
|
|
1b277d |
@@ -217,6 +217,27 @@ TOP_SRCDIR=`cd ${srcdir} && pwd`
|
|
|
1b277d |
AC_SUBST(TOP_SRCDIR)
|
|
|
1b277d |
|
|
|
1b277d |
dnl
|
|
|
1b277d |
+dnl System libraries
|
|
|
1b277d |
+dnl
|
|
|
1b277d |
+
|
|
|
1b277d |
+AC_ARG_ENABLE(libgdither,
|
|
|
1b277d |
+ [ --enable-libgdither System libgdither (experimental)])
|
|
|
1b277d |
+if test "${enable_libgdither}" = "yes"
|
|
|
1b277d |
+then
|
|
|
1b277d |
+ PKG_CHECK_MODULES(LIBGDITHER, libgdither,
|
|
|
1b277d |
+ [
|
|
|
1b277d |
+ AC_DEFINE(HAVE_LIBGDITHER, 1, [Define to 1 if you have the `libgdither' library (-lgdither).])
|
|
|
1b277d |
+ have_libgdither="true"
|
|
|
1b277d |
+ ],
|
|
|
1b277d |
+ [
|
|
|
1b277d |
+ have_libgdither="false"
|
|
|
1b277d |
+ ]
|
|
|
1b277d |
+ )
|
|
|
1b277d |
+fi
|
|
|
1b277d |
+AM_CONDITIONAL(HAVE_LIBGDITHER, [test x$have_libgdither = xtrue])
|
|
|
1b277d |
+
|
|
|
1b277d |
+
|
|
|
1b277d |
+dnl
|
|
|
1b277d |
dnl Output variables
|
|
|
1b277d |
dnl
|
|
|
1b277d |
|
|
|
1b277d |
diff -up gavl-1.1.1/gavl/Makefile.am.gdither gavl-1.1.1/gavl/Makefile.am
|
|
|
1b277d |
--- gavl-1.1.1/gavl/Makefile.am.gdither 2009-05-13 17:10:37.000000000 +0200
|
|
|
1b277d |
+++ gavl-1.1.1/gavl/Makefile.am 2009-10-28 00:04:37.837435280 +0100
|
|
|
1b277d |
@@ -40,8 +40,15 @@ threednow_libs =
|
|
|
1b277d |
threednow_subdirs =
|
|
|
1b277d |
endif
|
|
|
1b277d |
|
|
|
1b277d |
+if HAVE_LIBGDITHER
|
|
|
1b277d |
+ MAYBE_LIBGDITHER_LA = @LIBGDITHER_LIBS@
|
|
|
1b277d |
+else
|
|
|
1b277d |
+ MAYBE_LIBGDITHER = libgdither
|
|
|
1b277d |
+ MAYBE_LIBGDITHER_LA = libgdither/libgdither.la
|
|
|
1b277d |
+endif
|
|
|
1b277d |
+
|
|
|
1b277d |
|
|
|
1b277d |
-SUBDIRS = hq c libgdither libsamplerate $(mmx_subdirs) \
|
|
|
1b277d |
+SUBDIRS = hq c $(MAYBE_LIBGDITHER) libsamplerate $(mmx_subdirs) \
|
|
|
1b277d |
$(sse_subdirs) \
|
|
|
1b277d |
$(sse2_subdirs) \
|
|
|
1b277d |
$(sse3_subdirs) \
|
|
|
1b277d |
@@ -109,7 +116,7 @@ $(sse3_libs) \
|
|
|
1b277d |
$(threednow_libs) \
|
|
|
1b277d |
c/libgavl_c.la \
|
|
|
1b277d |
hq/libgavl_hq.la \
|
|
|
1b277d |
-libgdither/libgdither.la \
|
|
|
1b277d |
+$(MAYBE_LIBGDITHER_LA) \
|
|
|
1b277d |
libsamplerate/libsamplerate.la \
|
|
|
1b277d |
@LIBGAVL_LIBS@ \
|
|
|
1b277d |
-lm
|