Mercurial > emacs
changeset 4704:b5d192c0f910
Substitute variable `vpath_sed'.
If not in $srcdir and $srcdir is configured,
issue warning that GNU make is required,
and set vpath_sed to use vpath.sed script.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sun, 12 Sep 1993 10:47:34 +0000 |
parents | c5419d943526 |
children | bbeec82f0416 |
files | configure1.in |
diffstat | 1 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure1.in Sun Sep 12 10:45:13 1993 +0000 +++ b/configure1.in Sun Sep 12 10:47:34 1993 +0000 @@ -362,6 +362,23 @@ * ) srcdir="`(cd ${srcdir}; pwd)`" ;; esac +#### Check if the source directory already has a configured system in it. +if [ `pwd` != `(cd ${srcdir} && pwd)` ] \ + && [ -f "${srcdir}/src/config.h" ] ; then + (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used" + echo " as a build directory right now; it has been configured in its own" + echo " right. To configure in another directory as well, you MUST" + echo " use GNU make. If you do not have GNU make, then you must" + echo " now do \`make distclean' in ${srcdir}," + echo " and then run ${progname} again.") >&2 + # We need a multi-line sed script, which cannot go in a makefile. + vpath_sed='-f vpath.sed' +else + # Do the normal substitution for VPATH. This will not crash non-GNU make. + vpath_sed='-e '\''s|^\(VPATH *=\).*$$|\1 ='\''"${srcdir}/${subdir}|"' +fi +] AC_SUBST(vpath_sed) [ + ### Make the necessary directories, if they don't exist. for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do if [ ! -d ${dir} ]; then @@ -1293,4 +1310,4 @@ test -n "${exec_prefix}" && exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` ] -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile ${extra_output})