[llvm-commits] [llvm] r149756 - in /llvm/trunk: autoconf/configure.ac configure
Dylan Noblesmith
nobled at dreamwidth.org
Fri Feb 3 19:00:51 PST 2012
Author: nobled
Date: Fri Feb 3 21:00:50 2012
New Revision: 149756
URL: http://llvm.org/viewvc/llvm-project?rev=149756&view=rev
Log:
autoconf: put generated clang files in build dir
It was writing generated files to the clang srcdir when
'--with-clang-srcdir' was specified.
Modified:
llvm/trunk/autoconf/configure.ac
llvm/trunk/configure
Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=149756&r1=149755&r2=149756&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Fri Feb 3 21:00:50 2012
@@ -1574,8 +1574,11 @@
clang_src_root="$srcdir/tools/clang"
fi
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])
+ dnl Use variables to stay under 80 columns.
+ configh="include/clang/Config/config.h"
+ doxy="docs/doxygen.cfg"
+ AC_CONFIG_HEADERS([tools/clang/${configh}:${clang_src_root}/${configh}.in])
+ AC_CONFIG_FILES([tools/clang/${doxy}:${clang_src_root}/${doxy}.in])
fi
dnl OCaml findlib META file
Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=149756&r1=149755&r2=149756&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Fri Feb 3 21:00:50 2012
@@ -21055,9 +21055,11 @@
clang_src_root="$srcdir/tools/clang"
fi
if test -f ${clang_src_root}/README.txt; then
- ac_config_headers="$ac_config_headers ${clang_src_root}/include/clang/Config/config.h"
+ configh="include/clang/Config/config.h"
+ doxy="docs/doxygen.cfg"
+ ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
- ac_config_files="$ac_config_files ${clang_src_root}/docs/doxygen.cfg"
+ ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
fi
@@ -21679,8 +21681,8 @@
"Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
"llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
"docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
- "${clang_src_root}/include/clang/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ${clang_src_root}/include/clang/Config/config.h" ;;
- "${clang_src_root}/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES ${clang_src_root}/docs/doxygen.cfg" ;;
+ "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
+ "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
"bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
"setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
"Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
More information about the llvm-commits
mailing list