blob: d369e4a08c9ca5431a90130f4a1d6e556a308fb3 [file] [log] [blame]
Reid Spencer018e77d2005-02-24 18:25:24 +00001#
2# Provide the arguments and other processing needed for an LLVM project
3#
4AC_DEFUN([LLVM_CONFIG_PROJECT],
5 [AC_ARG_WITH([llvmsrc],
6 AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),
7 [llvm_src="$withval"],[llvm_src=`cd ${srcdir}/../..; pwd`])
8 AC_SUBST(LLVM_SRC,$llvm_src)
9 AC_ARG_WITH([llvmobj],
10 AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),
11 [llvm_obj="$withval"],[llvm_obj=`cd ../..; pwd`])
12 AC_SUBST(LLVM_OBJ,$llvm_obj)
13 AC_CONFIG_COMMANDS([setup],,[llvm_src="${LLVM_SRC}"])
14])