gambas-source-code/gb.jit/configure.ac
Benoît Minisini 65158cb4e6 [CONFIGURATION]
* NEW: The GB_FIND macro now searches files one directory deeper.

[DEVELOPMENT ENVIRONMENT]
* BUG: Reset correctly the Application.Busy property after a program has 
  crashed.

[WEBSITE]
* NEW: Update for 3.5.3.

[GB.DB.FORM]
* NEW: Raise the maximum size of a DataView text column to 65536 characters 
  instead of 1024.

[GB.JIT]
* BUG: Explicitely search for the 'llvm-c/Core.h' include file.


git-svn-id: svn://localhost/gambas/trunk@6246 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-23 22:31:28 +00:00

44 lines
1.6 KiB
Text

dnl ---- configure.ac for gb.jit
m4_include([../version.m4])
AC_INIT(gambas3-gb-jit, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.jit)
AC_PROG_LIBTOOL
min_llvm_version=3.1
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
AC_MSG_CHECKING(for LLVM - version >= $min_llvm_version)
LLVM_VERSION=`$LLVM_CONFIG --version`
llvm_major_version=`echo $LLVM_VERSION | sed 's/svn.*//g' | sed 's/\([[0-9]]*\).\([[0-9]]*\)/\1/'`
llvm_minor_version=`echo $LLVM_VERSION | sed 's/svn.*//g' | sed 's/\([[0-9]]*\).\([[0-9]]*\)/\2/'`
min_llvm_major_version=`echo $min_llvm_version | sed 's/\([[0-9]]*\).\([[0-9]]*\)/\1/'`
min_llvm_minor_version=`echo $min_llvm_version | sed 's/\([[0-9]]*\).\([[0-9]]*\)/\2/'`
if test $llvm_major_version -ge $min_llvm_major_version &&
test $llvm_minor_version -ge $min_llvm_minor_version; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
touch DISABLED DISABLED.gb.jit
fi
fi
GB_COMPONENT(
jit, JIT, gb.jit, [src],
[GB_FIND(llvm/AutoUpgrade.h llvm-c/Core.h, /usr/lib/llvm* /usr/local/lib /usr/local /usr/lib /usr `$LLVM_CONFIG --prefix`, include)],
[GB_FIND(libLLVM-$LLVM_VERSION.$SHLIBEXT, /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