[llvm-commits] CVS: llvm-test/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Fri Apr 7 11:53:36 PDT 2006
Changes in directory llvm-test/autoconf:
configure.ac updated: 1.30 -> 1.31
---
Log message:
For PR646: http://llvm.cs.uiuc.edu/PR646 :
1. Provide a --with-externals=DIR option to configure to specify the base
directory for the external tests. Default its setting to the old
default: /home/vadve/shared/benchmarks
2. Change the EXTERNAL_BENCHMARK macro invocations in configure.ac to use the
value of LLVM_EXTERNALS (directory from --with-externals, or its default).
3. Change EXTERNAL_BENCHMARK macro to use AC_ARG_WITH instead of AC_ARG_ENABLE
since these options specify a location rather than enablement of a feature.
4. Move the EXTERNAL_BENCHMARK macro invocations from the end of the file to
just after the --with-externals definition so that it is clear that these
--with-x options are related.
---
Diffs of the changes: (+23 -11)
configure.ac | 34 +++++++++++++++++++++++-----------
1 files changed, 23 insertions(+), 11 deletions(-)
Index: llvm-test/autoconf/configure.ac
diff -u llvm-test/autoconf/configure.ac:1.30 llvm-test/autoconf/configure.ac:1.31
--- llvm-test/autoconf/configure.ac:1.30 Wed Dec 21 20:10:25 2005
+++ llvm-test/autoconf/configure.ac Fri Apr 7 13:53:21 2006
@@ -49,10 +49,31 @@
dnl **************************************************************************
dnl Location of LLVM source code
-AC_ARG_WITH(llvmsrc,AS_HELP_STRING(--with-llvmsrc,Location of LLVM Source Code),AC_SUBST(LLVM_SRC,[$withval]),AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`]))
+AC_ARG_WITH(llvmsrc,
+ AS_HELP_STRING([--with-llvmsrc=DIR],Location of LLVM Source Code),
+ AC_SUBST(LLVM_SRC,[$withval]),
+ AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`]))
dnl Location of LLVM object code
-AC_ARG_WITH(llvmobj,AS_HELP_STRING(--with-llvmobj,Location of LLVM Object Code),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
+AC_ARG_WITH(llvmobj,
+ AS_HELP_STRING([--with-llvmobj],Location of LLVM Object Code),
+ AC_SUBST(LLVM_OBJ,[$withval]),
+ AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
+
+dnl Location of the parent directory of the external tests
+AC_ARG_WITH(externals,
+ AS_HELP_STRING([--with-externals=DIR],Location of External Test code),
+ AC_SUBST(LLVM_EXTERNALS,[$withval]),
+ AC_SUBST(LLVM_EXTERNALS,[/home/vadve/shared/benchmarks]))
+
+dnl Configure the default locations of the external benchmarks
+EXTERNAL_BENCHMARK(spec95,${LLVM_EXTERNALS}/spec95/benchspec)
+EXTERNAL_BENCHMARK(spec2000,${LLVM_EXTERNALS}/speccpu2000/benchspec)
+EXTERNAL_BENCHMARK(povray,${LLVM_EXTERNALS}/povray31)
+EXTERNAL_BENCHMARK(namd,${LLVM_EXTERNALS}/spec_namd)
+EXTERNAL_BENCHMARK(sweep3d,${LLVM_EXTERNALS}/sweep3d)
+EXTERNAL_BENCHMARK(fpgrowth,${LLVM_EXTERNALS}/fpgrowth)
+EXTERNAL_BENCHMARK(alp,${LLVM_EXTERNALS}/alp)
dnl LLC Diff Option
AC_ARG_ENABLE(llc_diffs,
@@ -108,14 +129,5 @@
AC_CHECK_FUNC([re_comp],[AC_SUBST(HAVE_RE_COMP,[HAVE_RE_COMP:=1])],
[AC_SUBST(HAVE_RE_COMP,[[]])])
-dnl Configure the default locations of the external benchmarks
-EXTERNAL_BENCHMARK(spec95,/home/vadve/shared/benchmarks/spec95/benchspec)
-EXTERNAL_BENCHMARK(spec2000,/home/vadve/shared/benchmarks/speccpu2000/benchspec)
-EXTERNAL_BENCHMARK(povray,/home/vadve/shared/benchmarks/povray31)
-EXTERNAL_BENCHMARK(namd,/home/vadve/shared/benchmarks/spec_namd)
-EXTERNAL_BENCHMARK(sweep3d,/home/vadve/criswell/umt2k)
-EXTERNAL_BENCHMARK(fpgrowth,/home/vadve/shared/benchmarks/fpgrowth)
-EXTERNAL_BENCHMARK(alp,/home/vadve/shared/benchmarks/ALP)
-
dnl Create the output files
AC_OUTPUT
More information about the llvm-commits
mailing list