summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-25 14:15:30 +0000
committerJim Blandy <jimb@redhat.com>1993-05-25 14:15:30 +0000
commitc152618b26c8298e67e18e7d6af6d27620da9fc3 (patch)
tree7c5fed18a8352e68d0220e1fa4e092f25a49435c /configure1.in
parentec056de6ce900e8ccbf6100bed9cfb51ee6435de (diff)
downloademacs-c152618b26c8298e67e18e7d6af6d27620da9fc3.tar.gz
* configure.in: When looking for source in the same directory as
the configure script, make the path thus discovered absolute. If the user specifies the `--srcdir' switch, make that directory absolute too.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure1.in b/configure1.in
index df41927674b..1238db91d6d 100755
--- a/configure1.in
+++ b/configure1.in
@@ -286,7 +286,7 @@ case "${srcdir}" in
"" )
confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
- srcdir=$confdir
+ srcdir=`(cd $confdir ; pwd)`
else
if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
srcdir=`pwd`
@@ -309,6 +309,7 @@ sources may be found."
## Otherwise, check if the directory they specified is okay.
* )
+ srcdir=`(cd ${srcdir}; pwd)`
if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
(echo "\
${progname}: The directory specified with the \`--srcdir' option,