diff --git a/src/configure b/src/configure index 93be470962..32c4d54373 100755 --- a/src/configure +++ b/src/configure @@ -9920,7 +9920,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