1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

autoconf: honor --with-clang-srcdir

configure was silently failing to produce anything in the case
where clang wasn't at tools/clang/, resulting in compilation
errors much later in the build when config.h didn't exist.

llvm-svn: 149563
This commit is contained in:
Dylan Noblesmith 2012-02-02 00:11:14 +00:00
parent 880d303f14
commit 1cf1411ac3

View File

@ -813,7 +813,7 @@ AC_ARG_WITH(clang-srcdir,
[Directory to the out-of-tree Clang source]),,
withval="-")
case "$withval" in
-) clang_src_root="" ;;
-) clang_src_root="$ac_pwd/tools/clang" ;;
/* | [[A-Za-z]]:[[\\/]]*) clang_src_root="$withval" ;;
*) clang_src_root="$ac_pwd/$withval" ;;
esac
@ -1588,9 +1588,9 @@ dnl Configure doxygen's configuration file
AC_CONFIG_FILES([docs/doxygen.cfg])
dnl Configure clang, if present
if test -f ${srcdir}/tools/clang/README.txt; then
AC_CONFIG_HEADERS([tools/clang/include/clang/Config/config.h])
AC_CONFIG_FILES([tools/clang/docs/doxygen.cfg])
if test -f ${clang_src_root}/README.txt; then
AC_CONFIG_HEADERS([${clang_src_root}/include/clang/Config/config.h])
AC_CONFIG_FILES([${clang_src_root}/docs/doxygen.cfg])
fi
dnl OCaml findlib META file