diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-04-18 06:27:47 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-04-18 06:27:47 +0000 |
commit | b687ce80cdb5331c468df0fdfd14a4017ca19542 (patch) | |
tree | dcb21edb62e43a6da7b71c3a740f0d2e86c38741 /llvm/projects/sample/autoconf/configure.ac | |
parent | c81081ab5ec86873ba53cd2c2090a37143e56a62 (diff) | |
download | bcm5719-llvm-b687ce80cdb5331c468df0fdfd14a4017ca19542.tar.gz bcm5719-llvm-b687ce80cdb5331c468df0fdfd14a4017ca19542.zip |
Have the AutoRegen.sh script prompt the user for the LLVM src and obj
directories if it can't find them. Then, replace those values into the
configure.ac script and pass them to the LLVM_CONFIG_PROJECT so that the
values become the default for llvm_src and llvm_obj variables. In this way
the user is required to input this exactly once, and the scripts take it
from there.
llvm-svn: 27798
Diffstat (limited to 'llvm/projects/sample/autoconf/configure.ac')
-rw-r--r-- | llvm/projects/sample/autoconf/configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/projects/sample/autoconf/configure.ac b/llvm/projects/sample/autoconf/configure.ac index 43a2e903efd..37c93a8f515 100644 --- a/llvm/projects/sample/autoconf/configure.ac +++ b/llvm/projects/sample/autoconf/configure.ac @@ -3,13 +3,16 @@ dnl * Initialize dnl ************************************************************************** AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain]) +dnl Identify where LLVM source tree is +LLVM_SRC_ROOT="../../" +LLVM_OBJ_ROOT="../../" dnl Tell autoconf that the auxilliary files are actually located in dnl the LLVM autoconf directory, not here. -AC_CONFIG_AUX_DIR(../../autoconf) +AC_CONFIG_AUX_DIR($LLVM_SRC_ROOT/autoconf) dnl Tell autoconf that this is an LLVM project being configured dnl This provides the --with-llvmsrc and --with-llvmobj options -LLVM_CONFIG_PROJECT +LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT) dnl Verify that the source directory is valid AC_CONFIG_SRCDIR(["Makefile.common.in"]) |