mirror of https://gitee.com/bigwinds/arangodb
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
dnl -*- mode: Autoconf; -*-
|
|
|
|
dnl -----------------------------------------------------------------------------------------
|
|
dnl option for V8 support
|
|
dnl -----------------------------------------------------------------------------------------
|
|
|
|
V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
|
|
V8_LDFLAGS=""
|
|
|
|
if test "x$tr_DARWIN" == xyes; then
|
|
if test "x$tr_BITS" == x64; then
|
|
V8_LIBS="${srcdir}/3rdParty/V8/libv8_x64.a"
|
|
else
|
|
V8_LIBS="${srcdir}/3rdParty/V8/libv8_ia32.a"
|
|
fi
|
|
else
|
|
if test "x$tr_BITS" == x64; then
|
|
V8_LIBS="${srcdir}/3rdParty/V8/out/x64.release/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/x64.release/obj.target/tools/gyp/libv8_nosnapshot.a"
|
|
else
|
|
V8_LIBS="${srcdir}/3rdParty/V8/out/ia32.release/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/ia32.release/obj.target/tools/gyp/libv8_nosnapshot.a"
|
|
fi
|
|
fi
|
|
|
|
TRI_V8_VERSION="3.9.4.0"
|
|
|
|
dnl -----------------------------------------------------------------------------------------
|
|
dnl add substitutions
|
|
dnl -----------------------------------------------------------------------------------------
|
|
|
|
AC_SUBST(V8_CPPFLAGS)
|
|
AC_SUBST(V8_LDFLAGS)
|
|
AC_SUBST(V8_LIBS)
|
|
|
|
V8_CPPFLAGS="${V8_CPPFLAGS} -DTRI_V8_VERSION='\"${TRI_V8_VERSION}\"'"
|
|
|
|
dnl -----------------------------------------------------------------------------------------
|
|
dnl informational output
|
|
dnl -----------------------------------------------------------------------------------------
|
|
|
|
LIB_INFO="$LIB_INFO|V8 VERSION: ${TRI_V8_VERSION}"
|
|
|
|
FLAG_INFO="$FLAG_INFO|V8_CPPFLAGS: ${V8_CPPFLAGS}"
|
|
FLAG_INFO="$FLAG_INFO|V8_LDFLAGS: ${V8_LDFLAGS}"
|
|
FLAG_INFO="$FLAG_INFO|V8_LIBS: ${V8_LIBS}"
|
|
FLAG_INFO="$FLAG_INFO|."
|
|
|
|
|
|
dnl Local Variables:
|
|
dnl mode: outline-minor
|
|
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
|
dnl End:
|