From 25c7a8c09f7db73b48675777aa805e788f2308be Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Wed, 6 Jan 2010 19:56:04 +0200 Subject: [PATCH] Install the ginac-excompiler script iff excompiler is supported and enabled. --- configure.ac | 1 + tools/Makefile.am | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 697ea5ce..631cbc07 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,7 @@ GINAC_READLINE dnl Check for dl library (needed for GiNaC::compile). GINAC_EXCOMPILER +AM_CONDITIONAL(CONFIG_EXCOMPILER, [test "x${CONFIG_EXCOMPILER}" = "xyes"]) dnl Check for utilities needed by the different kinds of documentation. dnl Documentation needs only be built when extending it, so never mind if it diff --git a/tools/Makefile.am b/tools/Makefile.am index 824d1feb..a634102d 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -4,7 +4,10 @@ bin_PROGRAMS = viewgar viewgar_SOURCES = viewgar.cpp viewgar_LDADD = ../ginac/libginac.la -bin_SCRIPTS = ginac-excompiler +bin_SCRIPTS = +if CONFIG_EXCOMPILER +bin_SCRIPTS += ginac-excompiler +endif AM_CPPFLAGS = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC -- 2.44.0