gambas-source-code/gb.jit/configure.ac
Laurent Carlier 5dd86fdb1b [GB.JIT]
* NEW: Use AC_PROG_PATH() macro detect llvm-config file. llvm-config file can also be
defined with LLVM_CONFIG environment variable.

Useful in case of several llvm libs installed (see debian!), or non-standard path.


git-svn-id: svn://localhost/gambas/trunk@4777 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-25 15:54:00 +00:00

26 lines
851 B
Text

dnl ---- configure.ac for gb.jit
AC_INIT(configure.ac)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.jit)
AC_PROG_LIBTOOL
dnl llvm-config file can be forced with LLVM_CONFIG env var
AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
if test "x$LLVM_CONFIG" = xno; then
touch DISABLED DISABLED.gb.jit
else
LLVM_VERSION=`$LLVM_CONFIG --version`
fi
GB_COMPONENT(
jit, JIT, gb.jit, [src],
[GB_FIND(llvm/LLVMContext.h, /usr/lib/llvm* /usr/local/lib /usr/local /usr/lib /usr `$LLVM_CONFIG --prefix`, include)],
[GB_FIND(libLLVM-$LLVM_VERSION.so, /usr/lib/llvm* /usr/local /usr `$LLVM_CONFIG --prefix`, lib)],
[$C_LIB `$LLVM_CONFIG --ldflags` -lLLVM-$LLVM_VERSION],
[-I../../main/gbx -I../../main/share -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS])
AC_OUTPUT(Makefile src/Makefile)
GB_PRINT_MESSAGES