mirror of https://gitee.com/bigwinds/arangodb
281 lines
10 KiB
Plaintext
281 lines
10 KiB
Plaintext
dnl ============================================================================
|
|
dnl ArangoDB (c) triAGENS GmbH
|
|
dnl ============================================================================
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- triAGENS GmbH Build Environment
|
|
dnl ============================================================================
|
|
|
|
AC_INIT([triAGENS ArangoDB], [1.0.alpha3], [info@triagens.de], [arangodb], [http://www.arangodb.org])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl auxillary directory for install-sh and missing
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- SCANNER & PARSER
|
|
dnl ============================================================================
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl BISON
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(bison,
|
|
AS_HELP_STRING([--enable-bison], [enable BISON]),
|
|
[tr_BISON="${enableval:-yes}"],
|
|
[tr_BISON=no]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_BISON, test "x$tr_BISON" = xyes)
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl FLEX
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(flex,
|
|
AS_HELP_STRING([--enable-flex], [enable FLEX]),
|
|
[tr_FLEX="${enableval:-yes}"],
|
|
[tr_FLEX=no]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_FLEX, test "x$tr_FLEX" = xyes)
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl ERRORS
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(errors-dependency,
|
|
AS_HELP_STRING([--enable-errors-dependency], [generate dependencies for error files]),
|
|
[tr_ERRORS_DEPENDENCY="${enableval:-yes}"],
|
|
[tr_ERRORS_DEPENDENCY=no]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_ERRORS_DEPENDENCY, test "x$tr_ERRORS_DEPENDENCY" = xyes)
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- LIBRARIES
|
|
dnl ============================================================================
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl ALL-IN-ONE
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(all-in-one,
|
|
AS_HELP_STRING([--enable-all-in-one], [use supplied V8 and LIBEV from 3rdParty directory]),
|
|
[ALL_IN_ONE_ENABLE="${enableval:-yes}"],
|
|
[ALL_IN_ONE_ENABLE=yes]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_ALL_IN_ONE, test "x$ALL_IN_ONE_ENABLE" = xyes)
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl BOOST
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(3rd-party-boost,
|
|
AS_HELP_STRING([--enable-3rd-party-boost], [use supplied BOOST from 3rdParty directory]),
|
|
[tr_3RD_PARTY_BOOST="${enableval:-yes}"],
|
|
[tr_3RD_PARTY_BOOST=yes]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_3RD_PARTY_BOOST, test "x$tr_3RD_PARTY_BOOST" = xyes)
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl BOOST TEST
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH([boost-test],
|
|
AS_HELP_STRING([--with-boost-test], [use boost unit test framework]),
|
|
[tr_BOOST_TEST=yes],
|
|
[tr_BOOST_TEST=no])
|
|
|
|
AM_CONDITIONAL(ENABLE_BOOST_TEST, test "x$tr_BOOST_TEST" = xyes)
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- OPTIONS
|
|
dnl ============================================================================
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl INSTALL EMPTY DATABASE
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(install-dbdir,
|
|
AS_HELP_STRING([--enable-install-dbdir], [install an empty database directory]),
|
|
[tr_DBDIR="${enableval:-yes}"],
|
|
[tr_DBDIR=yes]
|
|
)
|
|
|
|
AM_CONDITIONAL(ENABLE_INSTALL_DBDIR, test "x$tr_DBDIR" = xyes)
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl RELATIVE PATH
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(relative,
|
|
AS_HELP_STRING([--enable-relative], [all path are relative to the binary (yes/no/devel [default])]),
|
|
[tr_RELATIVE="${enableval:-devel}"],
|
|
[tr_RELATIVE=no]
|
|
)
|
|
|
|
if test "x$tr_RELATIVE" = xyes; then
|
|
AC_DEFINE_UNQUOTED(TRI_ENABLE_RELATIVE_SYSTEM, 1, [true if relative system paths should be used])
|
|
else
|
|
if test "x$tr_RELATIVE" = xdevel; then
|
|
AC_DEFINE_UNQUOTED(TRI_ENABLE_RELATIVE_DEVEL, 1, [true if relative development paths should be used])
|
|
else
|
|
tr_RELATIVE=no
|
|
fi
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_RELATIVE_SYSTEM, test "x$tr_RELATIVE" = xyes)
|
|
AM_CONDITIONAL(ENABLE_RELATIVE_DEVEL, test "x$tr_RELATIVE" = xdevel)
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- CONFIGURATION
|
|
dnl ============================================================================
|
|
|
|
m4_include([m4/configure.basics])
|
|
AC_PROG_RANLIB
|
|
|
|
m4_include([m4/configure.static])
|
|
m4_include([m4/configure.32bit])
|
|
m4_include([m4/configure.memory])
|
|
m4_include([m4/configure.logging])
|
|
m4_include([m4/configure.largefile])
|
|
m4_include([m4/configure.threads])
|
|
m4_include([m4/configure.dot])
|
|
m4_include([m4/configure.coverage])
|
|
|
|
if test "x$tr_FLEX" = xyes; then
|
|
m4_include([m4/configure.flex])
|
|
BASIC_INFO="$BASIC_INFO|FLEX: enabled"
|
|
else
|
|
BASIC_INFO="$BASIC_INFO|FLEX: disabled"
|
|
fi
|
|
|
|
if test "x$tr_BISON" = xyes; then
|
|
m4_include([m4/configure.bison])
|
|
BASIC_INFO="$BASIC_INFO|BISON: enabled"
|
|
else
|
|
BASIC_INFO="$BASIC_INFO|BISON: disabled"
|
|
fi
|
|
|
|
if test "x$tr_RELATIVE" != xno; then
|
|
BASIC_INFO="$BASIC_INFO|RELATIVE PATHS: $tr_RELATIVE"
|
|
else
|
|
BASIC_INFO="$BASIC_INFO|RELATIVE PATHS: disabled"
|
|
fi
|
|
|
|
FLAG_INFO="$FLAG_INFO|."
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- EXTERNAL LIBRARIES
|
|
dnl ============================================================================
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl MATH
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/external.math])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl NCURSES
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/external.ncurses]) # before readline
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl READLINE
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/external.readline])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl OPENSSL
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/external.openssl])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl LIBEV
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
if test "x$ALL_IN_ONE_ENABLE" = xyes; then
|
|
m4_include([m4/all-in-one.libev])
|
|
BASIC_INFO="$BASIC_INFO|ALL-IN-ONE-LIBEV: enabled"
|
|
else
|
|
m4_include([m4/external.libev])
|
|
BASIC_INFO="$BASIC_INFO|ALL-IN-ONE-LIBEV: disabled"
|
|
fi
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl V8
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
if test "x$ALL_IN_ONE_ENABLE" = xyes; then
|
|
m4_include([m4/all-in-one.v8])
|
|
BASIC_INFO="$BASIC_INFO|ALL-IN-ONE-V8: enabled"
|
|
else
|
|
m4_include([m4/external.v8])
|
|
BASIC_INFO="$BASIC_INFO|ALL-IN-ONE-V8: disabled"
|
|
fi
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl MRUBY
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/all-in-one.mruby])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl PROTOBUF
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/all-in-one.protobuf])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl ZEROMQ
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
m4_include([m4/all-in-one.zeromq])
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl BOOST
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
if test "x$tr_3RD_PARTY_BOOST" = xyes; then
|
|
m4_include([m4/all-in-one.boost])
|
|
BASIC_INFO="$BASIC_INFO|3RD-PARTY-BOOST: enabled"
|
|
else
|
|
m4_include([m4/external.boost])
|
|
BASIC_INFO="$BASIC_INFO|3RD-PARTY-BOOST: disabled"
|
|
fi
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- GENERATE FILES
|
|
dnl ============================================================================
|
|
|
|
BUILD_H="\$(top_srcdir)/build.h"
|
|
AC_SUBST(BUILD_H)
|
|
|
|
AC_CONFIG_FILES([Makefile Doxygen/arango.template])
|
|
AC_CONFIG_HEADER([config/config.h lib/BasicsC/local-configuration.h])
|
|
AC_OUTPUT
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- GENERATE INFO
|
|
dnl ============================================================================
|
|
|
|
m4_include([m4/configure.information])
|
|
|
|
dnl ============================================================================
|
|
dnl --SECTION-- END-OF-FILE
|
|
dnl ============================================================================
|
|
|
|
dnl Local Variables:
|
|
dnl mode: outline-minor
|
|
dnl outline-regexp: "^\\(dnl [a-zA-Z]\\|dnl --SECTION--\\)"
|
|
dnl End:
|