[], [with_cgraph=yes])
if test "x$with_cgraph" != "xyes"; then
- use_cgraph="No (disabled by)"
+ use_cgraph="No (disabled)"
+ use_graph="Yes"
else
use_cgraph="Yes"
+ use_graph="No (disabled deprecated)"
AC_DEFINE_UNQUOTED(WITH_CGRAPH,1,[Define if you want CGRAPH])
fi
AM_CONDITIONAL(WITH_CGRAPH, [test "x$use_cgraph" = "xYes"])
echo "graphviz-$VERSION will be compiled with the following:"
echo ""
echo "options:"
+echo " graph: $use_graph"
echo " cgraph: $use_cgraph"
echo " digcola: $use_digcola"
echo " expat: $use_expat"
# Available features are:
# SHARP GHOSTSCRIPT GUILE _IO JAVA LUA OCAML ORTHO PERL PHP
# PYTHON RUBY R_LANG TCL IPSEPCOLA MYLIBGD PANGOCAIRO RSVG
-# GTK GLITZ SMYRNA DEVIL MING GDK_PIXBUF _QT WEBP
+# GTK GLITZ SMYRNA DEVIL MING GDK_PIXBUF _QT WEBP CGRAPH
# SuSE uses a different mechanism to generate BuildRequires
# norootforbuild
#-- Red Hat Enterprise Linux (also Centos) specific Build Requirements --------------------
%if 0%{?rhel}
%if %rhel == 4
+%define CGRAPH 1
%define __X 1
BuildRequires: xorg-x11-devel
%endif
#-- Fedora specific Build Requirements --------------------------------------
%if 0%{?fedora}
%if %fedora >= 9
+%define CGRAPH 1
%define __X 1
BuildRequires: libXaw-devel libSM-devel libICE-devel libXpm-devel libXt-devel libXmu-devel libXext-devel libX11-devel
BuildRequires: fontconfig-devel
%{_mandir}/man1/unflatten.1*
%{_mandir}/man7/graphviz.7*
%{_libdir}/libcdt.so.*
+%if 0%{?CGRAPH}
%{_libdir}/libcgraph.so.*
+%endif
+%if ! 0%{?CGRAPH}
%{_libdir}/libgraph.so.*
+%endif
%{_libdir}/libgvc.so.*
%{_libdir}/libgvpr.so.*
%{_libdir}/libpathplan.so.*
--enable-r%{!?R_LANG:=no} \
--enable-ruby%{!?RUBY:=no} \
--enable-tcl%{!?TCL:=no} \
+ --with%{!?CGRAPH:out}-cgraph \
--with%{!?DEVIL:out}-devil \
--with%{!?WEBP:out}-webp \
--with%{!?GDK_PIXBUF:out}-gdk-pixbuf \
-I$(top_srcdir) \
-I$(top_srcdir)/lib/cdt
+if WITH_CGRAPH
pkginclude_HEADERS = cgraph.h
noinst_HEADERS = agxbuf.h cghdr.h malloc.h vmstub.h
noinst_LTLIBRARIES = libcgraph_C.la
pkgconfig_DATA = libcgraph.pc
man_MANS = cgraph.3
pdf_DATA = cgraph.3.pdf
+endif
libcgraph_C_la_SOURCES = agerror.c agxbuf.c apply.c attr.c edge.c \
flatten.c graph.c grammar.y id.c imap.c io.c mem.c node.c \
-I$(top_srcdir) \
-I$(top_srcdir)/lib/cdt
+if WITH_CGRAPH
+else
pkginclude_HEADERS = graph.h
noinst_HEADERS = libgraph.h triefa.h parser.h agxbuf.h
noinst_LTLIBRARIES = libgraph_C.la
pkgconfig_DATA = libgraph.pc
man_MANS = graph.3
pdf_DATA = graph.3.pdf
+endif
libgraph_C_la_SOURCES = \
attribs.c agxbuf.c edge.c graph.c graphio.c lexer.c \