gegl r2641 - trunk



Author: kcozens
Date: Sun Oct 19 21:41:42 2008
New Revision: 2641
URL: http://svn.gnome.org/viewvc/gegl?rev=2641&view=rev

Log:
* configure.ac: Added checks for the spiro library.


Modified:
   trunk/ChangeLog
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sun Oct 19 21:41:42 2008
@@ -816,6 +816,34 @@
 #AC_SUBST(LCMS_LIBS)
 
 
+####################
+# Check for libspiro
+####################
+
+AC_ARG_WITH(libspiro, [  --without-spiro         build without SPIRO support])
+
+spiro_ok="no"
+if test "x$with_libspiro" != "xno" && test -z "$LIBSPIRO"; then
+  AC_CHECK_LIB(spiro, run_spiro,
+    spiro_ok="yes",
+    spiro_ok="no  (usable SPIRO library not found)")
+  if test "$spiro_ok" = "yes"; then
+    AC_MSG_CHECKING([for spirolib.h])
+    AC_TRY_CPP([#include <spiro.h>],
+      spiro_ok="yes"
+      AC_DEFINE(HAVE_SPIRO, 1,
+                [Define to 1 if the spiro library is available])
+      LIBSPIRO='-lspiro',
+      spiro_ok="no  (Can't include spiro.h)")
+      AC_MSG_RESULT($spiro_ok)
+  fi
+fi
+
+AM_CONDITIONAL(HAVE_SPIRO, test "$spiro_ok" = "yes")
+
+AC_SUBST(LIBSPIRO)
+
+
 
 
 #######################
@@ -899,4 +927,5 @@
   avcodec:        $have_libavcodec
   avformat:       $have_libavformat
   V4L:            $have_v4l
+  spiro:          $spiro_ok
 ]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]