diff --git a/configure.in b/configure.in index 8f5bc1d54f..2b01a2f589 100644 --- a/configure.in +++ b/configure.in @@ -2852,9 +2852,11 @@ AC_CONFIG_FILES(Makefile, [{ echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk' fi } > confmk$$.tmp && mv -f confmk$$.tmp Makefile && + { grep '^ruby:' Makefile > /dev/null || ${MAKE-make} info-program | grep '^PROGRAM=ruby$' > /dev/null || - echo 'ruby: $(PROGRAM);' >> Makefile], + echo 'ruby: $(PROGRAM);' >> Makefile + }], [EXEEXT='$EXEEXT' gnumake='$gnumake']) ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc"