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
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