summaryrefslogtreecommitdiff
blob: da36c86efcb80cc388ea61d01f079a82d4164840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naur gdl-0.9rc1/configure.in gdl-0.9rc1.new/configure.in
--- gdl-0.9rc1/configure.in	2008-04-05 22:16:09.000000000 -0400
+++ gdl-0.9rc1.new/configure.in	2008-05-24 13:20:50.000000000 -0400
@@ -278,14 +278,14 @@
 
 if test "x$with_Magick" != "xno"; then
   if test "x$with_Magick" != "xyes"; then
-    LIBS="$LIBS -L$with_Magick/lib -lMagick++"
+    LIBS="$LIBS $(Magick++-config --libs)"
     INCLUDES="$INCLUDES -I$with_Magick/include"
   else
     LIBS="$LIBS -lMagick++"
-    INCLUDES="$INCLUDES -I/usr/include/magick"
+    INCLUDES="$INCLUDES $(Magick++-config --cppflags)"
   fi
 
-  AC_CHECK_LIB(Magick, GetMagickVersion, [AC_DEFINE([USE_MAGICK], [1], [Define if you want to use ImageMagick])], [
+  AC_CHECK_LIB(Magick++, GetMagickVersion, [AC_DEFINE([USE_MAGICK], [1], [Define if you want to use ImageMagick])], [
     echo ""
     echo "Error! ImageMagick version 5.5.7 or later is required but was not found"
     echo "       Use --with-Magick=DIR to specify the ImageMagick directory tree"