Avoid compiling plot if the source directory is missing

(cherry picked from commit e91f243b64)
This commit is contained in:
Eli Barzilay 2011-02-02 16:09:06 -05:00
parent e0029e50a8
commit 728cf780b1

View File

@ -1259,7 +1259,7 @@ fi
makefiles="$makefiles foreign/Makefile"
ac_configure_args="$ac_configure_args$SUB_CONFIGURE_EXTRAS"
if test "${enable_plot}" = "yes" ; then
if test -d "${srcdir}/plot" && test "${enable_plot}" = "yes" ; then
makefiles="$makefiles
plot/Makefile"
MAKE_PLOT=plot