From: David MacKenzie Date: Mon, 26 Sep 1994 03:02:30 +0000 (+0000) Subject: remove extra slashes from end of srcdir X-Git-Tag: fsf-origin~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74cc3753fc2479e53045e952b3dcd908bbafef79;p=thirdparty%2Fautoconf.git remove extra slashes from end of srcdir --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 255c4a78c..0a35c26f7 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -519,6 +519,11 @@ if test ! -r $srcdir/$ac_unique_file; then AC_MSG_ERROR(can not find sources in $srcdir) fi fi +dnl Double slashes in pathnames in object file debugging info +dnl mess up M-x gdb in Emacs. +changequote(, )dnl +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +changequote([, ])dnl dnl Let the site file select an alternate cache file if it wants to. AC_SITE_LOAD diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 255c4a78c..0a35c26f7 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -519,6 +519,11 @@ if test ! -r $srcdir/$ac_unique_file; then AC_MSG_ERROR(can not find sources in $srcdir) fi fi +dnl Double slashes in pathnames in object file debugging info +dnl mess up M-x gdb in Emacs. +changequote(, )dnl +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +changequote([, ])dnl dnl Let the site file select an alternate cache file if it wants to. AC_SITE_LOAD