]> granicus.if.org Git - graphviz/commitdiff
rough hack for a quartz test
authorellson <devnull@localhost>
Mon, 21 Jan 2008 01:23:35 +0000 (01:23 +0000)
committerellson <devnull@localhost>
Mon, 21 Jan 2008 01:23:35 +0000 (01:23 +0000)
configure.ac

index 72001c7b4a210ac7af5b73de3c2a678443a7672c..f931e78bc7bf4f96c13a7e65133b9381f0c074c5 100644 (file)
@@ -1820,11 +1820,19 @@ AC_ARG_WITH(quartz,
   [], [with_quartz=no])
 
 if test "x$with_quartz" = "xyes"; then
-PKG_CHECK_MODULES(QUARTZ, [libquartz >= 0.4],
-       [HAVE_QUARTZ=1
-       AC_DEFINE_UNQUOTED(HAVE_QUARTZ,1,
-               [Define if you have the quartz library for SWF support])],
-       [AC_MSG_WARN(quartz library not available)])
+#PKG_CHECK_MODULES(QUARTZ, [libquartz >= 0.4],
+#      [HAVE_QUARTZ=1
+#      AC_DEFINE_UNQUOTED(HAVE_QUARTZ,1,
+#              [Define if you have the quartz library for SWF support])],
+#      [AC_MSG_WARN(quartz library not available)])
+
+if test -d "/System/Library/Frameworks/ApplicationServices.framework"; then
+HAVE_QUARTZ=1
+AC_DEFINE_UNQUOTED(HAVE_QUARTZ,1,[Define if you have the quartz library for SWF support])
+QUARTZ_CFLAGS = '-I/usr/include/quartz'
+QUARTZ_CFLAGS = '-L/usr/lib -lquartz'
+fi
+
 fi
 AC_SUBST(QUARTZ_CFLAGS)
 AC_SUBST(QUARTZ_LIBS)