1 # 2 # Provide the arguments and other processing needed for an LLVM project 3 # 4 AC_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="]$1["]) 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="]$2["]) 12 AC_SUBST(LLVM_OBJ,$llvm_obj) 13 AC_CONFIG_COMMANDS([setup],,[llvm_src="${LLVM_SRC}"]) 14 ]) 15