aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-10-03 20:41:20 +0000
committerRoland McGrath1993-10-03 20:41:20 +0000
commit916758115d339961315d4a298fee2bd72d6c851e (patch)
tree3178fbcf9e856c77c1bdca285707dd4d34317a20
parentca40a313268e6daf596c2f3e3d344470dbb47866 (diff)
downloademacs-916758115d339961315d4a298fee2bd72d6c851e.tar.gz
emacs-916758115d339961315d4a298fee2bd72d6c851e.zip
No longer use vpath_sed. Instead, when we notice srcdir already
configured, set extrasub to hack vpath in the makefiles.
-rwxr-xr-xconfigure1.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/configure1.in b/configure1.in
index 5218a22efa9..cca580ee366 100755
--- a/configure1.in
+++ b/configure1.in
@@ -390,13 +390,11 @@ if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
390 echo " use GNU make. If you do not have GNU make, then you must" 390 echo " use GNU make. If you do not have GNU make, then you must"
391 echo " now do \`make distclean' in ${srcdir}," 391 echo " now do \`make distclean' in ${srcdir},"
392 echo " and then run ${progname} again.") >&2 392 echo " and then run ${progname} again.") >&2
393 # We need a multi-line sed script, which cannot go in a makefile. 393 extrasub='/^VPATH[ ]*=/c\
394 vpath_sed='-f vpath.sed' 394vpath %.c $(srcdir)\
395else 395vpath %.h $(srcdir)\
396 # Do the normal substitution for VPATH. This will not crash non-GNU make. 396vpath %.in $(srcdir)'
397 vpath_sed=]'AC_QUOTE_SQUOTE(AC_QUOTE_SQUOTE('-e '\''s|^\(VPATH *=\).*$$|\1 ='\''"${srcdir}/${subdir}|"'))'[
398fi 397fi
399] AC_SUBST(vpath_sed) [
400 398
401### Make the necessary directories, if they don't exist. 399### Make the necessary directories, if they don't exist.
402for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do 400for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do