diff --git a/llvm/autoconf/m4/config_makefile.m4 b/llvm/autoconf/m4/config_makefile.m4 index e30f18762015..f21a25631edf 100644 --- a/llvm/autoconf/m4/config_makefile.m4 +++ b/llvm/autoconf/m4/config_makefile.m4 @@ -3,5 +3,7 @@ # date. This macro is unique to LLVM. # AC_DEFUN([AC_CONFIG_MAKEFILE], -[AC_CONFIG_COMMANDS($1,${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/$1 $1,${srcdir}/autoconf/mkinstalldirs `dirname $1`) +[AC_CONFIG_COMMANDS($1, + [${llvm_src}/autoconf/mkinstalldirs `dirname $1` + ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/$1 $1]) ])