Fix paths; AutoRegen.sh changes its current working directory to be the
authorDan Gohman <gohman@apple.com>
Tue, 24 Mar 2009 23:46:25 +0000 (23:46 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 Mar 2009 23:46:25 +0000 (23:46 +0000)
autoconf directory, but these paths need to be relative to the main
source directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67655 91177308-0d34-0410-b5e6-96231b3b80d8

projects/sample/autoconf/AutoRegen.sh
projects/sample/autoconf/configure.ac

index 126703ba5aaf10667a0b66cd7d671ed1aee0f99e..6e6931c7a9bc1e8ac3fb3560efe714aa0fb86fa5 100755 (executable)
@@ -13,14 +13,14 @@ cwd=`pwd`
 if test -d ../../../autoconf/m4 ; then
   cd ../../../autoconf/m4
   llvm_m4=`pwd`
-  llvm_src_root=../../..
-  llvm_obj_root=../../..
+  llvm_src_root=../..
+  llvm_obj_root=../..
   cd $cwd
 elif test -d ../../llvm/autoconf/m4 ; then
   cd ../../llvm/autoconf/m4
   llvm_m4=`pwd`
-  llvm_src_root=../..
-  llvm_obj_root=../..
+  llvm_src_root=..
+  llvm_obj_root=..
   cd $cwd
 else
   while true ; do
index 37c93a8f51529f9a219e5eb2e57d050f21fdf745..0764806ea9814f1d85bcbb47505e60872be5917c 100644 (file)
@@ -4,8 +4,8 @@ dnl **************************************************************************
 AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
 
 dnl Identify where LLVM source tree is
-LLVM_SRC_ROOT="../../"
-LLVM_OBJ_ROOT="../../"
+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($LLVM_SRC_ROOT/autoconf)