From: Nick Bowler Date: Fri, 26 Feb 2021 05:07:09 +0000 (-0500) Subject: Include ${top_srcdir} in substituted DX_BASEDIR. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/a2a4e6a70ec3ed860f4ef0b4da1c2851ae4a988e Include ${top_srcdir} in substituted DX_BASEDIR. As far as I can tell I've never used this feature. When I tried to use this value in a makefile it quickly failed in VPATH builds for obvious reasons. So it seems reasonable to include this make variable in the substitution so things just work. --- diff --git a/m4/base.m4 b/m4/base.m4 index 42e8368..fd9b811 100644 --- a/m4/base.m4 +++ b/m4/base.m4 @@ -60,7 +60,8 @@ AC_DEFUN_ONCE([DX_INIT], [m4_do( [_DX_SET_BASEDIR([$1])], [AC_SUBST([DX_BASEDIR])], [AC_CONFIG_COMMANDS_PRE( - [[DX_BASEDIR]="AS_ESCAPE(m4_dquote(m4_defn([_DX_BASEDIR])))"])])]) + [[DX_BASEDIR]="\${top_srcdir}/AS_ESCAPE( + m4_dquote(m4_defn([_DX_BASEDIR])))"])])]) dnl DX_BASEDIR dnl