3 # 'amplot' is largely pieced together by the instantiation phase of
4 # configure; that is handled here.
12 # Check for the requirements for amplot, and set the Automake conditional
13 # WANT_AMPLOT appropriately. If amplot is to be built, then also set up
14 # the required substitutions to build it correctly.
16 AC_DEFUN([AMANDA_SETUP_AMPLOT],
18 AC_REQUIRE([AMANDA_PROG_GNUPLOT])
19 AC_REQUIRE([AMANDA_PROG_PCAT])
20 AC_REQUIRE([AMANDA_PROG_COMPRESS])
21 AC_REQUIRE([AMANDA_PROG_GZIP])
22 AC_REQUIRE([AC_PROG_AWK])
24 if test "x$GNUPLOT" != "x"; then
27 # variable substitutions for amcat.awk
29 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
33 if test "$COMPRESS"; then
34 AMPLOT_COMPRESS=$COMPRESS
35 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
41 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
46 AC_SUBST(AMPLOT_COMPRESS)
47 AC_SUBST(AMPLOT_CAT_GZIP)
48 AC_SUBST(AMPLOT_CAT_COMPRESS)
49 AC_SUBST(AMPLOT_CAT_PACK)
52 AMANDA_MSG_WARN([Not building 'amplot', because gnuplot was not found])
55 AM_CONDITIONAL(WANT_AMPLOT, test x"$WANT_AMPLOT" = x"true")